1(self.webpackChunkstweb_app=self.webpackChunkstweb_app||[]).push([[5056],{42798(ce,G){"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.BLANK_URL=G.relativeFirstCharacters=G.urlSchemeRegex=G.ctrlCharactersRegex=G.htmlCtrlEntityRegex=G.htmlEntitiesRegex=G.invalidProtocolRegex=void 0,G.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,G.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,G.htmlCtrlEntityRegex=/&(newline|tab);/gi,G.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,G.urlSchemeRegex=/^.+(:|:)/gim,G.relativeFirstCharacters=[".","/"],G.BLANK_URL="about:blank"},61835(ce,G,b){"use strict";G.J=void 0;var i=b(42798);function x(v){return v.replace(i.ctrlCharactersRegex,"").replace(i.htmlEntitiesRegex,function(d,E){return String.fromCharCode(E)})}G.J=function C(v){if(!v)return i.BLANK_URL;var u,d=v;do{u=(d=x(d).replace(i.htmlCtrlEntityRegex,"").replace(i.ctrlCharactersRegex,"").trim()).match(i.ctrlCharactersRegex)||d.match(i.htmlEntitiesRegex)||d.match(i.htmlCtrlEntityRegex)}while(u&&u.length>0);var E=d;if(!E)return i.BLANK_URL;if(function m(v){return i.relativeFirstCharacters.indexOf(v[0])>-1}(E))return E;var S=E.match(i.urlSchemeRegex);return S&&i.invalidProtocolRegex.test(S[0])?i.BLANK_URL:E}},47738(){!function(ce,G){"use strict";var S,A,Y,z,i="-add",m="-remove",u="ng-animate",d="$$ngAnimateChildren";void 0===ce.ontransitionend&&void 0!==ce.onwebkittransitionend?(S="WebkitTransition",A="webkitTransitionEnd transitionend"):(S="transition",A="transitionend"),void 0===ce.onanimationend&&void 0!==ce.onwebkitanimationend?(Y="WebkitAnimation",z="webkitAnimationEnd animationend"):(Y="animation",z="animationend");var U="Duration",y="Property",R="Delay",V="TimingFunction",oe=Y+R,B=Y+U,D=S+R,L=S+U,g=G.$$minErr("ng");function ie(_,w,N){if(!_)throw g("areq","Argument '{0}' is {1}",w||"?",N||"required");return _}function de(_,w){return _||w?_?w?(tn(_)&&(_=_.join(" ")),tn(w)&&(w=w.join(" ")),_+" "+w):_:w:""}function K(_,w,N){var q="";return _=tn(_)?_:_&&un(_)&&_.length?_.split(/\s+/):[],mt(_,function(Z,ye){Z&&Z.length>0&&(q+=ye>0?" ":"",q+=N?w+Z:Z+w)}),q}function he(_){if(!_[0])return _;for(var w=0;w<_.length;w++){var N=_[w];if(1===N.nodeType)return N}}function fe(_){return function(w,N){N.addClass&&(function le(_,w,N){mt(w,function(q){_.addClass(q,N)})}(_,w,N.addClass),N.addClass=null),N.removeClass&&(function ae(_,w,N){mt(w,function(q){_.removeClass(q,N)})}(_,w,N.removeClass),N.removeClass=null)}}function Pe(_){if(!(_=_||{}).$$prepared){var w=_.domOperation||Jt;_.domOperation=function(){_.$$domOperationFired=!0,w(),w=Jt},_.$$prepared=!0}return _}function be(_,w){Be(_,w),ut(_,w)}function Be(_,w){w.from&&(_.css(w.from),w.from=null)}function ut(_,w){w.to&&(_.css(w.to),w.to=null)}function Oe(_,w,N){var q=w.options||{},Z=N.options||{},ye=(q.addClass||"")+" "+(Z.addClass||""),Se=(q.removeClass||"")+" "+(Z.removeClass||""),De=function p(_,w,N){var ye={};_=De(_),w=De(w),mt(w,function(_e,$e){ye[$e]=1}),N=De(N),mt(N,function(_e,$e){ye[$e]=1===ye[$e]?null:-1});var Se={addClass:"",removeClass:""};function De(_e){un(_e)&&(_e=_e.split(" "));var $e={};return mt(_e,function(Te){Te.length&&($e[Te]=!0)}),$e}return mt(ye,function(_e,$e){var Te,Fe;1===_e?(Te="addClass",Fe=!_[$e]||_[$e+m]):-1===_e&&(Te="removeClass",Fe=_[$e]||_[$e+i]),Fe&&(Se[Te].length&&(Se[Te]+=" "),Se[Te]+=$e)}),Se}(_.attr("class"),ye,Se);Z.preparationClasses&&(q.preparationClasses=Q(Z.preparationClasses,q.preparationClasses),delete Z.preparationClasses);var _e=q.domOperation!==Jt?q.domOperation:null;return On(q,Z),_e&&(q.domOperation=_e),q.addClass=De.addClass?De.addClass:null,q.removeClass=De.removeClass?De.removeClass:null,w.addClass=q.addClass,w.removeClass=q.removeClass,q}function I(_){return _ instanceof Xt?_[0]:_}function f(_,w){var N=w?"-"+w+"s":"";return F(_,[D,N]),[D,N]}function O(_,w){var N=w?"paused":"",q=Y+"PlayState";return F(_,[q,N]),[q,N]}function F(_,w){_.style[w[0]]=w[1]}function Q(_,w){return _?w?_+" "+w:_:w}var ue=["$interpolate",function(_){return{link:function(w,N,q){var Z=q.ngAnimateChildren;function ye(Se){N.data(d,Se="on"===Se||"true"===Se)}un(Z)&&0===Z.length?N.data(d,!0):(ye(_(Z)(w)),q.$observe("ngAnimateChildren",ye))}}}],Ce="$$animateCss",We=1e3,It={transitionDuration:L,transitionDelay:D,transitionProperty:S+y,animationDuration:B,animationDelay:oe,animationIterationCount:Y+"IterationCount"},Lt={transitionDuration:L,transitionDelay:D,animationDuration:B,animationDelay:oe};function Qt(_,w){return[w?oe:D,_+"s"]}function Gn(_,w,N){var q=Object.create(null),Z=_.getComputedStyle(w)||{};return mt(N,function(ye,Se){var De=Z[ye];
1if(De){var _e=De.charAt(0);("-"===_e||"+"===_e||_e>=0)&&(De=function cn(_){var w=0,N=_.split(/\s*,\s*/);return mt(N,function(q){"s"===q.charAt(q.length-1)&&(q=q.substring(0,q.length-1)),q=parseFloat(q)||0,w=w?Math.max(q,w):q}),w}(De)),0===De&&(De=null),q[Se]=De}}),q}function xn(_){return 0===_||null!=_}function $n(_,w){var N=S,q=_+"s";return w?N+=U:q+=" linear all",[N,q]}function Wt(){var _=Object.create(null);return{flush:function(){_=Object.create(null)},count:function(w){var N=_[w];return N?N.total:0},get:function(w){var N=_[w];return N&&N.value},put:function(w,N){_[w]?_[w].total++:_[w]={total:1,value:N}}}}function l(_,w,N){mt(N,function(q){_[q]=_n(_[q])?_[q]:w.style.getPropertyValue(q)})}var Nn,On,mt,tn,_n,mn,En,xt,un,fn,Xt,Jt,Un=["$animateProvider",function(_){var w=Wt(),N=Wt();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(q,Z,ye,Se,De,_e,$e,Te){var Fe=fe(Z),Ke=0;function qe(Qe,xe){var Ve="$$ngAnimateParentKey",pe=Qe.parentNode;return(pe[Ve]||(pe[Ve]=++Ke))+"-"+Qe.getAttribute("class")+"-"+xe}var Ge=[];function kt(Qe){Ge.push(Qe),$e.waitUntilQuiet(function(){w.flush(),N.flush();for(var xe=De(),Ve=0;Ve<Ge.length;Ve++)Ge[Ve](xe);Ge.length=0})}function rt(Qe,xe,Ve){var pe=function Je(Qe,xe,Ve,pe){var Ue=w.get(Ve);return Ue||"infinite"===(Ue=Gn(q,Qe,pe)).animationIterationCount&&(Ue.animationIterationCount=1),w.put(Ve,Ue),Ue}(Qe,0,Ve,It),Ue=pe.animationDelay,Ie=pe.transitionDelay;return pe.maxDelay=Ue&&Ie?Math.max(Ue,Ie):Ue||Ie,pe.maxDuration=Math.max(pe.animationDuration*pe.animationIterationCount,pe.transitionDuration),pe}return function(xe,Ve){var pe=Ve||{};pe.$$prepared||(pe=Pe(Nn(pe)));var Ue={},Ie=I(xe);if(!Ie||!Ie.parentNode||!Te.enabled())return dn();var Ne,Ye,at,et,ze,tt,He,Le,dt,lt,je=[],Xe=xe.attr("class"),ht=function k(_){var w={};return _&&(_.to||_.from)&&(w.to=_.to,w.from=_.from),w}(pe),wt=[];if(0===pe.duration||!_e.animations&&!_e.transitions)return dn();var Rt=pe.event&&tn(pe.event)?pe.event.join(" "):pe.event,Me="",nt="";Rt&&pe.structural?Me=K(Rt,"ng-",!0):Rt&&(Me=Rt),pe.addClass&&(nt+=K(pe.addClass,i)),pe.removeClass&&(nt.length&&(nt+=" "),nt+=K(pe.removeClass,m)),pe.applyClassesEarly&&nt.length&&Fe(xe,pe);var $t,pt,Re=[Me,nt].join(" ").trim(),it=Xe+" "+Re,gt=K(Re,"-active"),ft=ht.to&&Object.keys(ht.to).length>0;if(!((pe.keyframeStyle||"").length>0||ft||Re))return dn();if(pe.stagger>0){var pn=parseFloat(pe.stagger);pt={transitionDelay:pn,animationDelay:pn,transitionDuration:0,animationDuration:0}}else $t=qe(Ie,it),pt=function vt(Qe,xe,Ve,pe){var Ue;if(w.count(Ve)>0&&!(Ue=N.get(Ve))){var Ie=K(xe,"-stagger");Z.addClass(Qe,Ie),(Ue=Gn(q,Qe,pe)).animationDuration=Math.max(Ue.animationDuration,0),Ue.transitionDuration=Math.max(Ue.transitionDuration,0),Z.removeClass(Qe,Ie),N.put(Ve,Ue)}return Ue||{}}(Ie,Re,$t,Lt);if(pe.$$skipPreparationClasses||Z.addClass(xe,Re),pe.transitionStyle){var At=[S,pe.transitionStyle];
1F(Ie,At),je.push(At)}if(pe.duration>=0){var Pt=$n(pe.duration,Ie.style[S].length>0);F(Ie,Pt),je.push(Pt)}if(pe.keyframeStyle){var Bt=[Y,pe.keyframeStyle];F(Ie,Bt),je.push(Bt)}var vn=pt?pe.staggerIndex>=0?pe.staggerIndex:w.count($t):0,An=0===vn;An&&!pe.skipBlocking&&f(Ie,9999);var Ut=rt(Ie,0,$t),an=Ut.maxDelay;tt=Math.max(an,0),Le=Ut.maxDuration;var nn,Ze={};return Ze.hasTransitions=Ut.transitionDuration>0,Ze.hasAnimations=Ut.animationDuration>0,Ze.hasTransitionAll=Ze.hasTransitions&&"all"===Ut.transitionProperty,Ze.applyTransitionDuration=ft&&(Ze.hasTransitions&&!Ze.hasTransitionAll||Ze.hasAnimations&&!Ze.hasTransitions),Ze.applyAnimationDuration=pe.duration&&Ze.hasAnimations,Ze.applyTransitionDelay=xn(pe.delay)&&(Ze.applyTransitionDuration||Ze.hasTransitions),Ze.applyAnimationDelay=xn(pe.delay)&&Ze.hasAnimations,Ze.recalculateTimingStyles=nt.length>0,(Ze.applyTransitionDuration||Ze.applyAnimationDuration)&&(Le=pe.duration?parseFloat(pe.duration):Le,Ze.applyTransitionDuration&&(Ze.hasTransitions=!0,Ut.transitionDuration=Le,je.push($n(Le,Ie.style[S+y].length>0))),Ze.applyAnimationDuration&&(Ze.hasAnimations=!0,Ut.animationDuration=Le,je.push(function yt(_){return[B,_+"s"]}(Le)))),0!==Le||Ze.recalculateTimingStyles?(null!=pe.delay&&("boolean"!=typeof pe.delay&&(nn=parseFloat(pe.delay),tt=Math.max(nn,0)),Ze.applyTransitionDelay&&je.push(Qt(nn)),Ze.applyAnimationDelay&&je.push(Qt(nn,!0))),null==pe.duration&&Ut.transitionDuration>0&&(Ze.recalculateTimingStyles=Ze.recalculateTimingStyles||An),He=tt*We,dt=Le*We,pe.ski
1pBlocking||(Ze.blockTransition=Ut.transitionDuration>0,Ze.blockKeyframeAnimation=Ut.animationDuration>0&&pt.animationDelay>0&&0===pt.animationDuration),pe.from&&(pe.cleanupStyles&&l(Ue,Ie,Object.keys(pe.from)),Be(xe,pe)),Ze.blockTransition||Ze.blockKeyframeAnimation?hn(Le):pe.skipBlocking||f(Ie,!1),{$$willAnimate:!0,end:Kt,start:function(){if(!Ne)return et=new ye(ze={end:Kt,cancel:Ft,resume:null,pause:null}),kt(Mn),et}}):dn();function Kt(){zt()}function Ft(){zt(!0)}function zt(en){if(!(Ne||at&&Ye)){Ne=!0,Ye=!1,pe.$$skipPreparationClasses||Z.removeClass(xe,Re),Z.removeClass(xe,gt),O(Ie,!1),f(Ie,!1),mt(je,function(sn){Ie.style[sn[0]]=""}),Fe(xe,pe),be(xe,pe),Object.keys(Ue).length&&mt(Ue,function(sn,Tn){sn?Ie.style.setProperty(Tn,sn):Ie.style.removeProperty(Tn)}),pe.onDone&&pe.onDone(),wt&&wt.length&&xe.off(wt.join(" "),yn);var bn=xe.data(Ce);bn&&(Se.cancel(bn[0].timer),xe.removeData(Ce)),et&&et.complete(!en)}}function hn(en){Ze.blockTransition&&f(Ie,en),Ze.blockKeyframeAnimation&&O(Ie,!!en)}function dn(){return et=new ye({end:Kt,cancel:Ft}),kt(Jt),zt(),{$$willAnimate:!1,start:function(){return et},end:Kt}}function yn(en){en.stopPropagation();var bn=en.originalEvent||en,sn=bn.$manualTimeStamp||Date.now(),Tn=parseFloat(bn.elapsedTime.toFixed(3));Math.max(sn-lt,0)>=He&&Tn>=Le&&(at=!0,zt())}function Mn(){if(!Ne)if(Ie.parentNode){var en=function(rn){if(at)Ye&&rn&&(Ye=!1,zt());else if(Ye=!rn,Ut.animationDuration){var ln=O(Ie,Ye);Ye?je.push(ln):function se(_,w){var N=_.indexOf(w);w>=0&&_.splice(N,1)}(je,ln)}},bn=vn>0&&(Ut.transitionDuration&&0===pt.transitionDuration||Ut.animationDuration&&0===pt.animationDuration)&&Math.max(pt.animationDelay,pt.transitionDelay);bn?Se(sn,Math.floor(bn*vn*We),!1):sn(),ze.resume=function(){en(!0)},ze.pause=function(){en(!1)}}else zt();function sn(){if(!Ne){if(hn(!1),mt(je,function(Yn){Ie.style[Yn[0]]=Yn[1]}),Fe(xe,pe),Z.addClass(xe,gt),Ze.recalculateTimingStyles){if($t=qe(Ie,it=Ie.className+" "+Re),Ut=rt(Ie,0,$t),an=Ut.maxDelay,tt=Math.max(an,0),0===(Le=Ut.maxDuration))return void zt();Ze.hasTransitions=Ut.transitionDuration>0,Ze.hasAnimations=Ut.animationDuration>0}if(Ze.applyAnimationDelay&&(an="boolean"!=typeof pe.delay&&xn(pe.delay)?parseFloat(pe.delay):an,tt=Math.max(an,0),Ut.animationDelay=an,nn=Qt(an,!0),je.push(nn),Ie.style[nn[0]]=nn[1]),He=tt*We,dt=Le*We,pe.easing){var rn,ln=pe.easing;Ze.hasTransitions&&(je.push([rn=S+V,ln]),Ie.style[rn]=ln),Ze.hasAnimations&&(je.push([rn=Y+V,ln]),Ie.style[rn]=ln)}Ut.transitionDuration&&wt.push(A),Ut.animationDuration&&wt.push(z),lt=Date.now();var Hn=He+1.5*dt,Wn=lt+Hn,wn=xe.data(Ce)||[],Kn=!0;if(wn.length){var Fn=wn[0];(Kn=Wn>Fn.expectedEndTime)?Se.cancel(Fn.timer):wn.push(zt)}if(Kn){var si=Se(Tn,Hn,!1);wn[0]={timer:si,expectedEndTime:Wn},wn.push(zt),xe.data(Ce,wn)}wt.length&&xe.on(wt.join(" "),yn),pe.to&&(pe.cleanupStyles&&l(Ue,Ie,Object.keys(pe.to)),ut(xe,pe))}}function Tn(){var rn=xe.data(Ce);if(rn){for(var ln=1;ln<rn.length;ln++)rn[ln]();xe.removeData(Ce)}}}}}]}],kn=["$$animationProvider",function(_){_.drivers.push("$$animateCssDriver");var w="ng-animate-shim",q="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(Se,De,_e,$e,Te,Fe,Ke){if(!Te.animations&&!Te.transitions)return Jt;var qe=Ke[0].body,Je=I($e),vt=Xt(function ye(Se){return Se.parentNode&&11===Se.parentNode.nodeType}(Je)||qe.contains(Je)?Je:qe);return function(pe){return pe.from&&pe.to?function Qe(Ve,pe,Ue,Ie){var je=xe(Ve),Xe=xe(pe),ht=[];
1if(mt(Ie,function(Ne){var et=function rt(Ve,pe,Ue){var Ie=Xt(I(pe).cloneNode(!0)),je=Ge(et(Ie));pe.addClass(w),Ue.addClass(w),Ie.addClass("ng-anchor"),vt.append(Ie);var Xe,ht=function at(){var He=Se(Ie,{addClass:q,delay:!0,from:Ye(pe)});return He.$$willAnimate?He:null}();if(!ht&&!(Xe=ze()))return tt();var Ne=ht||Xe;return{start:function(){var He,Le=Ne.start();return Le.done(function(){if(Le=null,!Xe&&(Xe=ze()))return(Le=Xe.start()).done(function(){Le=null,tt(),He.complete()}),Le;tt(),He.complete()}),He=new _e({end:dt,cancel:dt});function dt(){Le&&Le.end()}}};function Ye(He){var Le={},dt=I(He).getBoundingClientRect();return mt(["width","height","top","left"],function(lt){var wt=dt[lt];switch(lt){case"top":wt+=qe.scrollTop;break;case"left":wt+=qe.scrollLeft}Le[lt]=Math.floor(wt)+"px"}),Le}function et(He){return He.attr("class")||""}function ze(){var He=Ge(et(Ue)),Le=kt(He,je),dt=kt(je,He),lt=Se(Ie,{to:Ye(Ue),addClass:"ng-anchor-in "+Le,removeClass:q+" "+dt,delay:!0});return lt.$$willAnimate?lt:null}function tt(){Ie.remove(),pe.removeClass(w),Ue.removeClass(w)}}(0,Ne.out,Ne.in);et&&ht.push(et)}),je||Xe||0!==ht.length)return{start:function(){var Ne=[];je&&Ne.push(je.start()),Xe&&Ne.push(Xe.start()),mt(ht,function(et){Ne.push(et.start())});var Ye=new _e({end:at,cancel:at});return _e.all(Ne,function(et){Ye.complete(et)}),Ye;function at(){mt(Ne,function(et){et.end()})}}}}(pe.from,pe.to,0,pe.anchors):xe(pe)};function Ge(Ve){return Ve.replace(/\bng-\S+\b/g,"")}function kt(Ve,pe){return un(Ve)&&(Ve=Ve.split(" ")),un(pe)&&(pe=pe.split(" ")),Ve.filter(function(Ue){return-1===pe.indexOf(Ue)}).join(" ")}function xe(Ve){var pe=Ve.element,Ue=Ve.options||{};Ve.structural&&(Ue.event=Ve.event,Ue.structural=!0,Ue.applyClassesEarly=!0,"leave"===Ve.event&&(Ue.onDone=Ue.domOperation)),Ue.preparationClasses&&(Ue.event=Q(Ue.event,Ue.preparationClasses));var Ie=Se(pe,Ue);return Ie.$$willAnimate?Ie:null}}]}],Pn=["$animateProvider",function(_){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(w,N,q){var Z=fe(q);return function(Se,De,_e,$e){var Te=!1;3===arguments.length&&xt(_e)&&($e=_e,_e=null),$e=Pe($e),_e||(_e=Se.attr("class")||"",$e.addClass&&(_e+=" "+$e.addClass),$e.removeClass&&(_e+=" "+$e.removeClass));var Je,vt,Ge,kt,xe,Fe=$e.addClass,Ke=$e.removeClass,qe=function ye(Se){Se=tn(Se)?Se:Se.split(" ");for(var De=[],_e={},$e=0;$e<Se.length;$e++){var Te=Se[$e],Fe=_.$$registeredAnimations[Te];Fe&&!_e[Te]&&(De.push(w.get(Fe)),_e[Te]=!0)}return De}(_e);if(qe.length&&("leave"===De?(kt="leave",Ge="afterLeave"):(kt="before"+De.charAt(0).toUpperCase()+De.substr(1),Ge=De),"enter"!==De&&"move"!==De&&(Je=Ue(Se,De,$e,qe,kt)),vt=Ue(Se,De,$e,qe,Ge)),Je||vt)return{$$willAnimate:!0,end:function(){return xe?xe.end():(Qe(),(xe=new N).complete(!0)),xe},start:function(){if(xe)return xe;xe=new N;var Ie,je=[];return Je&&je.push(function(Ne){Ie=Je(Ne)}),je.length?je.push(function(Ne){rt(),Ne(!0)}):rt(),vt&&je.push(function(Ne){Ie=vt(Ne)}),xe.setHost({end:function(){ht()},cancel:function(){ht(!0)}}),N.chain(je,Xe),xe;function Xe(Ne){Qe(),xe.complete(Ne)}function ht(Ne){Te||((Ie||Jt)(Ne),Xe(Ne))}}};function rt(){$e.domOperation(),Z(Se,$e)}function Qe(){Te=!0,rt(),be(Se,$e)}function pe(Ie,je,Xe,ht,Ne){var Ye=[];return mt(ht,function(at){var et=at[Ne];et&&Ye.push(function(){var ze,tt,He=!1,Le=function(dt){He||(He=!0,(tt||Jt)(dt),ze.complete(!dt))};return ze=new N({end:function(){Le()},cancel:function(){Le(!0)}}),tt=function Ve(Ie,je,Xe,ht,Ne){var Ye;switch(Xe){case"animate":Ye=[je,ht.from,ht.to,Ne];break;case"setClass":Ye=[je,Fe,Ke,Ne];break;case"addClass":Ye=[je,Fe,Ne];break;case"removeClass":Ye=[je,Ke,Ne];break;default:Ye=[je,Ne]}Ye.push(ht);var at=Ie.apply(Ie,Ye);if(at)if(En(at.start)&&(at=at.start()),at instanceof N)at.done(Ne);else if(En(at))return at;return Jt}(et,Ie,je,Xe,function(dt){Le(!1===dt)}),ze})}),Ye}function Ue(Ie,je,Xe,ht,Ne){var at,et,Ye=pe(Ie,je,Xe,ht,Ne);if(0===Ye.length&&("beforeSetClass"===Ne?(at=pe(Ie,"removeClass",Xe,ht,"beforeRemoveClass"),et=pe(Ie,"addClass",Xe,ht,"beforeAddClass")):"setClass"===Ne&&(at=pe(Ie,"removeClass",Xe,ht,"removeClass"),et=pe(Ie,"addClass",Xe,ht,"addClass")),at&&(Ye=Ye.concat(at)),et&&(Ye=Ye.concat(et))),0!==Ye.length)return function(tt){var He=[];return Ye.length&&mt(Ye,function(Le){He.push(Le())}),He.length?N.all(He,tt):tt(),function(dt){mt(He,function(lt){dt?lt.cancel():lt.end()})}}}}}]}],In=["$$animationProvider",function(_){_.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(w,N){return function(ye){if(ye.from&&ye.to){var Se=q(ye.from),De=q(ye.to);return Se||De?{start:function(){var _e=[];Se&&_e.push(Se.start()),De&&_e.push(De.start()),N.all(_e,function Fe(Ke){$e.complete(Ke)});var $e=new N({end:Te(),cancel:Te()});return $e;function Te(){return function(){mt(_e,function(Ke){Ke.end()})}}}}:void 0}return q(ye)};function q(Z){return w(Z.element,Z.event,Z.classes,Z.options)}}]}],Zt="data-ng-animate",Yt="$ngAnimatePin",jn=["$animateProvider",function(_){var Z=this.rules={skip:[],cancel:[],join:[]};function Se($e,Te){if($e&&Te){var Fe=function ye($e){if(!$e)return null;var Te=$e.split(" "),Fe=Object.create(null);return mt(Te,function(Ke){Fe[Ke]=!0}),Fe}(Te);return $e.split(" ").some(function(Ke){return Fe[Ke]})}}function De($e,Te,Fe,Ke){return Z[$e].some(function(qe){return qe(Te,Fe,Ke)})}function _e($e,Te){var Fe=($e.addClass||"").length>0,Ke=($e.removeClass||"").length>0;return Te?Fe&&Ke:Fe||Ke}Z.join.push(function($e,Te,Fe){return!Te.structural&&_e(Te)}
1),Z.skip.push(function($e,Te,Fe){return!Te.structural&&!_e(Te)}),Z.skip.push(function($e,Te,Fe){return"leave"===Fe.event&&Te.structural}),Z.skip.push(function($e,Te,Fe){return Fe.structural&&2===Fe.state&&!Te.structural}),Z.cancel.push(function($e,Te,Fe){return Fe.structural&&Te.structural}),Z.cancel.push(function($e,Te,Fe){return 2===Fe.state&&Te.structural}),Z.cancel.push(function($e,Te,Fe){if(Fe.structural)return!1;var Ke=Te.addClass,qe=Te.removeClass,Je=Fe.addClass,vt=Fe.removeClass;return!(fn(Ke)&&fn(qe)||fn(Je)&&fn(vt))&&(Se(Ke,vt)||Se(qe,Je))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function($e,Te,Fe,Ke,qe,Je,vt,Ge,kt,rt){var Qe=new qe,xe=new qe,Ve=null,Ue=Te.$watch(function(){return 0===Ge.totalPendingRequests},function(Ee){Ee&&(Ue(),Te.$$postDigest(function(){Te.$$postDigest(function(){null===Ve&&(Ve=!0)})}))}),Ie=Object.create(null),je=_.classNameFilter(),Xe=je?function(Ee){return je.test(Ee)}:function(){return!0},ht=fe(kt);function Ne(Ee,Me){return Oe(Ee,Me,{})}var Ye=ce.Node.prototype.contains||function(Ee){return this===Ee||!!(16&this.compareDocumentPosition(Ee))};function et(Ee,Me,nt){var Re=he(Me);return Ee.filter(function(it){return!(it.node===Re&&(!nt||it.callback===nt))})}function ze(Ee,Me){"close"===Ee&&!Me[0].parentNode&&tt.off(Me)}var tt={on:function(Ee,Me,nt){var Re=he(Me);Ie[Ee]=Ie[Ee]||[],Ie[Ee].push({node:Re,callback:nt}),Xt(Me).on("$destroy",function(){Qe.get(Re)||tt.off(Ee,Me,nt)})},off:function(Ee,Me,nt){if(1!==arguments.length||un(arguments[0])){var it=Ie[Ee];it&&(Ie[Ee]=1===arguments.length?null:et(it,Me,nt))}else for(var Re in Me=arguments[0],Ie)Ie[Re]=et(Ie[Re],Me)},pin:function(Ee,Me){ie(mn(Ee),"element","not an element"),ie(mn(Me),"parentElement","not an element"),Ee.data(Yt,Me)},push:function(Ee,Me,nt,Re){return(nt=nt||{}).domOperation=Re,function He(Ee,Me,nt){var it,gt,Re=Nn(nt);Ee=function ve(_){if(_ instanceof Xt)switch(_.length){case 0:return _;case 1:if(1===_[0].nodeType)return _;break;default:return Xt(he(_))}if(1===_.nodeType)return Xt(_)}(Ee),Ee&&(it=I(Ee),gt=Ee.parent()),Re=Pe(Re);var ft=new vt,Gt=function pe(){var Ee=!1;return function(Me){Ee?Me():Te.$$postDigest(function(){Ee=!0,Me()})}}();if(tn(Re.addClass)&&(Re.addClass=Re.addClass.join(" ")),Re.addClass&&!un(Re.addClass)&&(Re.addClass=null),tn(Re.removeClass)&&(Re.removeClass=Re.removeClass.join(" ")),Re.removeClass&&!un(Re.removeClass)&&(Re.removeClass=null),Re.from&&!xt(Re.from)&&(Re.from=null),Re.to&&!xt(Re.to)&&(Re.to=null),!it)return Kt(),ft;var $t=[it.className,Re.addClass,Re.removeClass].join(" ");if(!Xe($t))return Kt(),ft;var pt=["enter","move","leave"].indexOf(Me)>=0,pn=Ke[0].hidden,jt=!Ve||pn||xe.get(it),At=!jt&&Qe.get(it)||{},Pt=!!At.state;if(!jt&&(!Pt||1!==At.state)&&(jt=!function wt(Ee,Me){var Gt,Re=Xt(Ke[0].body),it=lt(Ee,Re)||"HTML"===Ee[0].nodeName,gt=lt(Ee,Fe),ft=!1,$t=xe.get(I(Ee)),pt=Xt.data(Ee[0],Yt);for(pt&&(Me=pt),Me=I(Me);Me&&(gt||(gt=lt(Me,Fe)),1===Me.nodeType);){var pn=Qe.get(Me)||{};if(!ft){var jt=xe.get(Me);if(!0===jt&&!1!==$t){$t=!0;break}!1===jt&&($t=!1),ft=pn.structural}if(fn(Gt)||!0===Gt){var At=Xt.data(Me,d);_n(At)&&(Gt=At)}if(ft&&!1===Gt||(it||(it=lt(Me,Re)),it&>))break;Me=gt||!(pt=Xt.data(Me,Yt))?Me.parentNode:I(pt)}return(!ft||Gt)&&!0!==$t&>&&it}(Ee,gt)),jt)return pn&&nn(ft,Me,"start"),Kt(),pn&&nn(ft,Me,"close"),ft;pt&&function Le(Ee){var nt=I(Ee).querySelectorAll("["+Zt+"]");mt(nt,function(Re){var it=parseInt(Re.getAttribute(Zt),10),gt=Qe.get(Re);if(gt)switch(it){case 2:gt.runner.end();case 1:Qe.remove(Re)}})}(Ee);var Bt={structural:pt,element:Ee,event:Me,addClass:Re.addClass,removeClass:Re.removeClass,close:Kt,options:Re,runner:ft};if(Pt){if(De("skip",Ee,Bt,At))return 2===At.state?(Kt(),ft):(Oe(Ee,At,Bt),At.runner);if(De("cancel",Ee,Bt,At))if(2===At.state)At.runner.end();else{if(!At.structural)return Oe(Ee,At,Bt),At.runner;At.close()}else if(De("join",Ee,Bt,At)){if(2!==At.state)return function e(_,w,N){var q="";w&&(q=K(w,"ng-",!0)),N.addClass&&(q=Q(q,K(N.addClass,i))),N.removeClass&&(q=Q(q,K(N.removeClass,m))),q.length&&(N.preparationClasses=q,_.addClass(q))}(Ee,pt?Me:null,Re),Me=Bt.event=At.event,Re=Oe(Ee,At,Bt),At.runner;Ne(Ee,Bt)}}else Ne(Ee,Bt);var an=Bt.structural;if(an||(an="animate"===Bt.event&&Object.keys(Bt.options.to||{}).length>0||_e(Bt)),!an)return Kt(),dt(Ee),ft;var Ze=(At.counter||0)+1;return Bt.counter=Ze,Rt(Ee,1,Bt),Te.$$postDigest(function(){var Ft=Qe.get(it),zt=!Ft;Ft=Ft||{};var dn=(Ee.parent()||[]).length>0&&("animate"===Ft.event||Ft.structural||_e(Ft));if(zt||Ft.counter!==Ze||!dn)return zt&&(ht(Ee,Re),be(Ee,Re)),(zt||pt&&Ft.event!==Me)&&(Re.domOperation(),ft.end()),void(dn||dt(Ee));Me=!Ft.structural&&_e(Ft,!0)?"setClass":Ft.event,Rt(Ee,2);var yn=Je(Ee,Me,Ft.options);ft.setHost(yn),nn(ft,Me,"start",{}),yn.done(function(Mn){Kt(!Mn);var en=Qe.get(it);en&&en.counter===Ze&&dt(I(Ee)),nn(ft,Me,"close",{})})}),ft;function nn(Ft,zt,hn,dn){Gt(function(){var yn=function at(Ee,Me,nt){var Re=I(Me),it=I(Ee),gt=[],ft=Ie[nt];return ft&&mt(ft,function(Gt){(Ye.call(Gt.node,Re)||"leave"===nt&&Ye.call(Gt.node,it))&>.push(Gt.callback)}),gt}(gt,Ee,zt);yn.length?$e(function(){mt(yn,function(Mn){Mn(Ee,hn,dn)}),ze(hn,Ee)}):ze(hn,Ee)}),Ft.progress(zt,hn,dn)}
1function Kt(Ft){(function r(_,w){w.preparationClasses&&(_.removeClass(w.preparationClasses),w.preparationClasses=null),w.activeClasses&&(_.removeClass(w.activeClasses),w.activeClasses=null)})(Ee,Re),ht(Ee,Re),be(Ee,Re),Re.domOperation(),ft.complete(!Ft)}}(Ee,Me,nt)},enabled:function(Ee,Me){var nt=arguments.length;if(0===nt)Me=!!Ve;else if(mn(Ee)){var it=I(Ee);1===nt?Me=!xe.get(it):xe.put(it,!Me)}else Me=Ve=!!Ee;return Me}};return tt;function dt(Ee){var Me=I(Ee);Me.removeAttribute(Zt),Qe.remove(Me)}function lt(Ee,Me){return I(Ee)===I(Me)}function Rt(Ee,Me,nt){(nt=nt||{}).state=Me;var Re=I(Ee);Re.setAttribute(Zt,Me);var it=Qe.get(Re),gt=it?On(it,nt):nt;Qe.put(Re,gt)}}]}],Vn=["$animateProvider",function(_){var w="ng-animate-ref",N=this.drivers=[],q="$$animationRunner";function Se(De){return De.data(q)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(De,_e,$e,Te,Fe,Ke){var qe=[],Je=fe(De);return function(Ge,kt,rt){rt=Pe(rt);var Qe=["enter","move","leave"].indexOf(kt)>=0,xe=new Te({end:function(){et()},cancel:function(){et(!0)}});if(!N.length)return et(),xe;!function Z(De,_e){De.data(q,_e)}(Ge,xe);var Ue,Ve=de(Ge.attr("class"),de(rt.addClass,rt.removeClass)),pe=rt.tempClasses;return pe&&(Ve+=" "+pe,rt.tempClasses=null),Qe&&De.addClass(Ge,Ue="ng-"+kt+"-prepare"),qe.push({element:Ge,classes:Ve,event:kt,structural:Qe,options:rt,beforeStart:function Ne(){Ge.addClass(u),pe&&De.addClass(Ge,pe),Ue&&(De.removeClass(Ge,Ue),Ue=null)},close:et}),Ge.on("$destroy",at),qe.length>1||_e.$$postDigest(function(){var ze=[];mt(qe,function(Le){Se(Le.element)?ze.push(Le):Le.close()}),qe.length=0;var tt=function je(ze){var tt=[],He={};mt(ze,function(lt,wt){var Ee=I(lt.element),nt=["enter","move"].indexOf(lt.event)>=0,Re=lt.structural?function Ie(ze){var tt="["+w+"]",He=ze.hasAttribute(w)?[ze]:ze.querySelectorAll(tt),Le=[];return mt(He,function(dt){var lt=dt.getAttribute(w);lt&<.length&&Le.push(dt)}),Le}(Ee):[];if(Re.length){var it=nt?"to":"from";mt(Re,function(gt){var ft=gt.getAttribute(w);He[ft]=He[ft]||{},He[ft][it]={animationID:wt,element:Xt(gt)}})}else tt.push(lt)});var Le={},dt={};return mt(He,function(lt,wt){var Rt=lt.from,Ee=lt.to;if(Rt&&Ee){var Re=ze[Rt.animationID],it=ze[Ee.animationID],gt=Rt.animationID.toString();if(!dt[gt]){var ft=dt[gt]={structural:!0,beforeStart:function(){Re.beforeStart(),it.beforeStart()},close:function(){Re.close(),it.close()},classes:Xe(Re.classes,it.classes),from:Re,to:it,anchors:[]};ft.classes.length?tt.push(ft):(tt.push(Re),tt.push(it))}dt[gt].anchors.push({out:Rt.element,in:Ee.element})}else{var Me=Rt?Rt.animationID:Ee.animationID,nt=Me.toString();Le[nt]||(Le[nt]=!0,tt.push(ze[Me]))}}),tt}(ze),He=[];mt(tt,function(Le){He.push({domNode:I(Le.from?Le.from.element:Le.element),fn:function(){Le.beforeStart();var lt,wt=Le.close;if(Se(Le.anchors?Le.from.element||Le.to.element:Le.element)){var Ee=function ht(ze){for(var tt=N.length-1;tt>=0;tt--){var dt=$e.get(N[tt])(ze);if(dt)return dt}}(Le);Ee&&(lt=Ee.start)}if(lt){var Me=lt();Me.done(function(nt){wt(!nt)}),function Ye(ze,tt){function He(Le){var dt=Se(Le);dt&&dt.setHost(tt)}ze.from&&ze.to?(He(ze.from.element),He(ze.to.element)):He(ze.element)}(Le,Me)}else wt()}})}),Ke(function vt(Ge){var rt,kt={children:[]},Qe=new Fe;for(rt=0;rt<Ge.length;rt++){var xe=Ge[rt];Qe.put(xe.domNode,Ge[rt]={domNode:xe.domNode,fn:xe.fn,children:[]})}for(rt=0;rt<Ge.length;rt++)Ve(Ge[rt]);return function pe(Ue){var Xe,Ie=[],je=[];for(Xe=0;Xe<Ue.children.length;Xe++)je.push(Ue.children[Xe]);var ht=je.length,Ne=0,Ye=[];for(Xe=0;Xe<je.length;Xe++){var at=je[Xe];ht<=0&&(ht=Ne,Ne=0,Ie.push(Ye),Ye=[]),Ye.push(at.fn),at.children.forEach(function(et){Ne++,je.push(et)}),ht--}return Ye.length&&Ie.push(Ye),Ie}(kt);function Ve(Ue){if(Ue.processed)return Ue;Ue.processed=!0;var Xe,Ie=Ue.domNode,je=Ie.parentNode;for(Qe.put(Ie,Ue);je;){if(Xe=Qe.get(je)){Xe.processed||(Xe=Ve(Xe));break}je=je.parentNode}return(Xe||kt).children.push(Ue),Ue}}(He))}),xe;function Xe(ze,tt){ze=ze.split(" "),tt=tt.split(" ");for(var He=[],Le=0;Le<ze.length;Le++){var dt=ze[Le];if("ng-"!==dt.substring(0,3))for(var lt=0;lt<tt.length;lt++)if(dt===tt[lt]){He.push(dt);break}}return He.join(" ")}function at(){var ze=Se(Ge);ze&&("leave"!==kt||!rt.$$domOperationFired)&&ze.end()}function et(ze){Ge.off("$destroy",at),function ye(De){De.removeData(q)}(Ge),Je(Ge,rt),be(Ge,rt),rt.domOperation(),pe&&De.removeClass(Ge,pe),Ge.removeClass(u),xe.complete(!ze)}}}]}];G.module("ngAnimate",[],function(){Jt=G.noop,Nn=G.copy,On=G.extend,Xt=G.element,mt=G.forEach,tn=G.isArray,un=G.isString,xt=G.isObject,fn=G.isUndefined,_n=G.isDefined,En=G.isFunction,mn=G.isElement}).directive("ngAnimateSwap",["$animate","$rootScope",function(_,w){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(N,q,Z,ye,Se){var De,_e;N.$watchCollection(Z.ngAnimateSwap||Z.for,function($e){De&&_.leave(De),_e&&(_e.$destroy(),_e=null),($e||0===$e)&&(_e=N.$new(),Se(_e,function(Te){De=Te,_.enter(Te,null,q)}))})}}}]).directive("ngAnimateChildren",ue).factory("$$rAFScheduler",["$$rAF",function(_){var w,N;function q(ye){w=w.concat(ye),Z()}return w=q.queue=[],q.waitUntilQuiet=function(ye){N&&N(),N=_(function(){N=null,ye(),Z()})},q;function Z(){if(w.length){for(var ye=w.shift(),Se=0;Se<ye.length;Se++)ye[Se]();N||_(function(){N||Z()})}}}]).provider("$$animateQueue",jn).provider("$$animation",Vn).provider("$animateCss",Un).provider("$$animateCssDriver",kn).provider("$$animateJs",Pn).provider("$$animateJsDriver",In)}(window,window.angular)},53009(ce,G,b){b(47738),ce.exports="ngAnimate"},68073(ce,G,b){var P=b(46407),i=angular.module("ngCountries",[]);i.controller("ngCountriesCtrl",["$scope",function(m){"use strict";m.countries=P,m.getCountryObj=function(x,C){C(P.filter(function(u){return u.name===x})[0])}}]),i.directive("ngcountries",function(){"use strict";return{restrict:"E",replace:!0,controller:["$scope",function(x){x.countries=P}],scope:{templateUrl:"="},templateUrl:function(x,C){return C.templateUrl||"listbootstrap.html"}}}),i.run(["$templateCache",function(m){"use strict";m.put("listbootstrap.html",'<datalist id="countrylist"><option ng-repeat="country in countries" ng-value="country.name"></datalist>')}]),ce.exports=i,window.ngCountries=i},46407(ce){ce.exports=[{name:"Afghanistan",dial_code:"+93",code:"AF"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL"},{name:"Algeria",dial_code:"+213",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",code:"AS"},{name:"Andorra",dial_code:"+376",code:"AD"},{name:"Angola",dial_code:"+244",code:"AO"},{name:"Anguilla",dial_code:"+1264",code:"AI"},{name:"Antarctica",dial_code:"+672",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG"},{name:"Argentina",dial_code:"+54",code:"AR"},{name:"Armenia",dial_code:"+374",code:"AM"},{name:"Aruba",dial_code:"+297",code:"AW"},{name:"Australia",dial_code:"+61",code:"AU"},{name:"Austria",dial_code:"+43",code:"AT"},{name:"Azerbaijan",dial_code:"+994",code:"AZ"},{name:"Bahamas",dial_code:"+1242",code:"BS"},{name:"Bahrain",dial_code:"+973",code:"BH"},{name:"Bangladesh",dial_code:"+880",code:"BD"},{name:"Barbados",dial_code:"+1246",code:"BB"},{name:"Belarus",dial_code:"+375",code:"BY"},{name:"Belgium",dial_code:"+32",code:"BE"},{name:"Belize",dial_code:"+501",code:"BZ"},{name:"Benin",dial_code:"+229",code:"BJ"},{name:"Bermuda",dial_code:"+1441",code:"BM"},{name:"Bhutan",dial_code:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA"},{name:"Botswana",dial_code:"+267",code:"BW"},{name:"Brazil",dial_code:"+55",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG"},{name:"Burkina Faso",dial_code:"+226",code:"BF"},{name:"Burundi",dial_code:"+257",code:"BI"},{name:"Cambodia",dial_code:"+855",code:"KH"},{name:"Cameroon",dial_code:"+237",code:"CM"},{name:"Canada",dial_code:"+1",code:"CA"},{name:"Cape Verde",dial_code:"+238",code:"CV"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY"},{name:"Central African Republic",dial_code:"+236",code:"CF"},{name:"Chad",dial_code:"+235",code:"TD"},{name:"Chile",dial_code:"+56",code:"CL"},{name:"China",dial_code:"+86",code:"CN"},{name:"Christmas Island",dial_code:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC"},{name:"Colombia",dial_code:"+57",code:"CO"},{name:"Comoros",dial_code:"+269",code:"KM"},{name:"Congo",dial_code:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK"},{name:"Costa Rica",dial_code:"+506",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR"},{name:"Cuba",dial_code:"+53",code:"CU"},{name:"Cyprus",dial_code:"+357",code:"CY"},{name:"Czech Republic",dial_code:"+420",code:"CZ"},{name:"Denmark",dial_code:"+45",code:"DK"},{name:"Djibouti",dial_code:"+253",code:"DJ"}
1,{name:"Dominica",dial_code:"+1767",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",code:"DO"},{name:"Ecuador",dial_code:"+593",code:"EC"},{name:"Egypt",dial_code:"+20",code:"EG"},{name:"El Salvador",dial_code:"+503",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ"},{name:"Eritrea",dial_code:"+291",code:"ER"},{name:"Estonia",dial_code:"+372",code:"EE"},{name:"Ethiopia",dial_code:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO"},{name:"Fiji",dial_code:"+679",code:"FJ"},{name:"Finland",dial_code:"+358",code:"FI"},{name:"France",dial_code:"+33",code:"FR"},{name:"French Guiana",dial_code:"+594",code:"GF"},{name:"French Polynesia",dial_code:"+689",code:"PF"},{name:"Gabon",dial_code:"+241",code:"GA"},{name:"Gambia",dial_code:"+220",code:"GM"},{name:"Georgia",dial_code:"+995",code:"GE"},{name:"Germany",dial_code:"+49",code:"DE"},{name:"Ghana",dial_code:"+233",code:"GH"},{name:"Gibraltar",dial_code:"+350",code:"GI"},{name:"Greece",dial_code:"+30",code:"GR"},{name:"Greenland",dial_code:"+299",code:"GL"},{name:"Grenada",dial_code:"+1473",code:"GD"},{name:"Guadeloupe",dial_code:"+590",code:"GP"},{name:"Guam",dial_code:"+1671",code:"GU"},{name:"Guatemala",dial_code:"+502",code:"GT"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW"},{name:"Guyana",dial_code:"+595",code:"GY"},{name:"Haiti",dial_code:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA"},{name:"Honduras",dial_code:"+504",code:"HN"},{name:"Hong Kong",dial_code:"+852",code:"HK"},{name:"Hungary",dial_code:"+36",code:"HU"},{name:"Iceland",dial_code:"+354",code:"IS"},{name:"India",dial_code:"+91",code:"IN"},{name:"Indonesia",dial_code:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR"},{name:"Iraq",dial_code:"+964",code:"IQ"},{name:"Ireland",dial_code:"+353",code:"IE"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL"},{name:"Italy",dial_code:"+39",code:"IT"},{name:"Jamaica",dial_code:"+1876",code:"JM"},{name:"Japan",dial_code:"+81",code:"JP"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO"},{name:"Kazakhstan",dial_code:"+77",code:"KZ"},{name:"Kenya",dial_code:"+254",code:"KE"},{name:"Kiribati",dial_code:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR"},{name:"Kuwait",dial_code:"+965",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG"},{name:"Laos",dial_code:"+856",code:"LA"},{name:"Latvia",dial_code:"+371",code:"LV"},{name:"Lebanon",dial_code:"+961",code:"LB"},{name:"Lesotho",dial_code:"+266",code:"LS"},{name:"Liberia",dial_code:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY"},{name:"Liechtenstein",dial_code:"+423",code:"LI"},{name:"Lithuania",dial_code:"+370",code:"LT"},{name:"Luxembourg",dial_code:"+352",code:"LU"},{name:"Macao",dial_code:"+853",code:"MO"},{name:"Macedonia",dial_code:"+389",code:"MK"},{name:"Madagascar",dial_code:"+261",code:"MG"},{name:"Malawi",dial_code:"+265",code:"MW"},{name:"Malaysia",dial_code:"+60",code:"MY"},{name:"Maldives",dial_code:"+960",code:"MV"},{name:"Mali",dial_code:"+223",code:"ML"},{name:"Malta",dial_code:"+356",code:"MT"},{name:"Marshall Islands",dial_code:"+692",code:"MH"},{name:"Martinique",dial_code:"+596",code:"MQ"},{name:"Mauritania",dial_code:"+222",code:"MR"},{name:"Mauritius",dial_code:"+230",code:"MU"},{name:"Mayotte",dial_code:"+262",code:"YT"},{name:"Mexico",dial_code:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM"},{name:"Moldova",dial_code:"+373",code:"MD"},{name:"Monaco",dial_code:"+377",code:"MC"},{name:"Mongolia",dial_code:"+976",code:"MN"},{name:"Montenegro",dial_code:"+382",code:"ME"},{name:"Montserrat",dial_code:"+1664",code:"MS"},{name:"Morocco",dial_code:"+212",code:"MA"},{name:"Mozambique",dial_code:"+258",code:"MZ"},{name:"Myanmar",dial_code:"+95",code:"MM"},{name:"Namibia",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",code:"NR"},{name:"Nepal",dial_code:"+977",code:"NP"},{name:"Netherlands",dial_code:"+31",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN"},{name:"New Caledonia",dial_code:"+687",code:"NC"},{name:"New Zealand",dial_code:"+64",code:"NZ"},{name:"Nicaragua",dial_code:"+505",code:"NI"},{name:"Niger",dial_code:"+227",code:"NE"},{name:"Nigeria",dial_code:"+234",code:"NG"},{name:"Niue",dial_code:"+683",code:"NU"},{name:"Norfolk Island",dial_code:"+672",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP"},{name:"Norway",dial_code:"+47",code:"NO"},{name:"Oman",dial_code:"+968",code:"OM"},{name:"Pakistan",dial_code:"+92",code:"PK"},{name:"Palau",dial_code:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG"},{name:"Paraguay",dial_code:"+595",code:"PY"},{name:"Peru",dial_code:"+51",code:"PE"},{name:"Philippines",dial_code:"+63",code:"PH"},{name:"Pitcairn",dial_code:"+872",code:"PN"},{name:"Poland",dial_code:"+48",code:"PL"},{name:"Portugal",dial_code:"+351",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",code:"PR"},{name:"Qatar",dial_code:"+974",code:"QA"},{name:"Romania",dial_code:"+40",code:"RO"},{name:"Russia",dial_code:"+7",code:"RU"},{name:"Rwanda",dial_code:"+250",code:"RW"},{name:"Reunion",dial_code:"+262",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN"}
1,{name:"Saint Lucia",dial_code:"+1758",code:"LC"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC"},{name:"Samoa",dial_code:"+685",code:"WS"},{name:"San Marino",dial_code:"+378",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",code:"SA"},{name:"Senegal",dial_code:"+221",code:"SN"},{name:"Serbia",dial_code:"+381",code:"RS"},{name:"Seychelles",dial_code:"+248",code:"SC"},{name:"Sierra Leone",dial_code:"+232",code:"SL"},{name:"Singapore",dial_code:"+65",code:"SG"},{name:"Slovakia",dial_code:"+421",code:"SK"},{name:"Slovenia",dial_code:"+386",code:"SI"},{name:"Solomon Islands",dial_code:"+677",code:"SB"},{name:"Somalia",dial_code:"+252",code:"SO"},{name:"South Africa",dial_code:"+27",code:"ZA"},{name:"South Sudan",dial_code:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS"},{name:"Spain",dial_code:"+34",code:"ES"},{name:"Sri Lanka",dial_code:"+94",code:"LK"},{name:"Sudan",dial_code:"+249",code:"SD"},{name:"Suriname",dial_code:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ"},{name:"Swaziland",dial_code:"+268",code:"SZ"},{name:"Sweden",dial_code:"+46",code:"SE"},{name:"Switzerland",dial_code:"+41",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG"},{name:"Tokelau",dial_code:"+690",code:"TK"},{name:"Tonga",dial_code:"+676",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT"},{name:"Tunisia",dial_code:"+216",code:"TN"},{name:"Turkey",dial_code:"+90",code:"TR"},{name:"Turkmenistan",dial_code:"+993",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC"},{name:"Tuvalu",dial_code:"+688",code:"TV"},{name:"Uganda",dial_code:"+256",code:"UG"},{name:"Ukraine",dial_code:"+380",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",code:"AE"},{name:"United Kingdom",dial_code:"+44",code:"GB"},{name:"United States",dial_code:"+1",code:"US"},{name:"Uruguay",dial_code:"+598",code:"UY"},{name:"Uzbekistan",dial_code:"+998",code:"UZ"},{name:"Vanuatu",dial_code:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF"},{name:"Yemen",dial_code:"+967",code:"YE"},{name:"Zambia",dial_code:"+260",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",code:"ZW"}]},47595(ce,G,b){var P,i,m;!function(){"use strict";function x(d){return angular.isUndefined(d)||null===d}window&&window.process&&window,i=[b(30974),b(80916)],void 0!==(m="function"==typeof(P=function v(d,E){return typeof E>"u"&&(E=function C(){try{return b(80916)}catch{throw new Error("Please install moment via npm. Please reference to: https://github.com/urish/angular-moment")}}()),d.module("angularMoment",[]).constant("angularMomentConfig",{preprocess:null,timezone:null,format:null,statefulFilters:!0}).constant("moment",E).constant("amTimeAgoConfig",{withoutSuffix:!1,serverTime:null,titleFormat:null,fullDateThreshold:null,fullDateFormat:null,fullDateThresholdUnit:"day"}).directive("amTimeAgo",["$window","moment","amMoment","amTimeAgoConfig",function(S,A,Y,z){return function(U,y,R){var ee,ie,V=null,J=z.withoutSuffix,ne=z.titleFormat,oe=z.fullDateThreshold,B=z.fullDateFormat,D=z.fullDateThresholdUnit,L=(new Date).getTime(),g=R.amTimeAgo,de="TIME"===y[0].nodeName.toUpperCase(),k=!y.attr("title");function K(){var ae;if(ie)ae=ie;else if(z.serverTime){var fe=(new Date).getTime();ae=A(fe-L+z.serverTime)}else ae=A();return ae}function se(){V&&(S.clearTimeout(V),V=null)}function ve(ae){var fe=K().diff(ae,D),Pe=oe&&fe>=oe;if(y.text(Pe?ae.format(B):ae.from(K(),J)),ne&&k&&y.attr("title",ae.format(ne)),!Pe){var be=Math.abs(K().diff(ae,"minute")),Be=3600;be<1?Be=1:be<60?Be=30:be<180&&(Be=300),V=S.setTimeout(function(){ve(ae)},1e3*Be)}}function he(ae){de&&y.attr("datetime",ae)}function le(){if(se(),ee){var ae=Y.preprocessDate(ee);ve(ae),he(ae.toISOString())}}U.$watch(g,function(ae){if(x(ae)||""===ae)return se(),void(ee&&(y.text(""),he(""),ee=null));ee=ae,le()}),d.isDefined(R.amFrom)&&U.$watch(R.amFrom,function(ae){ie=x(ae)||""===ae?null:A(ae),le()}),d.isDefined(R.amWithoutSuffix)&&U.$watch(R.amWithoutSuffix,function(ae){"boolean"==typeof ae?(J=ae,le(
1)):J=z.withoutSuffix}),R.$observe("amFullDateThreshold",function(ae){oe=ae,le()}),R.$observe("amFullDateFormat",function(ae){B=ae,le()}),R.$observe("amFullDateThresholdUnit",function(ae){D=ae,le()}),U.$on("$destroy",function(){se()}),U.$on("amMoment:localeChanged",function(){le()})}}]).service("amMoment",["moment","$rootScope","$log","angularMomentConfig",function(S,A,Y,z){var U=null;this.changeLocale=function(y,R){var V=S.locale(y,R);return d.isDefined(y)&&A.$broadcast("amMoment:localeChanged"),V},this.changeTimezone=function(y){S.tz&&S.tz.setDefault?(S.tz.setDefault(y),A.$broadcast("amMoment:timezoneChanged")):Y.warn("angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater."),z.timezone=y,U=y},this.preprocessDate=function(y){return U!==z.timezone&&this.changeTimezone(z.timezone),z.preprocess?z.preprocess(y):!isNaN(parseFloat(y))&&isFinite(y)?S(parseInt(y,10)):S(y)}}]).filter("amParse",["moment",function(S){return function(A,Y){return S(A,Y)}}]).filter("amFromUnix",["moment",function(S){return function(A){return S.unix(A)}}]).filter("amUtc",["moment",function(S){return function(A){return S.utc(A)}}]).filter("amUtcOffset",["amMoment",function(S){return function A(Y,z){return S.preprocessDate(Y).utcOffset(z)}}]).filter("amLocal",["moment",function(S){return function(A){return S.isMoment(A)?A.local():null}}]).filter("amTimezone",["amMoment","angularMomentConfig","$log",function(S,A,Y){return function z(U,y){var R=S.preprocessDate(U);return y?R.tz?R.tz(y):(Y.warn("angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?"),R):R}}]).filter("amCalendar",["moment","amMoment","angularMomentConfig",function(S,A,Y){function z(U,y,R){if(x(U))return"";var V=A.preprocessDate(U);return V.isValid()?V.calendar(y,R):""}return z.$stateful=Y.statefulFilters,z}]).filter("amDifference",["moment","amMoment","angularMomentConfig",function(S,A,Y){function z(U,y,R,V){if(x(U))return"";var ee=A.preprocessDate(U),J=x(y)?S():A.preprocessDate(y);return ee.isValid()&&J.isValid()?ee.diff(J,R,V):""}return z.$stateful=Y.statefulFilters,z}]).filter("amDateFormat",["moment","amMoment","angularMomentConfig",function(S,A,Y){function z(U,y){if(x(U))return"";var R=A.preprocessDate(U);return R.isValid()?R.format(y):""}return z.$stateful=Y.statefulFilters,z}]).filter("amDurationFormat",["moment","angularMomentConfig",function(S,A){function Y(z,U,y){return x(z)?"":S.duration(z,U).humanize(y)}return Y.$stateful=A.statefulFilters,Y}]).filter("amTimeAgo",["moment","amMoment","angularMomentConfig",function(S,A,Y){function z(U,y,R){var V,ee;return x(U)||(U=A.preprocessDate(U),!(V=S(U)).isValid())?"":(ee=S(R),!x(R)&&ee.isValid()?V.from(ee,y):V.fromNow(y))}return z.$stateful=Y.statefulFilters,z}]).filter("amSubtract",["moment","angularMomentConfig",function(S,A){function Y(z,U,y){return x(z)?"":S(z).subtract(parseInt(U,10),y)}return Y.$stateful=A.statefulFilters,Y}]).filter("amAdd",["moment","angularMomentConfig",function(S,A){function Y(z,U,y){return x(z)?"":S(z).add(parseInt(U,10),y)}return Y.$stateful=A.statefulFilters,Y}]).filter("amStartOf",["moment","angularMomentConfig",function(S,A){function Y(z,U
1){return x(z)?"":S(z).startOf(U)}return Y.$stateful=A.statefulFilters,Y}]).filter("amEndOf",["moment","angularMomentConfig",function(S,A){function Y(z,U){return x(z)?"":S(z).endOf(U)}return Y.$stateful=A.statefulFilters,Y}]),"angularMoment"})?P.apply(G,i):P)&&(ce.exports=m)}()},83296(){angular.module("monospaced.mousewheel",[]).directive("msdWheel",["$parse",function(ce){return{restrict:"A, C",link:function(G,b,P){var x,i=ce(P.msdWheel),m=function(C,v,u,d){G.$apply(function(){i(G,{$event:C,$delta:v,$deltaX:u,$deltaY:d})})};typeof Hamster>"u"?b.bind("wheel",function(C){G.$apply(function(){i(G,{$event:C})})}):((x=b.data("hamster"))||(x=Hamster(b[0]),b.data("hamster",x)),x.wheel(m),G.$on("$destroy",function(){x.unwheel(m)}))}}}])},59767(){!function(ce,G){"use strict";var b=G.$$minErr("$resource"),P=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;function x(C,v){for(var u in G.forEach(v=v||{},function(d,E){delete v[E]}),C)C.hasOwnProperty(u)&&("$"!==u.charAt(0)||"$"!==u.charAt(1))&&(v[u]=C[u]);return v}G.module("ngResource",["ng"]).provider("$resource",function(){var v=/^https?:\/\/[^/]*/,u=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(d,E,S,A){var Y=G.noop,z=G.forEach,U=G.extend,y=G.copy,R=G.isArray,V=G.isDefined,ee=G.isFunction,J=G.isNumber;function oe(L,g){return encodeURIComponent(L).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,g?"%20":"+")}function B(L,g){this.template=L,this.defaults=U({},u.defaults,g),this.urlParams={}}return B.prototype={setUrlParams:function(L,g,ie){var K,se,de=this,k=ie||de.template,ve="",he=de.urlParams={};z(k.split(/\W/),function(le){if("hasOwnProperty"===le)throw b("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(le)&&le&&new RegExp("(^|[^\\\\]):"+le+"(\\W|$)").test(k)&&(he[le]={isQueryParamValue:new RegExp("\\?.*=:"+le+"(?:\\W|$)").test(k)})}),k=(k=k.replace(/\\:/g,":")).replace(v,function(le){return ve=le,""}),g=g||{},z(de.urlParams,function(le,ae){K=g.hasOwnProperty(ae)?g[ae]:de.defaults[ae],V(K)&&null!==K?(se=le.isQueryParamValue?oe(K,!0):function ne(L){return oe(L,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}(K),k=k.replace(new RegExp(":"+ae+"(\\W|$)","g"),function(fe,Pe){return se+Pe})):k=k.replace(new RegExp("(/?):"+ae+"(\\W|$)","g"),function(fe,Pe,be){return"/"===be.charAt(0)?be:Pe+be})}),de.defaults.stripTrailingSlashes&&(k=k.replace(/\/+$/,"")||"/"),k=k.replace(/\/\.(?=\w+($|\?))/,"."),L.url=ve+k.replace(/\/\\\./,"/."),z(g,function(le,ae){de.urlParams[ae]||(L.params=L.params||{},L.params[ae]=le)})}},function D(L,g,ie,de){var k=new B(L,de);function se(he){return he.resource}function ve(he){x(he||{},this)}return ie=U({},u.defaults.actions,ie),ve.prototype.toJSON=function(){var he=U({},this);return delete he.$promise,delete he.$resolved,delete he.$cancelRequest,he},z(ie,function(he,le){var ae=/^(POST|PUT|PATCH)$/i.test(he.method),fe=he.timeout,Pe=V(he.cancellable)?he.cancellable:k.defaults.cancellable;fe&&!J(fe)&&(E.debug("ngResource:\n Only numeric values are allowed as `timeout`.\n Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete he.timeout,fe=null),ve[le]=function(be,Be,ut,Oe){var I,e,r,p={};switch(arguments.length){case 4:r=Oe,e=ut;case 3:case 2:if(!ee(Be)){p=be,I=Be,e=ut;break}if(ee(be)){e=be,r=Be;break}e=Be,r=ut;case 1:ee(be)?e=be:ae?I=be:p=be;break;case 0:break;default:throw b("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var ue,Ce,f=this instanceof ve,O=f?I:he.isArray?[]:new ve(I),F={},Q=he.interceptor&&he.interceptor.response||se,ge=he.interceptor&&he.interceptor.responseError||void 0;z(he,function(we,st){switch(st){default:F[st]=y(we);case"params":case"isArray":case"interceptor":case"cancellable":}}),!f&&Pe&&(ue=S.defer(),F.timeout=ue.promise,fe&&(Ce=A(ue.resolve,fe))),ae&&(F.data=I),k.setUrlParams(F,U({},function K(he,le){var ae={};return le=U({},g,le),z(le,function(fe,Pe){ee(fe)&&(fe=fe(he)),ae[Pe]=fe&&fe.charAt&&"@"===fe.charAt(0)?function m(C,v){if(!function i(C){return null!=C&&""!==C&&"hasOwnProperty"!==C&&P.test("."+C)}(v))throw b("badmember",'Dotted member path "@{0}
1" is invalid.',v);for(var u=v.split("."),d=0,E=u.length;d<E&&G.isDefined(C);d++)C=null!==C?C[u[d]]:void 0;return C}(he,fe.substr(1)):fe}),ae}(I,he.params||{}),p),he.url);var We=d(F).then(function(we){var st=we.data;if(st){if(R(st)!==!!he.isArray)throw b("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",le,he.isArray?"array":"object",R(st)?"array":"object",F.method,F.url);if(he.isArray)O.length=0,z(st,function(Lt){O.push("object"==typeof Lt?new ve(Lt):Lt)});else{var It=O.$promise;x(st,O),O.$promise=It}}return we.resource=O,we},function(we){return(r||Y)(we),S.reject(we)});return We.finally(function(){O.$resolved=!0,!f&&Pe&&(O.$cancelRequest=Y,A.cancel(Ce),ue=Ce=F.timeout=null)}),We=We.then(function(we){var st=Q(we);return(e||Y)(st,we.headers,we.status,we.statusText),st},ge),f?We:(O.$promise=We,O.$resolved=!1,Pe&&(O.$cancelRequest=ue.resolve),O)},ve.prototype["$"+le]=function(be,Be,ut){ee(be)&&(ut=Be,Be=be,be={});var Oe=ve[le].call(this,be,this,Be,ut);return Oe.$promise||Oe}}),ve.bind=function(he){var le=U({},g,he);return D(L,le,ie,de)},ve}}]})}(window,window.angular)},90608(ce,G,b){b(59767),ce.exports="ngResource"},39838(ce,G,b){b(84981),b(9322),b(7418),b(6496),b(91441),b(76175),b(60217),b(22215),b(20477),b(3029),b(51259),b(49098)},49098(ce,G,b){!function(i){"use strict";var m=function(v,u){this.options=i.extend({},m.DEFAULTS,u);var d=this.options.target===m.DEFAULTS.target?i(this.options.target):i(document).find(this.options.target);this.$target=d.on("scroll.bs.affix.data-api",i.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",i.proxy(this.checkPositionWithEventLoop,this)),this.$element=i(v),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function x(v){return this.each(function(){var u=i(this),d=u.data("bs.affix");d||u.data("bs.affix",d=new m(this,"object"==typeof v&&v)),"string"==typeof v&&d[v]()})}m.VERSION="3.4.1",m.RESET="affix affix-top affix-bottom",m.DEFAULTS={offset:0,target:window},m.prototype.getState=function(v,u,d,E){var S=this.$target.scrollTop(),A=this.$element.offset(),Y=this.$target.height();if(null!=d&&"top"==this.affixed)return S<d&&"top";if("bottom"==this.affixed)return null!=d?!(S+this.unpin<=A.top)&&"bottom":!(S+Y<=v-E)&&"bottom";var z=null==this.affixed;return null!=d&&S<=d?"top":null!=E&&(z?S:A.top)+(z?Y:u)>=v-E&&"bottom"},m.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(m.RESET).addClass("affix");var v=this.$target.scrollTop(),u=this.$element.offset();return this.pinnedOffset=u.top-v},m.prototype.checkPositionWithEventLoop=function(){setTimeout(i.proxy(this.checkPosition,this),1)},m.prototype.checkPosition=function(){if(this.$element.is(":visible")){var v=this.$element.height(),u=this.options.offset,d=u.top,E=u.bottom,S=Math.max(i(document).height(),i(document.body).height());"object"!=typeof u&&(E=d=u),"function"==typeof d&&(d=u.top(this.$element)),"function"==typeof E&&(E=u.bottom(this.$element));var A=this.getState(S,v,d,E);if(this.affixed!=A){null!=this.unpin&&this.$element.css("top","");var Y="affix"+(A?"-"+A:""),z=i.Event(Y+".bs.affix");if(this.$element.trigger(z),z.isDefaultPrevented())return;this.affixed=A,this.unpin="bottom"==A?this.getPinnedOffset():null,this.$element.removeClass(m.RESET).addClass(Y).trigger(Y.replace("affix","affixed")+".bs.affix")}"bottom"==A&&this.$element.offset({top:S-v-E})}};var C=i.fn.affix;i.fn.affix=x,i.fn.affix.Constructor=m,i.fn.affix.noConflict=function(){return i.fn.affix=C,this},i(window).on("load",function(){i('[data-spy="affix"]').each(function(){var v=i(this),u=v.data();u.offset=u.offset||{},null!=u.offsetBottom&&(u.offset.bottom=u.offsetBottom),null!=u.offsetTop&&(u.offset.top=u.offsetTop),x.call(v,u)})})}(b(94572))},9322(ce,G,b){!function(i){"use strict";var m='[data-dismiss="alert"]',x=function(u){i(u).on("click",m,this.close)};x.VERSION="3.4.1",x.TRANSITION_DURATION=150,x.prototype.close=function(u){var d=i(this),E=d.attr("data-target");
1E||(E=(E=d.attr("href"))&&E.replace(/.*(?=#[^\s]*$)/,"")),E="#"===E?[]:E;var S=i(document).find(E);function A(){S.detach().trigger("closed.bs.alert").remove()}u&&u.preventDefault(),S.length||(S=d.closest(".alert")),S.trigger(u=i.Event("close.bs.alert")),u.isDefaultPrevented()||(S.removeClass("in"),i.support.transition&&S.hasClass("fade")?S.one("bsTransitionEnd",A).emulateTransitionEnd(x.TRANSITION_DURATION):A())};var v=i.fn.alert;i.fn.alert=function C(u){return this.each(function(){var d=i(this),E=d.data("bs.alert");E||d.data("bs.alert",E=new x(this)),"string"==typeof u&&E[u].call(d)})},i.fn.alert.Constructor=x,i.fn.alert.noConflict=function(){return i.fn.alert=v,this},i(document).on("click.bs.alert.data-api",m,x.prototype.close)}(b(94572))},7418(ce,G,b){!function(i){"use strict";var m=function(v,u){this.$element=i(v),this.options=i.extend({},m.DEFAULTS,u),this.isLoading=!1};function x(v){return this.each(function(){var u=i(this),d=u.data("bs.button");d||u.data("bs.button",d=new m(this,"object"==typeof v&&v)),"toggle"==v?d.toggle():v&&d.setState(v)})}m.VERSION="3.4.1",m.DEFAULTS={loadingText:"loading..."},m.prototype.setState=function(v){var u="disabled",d=this.$element,E=d.is("input")?"val":"html",S=d.data();v+="Text",null==S.resetText&&d.data("resetText",d[E]()),setTimeout(i.proxy(function(){d[E](null==S[v]?this.options[v]:S[v]),"loadingText"==v?(this.isLoading=!0,d.addClass(u).attr(u,u).prop(u,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(u).removeAttr(u).prop(u,!1))},this),0)},m.prototype.toggle=function(){var v=!0,u=this.$element.closest('[data-toggle="buttons"]');if(u.length){var d=this.$element.find("input");"radio"==d.prop("type")?(d.prop("checked")&&(v=!1),u.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==d.prop("type")&&(d.prop("checked")!==this.$element.hasClass("active")&&(v=!1),this.$element.toggleClass("active")),d.prop("checked",this.$element.hasClass("active")),v&&d.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var C=i.fn.button;i.fn.button=x,i.fn.button.Constructor=m,i.fn.button.noConflict=function(){return i.fn.button=C,this},i(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(v){var u=i(v.target).closest(".btn");x.call(u,"toggle"),i(v.target).is('input[type="radio"], input[type="checkbox"]')||(v.preventDefault(),u.is("input,button")?u.trigger("focus"):u.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(v){i(v.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(v.type))})}(b(94572))},6496(ce,G,b){!function(i){"use strict";var m=function(u,d){this.$element=i(u),this.$indicators=this.$element.find(".carousel-indicators"),this.options=d,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",i.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",i.proxy(this.pause,this)).on("mouseleave.bs.carousel",i.proxy(this.cycle,this))};function x(u){return this.each(function(){var d=i(this),E=d.data("bs.carousel"),S=i.extend({},m.DEFAULTS,d.data(),"object"==typeof u&&u),A="string"==typeof u?u:S.slide;E||d.data("bs.carousel",E=new m(this,S)),"number"==typeof u?E.to(u):A?E[A]():S.interval&&E.pause().cycle()})}m.VERSION="3.4.1",m.TRANSITION_DURATION=600,m.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},m.prototype.keydown=function(u){if(!/input|textarea/i.test(u.target.tagName)){switch(u.which){case 37:this.prev();break;case 39:this.next();break;default:return}u.preventDefault()}},m.prototype.cycle=function(u){return u||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(i.proxy(this.next,this),this.options.interval)),this},m.prototype.getItemIndex=function(u){return this.$items=u.parent().children(".item"),this.$items.index(u||this.$active)},m.prototype.getItemForDirection=function(u,d){var E=this.getItemIndex(d);return("prev"==u&&0===E||"next"==u&&E==this.$items.length-1)&&!this.options.wrap?d:this.$items.eq((E+("prev"==u?-1:1))%this.$items.length)},m.prototype.to=function(u){var d=this,E=this.getItemIndex(this.$active=this.$element.find(".
1item.active"));if(!(u>this.$items.length-1||u<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){d.to(u)}):E==u?this.pause().cycle():this.slide(u>E?"next":"prev",this.$items.eq(u))},m.prototype.pause=function(u){return u||(this.paused=!0),this.$element.find(".next, .prev").length&&i.support.transition&&(this.$element.trigger(i.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},m.prototype.next=function(){if(!this.sliding)return this.slide("next")},m.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},m.prototype.slide=function(u,d){var E=this.$element.find(".item.active"),S=d||this.getItemForDirection(u,E),A=this.interval,Y="next"==u?"left":"right",z=this;if(S.hasClass("active"))return this.sliding=!1;var U=S[0],y=i.Event("slide.bs.carousel",{relatedTarget:U,direction:Y});if(this.$element.trigger(y),!y.isDefaultPrevented()){if(this.sliding=!0,A&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var R=i(this.$indicators.children()[this.getItemIndex(S)]);R&&R.addClass("active")}var V=i.Event("slid.bs.carousel",{relatedTarget:U,direction:Y});return i.support.transition&&this.$element.hasClass("slide")?(S.addClass(u),E.addClass(Y),S.addClass(Y),E.one("bsTransitionEnd",function(){S.removeClass([u,Y].join(" ")).addClass("active"),E.removeClass(["active",Y].join(" ")),z.sliding=!1,setTimeout(function(){z.$element.trigger(V)},0)}).emulateTransitionEnd(m.TRANSITION_DURATION)):(E.removeClass("active"),S.addClass("active"),this.sliding=!1,this.$element.trigger(V)),A&&this.cycle(),this}};
1var C=i.fn.carousel;i.fn.carousel=x,i.fn.carousel.Constructor=m,i.fn.carousel.noConflict=function(){return i.fn.carousel=C,this};var v=function(u){var d=i(this),E=d.attr("href");E&&(E=E.replace(/.*(?=#[^\s]+$)/,""));var S=d.attr("data-target")||E,A=i(document).find(S);if(A.hasClass("carousel")){var Y=i.extend({},A.data(),d.data()),z=d.attr("data-slide-to");z&&(Y.interval=!1),x.call(A,Y),z&&A.data("bs.carousel").to(z),u.preventDefault()}};i(document).on("click.bs.carousel.data-api","[data-slide]",v).on("click.bs.carousel.data-api","[data-slide-to]",v),i(window).on("load",function(){i('[data-ride="carousel"]').each(function(){var u=i(this);x.call(u,u.data())})})}(b(94572))},91441(ce,G,b){!function(i){"use strict";var m=function(u,d){this.$element=i(u),this.options=i.extend({},m.DEFAULTS,d),this.$trigger=i('[data-toggle="collapse"][href="#'+u.id+'"],[data-toggle="collapse"][data-target="#'+u.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function x(u){var d,E=u.attr("data-target")||(d=u.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"");return i(document).find(E)}function C(u){return this.each(function(){var d=i(this),E=d.data("bs.collapse"),S=i.extend({},m.DEFAULTS,d.data(),"object"==typeof u&&u);!E&&S.toggle&&/show|hide/.test(u)&&(S.toggle=!1),E||d.data("bs.collapse",E=new m(this,S)),"string"==typeof u&&E[u]()})}m.VERSION="3.4.1",m.TRANSITION_DURATION=350,m.DEFAULTS={toggle:!0},m.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},m.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var u,d=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(d&&d.length&&(u=d.data("bs.collapse"),u&&u.transitioning))){var E=i.Event("show.bs.collapse");if(this.$element.trigger(E),!E.isDefaultPrevented()){d&&d.length&&(C.call(d,"hide"),u||d.data("bs.collapse",null));var S=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[S](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var A=function(){this.$element.removeClass("collapsing").addClass("collapse in")[S](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!i.support.transition)return A.call(this);var Y=i.camelCase(["scroll",S].join("-"));this.$element.one("bsTransitionEnd",i.proxy(A,this)).emulateTransitionEnd(m.TRANSITION_DURATION)[S](this.$element[0][Y])}}}},m.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var u=i.Event("hide.bs.collapse");if(this.$element.trigger(u),!u.isDefaultPrevented()){var d=this.dimension();this.$element[d](this.$element[d]()),this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var E=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!i.support.transition)return E.call(this);this.$element[d](0).one("bsTransitionEnd",i.proxy(E,this)).emulateTransitionEnd(m.TRANSITION_DURATION)}}},m.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},m.prototype.getParent=function(){return i(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(i.proxy(function(u,d){var E=i(d);this.addAriaAndCollapsedClass(x(E),E)},this)).end()},m.prototype.addAriaAndCollapsedClass=function(u,d){var E=u.hasClass("in");u.attr("aria-expanded",E),d.toggleClass("collapsed",!E).attr("aria-expanded",E)};var v=i.fn.collapse;i.fn.collapse=C,i.fn.collapse.Constructor=m,i.fn.collapse.noConflict=function(){return i.fn.collapse=v,this},i(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(u){var d=i(this);d.attr("data-target")||u.preventDefault();var E=x(d),A=E.data("bs.collapse")?"toggle":d.data();C.call(E,A)})}(b(94572))},76175(ce,G,b){!function(i){"use strict";var x='[data-toggle="dropdown"]',C=function(S){i(S).on("click.bs.dropdown",this.toggle)};function v(S){var A=S.attr("data-target");A||(A=(A=S.attr("href"))&&/#[A-Za-z]/.test(A)&&A.replace(/.*(?=#[^\s]*$)/,""));var Y="#"!==A?i(document).find(A):null;return Y&&Y.length?Y:S.parent()}function u(S){S&&3===S.which||(i(".dropdown-backdrop").remove(),i(x).each(function(){var A=i(this),Y=v(A),z={relatedTarget:this};
vendor: 4,107 bytes, line 1
1Y.hasClass("open")&&(S&&"click"==S.type&&/input|textarea/i.test(S.target.tagName)&&i.contains(Y[0],S.target)||(Y.trigger(S=i.Event("hide.bs.dropdown",z)),!S.isDefaultPrevented()&&(A.attr("aria-expanded","false"),Y.removeClass("open").trigger(i.Event("hidden.bs.dropdown",z)))))}))}C.VERSION="3.4.1",C.prototype.toggle=function(S){var A=i(this);if(!A.is(".disabled, :disabled")){var Y=v(A),z=Y.hasClass("open");if(u(),!z){"ontouchstart"in document.documentElement&&!Y.closest(".navbar-nav").length&&i(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(i(this)).on("click",u);var U={relatedTarget:this};if(Y.trigger(S=i.Event("show.bs.dropdown",U)),S.isDefaultPrevented())return;A.trigger("focus").attr("aria-expanded","true"),Y.toggleClass("open").trigger(i.Event("shown.bs.dropdown",U))}return!1}},C.prototype.keydown=function(S){if(/(38|40|27|32)/.test(S.which)&&!/input|textarea/i.test(S.target.tagName)){var A=i(this);if(S.preventDefault(),S.stopPropagation(),!A.is(".disabled, :disabled")){var Y=v(A),z=Y.hasClass("open");if(!z&&27!=S.which||z&&27==S.which)return 27==S.which&&Y.find(x).trigger("focus"),A.trigger("click");var y=Y.find(".dropdown-menu li:not(.disabled):visible a");if(y.length){var R=y.index(S.target);38==S.which&&R>0&&R--,40==S.which&&R<y.length-1&&R++,~R||(R=0),y.eq(R).trigger("focus")}}}};var E=i.fn.dropdown;i.fn.dropdown=function d(S){return this.each(function(){var A=i(this),Y=A.data("bs.dropdown");Y||A.data("bs.dropdown",Y=new C(this)),"string"==typeof S&&Y[S].call(A)})},i.fn.dropdown.Constructor=C,i.fn.dropdown.noConflict=function(){return i.fn.dropdown=E,this},i(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(S){S.stopPropagation()}).on("click.bs.dropdown.data-api",x,C.prototype.toggle).on("keydown.bs.dropdown.data-api",x,C.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",C.prototype.keydown)}(b(94572))},60217(ce,G,b){!function(i){"use strict";var m=function(v,u){this.options=u,this.$body=i(document.body),this.$element=i(v),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,i.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function x(v,u){return this.each(function(){var d=i(this),E=d.data("bs.modal"),S=i.extend({},m.DEFAULTS,d.data(),"object"==typeof v&&v);E||d.data("bs.modal",E=new m(this,S)),"string"==typeof v?E[v](u):S.show&&E.show(u)})}m.VERSION="3.4.1",m.TRANSITION_DURATION=300,m.BACKDROP_TRANSITION_DURATION=150,m.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},m.prototype.toggle=function(v){return this.isShown?this.hide():this.show(v)},m.prototype.show=function(v){var u=this,d=i.Event("show.bs.modal",{relatedTarget:v});this.$element.trigger(d),!this.isShown&&!d.isDefaultPrevented()&&(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',i.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){u.$element.one("mouseup.dismiss.bs.modal",function(E){i(E.target).is(u.$element)&&(u.ignoreBackdropClick=!0)})}),this.backdrop(function(){var E=i.support.transition&&u.$element.hasClass("fade");u.$element.parent().length||u.$element.appendTo(u.$body),u.$element.show().scrollTop(0),u.adjustDialog(),u.$element.addClass("in"),u.enforceFocus();var S=i.Event("shown.bs.modal",{relatedTarget:v});E?u.$dialog.one("bsTransitionEnd",function(){u.$element.trigger("focus").trigger(S)}).emulateTransitionEnd(m.TRANSITION_DURATION):u.$element.trigger("focus").trigger(S)}))},m.prototype.hide=function(v){v&&v.preventDefault(),v=i.Event("hide.bs.modal"),this.$element.trigger(v),this.isShown&&!v.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),i(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("
1click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),i.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",i.proxy(this.hideModal,this)).emulateTransitionEnd(m.TRANSITION_DURATION):this.hideModal())},m.prototype.enforceFocus=function(){i(document).off("focusin.bs.modal").on("focusin.bs.modal",i.proxy(function(v){document!==v.target&&this.$element[0]!==v.target&&!this.$element.has(v.target).length&&this.$element.trigger("focus")},this))},m.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",i.proxy(function(v){27==v.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},m.prototype.resize=function(){this.isShown?i(window).on("resize.bs.modal",i.proxy(this.handleUpdate,this)):i(window).off("resize.bs.modal")},m.prototype.hideModal=function(){var v=this;this.$element.hide(),this.backdrop(function(){v.$body.removeClass("modal-open"),v.resetAdjustments(),v.resetScrollbar(),v.$element.trigger("hidden.bs.modal")})},m.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},m.prototype.backdrop=function(v){var u=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var E=i.support.transition&&d;if(this.$backdrop=i(document.createElement("div")).addClass("modal-backdrop "+d).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",i.proxy(function(A){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:A.target===A.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),this.$backdrop.addClass("in"),!v)return;E?this.$backdrop.one("bsTransitionEnd",v).emulateTransitionEnd(m.BACKDROP_TRANSITION_DURATION):v()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var S=function(){u.removeBackdrop(),v&&v()};i.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",S).emulateTransitionEnd(m.BACKDROP_TRANSITION_DURATION):S()}else v&&v()},m.prototype.handleUpdate=function(){this.adjustDialog()},m.prototype.adjustDialog=function(){var v=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&v?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!v?this.scrollbarWidth:""})},m.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},m.prototype.checkScrollbar=function(){var v=window.innerWidth;if(!v){var u=document.documentElement.getBoundingClientRect();v=u.right-Math.abs(u.left)}this.bodyIsOverflowing=document.body.clientWidth<v,this.scrollbarWidth=this.measureScrollbar()},m.prototype.setScrollbar=function(){var v=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var u=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",v+u),i(this.fixedContent).each(function(d,E){var S=E.style.paddingRight,A=i(E).css("padding-right");i(E).data("padding-right",S).css("padding-right",parseFloat(A)+u+"px")}))},m.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),i(this.fixedContent).each(function(v,u){var d=i(u).data("padding-right");i(u).removeData("padding-right"),u.style.paddingRight=d||""})},m.prototype.measureScrollbar=function(){var v=document.createElement("div");v.className="modal-scrollbar-measure",this.$body.append(v);var u=v.offsetWidth-v.clientWidth;return this.$body[0].removeChild(v),u};var C=i.fn.modal;i.fn.modal=x,i.fn.modal.Constructor=m,i.fn.modal.noConflict=function(){return i.fn.modal=C,this},i(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(v){var u=i(this),d=u.attr("href"),E=u.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,""),S=i(document).find(E),A=S.data("bs.modal")?"toggle":i.extend({remote:!/#/.test(d)&&d},S.data(),u.data());u.is("a")&&v.preventDefault(),S.one("show.bs.modal",function(Y){Y.isDefaultPrevented()||S.one("hidden.bs.modal",function(){u.is(":visible")&&u.trigger("focus")})}),x.call(S,A,this)})}(b(94572))},20477(ce,G,b){!function(i){"use strict";var m=function(v,u){this.init("popover",v,u)}
1;if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");m.VERSION="3.4.1",m.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(m.prototype=i.extend({},i.fn.tooltip.Constructor.prototype)).constructor=m,m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.setContent=function(){var v=this.tip(),u=this.getTitle(),d=this.getContent();if(this.options.html){var E=typeof d;this.options.sanitize&&(u=this.sanitizeHtml(u),"string"===E&&(d=this.sanitizeHtml(d))),v.find(".popover-title").html(u),v.find(".popover-content").children().detach().end()["string"===E?"html":"append"](d)}else v.find(".popover-title").text(u),v.find(".popover-content").children().detach().end().text(d);v.removeClass("fade top bottom left right in"),v.find(".popover-title").html()||v.find(".popover-title").hide()},m.prototype.hasContent=function(){return this.getTitle()||this.getContent()},m.prototype.getContent=function(){var v=this.$element,u=this.options;return v.attr("data-content")||("function"==typeof u.content?u.content.call(v[0]):u.content)},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var C=i.fn.popover;i.fn.popover=function x(v){return this.each(function(){var u=i(this),d=u.data("bs.popover"),E="object"==typeof v&&v;!d&&/destroy|hide/.test(v)||(d||u.data("bs.popover",d=new m(this,E)),"string"==typeof v&&d[v]())})},i.fn.popover.Constructor=m,i.fn.popover.noConflict=function(){return i.fn.popover=C,this}}(b(94572))},3029(ce,G,b){!function(i){"use strict";function m(v,u){this.$body=i(document.body),this.$scrollElement=i(v).is(document.body)?i(window):i(v),this.options=i.extend({},m.DEFAULTS,u),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",i.proxy(this.process,this)),this.refresh(),this.process()}function x(v){return this.each(function(){var u=i(this),d=u.data("bs.scrollspy");d||u.data("bs.scrollspy",d=new m(this,"object"==typeof v&&v)),"string"==typeof v&&d[v]()})}m.VERSION="3.4.1",m.DEFAULTS={offset:10},m.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},m.prototype.refresh=function(){var v=this,u="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),i.isWindow(this.$scrollElement[0])||(u="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var E=i(this),S=E.data("target")||E.attr("href"),A=/^#./.test(S)&&i(S);return A&&A.length&&A.is(":visible")&&[[A[u]().top+d,S]]||null}).sort(function(E,S){return E[0]-S[0]}).each(function(){v.offsets.push(this[0]),v.targets.push(this[1])})},m.prototype.process=function(){var Y,v=this.$scrollElement.scrollTop()+this.options.offset,u=this.getScrollHeight(),d=this.options.offset+u-this.$scrollElement.height(),E=this.offsets,S=this.targets,A=this.activeTarget;if(this.scrollHeight!=u&&this.refresh(),v>=d)return A!=(Y=S[S.length-1])&&this.activate(Y);if(A&&v<E[0])return this.activeTarget=null,this.clear();for(Y=E.length;Y--;)A!=S[Y]&&v>=E[Y]&&(void 0===E[Y+1]||v<E[Y+1])&&this.activate(S[Y])},m.prototype.activate=function(v){this.activeTarget=v,this.clear();var d=i(this.selector+'[data-target="'+v+'"],'+this.selector+'[href="'+v+'"]').parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},m.prototype.clear=function(){i(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var C=i.fn.scrollspy;i.fn.scrollspy=x,i.fn.scrollspy.Constructor=m,i.fn.scrollspy.noConflict=function(){return i.fn.scrollspy=C,this},i(window).on("load.bs.scrollspy.data-api",function(){i('[data-spy="scroll"]').each(function(){var v=i(this);x.call(v,v.data())})})}(b(94572))},51259(ce,G,b){!function(i){"use strict";var m=function(u){this.element=i(u)};function x(u){return this.each(function(){var d=i(this),E=d.data("bs.tab");E||d.data("bs.tab",E=new m(this)),"string"==typeof u&&E[u]()})}m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.prototype.show=function(){var u=this.element,d=u.closest("ul:not(.dropdown-menu)"),E=u.data("target");if(E||(E=(E=u.attr("href"))&&E.replace(/.*(?=#[^\s]*$)/,"")),!u.parent("li").hasClass("active")){var S=d.find(".active:last a"),A=i.Event("hide.bs.tab",{relatedTarget:u[0]}),Y=i.Event("show.bs.tab",{relatedTarget:S[0]});if(S.trigger(A),u.trigger(Y),!Y.isDefaultPrevented()&&!A.isDefaultPrevented()){var z=i(document).find(E);this.activate(u.closest("li"),d),this.activate(z,z.parent(),function(){S.trigger({type:"hidden.bs.tab",relatedTarget:u[0]}),u.trigger({type:"shown.bs.tab",relatedTarget:S[0]})})}}},m.prototype.activate=function(u,d,E){var S=d.find("> .active"),A=E&&i.support.transition&&(S.length&&S.hasClass("fade")||!!d.find("> .fade").length);function Y(){S.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),u.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),A?u.addClass("in"):u.removeClass("fade"),u.parent(".dropdown-menu").length&&u.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),E&&E()}S.length&&A?S.one("bsTransitionEnd",Y).emulateTransitionEnd(m.TRANSITION_DURATION):Y(),S.removeClass("in")};var C=i.fn.tab;i.fn.tab=x,i.fn.tab.Constructor=m,i.fn.tab.noConflict=function(){return i.fn.tab=C,this};var v=function(u){u.preventDefault(),x.call(i(this),"show")};i(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',v).on("click.bs.tab.data-api",'[data-toggle="pill"]',v)}(b(94572))},22215(ce,G,b){!function(i){"use strict";var m=["sanitize","whiteList","sanitizeFn"],x=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],u=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,d=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function E(U,y){var R=U.nodeName.toLowerCase();if(-1!==i.inArray(R,y))return-1===i.inArray(R,x)||!(!U.nodeValue.match(u)&&!U.nodeValue.match(d));for(var V=i(y).filter(function(ne,oe){return oe instanceof RegExp}),ee=0,J=V.length;ee<J;ee++)if(R.match(V[ee]))return!0;return!1}function S(U,y,R){if(0===U.length)return U;if(R&&"function"==typeof R)return R(U);if(!document.implementation||!document.implementation.createHTMLDocument)return U;var V=document.implementation.createHTMLDocument("sanitization");V.body.innerHTML=U;for(var ee=i.map(y,function(k,K){return K}),J=i(V.body).find("*"),ne=0,oe=J.length;ne<oe;ne++){var B=J[ne],D=B.nodeName.toLowerCase();if(-1!==i.inArray(D,ee))for(var L=i.map(B.attributes,function(k){return k}),g=[].concat(y["*"]||[],y[D]||[]),ie=0,de=L.length;ie<de;ie++)E(L[ie],g)||B.removeAttribute(L[ie].nodeName);else B.parentNode.removeChild(B)}return V.body.innerHTML}var A=function(U,y){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",U,y)};A.VERSION="3.4.1",A.TRANSITION_DURATION=150,A.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},A.prototype.init=function(U,y,R){if(this.enabled=!0,this.type=U,this.$element=i(y),this.options=this.getOptions(R),this.$viewport=this.options.viewport&&i(document).find(i.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var V=this.options.trigger.split(" "),ee=V.length;ee--;){var J=V[ee];if("click"==J)this.$element.on("click."+this.type,this.options.selector,i.proxy(this.toggle,this));else if("manual"!=J){var oe="hover"==J?"mouseleave":"focusout";this.$element.on(("hover"==J?"mouseenter":"focusin")+"."+this.type,this.options.selector,i.proxy(this.enter,this)),this.$element.on(oe+"."+this.type,this.options.selector,i.proxy(this.leave,this))}}this.options.selector?this._options=i.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},A.prototype.getDefaults=function(){return A.DEFAULTS},A.prototype.getOptions=function(U){var y=this.$element.data();for(var R in y)y.hasOwnProperty(R)&&-1!==i.inArray(R,m)&&delete y[R];return(U=i.extend({},this.getDefaults(),y,U)).delay&&"number"==typeof U.delay&&(U.delay={show:U.delay,hide:U.delay}),U.sanitize&&(U.template=S(U.template,U.whiteList,U.sanitizeFn)),U},A.prototype.getDelegateOptions=function(){var U={},y=this.getDefaults();return this._options&&i.each(this._options,function(R,V){y[R]!=V&&(U[R]=V)}),U},A.prototype.enter=function(U){var y=U instanceof this.constructor?U:i(U.currentTarget).data("bs."+this.type);if(y||(y=new this.constructor(U.currentTarget,this.getDelegateOptions()),i(U.currentTarget).data("bs."+this.type,y)),U instanceof i.Event&&(y.inState["focusin"==U.type?"focu
1s":"hover"]=!0),!y.tip().hasClass("in")&&"in"!=y.hoverState)return clearTimeout(y.timeout),y.hoverState="in",y.options.delay&&y.options.delay.show?void(y.timeout=setTimeout(function(){"in"==y.hoverState&&y.show()},y.options.delay.show)):y.show();y.hoverState="in"},A.prototype.isInStateTrue=function(){for(var U in this.inState)if(this.inState[U])return!0;return!1},A.prototype.leave=function(U){var y=U instanceof this.constructor?U:i(U.currentTarget).data("bs."+this.type);if(y||(y=new this.constructor(U.currentTarget,this.getDelegateOptions()),i(U.currentTarget).data("bs."+this.type,y)),U instanceof i.Event&&(y.inState["focusout"==U.type?"focus":"hover"]=!1),!y.isInStateTrue()){if(clearTimeout(y.timeout),y.hoverState="out",!y.options.delay||!y.options.delay.hide)return y.hide();y.timeout=setTimeout(function(){"out"==y.hoverState&&y.hide()},y.options.delay.hide)}},A.prototype.show=function(){var U=i.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(U);var y=i.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(U.isDefaultPrevented()||!y)return;var R=this,V=this.tip(),ee=this.getUID(this.type);this.setContent(),V.attr("id",ee),this.$element.attr("aria-describedby",ee),this.options.animation&&V.addClass("fade");var J="function"==typeof this.options.placement?this.options.placement.call(this,V[0],this.$element[0]):this.options.placement,ne=/\s?auto?\s?/i,oe=ne.test(J);oe&&(J=J.replace(ne,"")||"top"),V.detach().css({top:0,left:0,display:"block"}).addClass(J).data("bs."+this.type,this),this.options.container?V.appendTo(i(document).find(this.options.container)):V.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var B=this.getPosition(),D=V[0].offsetWidth,L=V[0].offsetHeight;if(oe){var g=J,ie=this.getPosition(this.$viewport);J="bottom"==J&&B.bottom+L>ie.bottom?"top":"top"==J&&B.top-L<ie.top?"bottom":"right"==J&&B.right+D>ie.width?"left":"left"==J&&B.left-D<ie.left?"right":J,V.removeClass(g).addClass(J)}var de=this.getCalculatedOffset(J,B,D,L);this.applyPlacement(de,J);var k=function(){var K=R.hoverState;R.$element.trigger("shown.bs."+R.type),R.hoverState=null,"out"==K&&R.leave(R)};i.support.transition&&this.$tip.hasClass("fade")?V.one("bsTransitionEnd",k).emulateTransitionEnd(A.TRANSITION_DURATION):k()}},A.prototype.applyPlacement=function(U,y){var R=this.tip(),V=R[0].offsetWidth,ee=R[0].offsetHeight,J=parseInt(R.css("margin-top"),10),ne=parseInt(R.css("margin-left"),10);isNaN(J)&&(J=0),isNaN(ne)&&(ne=0),U.top+=J,U.left+=ne,i.offset.setOffset(R[0],i.extend({using:function(de){R.css({top:Math.round(de.top),left:Math.round(de.left)})}},U),0),R.addClass("in");var oe=R[0].offsetWidth,B=R[0].offsetHeight;"top"==y&&B!=ee&&(U.top=U.top+ee-B);var D=this.getViewportAdjustedDelta(y,U,oe,B);D.left?U.left+=D.left:U.top+=D.top;var L=/top|bottom/.test(y),g=L?2*D.left-V+oe:2*D.top-ee+B,ie=L?"offsetWidth":"offsetHeight";R.offset(U),this.replaceArrow(g,R[0][ie],L)},A.prototype.replaceArrow=function(U,y,R){this.arrow().css(R?"left":"top",50*(1-U/y)+"%").css(R?"top":"left","")},A.prototype.setContent=function(){var U=this.tip(),y=this.getTitle();this.options.html?(this.options.sanitize&&(y=S(y,this.options.whiteList,this.options.sanitizeFn)),U.find(".tooltip-inner").html(y)):U.find(".tooltip-inner").text(y),U.removeClass("fade in top bottom left right")},A.prototype.hide=function(U){var y=this,R=i(this.$tip),V=i.Event("hide.bs."+this.type);function ee(){"in"!=y.hoverState&&R.detach(),y.$element&&y.$element.removeAttr("aria-describedby").trigger("hidden.bs."+y.type),U&&U()}if(this.$element.trigger(V),!V.isDefaultPrevented())return R.removeClass("in"),i.support.transition&&R.hasClass("fade")?R.one("bsTransitionEnd",ee).emulateTransitionEnd(A.TRANSITION_DURATION):ee(),this.hoverState=null,this},A.prototype.fixTitle=function(){var U=this.$element;(U.attr("title")||"string"!=typeof U.attr("data-original-title"))&&U.attr("data-original-title",U.attr("title")||"").attr("title","")},A.prototype.hasContent=function(){return this.getTitle()},A.prototype.getPosition=function(U){var y=(U=U||this.$element)[0],R="BODY"==y.tagName,V=y.getBoundingClientRect();null==V.width&&(V=i.extend({},V,{width:V.right-V.left,height:V.bottom-V.top}
1));var ee=window.SVGElement&&y instanceof window.SVGElement,J=R?{top:0,left:0}:ee?null:U.offset(),ne={scroll:R?document.documentElement.scrollTop||document.body.scrollTop:U.scrollTop()},oe=R?{width:i(window).width(),height:i(window).height()}:null;return i.extend({},V,ne,oe,J)},A.prototype.getCalculatedOffset=function(U,y,R,V){return"bottom"==U?{top:y.top+y.height,left:y.left+y.width/2-R/2}:"top"==U?{top:y.top-V,left:y.left+y.width/2-R/2}:"left"==U?{top:y.top+y.height/2-V/2,left:y.left-R}:{top:y.top+y.height/2-V/2,left:y.left+y.width}},A.prototype.getViewportAdjustedDelta=function(U,y,R,V){var ee={top:0,left:0};if(!this.$viewport)return ee;var J=this.options.viewport&&this.options.viewport.padding||0,ne=this.getPosition(this.$viewport);if(/right|left/.test(U)){var oe=y.top-J-ne.scroll,B=y.top+J-ne.scroll+V;oe<ne.top?ee.top=ne.top-oe:B>ne.top+ne.height&&(ee.top=ne.top+ne.height-B)}else{var D=y.left-J,L=y.left+J+R;D<ne.left?ee.left=ne.left-D:L>ne.right&&(ee.left=ne.left+ne.width-L)}return ee},A.prototype.getTitle=function(){var y=this.$element,R=this.options;return y.attr("data-original-title")||("function"==typeof R.title?R.title.call(y[0]):R.title)},A.prototype.getUID=function(U){do{U+=~~(1e6*Math.random())}while(document.getElementById(U));return U},A.prototype.tip=function(){if(!this.$tip&&(this.$tip=i(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},A.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},A.prototype.enable=function(){this.enabled=!0},A.prototype.disable=function(){this.enabled=!1},A.prototype.toggleEnabled=function(){this.enabled=!this.enabled},A.prototype.toggle=function(U){var y=this;U&&((y=i(U.currentTarget).data("bs."+this.type))||(y=new this.constructor(U.currentTarget,this.getDelegateOptions()),i(U.currentTarget).data("bs."+this.type,y))),U?(y.inState.click=!y.inState.click,y.isInStateTrue()?y.enter(y):y.leave(y)):y.tip().hasClass("in")?y.leave(y):y.enter(y)},A.prototype.destroy=function(){var U=this;clearTimeout(this.timeout),this.hide(function(){U.$element.off("."+U.type).removeData("bs."+U.type),U.$tip&&U.$tip.detach(),U.$tip=null,U.$arrow=null,U.$viewport=null,U.$element=null})},A.prototype.sanitizeHtml=function(U){return S(U,this.options.whiteList,this.options.sanitizeFn)};var z=i.fn.tooltip;i.fn.tooltip=function Y(U){return this.each(function(){var y=i(this),R=y.data("bs.tooltip"),V="object"==typeof U&&U;!R&&/destroy|hide/.test(U)||(R||y.data("bs.tooltip",R=new A(this,V)),"string"==typeof U&&R[U]())})},i.fn.tooltip.Constructor=A,i.fn.tooltip.noConflict=function(){return i.fn.tooltip=z,this}}(b(94572))},84981(ce,G,b){!function(i){"use strict";i.fn.emulateTransitionEnd=function(x){var C=!1,v=this;return i(this).one("bsTransitionEnd",function(){C=!0}),setTimeout(function(){C||i(v).trigger(i.support.transition.end)},x),this},i(function(){i.support.transition=function m(){var x=document.createElement("bootstrap"),C={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var v in C)if(void 0!==x.style[v])return{end:C[v]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(x){if(i(x.target).is(this))return x.handleObj.handler.apply(this,arguments)}})})}(b(94572))},85976(ce){typeof self<"u"&&self,ce.exports=function(G){var b={};function P(i){if(b[i])return b[i].exports;var m=b[i]={i,l:!1,exports:{}};return G[i].call(m.exports,m,m.exports,P),m.l=!0,m.exports}return P.m=G,P.c=b,P.d=function(i,m,x){P.o(i,m)||Object.defineProperty(i,m,{configurable:!1,enumerable:!0,get:x})},P.n=function(i){var m=i&&i.__esModule?function(){return i.default}:function(){return i};return P.d(m,"a",m),m},P.o=function(i,m){return Object.prototype.hasOwnProperty.call(i,m)},P.p="",P(P.s=2)}([function(G,b){var P;P=function(){return this}();try{P=P||Function("return this")()||(0,eval)("this")}catch{"object"==typeof window&&(P=window)}G.exports=P},function(G,b,P){"use strict";
1G.exports=C;var i=P(3),m=P(4),x=Array.prototype;function C(v){if(!(this instanceof C))return new C(v);var u,d=m(v.className).split(/\s+/);for(this._elem=v,this.length=0,u=0;u<d.length;u+=1)d[u]&&x.push.call(this,d[u])}C.prototype.add=function(){var v,u;for(u=0;u<arguments.length;u+=1)i(this,v=""+arguments[u])>=0||x.push.call(this,v);return this._elem.className=this.toString(),this},C.prototype.remove=function(){var v,d;for(d=0;d<arguments.length;d+=1)(v=i(this,""+arguments[d]))<0||x.splice.call(this,v,1);return this._elem.className=this.toString(),this},C.prototype.contains=function(v){return i(this,v+="")>=0},C.prototype.toggle=function(v,u){return v+="",!0===u?this.add(v):!1===u?this.remove(v):this[this.contains(v)?"remove":"add"](v)},C.prototype.toString=function(){return x.join.call(this," ")}},function(G,b,P){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(oe){return typeof oe}:function(oe){return oe&&"function"==typeof Symbol&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},m=function(){function oe(B,D){for(var L=0;L<D.length;L++){var g=D[L];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(B,g.key,g)}}return function(B,D,L){return D&&oe(B.prototype,D),L&&oe(B,L),B}}(),x=ne(P(1)),C=ne(P(5)),v=ne(P(6)),u=ne(P(7)),d=ne(P(8)),E=ne(P(9)),S=ne(P(10)),A=ne(P(12)),Y=ne(P(14)),z=ne(P(15)),U=ne(P(17)),y=ne(P(18)),R=ne(P(19)),V=ne(P(31)),ee=ne(P(32)),J=ne(P(35));function ne(oe){return oe&&oe.__esModule?oe:{default:oe}}G.exports=function(){function oe(B){var D=this;if(function(g,ie){if(!(g instanceof ie))throw new TypeError("Cannot call a class as a function")}(this,oe),this.config=(0,ee.default)(B=B||{}),this.input=(0,z.default)(this.config.input),this.list=(0,z.default)(this.config.list),this.cachedOpts=this.currentOpts=(0,z.default)(this.config.options,!0,this.list),this.isOpen=!1,this.currentOption=null,this.selected=[],this.groups=[],this.isHovering=!1,this.autoFilter=this.config.autoFilter,this.optionsWithEventHandlers=new Set,this.optionsWithKeyEventHandlers=new Set,this.config.groups){var L=(0,z.default)(this.config.groups,!0,this.list);this.groups=L.map(function(g){return{element:g,options:D.cachedOpts.filter(function(ie){return g.contains(ie)})}})}if(!this.input||!this.list)throw new Error("Unable to find required elements (list/input)");(0,R.default)(this.input,this.list,this.cachedOpts),this.config.useLiveRegion&&(this.liveRegion=new v.default({ariaLive:"assertive"})),this.initEvents()}return m(oe,[{key:"initEvents",value:function(){var B=this;(0,C.default)(this),this.optionsWithKeyEventHandlers.has(this.input)||(this.input.addEventListener("click",function(){B.openList().goTo(B.getOptIndex()||0)}),this.input.addEventListener("blur",function(){B.isHovering||B.closeList()}),this.input.addEventListener("focus",function(){B.selected.length&&(B.input.value=B.selected.length>=2?"":B.config.selectionValue(B.selected)),B.input.select()}),document.addEventListener("click",function(D){!(0,Y.default)(D.target,[B.input,B.list],!0)&&B.isOpen&&B.closeList()})),this.optionEvents(),this.initKeys()}},{key:"getOptIndex",value:function(){return this.currentOption&&this.currentOpts.indexOf(this.currentOption)}},{key:"optionEvents",value:function(){var B=this;this.cachedOpts.forEach(function(D){B.optionsWithEventHandlers.has(D.id)||B.selected.includes(D)||(D.addEventListener("click",function(){B.goTo(B.currentOpts.indexOf(D)).select()}),D.addEventListener("mouseover",function(){var L=B.currentOption;L&&(0,x.default)(L).remove(B.config.activeClass),(0,x.default)(D).add(B.config.activeClass),B.isHovering=!0}),D.addEventListener("mouseout",function(){(0,x.default)(D).remove(B.config.activeClass),B.isHovering=!1}),B.optionsWithEventHandlers.add(D.id))})}},{key:"openList",value:function(){(0,x.default)(this.list).add(this.config.openClass),this.input.setAttribute("aria-expanded","true"),this.isOpen||this.announceCount(),this.isOpen=!0,this.emit("list:open");var B=(0,E.default)(this.list);if(!B.visible){var D="bottom"===B.position?0-(window.innerHeight-(this.input.clientHeight+this.list.clientHeight)):0;(0,u.default)({element:this.input,offset:D,bezier:[.19,1,.22,1],duration:100})}return this}},{key:"closeList",value:function(B,D){return(0,x.default)(this.list).remove(this.config.openClass),this.input.setAttribute("aria-expanded","fal
1se"),this.isOpen=!1,B&&this.input.focus(),!this.multiselect&&this.selected.length&&(this.input.value=this.config.selectionValue(this.selected)),D&&this.input.select(),this.emit("list:close"),this}},{key:"initKeys",value:function(){var B=this;if(!this.optionsWithKeyEventHandlers.has(this.input)){this.optionsWithKeyEventHandlers.add(this.input),A.default.down(this.input,[{keys:["up","down"],callback:function(L,g){if(B.isOpen)return-1===B.currentOpts.indexOf(B.currentOption)?B.goTo(0,!0):B.goTo("down"===g?"next":"prev",!0);var ie=B.selected.length?B.currentOpts.indexOf(B.selected[B.selected.length-1]):0;B.goTo(ie,!0).openList()},preventDefault:!0},{keys:["enter"],callback:function(L){B.isOpen&&(L.preventDefault(),L.stopPropagation(),B.select())}},{keys:["escape"],callback:function(L){B.isOpen&&(L.stopPropagation(),B.closeList(!0,!0))}},{keys:["backspace"],callback:function(){B.selected.length>=2&&(B.input.value="")}}]);var D=[9,13,27,16];A.default.up(this.input,function(L){if(B.autoFilter){var g=B.config.filter,ie=B.cachedInputValue;D.indexOf(L.which)>-1||!g||(B.freshSelection?(B.clearFilters(),ie&&ie.trim()!==B.input.value.trim()&&(B.filter().openList(),B.freshSelection=!1)):B.filter().openList(),(0,y.default)(B.list,B.currentOpts,B.config.noResultsText))}})}}},{key:"clearFilters",value:function(){return this.cachedOpts.forEach(function(B){return B.style.display=""}),this.groups.forEach(function(B){return B.element.style.display=""}),this.currentOpts=this.cachedOpts,this}},{key:"filter",value:function(B){var D=this,L=this.config.filter,g=this.currentOpts;return this.currentOpts="function"==typeof L?L(this.input.value.trim(),this.cachedOpts):S.default[L](this.input.value.trim(),this.cachedOpts),this.currentOpts=this.currentOpts||[],this.updateOpts(),g.every(function(ie){return D.currentOpts.indexOf(ie)>-1})||B||this.announceCount(),this}},{key:"announceCount",value:function(){var B=this.config.announcement&&this.config.announcement.count;return B&&this.liveRegion&&this.liveRegion.announce(B(this.currentOpts.length),500),this}},{key:"updateOpts",value:function(){var B=this,D=this.config.optionValue;return this.cachedOpts.forEach(function(L){L.style.display=-1===B.currentOpts.indexOf(L)?"none":"",L.innerHTML="string"==typeof D?(0,V.default)(L,B.input,D):D(L)}),this.updateGroups(),this}},{key:"updateGroups",value:function(){return this.groups.forEach(function(B){var D=B.options.filter(function(L){return""===L.style.display});B.element.style.display=D.length?"":"none"}),this}},{key:"select",value:function(){var B=this,D=this.currentOption;if(D){!this.config.multiselect&&this.selected.length&&(0,x.default)(this.selected[0]).remove(this.config.selectedClass);var L=this.selected.indexOf(D),g=L>-1;return this.config.multiselect?g?this.selected.splice(L,1):this.selected.push(D):this.selected=this.config.allowEmpty&&g?[]:[D],this.cachedOpts.forEach(function(ie){ie.setAttribute("aria-selected",B.selected.indexOf(ie)>-1?"true":"false")}),g?(D.classList.remove(this.config.selectedClass),this.emit("deselection",{text:this.input.value,option:D})):(D.classList.add(this.config.selectedClass),this.emit("selection",{text:this.input.value,option:D})),this.freshSelection=!0,this.input.value=this.selected.length?this.config.selectionValue(this.selected):"",this.cachedInputValue=this.input.value,this.filter(!0).clearFilters(),this.config.multiselect||(this.closeList(),this.input.select()),this}}},{key:"reset",value:function(){var B=this;return this.clearFilters(),this.input.value="",this.updateOpts(),this.input.removeAttribute("aria-activedescendant"),this.input.removeAttribute("data-active-option"),this.currentOption=null,this.selected=[],this.cachedOpts.forEach(function(D){(0,x.default)(D).remove(B.config.selectedClass),(0,x.default)(D).remove(B.config.activeClass),D.setAttribute("aria-selected","false")}),this}},{key:"goTo",value:function(B,D){var L=this;if("string"==typeof B){var g=this.getOptIndex();return this.goTo("next"===B?g+1:g-1,D)}var ie=this.currentOpts[B],de=!1;if(!this.currentOpts[B])return 0===this.getOptIndex()&&(this.list.scrollTop=0),this;if(this.groups.length){var k=(0,U.default)(this.groups,ie);de=k&&k!==this.currentGroup,this.currentGroup=k}return this.currentOption=ie,this.pseudoFocus(de),this.currentOpts.forEac
1h(function(K){K.classList.contains(L.config.activeClass)&&!(0,d.default)(L.list,K)&&(0,u.default)(K)}),this}},{key:"pseudoFocus",value:function(B){var D=this.currentOption,L=this.config.activeClass,g=this.input.getAttribute("data-active-option"),ie=g&&document.getElementById(g);return ie&&L&&(0,x.default)(ie).remove(L),D&&(this.input.setAttribute("data-active-option",D.id),L&&(0,x.default)(D).add(L),this.liveRegion&&(0,J.default)(D,this.config,this.liveRegion.announce.bind(this.liveRegion),B,this.currentGroup&&this.currentGroup.element),this.input.setAttribute("aria-activedescendant",D.id),this.currentOption=D,this.emit("change")),this}},{key:"setOptions",value:function(B){return"object"===(void 0===B?"undefined":i(B))&&this.config.list.append(B),this.cachedOpts.push(B),-1===this.currentOpts.indexOf(B)&&this.currentOpts.push(B),this}},{key:"setCurrentOptions",value:function(){return this.currentOption=this.currentOpts[0],this}},{key:"updateSelectedOptions",value:function(){var B=this,D=document.getElementById(this.config.list.id),L=this.selected;for(this.emptyDropdownList();D.hasChildNodes();)D.removeChild(D.firstChild);return L.length>0&&L.forEach(function(g){B.setOptions(g)}),this}},{key:"emptyDropdownList",value:function(){return this.currentOpts=[],this.cachedOpts=[],this.optionsWithEventHandlers.clear(),this}},{key:"setNoResultFound",value:function(){(0,y.default)(this.list,this.currentOpts,this.config.noResultsText)}}]),oe}()},function(G,b){G.exports=function(P,i){if(P.indexOf)return P.indexOf(i);for(var m=0;m<P.length;++m)if(P[m]===i)return m;return-1}},function(G,b){(b=G.exports=function(P){return P.replace(/^\s*|\s*$/g,"")}).left=function(P){return P.replace(/^\s*/,"")},b.right=function(P){return P.replace(/\s*$/,"")}},function(G,b,P){function i(m){if(m)return function(x){for(var C in i.prototype)x[C]=i.prototype[C];return x}(m)}G.exports=i,i.prototype.on=i.prototype.addEventListener=function(m,x){return this._callbacks=this._callbacks||{},(this._callbacks["$"+m]=this._callbacks["$"+m]||[]).push(x),this},i.prototype.once=function(m,x){function C(){this.off(m,C),x.apply(this,arguments)}return C.fn=x,this.on(m,C),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(m,x){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var C,v=this._callbacks["$"+m];if(!v)return this;if(1==arguments.length)return delete this._callbacks["$"+m],this;for(var u=0;u<v.length;u++)if((C=v[u])===x||C.fn===x){v.splice(u,1);break}return this},i.prototype.emit=function(m){this._callbacks=this._callbacks||{};var x=[].slice.call(arguments,1),C=this._callbacks["$"+m];if(C)for(var v=0,u=(C=C.slice(0)).length;v<u;++v)C[v].apply(this,x);return this},i.prototype.listeners=function(m){return this._callbacks=this._callbacks||{},this._callbacks["$"+m]||[]},i.prototype.hasListeners=function(m){return!!this.listeners(m).length}},function(G,b,P){"use strict";function i(m){this.region=document.createElement("div"),this.options=m||{},this.configure(),document.body.appendChild(this.region)}i.prototype.configure=function(){var m=this.options,x=this.region;x.setAttribute("aria-live",m.ariaLive||"polite"),x.setAttribute("role",m.role||"log"),x.setAttribute("aria-relevant",m.ariaRelevant||"additions"),x.setAttribute("aria-atomic",m.ariaAtomic||"false"),this.region.style.position="absolute",this.region.style.width="1px",this.region.style.height="1px",this.region.style.marginTop="-1px",this.region.style.clip="rect(1px, 1px, 1px, 1px)",this.region.style.overflow="hidden"},i.prototype.announce=function(m,x){var C=document.createElement("div");C.innerHTML=m,this.region.appendChild(C),(x||void 0===x)&&setTimeout(function(){this.region.removeChild(C)}.bind(this),x||7e3)},G.exports=i},function(G,b,P){var i;i=function(){return function(m){function x(v){if(C[v])return C[v].exports;var u=C[v]={i:v,l:!1,exports:{}};return m[v].call(u.exports,u,u.exports,x),u.l=!0,u.exports}var C={};return x.m=m,x.c=C,x.i=function(v){return v},x.d=function(v,u,d){x.o(v,u)||Object.defineProperty(v,u,{configurable:!1,enumerable:!0,get:d})}
1,x.n=function(v){var u=v&&v.__esModule?function(){return v.default}:function(){return v};return x.d(u,"a",u),u},x.o=function(v,u){return Object.prototype.hasOwnProperty.call(v,u)},x.p="",x(x.s=1)}([function(m,x,C){"use strict";function v(z){return z&&z.__esModule?z:{default:z}}function u(){}Object.defineProperty(x,"__esModule",{value:!0});var d=v(C(4)),E=v(C(7)),S=C(2),A=v(C(3)),Y=[.19,1,.22,1];x.default=function(z){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,y=0,R=void 0,V=void 0;if((0,S.isElement)(z))R=d.default.apply(void 0,Y),V=u;else{if(!(0,S.isObject)(z))throw new TypeError("The first argument must be HTMLElement or Object.");if(!(0,S.isElement)(z.element))throw new TypeError("`element` must be HTMLElement.");y=(0,S.isNumeric)(z.offset)?z.offset:0,R=(0,S.isArray)(z.bezier)&&4===z.bezier.length?d.default.apply(void 0,function(D){if(Array.isArray(D)){for(var L=0,g=Array(D.length);L<D.length;L++)g[L]=D[L];return g}return Array.from(D)}(z.bezier)):d.default.apply(void 0,Y),U=z.duration,V=(0,S.isFunction)(z.then)?z.then:u,z=z.element}(!(0,S.isNumeric)(U)||U<0)&&(U=100);var ee=(0,A.default)(z),J=ee.scrollTop,ne=ee.offsetTop,oe=null,B=("BODY"===ee.nodeName?z.getBoundingClientRect().top+(window.scrollY||window.pageYOffset||document.body.scrollTop)-ne:z.offsetTop-ne)-J+y;(0,E.default)(function D(L){null===oe&&(oe=L);var g=L-oe,ie=R(g/U)*B;ee.scrollTop=Math.round(J+ie),g<U?(0,E.default)(D):V()})}},function(m,x,C){"use strict";var u,v=(u=C(0))&&u.__esModule?u:{default:u};m.exports=v.default},function(m,x,C){"use strict";function v(E){return Object.prototype.toString.call(E)}function u(E){return!isNaN(parseFloat(E))&&isFinite(E)}Object.defineProperty(x,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E};x.isObject=function(E){return"[object Object]"===v(E)},x.isArray=function(E){return null!=E&&"[object Array]"===v(E)},x.isNumeric=u,x.isPositive=function(E){return u(E)&&E>=0},x.isFunction=function(E){return null!=E&&"[object Function]"===v(E)},x.isElement=function(E){return"object"===d(window.HTMLElement)?E instanceof window.HTMLElement:!!E&&"object"===(void 0===E?"undefined":d(E))&&null!==E&&1===E.nodeType&&"string"==typeof E.nodeName}},function(m,x,C){"use strict";function v(E,S){return window.getComputedStyle(E,null).getPropertyValue(S)}function u(E){if(1===E.nodeType)return d.test(v(S=E,"overflow")+v(S,"overflow-y"))&&E.scrollHeight>E.clientHeight;var S}Object.defineProperty(x,"__esModule",{value:!0});var d=/(auto|scroll)/;x.default=function(E){for(var S=function U(y){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],V=y.parentNode;return null===V||"HTML"===V.nodeName?R:U(V,R.concat(V))}(E),A=document.body,Y=0,z=S.length;Y<z;Y++)if(u(S[Y])){A=S[Y];break}return A}},function(m,x){function C(ee,J){return 1-3*J+3*ee}function v(ee,J){return 3*J-6*ee}function u(ee){return 3*ee}function d(ee,J,ne){return((C(J,ne)*ee+v(J,ne))*ee+u(J))*ee}function E(ee,J,ne){return 3*C(J,ne)*ee*ee+2*v(J,ne)*ee+u(J)}var Y=4,z=1e-7,U=10,R=.1,V="function"==typeof Float32Array;m.exports=function(ee,J,ne,oe){function B(g){for(var ie=0,de=1;10!==de&&D[de]<=g;++de)ie+=R;var K=ie+(g-D[--de])/(D[de+1]-D[de])*R,se=E(K,ee,ne);return se>=.001?function A(ee,J,ne,oe){for(var B=0;B<Y;++B){var D=E(J,ne,oe);if(0===D)return J;J-=(d(J,ne,oe)-ee)/D}return J}(g,K,ee,ne):0===se?K:function S(ee,J,ne,oe,B){var D,L,g=0;do{(D=d(L=J+(ne-J)/2,oe,B)-ee)>0?ne=L:J=L}while(Math.abs(D)>z&&++g<U);return L}(g,ie,ie+R,ee,ne)}if(!(0<=ee&&ee<=1&&0<=ne&&ne<=1))throw new Error("bezier x values must be in [0, 1] range");var D=V?new Float32Array(11):new Array(11);if(ee!==J||ne!==oe)for(var L=0;L<11;++L)D[L]=d(L*R,ee,ne);return function(g){return ee===J&&ne===oe?g:0===g?0:1===g?1:d(B(g),J,oe)}}},function(m,x,C){(function(v){(function(){var u,d,E,S,A,Y;typeof performance<"u"&&null!==performance&&performance.now?m.exports=function(){return performance.now()}:null!=v&&v.hrtime?(m.exports=function(){return(u()-A)/1e6},d=v.hrtime,S=(u=function(){var z;return 1e9*(z=d())[0]+z[1]})(),Y=1e9*v.uptime(),A=S-Y):Date.now?(m.exports=function(){return Date.now()-E},E=Date.now()):(m.exports=function(){return(new Date).getTime()-E},E=(new Date).getTime())}).call(this)}).call(x,C(6))},function(m,x){function C(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function u(J){if(Y===setTimeout)return setTimeout(J,0);if((Y===C||!Y)&&setTimeout)return Y=setTimeout,setTimeout(J,0);try{return Y(J,0)}catch{try{return Y.call(null,J,0)}catch{return Y.call(this,J,0)}}}function d(){V&&y&&(V=!1,y.length?R=y.concat(R):ee=-1,R.length&&E())}
1function E(){if(!V){var J=u(d);V=!0;for(var ne=R.length;ne;){for(y=R,R=[];++ee<ne;)y&&y[ee].run();ee=-1,ne=R.length}y=null,V=!1,function(oe){if(z===clearTimeout)return clearTimeout(oe);if((z===v||!z)&&clearTimeout)return z=clearTimeout,clearTimeout(oe);try{z(oe)}catch{try{return z.call(null,oe)}catch{return z.call(this,oe)}}}(J)}}function S(J,ne){this.fun=J,this.array=ne}function A(){}var Y,z,U=m.exports={};!function(){try{Y="function"==typeof setTimeout?setTimeout:C}catch{Y=C}try{z="function"==typeof clearTimeout?clearTimeout:v}catch{z=v}}();var y,R=[],V=!1,ee=-1;U.nextTick=function(J){var ne=new Array(arguments.length-1);if(arguments.length>1)for(var oe=1;oe<arguments.length;oe++)ne[oe-1]=arguments[oe];R.push(new S(J,ne)),1!==R.length||V||u(E)},S.prototype.run=function(){this.fun.apply(null,this.array)},U.title="browser",U.browser=!0,U.env={},U.argv=[],U.version="",U.versions={},U.on=A,U.addListener=A,U.once=A,U.off=A,U.removeListener=A,U.removeAllListeners=A,U.emit=A,U.binding=function(J){throw new Error("process.binding is not supported")},U.cwd=function(){return"/"},U.chdir=function(J){throw new Error("process.chdir is not supported")},U.umask=function(){return 0}},function(m,x,C){(function(v){for(var u=C(5),d=typeof window>"u"?v:window,E=["moz","webkit"],S="AnimationFrame",A=d["request"+S],Y=d["cancel"+S]||d["cancelRequest"+S],z=0;!A&&z<E.length;z++)A=d[E[z]+"Request"+S],Y=d[E[z]+"Cancel"+S]||d[E[z]+"CancelRequest"+S];if(!A||!Y){var U=0,y=0,R=[];A=function(V){if(0===R.length){var ee=u(),J=Math.max(0,1e3/60-(ee-U));U=J+ee,setTimeout(function(){var ne=R.slice(0);R.length=0;for(var oe=0;oe<ne.length;oe++)if(!ne[oe].cancelled)try{ne[oe].callback(U)}catch(B){setTimeout(function(){throw B},0)}},Math.round(J))}return R.push({handle:++y,callback:V,cancelled:!1}),y},Y=function(V){for(var ee=0;ee<R.length;ee++)R[ee].handle===V&&(R[ee].cancelled=!0)}}m.exports=function(V){return A.call(d,V)},m.exports.cancel=function(){Y.apply(d,arguments)},m.exports.polyfill=function(){d.requestAnimationFrame=A,d.cancelAnimationFrame=Y}}).call(x,C(8))},function(m,x){var C;C=function(){return this}();try{C=C||Function("return this")()||(0,eval)("this")}catch{"object"==typeof window&&(C=window)}m.exports=C}])},G.exports=i()},function(G,b,P){"use strict";G.exports=function(i,m){var v=i.scrollTop,u=m.offsetTop;return!(v>u||v+i.clientHeight-m.clientHeight<u)}},function(G,b,P){"use strict";G.exports=function(i){var m=window.innerHeight,x=i.getBoundingClientRect(),C=x.top<0,u=!(C||x.bottom>m),d={visible:u};return u||(d.position=C?"top":"bottom"),d}},function(G,b,P){"use strict";var i,x=(i=P(11))&&i.__esModule?i:{default:i};G.exports={contains:function(C,v){return v.filter(function(u){return(0,x.default)(u).toLowerCase().indexOf(C.toLowerCase())>-1})},equals:function(C,v){return v.filter(function(u){return(0,x.default)(u).toLowerCase()===C.toLowerCase()})},"starts-with":function(C,v){return v.filter(function(u){return 0===(0,x.default)(u).toLowerCase().indexOf(C.toLowerCase())})}}},function(G,b,P){"use strict";G.exports=function(i){return i.getAttribute("data-value")||i.innerText}},function(G,b,P){"use strict";var i,x=(i=P(13))&&i.__esModule?i:{default:i};b.attach=function(C,v,u){if("function"==typeof u)return v.addEventListener(C,u);u&&u.length&&v.addEventListener(C,function(d){var E=x.default[d.which];u.forEach(function(S){S.keys.indexOf(E)>-1&&(S.preventDefault&&d.preventDefault(),S.callback(d,E))})})},b.up=function(C,v){return b.attach("keyup",C,v)},b.down=function(C,v){return b.attach("keydown",C,v)},b.press=function(C,v){return b.attach("keypress",C,v)}},function(G,b,P){"use strict";G.exports={8:"backspace",9:"tab",13:"enter",27:"escape",32:"space",37:"left",38:"up",39:"right",40:"down"}},function(G,b,P){"use strict";G.exports=function(i,m,x){if(m=m.length?m:[m],x&&m.indexOf(i)>-1)return!0;for(var C=i.parentNode;C&&"HTML"!==C.tagName;){if(m.indexOf(C)>-1)return!0;C=C.parentNode}return!1}},function(G,b,P){"use strict";var i,x=(i=P(16))&&i.__esModule?i:{default:i};G.exports=function(C,v,u){return u=u||document,"string"==typeof C?v?x.default.all(C,u):(0,x.default)(C,u):C}},function(G,b,P){"use strict";(G.exports=function(i,m){return(m=m||document).querySelector(i)}).all=function(i,m){return m=m||document,Array.prototype.slice.call(m.querySelectorAll(i))}},function(G,b,P){"use strict";
1G.exports=function(i,m){var x=i.filter(function(C){return C.options.indexOf(m)>-1});return x.length&&x[0]}},function(G,b,P){"use strict";var i,x=(i=P(1))&&i.__esModule?i:{default:i};G.exports=function(C,v,u){var d=C.querySelector(".combobo-no-results");!u||v.length||d?d&&v.length&&C.removeChild(d):(d=document.createElement("div"),(0,x.default)(d).add("combobo-no-results"),d.innerHTML=u,C.appendChild(d))}},function(G,b,P){"use strict";var i,x=(i=P(20))&&i.__esModule?i:{default:i};G.exports=function(C,v,u){v.id=v.id||(0,x.default)(),C.setAttribute("role","combobox"),v.setAttribute("role","listbox"),C.setAttribute("aria-controls",v.id),C.setAttribute("aria-autocomplete","list"),C.setAttribute("aria-expanded","false"),u.forEach(function(d){d.setAttribute("role","option"),d.id=d.id||(0,x.default)()})}},function(G,b,P){"use strict";var i,x=(i=P(21))&&i.__esModule?i:{default:i};G.exports=function C(v){var u=(0,x.default)(v=v||8);return document.getElementById(u)?C(v):u}},function(G,b,P){(function(i){var m=P(26);function x(C){m("string"==typeof C,"the list of characters must be a string!");var v=i.byteLength(C);return function(u){m("number"==typeof(u=u||10)&&u>=0,"the length of the random string must be a number!");for(var d="",E=0;E<u;E++)d+=C[Math.floor(v*Math.random())];return d}}(b=G.exports=x("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62=b,b.base36=x("abcdefghijklmnopqrstuvwxyz0123456789"),b.base10=x("0123456789"),b.create=x}).call(b,P(22).Buffer)},function(G,b,P){"use strict";(function(i){var m=P(23),x=P(24),C=P(25);function v(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,r){if(v()<r)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=d.prototype:(null===e&&(e=new d(r)),e.length=r),e}function d(e,r,f){if(!(d.TYPED_ARRAY_SUPPORT||this instanceof d))return new d(e,r,f);if("number"==typeof e){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return A(this,e)}return E(this,e,r,f)}function E(e,r,f,O){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?function(F,Q,ge,ue){if(ge<0||Q.byteLength<ge)throw new RangeError("'offset' is out of bounds");if(Q.byteLength<ge+(ue||0))throw new RangeError("'length' is out of bounds");return Q=void 0===ge&&void 0===ue?new Uint8Array(Q):void 0===ue?new Uint8Array(Q,ge):new Uint8Array(Q,ge,ue),d.TYPED_ARRAY_SUPPORT?(F=Q).__proto__=d.prototype:F=Y(F,Q),F}(e,r,f,O):"string"==typeof r?function(F,Q,ge){if("string"==typeof ge&&""!==ge||(ge="utf8"),!d.isEncoding(ge))throw new TypeError('"encoding" must be a valid string encoding');var ue=0|U(Q,ge),Ce=(F=u(F,ue)).write(Q,ge);return Ce!==ue&&(F=F.slice(0,Ce)),F}(e,r,f):function(F,Q){if(d.isBuffer(Q)){var ge=0|z(Q.length);return 0===(F=u(F,ge)).length||Q.copy(F,0,0,ge),F}if(Q){if(typeof ArrayBuffer<"u"&&Q.buffer instanceof ArrayBuffer||"length"in Q)return"number"!=typeof Q.length||(ue=Q.length)!=ue?u(F,0):Y(F,Q);if("Buffer"===Q.type&&C(Q.data))return Y(F,Q.data)}var ue;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,r)}function S(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function A(e,r){if(S(r),e=u(e,r<0?0:0|z(r)),!d.TYPED_ARRAY_SUPPORT)for(var f=0;f<r;++f)e[f]=0;return e}function Y(e,r){var f=r.length<0?0:0|z(r.length);e=u(e,f);for(var O=0;O<f;O+=1)e[O]=255&r[O];return e}function z(e){if(e>=v())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v().toString(16)+" bytes");return 0|e}function U(e,r){if(d.isBuffer(e))return e.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var f=e.length;if(0===f)return 0;for(var O=!1;;)switch(r){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":case void 0:return Oe(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return p(e).length;default:if(O)return Oe(e).length;r=(""+r).toLowerCase(),O=!0}}function y(e,r,f){var O=e[r];e[r]=e[f],e[f]=O}function R(e,r,f,O,F){if(0===e.length)return-1;if("string"==typeof f?(O=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,isNaN(f)&&(f=F?0:e.length-1),f<0&&(f=e.length+f),f>=e.length){if(F)return-1;f=e.length-1}else if(f<0){if(!F)return-1;f=0}if("string"==typeof r&&(r=d.from(r,O)),d.isBuffer(r))return 0===r.length?-1:V(e,r,f,O,F);if("number"==typeof r)return r&=255,d.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?F?Uint8Array.prototype.indexOf.call(e,r,f):Uint8Array.prototype.lastIndexOf.call(e,r,f):V(e,[r],f,O,F);throw new TypeError("val must be string, number or Buffer")}function V(e,r,f,O,F){var Q,ge=1,ue=e.length,Ce=r.length;if(void 0!==O&&("ucs2"===(O=String(O).toLowerCase())||"ucs-2"===O||"utf16le"===O||"utf-16le"===O)){if(e.length<2||r.length<2)return-1;ge=2,ue/=2,Ce/=2,f/=2}function We(Lt,yt){return 1===ge?Lt[yt]:Lt.readUInt16BE(yt*ge)}if(F){var we=-1;for(Q=f;Q<ue;Q++)if(We(e,Q)===We(r,-1===we?0:Q-we)){if(-1===we&&(we=Q),Q-we+1===Ce)return we*ge}else-1!==we&&(Q-=Q-we),we=-1}else for(f+Ce>ue&&(f=ue-Ce),Q=f;Q>=0;Q--){for(var st=!0,It=0;It<Ce;It++)if(We(e,Q+It)!==We(r,It)){st=!1;break}if(st)return Q}return-1}function ee(e,r,f,O){f=Number(f)||0;var F=e.length-f;O?(O=Number(O))>F&&(O=F):O=F;var Q=r.length;if(Q%2!=0)throw new TypeError("Invalid hex string");O>Q/2&&(O=Q/2);for(var ge=0;ge<O;++ge){var ue=parseInt(r.substr(2*ge,2),16);if(isNaN(ue))return ge;e[f+ge]=ue}return ge}function J(e,r,f,O){return I(Oe(r,e.length-f),e,f,O)}function ne(e,r,f,O){return I(function(F){for(var Q=[],ge=0;ge<F.length;++ge)Q.push(255&F.charCodeAt(ge));return Q}(r),e,f,O)}function oe(e,r,f,O){return ne(e,r,f,O)}function B(e,r,f,O){return I(p(r),e,f,O)}function D(e,r,f,O){return I(function(F,Q){for(var ge,ue,We=[],we=0;we<F.length&&!((Q-=2)<0);
1++we)ue=(ge=F.charCodeAt(we))>>8,We.push(ge%256),We.push(ue);return We}(r,e.length-f),e,f,O)}function L(e,r,f){return m.fromByteArray(0===r&&f===e.length?e:e.slice(r,f))}function g(e,r,f){f=Math.min(e.length,f);for(var O=[],F=r;F<f;){var Q,ge,ue,Ce,We=e[F],we=null,st=We>239?4:We>223?3:We>191?2:1;if(F+st<=f)switch(st){case 1:We<128&&(we=We);break;case 2:128==(192&(Q=e[F+1]))&&(Ce=(31&We)<<6|63&Q)>127&&(we=Ce);break;case 3:ge=e[F+2],128==(192&(Q=e[F+1]))&&128==(192&ge)&&(Ce=(15&We)<<12|(63&Q)<<6|63&ge)>2047&&(Ce<55296||Ce>57343)&&(we=Ce);break;case 4:ge=e[F+2],ue=e[F+3],128==(192&(Q=e[F+1]))&&128==(192&ge)&&128==(192&ue)&&(Ce=(15&We)<<18|(63&Q)<<12|(63&ge)<<6|63&ue)>65535&&Ce<1114112&&(we=Ce)}null===we?(we=65533,st=1):we>65535&&(O.push((we-=65536)>>>10&1023|55296),we=56320|1023&we),O.push(we),F+=st}return function(It){var Lt=It.length;if(Lt<=ie)return String.fromCharCode.apply(String,It);for(var yt="",Qt=0;Qt<Lt;)yt+=String.fromCharCode.apply(String,It.slice(Qt,Qt+=ie));return yt}(O)}b.Buffer=d,b.SlowBuffer=function(e){return+e!=e&&(e=0),d.alloc(+e)},b.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==i.TYPED_ARRAY_SUPPORT?i.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch{return!1}}(),b.kMaxLength=v(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,r,f){return E(null,e,r,f)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,r,f){return O=null,Q=r,ge=f,S(F=e),F<=0?u(O,F):void 0!==Q?"string"==typeof ge?u(O,F).fill(Q,ge):u(O,F).fill(Q):u(O,F);var O,F,Q,ge},d.allocUnsafe=function(e){return A(null,e)},d.allocUnsafeSlow=function(e){return A(null,e)},d.isBuffer=function(e){return!(null==e||!e._isBuffer)},d.compare=function(e,r){if(!d.isBuffer(e)||!d.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var f=e.length,O=r.length,F=0,Q=Math.min(f,O);F<Q;++F)if(e[F]!==r[F]){f=e[F],O=r[F];break}return f<O?-1:O<f?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,r){if(!C(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var f;if(void 0===r)for(r=0,f=0;f<e.length;++f)r+=e[f].length;var O=d.allocUnsafe(r),F=0;for(f=0;f<e.length;++f){var Q=e[f];if(!d.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(O,F),F+=Q.length}return O},d.byteLength=U,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)y(this,r,r+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)y(this,r,r+3),y(this,r+1,r+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)y(this,r,r+7),y(this,r+1,r+6),y(this,r+2,r+5),y(this,r+3,r+4);return this},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?g(this,0,e):function(r,f,O){var F=!1;if((void 0===f||f<0)&&(f=0),f>this.length||((void 0===O||O>this.length)&&(O=this.length),O<=0)||(O>>>=0)<=(f>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return K(this,f,O);case"utf8":case"utf-8":return g(this,f,O);case"ascii":return de(this,f,O);case"latin1":case"binary":return k(this,f,O);case"base64":return L(this,f,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,f,O);default:if(F)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),F=!0}}.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",r=b.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,r,f,O,F){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===f&&(f=e?e.length:0),void 0===O&&(O=0),void 0===F&&(F=this.length),r<0||f>e.length||O<0||F>this.length)throw new RangeError("out of range index");if(O>=F&&r>=f)return 0;if(O>=F)return-1;if(r>=f)return 1;if(this===e)return 0;for(var Q=(F>>>=0)-(O>>>=0),ge=(f>>
vendor: 9,245 bytes, line 1
1>=0)-(r>>>=0),ue=Math.min(Q,ge),Ce=this.slice(O,F),We=e.slice(r,f),we=0;we<ue;++we)if(Ce[we]!==We[we]){Q=Ce[we],ge=We[we];break}return Q<ge?-1:ge<Q?1:0},d.prototype.includes=function(e,r,f){return-1!==this.indexOf(e,r,f)},d.prototype.indexOf=function(e,r,f){return R(this,e,r,f,!0)},d.prototype.lastIndexOf=function(e,r,f){return R(this,e,r,f,!1)},d.prototype.write=function(e,r,f,O){if(void 0===r)O="utf8",f=this.length,r=0;else if(void 0===f&&"string"==typeof r)O=r,f=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(f)?(f|=0,void 0===O&&(O="utf8")):(O=f,f=void 0)}var F=this.length-r;if((void 0===f||f>F)&&(f=F),e.length>0&&(f<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");O||(O="utf8");for(var Q=!1;;)switch(O){case"hex":return ee(this,e,r,f);case"utf8":case"utf-8":return J(this,e,r,f);case"ascii":return ne(this,e,r,f);case"latin1":case"binary":return oe(this,e,r,f);case"base64":return B(this,e,r,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r,f);default:if(Q)throw new TypeError("Unknown encoding: "+O);O=(""+O).toLowerCase(),Q=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function de(e,r,f){var O="";f=Math.min(e.length,f);for(var F=r;F<f;++F)O+=String.fromCharCode(127&e[F]);return O}function k(e,r,f){var O="";f=Math.min(e.length,f);for(var F=r;F<f;++F)O+=String.fromCharCode(e[F]);return O}function K(e,r,f){var O=e.length;(!r||r<0)&&(r=0),(!f||f<0||f>O)&&(f=O);for(var F="",Q=r;Q<f;++Q)F+=ut(e[Q]);return F}function se(e,r,f){for(var O=e.slice(r,f),F="",Q=0;Q<O.length;Q+=2)F+=String.fromCharCode(O[Q]+256*O[Q+1]);return F}function ve(e,r,f){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+r>f)throw new RangeError("Trying to access beyond buffer length")}function he(e,r,f,O,F,Q){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>F||r<Q)throw new RangeError('"value" argument is out of bounds');if(f+O>e.length)throw new RangeError("Index out of range")}function le(e,r,f,O){r<0&&(r=65535+r+1);for(var F=0,Q=Math.min(e.length-f,2);F<Q;++F)e[f+F]=(r&255<<8*(O?F:1-F))>>>8*(O?F:1-F)}function ae(e,r,f,O){r<0&&(r=4294967295+r+1);for(var F=0,Q=Math.min(e.length-f,4);F<Q;++F)e[f+F]=r>>>8*(O?F:3-F)&255}function fe(e,r,f,O,F,Q){if(f+O>e.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function Pe(e,r,f,O,F){return F||fe(e,0,f,4),x.write(e,r,f,O,23,4),f+4}function be(e,r,f,O,F){return F||fe(e,0,f,8),x.write(e,r,f,O,52,8),f+8}d.prototype.slice=function(e,r){var f,O=this.length;if((e=~~e)<0?(e+=O)<0&&(e=0):e>O&&(e=O),(r=void 0===r?O:~~r)<0?(r+=O)<0&&(r=0):r>O&&(r=O),r<e&&(r=e),d.TYPED_ARRAY_SUPPORT)(f=this.subarray(e,r)).__proto__=d.prototype;else{var F=r-e;f=new d(F,void 0);for(var Q=0;Q<F;++Q)f[Q]=this[Q+e]}return f},d.prototype.readUIntLE=function(e,r,f){e|=0,r|=0,f||ve(e,r,this.length);for(var O=this[e],F=1,Q=0;++Q<r&&(F*=256);)O+=this[e+Q]*F;return O},d.prototype.readUIntBE=function(e,r,f){e|=0,r|=0,f||ve(e,r,this.length);for(var O=this[e+--r],F=1;r>0&&(F*=256);)O+=this[e+--r]*F;return O},d.prototype.readUInt8=function(e,r){return r||ve(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,r){return r||ve(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,r){return r||ve(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,r){return r||ve(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,r){return r||ve(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,r,f){e|=0,r|=0,f||ve(e,r,this.length);for(var O=this[e],F=1,Q=0;++Q<r&&(F*=256);)O+=this[e+Q]*F;return O>=(F*=128)&&(O-=Math.pow(2,8*r)),O},d.prototype.readIntBE=function(e,r,f){e|=0,r|=0,f||ve(e,r,this.length);for(var O=r,F=1,Q=this[e+--O];O>0&&(F*=256);)Q+=this[e+--O]*F;return Q>=(F*=128)&&(Q-=Math.pow(2,8*r)),Q},d.prototype.readInt8=function(e,r){return r||ve(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,r){r||ve(e,2,this.length);var f=this[e]|this[e+1]<<8;return 32768&f?4294901760|f:f},d.prototype.readInt16BE=function(e,r){r||ve(e,2,this.length);var f=this[e+1]|this[e]<<8;return 32768&f?4294901760|f:f},d.prototype.readInt32LE=function(e,r){return r||ve(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,r){return r||ve(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,r){return r||ve(e,4,this.length),x.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,r){return r||ve(e,4,this.length),x.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,r){return r||ve(e,8,this.length),x.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,r){return r||ve(e,8,this.length),x.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,r,f,O){e=+e,r|=0,f|=0,O||he(this,e,r,f,Math.pow(2,8*f)-1,0);var F=1,Q=0;for(this[r]=255&e;++Q<f&&(F*=256);)this[r+Q]=e/F&255;return r+f},d.prototype.writeUIntBE=function(e,r,f,O){e=+e,r|=0,f|=0,O||he(this,e,r,f,Math.pow(2,8*f)-1,0);var F=f-1,Q=1;for(this[r+F]=255&e;--F>=0&&(Q*=256);)this[r+F]=e/Q&255;return r+f},d.prototype.writeUInt8=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},d.prototype.writeUInt16LE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):le(this,e,r,!0),r+2},d.prototype.writeUInt16BE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):le(this,e,r,!1),r+2},d.prototype.writeUInt32LE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):ae(this,e,r,!0),r+4},d.prototype.writeUInt32BE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):ae(this,e,r,!1),r+4},d.prototype.writeIntLE=function(e,r,f,O){if(e=+e,r|=0,!O){var F=Math.pow(2,8*f-1);he(this,e,r,f,F-1,-F)}var Q=0,ge=1,ue=0;for(this[r]=255&e;++Q<f&&(ge*=256);)e<0&&0===ue&&0!==this[r+Q-1]&&(ue=1),this[r+Q]=(e/ge|0)-ue&255;return r+f},d.prototype.writeIntBE=function(e,r,f,O){if(e=+e,r|=0,!O){var F=Math.pow(2,8*f-1);he(this,e,r,f,F-1,-F)}var Q=f-1,ge=1,ue=0;for(this[r+Q]=255&e;--Q>=0&&(ge*=256);)e<0&&0===ue&&0!==this[r+Q+1]&&(ue=1),this[r+Q]=(e/ge|0)-ue&255;return r+f},d.prototype.writeInt8=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=255&e,r+1},d.prototype.writeInt16LE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):le(this,e,r,!0),r+2},d.prototype.writeInt16BE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):le(this,e,r,!1),r+2},d.prototype.writeInt32LE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):ae(this,e,r,!0),r+4},d.prototype.writeInt32BE=function(e,r,f){return e=+e,r|=0,f||he(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):ae(this,e,r,!1),r+4},d.prototype.writeFloatLE=function(e,r,f){return Pe(this,e,r,!0,f)},d.prototype.writeFloatBE=function(e,r,f){return Pe(this,e,r,!1,f)},d.prototype.writeDoubleLE=function(e,r,f){return be(this,e,r,!0,f)},d.prototype.writeDoubleBE=function(e,r,f){return be(this,e,r,!1,f)},d.prototype.copy=function(e,r,f,O){if(f||(f=0),O||0===O||(O=this.length),r>=e.length&&(r=e.length),r||(r=0),O>0&&O<f&&(O=f),O===f||0===e.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(f<0||f>=this.length)throw new RangeError("sourceStart out of bounds");if(O<0)throw new RangeError("sourceEnd out of bounds");O>this.length&&(O=this.length),e.length-r<O-f&&(O=e.length-r+f);var F,Q=O-f;if(this===e&&f<r&&r<O)for(F=Q-1;F>=0;--F)e[F+r]=this[F+f];else if(Q<1e3||!d.TYPED_ARRAY_SUPPORT)for(F=0;F<Q;++F)e[F+r]=this[F+f];else Uint8Array.prototype.set.call(e,this.subarray(f,f+Q),r);return Q},d.prototype.fill=function(e,r,f,O){if("string"==typeof e){if("string"==typeof r?(O=r,r=0,f=this.length):"string"==typeof f&&(O=f,f=this.length),1===e.length){var F=e.charCodeAt(0);F<256&&(e=F)}if(void 0!==O&&"string"!=typeof O)throw new TypeError("encoding must be a string");if("string"==typeof O&&!d.isEncoding(O))throw new TypeError("Unknown encoding: "+O)}else"number"==typeof e&&(e&=255);if(r<0||this.length<r||this.length<f)throw new RangeError("Out of range index");if(f<=r)return this;var Q;if(r>>>=0,f=void 0===f?this.length:f>>>0,e||(e=0),"number"==typeof e)for(Q=r;Q<f;++Q)this[Q]=e;else{var ge=d.isBuffer(e)?e:Oe(new d(e,O).toString()),ue=ge.length;for(Q=0;Q<f-r;
1++Q)this[Q+r]=ge[Q%ue]}return this};var Be=/[^+\/0-9A-Za-z-_]/g;function ut(e){return e<16?"0"+e.toString(16):e.toString(16)}function Oe(e,r){var f;r=r||1/0;for(var O=e.length,F=null,Q=[],ge=0;ge<O;++ge){if((f=e.charCodeAt(ge))>55295&&f<57344){if(!F){if(f>56319){(r-=3)>-1&&Q.push(239,191,189);continue}if(ge+1===O){(r-=3)>-1&&Q.push(239,191,189);continue}F=f;continue}if(f<56320){(r-=3)>-1&&Q.push(239,191,189),F=f;continue}f=65536+(F-55296<<10|f-56320)}else F&&(r-=3)>-1&&Q.push(239,191,189);if(F=null,f<128){if((r-=1)<0)break;Q.push(f)}else if(f<2048){if((r-=2)<0)break;Q.push(f>>6|192,63&f|128)}else if(f<65536){if((r-=3)<0)break;Q.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;Q.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return Q}function p(e){return m.toByteArray(function(r){if((r=(f=r,f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")).replace(Be,"")).length<2)return"";for(var f;r.length%4!=0;)r+="=";return r}(e))}function I(e,r,f,O){for(var F=0;F<O&&!(F+f>=r.length||F>=e.length);++F)r[F+f]=e[F];return F}}).call(b,P(0))},function(G,b,P){"use strict";b.byteLength=function(S){return 3*S.length/4-d(S)},b.toByteArray=function(S){var A,Y,z,U,y,R=S.length;U=d(S),y=new x(3*R/4-U),Y=U>0?R-4:R;var V=0;for(A=0;A<Y;A+=4)z=m[S.charCodeAt(A)]<<18|m[S.charCodeAt(A+1)]<<12|m[S.charCo
1deAt(A+2)]<<6|m[S.charCodeAt(A+3)],y[V++]=z>>16&255,y[V++]=z>>8&255,y[V++]=255&z;return 2===U?(z=m[S.charCodeAt(A)]<<2|m[S.charCodeAt(A+1)]>>4,y[V++]=255&z):1===U&&(z=m[S.charCodeAt(A)]<<10|m[S.charCodeAt(A+1)]<<4|m[S.charCodeAt(A+2)]>>2,y[V++]=z>>8&255,y[V++]=255&z),y},b.fromByteArray=function(S){for(var A,Y=S.length,z=Y%3,U="",y=[],R=0,V=Y-z;R<V;R+=16383)y.push(E(S,R,R+16383>V?V:R+16383));return 1===z?(U+=i[(A=S[Y-1])>>2],U+=i[A<<4&63],U+="=="):2===z&&(U+=i[(A=(S[Y-2]<<8)+S[Y-1])>>10],U+=i[A>>4&63],U+=i[A<<2&63],U+="="),y.push(U),y.join("")};for(var i=[],m=[],x=typeof Uint8Array<"u"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0;v<64;++v)i[v]=C[v],m[C.charCodeAt(v)]=v;function d(S){var A=S.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===S[A-2]?2:"="===S[A-1]?1:0}function E(S,A,Y){for(var U,y=[],R=A;R<Y;R+=3)y.push(i[(U=(S[R]<<16&16711680)+(S[R+1]<<8&65280)+(255&S[R+2]))>>18&63]+i[U>>12&63]+i[U>>6&63]+i[63&U]);return y.join("")}m[45]=62,m[95]=63},function(G,b){b.read=function(P,i,m,x,C){var v,u,d=8*C-x-1,E=(1<<d)-1,S=E>>1,A=-7,Y=m?C-1:0,z=m?-1:1,U=P[i+Y];for(Y+=z,v=U&(1<<-A)-1,U>>=-A,A+=d;A>0;v=256*v+P[i+Y],Y+=z,A-=8);for(u=v&(1<<-A)-1,v>>=-A,A+=x;A>0;u=256*u+P[i+Y],Y+=z,A-=8);if(0===v)v=1-S;else{if(v===E)return u?NaN:1/0*(U?-1:1);u+=Math.pow(2,x),v-=S}return(U?-1:1)*u*Math.pow(2,v-x)},b.write=function(P,i,m,x,C,v){var u,d,E,S=8*v-C-1,A=(1<<S)-1,Y=A>>1,z=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,U=x?0:v-1,y=x?1:-1,R=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(d=isNaN(i)?1:0,u=A):(u=Math.floor(Math.log(i)/Math.LN2),i*(E=Math.pow(2,-u))<1&&(u--,E*=2),(i+=u+Y>=1?z/E:z*Math.pow(2,1-Y))*E>=2&&(u++,E/=2),u+Y>=A?(d=0,u=A):u+Y>=1?(d=(i*E-1)*Math.pow(2,C),u+=Y):(d=i*Math.pow(2,Y-1)*Math.pow(2,C),u=0));C>=8;P[m+U]=255&d,U+=y,d/=256,C-=8);for(u=u<<C|d,S+=C;S>0;P[m+U]=255&u,U+=y,u/=256,S-=8);P[m+U-y]|=128*R}},function(G,b){var P={}.toString;G.exports=Array.isArray||function(i){return"[object Array]"==P.call(i)}},function(G,b,P){"use strict";(function(i){function m(D,L){if(D===L)return 0;for(var g=D.length,ie=L.length,de=0,k=Math.min(g,ie);de<k;++de)if(D[de]!==L[de]){g=D[de],ie=L[de];break}return g<ie?-1:ie<g?1:0}function x(D){return i.Buffer&&"function"==typeof i.Buffer.isBuffer?i.Buffer.isBuffer(D):!(null==D||!D._isBuffer)}var C=P(27),v=Object.prototype.hasOwnProperty,u=Array.prototype.slice,d="foo"===function(){}.name;function E(D){return Object.prototype.toString.call(D)}function S(D){return!x(D)&&"function"==typeof i.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(D):!!D&&(D instanceof DataView||!!(D.buffer&&D.buffer instanceof ArrayBuffer)))}var A=G.exports=V,Y=/\s*function\s+([^\(\s]*)\s*/;function z(D){if(C.isFunction(D)){if(d)return D.name;var L=D.toString().match(Y);return L&&L[1]}}function U(D,L){return"string"==typeof D?D.length<L?D:D.slice(0,L):D}function y(D){if(d||!C.isFunction(D))return C.inspect(D);var L=z(D);return"[Function"+(L?": "+L:"")+"]"}function R(D,L,g,ie,de){throw new A.AssertionError({message:g,actual:D,expected:L,operator:ie,stackStartFunction:de})}function V(D,L){D||R(D,!0,L,"==",A.ok)}function ee(D,L,g,ie){if(D===L)return!0;if(x(D)&&x(L))return 0===m(D,L);if(C.isDate(D)&&C.isDate(L))return D.getTime()===L.getTime();if(C.isRegExp(D)&&C.isRegExp(L))return D.source===L.source&&D.global===L.global&&D.multiline===L.multiline&&D.lastIndex===L.lastIndex&&D.ignoreCase===L.ignoreCase;if(null!==D&&"object"==typeof D||null!==L&&"object"==typeof L){if(S(D)&&S(L)&&E(D)===E(L)&&!(D instanceof Float32Array||D instanceof Float64Array))return 0===m(new Uint8Array(D.buffer),new Uint8Array(L.buffer));if(x(D)!==x(L))return!1;var de=(ie=ie||{actual:[],expected:[]}).actual.indexOf(D);return-1!==de&&de===ie.expected.indexOf(L)||(ie.actual.push(D),ie.expected.push(L),function(k,K,se,ve){if(null==k||null==K)return!1;if(C.isPrimitive(k)||C.isPrimitive(K))return k===K;if(se&&Object.getPrototypeOf(k)!==Object.getPrototypeOf(K))return!1;var he=J(k),le=J(K);if(he&&!le||!he&&le)return!1;if(he)return ee(k=u.call(k),K=u.call(K),se);var ae,fe,Pe=B(k),be=B(K);if(Pe.length!==be.length)return!1;for(Pe.sort(),be.sort(),fe=Pe.length-1;fe>=0;fe--)if(Pe[fe]!==be[fe])return!1;for(fe=Pe.length-1;fe>=0;fe--)if(!ee(k[ae=Pe[fe]],K[ae],se,ve))return!1;return!0}(D,L,g,ie))}return g?D===L:D==L}function J(D){return"[object Arguments]"==Object.prototype.toString.call(D)}function ne(D,L){if(!D||!L)return!1;if("[object RegExp]"==Object.prototype.toString.call(L))return L.test(D);try{if(D instanceof L)return!0}catch{}return!Error.isPrototypeOf(L)&&!0===L.call({},D)}function oe(D,L,g,ie){var de;if("function"!=typeof L)throw new TypeError('"block" argument must be a function');"string"==typeof g&&(ie=g,g=null),de=function(ve){var he;try{ve()}catch(le){he=le}return he}
1(L),ie=(g&&g.name?" ("+g.name+").":".")+(ie?" "+ie:"."),D&&!de&&R(de,g,"Missing expected exception"+ie);var k="string"==typeof ie,se=!D&&de&&!g;if((!D&&C.isError(de)&&k&&ne(de,g)||se)&&R(de,g,"Got unwanted exception"+ie),D&&de&&g&&!ne(de,g)||!D&&de)throw de}A.AssertionError=function(D){this.name="AssertionError",this.actual=D.actual,this.expected=D.expected,this.operator=D.operator,D.message?(this.message=D.message,this.generatedMessage=!1):(this.message=U(y(this.actual),128)+" "+this.operator+" "+U(y(this.expected),128),this.generatedMessage=!0);var g=D.stackStartFunction||R;if(Error.captureStackTrace)Error.captureStackTrace(this,g);else{var ie=new Error;if(ie.stack){var de=ie.stack,k=z(g),K=de.indexOf("\n"+k);if(K>=0){var se=de.indexOf("\n",K+1);de=de.substring(se+1)}this.stack=de}}},C.inherits(A.AssertionError,Error),A.fail=R,A.ok=V,A.equal=function(D,L,g){D!=L&&R(D,L,g,"==",A.equal)},A.notEqual=function(D,L,g){D==L&&R(D,L,g,"!=",A.notEqual)},A.deepEqual=function(D,L,g){ee(D,L,!1)||R(D,L,g,"deepEqual",A.deepEqual)},A.deepStrictEqual=function(D,L,g){ee(D,L,!0)||R(D,L,g,"deepStrictEqual",A.deepStrictEqual)},A.notDeepEqual=function(D,L,g){ee(D,L,!1)&&R(D,L,g,"notDeepEqual",A.notDeepEqual)},A.notDeepStrictEqual=function D(L,g,ie){ee(L,g,!0)&&R(L,g,ie,"notDeepStrictEqual",D)},A.strictEqual=function(D,L,g){D!==L&&R(D,L,g,"===",A.strictEqual)},A.notStrictEqual=function(D,L,g){D===L&&R(D,L,g,"!==",A.notStrictEqual)},A.throws=function(D,L,g){oe(!0,D,L,g)},A.doesNotThrow=function(D,L,g){oe(!1,D,L,g)},A.ifError=function(D){if(D)throw D};var B=Object.keys||function(D){var L=[];for(var g in D)v.call(D,g)&&L.push(g);return L}}).call(b,P(0))},function(G,b,P){(function(i,m){var x=/%[sdj%]/g;b.format=function(k){if(!V(k)){for(var K=[],se=0;se<arguments.length;se++)K.push(u(arguments[se]));return K.join(" ")}se=1;for(var ve=arguments,he=ve.length,le=String(k).replace(x,function(fe){if("%%"===fe)return"%";if(se>=he)return fe;switch(fe){case"%s":return String(ve[se++]);case"%d":return Number(ve[se++]);case"%j":try{return JSON.stringify(ve[se++])}catch{return"[Circular]"}default:return fe}}),ae=ve[se];se<he;ae=ve[++se])y(ae)||!ne(ae)?le+=" "+ae:le+=" "+u(ae);return le},b.deprecate=function(k,K){if(ee(i.process))return function(){return b.deprecate(k,K).apply(this,arguments)};if(!0===m.noDeprecation)return k;var se=!1;return function(){if(!se){if(m.throwDeprecation)throw new Error(K);m.traceDeprecation?console.trace(K):console.error(K),se=!0}return k.apply(this,arguments)}};var C,v={};function u(k,K){var se={seen:[],stylize:E};return arguments.length>=3&&(se.depth=arguments[2]),arguments.length>=4&&(se.colors=arguments[3]),U(K)?se.showHidden=K:K&&b._extend(se,K),ee(se.showHidden)&&(se.showHidden=!1),ee(se.depth)&&(se.depth=2),ee(se.colors)&&(se.colors=!1),ee(se.customInspect)&&(se.customInspect=!0),se.colors&&(se.stylize=d),S(se,k,se.depth)}function d(k,K){var se=u.styles[K];return se?"\x1b["+u.colors[se][0]+"m"+k+"\x1b["+u.colors[se][1]+"m":k}function E(k,K){return k}function S(k,K,se){if(k.customInspect&&K&&D(K.inspect)&&K.inspect!==b.inspect&&(!K.constructor||K.constructor.prototype!==K)){var ve=K.inspect(se,k);return V(ve)||(ve=S(k,ve,se)),ve}var he=function(Oe,p){if(ee(p))return Oe.stylize("undefined","undefined");if(V(p)){var I="'"+JSON.stringify(p).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Oe.stylize(I,"string")}return R(p)?Oe.stylize(""+p,"number"):U(p)?Oe.stylize(""+p,"boolean"):y(p)?Oe.stylize("null","null"):void 0}(k,K);if(he)return he;var p,le=Object.keys(K),ae=(p={},le.forEach(function(I,e){p[I]=!0}),p);if(k.showHidden&&(le=Object.getOwnPropertyNames(K)),B(K)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return A(K);if(0===le.length){if(D(K))return k.stylize("[Function"+(K.name?": "+K.name:"")+"]","special");if(J(K))return k.stylize(RegExp.prototype.toString.call(K),"regexp");if(oe(K))return k.stylize(Date.prototype.toString.call(K),"date");if(B(K))return A(K)}var Pe,be="",Be=!1,ut=["{","}"];return z(K)&&(Be=!0,ut=["[","]"]),D(K)&&(be=" [Function"+(K.name?": "+K.name:"")+"]"),J(K)&&(be=" "+RegExp.prototype.toString.call(K)),oe(K)&&(be=" "+Date.prototype.toUTCString.call(K)),B(K)&&(be=" "+A(K)),0!==le.length||Be&&0!=K.length?se<0?J(K)?k.stylize(RegExp.prototype.toString.call(K),"regexp"):k.stylize("[Object]","special"):(k.seen.push(K),Pe=Be?function(Oe,p,I,e,r){for(var f=[],O=0,F=
vendor: 4,695 bytes, line 1
1p.length;O<F;++O)de(p,String(O))?f.push(Y(Oe,p,I,e,String(O),!0)):f.push("");return r.forEach(function(Q){Q.match(/^\d+$/)||f.push(Y(Oe,p,I,e,Q,!0))}),f}(k,K,se,ae,le):le.map(function(Oe){return Y(k,K,se,ae,Oe,Be)}),k.seen.pop(),function(Oe,p,I){return Oe.reduce(function(e,r){return r.indexOf("\n"),e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?I[0]+(""===p?"":p+"\n ")+" "+Oe.join(",\n ")+" "+I[1]:I[0]+p+" "+Oe.join(", ")+" "+I[1]}(Pe,be,ut)):ut[0]+be+ut[1]}function A(k){return"["+Error.prototype.toString.call(k)+"]"}function Y(k,K,se,ve,he,le){var ae,fe,Pe;if((Pe=Object.getOwnPropertyDescriptor(K,he)||{value:K[he]}).get?fe=k.stylize(Pe.set?"[Getter/Setter]":"[Getter]","special"):Pe.set&&(fe=k.stylize("[Setter]","special")),de(ve,he)||(ae="["+he+"]"),fe||(k.seen.indexOf(Pe.value)<0?(fe=y(se)?S(k,Pe.value,null):S(k,Pe.value,se-1)).indexOf("\n")>-1&&(fe=le?fe.split("\n").map(function(be){return" "+be}).join("\n").substr(2):"\n"+fe.split("\n").map(function(be){return" "+be}).join("\n")):fe=k.stylize("[Circular]","special")),ee(ae)){if(le&&he.match(/^\d+$/))return fe;(ae=JSON.stringify(""+he)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ae=ae.substr(1,ae.length-2),ae=k.stylize(ae,"name")):(ae=ae.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ae=k.stylize(ae,"string"))}return ae+": "+fe}function z(k){return Array.isArray(k)}function U(k){return"boolean"==typeof k}function y(k){return null===k}function R(k){return"number"==typeof k}function V(k){return"string"==typeof k}function ee(k){return void 0===k}function J(k){return ne(k)&&"[object RegExp]"===L(k)}function ne(k){return"object"==typeof k&&null!==k}function oe(k){return ne(k)&&"[object Date]"===L(k)}function B(k){return ne(k)&&("[object Error]"===L(k)||k instanceof Error)}function D(k){return"function"==typeof k}function L(k){return Object.prototype.toString.call(k)}function g(k){return k<10?"0"+k.toString(10):k.toString(10)}b.debuglog=function(k){if(ee(C)&&(C=Object({NODE_ENV:"production"}).NODE_DEBUG||""),k=k.toUpperCase(),!v[k])if(new RegExp("\\b"+k+"\\b","i").test(C)){var K=m.pid;v[k]=function(){var se=b.format.apply(b,arguments);console.error("%s %d: %s",k,K,se)}}else v[k]=function(){};return v[k]},b.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},b.isArray=z,b.isBoolean=U,b.isNull=y,b.isNullOrUndefined=function(k){return null==k},b.isNumber=R,b.isString=V,b.isSymbol=function(k){return"symbol"==typeof k},b.isUndefined=ee,b.isRegExp=J,b.isObject=ne,b.isDate=oe,b.isError=B,b.isFunction=D,b.isPrimitive=function(k){return null===k||"boolean"==typeof k||"number"==typeof k||"string"==typeof k||"symbol"==typeof k||void 0===k},b.isBuffer=P(29);var ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function de(k,K){return Object.prototype.hasOwnProperty.call(k,K)}b.log=function(){var k,K;console.log("%s - %s",(K=[g((k=new Date).getHours()),g(k.getMinutes()),g(k.getSeconds())].join(":"),[k.getDate(),ie[k.getMonth()],K].join(" ")),b.format.apply(b,arguments))},b.inherits=P(30),b._extend=function(k,K){if(!K||!ne(K))return k;for(var se=Object.keys(K),ve=se.length;ve--;)k[se[ve]]=K[se[ve]];return k}}).call(b,P(0),P(28))},function(G,b){var P,i,m=G.exports={};function x(){throw new Error("setTimeout has not been defined")}function C(){throw new Error("clearTimeout has not been defined")}function v(y){if(P===setTimeout)return setTimeout(y,0);if((P===x||!P)&&setTimeout)return P=setTimeout,setTimeout(y,0);try{return P(y,0)}catch{try{return P.call(null,y,0)}catch{return P.call(this,y,0)}}}!function(){try{P="function"==typeof setTimeout?setTimeout:x}catch{P=x}try{i="function"==typeof clearTimeout?clearTimeout:C}catch{i=C}}();var u,d=[],E=!1,S=-1;function A(){E&&u&&(E=!1,u.length?d=u.concat(d):S=-1,d.length&&Y())}function Y(){if(!E){var y=v(A);E=!0;for(var R=d.length;R;){for(u=d,d=[];++S<R;)u&&u[S].run();S=-1,R=d.length}u=null,E=!1,function(V){if(i===clearTimeout)return clearTimeout(V);if((i===C||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(V);try{i(V)}catch{try{return i.call(null,V)}catch{return i.call(this,V)}}}(y)}}function z(y,R){this.fun=y,this.array=R}function U(){}m.nextTick=function(y){var R=new Array(arguments.length-1);if(arguments.length>1)for(var V=1;V<arguments.length;V++)R[V-1]=arguments[V];d.push(new z(y,R)),1!==d.length||E||v(Y)},z.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={}
1,m.argv=[],m.version="",m.versions={},m.on=U,m.addListener=U,m.once=U,m.off=U,m.removeListener=U,m.removeAllListeners=U,m.emit=U,m.prependListener=U,m.prependOnceListener=U,m.listeners=function(y){return[]},m.binding=function(y){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(y){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(G,b){G.exports=function(P){return P&&"object"==typeof P&&"function"==typeof P.copy&&"function"==typeof P.fill&&"function"==typeof P.readUInt8}},function(G,b){G.exports="function"==typeof Object.create?function(P,i){P.super_=i,P.prototype=Object.create(i.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}})}:function(P,i){P.super_=i;var m=function(){};m.prototype=i.prototype,P.prototype=new m,P.prototype.constructor=P}},function(G,b,P){"use strict";G.exports=function(i,m,x){var C=m.value,v=i.innerText,u=v.toLowerCase().indexOf(C.toLowerCase()),d=C.length;return C&&u>=0?v.substring(0,u)+'<span class="'+x+'">'+v.substr(u,d)+"</span>"+v.substring(u+d):v}},function(G,b,P){"use strict";var i,x=(i=P(33))&&i.__esModule?i:{default:i},C={input:".combobox",list:".listbox",options:".option",groups:null,openClass:"open",activeClass:"active",selectedClass:"selected",useLiveRegion:!0,allowEmpty:!0,multiselect:!1,noResultsText:null,selectionValue:function(v){return v.map(function(u){return u.innerText.trim()}).join(" - ")},optionValue:function(v){return v.innerHTML},announcement:{count:function(v){return v+" options available"},selected:"Selected."},filter:"contains",autoFilter:!0};G.exports=function(v){var u={},d={};return v.announcement=v.announcement||{},(0,x.default)(d,C.announcement,v.announcement),(0,x.default)(u,C,v),u.announcement=d,u}},function(G,b,P){"use strict";var i=P(34);function m(C,v){for(var u in v)x(v,u)&&(C[u]=v[u])}function x(C,v){return Object.prototype.hasOwnProperty.call(C,v)}G.exports=function(C){i(C)||(C={});for(var v=arguments.length,u=1;u<v;u++){var d=arguments[u];i(d)&&m(C,d)}return C}},function(G,b,P){"use strict";G.exports=function(i){return null!=i&&("object"==typeof i||"function"==typeof i)}},function(G,b,P){"use strict";G.exports=function(i,m,x,C,v){var u="true"===i.getAttribute("aria-selected"),d=m.announcement.selected,E=i.innerText;E=C&&m.announcement&&m.announcement.groupChange?m.announcement.groupChange(v)+" "+E:E,x(E=u&&d?E+" "+d:E,500)}}])},97966(ce){!function(G,b){"use strict";var i,m,P=function(x){return new P.Instance(x)};P.SUPPORT="wheel",P.ADD_EVENT="addEventListener",P.REMOVE_EVENT="removeEventListener",P.PREFIX="",P.READY=!1,P.Instance=function(x){return P.READY||(P.normalise.browser(),P.READY=!0),this.element=x,this.handlers=[],this},P.Instance.prototype={wheel:function(C,v){return P.event.add(this,P.SUPPORT,C,v),"DOMMouseScroll"===P.SUPPORT&&P.event.add(this,"MozMousePixelScroll",C,v),this},unwheel:function(C,v){return void 0===C&&(C=this.handlers.slice(-1)[0])&&(C=C.original),P.event.remove(this,P.SUPPORT,C,v),"DOMMouseScroll"===P.SUPPORT&&P.event.remove(this,"MozMousePixelScroll",C,v),this}},P.event={add:function(C,v,u,d){var E=u;u=function(S){S||(S=G.event);var A=P.normalise.event(S),Y=P.normalise.delta(S);return E(A,Y[0],Y[1],Y[2])},C.element[P.ADD_EVENT](P.PREFIX+v,u,d||!1),C.handlers.push({original:E,normalised:u})},remove:function(C,v,u,d){for(var A,E=u,S={},Y=0,z=C.handlers.length;Y<z;++Y)S[C.handlers[Y].original]=C.handlers[Y];
1for(var U in C.element[P.REMOVE_EVENT](P.PREFIX+v,u=(A=S[E]).normalised,d||!1),C.handlers)if(C.handlers[U]==A){C.handlers.splice(U,1);break}}},P.normalise={browser:function(){"onwheel"in b||b.documentMode>=9||(P.SUPPORT=void 0!==b.onmousewheel?"mousewheel":"DOMMouseScroll"),G.addEventListener||(P.ADD_EVENT="attachEvent",P.REMOVE_EVENT="detachEvent",P.PREFIX="on")},event:function(C){var v={originalEvent:C,target:C.target||C.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"===C.type?0:1,deltaX:0,delatZ:0,preventDefault:function(){C.preventDefault?C.preventDefault():C.returnValue=!1},stopPropagation:function(){C.stopPropagation?C.stopPropagation():C.cancelBubble=!1}};return C.wheelDelta&&(v.deltaY=-1/40*C.wheelDelta),C.wheelDeltaX&&(v.deltaX=-1/40*C.wheelDeltaX),C.detail&&(v.deltaY=C.detail),v},delta:function(C){var A,v=0,u=0,d=0,E=0,S=0;return C.deltaY&&(v=d=-1*C.deltaY),C.deltaX&&(v=-1*(u=C.deltaX)),C.wheelDelta&&(v=C.wheelDelta),C.wheelDeltaY&&(d=C.wheelDeltaY),C.wheelDeltaX&&(u=-1*C.wheelDeltaX),C.detail&&(v=-1*C.detail),0===v?[0,0,0]:(E=Math.abs(v),(!i||E<i)&&(i=E),S=Math.max(Math.abs(d),Math.abs(u)),(!m||S<m)&&(m=S),A=v>0?"floor":"ceil",[v=Math[A](v/i),u=Math[A](u/m),d=Math[A](d/m)])}},"function"==typeof G.define&&G.define.amd?G.define("hamster",[],function(){return P}):ce.exports=P}(window,window.document)},8366(ce,G){!function(b){"use strict";function P(){for(var _=arguments.length,w=Array(_),N=0;N<_;N++)w[N]=arguments[N];if(w.length>1){w[0]=w[0].slice(0,-1);for(var q=w.length-1,Z=1;Z<q;++Z)w[Z]=w[Z].slice(1,-1);return w[q]=w[q].slice(1),w.join("")}return w[0]}function i(_){return"(?:"+_+")"}function m(_){return void 0===_?"undefined":null===_?"null":Object.prototype.toString.call(_).split(" ").pop().split("]").shift().toLowerCase()}function x(_){return _.toUpperCase()}function u(_){var w="[A-Za-z]",q="[0-9]",ye=P(q,"[A-Fa-f]"),_e=i(i("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+i("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+i("%"+ye+ye)),Te="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Fe=P("[\\:\\/\\?\\#\\[\\]\\@]",Te),qe=_?"[\\uE000-\\uF8FF]":"[]",Je=P(w,q,"[\\-\\.\\_\\~]",_?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),vt=i(w+P(w,q,"[\\+\\-\\.]")+"*"),Ge=i(i(_e+"|"+P(Je,Te,"[\\:]"))+"*"),rt=(i(i("25[0-5]")+"|"+i("2[0-4]"+q)+"|"+i("1"+q+q)+"|"+i("[1-9]"+q)+"|"+q),i(i("25[0-5]")+"|"+i("2[0-4]"+q)+"|"+i("1"+q+q)+"|"+i("0?[1-9]"+q)+"|0?0?"+q)),Qe=i(rt+"\\."+rt+"\\."+rt+"\\."+rt),xe=i(ye+"{1,4}"),Ve=i(i(xe+"\\:"+xe)+"|"+Qe),pe=i(i(xe+"\\:")+"{6}"+Ve),Ue=i("\\:\\:"+i(xe+"\\:")+"{5}"+Ve),Ie=i(i(xe)+"?\\:\\:"+i(xe+"\\:")+"{4}"+Ve),je=i(i(i(xe+"\\:")+"{0,1}"+xe)+"?\\:\\:"+i(xe+"\\:")+"{3}"+Ve),Xe=i(i(i(xe+"\\:")+"{0,2}"+xe)+"?\\:\\:"+i(xe+"\\:")+"{2}"+Ve),ht=i(i(i(xe+"\\:")+"{0,3}"+xe)+"?\\:\\:"+xe+"\\:"+Ve),Ne=i(i(i(xe+"\\:")+"{0,4}"+xe)+"?\\:\\:"+Ve),Ye=i(i(i(xe+"\\:")+"{0,5}"+xe)+"?\\:\\:"+xe),at=i(i(i(xe+"\\:")+"{0,6}"+xe)+"?\\:\\:"),et=i([pe,Ue,Ie,je,Xe,ht,Ne,Ye,at].join("|")),ze=i(i(Je+"|"+_e)+"+"),He=(i(et+"\\%25"+ze),i(et+i("\\%25|\\%(?!"+ye+"{2})")+ze)),Le=i("[vV]"+ye+"+\\."+P(Je,Te,"[\\:]")+"+"),dt=i("\\["+i(He+"|"+et+"|"+Le)+"\\]"),lt=i(i(_e+"|"+P(Je,Te))+"*"),wt=i(dt+"|"+Qe+"(?!"+lt+")|"+lt),Rt=i(q+"*"),Ee=i(i(Ge+"@")+"?"+wt+i("\\:"+Rt)+"?"),Me=i(_e+"|"+P(Je,Te,"[\\:\\@]")),nt=i(Me+"*"),Re=i(Me+"+"),it=i(i(_e+"|"+P(Je,Te,"[\\@]"))+"+"),gt=i(i("\\/"+nt)+"*"),ft=i("\\/"+i(Re+gt)+"?"),Gt=i(it+gt),$t=i(Re+gt),pt="(?!"+Me+")",jt=(i(gt+"|"+ft+"|"+Gt+"|"+$t+"|"+pt),i(i(Me+"|"+P("[\\/\\?]",qe))+"*")),At=i(i(Me+"|[\\/\\?]")+"*"),Pt=i(i("\\/\\/"+Ee+gt)+"|"+ft+"|"+$t+"|"+pt),Bt=i(vt+"\\:"+Pt+i("\\?"+jt)+"?"+i("\\#"+At)+"?"),vn=i(i("\\/\\/"+Ee+gt)+"|"+ft+"|"+Gt+"|"+pt),An=i(vn+i("\\?"+jt)+"?"+i("\\#"+At)+"?");return i(Bt+"|"+An),i(vt+"\\:"+Pt+i("\\?"+jt)+"?"),i(i("\\/\\/("+i("("+Ge+")@")+"?("+wt+")"+i("\\:("+Rt+")")+"?)")+"?("+gt+"|"+ft+"|"+$t+"|"+pt+")"),i("\\?("+jt+")"),i("\\#("+At+")"),i(i("\\/\\/("+i("("+Ge+")@")+"?("+wt+")"+i("\\:("+Rt+")")+"?)")+"?("+gt+"|"+ft+"|"+Gt+"|"+pt+")"),i("\\?("+jt+")"),i("\\#("+At+")"),i(i("\\/\\/("+i("("+Ge+")@")+"?("+wt+")"+i("\\:("+Rt+")")+"?)")+"?("+gt+"|"+ft+"|"+$t+"|"+pt+")"),i("\\?("+jt+")"),i("\\#("+At+")"),i("("+Ge+")@"),i("\\:("+Rt+")"),{NOT_SCHEME:new RegExp(P("[^]",w,q,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(P("[^\\%\\:]",Je,Te),"g"),NOT_HOST:new RegExp(P("[^\\%\\[\\]\\:]",Je,Te),"g"),NOT_PATH:new RegExp(P("[^\\%\\/\\:\\@]",Je,Te),"g"),NOT_PATH_NOSCHEME:new RegExp(P("[^\\%\\/\\@]",Je,Te),"g"),NOT_QUERY:new RegExp(P("[^\\%]",Je,Te,"[\\:\\@\\/\\?]",qe),"g"),NOT_FRAGMENT:new RegExp(P("[^\\%]",Je,Te,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(P("[^]",Je,Te),"g"),UNRESERVED:new RegExp(Je,"g"),OTHER_CHARS:new RegExp(P("[^\\%]",Je,Fe),"g"),PCT_ENCODED:new RegExp(_e,"g"),IPV4ADDRESS:new RegExp("^("+Qe+")$"),IPV6ADDRESS:new RegExp("^\\[?("+et+")"+i(i("\\%25|\\%(?!"+ye+"{2})")+"("+ze+")")+"?\\]?$")}}var d=u(!1),E=u(!0),S=function(){return function(w,N){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function _(w,N){var q=[],Z=!0,ye=!1,Se=void 0;try{for(var _e,De=w[Symbol.iterator]();!(Z=(_e=De.next()).done)&&(q.push(_e.value),!N||q.length!==N);Z=!0);}catch($e){ye=!0,Se=$e}finally{try{!Z&&De.return&&De.return()}finally{if(ye)throw Se}}return q}(w,N);
1throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Y=2147483647,z=36,oe=/^xn--/,B=/[^\0-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ie=Math.floor,de=String.fromCharCode;function k(_){throw new RangeError(L[_])}function se(_,w){var N=_.split("@"),q="";return N.length>1&&(q=N[0]+"@",_=N[1]),q+function K(_,w){for(var N=[],q=_.length;q--;)N[q]=w(_[q]);return N}((_=_.replace(D,".")).split("."),w).join(".")}function ve(_){for(var w=[],N=0,q=_.length;N<q;){var Z=_.charCodeAt(N++);if(Z>=55296&&Z<=56319&&N<q){var ye=_.charCodeAt(N++);56320==(64512&ye)?w.push(((1023&Z)<<10)+(1023&ye)+65536):(w.push(Z),N--)}else w.push(Z)}return w}var le=function(w){return w-48<10?w-22:w-65<26?w-65:w-97<26?w-97:z},ae=function(w,N){return w+22+75*(w<26)-((0!=N)<<5)},fe=function(w,N,q){var Z=0;for(w=q?ie(w/700):w>>1,w+=ie(w/N);w>455;Z+=z)w=ie(w/35);return ie(Z+36*w/(w+38))},Pe=function(w){var N=[],q=w.length,Z=0,ye=128,Se=72,De=w.lastIndexOf("-");De<0&&(De=0);for(var _e=0;_e<De;++_e)w.charCodeAt(_e)>=128&&k("not-basic"),N.push(w.charCodeAt(_e));for(var $e=De>0?De+1:0;$e<q;){for(var Te=Z,Fe=1,Ke=z;;Ke+=z){$e>=q&&k("invalid-input");var qe=le(w.charCodeAt($e++));(qe>=z||qe>ie((Y-Z)/Fe))&&k("overflow"),Z+=qe*Fe;var Je=Ke<=Se?1:Ke>=Se+26?26:Ke-Se;if(qe<Je)break;var vt=z-Je;Fe>ie(Y/vt)&&k("overflow"),Fe*=vt}var Ge=N.length+1;Se=fe(Z-Te,Ge,0==Te),ie(Z/Ge)>Y-ye&&k("overflow"),ye+=ie(Z/Ge),Z%=Ge,N.splice(Z++,0,ye)}return String.fromCodePoint.apply(String,N)},be=function(w){var N=[],q=(w=ve(w)).length,Z=128,ye=0,Se=72,De=!0,_e=!1,$e=void 0;try{for(var Fe,Te=w[Symbol.iterator]();!(De=(Fe=Te.next()).done);De=!0){var Ke=Fe.value;Ke<128&&N.push(de(Ke))}}catch(He){_e=!0,$e=He}finally{try{!De&&Te.return&&Te.return()}finally{if(_e)throw $e}}var qe=N.length,Je=qe;for(qe&&N.push("-");Je<q;){var vt=Y,Ge=!0,kt=!1,rt=void 0;try{for(var xe,Qe=w[Symbol.iterator]();!(Ge=(xe=Qe.next()).done);Ge=!0){var Ve=xe.value;Ve>=Z&&Ve<vt&&(vt=Ve)}}catch(He){kt=!0,rt=He}finally{try{!Ge&&Qe.return&&Qe.return()}finally{if(kt)throw rt}}var pe=Je+1;vt-Z>ie((Y-ye)/pe)&&k("overflow"),ye+=(vt-Z)*pe,Z=vt;var Ue=!0,Ie=!1,je=void 0;try{for(var ht,Xe=w[Symbol.iterator]();!(Ue=(ht=Xe.next()).done);Ue=!0){var Ne=ht.value;if(Ne<Z&&++ye>Y&&k("overflow"),Ne==Z){for(var Ye=ye,at=z;;at+=z){var et=at<=Se?1:at>=Se+26?26:at-Se;if(Ye<et)break;var ze=Ye-et,tt=z-et;N.push(de(ae(et+ze%tt,0))),Ye=ie(ze/tt)}N.push(de(ae(Ye,0))),Se=fe(ye,pe,Je==qe),ye=0,++Je}}}catch(He){Ie=!0,je=He}finally{try{!Ue&&Xe.return&&Xe.return()}finally{if(Ie)throw je}}++ye,++Z}return N.join("")},Oe_toASCII=function(w){return se(w,function(N){return B.test(N)?"xn--"+be(N):N})},Oe_toUnicode=function(w){return se(w,function(N){return oe.test(N)?Pe(N.slice(4).toLowerCase()):N})},p={};function I(_){var w=_.charCodeAt(0);return w<16?"%0"+w.toString(16).toUpperCase():w<128?"%"+w.toString(16).toUpperCase():w<2048?"%"+(w>>6|192).toString(16).toUpperCase()+"%"+(63&w|128).toString(16).toUpperCase():"%"+(w>>12|224).toString(16).toUpperCase()+"%"+(w>>6&63|128).toString(16).toUpperCase()+"%"+(63&w|128).toString(16).toUpperCase()}function e(_){for(var w="",N=0,q=_.length;N<q;){var Z=parseInt(_.substr(N+1,2),16);if(Z<128)w+=String.fromCharCode(Z),N+=3;else if(Z>=194&&Z<224){if(q-N>=6){var ye=parseInt(_.substr(N+4,2),16);w+=String.fromCharCode((31&Z)<<6|63&ye)}else w+=_.substr(N,6);N+=6}else if(Z>=224){if(q-N>=9){var Se=parseInt(_.substr(N+4,2),16),De=parseInt(_.substr(N+7,2),16);w+=String.fromCharCode((15&Z)<<12|(63&Se)<<6|63&De)}else w+=_.substr(N,9);N+=9}else w+=_.substr(N,3),N+=3}return w}function r(_,w){function N(q){var Z=e(q);return Z.match(w.UNRESERVED)?Z:q}return _.scheme&&(_.scheme=String(_.scheme).replace(w.PCT_ENCODED,N).toLowerCase().replace(w.NOT_SCHEME,"")),void 0!==_.userinfo&&(_.userinfo=String(_.userinfo).replace(w.PCT_ENCODED,N).replace(w.NOT_USERINFO,I).replace(w.PCT_ENCODED,x)),void 0!==_.host&&(_.host=String(_.host).replace(w.PCT_ENCODED,N).toLowerCase().replace(w.NOT_HOST,I).replace(w.PCT_ENCODED,x)),void 0!==_.path&&(_.path=String(_.path).replace(w.PCT_ENCODED,N).replace(_.scheme?w.NOT_PATH:w.NOT_PATH_NOSCHEME,I).replace(w.PCT_ENCODED,x)),void 0!==_.query&&(_.query=String(_.query).replace(w.PCT_ENCODED,N).replace(w.NOT_QUERY,I).replace(w.PCT_ENCODED,x)),void 0!==_.fragment&&(_.fragment=String(_.fragment).replace(w.PCT_ENCODED,N).replace(w.NOT_FRAGMENT,I).replace(w.PCT_ENCODED,x)),_}function f(_){return _.replace(/^0*(.*)/,"$1")||"0"}function O(_,w){var N=_.match(w.IPV4ADDRESS)||[],Z=S(N,2)[1];return Z?Z.split(".").map(f).join("."):_}function F(_,w){var N=_.match(w.IPV6ADDRESS)||[],q=S(N,3),Z=q[1],ye=q[2];if(Z){for(var Se=Z.toLowerCase().split("::").reverse(),De=S(Se,2),_e=De[0],$e=De[1],Te=$e?$e.split(":").map(f):[],Fe=_e.split(":").map(f),Ke=w.IPV4ADDRESS.test(Fe[Fe.length-1]),qe=Ke?7:8,Je=Fe.length-qe,vt=Array(qe),Ge=0;Ge<qe;++Ge)vt[Ge]=Te[Ge]||Fe[Je+Ge]||"";Ke&&(vt[qe-1]=O(vt[qe-1],w));var rt=vt.reduce(function(pe,Ue,Ie){if(!Ue||"0"===Ue){var je=pe[pe.length-1];je&&je.index+je.length===Ie?je.length++:pe.push({index:Ie,length:1})}return pe},[]).sort(function(pe,Ue){return Ue.length-pe.length}
1)[0],Qe=void 0;if(rt&&rt.length>1){var xe=vt.slice(0,rt.index),Ve=vt.slice(rt.index+rt.length);Qe=xe.join(":")+"::"+Ve.join(":")}else Qe=vt.join(":");return ye&&(Qe+="%"+ye),Qe}return _}var Q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ge=void 0==="".match(/(){0}/)[1];function ue(_){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},N={},q=!1!==w.iri?E:d;"suffix"===w.reference&&(_=(w.scheme?w.scheme+":":"")+"//"+_);var Z=_.match(Q);if(Z){ge?(N.scheme=Z[1],N.userinfo=Z[3],N.host=Z[4],N.port=parseInt(Z[5],10),N.path=Z[6]||"",N.query=Z[7],N.fragment=Z[8],isNaN(N.port)&&(N.port=Z[5])):(N.scheme=Z[1]||void 0,N.userinfo=-1!==_.indexOf("@")?Z[3]:void 0,N.host=-1!==_.indexOf("//")?Z[4]:void 0,N.port=parseInt(Z[5],10),N.path=Z[6]||"",N.query=-1!==_.indexOf("?")?Z[7]:void 0,N.fragment=-1!==_.indexOf("#")?Z[8]:void 0,isNaN(N.port)&&(N.port=_.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Z[4]:void 0)),N.host&&(N.host=F(O(N.host,q),q)),N.reference=void 0!==N.scheme||void 0!==N.userinfo||void 0!==N.host||void 0!==N.port||N.path||void 0!==N.query?void 0===N.scheme?"relative":void 0===N.fragment?"absolute":"uri":"same-document",w.reference&&"suffix"!==w.reference&&w.reference!==N.reference&&(N.error=N.error||"URI is not a "+w.reference+" reference.");var ye=p[(w.scheme||N.scheme||"").toLowerCase()];if(w.unicodeSupport||ye&&ye.unicodeSupport)r(N,q);else{if(N.host&&(w.domainHost||ye&&ye.domainHost))try{N.host=Oe_toASCII(N.host.replace(q.PCT_ENCODED,e).toLowerCase())}catch(Se){N.error=N.error||"Host's domain name can not be converted to ASCII via punycode: "+Se}r(N,d)}ye&&ye.parse&&ye.parse(N,w)}else N.error=N.error||"URI can not be parsed.";return N}var We=/^\.\.?\//,we=/^\/\.(\/|$)/,st=/^\/\.\.(\/|$)/,It=/^\/?(?:.|\n)*?(?=\/|$)/;function Lt(_){for(var w=[];_.length;)if(_.match(We))_=_.replace(We,"");else if(_.match(we))_=_.replace(we,"/");else if(_.match(st))_=_.replace(st,"/"),w.pop();else if("."===_||".."===_)_="";else{var N=_.match(It);if(!N)throw new Error("Unexpected dot segment condition");var q=N[0];_=_.slice(q.length),w.push(q)}return w.join("")}function yt(_){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},N=w.iri?E:d,q=[],Z=p[(w.scheme||_.scheme||"").toLowerCase()];if(Z&&Z.serialize&&Z.serialize(_,w),_.host&&!N.IPV6ADDRESS.test(_.host)&&(w.domainHost||Z&&Z.domainHost))try{_.host=w.iri?Oe_toUnicode(_.host):Oe_toASCII(_.host.replace(N.PCT_ENCODED,e).toLowerCase())}catch(De){_.error=_.error||"Host's domain name can not be converted to "+(w.iri?"Unicode":"ASCII")+" via punycode: "+De}r(_,N),"suffix"!==w.reference&&_.scheme&&(q.push(_.scheme),q.push(":"));var ye=function Ce(_,w){var N=!1!==w.iri?E:d,q=[];return void 0!==_.userinfo&&(q.push(_.userinfo),q.push("@")),void 0!==_.host&&q.push(F(O(String(_.host),N),N).replace(N.IPV6ADDRESS,function(Z,ye,Se){return"["+ye+(Se?"%25"+Se:"")+"]"})),"number"==typeof _.port&&(q.push(":"),q.push(_.port.toString(10))),q.length?q.join(""):void 0}(_,w);if(void 0!==ye&&("suffix"!==w.reference&&q.push("//"),q.push(ye),_.path&&"/"!==_.path.charAt(0)&&q.push("/")),void 0!==_.path){var Se=_.path;!w.absolutePath&&(!Z||!Z.absolutePath)&&(Se=Lt(Se)),void 0===ye&&(Se=Se.replace(/^\/\//,"/%2F")),q.push(Se)}return void 0!==_.query&&(q.push("?"),q.push(_.query)),void 0!==_.fragment&&(q.push("#"),q.push(_.fragment)),q.join("")}function Qt(_,w){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Z={};return arguments[3]||(_=ue(yt(_,N),N),w=ue(yt(w,N),N)),!(N=N||{}).tolerant&&w.scheme?(Z.scheme=w.scheme,Z.userinfo=w.userinfo,Z.host=w.host,Z.port=w.port,Z.path=Lt(w.path||""),Z.query=w.query):(void 0!==w.userinfo||void 0!==w.host||void 0!==w.port?(Z.userinfo=w.userinfo,Z.host=w.host,Z.port=w.port,Z.path=Lt(w.path||""),Z.query=w.query):(w.path?("/"===w.path.charAt(0)?Z.path=Lt(w.path):(Z.path=void 0===_.userinfo&&void 0===_.host&&void 0===_.port||_.path?_.path?_.path.slice(0,_.path.lastIndexOf("/")+1)+w.path:w.path:"/"+w.path,Z.path=Lt(Z.path)),Z.query=w.query):(Z.path=_.path,Z.query=void 0!==w.query?w.query:_.query),Z.userinfo=_.userinfo,Z.host=_.host,Z.port=_.port),Z.scheme=_.scheme),Z.fragment=w.fragment,Z}function Wt(_,w){return _&&_.toString().replace(w&&w.iri?E.PCT_ENCODED:d.PCT_ENCODED,e)}var l={scheme:"http",domainHost:!0,parse:function(w,N){return w.host||(w.error=w.error||"HTTP URIs must have a host."),w},serialize:function(w,N){return(w.port===("https"!==String(w.scheme).toLowerCase()?80:443)||""===w.port)&&(w.port=void 0),w.path||(w.path="/"),w}},Un={scheme:"https",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},kn={},In="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Zt="[0-9A-Fa-f]",Yt=i(i("%[EFef]"+Zt+"%"+Zt+Zt+"%"+Zt+Zt)+"|"+i("%[89A-Fa-f]"+Zt+"%"+Zt+Zt)+"|"+i("%"+Zt+Zt)),zn=P("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),On=new RegExp(In,"g"),mt=new RegExp(Yt,"g"),tn=new RegExp(P("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',zn),"g"),_n=new RegExp(P("[^]",In,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),mn=_n;function En(_){var w=e(_);return w.match(On)?w:_}var xt={scheme:"mailto",parse:function(w,N){var q=w,Z=q.to=q.path?q.path.split(","):[];if(q.path=void 0,q.query){for(var ye=!1,Se={},De=q.query.split("&"),_e=0,$e=De.length;_e<$e;++_e){var Te=De[_e].split("=");switch(Te[0]){case"to":for(var Fe=Te[1].split(","),Ke=0,qe=Fe.length;Ke<qe;++Ke)Z.push(Fe[Ke]);break;case"subject":q.subject=Wt(Te[1],N);break;case"body":q.body=Wt(Te[1],N);break;default:ye=!0,Se[Wt(Te[0],N)]=Wt(Te[1],N)}}ye&&(q.headers=Se)}q.query=void 0;for(var Je=0,vt=Z.length;Je<vt;++Je){var Ge=Z[Je].split("@");if(Ge[0]=Wt(Ge[0]),N.unicodeSupport)Ge[1]=Wt(Ge[1],N).toLowerCase();else try{Ge[1]=Oe_toASCII(Wt(Ge[1],N).toLowerCase())}catch(kt){q.error=q.error||"Email address's domain name can not be converted to ASCII via punycode: "+kt}Z[Je]=Ge.join("@")}return q}
1,serialize:function(w,N){var q=w,Z=function C(_){return null!=_?_ instanceof Array?_:"number"!=typeof _.length||_.split||_.setInterval||_.call?[_]:Array.prototype.slice.call(_):[]}(w.to);if(Z){for(var ye=0,Se=Z.length;ye<Se;++ye){var De=String(Z[ye]),_e=De.lastIndexOf("@"),$e=De.slice(0,_e).replace(mt,En).replace(mt,x).replace(tn,I),Te=De.slice(_e+1);try{Te=N.iri?Oe_toUnicode(Te):Oe_toASCII(Wt(Te,N).toLowerCase())}catch(Je){q.error=q.error||"Email address's domain name can not be converted to "+(N.iri?"Unicode":"ASCII")+" via punycode: "+Je}Z[ye]=$e+"@"+Te}q.path=Z.join(",")}var Fe=w.headers=w.headers||{};w.subject&&(Fe.subject=w.subject),w.body&&(Fe.body=w.body);var Ke=[];for(var qe in Fe)Fe[qe]!==kn[qe]&&Ke.push(qe.replace(mt,En).replace(mt,x).replace(_n,I)+"="+Fe[qe].replace(mt,En).replace(mt,x).replace(mn,I));return Ke.length&&(q.query=Ke.join("&")),q}},un=/^([^\:]+)\:(.*)/,fn={scheme:"urn",parse:function(w,N){var q=w.path&&w.path.match(un),Z=w;if(q){var ye=N.scheme||Z.scheme||"urn",Se=q[1].toLowerCase(),De=q[2],$e=p[ye+":"+(N.nid||Se)];Z.nid=Se,Z.nss=De,Z.path=void 0,$e&&(Z=$e.parse(Z,N))}else Z.error=Z.error||"URN can not be parsed.";return Z},serialize:function(w,N){var Z=w.nid,Se=p[(N.scheme||w.scheme||"urn")+":"+(N.nid||Z)];Se&&(w=Se.serialize(w,N));var De=w;return De.path=(Z||N.nid)+":"+w.nss,De}},Xt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Jt={scheme:"urn:uuid",parse:function(w,N){var q=w;return q.uuid=q.nss,q.nss=void 0,!N.tolerant&&(!q.uuid||!q.uuid.match(Xt))&&(q.error=q.error||"UUID is not valid."),q},serialize:function(w,N){var q=w;return q.nss=(w.uuid||"").toLowerCase(),q}};p[l.scheme]=l,p[Un.scheme]=Un,p[xt.scheme]=xt,p[fn.scheme]=fn,p[Jt.scheme]=Jt,b.SCHEMES=p,b.pctEncChar=I,b.pctDecChars=e,b.parse=ue,b.removeDotSegments=Lt,b.serialize=yt,b.resolveComponents=Qt,b.resolve=function Gn(_,w,N){var q=function v(_,w){var N=_;if(w)for(var q in w)N[q]=w[q];return N}({scheme:"null"},N);return yt(Qt(ue(_,q),ue(w,q),q,!0),q)},b.normalize=function cn(_,w){return"string"==typeof _?_=yt(ue(_,w),w):"object"===m(_)&&(_=ue(yt(_,w),w)),_},b.equal=function xn(_,w,N){return"string"==typeof _?_=yt(ue(_,N),N):"object"===m(_)&&(_=yt(_,N)),"string"==typeof w?w=yt(ue(w,N),N):"object"===m(w)&&(w=yt(w,N)),_===w},b.escapeComponent=function $n(_,w){return _&&_.toString().replace(w&&w.iri?E.ESCAPE:d.ESCAPE,I)},b.unescapeComponent=Wt,Object.defineProperty(b,"__esModule",{value:!0})}(G)},7552(){!function(ce,G){"use strict";var P=G.$$minErr("$sanitize"),x=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,C=/^<\/\s*([\w:-]+)[^>]*>/,v=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,u=/^</,d=/^<\//,E=/<!--(.*?)-->/g,S=/<!DOCTYPE([^>]*?)>/i,A=/<!\[CDATA\[(.*?)]]>/g,Y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,z=/([^\#-~| |!])/g,U=de("area,br,col,hr,img,wbr"),y=de("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),R=de("rp,rt"),V=G.extend({},R,y),ee=G.extend({},y,de("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,script,section,table,ul")),J=G.extend({},R,de("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")),ne=de("animate,animateColor,animateMotion,animateTransform,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,set,stop,svg,switch,text,title,tspan,use"),oe=de("script,style"),B=G.extend({},U,ee,J,V,ne),D=de("background,cite,href,longdesc,src,usemap,xlink:href"),L=de("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,target,title,type,valign,value,vspace,width"),g=de("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,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,str
1ikethrough-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"),ie=G.extend({},D,g,L);function de(le){var Pe,ae={},fe=le.split(",");for(Pe=0;Pe<fe.length;Pe++)ae[fe[Pe]]=!0;return ae}var K=document.createElement("pre");function se(le){return le?(K.innerHTML=le.replace(/</g,"<"),K.textContent):""}function ve(le){return le.replace(/&/g,"&").replace(Y,function(ae){return"&#"+(1024*(ae.charCodeAt(0)-55296)+(ae.charCodeAt(1)-56320)+65536)+";"}).replace(z,function(ae){return"&#"+ae.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function he(le,ae){var fe=!1,Pe=G.bind(le,le.push);return{start:function(be,Be,ut){be=G.lowercase(be),!fe&&oe[be]&&(fe=be),!fe&&!0===B[be]&&(Pe("<"),Pe(be),G.forEach(Be,function(Oe,p){var I=G.lowercase(p);!0===ie[I]&&(!0!==D[I]||ae(Oe,"img"===be&&"src"===I||"background"===I))&&(Pe(" "),Pe(p),Pe('="'),Pe(ve(Oe)),Pe('"'))}),Pe(ut?"/>":">"))},end:function(be){be=G.lowercase(be),!fe&&!0===B[be]&&(Pe("</"),Pe(be),Pe(">")),be==fe&&(fe=!1)},chars:function(be){fe||Pe(ve(be))}}}G.module("ngSanitize",[]).provider("$sanitize",function i(){this.$get=["$$sanitizeUri",function(le){return function(ae){var fe=[];return function k(le,ae){"string"!=typeof le&&(le=null===le||typeof le>"u"?"":""+le);var fe,Pe,be,Oe,Be=[],ut=le;for(Be.last=function(){return Be[Be.length-1]};le;){if(Oe="",Pe=!0,Be.last()&&oe[Be.last()]?(le=le.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+Be.last()+"[^>]*>","i"),function(e,r){return r=r.replace(E,"$1").replace(A,"$1"),ae.chars&&ae.chars(se(r)),""}),I(0,Be.last())):(0===le.indexOf("\x3c!--")?(fe=le.indexOf("--",4))>=0&&le.lastIndexOf("--\x3e",fe)===fe&&(ae.comment&&ae.comment(le.substring(4,fe)),le=le.substring(fe+3),Pe=!1):S.test(le)?(be=le.match(S))&&(le=le.replace(be[0],""),Pe=!1):d.test(le)?(be=le.match(C))&&(le=le.substring(be[0].length),be[0].replace(C,I),Pe=!1):u.test(le)&&((be=le.match(x))?(be[4]&&(le=le.substring(be[0].length),be[0].replace(x,p)),Pe=!1):(Oe+="<",le=le.substring(1))),Pe&&(Oe+=(fe=le.indexOf("<"))<0?le:le.substring(0,fe),le=fe<0?"":le.substring(fe),ae.chars&&ae.chars(se(Oe)))),le==ut)throw P("badparse","The sanitizer was unable to parse the following block of html: {0}",le);ut=le}function p(e,r,f,O){if(r=G.lowercase(r),ee[r])for(;Be.last()&&J[Be.last()];)I(0,Be.last());V[r]&&Be.last()==r&&I(0,r),(O=U[r]||!!O)||Be.push(r);var F={};f.replace(v,function(Q,ge,ue,Ce,We){F[ge]=se(ue||Ce||We||"")}),ae.start&&ae.start(r,F,O)}function I(e,r){var O,f=0;if(r=G.lowercase(r))for(f=Be.length-1;f>=0&&Be[f]!=r;f--);if(f>=0){for(O=Be.length-1;O>=f;O--)ae.end&&ae.end(Be[O]);Be.length=f}}I()}(ae,he(fe,function(Pe,be){return!/^unsafe/.test(le(Pe,be))})),fe.join("")}}]}),G.module("ngSanitize").filter("linky",["$sanitize",function(le){var ae=/((ftp|https?):\/\/|(www\.))\S*[^\s.;,(){}<>"\u201d\u2019]/;return function(fe,Pe,be){if(!fe)return fe;for(var Be,p,I,ut=fe,Oe=[];Be=ut.match(ae);)p=Be[0],!Be[2]&&!Be[4]&&Be[3]&&(p="http://"+p),e(ut.substr(0,I=Be.index)),r(p,Be[0]),ut=ut.substring(I+Be[0].length);return e(ut),le(Oe.join(""));function e(f){f&&Oe.push(function m(le){var ae=[];return he(ae,G.noop).chars(le),ae.join("")}(f))}function r(f,O){Oe.push("<a "),G.isDefined(Pe)&&(!0!==be||0!==f.indexOf(ce.location.origin+"/"))&&Oe.push('target="',Pe,'" ','rel="noopener noreferrer" '),Oe.push('href="',f.replace(/"/g,"""),'">'),e(O),Oe.push("</a>")}}}])}(window,window.angular)},75959(ce,G,b){var P=b(94572);window.ST=typeof window.ST>"u"?{}:window.ST,window.ST.$=P,window.global=window},9433(ce){ce.exports=function(){"use strict";function G(y,R){var V,ee=document.createElement(y||"div");for(V in R)ee[V]=R[V];return ee}function b(y){for(var R=1,V=arguments.length;V>R;R++)y.appendChild(arguments[R]);return y}function P(y,R,V,ee){var J=["opacity",R,~~(100*y),V,ee].join("-"),ne=.01+V/ee*100,oe=Math.max(1-(1-y)/R*(100-ne),y),B=E.substring(0,E.indexOf("Animation")).toLowerCase();return A[J]||(Y.insertRule("@"+(B&&"-"+B+"-"||"")+"keyframes "+J+"{0%{opacity:"+oe+"}
1"+ne+"%{opacity:"+y+"}"+(ne+.01)+"%{opacity:1}"+(ne+R)%100+"%{opacity:"+y+"}100%{opacity:"+oe+"}}",Y.cssRules.length),A[J]=1),J}function i(y,R){var V,ee,J=y.style;for(R=R.charAt(0).toUpperCase()+R.slice(1),ee=0;ee<S.length;ee++)if(void 0!==J[V=S[ee]+R])return V;return void 0!==J[R]?R:void 0}function m(y,R){for(var V in R)y.style[i(y,V)||V]=R[V];return y}function x(y){for(var R=1;R<arguments.length;R++){var V=arguments[R];for(var ee in V)void 0===y[ee]&&(y[ee]=V[ee])}return y}function C(y){for(var R={x:y.offsetLeft,y:y.offsetTop};y=y.offsetParent;)R.x+=y.offsetLeft,R.y+=y.offsetTop;return R}function v(y,R){return"string"==typeof y?y:y[R%y.length]}function u(y){return typeof this>"u"?new u(y):void(this.opts=x(y||{},u.defaults,z))}var E,y,S=["webkit","Moz","ms","O"],A={},Y=(y=G("style",{type:"text/css"}),b(document.getElementsByTagName("head")[0],y),y.sheet||y.styleSheet),z={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};u.defaults={},x(u.prototype,{spin:function(y){this.stop();var R,V,ee=this,J=ee.opts,ne=ee.el=m(G(0,{className:J.className}),{position:J.position,width:0,zIndex:J.zIndex}),oe=J.radius+J.length+J.width;if(y&&(y.insertBefore(ne,y.firstChild||null),V=C(y),R=C(ne),m(ne,{left:("auto"==J.left?V.x-R.x+(y.offsetWidth>>1):parseInt(J.left,10)+oe)+"px",top:("auto"==J.top?V.y-R.y+(y.offsetHeight>>1):parseInt(J.top,10)+oe)+"px"})),ne.setAttribute("role","progressbar"),ee.lines(ne,ee.opts),!E){var B,D=0,L=(J.lines-1)*(1-J.direction)/2,g=J.fps,ie=g/J.speed,de=(1-J.opacity)/(ie*J.trail/100),k=ie/J.lines;!function K(){D++;for(var se=0;se<J.lines;se++)B=Math.max(1-(D+(J.lines-se)*k)%ie*de,J.opacity),ee.opacity(ne,se*J.direction+L,B,J);ee.timeout=ee.el&&setTimeout(K,~~(1e3/g))}()}return ee},stop:function(){var y=this.el;return y&&(clearTimeout(this.timeout),y.parentNode&&y.parentNode.removeChild(y),this.el=void 0),this},lines:function(y,R){function V(oe,B){return m(G(),{position:"absolute",width:R.length+R.width+"px",height:R.width+"px",background:oe,boxShadow:B,transformOrigin:"left",transform:"rotate("+~~(360/R.lines*J+R.rotate)+"deg) translate("+R.radius+"px,0)",borderRadius:(R.corners*R.width>>1)+"px"})}for(var ee,J=0,ne=(R.lines-1)*(1-R.direction)/2;J<R.lines;J++)ee=m(G(),{position:"absolute",top:1+~(R.width/2)+"px",transform:R.hwaccel?"translate3d(0,0,0)":"",opacity:R.opacity,animation:E&&P(R.opacity,R.trail,ne+J*R.direction,R.lines)+" "+1/R.speed+"s linear infinite"}),R.shadow&&b(ee,m(V("#000","0 0 4px #000"),{top:"2px"})),b(y,b(ee,V(v(R.color,J),"0 0 1px rgba(0,0,0,.1)")));return y},opacity:function(y,R,V){R<y.childNodes.length&&(y.childNodes[R].style.opacity=V)}});var U=m(G("group"),{behavior:"url(#default#VML)"});return!i(U,"transform")&&U.adj?function d(){function y(R,V){return G("<"+R+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',V)}Y.addRule(".spin-vml","behavior:url(#default#VML)"),u.prototype.lines=function(R,V){function ee(){return m(y("group",{coordsize:B+" "+B,coordorigin:-oe+" "+-oe}),{width:B,height:B})}function J(g,ie,de){b(L,b(m(ee(),{rotation:360/V.lines*g+"deg",left:~~ie}),b(m(y("roundrect",{arcsize:V.corners}),{width:oe,height:V.width,left:V.radius,top:-V.width>>1,filter:de}),y("fill",{color:v(V.color,g),opacity:V.opacity}),y("stroke",{opacity:0}))))}var ne,oe=V.length+V.width,B=2*oe,D=2*-(V.width+V.length)+"px",L=m(ee(),{position:"absolute",top:D,left:D});if(V.shadow)for(ne=1;ne<=V.lines;ne++)J(ne,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(ne=1;ne<=V.lines;ne++)J(ne);return b(R,L)},u.prototype.opacity=function(R,V,ee,J){var ne=R.firstChild;J=J.shadow&&J.lines||0,ne&&V+J<ne.childNodes.length&&(ne=(ne=(ne=ne.childNodes[V+J])&&ne.firstChild)&&ne.firstChild)&&(ne.opacity=ee)}}():E=i(U,"animation"),u}()},71808(){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.modal","ui.bootstrap.tooltip","ui.bootstrap.position","ui.bootstrap.bindHtml","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/modal/backdrop.html","template/modal/window.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var ce=[];
1return{add:function(G,b){ce.push({key:G,value:b})},get:function(G){for(var b=0;b<ce.length;b++)if(G==ce[b].key)return ce[b]},keys:function(){for(var G=[],b=0;b<ce.length;b++)G.push(ce[b].key);return G},top:function(){return ce[ce.length-1]},remove:function(G){for(var b=-1,P=0;P<ce.length;P++)if(G==ce[P].key){b=P;break}return ce.splice(b,1)[0]},removeTop:function(){return ce.splice(ce.length-1,1)[0]},length:function(){return ce.length}}}}}).directive("modalBackdrop",["$animate","$injector","$modalStack",function(ce,G,b){var P=null;return G.has("$animateCss")&&(P=G.get("$animateCss")),{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(m,x){return m.addClass(x.backdropClass),i}};function i(m,x,C){C.modalInClass&&(P?P(x,{addClass:C.modalInClass}).start():ce.addClass(x,C.modalInClass),m.$on(b.NOW_CLOSING_EVENT,function(v,u){var d=u();P?P(x,{removeClass:C.modalInClass}).start().then(d):ce.removeClass(x,C.modalInClass).then(d)}))}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector",function(ce,G,b,P){var i=null;return P.has("$animateCss")&&(i=P.get("$animateCss")),{restrict:"EA",scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(m,x){return x.templateUrl||"template/modal/window.html"},link:function(m,x,C){x.addClass(C.windowClass||""),m.size=C.size,m.close=function(u){var d=ce.getTop();d&&d.value.backdrop&&"static"!=d.value.backdrop&&u.target===u.currentTarget&&(u.preventDefault(),u.stopPropagation(),ce.dismiss(d.key,"backdrop click"))},m.$isRendered=!0;var v=G.defer();C.$observe("modalRender",function(u){"true"==u&&v.resolve()}),v.promise.then(function(){C.modalInClass&&(i?i(x,{addClass:C.modalInClass}).start():b.addClass(x,C.modalInClass),m.$on(ce.NOW_CLOSING_EVENT,function(E,S){var A=S();i?i(x,{removeClass:C.modalInClass}).start().then(A):b.removeClass(x,C.modalInClass).then(A)}));var u=x[0].querySelectorAll("[autofocus]");u.length?u[0].focus():x[0].focus();var d=ce.getTop();d&&ce.modalRendered(d.key)})}}}]).directive("modalAnimationClass",[function(){return{compile:function(ce,G){G.modalAnimation&&ce.addClass(G.modalAnimationClass)}}}]).directive("modalTransclude",function(){return{link:function(ce,G,b,P,i){i(ce.$parent,function(m){G.empty(),G.append(m)})}}}).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$stackedMap",function(ce,G,b,P,i,m,x,C){var v=null;x.has("$animateCss")&&(v=x.get("$animateCss"));var d,E,z,u="modal-open",S=C.createNew(),A={NOW_CLOSING_EVENT:"modal.stack.now-closing"},Y="data-bootstrap-modal-aria-hidden-count";function R(){for(var B=-1,D=S.keys(),L=0;L<D.length;L++)S.get(D[L]).value.backdrop&&(B=L);return B}function V(B,D){var L=b.find("body").eq(0),g=S.get(B).value;S.remove(B),J(g.modalDomEl,g.modalScope,function(){L.toggleClass(B.openedClass||u,S.length()>0)}),function ee(){d&&-1==R()&&(J(d,E,function(){}),d=void 0,E=void 0)}(),D&&D.focus?D.focus():L.focus()}function J(B,D,L){var g,ie=null;return D.$broadcast(A.NOW_CLOSING_EVENT,function(){return g||(g=m.defer(),ie=g.promise),function(){g.resolve()}}),m.when(ie).then(function k(){k.done||(k.done=!0,v?v(B,{event:"leave"}).start().then(function(){B.remove()}):ce.leave(B),D.$destroy(),L&&L())})}function ne(B,D,L){return!B.value.modalScope.$broadcast("modal.closing",D,L).defaultPrevented}return i.$watch(R,function(B){E&&(E.index=B)}),b.bind("keydown",function(B){if(B.isDefaultPrevented())return B;var D=S.top();if(D&&D.value.keyboard)switch(B.which){case 27:B.preventDefault(),i.$apply(function(){A.dismiss(D.key,"escape key press")});break;case 9:A.loadFocusElementList(D);var L=!1;B.shiftKey?A.isFocusInFirstItem(B)&&(L=A.focusLastFocusableElement()):A.isFocusInLastItem(B)&&(L=A.focusFirstFocusableElement()),L&&(B.preventDefault(),B.stopPropagation())}}),A.open=function(B,D){var L=b[0].activeElement;S.add(B,{deferred:D.deferred,renderDeferred:D.renderDeferred,modalScope:D.scope,backdrop:D.backdrop,keyboard:D.keyboard,openedClass:D.openedClass});var g=b.find("body").eq(0),ie=R();if(ie>=0&&!d){(E=i.$new(!0)).index=ie;var de=angular.element('<div modal-backdrop="modal-backdrop"></div>');de.attr("backdrop-class",D.backdropClass),D.animation&&de.attr("modal-animation","true"),d=P(de)(E),g.append(d)}var k=angular.element('<div modal-window="modal-window"></div>');k.attr({"template-url":D.windowTemplateUrl,"window-class":D.windowClass,size:D.size,index:S.length()-1,animate:"animate","aria-modal":!0,"aria-labelledby":D.ariaLabelledBy}).html(D.content),D.animation&&k.attr("modal-animation","true");var K=P(k)(D.scope);S.top().value.modalDomEl=K,S.top().value.modalOpener=L,g.append(K),g.addClass(D.openedClass||u),function se(ve){if(ve&&"BODY"!==ve[0].tagName)return function he(le){var ae=le.parent()?le.parent().children():[];return Array.prototype.filter.call(ae,function(fe){return fe!==le[0]})}(ve).forEach(function(le){var ae="true"===le.getAttribute("aria-hidden"),fe=parseInt(le.getAttribute(Y),10);fe||(fe=ae?1:0),le.setAttribute(Y,fe+1),le.setAttribute("aria-hidden","true")}),se(ve.parent())}(k),A.clearFocusListCache()},A.close=function(B,D){var L=S.get(B);return function oe(){Array.prototype.forEach.call(document.querySelectorAll("["+Y+"]"),function(B){var L=parseInt(B.getAttribute(Y),10)-1;B.setAttribute(Y,L),L||(B.removeAttribute(Y),B.removeAttribute("aria-hidden"))})}(),L&&ne(L,D,!0)?(L.value.modalScope.$$uibDestructionScheduled=!0,L.value.deferred.resolve(D),V(B,L.value.modalOpener),!0):!L},A.dismiss=function(B,D){var L=S.get(B);return L&&ne(L,D,!1)?(L.value.modalScope.$$uibDestructionScheduled=!0,L.value.deferred.reject(D),V(B,L.value.modalOpener),!0):!L},A.dismissAll=function(B){for(var D=this.getTop();D&&this.dismiss(D.key,B);)D=this.getTop()},A.getTop=function(){return S.top()},A.modalRendered=function(B){var D=S.get(B);D&&D.value.renderDeferred.resolve()},A.focusFirstFocusableElement=function(){return z.length>0&&(z[0].focus(),!0)},A.focusLastFocusableElement=function(){return z.length>0&&(z[z.length-1].focus(),!0)},A.isFocusInFirstItem=function(B){return z.length>0&&(B.target||B.srcElement)==z[0]},A.isFocusInLastItem=function(B){return z.length>0&&(B.target||B.srcElement)==z[z.length-1]},A.clearFocusListCache=function(){z=[]},A.loadFocusElementList=function(B){if((void 0===z||!z.length0)&&B){var D=B.value.modalDomEl;D&&D.length&&(z=D[0].querySelectorAll("a[href], area[href], input
1:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))}},A}]).provider("$modal",function(){var ce={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(G,b,P,i,m,x){var C={};function v(d){return d.template?P.when(d.template):i(angular.isFunction(d.templateUrl)?d.templateUrl():d.templateUrl)}return C.open=function(d){var E=P.defer(),S=P.defer(),A=P.defer(),Y={result:E.promise,opened:S.promise,rendered:A.promise,close:function(U){return x.close(Y,U)},dismiss:function(U){return x.dismiss(Y,U)}};if((d=angular.extend({},ce.options,d)).resolve=d.resolve||{},!d.template&&!d.templateUrl)throw new Error("One of template or templateUrl options is required.");var z=P.all([v(d)].concat(function u(d){var E=[];return angular.forEach(d,function(S){angular.isFunction(S)||angular.isArray(S)?E.push(P.when(G.invoke(S))):angular.isString(S)&&E.push(P.when(G.get(S)))}),E}(d.resolve)));return z.then(function(y){var R=(d.scope||b).$new();R.$close=Y.close,R.$dismiss=Y.dismiss,R.$options=d,R.$on("$destroy",function(){R.$$uibDestructionScheduled||R.$dismiss("$uibUnscheduledDestruction")});var V,ee={},J=1;d.controller&&(ee.$scope=R,ee.$modalInstance=Y,angular.forEach(d.resolve,function(ne,oe){ee[oe]=y[J++]}),V=m(d.controller,ee),d.controllerAs&&(d.bindToController&&angular.extend(V,R),R[d.controllerAs]=V)),x.open(Y,{scope:R,deferred:E,renderDeferred:A,content:y[0],animation:d.animation,backdrop:d.backdrop,keyboard:d.keyboard,backdropClass:d.backdropClass,windowClass:d.windowClass,windowTemplateUrl:d.windowTemplateUrl,size:d.size,openedClass:d.openedClass,ariaLabelledBy:d.ariaLabelledBy})},function(y){E.reject(y)}),z.then(function(){S.resolve(!0)},function(U){S.reject(U)}),Y},C}]};return ce}),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){var ce={placement:"top",animation:!0,popupDelay:0,useContentExp:!1},G={mouseenter:"mouseleave",click:"click",focus:"blur"},b={};this.options=function(i){angular.extend(b,i)},this.setTriggers=function(m){angular.extend(G,m)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate","$rootScope",function(i,m,x,C,v,u,d){return function(S,A,Y,z){function U(J){var ne=(J||z.trigger||Y).split(" "),oe=ne.map(function(B){return G[B]||B});return{show:ne,hide:oe}}z=angular.extend({},ce,b,z);var y=function P(i){return i.replace(/[A-Z]/g,function(C,v){return(v?"-":"")+C.toLowerCase()})}(S),R=u.startSymbol(),V=u.endSymbol(),ee="<div "+y+'-popup title="'+R+"title"+V+'" '+(z.useContentExp?'content-exp="contentExp()" ':'content="'+R+"content"+V+'" ')+'placement="'+R+"placement"+V+'" popup-class="'+R+"popupClass"+V+'" animation="animation" is-open="isOpen"origin-scope="origScope" ></div>';return{restrict:"EA",compile:function(J,ne){var oe=m(ee);return function(D,L,g,ie){var de,k,K,se,ve=!!angular.isDefined(z.appendToBody)&&z.appendToBody,he=U(void 0),le=angular.isDefined(g[A+"Enable"]),ae=D.$new(!0),fe=!1,Pe=function(){if(de){var we=v.positionElements(L,de,ae.placement,ve);we.top+="px",we.left+="px",de.css(we)}},be=function(){x(Pe,0,!1)};function Be(){ae.isOpen?Oe():ut()}function ut(){le&&!D.$eval(g[A+"Enable"])||(function f(){(function O(){ae.popupClass=g[A+"Class"]})(),F(),function Q(){var st=parseInt(g[A+"PopupDelay"],10);ae.popupDelay=isNaN(st)?z.popupDelay:st}()}(),ae.popupDelay?se||(se=x(p,ae.popupDelay,!1)).then(function(we){we()}):p()())}function Oe(){I(),d.$$phase||d.$digest()}function p(){return se=null,K&&(x.cancel(K),K=null),(z.useContentExp?ae.contentExp():ae.content)?(function e(){de&&r(),k=ae.$new(),de=oe(k,function(we){ve?C.find("body").append(we):L.after(we)}),z.useContentExp&&(k.$watch("contentExp()",function(we){!we&&ae.isOpen&&I()}),k.$watch(function(){fe||(fe=!0,k.$$postDigest(function(){fe=!1,be()}))}))}(),de.css({top:0,left:0,display:"block"}),Pe(),ae.isOpen=!0,ae.$apply(),Pe):angular.noop}function I(){ae.isOpen=!1,x.cancel(se),se=null,ae.animation?K||(K=x(r,500)):r()}function r(){K=null,de&&(de.remove(),de=null),k&&(k.$destroy(),k=null)}function F(){var we=g[A+"Placement"];ae.placement=angular.isDefined(we)?we:z.placement}ae.origScope=D,ae.isOpen=!1,ae.contentExp=function(){return D.$eval(g[S])},z.useContentExp||g.$observe(S,function(we){ae.content=we,!we&&ae.isOpen?I():be()}),g.$observe("disabled",function(we){se&&we&&x.cancel(se),we&&ae.isOpen&&I()}),g.$observe(A+"Title",function(we){ae.title=we,be()}),g.$observe(A+"Placement",function(){ae.isOpen&&x(function(){F(),p()()},0,!1)});var ge=function(){he.show.forEach(function(we){L.unbind(we,ut)}),he.hide.forEach(function(we){L.unbind(we,Oe)})};!function ue(){var we=g[A+"Trigger"];ge(),(he=U(we)).show.forEach(function(st,It){st===he.hide[It]?L.bind(st,Be):st&&(L.bind(st,ut),L.bind(he.hide[It],Oe))})}();
1var Ce=D.$eval(g[A+"Animation"]);ae.animation=angular.isDefined(Ce)?!!Ce:z.animation;var We=D.$eval(g[A+"AppendToBody"]);(ve=angular.isDefined(We)?We:ve)&&D.$on("$locationChangeSuccess",function(){ae.isOpen&&I()}),D.$on("$destroy",function(){x.cancel(K),x.cancel(se),ge(),r(),ae=null})}}}}}]}).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(ce,G,b,P){return{link:function(i,m,x){var u,d,E,C=i.$eval(x.tooltipTemplateTranscludeScope),v=0,S=function(){d&&(d.remove(),d=null),u&&(u.$destroy(),u=null),E&&(ce.leave(E).then(function(){d=null}),d=E,E=null)};i.$watch(G.parseAsResourceUrl(x.tooltipTemplateTransclude),function(A){var Y=++v;A?(P(A,!0).then(function(z){if(Y===v){var U=C.$new(),R=b(z)(U,function(V){S(),ce.enter(V,m)});E=R,(u=U).$emit("$includeContentLoaded",A)}},function(){Y===v&&(S(),i.$emit("$includeContentError",A))}),i.$emit("$includeContentRequested",A)):S()}),i.$on("$destroy",S)}}}]).directive("tooltipClasses",function(){return{restrict:"A",link:function(ce,G,b){ce.placement&&G.addClass(ce.placement),ce.popupClass&&G.addClass(ce.popupClass),ce.animation()&&G.addClass(b.tooltipAnimationClass)}}}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(ce){return ce("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}}).directive("tooltipTemplate",["$tooltip",function(ce){return ce("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}}).directive("tooltipHtml",["$tooltip",function(ce){return ce("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).value("tooltipHtmlUnsafeSuppressDeprecated",!1).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(ce,G,b){return G||b.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead."),ce("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(ce,G){function P(m){return"static"===(function b(m,x){return m.currentStyle?m.currentStyle[x]:G.getComputedStyle?G.getComputedStyle(m)[x]:m.style[x]}(m,"position")||"static")}return{position:function(m){var x=this.offset(m),C={top:0,left:0},v=function(m){for(var x=ce[0],C=m.offsetParent||x;C&&C!==x&&P(C);)C=C.offsetParent;return C||x}(m[0]);v!=ce[0]&&((C=this.offset(angular.element(v))).top+=v.clientTop-v.scrollTop,C.left+=v.clientLeft-v.scrollLeft);var u=m[0].getBoundingClientRect();return{width:u.width||m.prop("offsetWidth"),height:u.height||m.prop("offsetHeight"),top:x.top-C.top,left:x.left-C.left}},offset:function(m){var x=m[0].getBoundingClientRect();return{width:x.width||m.prop("offsetWidth"),height:x.height||m.prop("offsetHeight"),top:x.top+(G.pageYOffset||ce[0].documentElement.scrollTop),left:x.left+(G.pageXOffset||ce[0].documentElement.scrollLeft)}},positionElements:function(m,x,C,v){var S,A,Y,z,u=C.split("-"),d=u[0],E=u[1]||"center";S=v?this.offset(m):this.position(m),A=x.prop("offsetWidth"),Y=x.prop("offsetHeight");var U={center:function(){return S.left+S.width/2-A/2},left:function(){return S.left},right:function(){return S.left+S.width}},y={center:function(){return S.top+S.height/2-Y/2},top:function(){return S.top},bottom:function(){return S.top+S.height}};switch(d){case"right":z={top:y[E](),left:U[d]()};break;case"left":z={top:y[E](),left:S.left-A};break;case"bottom":z={top:y[d](),left:U[E]()};break;default:z={top:S.top-Y,left:U[E]()}}return z}}}]),angular.module("ui.bootstrap.bindHtml",[]).value("$bindHtmlUnsafeSuppressDeprecated",!1).directive("bindHtmlUnsafe",["$log","$bindHtmlUnsafeSuppressDeprecated",function(ce,G){return function(b,P,i){G||ce.warn("bindHtmlUnsafe is now deprecated. Use ngBindHtml instead"),P.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe),b.$watch(i.bindHtmlUnsafe,function(x){P.html(x||"")})}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(ce){var G=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*
1))\s+in\s+([\s\S]+?)$/;return{parse:function(b){var P=b.match(G);if(!P)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+b+'".');return{itemName:P[3],source:ce(P[4]),viewMapper:ce(P[2]||P[1]),modelMapper:ce(P[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$position","typeaheadParser",function(ce,G,b,P,i,m,x,C,v){var u=[9,13,27,38,40];return{require:"ngModel",link:function(E,S,A,Y){var z=E.$eval(A.typeaheadMinLength);!z&&0!==z&&(z=1);var ie,de,U=E.$eval(A.typeaheadWaitMs)||0,y=!1!==E.$eval(A.typeaheadEditable),R=G(A.typeaheadLoading).assign||angular.noop,V=G(A.typeaheadOnSelect),ee=!!angular.isDefined(A.typeaheadSelectOnBlur)&&E.$eval(A.typeaheadSelectOnBlur),J=G(A.typeaheadNoResults).assign||angular.noop,ne=A.typeaheadInputFormatter?G(A.typeaheadInputFormatter):void 0,oe=!!A.typeaheadAppendToBody&&E.$eval(A.typeaheadAppendToBody),B=!1!==E.$eval(A.typeaheadFocusFirst),D=!!A.typeaheadSelectOnExact&&E.$eval(A.typeaheadSelectOnExact),L=G(A.ngModel).assign,g=v.parse(A.typeahead),k=E.$new();E.$on("$destroy",function(){k.$destroy()});var K="typeahead-"+k.$id+"-"+Math.floor(1e4*Math.random());S.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":K});var se=angular.element("<div typeahead-popup></div>");se.attr({id:K,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(A.typeaheadTemplateUrl)&&se.attr("template-url",A.typeaheadTemplateUrl);var ve=function(){k.matches=[],k.activeIdx=-1,S.attr("aria-expanded",!1)},he=function(e){return K+"-option-"+e};k.$watch("activeIdx",function(e){e<0?S.removeAttr("aria-activedescendant"):S.attr("aria-activedescendant",he(e))});var fe,ae=function(e){var r={$viewValue:e};R(E,!0),J(E,!1),b.when(g.source(E,r)).then(function(f){var O=e===Y.$viewValue;if(O&&ie)if(f&&f.length>0){k.activeIdx=B?0:-1,J(E,!1),k.matches.length=0;for(var F=0;F<f.length;F++)r[g.itemName]=f[F],k.matches.push({id:he(F),label:g.viewMapper(k,r),model:f[F]});k.query=e,be(),S.attr("aria-expanded",!0),D&&1===k.matches.length&&function(e){return!!(k.matches.length>0&&e)&&e.toUpperCase()===k.matches[0].label.toUpperCase()}(e)&&k.select(0)}else ve(),J(E,!0);O&&R(E,!1)},function(){ve(),R(E,!1),J(E,!0)})};function Pe(){k.moveInProgress||(k.moveInProgress=!0,k.$digest()),fe&&P.cancel(fe),fe=P(function(){k.matches.length&&be(),k.moveInProgress=!1,k.$digest()},200)}function be(){k.position=oe?C.offset(S):C.position(S),k.position.top+=S.prop("offsetHeight")}oe&&(angular.element(m).bind("resize",Pe),i.find("body").bind("scroll",Pe)),k.moveInProgress=!1,ve(),k.query=void 0;var Be,Oe=function(){Be&&P.cancel(Be)};Y.$parsers.unshift(function(e){return ie=!0,0===z||e&&e.length>=z?U>0?(Oe(),function(e){Be=P(function(){ae(e)},U)}(e)):ae(e):(R(E,!1),Oe(),ve()),y?e:e?void Y.$setValidity("editable",!1):(Y.$setValidity("editable",!0),null)}),Y.$formatters.push(function(e){var r,O={};return y||Y.$setValidity("editable",!0),ne?(O.$model=e,ne(E,O)):(O[g.itemName]=e,r=g.viewMapper(E,O),O[g.itemName]=void 0,r!==g.viewMapper(E,O)?r:e)}),k.select=function(e){var f,O,r={};de=!0,r[g.itemName]=O=k.matches[e].model,f=g.modelMapper(E,r),L(E,f),Y.$setValidity("editable",!0),Y.$setValidity("parse",!0),V(E,{$item:O,$model:f,$label:g.viewMapper(E,r)}),ve(),P(function(){S[0].focus()},0,!1)},S.bind("keydown",function(e){if(0!==k.matches.length&&-1!==u.indexOf(e.which)){if(-1===k.activeIdx&&(9===e.which||13===e.which))return ve(),void k.$digest();e.preventDefault(),40===e.which?(k.activeIdx=(k.activeIdx+1)%k.matches.length,k.$digest()):38===e.which?(k.activeIdx=(k.activeIdx>0?k.activeIdx:k.matches.length)-1,k.$digest()):13===e.which||9===e.which?k.$apply(function(){k.select(k.activeIdx)}):27===e.which&&(e.stopPropagation(),ve(),k.$digest())}}),S.bind("blur",function(){ee&&k.matches.length&&-1!==k.activeIdx&&!de&&(de=!0,k.$apply(function(){k.select(k.activeIdx)})),ie=!1,de=!1});var p=function(e){S[0]!==e.target&&3!==e.which&&0!==k.matches.length&&(ve(),x.$$phase||k.$digest())};i.bind("click",p),E.$on("$destroy",function(){i.unbind("click",p),oe&&I.remove(),se.remove()});var I=ce(se)(k);oe?i.find("body").append(I):S.after(I)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(ce,G,b){ce.templateUrl=b.templateUrl,ce.isOpen=function(){return ce.matches.length>0},ce.isActive=function(P){return ce.active==P},ce.selectActive=function(P){ce.active=P},ce.selectMatch=function(P){ce.select({activeIdx:P})}}}}).directive("typeaheadMatch",["$templateRequest","$compile","$parse",function(ce,G,b){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(P,i,m){var x=b(m.templateUrl)(P.$parent)||"template/typeahead/typeahead-match.html";ce(x).then(function(C){G(C.trim())(P,function(v){i.replaceWith(v)})})}}}]).filter("typeaheadHighlight",function(){return function(G,b){return b?(""+G).replace(new RegExp(function ce(G){return G.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(b),"gi"),"<strong>$&</strong>"):G}}),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(ce){ce.put("template/modal/backdrop.html",'<div class="modal-backdrop"\n modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(ce){ce.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n modal-animation-class="fade"\n modal-in-class="in"\n\tng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">
1\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" modal-transclude></div></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(ce){ce.put("template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(ce){ce.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(ce){ce.put("template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(ce){ce.put("template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(ce){ce.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>\n')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(ce){ce.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">\n <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}])},77704(){!function(){"use strict";var ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol?"symbol":typeof G};angular.module("ui.scroll",[]).directive("uiScrollViewport",function(){return{controller:["$log","$scope","$element",function(G,b,P){var i=this;i.container=P,i.viewport=P,angular.forEach(P.children(),function(m){"tbody"===m.tagName.toLowerCase()&&(i.viewport=angular.element(m))})}]}}).directive("uiScroll",["$log","$injector","$rootScope","$timeout","$q","$parse",function(G,b,P,i,m,x){var C=b.has&&b.has("$animate")?b.get("$animate"):null,v=1===angular.version.major&&angular.version.minor<3;return{require:["?^uiScrollViewport"],transclude:"element",priority:1e3,terminal:!0,link:function U(y,R,V,ee,J){var ne=V.uiScroll.match(/^\s*(\w+)\s+in\s+([\w\.]+)\s*$/);if(!ne)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+V.uiScroll+"'");var oe=ne[1],B=ne[2],D=Math.max(3,+V.bufferSize||10),L=parseInt(V.startIndex,10);isNaN(L)&&(L=1);var g=function(){var ue=function(){return angular.isObject(Ce)&&angular.isFunction(Ce.get)},Ce=x(B)(y);if(!ue()&&(Ce=b.get(B),!ue()))throw new Error(B+" is not a valid datasource");var We=Object.getOwnPropertyDescriptor(Ce,"minIndex");(!We||!We.set&&!We.get)&&Object.defineProperty(Ce,"minIndex",{set:function(It){this._minIndex=It,ve(It)},get:function(){return this._minIndex}});var we=Object.getOwnPropertyDescriptor(Ce,"maxIndex");return(!we||!we.set&&!we.get)&&Object.defineProperty(Ce,"maxIndex",{set:function(It){this._maxIndex=It,he(It)},get:function(){return this._maxIndex}}),Ce.folderId=parseInt(y.folder.id),Ce}(),ie=0,de=[],k=new A(oe,y,J,D),K=new Y(k,R,ee,V),se=new z(V,K,k,function(){Be(),f(ie)}),ve=function(Ce){i(function(){k.minIndexUser=Ce,de.length||K.adjustPadding(!0)})},he=function(Ce){i(function(){k.maxIndexUser=Ce,de.length||K.adjustPadding()})},le=2!==g.get.length?function(ue){return g.get(k.next,D,ue,g.folderId)}:function(ue){g.get({index:k.next,append:k.length?k[k.length-1].item:void 0,count:D},ue)},ae=2!==g.get.length?function(ue){return g.get(k.first-D,D,ue,g.folderId)}:function(ue){g.get({index:k.first-D,prepend:k.length?k[0].item:void 0,count:D},ue)};if(V.adapter){var fe=x(V.adapter)(y);angular.isObject(fe)||(x(V.adapter).assign(y,{}),fe=x(V.adapter)(y)),se=angular.extend(fe,se)}function be(){K.unbind("resize",Q),K.unbind("scroll",Q)}function Be(){ie++,de=[]}function ut(){Be(),K.resetTopPadding(),K.resetBottomPadding(),arguments.length&&(L=arguments[0]),k.reset(L),f(ie)}function Oe(ue){return ue.element.height()&&ue.element[0].offsetParent}function I(ue,Ce){return K.insertElement(ue.element,Ce),!!Oe(ue)||(ue.unregisterVisibilityWatcher=ue.scope.$watch(function(){return function p(ue){Oe(ue)&&(k.forEach(function(Ce){angular.isFunction(Ce.unregisterVisibilityWatcher)&&(Ce.unregisterVisibilityWatcher(),delete Ce.unregisterVisibilityWatcher)}),f())}(ue)}),!1)}function e(ue){var Ce=!1,We=[],we=[],st=[];function It(yt){return yt>0?k[yt-1].element:void 0}
1if(k.forEach(function(yt,Qt){switch(yt.op){case"prepend":we.unshift(yt);break;case"append":Ce=I(yt,It(Qt))||Ce,yt.op="none";break;case"insert":We=We.concat(K.insertElementAnimated(yt.element,It(Qt))),yt.op="none";break;case"remove":st.push(yt)}}),st.forEach(function(yt){return We=We.concat(k.remove(yt))}),we.length){var Lt=0;we.forEach(function(yt){Ce=I(yt)||Ce,yt.op="none",Lt+=yt.element.outerHeight(!0)}),K.adjustScrollTopAfterPrepend(Lt)}return k.forEach(function(yt,Qt){return yt.scope.$index=k.first+Qt}),We.length?m.all(We).then(function(){return K.adjustPadding(),f(ue)}):K.adjustPadding(),Ce}function r(ue,Ce){K.shouldLoadBottom()&&Ce?1===de.push(!0)&&(F(ue),se.loading(!0)):K.shouldLoadTop()&&(Ce||de[0])&&1===de.push(!1)&&(F(ue),se.loading(!0))}function f(ue){i(function(){e(ue),r(ue,!0),de.length||se.calculateProperties()})}function O(ue){i(function(){r(ue,e(ue)),de.shift(),de.length?F(ue):(se.loading(!1),function Pe(){K.bind("resize",Q),K.bind("scroll",Q)}(),se.calculateProperties())})}function F(ue){de[0]?k.length&&!K.shouldLoadBottom()?O(ue):le(function(Ce){ue&&ue!==ie||y.$$destroyed||(Ce.length<D&&(k.eof=!0),Ce.length>0&&(K.clipTop(),k.append(Ce),k.setUpper()),O(ue))}):k.length&&!K.shouldLoadTop()?O(ue):ae(function(Ce){ue&&ue!==ie||y.$$destroyed||(Ce.length<D&&(k.bof=!0),Ce.length>0&&(k.length&&K.clipBottom(),k.prepend(Ce),k.setLower()),O(ue))})}function Q(){!P.$$phase&&!se.isLoading&&!se.isDisabled()&&(r(ie,!0),de.length?be():(se.calculateProperties(),y.$apply()))}function ge(ue){if(!se.isDisabled()){var Ce=K[0].scrollTop;(0===Ce&&!k.bof||Ce===K[0].scrollHeight-K[0].clientHeight&&!k.eof)&&ue.preventDefault()}}J(function(ue,Ce){K.createPaddingElements(ue[0]),R.after(ue),i(function(){Ce.$destroy(),ue.remove()})}),se.reload=ut,y.$on("$destroy",function(){be(),K.unbind("mousewheel",ge)}),K.bind("mousewheel",ge),i(function(){K.applyContainerStyle(),ut()})}};function u(y,R){return R.after(y),[]}function d(y){return y.element.remove(),y.scope.$destroy(),[]}function A(y,R,V,ee){var J=Object.create(Array.prototype);return angular.extend(J,{size:ee,reset:function(oe){J.remove(0,J.length),J.eof=!1,J.bof=!1,J.first=oe,J.next=oe,J.minIndex=oe,J.maxIndex=oe,J.minIndexUser=null,J.maxIndexUser=null},append:function(oe){oe.forEach(function(B){++J.next,J.insert("append",B)})},prepend:function(oe){oe.reverse().forEach(function(B){--J.first,J.insert("prepend",B)})},insert:function(oe,B){var D=R.$new(),L={item:B,scope:D};if(D[y]=B,V(D,function(g){return L.element=g}),oe%1==0)L.op="insert",J.splice(oe,0,L);else switch(L.op=oe,oe){case"append":J.push(L);break;case"prepend":J.unshift(L)}},remove:function(oe,B){if(angular.isNumber(oe)){for(var D=oe;D<B;D++)d(J[D]);return J.splice(oe,B-oe)}return J.splice(J.indexOf(oe),1),function S(y){if(!C)return d(y);if(v){var R=(V=m.defer(),C.leave(y.element,function(){return y.scope.$destroy(),V.resolve()}),{v:[V.promise]});if("object"===(typeof R>"u"?"undefined":ce(R)))return R.v}var V;return[C.leave(y.element).then(function(){return y.scope.$destroy()})]}(oe)},setUpper:function(){J.maxIndex=J.eof?J.next-1:Math.max(J.next-1,J.maxIndex)},setLower:function(){J.minIndex=J.bof?J.minIndex=J.first:Math.min(J.first,J.minIndex)}}),J}function Y(y,R,V,ee){var oe=null,B=null,D=V[0]&&V[0].viewport?V[0].viewport:angular.element(window),L=V[0]&&V[0].container?V[0].container:void 0;function g(){var k=Object.create(Array.prototype);return angular.extend(k,{add:function(se){for(var ve=k.length-1;ve>=0;ve--)if(k[ve].index===se.scope.$index)return void(k[ve].height=se.element.outerHeight());k.push({index:se.scope.$index,height:se.element.outerHeight()})},clear:function(){k.length=0}}),k}function ie(k){var K=void 0;switch(k.tagName){case"dl":throw new Error("ui-scroll directive does not support <"+k.tagName+"> as a repeating tag: "+k.outerHTML);case"tr":K=angular.element("<table><tr><td><div></div></td></tr></table>").find("tr");break;case"li":K=angular.element("<li></li>");break;default:K=angular.element("<div></div>")}return K.cache=new g,K}function de(){return D.outerHeight()*Math.max(.3,+ee.padding||.5)}return D.css({"overflow-y":"auto",display:"block"}),angular.extend(D,{createPaddingElements:function(K){oe=new ie(K),B=new ie(K),R.before(oe),R.after(B)},applyContainerStyle:function(){L!==D&&D.css("height",window.getComputedStyle(L[0]).height)},bottomDataPos:function(){var K=D[0].scrollHeight;return(K=K??D[0].document.documentElement.scrollHeight)-B.height()},topDataPos:function(){return oe.height()},bottomVisiblePos:function(){return D.scrollTop()+D.outerHeight()},topVisiblePos:function(){return D.scrollTop()},insertElement:function(K,se){return u(K,se||oe)},insertElementAnimated:function(K,se){return function E(y,R){if(!C)return u(y,R);if(v){var V=(ee=m.defer(),C.enter(y,null,R,function(){return ee.resolve()}),{v:[ee.promise]});if("object"===(typeof V>"u"?"undefined":ce(V)))return V.v}var ee;return[C.enter(y,null,R)]}(K,se||oe)},shouldLoadBottom:function(){return!y.eof&&D.bottomDataPos()<D.bottomVisiblePos()+de()},clipBottom:function(){for(var K=0,se=0,ve=0,he=D.bottomDataPos()-D.bottomVisiblePos()-de(),le=y.length-1;le>=0&&!(se+(ve=y[le].element.outerHeight(!0))>he);
1le--)B.cache.add(y[le]),se+=ve,K++;K>0&&(y.eof=!1,y.remove(y.length-K,y.length),y.next-=K,D.adjustPadding())},shouldLoadTop:function(){return!y.bof&&D.topDataPos()>D.topVisiblePos()-de()},clipTop:function(){for(var K=0,se=0,ve=0,he=D.topVisiblePos()-D.topDataPos()-de(),le=0;le<y.length&&!(se+(ve=y[le].element.outerHeight(!0))>he);le++)oe.cache.add(y[le]),se+=ve,K++;K>0&&(oe.height(oe.height()+se),y.bof=!1,y.remove(0,K),y.first+=K)},adjustPadding:function(K){if(y.length){var se=0,ve=0;if(oe.cache.length)for(var he=oe.cache.length-1;he>=0;he--)oe.cache[he].index<y.first&&(se+=oe.cache[he].height);if(B.cache.length)for(he=B.cache.length-1;he>=0;he--)B.cache[he].index>=y.next&&(ve+=B.cache[he].height);var le=0,ae=0,fe=y.minIndexUser&&y.minIndex>y.minIndexUser,Pe=y.maxIndexUser&&y.maxIndex<y.maxIndexUser;if(fe||Pe){var be=0;for(he=y.length-1;he>=0;he--)be+=y[he].element.outerHeight(!0);var Be=(be+se+ve)/(y.maxIndex-y.minIndex+1);le=fe?(y.minIndex-y.minIndexUser)*Be:0,ae=Pe?(y.maxIndexUser-y.maxIndex)*Be:0}var ut=oe.height();if(oe.height(se+le),B.height(ve+ae),K&&fe&&le){var Oe=oe.height()-ut;D.scrollTop(D.scrollTop()+Oe)}}},adjustScrollTopAfterPrepend:function(K){var se=oe.height()-K;se>=0?oe.height(se):(oe.height(0),D.scrollTop(D.scrollTop()-se))},resetTopPadding:function(){oe.height(0),oe.cache.clear()},resetBottomPadding:function(){B.height(0),B.cache.clear()}}),D}function z(y,R,V,ee){var J=R.scope()||P,ne=y.topVisible?x(y.topVisible).assign:angular.noop,oe=y.topVisibleElement?x(y.topVisibleElement).assign:angular.noop,B=y.topVisibleScope?x(y.topVisibleScope).assign:angular.noop,D=y.isLoading?x(y.isLoading).assign:angular.noop,L=!1;function g(ie,de){if(angular.isArray(de)){var k=void 0,K=V.indexOf(ie)+1;de.reverse().forEach(function(se){se===ie.item?(k=!0,K--):V.insert(K,se)}),k||(ie.op="remove")}}this.disable=function(){return L=!0},this.enable=function(){L&&(ee(),L=!1)},this.isDisabled=function(){return L},this.isLoading=!1,this.applyUpdates=function(ie,de){if(angular.isFunction(ie))V.slice(0).forEach(function(K){g(K,ie(K.item,K.scope,K.element))});else{if(ie%1!=0)throw new Error("applyUpdates - "+ie+" is not a valid index");var k=ie-V.first;k>=0&&k<V.length&&g(V[k],de)}ee()},this.append=function(ie){V.append(ie),ee()},this.prepend=function(ie){V.prepend(ie),ee()},this.loading=function(ie){this.isLoading=ie,D(J,ie)},this.calculateProperties=function(){var ie=void 0,de=void 0,k=void 0,K=void 0,se=void 0,ve=void 0,he=0;for(ie=0;ie<V.length;ie++){if(se=ve!==(K=(de=V[ie]).element.offset().top),ve=K,se&&(k=de.element.outerHeight(!0)),!(se&&R.topDataPos()+he+k<=R.topVisiblePos())){se&&(this.topVisible=de.item,this.topVisibleElement=de.element,this.topVisibleScope=de.scope,ne(J,de.item),oe(J,de.element),B(J,de.scope));break}he+=k}}}}])}()},74238(ce,G){var P;(function(){var i=this,m=i._,x={},C=Array.prototype,v=Object.prototype,d=C.push,E=C.slice,S=C.concat,A=v.toString,Y=v.hasOwnProperty,z=C.forEach,U=C.map,y=C.reduce,R=C.reduceRight,V=C.filter,ee=C.every,J=C.some,ne=C.indexOf,oe=C.lastIndexOf,B=Array.isArray,D=Object.keys,L=Function.prototype.bind,g=function(p){return p instanceof g?p:this instanceof g?void(this._wrapped=p):new g(p)};ce.exports&&(G=ce.exports=g),G._=g,g.VERSION="1.6.0";var ie=g.each=g.forEach=function(p,I,e){if(null==p)return p;if(z&&p.forEach===z)p.forEach(I,e);else if(p.length===+p.length){for(var r=0,f=p.length;f>r;r++)if(I.call(e,p[r],r,p)===x)return}else{var O=g.keys(p);for(r=0,f=O.length;f>r;r++)if(I.call(e,p[O[r]],O[r],p)===x)return}return p};g.map=g.collect=function(p,I,e){var r=[];return null==p?r:U&&p.map===U?p.map(I,e):(ie(p,function(f,O,F){r.push(I.call(e,f,O,F))}),r)};var de="Reduce of empty array with no initial value";g.reduce=g.foldl=g.inject=function(p,I,e,r){var f=arguments.length>2;if(null==p&&(p=[]),y&&p.reduce===y)return r&&(I=g.bind(I,r)),f?p.reduce(I,e):p.reduce(I);if(ie(p,function(O,F,Q){f?e=I.call(r,e,O,F,Q):(e=O,f=!0)}),!f)throw new TypeError(de);return e},g.reduceRight=g.foldr=function(p,I,e,r){var f=arguments.length>2;if(null==p&&(p=[]),R&&p.reduceRight===R)return r&&(I=g.bind(I,r)),f?p.reduceRight(I,e):p.reduceRight(I);var O=p.length;if(O!==+O){var F=g.keys(p);O=F.length}if(ie(p,function(Q,ge,ue){ge=F?F[--O]:--O,f?e=I.call(r,e,p[ge],ge,ue):(e=p[ge],f=!0)}),!f)throw new TypeError(de);return e},g.find=g.detect=function(p,I,e){var r;return k(p,function(f,O,F){return I.call(e,f,O,F)?(r=f,!0):void 0}),r},g.filter=g.select=function(p,I,e){var r=[];return null==p?r:V&&p.filter===V?p.filter(I,e):(ie(p,function(f,O,F){I.call(e,f,O,F)&&r.push(f)}),r)},g.reject=function(p,I,e){return g.filter(p,function(r,f,O){return!I.call(e,r,f,O)},e)},g.every=g.all=function(p,I,e){I||(I=g.identity);var r=!0;return null==p?r:ee&&p.every===ee?p.every(I,e):(ie(p,function(f,O,F){return(r=r&&I.call(e,f,O,F))?void 0:x}),!!r)};var k=g.some=g.any=function(p,I,e){I||(I=g.identity);var r=!1;return null==p?r:J&&p.some===J?p.some(I,e):(ie(p,function(f,O,F){return r||(r=I.call(e,f,O,F))?x:void 0}),!!r)};g.contains=g.include=function(p,I){return null!=p&&(ne&&p.indexOf===ne?-1!=p.indexOf(I):k(p,function(e){return e===I}))},g.invoke=function(p,I){var e=E.call(arguments,2),r=g.isFunction(I);return g.map(p,function(f){return(r?I:f[I]).apply(f,e)})},g.pluck=function(p,I){return g.map(p,g.property(I))},g.where=function(p,I){return g.filter(p,g.matches(I))},g.findWhere=function(p,I){return g.find(p,g.matches(I))},g.max=function(p,I,e){if(!I&&g.isArray(p)&&p[0]===+p[0]&&p.length<65535)return Math.max.apply(Math,p);var r=-1/0,f=-1/0;return ie(p,function(O,F,Q){var ge=I?I.call(e,O,F,Q):O;ge>f&&(r=O,f=ge)}),r},g.min=function(p,I,e){if(!I&&g.isArray(p)&&p[0]===+p[0]&&p.length<65535)return Math.min.apply(Math,p);var r=1/0,f=1/0;return ie(p,function(O,F,Q){var ge=I?I.call(e,O,F,Q):O;f>ge&&(r=O,f=ge)}),r},g.shuffle=function(p){var I,e=0,r=[];return ie(p,function(f){I=g.random(e++),r[e-1]=r[I],r[I]=f}),r},g.sample=function(p,I,e){return null==I||e?(p.length!==+p.length&&(p=g.values(p)),p[g.random(p.length-1)]):g.shuffle(p).slice(0,Math.max(0,I))};var K=function(p){return null==p?g.identity:g.isFunction(p)?p:g.property(p)};g.sortBy=function(p,I,e){return I=K(I),g.pluck(g.map(p,function(r,f,O){return{value:r,index:f,criteria:I.call(e,r,f,O)}}).sort(function(r,f){var O=r.criteria,F=f.criteria;if(O!==F){if(O>F||void 0===O)return 1;if(F>O||void 0===F)return-1}return r.index-f.index}),"value")};var se=function(p){return function(I,e,r){var f={};return e=K(e),ie(I,function(O,F){var Q=e.call(r,O,F,I);p(f,Q,O)}),f}};g.groupBy=se(function(p,I,e){g.has(p,I)?p[I].push(e):p[I]=[e]}),g.indexBy=se(function(p,I,e){p[I]=e}),g.countBy=se(function(p,I){g.has(p,I)?p[I]++:p[I]=1}),g.sortedIndex=function(p,I,e,r){for(var f=(e=K(e)).call(r,I),O=0,F=p.length;F>O;){var Q=O+F>>>1;e.call(r,p[Q])<f?O=Q+1:F=Q}return O},g.toArray=function(p){return p?g.isArray(p)?E.call(p):p.length===+p.length?g.map(p,g.identity):g.values(p):[]},g.size=function(p){return null==p?0:p.length===+p.length?p.length:g.keys(p).length},g.first=g.head=g.take=function(p,I,e){return null==p?void 0:null==I||e?p[0]:0>I?[]:E.call(p,0,I)},g.initial=function(p,I,e){return E.call(p,0,p.length-(null==I||e?1:I))},g.last=function(p,I,e){return null==p?void 0:null==I||e?p[p.length-1]:E.call(p,Math.max(p.length-I,0))},g.rest=g.tail=g.drop=function(p,I,e){return E.call(p,null==I||e?1:I)},g.compact=function(p){return g.filter(p,g.identity)};var ve=function(p,I,e){return I&&g.every(p,g.isArray)?S.apply(e,p):(ie(p,function(r){g.isArray(r)||g.isArguments(r)?I?d.apply(e,r):ve(r,I,e):e.push(r)}),e)};g.flatten=function(p,I){return ve(p,I,[])}
1,g.without=function(p){return g.difference(p,E.call(arguments,1))},g.partition=function(p,I){var e=[],r=[];return ie(p,function(f){(I(f)?e:r).push(f)}),[e,r]},g.uniq=g.unique=function(p,I,e,r){g.isFunction(I)&&(r=e,e=I,I=!1);var f=e?g.map(p,e,r):p,O=[],F=[];return ie(f,function(Q,ge){(I?ge&&F[F.length-1]===Q:g.contains(F,Q))||(F.push(Q),O.push(p[ge]))}),O},g.union=function(){return g.uniq(g.flatten(arguments,!0))},g.intersection=function(p){var I=E.call(arguments,1);return g.filter(g.uniq(p),function(e){return g.every(I,function(r){return g.contains(r,e)})})},g.difference=function(p){var I=S.apply(C,E.call(arguments,1));return g.filter(p,function(e){return!g.contains(I,e)})},g.zip=function(){for(var p=g.max(g.pluck(arguments,"length").concat(0)),I=new Array(p),e=0;p>e;e++)I[e]=g.pluck(arguments,""+e);return I},g.object=function(p,I){if(null==p)return{};for(var e={},r=0,f=p.length;f>r;r++)I?e[p[r]]=I[r]:e[p[r][0]]=p[r][1];return e},g.indexOf=function(p,I,e){if(null==p)return-1;var r=0,f=p.length;if(e){if("number"!=typeof e)return p[r=g.sortedIndex(p,I)]===I?r:-1;r=0>e?Math.max(0,f+e):e}if(ne&&p.indexOf===ne)return p.indexOf(I,e);for(;f>r;r++)if(p[r]===I)return r;return-1},g.lastIndexOf=function(p,I,e){if(null==p)return-1;var r=null!=e;if(oe&&p.lastIndexOf===oe)return r?p.lastIndexOf(I,e):p.lastIndexOf(I);for(var f=r?e:p.length;f--;)if(p[f]===I)return f;return-1},g.range=function(p,I,e){arguments.length<=1&&(I=p||0,p=0),e=arguments[2]||1;for(var r=Math.max(Math.ceil((I-p)/e),0),f=0,O=new Array(r);r>f;)O[f++]=p,p+=e;return O};var he=function(){};g.bind=function(p,I){var e,r;if(L&&p.bind===L)return L.apply(p,E.call(arguments,1));if(!g.isFunction(p))throw new TypeError;return e=E.call(arguments,2),r=function(){if(!(this instanceof r))return p.apply(I,e.concat(E.call(arguments)));he.prototype=p.prototype;var f=new he;he.prototype=null;var O=p.apply(f,e.concat(E.call(arguments)));return Object(O)===O?O:f}},g.partial=function(p){var I=E.call(arguments,1);return function(){for(var e=0,r=I.slice(),f=0,O=r.length;O>f;f++)r[f]===g&&(r[f]=arguments[e++]);for(;e<arguments.length;)r.push(arguments[e++]);return p.apply(this,r)}},g.bindAll=function(p){var I=E.call(arguments,1);if(0===I.length)throw new Error("bindAll must be passed function names");return ie(I,function(e){p[e]=g.bind(p[e],p)}),p},g.memoize=function(p,I){var e={};return I||(I=g.identity),function(){var r=I.apply(this,arguments);return g.has(e,r)?e[r]:e[r]=p.apply(this,arguments)}},g.delay=function(p,I){var e=E.call(arguments,2);return setTimeout(function(){return p.apply(null,e)},I)},g.defer=function(p){return g.delay.apply(g,[p,1].concat(E.call(arguments,1)))},g.throttle=function(p,I,e){var r,f,O,F=null,Q=0;e||(e={});var ge=function(){Q=!1===e.leading?0:g.now(),F=null,O=p.apply(r,f),r=f=null};return function(){var ue=g.now();Q||!1!==e.leading||(Q=ue);var Ce=I-(ue-Q);return r=this,f=arguments,0>=Ce?(clearTimeout(F),F=null,Q=ue,O=p.apply(r,f),r=f=null):F||!1===e.trailing||(F=setTimeout(ge,Ce)),O}},g.debounce=function(p,I,e){var r,f,O,F,Q,ge=function(){var ue=g.now()-F;I>ue?r=setTimeout(ge,I-ue):(r=null,e||(Q=p.apply(O,f),O=f=null))};return function(){O=this,f=arguments,F=g.now();var ue=e&&!r;return r||(r=setTimeout(ge,I)),ue&&(Q=p.apply(O,f),O=f=null),Q}},g.once=function(p){var I,e=!1;return function(){return e||(e=!0,I=p.apply(this,arguments),p=null),I}},g.wrap=function(p,I){return g.partial(I,p)},g.compose=function(){var p=arguments;return function(){for(var I=arguments,e=p.length-1;e>=0;e--)I=[p[e].apply(this,I)];return I[0]}},g.after=function(p,I){return function(){return--p<1?I.apply(this,arguments):void 0}},g.keys=function(p){if(!g.isObject(p))return[];if(D)return D(p);var I=[];for(var e in p)g.has(p,e)&&I.push(e);return I},g.values=function(p){for(var I=g.keys(p),e=I.length,r=new Array(e),f=0;e>f;f++)r[f]=p[I[f]];return r},g.pairs=function(p){for(var I=g.keys(p),e=I.length,r=new Array(e),f=0;e>f;f++)r[f]=[I[f],p[I[f]]];return r},g.invert=function(p){for(var I={},e=g.keys(p),r=0,f=e.length;f>r;r++)I[p[e[r]]]=e[r];return I},g.functions=g.methods=function(p){var I=[];for(var e in p)g.isFunction(p[e])&&I.push(e);return I.sort()}
1,g.extend=function(p){return ie(E.call(arguments,1),function(I){if(I)for(var e in I)p[e]=I[e]}),p},g.pick=function(p){var I={},e=S.apply(C,E.call(arguments,1));return ie(e,function(r){r in p&&(I[r]=p[r])}),I},g.omit=function(p){var I={},e=S.apply(C,E.call(arguments,1));for(var r in p)g.contains(e,r)||(I[r]=p[r]);return I},g.defaults=function(p){return ie(E.call(arguments,1),function(I){if(I)for(var e in I)void 0===p[e]&&(p[e]=I[e])}),p},g.clone=function(p){return g.isObject(p)?g.isArray(p)?p.slice():g.extend({},p):p},g.tap=function(p,I){return I(p),p};var le=function(p,I,e,r){if(p===I)return 0!==p||1/p==1/I;if(null==p||null==I)return p===I;p instanceof g&&(p=p._wrapped),I instanceof g&&(I=I._wrapped);var f=A.call(p);if(f!=A.call(I))return!1;switch(f){case"[object String]":return p==String(I);case"[object Number]":return p!=+p?I!=+I:0==p?1/p==1/I:p==+I;case"[object Date]":case"[object Boolean]":return+p==+I;case"[object RegExp]":return p.source==I.source&&p.global==I.global&&p.multiline==I.multiline&&p.ignoreCase==I.ignoreCase}if("object"!=typeof p||"object"!=typeof I)return!1;for(var O=e.length;O--;)if(e[O]==p)return r[O]==I;var F=p.constructor,Q=I.constructor;if(F!==Q&&!(g.isFunction(F)&&F instanceof F&&g.isFunction(Q)&&Q instanceof Q)&&"constructor"in p&&"constructor"in I)return!1;e.push(p),r.push(I);var ge=0,ue=!0;if("[object Array]"==f){if(ue=(ge=p.length)==I.length)for(;ge--&&(ue=le(p[ge],I[ge],e,r)););}else{for(var Ce in p)if(g.has(p,Ce)&&(ge++,!(ue=g.has(I,Ce)&&le(p[Ce],I[Ce],e,r))))break;if(ue){for(Ce in I)if(g.has(I,Ce)&&!ge--)break;ue=!ge}}return e.pop(),r.pop(),ue};g.isEqual=function(p,I){return le(p,I,[],[])},g.isEmpty=function(p){if(null==p)return!0;if(g.isArray(p)||g.isString(p))return 0===p.length;for(var I in p)if(g.has(p,I))return!1;return!0},g.isElement=function(p){return!(!p||1!==p.nodeType)},g.isArray=B||function(p){return"[object Array]"==A.call(p)},g.isObject=function(p){return p===Object(p)},ie(["Arguments","Function","String","Number","Date","RegExp"],function(p){g["is"+p]=function(I){return A.call(I)=="[object "+p+"]"}}),g.isArguments(arguments)||(g.isArguments=function(p){return!(!p||!g.has(p,"callee"))}),g.isFunction=function(p){return"function"==typeof p},g.isFinite=function(p){return isFinite(p)&&!isNaN(parseFloat(p))},g.isNaN=function(p){return g.isNumber(p)&&p!=+p},g.isBoolean=function(p){return!0===p||!1===p||"[object Boolean]"==A.call(p)},g.isNull=function(p){return null===p},g.isUndefined=function(p){return void 0===p},g.has=function(p,I){return Y.call(p,I)},g.noConflict=function(){return i._=m,this},g.identity=function(p){return p},g.constant=function(p){return function(){return p}},g.property=function(p){return function(I){return I[p]}},g.matches=function(p){return function(I){if(I===p)return!0;for(var e in p)if(p[e]!==I[e])return!1;return!0}},g.times=function(p,I,e){for(var r=Array(Math.max(0,p)),f=0;p>f;f++)r[f]=I.call(e,f);return r},g.random=function(p,I){return null==I&&(I=p,p=0),p+Math.floor(Math.random()*(I-p+1))},g.now=Date.now||function(){return(new Date).getTime()};var ae={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};ae.unescape=g.invert(ae.escape);var fe={escape:new RegExp("["+g.keys(ae.escape).join("")+"]","g"),unescape:new RegExp("("+g.keys(ae.unescape).join("|")+")","g")};g.each(["escape","unescape"],function(p){g[p]=function(I){return null==I?"":(""+I).replace(fe[p],function(e){return ae[p][e]})}}),g.result=function(p,I){if(null!=p){var e=p[I];return g.isFunction(e)?e.call(p):e}},g.mixin=function(p){ie(g.functions(p),function(I){var e=g[I]=p[I];g.prototype[I]=function(){var r=[this._wrapped];return d.apply(r,arguments),Oe.call(this,e.apply(g,r))}})};var Pe=0;g.uniqueId=function(p){var I=++Pe+"";return p?p+I:I},g.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var be=/(.)^/,Be={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},ut=/\\|'|\r|\n|\t|\u2028|\u2029/g;g.template=function(p,I,e){var r;e=g.defaults({},e,g.templateSettings);var f=new RegExp([(e.escape||be).source,(e.interpolate||be).source,(e.evaluate||be).source].join("|")+"|$","g"),O=0,F="__p+='";p.replace(f,function(ge,ue,Ce,We,we){return F+=p.slice(O,we).replace(ut,function(st){return"\\"+Be[st]}),ue&&(F+="'+\n((__t=("+ue+"))==null?'':_.escape(__t))+\n'"),Ce&&(F+="'+\n((__t=("+Ce+"))==null?'':__t)+\n'"),We&&(F+="';\n"+We+"\n__p+='"),O=we+ge.length,ge}),F+="';\n",e.variable||(F="with(obj||{}){\n"+F+"}\n"),F="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+F+"return __p;\n";try{r=new Function(e.variable||"obj","_",F)}catch(ge){throw ge.source=F,ge}if(I)return r(I,g);var Q=function(ge){return r.call(this,ge,g)};return Q.source="function("+(e.variable||"obj")+"){\n"+F+"}",Q},g.chain=function(p){return g(p).chain()};var Oe=function(p){return this._chain?g(p).chain():p};g.mixin(g),ie(["pop","push","reverse","shift","sort","splice","unshift"],function(p){var I=C[p];g.prototype[p]=function(){var e=this._wrapped;return I.apply(e,arguments),"shift"!=p&&"splice"!=p||0!==e.length||delete e[0],Oe.call(this,e)}}),ie(["concat","join","slice"],function(p){var I=C[p];g.prototype[p]=function(){return Oe.call(this,I.apply(this._wrapped,arguments))}}),g.extend(g.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),void 0!==(P=function(){return g}.apply(G,[]))&&(ce.exports=P)}).call(this)},3108(ce,G,b){"use strict";b.d(G,{AngularJsModule:()=>El});var P=b(1052),i=b(30086),m=b(30974),x=b.n(m),E=(b(74238),b(7552),b(90608),b(53009),b(47595)),S=b.n(E),y=(b(97966),b(39838),b(71808),b(75959),b(9433)),R=b.n(y),V=b(68073),ee=b.n(V),J=b(80916),ne=b.n(J),D=(b(77704),b(83296),b(88932)),L=b(45921),g=b(88684);function ie(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function de(){return ie()+ie()+"-"+ie()+"-"+ie()+"-"+ie()+"-"+ie()+ie()+ie()}function k(c,s){const n={};
1return c.forEach((o,a)=>n[s[a]]=o),n}function K(c){const n=["$"].filter(a=>-1!==c.indexOf(a)).length,o=["options"].filter(a=>c===a).length;return!n&&!o}function se(c){return{"pascalprecht.translate":["$translate"]}[c]||c}function ve(c,s){return`${c},${s}`}function le(c){const{name:s=de(),type:t="controller",dependencies:n=[],downgradedDependencies:o=[],wrappedModal:a=!1}=c;a&&-1===n.indexOf("$scope")&&n.push("$scope");const h=n.filter(K).filter($=>o.indexOf($)<0),T=n.map(se).reduce(ve,"").split(",").filter($=>$.length);return function($){function H(...j){const te=k(j,T);let re={};a&&(re={get $modalInstance(){const ke=(te.$scope||{}).dialog;return ke&&ke.modalInstance||{close:function(){}}},get options(){const ke=(te.$scope||{}).dialog;return ke&&ke.extraOptions||{}}});const W={...te,...re};if(Object.assign($.prototype,{name:s,type:t,namedDependencies:n,resolved:j,internalDependencies:T,externalDependencies:h,dependencies:W}),"controller"===t)return new $(...j)}global.Reflect&&Reflect&&Reflect.setPrototypeOf?(Reflect.setPrototypeOf(H.prototype,$.prototype),Reflect.setPrototypeOf(H,$)):H.prototype=$.prototype;var M=angular.module(s,h);return M[t](s,T.concat([H])),M.name}}function fe(c){return function ae(c){const{name:s,dependencies:t=[],type:n="directive"}=c,o=t.filter(K),a=t.map(se).reduce(ve,"").split(",").filter($=>$.length);"directive"!==n&&Object.keys(c).filter($=>"function"==typeof c[$]).forEach($=>{c[$]=c[$].bind(c)}),"directive"===n&&c.link&&(c.link=c.link.bind(c));var T=angular.module(s,o);return T[n](s,a.concat([(...$)=>(c.dependencies=k($,a),c)])),T.name}(c)}const be="EducationalAccountService";let Be=(()=>{class c{static{this.$inject=["$http"]}constructor(t){this.$http=t,this.passwordStorageById={},this.passwordStorageByEmail={},this.getUserId=n=>n.join&&n.join()||n,this.getPassword=n=>n&&n.length>0?n:null,this.findPasswordbyId=n=>this.passwordStorageById[n],this.findPasswordByEmail=n=>this.passwordStorageByEmail[n],this.findPasswordByIdOrEmail=(n,o)=>this.findPasswordbyId(n)||this.findPasswordByEmail(o),this.setPasswordById=(n,o)=>{this.passwordStorageById[n]=o},this.setPasswordByEmail=(n,o)=>{this.passwordStorageByEmail[n]=o},this.setPasswordByIdOrEmail=(n,o,a)=>{n&&this.setPasswordById(n,a),o&&this.setPasswordByEmail(o,a)},this.getAccount=(n=!1)=>this.$http.get("/api/educationalaccount/getAccount1/",{params:n?{overrideEduInterceptor:n}:{}}),this.updateAccount=(n,o,a,h)=>this.$http({url:"/api/educationalaccount/updateAccount1/",method:"POST",params:{name:n,autoAssignSeats:o,country:a,minimumAge:h}}),this.uploadProfilePicture=n=>{const o=new FormData;return o.append("photo",n),this.$http.post("/api/educationalaccount/uploadProfilePicture1/",o,{withCredentials:!0,headers:{"Content-Type":void 0},transformRequest:m.identity})},this.deleteProfilePicture=()=>this.$http.delete("/api/educationalaccount/deleteProfilePicture1/"),this.updateRole=(n,o,a,h)=>this.$http({url:"/api/educationalaccount/updateRole1/",method:"POST",params:{id:n,name:o,attributeMask:a,defaultRole:h}}),this.searchMembers=(n,o,a,h,T,$,H)=>this.$http({url:"/api/educationalaccount/searchMembers1/",method:"GET",params:{term:n,filter:o,order:a,offset:h,count:T,groups:$,roles:H}}),this.getMember=n=>this.$http.get("/api/educationalaccount/getMember1/",{params:{id:n}}),this.updateMembers=(n,o,a,h,T,$)=>this.batchProcessUsers(n,"/api/educationalaccount/updateMembers1/","POST",{roleId:o,assignSeat:a,firstName:h,lastName:T,password:this.getPassword($)}),this.updateSingleMember=(n,o,a,h,T,$)=>this.$http.post("/api/educationalaccount/updateMembers1/",{userIds:n.toString(),roleId:o,assignSeat:a,firstName:h,lastName:T,password:this.getPassword($)}),this.removeMembers=n=>this.batchProcessUsers(n,"/api/educationalaccount/removeMembers1/","POST",{}),this.getValidSubscriptions=()=>this.$http.get("/api/educationalaccount/getValidSubscriptions1/"),this.getAllSubscriptions=(n=!1)=>this.$http.get("/api/educationalaccount/getAllSubscriptions1/",{params:n?{overrideEduInterceptor:n}:{}}),this.getInviteCodes=()=>this.$http.get("/api/educationalaccount/getInviteCodes1/"),this.getInviteCode=n=>this.$http({url:"/api/educationalaccount/getInviteCode1/",method:"GET",params:{groupId:n}}).then(o=>o&&o.data),this.useInviteCode=(n,o)=>this.$http({url:"/api/educationalaccount/useInviteCode1/",method:"POST",params:{code:n,confirm:o}}),this.importCsv=(n,o,a)=>this.$http.post("/api/educationalaccount/importCsv1/",{items:JSON.stringify(n),groupId:o,preview:a}),this.importFromClassroom=(n,o,a,h)=>this.$http.post("/api/educationalaccount/importFromGoogleClassroom1/",{authToken:n,courseId:o,userIds:this.getUserId(a),groupId:h}),this.importFromGoogleDirectory=(n,o,a,h)=>this.$http.post("/api/educationalaccount/importFromGoogleDirectory1/",{authToken:n,orgUnitPath:o,userIds:this.getUserId(a),groupId:h}),this.setupTrialAccount=({firstName:n,lastName:o,accountName:a,seats:h,promoCode:T,connectionProvider:$,connectionId:H,countryCode:M,state:j,district:te,occupation:re,licenseType:W,trialDays:me,eduOptOut:ke,offer:ct})=>this.$http.post("/api/educationalaccount/setupTrialAccount1/",{firstName:n,lastName:o,accountName:a,seats:h,promoCode:T,connectionProvider:$,connectionId:H,countryCode:M,state:j,district:te,occupation:re,licenseType:W,trialDays:me,eduOptOut:ke,offer:ct}),this.createTempUserAccount=(n,o,a,h)=>this.$http.post("/api/educationalaccount/createTempUserAccount1/",{email:n,password:o,roleId:a,groupId:h}),this.createTempAccount=n=>this.$http.post("/api/educationalaccount/createTempAccount1/",{accountName:n}),this.sendExternalPayment=(n,o,a,h)=>this.$http.post("/api/educationalaccount/sendExternalPayment1/",{message:n,email:o,url:a,name:h}),this.batchProcessUsers=(n,o,a,h)=>{const T="string"==typeof n?n.split(", "):n,$=[],H=100;if(T.length>H){const M=Math.ceil(T.length/H);for(let j=0;j<M;j++){const te=j+1;$.push(T.slice(H*(te-1),H*te))}}else $.push(T);return new Promise(M=>{const j=[],te=()=>j&&j.reduce((W,me)=>({success:W.success+me.success,failed:W.failed+me.failed}),{success:0,failed:0}),re=W=>{const me={userIds:this.getUserId(W),...h};this.$http({url:o,method:a,data:me}).then(ke=>ke.data).then(ke=>{j.push(ke),j.length===$.length?M({data:te()}):re($[j.length])}).catch(()=>{M({data:te()})})};re($[0])})}}}return c})();m.module(be,[]).service(be,Be);const Oe=be;var p=b(91160);const I="UserService";let e=(()=>{class c{static{this.$inject=["$http"]}constructor(t){this.$http=t,this.checkSignup=n=>this.$http.get("/api/user/checkSignup1/",{params:{email:n}}),this.checkSignupAndDomain=n=>this.$http.get("/api/user/checkSignupAndDomain1/",{params:{email:n}}),this.checkUserIdSignup=(n,o)=>this.$http.get("/api/user/checkSignupByProvider1/",{params:{providerName:n,userId:o}}),this.checkSignupApple=n=>this.$http.get("/api/user/checkSignupApple1/",{params:{jwt:n}}),this.resendActivationCode=()=>this.$http.post("/api/user/resendActivationCode1/",null),this.signup=({email:n,password:o,captchaCode:a,url:h,edu:T,eduCode:$,acceptTerms:H,eduTrialSignup:M,countryCode:j,birthDate:te,forceAgeCheck:re,firstName:W,lastName:me,occupation:ke,licenseType:ct})=>this.$http.post(re?"api/user/signupAgeCheck1/":"/api/user/signup1/",{email:n,password:o,captchaCode:a,url:h,edu:T,eduCode:$,acceptTerms:H,eduTrialSignup:M,countryCode:j,birthDate:te,firstName:W,lastName:me,occupation:ke,licenseType:ct}),this.getCountries=()=>this.$http.get("/api/user/getCountries1/"),this.getIpCountry=()=>this.$http.get("/api/location/lookupIpCountry1/"),this.geoLocate=()=>
1this.$http.get("/api/user/geoLocate1"),this.getStates=()=>p.L,this.getMe=()=>this.$http.get("/api/user/getMe1/"),this.getUserType=(n,o)=>n?"EDU":-1!==o.indexOf("storytellers")?"storytellers":-1!==o.indexOf("musicmakers")?"musicmakers":"",this.useSignupCode=n=>this.$http.post("/api/user/useSignupCode1/",{code:n}),this.changePassword=(n,o,a,h)=>this.$http.put("/api/user/changePassword2/",{email:n,oldPassword:o,password:a,password1:h})}}return c})();m.module(I,[]).service("UserService",e);const f=I;let O=class{constructor(){const{UserService:s}=this.dependencies;this.isAccountNameDisabled=!0,this.isAccountOwnerDisabled=!0,this.account={country:{code:"",name:""},minimumAge:null,name:null,roles:[],owners:[],profileImage:null},this.profilePhoto=null,this.countries=[],this.country=null,s.getCountries().then(t=>t.data).then(t=>this.countries=t).then(t=>this.country=this.countries.filter(n=>this.account.country&&n.name===this.account.country.name)[0]),this.syncAccount()}syncAccount(){const{EducationalAccountService:s}=this.dependencies;return s.getAccount().then(t=>t.data).then(t=>{this.account=t,this.account.owners=t.owners.sort((n,o)=>n.id-o.id),this.country=this.countries.filter(n=>this.account.country&&n.name===this.account.country.name)[0]})}onAccountCountryChange(){this.updateAccount()}onAccountAgeChange(){this.updateAccount()}updateAccount(){const{EducationalAccountService:s}=this.dependencies,{name:t,minimumAge:n,country:o,autoAssignSeats:a}=this.account;s.updateAccount(t,a,o&&o.code,n).then(this.syncAccount.bind(this))}changeAccountName(){this.toggleAccountName(),this.updateAccount()}toggleAccountName(){this.isAccountNameDisabled=!this.isAccountNameDisabled}changeAccountOwner(){this.toggleAccountOwner(),this.updateAccount()}toggleAccountOwner(){this.isAccountOwnerDisabled=!this.isAccountOwnerDisabled}deleteProfilePhoto(){const{EducationalAccountService:s}=this.dependencies;this.profileImageLoading=!0,s.deleteProfilePicture().then(t=>t.data).then(t=>this.account.profileImage=t).finally(t=>this.profileImageLoading=!1)}uploadProfilePhoto(){angular.element("#profile-photo-upload").click()}onProfilePhotoUpload(){const{EducationalAccountService:s}=this.dependencies,o=angular.element("#profile-photo-upload").get(0).files[0];this.profileImageLoading=!0,s.uploadProfilePicture(o).then(a=>a.data).then(a=>this.account.profileImage=a).finally(a=>this.profileImageLoading=!1)}};O=(0,g.Cg)([le({name:"AccountDetailsCtrl",dependencies:["$q",Oe,f]})],O);const F=O;var Q=b(30769);const ge="CurrentUser";angular.module(ge,[]).factory(ge,["$rootScope","$q","$http","ProfileService","$window",function(c,s,t,n,o){var a={passwordNeedsChange:!1},h=null;a.setUser=function(M){function j(te){return a.loggedIn&&a.educationalAccountMembership&&-1!==a.educationalAccountMembership.role.attributeMask.indexOf(te)}c.g_currentUser=M,(a=angular.extend(a,M)).loggedIn=!!a.id,a.eaaMessaging=j("i"),a.eaaInviting=j("q"),a.eaaAdministerGroup=j("h"),a.eaaAdministerAccount=j("x"),a.eaaPayments=j("m"),a.eaaSuperviseProjects=j("o"),a.eaaDistrictAdmin=j("d"),a.eaaPermissions=j("p"),a.eaaUpdateAccountDetails=j("u"),a.eaaChangeOtherMember=j("c"),a.eaaMayEditProfileInfo=j("e"),a.eaaVideoChat=j("l"),h=s(function(te){te(M)}),c.$broadcast("currentuser:changed",a)},c.CurrentUser=a,a.hasRole=(M,j)=>(j=!1!==j,a.roles&&(-1!==a.roles.indexOf(M)||j&&-1!==a.roles.indexOf("super_admin"))),a.hasFeature=M=>a.features&&-1!==a.features.indexOf(M),a.getCurrentUser=()=>(null===h&&a.refreshCurrentUser(),h);const T=/[?&]+forceFeatures=([^&]*)/;return a.hasFeature=M=>!!function(M){const j=o.location.search.match(T);return j&&j[1]&&-1!==j[1].indexOf(M)}(M)||a.features&&-1!==a.features.indexOf(M),a.isMemberOfGroupWithId=M=>a.groupMemberships&&a.groupMemberships.some(j=>j.group.id===M),a.refreshCurrentUser=()=>h=s(function(M,j){(0,Q._)(n.getMe()).then(function(te){a.setUser(te),M(a)}).catch(function(){j("Failed to refresh current user")})}),a.getValidSubscriptions=()=>t.get("/api/subscription/getValidSubscriptions1/",{isArray:!0}),a}]);const ue=ge,Ce=["@gmail.","@online.","@freemail.","@gmx.","@outlook.","@ymail.","@hotmail.","@live.","@zonline.","@y
1ahoo.","@msn.","@yandex.","@web.","@me.","@email.","@AOL."],We=["@list.ru","@gimail.com","@gamail.com","@163.com","@gmali.com","@gmial.com","@gemail.com","@gmil.com","@gmal.com","@mac.com","@libero.it","@googlemail.com","@gmai.com","@mail.com","@gamil.com","@mail.ru","@icloud.com"],we=b(8366),st=b(61835).J;angular.module("Util",[]).factory("Util",["$q","$http","$window","$document","$timeout",function(c,s,t,n,o){var a=angular.extend({},ST.util);a.checkIfPublicDomain=function(M){const j=M.split("@").pop(),te=j.split(".").shift();return We.includes(`@${j}`)||Ce.includes(`@${te}.`)},a.validateEmail=function(M){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test(M)},a.capitalize=function(M){return`${M.slice(0,1).toUpperCase()}${M.slice(1).toLowerCase()}`};const h=["soundtrap.com","www.soundtrap.com"];return a.sanitizeUrl=function(j,te=!0){if(!j)return"";const re=we.parse(j.replace(/^\/\//,t.location.protocol));return h.includes(re.host)||"relative"===re.reference||t.location.origin===`${re.scheme}://${re.host}:${re.port}`||!te?(M=>{const j=we.serialize(M),re=(M=>M.replace("about:blank",""))(st(j));return(M=>M.replace(/\/$/,"/"))(re)})(re):""},a.buildUrl=function(M,j){const te=[];for(const re in j)te.push(encodeURIComponent(re)+"="+encodeURIComponent(j[re]));return 0===te.length?M:M+(-1===M.indexOf("?")?"?":-1===M.indexOf("=")?"":"&")+te.join("&")},a.addUtmParametersToUrl=(M,j)=>{const te=["utm_campaign","utm_source","utm_medium","utm_content","utm_term"];let re={};for(let W=0;W<te.length;W++){const me=te[W];j[me]&&-1===M.indexOf(me)&&(re[me]=j[me])}return a.buildUrl(M,re)},a.guid=function(){function M(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return M()+M()+"-"+M()+"-"+M()+"-"+M()+"-"+M()+M()+M()},a.getBlob=function(M,j){var te=c.defer(),re=new XMLHttpRequest;return re.open("GET",M,!0),re.responseType="blob",re.onload=function(W){console.log(W,re.response),200==this.status?te.resolve(re.response):te.reject(re.response)},re.onprogress&&(re.onprogress=function(W){if(W.lengthComputable){var me=W.loaded/W.total;j&&"function"==typeof j&&j(me),te.notify(me)}}),re.send(),te.promise},a.convertBlobToDataUrl=function(M){var j=c.defer(),te=new FileReader;return te.readAsDataURL(M),te.addEventListener("load",function(){j.resolve(this.result)}),j.promise},a.convertDataUrlToUint8Array=function(M){for(var j=M.split(","),te=atob(j[1]),re=new Uint8Array(te.length),W=0;W<te.length;++W)re[W]=te.charCodeAt(W);return re},a.debounce=(M,j,te)=>{let re;return()=>{re?o.cancel(re):te&&M(),re=o(()=>{te||M(),re=null},j)}},a}]);const yt="AdminPanelMediatorService";let Qt=(()=>{class c{static{this.$inject=[ue,Oe,"Util","$q",L.A,"AdminPanelBridgeService"]}constructor(t,n,o,a,h,T){this.CurrentUser=t,this.EducationalAccountService=n,this.Util=o,this.$q=a,this.globalConfig=h,this.adminPanelBridgeService=T,this._groups=[],this._account=null,this._districtAccount=null,this._roles=[],this._inviteCodes={},this._activeView=null,this._selectedGroup={},this._filterView=null,this._shouldUpdateGroups=!1,this._allSelected=!1,this._validSubscription=null,this._subscriptionDaysLeft=null,this._eduSubscriptionExpiresSoon=!1,this._activeGroup=null,this._memberships=[],this._hasUpdatedMemberships=!1,this._shouldUpdateSubscription=!1,this.populateInitData=()=>{this.CurrentUser.educational&&this.CurrentUser.eaaAdministerAccount?this.$q.all([this.EducationalAccountService.getAccount().then($=>{this.account=$.data,this.roles=this.account&&this.account.roles.map(H=>({...H,prettyName:this.Util.capitalize(H.name)}))})]).then(()=>this._onInitDefer.resolve()).catch(this.Util.unexpectedError):this._onInitDefer.resolve()},this.getMemberById=$=>{for(const H of this._memberships)if(H.user.id===$)return H},this.updateMembership=$=>{for(let H=0;H<this._memberships.length;H++)this._memberships[H].user.id===$.user.id&&(this._memberships[H]=$)},this.getSelectedMembers=()=>this._memberships.filter($=>$.selected),this.getNumberOfPendingMembers=()=>this._memberships.filter($=>!$.seatAssigned).length,this.updateGroup=$=>{for(let H=0;H<this._groups.length;H++)this._groups[H].id===$.id&&(this._groups[H]=$)},this._currentUser=this.CurrentUser,this._onInitDefer=this.$q.defer(),this._onInit=this._onInitDefer.promise,this.populateInitData(),this.initBridge()}initBridge(){this.adminPanelBridgeService.hasUpdatedMemberships$.subscribe(t=>this.hasUpdatedMemberships=t),this.adminPanelBridgeService.shouldUpdateSubscription$.subscribe(t=>this.shouldUpdateSubscription=t),this.adminPanelBridgeService.activeView$.subscribe(t=>this.activeView=t)}get accountId(){return this.globalConfig.educationalAccountId}set accountId(t){this.globalConfig.educationalAccountId=t,null!==this._account&&!this._account.parentId&&(this._districtAccount=this._account),this.populateInitData()}get groups(){return this._groups}set groups(t){this._groups=t}get districtAccount(){return this._districtAccount}get account(){return this._account}set account(t){this._account=t}get inviteCodes(){return this._inviteCodes}set inviteCodes(t){this._inviteCodes=t}get activeView(){return this._activeView}set activeView(t){this._activeView=t}get selectedGroup(){return this._selectedGroup}set selectedGroup(t){this._selectedGroup=t}get filterView(){return this._filterView}set filterView(t){this._filterView=t}get shouldUpdateGroups(){return this._shouldUpdateGroups}set shouldUpdateGroups(t){this._shouldUpdateGroups=t}get allSelected(){return this._allSelected}set allSelected(t){this._allSelected=t}get currentUser(){return this._currentUser}set currentUser(t){this._currentUser=t}
1get validSubscription(){return this._validSubscription}set validSubscription(t){this._validSubscription=t}get subscriptionDaysLeft(){return this._subscriptionDaysLeft}set subscriptionDaysLeft(t){this._subscriptionDaysLeft=t}get eduSubscriptionExpiresSoon(){return this._eduSubscriptionExpiresSoon}set eduSubscriptionExpiresSoon(t){this._eduSubscriptionExpiresSoon=t}get memberships(){return this._memberships}set memberships(t){this._memberships=t}get hasUpdatedMemberships(){return this._hasUpdatedMemberships}set hasUpdatedMemberships(t){this._hasUpdatedMemberships=t}get shouldUpdateSubscription(){return this._shouldUpdateSubscription}set shouldUpdateSubscription(t){this._shouldUpdateSubscription=t}get onInitDefer(){return this._onInitDefer}get onInit(){return this._onInit}get roles(){return this._roles}set roles(t){this._roles=t}get activeGroup(){return this._activeGroup}set activeGroup(t){this._activeGroup=t,this.adminPanelBridgeService.activeGroup=t}}return c})();m.module(yt,[ue,Oe,"Util"]).service("AdminPanelMediatorService",Qt);const cn=yt;var xn=b(95150),$n=b(78477),Wt=b(32861),l=b(32560),Un=b(51755),kn=b(37326),Pn=b(42314),In=b(93112),Zt=b(39634),Yt=b(90125);function jn(c,s){if(1&c&&(l.j41(0,"span"),l.EFF(1),l.k0s()),2&c){const t=l.XpG(),n=t.$implicit,o=t.$index,a=l.XpG();l.R7$(),l.Lme(" ",n.user.fullName,"",o!==a.userLimit-1?",":""," ")}}function Vn(c,s){if(1&c&&l.nVh(0,jn,2,2,"span"),2&c){const t=s.$index,n=l.XpG();l.vxM(t<n.userLimit?0:-1)}}function zn(c,s){if(1&c&&l.EFF(0),2&c){const t=l.XpG();l.SpI(" +",t.selectedMembers.length-t.userLimit," ")}}let On=(()=>{class c{constructor(t,n,o){this.dialog=t,this.data=n,this.groupService=o,this.group=this.data.group,this.selectedMembers=this.data.selectedMembers,this.userLimit=4}ngOnInit(){this.setupInviteCode()}setupInviteCode(){this.loading=!0,this.groupService.getInviteCodeByGroupId(this.group.id).subscribe(t=>{this.invite=t,this.loading=!1})}addUsers(){this.loading=!0;const t=this.selectedMembers.map(n=>n.user.id);this.groupService.addMembers(this.group.id,t).subscribe(()=>{this.dialog.close(1)})}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(Wt.ce),l.rXU(Wt.Qs),l.rXU(Un.x))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-add-to-group-dialog"]],standalone:!1,decls:21,vars:16,consts:[[3,"close","title"],[1,"group-name"],[1,"st-title-standard"],[1,"purple-text"],[3,"primaryAction","secondaryAction","isLoading","primaryButtonText","secondaryButtonText"]],template:function(n,o){1&n&&(l.j41(0,"st-dialog-header",0),l.nI1(1,"translate"),l.bIt("close",function(){return o.dialog.close()}),l.k0s(),l.j41(2,"st-dialog-content")(3,"div",1)(4,"span",2),l.EFF(5),l.k0s(),l.j41(6,"span"),l.EFF(7," ("),l.j41(8,"st-copy-text",3),l.EFF(9),l.k0s(),l.EFF(10,") "),l.k0s()(),l.j41(11,"p"),l.EFF(12),l.nI1(13,"translate"),l.k0s(),l.j41(14,"div",3),l.Z7z(15,Vn,1,1,null,null,l.fX1),l.nVh(17,zn,1,1),l.k0s()(),l.j41(18,"st-dialog-footer",4),l.nI1(19,"translate"),l.nI1(20,"translate"),l.bIt("primaryAction",function(){return o.addUsers()})("secondaryAction",function(){return o.dialog.close(-1)}),l.k0s()),2&n&&(l.Y8G("title",l.bMT(1,8,"view.dialogs.addgroup.creategroup")),l.R7$(5),l.SpI("",o.group.name," "),l.R7$(4),l.SpI(" ",null==o.invite?null:o.invite.code," "),l.R7$(3),l.JRh(l.bMT(13,10,"view.dialogs.addgroup.addusers")),l.R7$(3),l.Dyx(o.selectedMembers),l.R7$(2),l.vxM((null==o.selectedMembers?null:o.selectedMembers.length)>o.userLimit?17:-1),l.R7$(),l.Y8G("isLoading",o.loading)("primaryButtonText",l.bMT(19,12,"view.dialogs.addgroup.create"))("secondaryButtonText",l.bMT(20,14,"view.dialogs.block.cancel")))},dependencies:[kn.B,Pn.Z,In.J,Zt.a,Yt.r],styles:[".purple-text[_ngcontent-%COMP%]{color:var(--essential-primary)} .cdk-overlay-container{z-index:1060!important}.add-me[_ngcontent-%COMP%]{display:flex}.add-me-label[_ngcontent-%COMP%]{cursor:pointer}.group-name[_ngcontent-%COMP%]{margin-bottom:2.5rem}st-checkbox[_ngcontent-%COMP%]{margin-right:.625rem}"]})}}return c})();var mt=b(92027),tn=b(70083),_n=b(90398),mn=b(16787),En=b(20263),xt=b(81929),un=b(52263),fn=b(83625),Xt=b(74906),Jt=b(82079),_=b(44801),w=b(63492),N=b(68009);let q=(()=>{class c{constructor(t,n,o,a,h){this.dialog=t,this.store=n,this.profileService=o,this.trackingService=a,this.translateService=h,this.currentUser$=this.store.pipe((0,tn.Lt)(fn.HW)),this.destroyed$=new _n.B}sendFeedback(){if(this.feedbackText){this.loading=!0;const t="",n="";this.currentUser$.pipe((0,mn.Z)(({email:o})=>this.profileService.sendFeedback(t,this.feedbackText,o,n)),(0,En.Q)(this.destroyed$)).subscribe(()=>{this.trackingService.track("feedback-dialog-feedback-sent",{category:"Feedback",action:"sent"}),this.loading=!1,this.showSuccessToast(),this.dialog.close()})}else this.dialog.close()}showSuccessToast(){this.store.dispatch(new un.OM(new xt.y(this.translateService.instant("view.dialogs.feedback.thank_you"),void 0,xt.C.success)))}ngOnDestroy(){this.destroyed$.next()}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(Wt.ce),l.rXU(tn.il),l.rXU(Xt.p),l.rXU(Jt.b),l.rXU(_.c$))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-feedback-dialog"]],standalone:!1,decls:9,vars:19,consts:[[3,"close","title"],["name","message",3,"ngModelChange","label","ngModel","placeholder","disabled"],[3,"primaryAction","secondaryAction","isLoading","primaryButtonText","disablePrimaryAction","secondaryButtonText"]],template:function(n,o){1&n&&(l.j41(0,"st-dialog-header",0),l.nI1(1,"translate"),l.bIt("close",function(){return o.dialog.close()}),l.k0s(),l.j41(2,"st-dialog-content")(3,"st-form-textarea",1),l.nI1(4,"translate"),l.nI1(5,"translate"),l.mxI("ngModelChange",function(h){return l.DH7(o.feedbackText,h)||(o.feedbackText=h),h}),l.k0s()(),l.j41(6,"st-dialog-footer",2),l.nI1(7,"translate"),l.nI1(8,"translate"),l.bIt("primaryAction",function(){return o.sendFeedback()})("secondaryAction",function(){return o.dialog.close()}),l.k0s()),2&n&&(l.Y8G("title",l.bMT(1,9,"view.dialogs.ctrl.feedback")),l.R7$(3),l.Y8G("label",l.bMT(4,11,"view.dialogs.feedback.message")),l.R50("ngModel",o.feedbackText),l.Y8G("placeholder",l.bMT(5,13,"view.dialogs.feedback.message_placeholder"))("disabled",o.loading),l.R7$(3),l.Y8G("isLoading",o.loading)("primaryButtonText",l.bMT(7,15,"view.dialogs.feedback.send"))("disablePrimaryAction",!o.feedbackText)("secondaryButtonText",l.bMT(8,17,"view.dialogs.cancel")))},dependencies:[w.BC,w.vS,kn.B,Pn.Z,In.J,N.O,Yt.r],encapsulation:2})}}return c})();const Z=b.p+"body.b7e9e44b.html",ye=b.p+"purposeDialog.a13cd700.html",Se=b.p+"utilityDialog.58f5a046.html",De=b.p+"basicInputDialog.199f5ae6.html",_e=b.p+"loginFailDialog.b7c16ff4.html",$e=b.p+"joinEduAccountOptionsDialog.5de58648.html",Te=b.p+"confirmDialog.ee8ba018.html",Fe=b.p+"header.364e1b20.html",Ke=b.p+"body.a5e6ab5d.html",qe=b.p+"footer.7ccdf452.html",Je=b.p+"header.89cf871b.html",vt=b.p+"header.b6da2328.html",Ge=b.p+"body.c7923c7e.html",kt=b.p+"eduClassroomImportDialog.5ec4381a.html",rt=b.p+"eduGoogleDirImportDialog.fd3bcc83.html",Qe=b.p+"bulkRoleAssignmentDialog.45f3e66f.html",xe=b.p+"addToGroupPartialHeaderDialog.01515885.html",Ve=b.p+"addToGroupPartialDialog.36c04b85.html",pe=b.p+"bulkRemoveUsersDialog.5658cdb9.html",Ue=b.p+"eduCanvasConnectDialog.2fc4d3bb.html",Ie
1=b.p+"openProjectSupervisedDialog.c898e648.html",je=b.p+"close.2883e443.svg",ht="Dialogs";angular.module(ht,[ue,"Util"]).factory(ht,["$modal","CurrentUser","Util","$translate","DialogService",function(c,s,t,n,o){const a=((c,s,t)=>{function n(h,T,$,H){return(H=H||{}).animation=!0,H.windowClass=T,H.templateUrl=h,H.controller=$,H.closeIcon=je,H.resolve=angular.extend({options:function(){return H}},H.resolve||{}),s.open(H)}function o(h){return h.size=h.size||"md",h.backdrop=!!h.canOptNull||"static",h.class=h.class||"",h.ariaLabelledBy=h.ariaLabelledBy||"dialog-header",n(ye,"purpose-dialog "+h.class,"PurposeDialogCtrl as dialog",h).result.catch(function(){return-1})}function a(h){return h.size=h.size||"md",h.class=h.class||"",h.backdrop=!!h.canOptNull||"static",h.ariaLabelledBy=h.ariaLabelledBy||"dialog-header",n(Se,"utility-dialog "+h.class+" modal-fullscreen-768","UtilityDialogCtrl as dialog",h).result.catch(function(){return-1})}return{showModal:n,showPurposeDialog:o,showUtilityDialog:a,showSignupDialog:function(T){return(T=T||{}).class="access-dialog signup-dialog-beta custom-dialog modal-fullscreen-960",T.headerInclude=Fe,T.bodyInclude=Ke,T.footerInclude=qe,T.extraOptions=T,o(T)},showLoginDialog:function(T){(T=T||{}).class="access-dialog login-dialog-beta expanded custom-dialog modal-fullscreen-960",T.headerInclude=Je,T.bodyInclude=Z;const $=o(T);return $.then(H=>{T.extraOptions&&T.extraOptions.onResultDefer&&"goToSignup"!==H&&T.extraOptions.onResultDefer.resolve(-1!==H)}),$},showInfoDialog:function(T){return T.size=T.size||"md",T.backdrop=!!T.canOptNull||"static",a(T)},showBasicInputDialog:function(T){return n(De,"utility-dialog basic-input-dialog modal-fullscreen-768","BasicInputDialogCtrl as dialog",{backdrop:"static",size:"md",resolve:{options:function(){return T}}}).result.catch(function(){return null})},showLoginFailDialog:function(h){return(h=h||{}).size=h.size||"md",n(_e,"utility-dialog login-fail-dialog modal-fullscreen-768","LoginFailDialogCtrl as dialog",h)},showCreateEduAccountDialog:function(T){return(T=T||{}).class="access-dialog signup-edu-create-dialog-beta expanded custom-dialog",T.headerInclude=vt,T.bodyInclude=Ge,T.title=c.instant("view.dialogs.ctrl.createedu"),T.extraOptions=T.extraOptions||{},T.ariaLabelledBy="edu-signup-dialog-header",T.extraOptions.signupCallback||(T.extraOptions.signupCallback=($={})=>{const{eduHistory:H={},url:M,email:j}=$,{schoolName:te,firstName:re,lastName:W,students:me,country:ke,state:ct,district:Et,occupation:Ct,licensetype:X}=H,St=t.buildUrl("/edu-signup/",{url:M,email:j,schoolName:te,firstName:re,lastName:W,students:me,country:ke,state:ct,district:Et,occupation:Ct,licensetype:X});window.location.href=St}),o(T)},showEduJoinAccountDialog:h=>((h=h||{}).size="md",n($e,"utility-dialog join-edu-account-dialog",null,h))}})(n,c,t);return a.showConfirmDialog=function(T){return(T=T||{}).extraOptions=T,T.size=T.size||"md",T.backdrop=!!T.canOptNull||"static",a.showModal(Te,"confirm-dialog "+T.class,"ConfirmDialogCtrl as dialog",T).result.catch(function(){return-1})},a.showTrialDialog=function(h){if(h=h||{},s.educational)return a.showInfoDialog({message:n.instant("view.dialogs.ctrl.notavail")});o.open(xn.T,{data:h})},a.showEduClassroomImportDialog=function(h){return(h=h||{}).size="lg",h.backdrop="static",n("view.dialogs.educlassimport.title").then(T=>a.showPurposeDialog({title:T,class:"edu-classroom-import-dialog import-dialog",icon:"glyphicons-file-import",bodyInclude:kt,size:h.size,extraOptions:h,defaultButton:0}))},a.showEduGoogleDirImportDialog=function(h){return(h=h||{}).size="lg",h.backdrop="static",n("view.dialogs.edugoogledir.title").then(T=>a.showPurposeDialog({title:T,class:"edu-google-dir-import-dialog import-dialog",icon:"glyphicons-file-import",bodyInclude:rt,size:h.size,extraOptions:h,defaultButton:0}))},a.showBulkRoleAssignmentDialog=function(h={}){return{...h}.size="md",n("view.eduadmin.directory.edit.changerole").then($=>a.showUtilityDialog({class:"role-assignment-dialog",title:$,bodyInclude:Qe,extraOptions:h}))},a.showAddGroupDialog=function(h){return(0,Q._)(o.open($n.Y3,{data:h||{}}).closed).then($=>$)},a.showAddUsersToGroup=h=>a.showPurposeDialog({headerInclude:xe,bodyInclude:Ve,class:"add-to-group-dialog list-dialog",defaultButton:0,extraOptions:h,icon:"glyphicons-group",options:["Create a group"],title:"Add to group"}).then(T=>0===T?a.showAddGroupDialog(h):T).then(T=>T&&T.id?a.showAddToCreatedGroupDialog({...h,group:T}):T),a.showAddToCreatedGroupDialog=h=>(0,Q._)(o.open(On,{data:h||{}}).closed).then($=>$),a.showRemoveUsers=h=>(h.size="md",n("view.dialogs.edubulkrole.title").then(()=>a.showUtilityDialog({class:"role-assignment-dialog",title:"Remove users",bodyInclude:pe}))),a.showEduMigrationTermsDialog=function(h){const T={data:{...h}};return(0,Q._)(o.open(mt.C,T).closed)}
1,a.showCanvasConnectDialog=function(h){return(h=h||{}).size="lg",h.backdrop="static",n("view.dialogs.canvasconnect.title").then(T=>a.showPurposeDialog({bodyInclude:Ue,class:"canvas-dialog list-dialog",defaultButton:0,extraOptions:h,icon:"glyphicons-group",options:h,title:T}))},a.showOpenProjectSupervisedDialog=function(h){return a.showModal(Ie,"utility-dialog open-project-supervised-dialog","OpenProjectSupervisedController as dialog",h=h||{})},a.openFeedbackDialog=function(){o.open(q)},a}]);const Ne=ht;var Ye=b(94572);const at="Spinner";angular.module(at,[]).factory(at,["$timeout",function(c){let s;return new function(o){o=o||{};const h=new(R())({color:"#666",length:7,radius:12,width:4,lines:11,...o});let T=0;this.start=function($){$=$||3e3,0===T&&(s=c(function(){const H=Ye("#spinner");h.spin(H.get(0)),H.show()},$)),T++},this.stop=function(){T--,0===T&&(c.cancel(s),h.stop(),Ye("#spinner").hide())},this.isVisible=function(){return T>0}}}]);const ze=at;var tt=b(47994);const He="com.soundtrap.controllers.adminaddusersctrl";angular.module(He,[cn,Oe,"Util",Ne,ze]).controller("AdminAddUsersCtrl",["$scope","AdminPanelMediatorService","EducationalAccountService","$timeout","Util","Dialogs","Spinner","$translate","DialogService","Tracker","TrackingService",function(c,s,t,n,o,a,h,T,$,H,M){var j=this;j.groups=[],j.inviteCodes={},j.adminPanelMediator=s,j.createForm={},j.createRole="student",j.createEmail=null,j.createPassword=null,j.dialogService=$,this.createGroup=null,this.onGroupChange=te=>{this.createGroup=te.chosenGroup},this.getGeneratedPassword=()=>{const te="abcdefghjkmnpqrstuvwxyz".split(""),re="123456789".split(""),me=ct=>ct[Math.floor(Math.random()*ct.length)];return"abcd1234".split("").map(ct=>parseInt(ct)?me(re):(ct=>Math.round(Math.random())?ct.toLowerCase():ct.toUpperCase())(me(te))).sort(()=>Math.round(Math.random())).join("")},j.createFormSuccess=null,j.createFormServerExisting=null,j.timeoutSuccess=null,j.validateLettersAndNumbers=()=>{const te=j.createPassword,re=te&&!!te.match(/^(?=.*[a-zA-Z])(?=.*[0-9])/gi);this.createForm.password.$setValidity("numbersletters",!0===re)},j.checkValidation=()=>{this.validateLettersAndNumbers()},j.addUser=()=>{this.checkValidation(),!this.createForm.$invalid&&this.createForm.$valid&&(M.track("create_user",{data:{location:[window?.location?.pathname]}}),h.start(),t.createTempUserAccount(j.createEmail,j.createPassword,j.createRole.id,j.createGroup&&j.createGroup.id).then(te=>{const{id:re,result:W}=te.data;re&&"ok"===W&&(t.setPasswordByIdOrEmail(re,j.createEmail,j.createPassword),H.trackEvent("import_user","email_user_created","invite_dialog",null,null,j.createRole?.name)),this.createFormSuccess=T.instant("view.dialogs.edu.import.created",{createdEmail:j.createEmail,createdPassword:j.createPassword}),this.createFormServerError=null,this.createFormServerExisting=null,this.createForm.$submitted=!1,this.timeoutSuccess&&this.timeoutSuccess.cancel&&this.timeoutSuccess.cancel(),this.timeoutSuccess=n(()=>this.createFormSuccess=null,1e4)}).catch(te=>{te&&te.data&&te.data.message&&1!==te.data.message.indexOf("invite-code")?(this.createFormServerExisting=te.data.message,this.createFormServerError=null):(this.createFormServerExisting=null,this.createFormServerError=te.data.message)}).finally(te=>h.stop()))},j.setGeneratedPassword=()=>{j.createPassword=j.getGeneratedPassword(),this.createForm.password.$setValidity("numbersletters",!0)},j.getInviteCodes=function(){t.getInviteCodes().then(function(te){for(var re=te.data,W={},me=0;me<re.length;me++){var ke=re[me];W[ke.group.id]=ke}s.inviteCodes=W}
1).catch(o.unexpectedError)},j.showEduClassroomImportDialog=function(){a.showEduClassroomImportDialog()},j.showEduGoogleDirImportDialog=function(){a.showEduGoogleDirImportDialog()},j.showSchoologyImportDialog=function(){j.dialogService.open(tt.R)},j.isSchoologyConnected=function(){return null!=j.adminPanelMediator.account&&-1!=j.adminPanelMediator.account.connectionProviders.indexOf("schoology")},j.showCanvasConnectDialog=function(){a.showCanvasConnectDialog()},c.$watch(function(){return s.groups},function(te,re){j.groups=s.groups,j.getInviteCodes()}),c.$watch(function(){return s.inviteCodes},function(te,re){j.inviteCodes=s.inviteCodes})}]);const dt=He;var lt=b(95555),wt=b.n(lt),Rt=b(42098),Ee=b(36717);const Me="GroupService";angular.module(Me,[]).factory(Me,["$http",function(c){return{getGroups:function(){return c({url:"/api/group/getGroups1/",method:"GET",isArray:!0})},getSyncedGroupIds:function(){return c({url:"/api/group/getSyncedGroupIds1/",method:"GET"})},getGroup:function(t){return c.get("/api/group/getGroup1/?id="+t)},createGroup:function(t){return c({url:"/api/group/createGroup1/",method:"POST",params:{name:t}})},updateGroup:function(t,n){return c({url:"/api/group/updateGroup1/",method:"POST",params:{id:t,name:n}})},deleteGroup:function(t){return c.delete("/api/group/deleteGroup1/?id="+t)},addMembers:function(t,n){return n="string"==typeof n?n:n.join(),c.post("/api/group/addMembers1/",{id:t,userIds:n})},removeMembers:function(t,n){return n="string"==typeof n?n:n.join(),c.post("/api/group/removeMembers1/",{id:t,userIds:n})},searchMembers:function(t,n,o,a,h){return c({url:"/api/group/searchMembers1/",method:"GET",params:{id:t,term:n,offset:a,count:h,order:o}})},listMembers:function(t,n,o){return c({url:"/api/group/listMembers1/",method:"GET",params:{id:t,offset:n,count:o}})}}}]);const Re=Me,it=b.p+"edit.fee2e3c5.svg",gt=b.p+"folder.4f8bc550.svg";var ft;const Gt="ToastService";function $t(c,s,t){const n=t.value;t.value=function(...o){if(this.allSelected){const{Spinner:a}=this.dependencies;a.start(),this.loading=!0,t.value=this.setAllMembers().then(()=>{this.loading=!1,a.stop(),n.apply(this,o)})}else n.apply(this,o)}}function pt(c,s,t){const n=t.value;t.value=function(...o){this.loading||n.apply(this,o)}}const At={id:"*",optgroup:"roles",text:"Show all users"};let Pt=ft=class{constructor(){const{$scope:s,AdminPanelMediatorService:t,EducationalAccountService:n,CurrentUser:o,$interval:a}=this.dependencies;this.account=null,this.subscription=null,this.currentUser=o,this.userCanPay=!1,this.memberships=[],this.selectedMembers=[],this.selectedMemberships=[],this.owners=[],this.allSelected=!1,this.toggleAllState={partial:!1,all:!1,some:!1,single:!1,none:!0},this.loading=!0,this.fetching=!1,this.searchTerm="",this.filter="",this.rolesFilter=null,this.endOfMembers=!1,this.sortOrderTypes={seated:"seated",relevance:"relevance",fullName:"fullName",firstName:"firstName",lastName:"lastName",email:"email",lastLogin:"lastLogin",roleName:"roleName",membershipCreated:"membershipCreated",seatedAsc:"seatedAsc",seatedDesc:"seatedDesc",fullNameAsc:"fullNameAsc",fullNameDesc:"fullNameDesc",firstNameDesc:"firstNameDesc",firstNameAsc:"firstNameAsc",lastNameDesc:"lastNameDesc",lastNameAsc:"lastNameAsc",emailDesc:"emailDesc",emailAsc:"emailAsc",roleNameDesc:"roleNameDesc",roleNameAsc:"roleNameAsc",membershipCreatedDesc:"membershipCreatedDesc",membershipCreatedAsc:"membershipCreatedAsc",lastLoginDesc:"lastLoginDesc",lastLoginAsc:"lastLoginAsc"},this.sortOrderDirections={ASC:"Asc",DESC:"Desc"},this.sortOrder=this.sortOrderTypes.fullName,this.sortOrderDirection=this.sortOrderDirections.ASC,this.sortChangeAnnouncement="",this.filterOptgroups=[{optgroup:"roles",name:"Roles",hiddenLabel:!0},{optgroup:"seated",name:"Seats"},{optgroup:"groups",name:"Groups"}],this.filterOptions=[At],this.filterLoading=!0,this.filterOption=null,this.canAssignSeatsForSelectedUsers=!1,this.canUnassignSeatsForSelectedUsers=!1,this.canRemoveSeatsForSelectedUsers=!1,this.selectedGroup={},this.allGroups=[],this.isProjectSupervisor=o.eaaSuperviseProjects,this.tooltipShown=!1,this.tooltipPlacementY=0,this.tooltipAllocated=!0,this.tooltipTemporary=!1,this.tooltipOver=null,this.tooltipPlacementX=0,this.membersTotalCached=!1,this.membersTotalCacheDirty=!1,this.membersTotal=[],this.membersAdjusted=[],this.userCanPay=o.eaaPayments,this.isEmptyDirectory=!0,this.hasLessThanFiveUsers=!1,this.isNotDefining=!0,s.folder={id:null};const{Util:h}=this.dependencies;this.cache=[],this.cacheInvalid=!1,this.currentIndex=0,this.cacheRefresh=3e5,this.currentCount=50,this.canRemoveSeats=o.hasFeature("eaaRemoveSeats"),this.unexpectedError=h.unex
1pectedError,this.searchDatasource={get:(M,j,te)=>{let re=M,W=j;const me=this.cheapSort;if(M<0&&(re=0,W=j+M,W<=0))return te([]);j>500&&(W=500);const ke=(new Date).getTime();this.currentCount=M,this.currentIndex=j;const Et=(()=>{let X=[];const St=me?me(this.cache):this.cache;for(let Ot=0;Ot<W;Ot++){const bt=St[re+Ot];bt&&bt.cached&&bt.cached.date&&ke-bt.cached.date<this.cacheRefresh&&(this.allSelected&&(bt.selected=!0),X.push(bt))}return X.length===W&&X})();if(Et&&!this.cacheInvalid)return te(Et);this.cacheInvalid&&(this.cache=[],this.cacheInvalid=!1);const Ct=this.selectedMembers.map(X=>X.user.id);n.searchMembers(this.searchTerm,this.filter,this.resolveSortOrder(),re,W,this.groups,this.rolesFilter).then(X=>X.data).then(X=>function pn(c){return c.map(s=>({...s,get groupsAsString(){return s.user.groupMemberships.map(t=>t.group.name).join(", ")},get groupsNotShown(){const t=this.groupsAsString;if(t.length){const o=t.slice(0,21).split(",").filter(h=>h.length>3).length;return s.user.groupMemberships.length-o}return 0}}))}(X)).then(X=>function jt(c,s){return c.map(t=>({...t,selected:!!s.filter(n=>n===t&&t.user&&t.user.id).length}))}(X,Ct)).then(X=>{X.forEach((bt,Vt)=>{const on=re+Vt;bt.cached={date:(new Date).getTime()},this.allSelected&&(bt.selected=!0),this.cache[on]=bt});const St=me?me(this.cache):this.cache,Ot=St.filter(bt=>bt.user.id!==o.id).length>0;this.hasLessThanFiveUsers=St.filter(bt=>bt.user.id!==o.id).length<5,this.isNotDefining=!this.searchTerm,Ot&&(this.isEmptyDirectory=!1),t.memberships=St,this.memberships=t.memberships,this.selectedMembers=this.memberships.map((bt,Vt)=>({...bt,idx:Vt})).filter(bt=>bt.selected),t.shouldUpdateSubscription=!0,this.loading=!1,te(X)}).catch(h.unexpectedError)},folder:{id:null}},this.searchAdapter={remain:!0,hardReload:M=>{const{AdminPanelMediatorService:j}=this.dependencies;this.cacheInvalid=!0,this.loading=!0,this.cheapSort=M,j.activeGroup=this.allGroups.filter(te=>te.id===this.groups)[0],this.searchAdapter.inited()&&this.searchAdapter.reload()},inited:()=>this.searchAdapter&&this.searchAdapter.reload},this.icons={edit:it,folder:gt},s.$watch(()=>o.eaaPayments,M=>this.userCanPay=M),s.$watch(()=>o.eaaSuperviseProjects,M=>this.isProjectSupervisor=M),s.$watch(()=>t.activeView,(M,j)=>{if(M!==j)switch(this.allSelected=!1,this.toggleSelectAll(),M){case"directory":case"directory-unlicensed":case"directory-licensed":this.loading=!0,this.cache=[],this.cacheInvalid=!1,this.searchAdapter.hardReload();break;default:this.memberships=[],this.selectedMembers=[]}}),s.$watch(()=>this.searchTerm,(M,j)=>{M!==j&&this.sync()}),s.$watch(()=>t.hasUpdatedMemberships,(M,j)=>{t.hasUpdatedMemberships&&(t.hasUpdatedMemberships=!1,this.sync())});const $=this;var H;H=a(function(){$.searchAdapter.inited()&&(a.cancel(H),$.sync())},100),s.$watch(()=>t.memberships,M=>{const j=M.filter&&M.filter(ke=>!!ke.selected);let te=j.length>0,re=j.length>0,W=!1;j.forEach(ke=>{te=te&&!!ke.seatAssigned,re=re&&!ke.seatAssigned,W=W||ke.user.id===o.id}),this.canAssignSeatsForSelectedUsers=re&&!(this.subscription&&this.account&&this.account.membersAssigned>=this.subscription.seatsTotal),this.canUnassignSeatsForSelectedUsers=te,this.canRemoveSeatsForSelectedUsers=!W,this.areMembersSelected=!!j.length,this.selectedMembers=j},!0),s.$watch(()=>t.validSubscription,M=>{this.subscription=M},!0)}setAllMembers(){const{EducationalAccountService:s}=this.dependencies;return new Promise((t,n)=>{let o=[];const a=(h=0)=>{const T=h;s.searchMembers(this.searchTerm,this.filter,this.resolveSortOrder(),T,500,this.groups,this.rolesFilter).then(H=>H.data).then(H=>{H.length&&(o=o.concat(H)),H.length&&H.length>=498?a(T+500):t(o)}).catch(H=>n(H))};a()}).then(t=>{const n=t.filter(o=>!this.nonSelectedMembers.length||this.nonSelectedMembers.filter(a=>a.user.id!==o.user.id).length);this.membersTotal=t,this.membersAdjusted=n})}acceptAssignSeat(s){const{TrackingService:t}=this.dependencies;t.track("accept-assign-seat",{category:"accept_assign_seat",action:"click"}),this.toggleAssign(s)}toggleAssign(s){const{EducationalAccountService:t,ToastService:n,$translate:o,$timeout:a,$interval:h}=this.dependencies,T=!s.seatAssigned;this.loading=!0,this.tooltipInterval&&h.cancel(this.tooltipInterval),this.tooltipInterval=null,this.tooltipShown=!1,t.updateMembers([s.user.id],null,T).then($=>{$.data.failed?o(T?"view.eduadmin.directory.toasts.seatassigned.error_message":"view.eduadmin.directory.toasts.seatunassigned.error_message").then(M=>n.sendMessage(new xt.y(`${M}`))):o(T?"view.eduadmin.directory.toasts.seatassigned":"view.eduadmin.directory.toasts.seatunassigned").then(M=>n.sendMessage(new xt.y(`${s.user.shortName} ${M}`)))}).then(()=>a(this.sync.bind(this),600)).finally(()=>this.loading=!1)}syncAccountAndGroups(){const{AdminPanelMediatorService:s,EducationalAccountService:t,GroupService:n,$q:o}=this.dependencies;return o.all([s.onInit,t.getAccount(),n.getGroups()]).then(a=>{const[h,T]=a.map(re=>re&&re.data).slice(1),$=h,H=$.owners,M=(T||[]).map(re=>({...re,optgroup:"groups",text:re.name})),j=$.roles.map(re=>({...re,id:re.name,optgroup:"roles",text:`Show only ${re.name}s`}));this.account=$,this.owners=H,this.allGroups=M,this.filterOptions=[At,...j,{optgroup:"seated",id:"seatAssigned",text:"Show only assigned seats",name:"Show only assigned seats"},{optgroup:"seated",id:"seatUnassigned",text:"Show only unassigned seats",name:"Show only unassigned seats"},...M],this.filterLoading=!1})}setSelectedGroup(s){const{EducationalAccountService:t}=this.dependencies;s||(this.selectedGroup={}),this.selectedGroup={...s},s&&s.id&&t.getInviteCode(s.id).then(n=>this.selectedGroup.inviteCode=n.code)}onScroll(s){s.stopPropagation();const t=s.delegateTarget,{scrollTop:n,scrollHeight:o,offsetHeight:a}=t,T=s.originalEvent.deltaY;(n<=0&&T<0||n>=o-a&&T>0)&&s.preventDefault()}addSeats(){location.href=this.currentUser.eaaDistrictAdmin?`mailto:[email protected]?subject=Regarding seats for ${this.account.name}`:"/checkout/edu"}contactOwner(s){s&&s.email&&(location.href=`mailto:${s.email}`)}onFilterChange(s){const t=this.filterOptions.filter(n=>s===String(n.id))[0];if(t&&t.optgroup){switch(t.optgroup){case"roles":this.rolesFilter=t.name,this.groups=null,this.filter="",this.setSelectedGroup(null);break;case"groups":this.rolesFilter=null,this.groups=t.id,this.filter="",this.setSelectedGroup(t);break;case"seated":this.filter=t.id,this.rolesFilter=null,this.groups=null,this.setSelectedGroup(null)}this.searchAdapter.hardReload()}}get nonSelectedMembers(){return this.selectedMembers.map((s,t)=>({...s,idx:t})).filter(s=>!s.selected)}get isAllSelected(){return this.selectedMembers.length===this.memberships.length}get isAllAssigned(){return this.selectedMembers.filter(s=>s.seatAssigned).length===this.selectedMembers.length}get isAllUnassigned(){return this.selectedMembers.filter(s=>!s.seatAssigned).length===this.selectedMembers.length}get hasSeatsAvailable(){return!(!this.subscription||!this.account)&&this.subscription.seatsTotal-this.account.membersAssigned>0}get tableHeight(){if(this.memberships.length)return this.memberships.length>15?"600px":40*this.memberships.length+"px"}sync(){const{AdminPanelMediatorService:s}=this.dependencies;s.shouldUpdateSubscription=!0,this.syncAccountAndGroups(),this.searchAdapter.hardReload(),this.syncSelectionState()}toggleSelectAll(){if(this.loading||this.fetching)return!1;let s=this.allSelected;this.allSelected&&this.selectedMembers.length>0&&(s=!1),this.memberships.forEach(n=>n.selected=s),this.syncSelectionState()}syncSelectionState(){const s=this.memberships.filter(t=>t.selected).length;this.allSelected=s===this.memberships.length&&this.memberships.length>0,this.toggleAllState={partial:s>0&&!this.allSelected,all:this.allSelected,some:s>0,single:1===s,none:0===s}}addSelectedMembersToExistingGroup(s){const{GroupService:t,Util:n,AdminPanelMediatorService:o}=this.dependencies,a=this.getSelectedMembersById();a.length&&t.addMembers(s.id,a).then(()=>{o.activeView="group",o.selectedGroup=s,o.shouldUpdateGroups=!0}).catch(n.unexpectedError)}showOpenProjectSupervisedDialog(s){const{Dialogs:t}=this.dependencies;return t.showOpenProjectSupervisedDialog({user:s})}changeRole(s){const{Dialogs:t,$timeout:n,ToastService:o,$translate:a}=this.dependencies;this.loading=!0;const h=this.selectedMembers;return t.showBulkRoleAssignmentDialog({membership:s,memberships:this.allSelected?this.membersTotal:h}).then(()=>{1===h.length?a("view.eduadmin.directory.toasts.userchanged").then($=>o.sendMessage(new xt.y(`${h[0].user.shortName} ${$}`))):h.length&&a("view.eduadmin.directory.toasts.userschanged").then($=>o.sendMessage(new xt.y(`${h.length} ${$}`)))}).then(()=>n(this.sync.bind(this),600)).finally(()=>this.loading=!1)}editUser(s){const{DialogService:t,$timeout:n}=this.dependencies;this.loading=!0;const o=this.selectedMembers;return t.open(Ee.C,{data:{user:s.user,role:s.role}}).closed.pipe((0,Rt.j)(()=>this.loading=!1)).subscribe(a=>{const{ToastService:h,$translate:T}=this.dependencies,$=T("view.eduadmin.directory.toasts.userchanged"),H=T("view.eduadmin.directory.toasts.userschanged");!0===a&&(1===o.length?$.then(M=>h.sendMessage(new xt.y(`${o[0].user.shortName} ${M}`))):o.length?H.then(M=>h.sendMessage(new xt.y(`${o.length} ${M}`))):s&&$.then(M=>h.sendMessage(new xt.y(`${s.user.shortName} ${M}`))),n(this.sync.bind(this),600))})}selectMember(){if(this.loading)return!1;this.syncSelectionState()}assignSeats(){const{Util:s,EducationalAccountService:t,$translate:n,Dialogs:o,ToastService:a}=this.dependencies,h=this.allSelected?this.membersTotal:this.selectedMembers;if(!h.length)return;this.loading=!0;const T=h.filter($=>!$.seatAssigned).map($=>$.user.id);t.updateMembers(T,null,!0).then($=>{$.data.failed?n(["view.eduadmin.dialogs.oops.title","view.eduadmin.dialogs.oops.ok_btn","view.eduadmin.dialogs.could_not_be_assigned.message_1","view.eduadmin.dialogs.could_not_be_assigned.message_2"]).then(H=>{o.showInfoDialog({title:H["view.eduadmin.dialogs.oops.title"],htmlInclude:$.data.failed+" "+H["view.eduadmin.dialogs.could_not_be_assigned.message_1"]+"<br/><br/>"+H["view.eduadmin.dialogs.could_not_be_assigned.message_2"],defaultButton:H["view.eduadmin.dialogs.oops.ok_btn"]})}):1===T.length?n("view.eduadmin.directory.toasts.seatassigned").then(H=>a.sendMessage(new xt.y(`${h[0].user.shortName} ${H}`))):T.length&&n("view.eduadmin.directory.toasts.seatsassigned").then(H=>a.sendMessage(new xt.y(`${T.length} ${H}`))),this.refreshAfterProcess()}).catch(s.unexpectedError).catch(()=>{this.loading=!1,ze.stop()})}unassignSeats(){const{EducationalAccountService:s,$translate:t,Dialogs:n,ToastService:o}=this.dependencies,a=this.allSelected?this.membersAdjusted:this.selectedMembers;if(!a.length)return;this.loading=!0;const h=a.filter(T=>T.seatAssigned).map(T=>T.user.id);s.updateMembers(h,null,!1).then(T=>{T.data.failed?t(["view.eduadmin.dialogs.oops.title","view.eduadmin.dialogs.oops.ok_btn","view.eduadmin.dialogs.could_not_be_unassigned.message"]).then($=>{n.showInfoDialog({title:"Oops!",htmlInclude:T.data.failed+" "+$["view.eduadmin.dialogs.could_not_be_unassigned.message"],defaultButton:$["view.eduadmin.dialogs.oops.ok_btn"]})}):1===h.length?t("view.eduadmin.directory.toasts.seatunassigned").then($=>o.sendMessage(new xt.y(`${a[0].user.shortName} ${$}`))):h.length&&t("view.eduadmin.directory.toasts.seatsunassigned").then($=>o.sendMessage(new xt.y(`${h.length} ${$}`))),this.refreshAfterProcess()}).catch("Util".unexpectedError)}addToGroup(s){const{GroupService:t,$timeout:n}=this.dependencies;this.loading=!0;const o=this.allSelected?this.membersAdjusted:this.selectedMembers;t.addMembers(s.id,o.map(a=>a.user.id)).then(()=>{const{$translate:a,ToastService:h}=this.dependencies;1===o.length?a("view.eduadmin.directory.toasts.groupaddedmember").then(T=>h.sendMessage(new xt.y(`${o[0].user.shortName} ${T} ${s.name}`))):o.length&&a("view.eduadmin.directory.toasts.groupaddedmembers").then(T=>h.sendMessage(new xt.y(`${o.length} ${T} ${s.name}`)))}).then(()=>n(this.sync.bind(this),600)).finally(()=>this.loading=!1)}removeFromGroup(s){const{GroupService:t,$timeout:n}=this.dependencies;this.loading=!0;const o=this.allSelected?this.membersAdjusted:this.selectedMembers;t.removeMembers(s.id,o.map(a=>a.user.id)).then(()=>{const{$translate:a,ToastService:h}=this.dependencies;1===o.length?a("view.eduadmin.directory.toasts.groupremovedmember").then(T=>h.sendMessage(new xt.y(`${o[0].user.shortName} ${T} ${s.name}`))):o.length&&a("view.eduadmin.directory.toasts.groupremovedmembers").then(T=>h.sendMessage(new xt.y(`${o.length} ${T} ${s.name}`)))}).then(()=>n(this.sync.bind(this),600)).finally(()=>this.loading=!1)}showCreateGroupDialog(){const{Dialogs:s,$timeout:t}=this.dependencies;if(!this.getSelectedMembersById().length)return;const n=this.allSelected?this.membersAdjusted:this.selectedMembers;let o;return s.showAddGroupDialog({selectedMembers:n}).then(a=>a&&a.id?(o=a,s.showAddToCreatedGroupDialog({selectedMembers:n,group:a})):Promise.resolve(null)).then(a=>{const{ToastService:h,$translate:T}=this.dependencies;a&&o&&o.name&&T("view.eduadmin.directory.toasts.groupcreated").then(H=>h.sendMessage(new xt.y(`${o.name} ${H}`)))}).then(()=>t(this.sync.bind(this),600)).finally(()=>this.loading=!1)}showAddGroupDialog(){const{Dialogs:s,$timeout:t}=this.dependencies;if(this.getSelectedMembersById().length)return this.loading=!0,s.showAddUsersToGroup({selectedMembers:this.allSelected?this.membersAdjusted:this.selectedMembers}).then(()=>t(this.sync.bind(this),600)).finally(()=>this.loading=!1)}showRemoveUsers(){const{Dialogs:s,$timeout:t}=this.dependencies;if(!this.getSelectedMembersById().length)return;const n=this.selectedMembers;return this.loading=!0,s.showRemoveUsers({selectedMembers:n}).then(()=>t(this.sync.bind(this),600)).finally(()=>this.loading=!1)}sortBy(s){const t=this.sortOrderTypes[s];let n=this.sortOrderDirections.ASC;t===this.sortOrder&&n===this.sortOrderDirection&&(n=this.sortOrderDirection===this.sortOrderDirections.DESC?this.sortOrderDirections.ASC:this.sortOrderDirections.DESC),this.sortOrder=t,this.sortOrderDirection=n,this.cheapSort=null,this.searchAdapter.hardReload(),this.sortChangeAnnouncement=this.sortOrderDirection===this.sortOrderDirections.DESC?"sorted, descending":"sorted, ascending",setTimeout(()=>{this.sortChangeAnnouncement=""},1e3)}static sortByGroupsCheap(s,t=!0){return s.sort((n,o)=>
1n.groupsAsString<o.groupsAsString?t?-1:1:n.groupsAsString>o.groupsAsString?t?1:-1:0)}sortByCheap(s){let n=this.sortOrderDirections.ASC;if(s===this.sortOrder&&n===this.sortOrderDirection&&(n=this.sortOrderDirection===this.sortOrderDirections.DESC?this.sortOrderDirections.ASC:this.sortOrderDirections.DESC),"groups"===s){this.sortOrder=s,this.sortOrderDirection=n;const o=this.sortOrderDirection===this.sortOrderDirections.DESC;this.searchAdapter.hardReload(h=>ft.sortByGroupsCheap(h,o))}}isSortOrder(s){return this.sortOrder===s}getAriaSort(s){return this.sortOrder!==s?"none":this.sortOrderDirection===this.sortOrderDirections.ASC?"ascending":"descending"}resolveSortOrder(s=this.sortOrder,t=this.sortOrderDirection){const n=this.sortOrderTypes[s],o=Object.values(this.sortOrderDirections).includes(t)?t:this.sortOrderDirections.ASC;return this.sortOrderTypes[`${n}${o}`]||n||this.sortOrderTypes.fullName}getSelectedMembersById(){return this.selectedMembers.map(s=>s.user.id)}resetState(){this.allSelected=!1,this.loading=!1,this.searchTerm="",this.page=0,this.filter="",this.sortOrder=null,this.canAssignSeatsForSelectedUsers=!1,this.canUnassignSeatsForSelectedUsers=!1}refreshAfterProcess(){const{$timeout:s}=this.dependencies;s(this.sync.bind(this),600),this.loading=!1}updateMembership(){const{AdminPanelMediatorService:s}=this.dependencies;s.hasUpdatedMemberships=!0}isAssignSeatsEnabled(){return!this.account?.connectionProviders||0==this.account?.connectionProviders?.length||this.account?.connectionProviders?.length>0&&-1==this.account?.connectionProviders?.indexOf("oneroster")}isDeleteEnabled(){return this.owners.some(n=>n.id===this.currentUser.id)&&!(this.account?.connectionProviders.length>0)}};(0,g.Cg)([pt],Pt.prototype,"addSeats",null),(0,g.Cg)([pt],Pt.prototype,"contactOwner",null),(0,g.Cg)([pt],Pt.prototype,"onFilterChange",null),(0,g.Cg)([pt,$t],Pt.prototype,"changeRole",null),(0,g.Cg)([pt],Pt.prototype,"editUser",null),(0,g.Cg)([pt],Pt.prototype,"selectMember",null),(0,g.Cg)([pt,$t],Pt.prototype,"assignSeats",null),(0,g.Cg)([pt,$t],Pt.prototype,"unassignSeats",null),(0,g.Cg)([pt,$t],Pt.prototype,"addToGroup",null),(0,g.Cg)([pt,$t],Pt.prototype,"removeFromGroup",null),(0,g.Cg)([pt,$t],Pt.prototype,"showCreateGroupDialog",null),(0,g.Cg)([pt,$t],Pt.prototype,"showAddGroupDialog",null),(0,g.Cg)([pt],Pt.prototype,"showRemoveUsers",null),(0,g.Cg)([pt],Pt.prototype,"sortBy",null),(0,g.Cg)([pt],Pt.prototype,"sortByCheap",null),Pt=ft=(0,g.Cg)([le({dependencies:["$q","$scope","$timeout","$interval",ze,wt(),ue,cn,Oe,Re,"Util",Ne,Gt,"DialogService","TrackingService"],downgradedDependencies:[Gt,"DialogService","TrackingService"],name:"AdminEducationalAccountCtrl"})],Pt);const Bt=Pt;var vn=b(63013);const An="com.soundtrap.controllers.application";x().module(An,[ze,Ne]).controller("ApplicationCtrl",["CurrentUser","$scope","Spinner","Dialogs","$rootScope",function(c,s,t,n,o){o.showTrialDialog=function(a){n.showTrialDialog(a)},s.showProjectInviteDialog=function(a){n.showProjectInviteDialog(a)},s.openFeedbackDialog=function(){n.showFeedbackDialog()},s.openFeedbackDialog=function(){n.openFeedbackDialog()},o.showSignupDialog=function(a){n.showSignupDialog(a)},s.startGlobalSpinner=function(){t.start()},s.stopGlobalSpinner=function(){t.stop()},o.showLoginDialog=function(a){n.showLoginDialog(a)},o.showInfoDialog=function(a){return n.showInfoDialog(a)},o.showEducationalCheckoutDialog=function(){return n.showEducationalCheckoutDialog()},o.showProjectInviteDialog=function(a){n.showProjectInviteDialog(a)},o.showMoveProjectsDialog=n.showMoveProjectsDialog,o.showFriendInviteDialog=n.showFriendInviteDialog,o.showMoveProjectsDialog=n.showMoveProjectsDialog,o.showCheckoutDialog=n.showCheckoutDialog,o.showCreateEduAccountDialog=n.showCreateEduAccountDialog,s.userNeedsPasswordChange=c.passwordNeedsChange,s.isDeprecatedBrowser=vn.A.util.Browser.isIE11,s.$watch(()=>c.passwordNeedsChange,a=>
1s.userNeedsPasswordChange=a)}]);const an=An,Ze="GoogleApi";angular.module(Ze,[L.A,"Util"]).factory(Ze,["$window","conf","$q","$timeout","Util",function(c,s,t,n,o){var h,a={gapi:{},doTrack:null},T={};return a.load=function(H){var M=H&&H.scopes||"profile email",j=H&&H.what||"gapi";return T[j]||(T[j]=t.defer(),"gconversion"===j?o.loadJS("//www.googleadservices.com/pagead/conversion_async.js",j,function(){c.onGoogleApiLoaded(H)}):o.loadJS("https://accounts.google.com/gsi/client","gis",function(){o.loadJS("https://apis.google.com/js/client.js?onload=onGoogleApiLoaded",j),function $(M){M=M||"profile email",n(function(){h=c.google.accounts.oauth2.initTokenClient({client_id:s.googleAuthClientId,scope:M})})}(M)})),T[j].promise},c.onGoogleApiLoaded=function(H){var M=H&&H.scopes||"profile email",j=H&&H.what||"gapi";n(function(){a.gapi=c.gapi,a.gapi.load("client",function(){a.gapi.client.init({client_id:s.googleAuthClientId,scope:M}),T[j].resolve()})})},a.getUserInfo=function(H){return fetch("https://www.googleapis.com/oauth2/v3/userinfo",{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${H}`}}).then(function(M){return M.json()})},a.authorize=function(){var H=t.defer();return h.callback=function(M){a.getUserInfo(M.access_token).then(function(j){H.resolve({access_token:M.access_token,email:j.email})})},h.requestAccessToken(),H.promise},a.trackConversionPixel=function(){s.trackPxl&&a.load("gconversion").then(function(){goog_snippet_vars=function(){c.google_conversion_id=951050404,c.google_conversion_label="XSC2CILew14QpMG_xQM",c.google_remarketing_only=!1},goog_report_conversion=function(H){goog_snippet_vars(),c.google_conversion_format="3",c.google_is_call=!0;var M=new Object;M.onload_callback=function(){typeof H<"u"&&(c.location=H)};var j=c.google_trackConversion;"function"==typeof j&&j(M)},goog_report_conversion()})},a}]);const Kt=Ze,Ft="com.soundtrap.controllers.chromewebstoresignupctrl";angular.module(Ft,[Ne,Kt]).controller("ChromeWebStoreSignupCtrl",["Dialogs","$scope","$controller","GoogleApi",function(c,s,t,n){var o=this;o.agreeToTerms=!1,o.googleToken=null;var h=t("LoginCtrl",{$scope:s.$new()}),T=function($){o.agreeToTerms&&(h.setup($),null==o.googleToken?h.loginGoogle():h.loginWithGoogleToken(o.googleToken))};o.showLoginDialog=function(){c.showLoginDialog()},o.signupTeacher=function(){o.agreeToTerms&&n.authorize().then(function($){if(!$||$.error)return c.showInfoDialog({title:"Error",message:"Google login failed."}),void console.log("result",$);o.googleToken=$.access_token,c.showCreateEduAccountDialog({extraOptions:{signupCallback:T}})})},o.signupStudent=function(){T({edu:!0})},o.signupPersonal=function(){T({edu:!1,noAgeCheck:!0})}}]);const hn=Ft,dn="com.soundtrap.controllers.confirmdialogctrl";angular.module(dn,[]).controller("ConfirmDialogCtrl",["$sce","$modalInstance","options",function(c,s,t){this.headerInclude=t.headerInclude||null,this.bodyInclude=t.bodyInclude||null,this.footerInclude=t.footerInclude||null,this.icon=t.icon||"",this.list=t.list||[],this.message=t.message||"",this.options=t.options||[],this.title=t.title||"",this.isIconAnImage=this.icon.split("/").length>1,this.extraOptions=t.extraOptions||null,this.modalInstance=s,this.canOptNull=!(typeof t.canOptNull<"u")||t.canOptNull,this.defaultButton=typeof t.defaultButton<"u"?t.defaultButton:0,this.clicked=function(n){s.close(n)}}]);const Mn=dn,en="Tracker",sn=m.module(en,[]).service(en,class bn{get apiUrl(){return window.btoa?"/api/bug/logEvents2/":"/api/bug/logEvents2nb/"}constructor(){this.loggedFailure=!1,this.queuedEvents=[],this.flushTimeoutValue=3e4,this.overridePageLocation=s=>{this.ga("set","location",s),this.ga("set","page",s),this.ga("set","title",s)},this.ga=(...s)=>{try{window.ga.apply(null,s)}catch(t){this.loggedFailure||(this.loggedFailure=!0,console.warn("ga failed",t))}},this.base64=s=>window.btoa?window.btoa(encodeURIComponent(s).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(`0x${n}`))):s,this.sendLogEvents=(s,t)=>{if(t&&t.length)return navigator.sendBeacon?navigator.sendBeacon(s,this.base64(JSON.stringify(t))):fetch(s,{method:"POST",body:this.base64(JSON.stringify(t)),credentials:"include"})},this.flushEvents=()=>{const s=(new Date).getTime(),t=this.queuedEvents.map(n=>{const[o,a,h,T,$,H,M]=n;return[o,a,h,T,$,H-s,M]});this.sendLogEvents(this.apiUrl,t),this.queuedEvents=[],this.flushEventTimer=null},this.logEvent=(s,t,n,o,a=void 0)=>{const h=null!=a&&""!==a&&JSON.stringify(a);this.queuedEvents.push([s,t,n,o,h,(new Date).getTime(),this.projectId]),null==this.flushEventTimer&&(this.flushEventTimer=setTimeout(this.flushEvents,this.flushTimeoutValue))},this.setProjectId=s=>{this.projectId=s},this.getProjectId=()=>this.projectId,this.setReferrer=s=>{""===s&&(s=null),this.ga("set","referrer",s)},this.trackPage=(s,t,n)=>{const o=["send","pageview"];s&&o.push({location:s,page:t,title:n}),this.ga(...o)},this.trackTiming=(s,t,n,o)=>{this.ga("send","timing",s,t,n,o),this.logEvent(s,t,o,n)},this.trackCustomFacebookEvent=(s,t=null)=>{this.trackFacebookEvent("trackCustom",s,t)},this.trackStandardFacebookEvent=(s,t=null)=>{this.trackFacebookEvent("track",s,t)},this.trackFacebookEvent=(s,t,n=null)=>{const o=window.fbq;"function"==typeof o&&(null!==n?o(s,t,n):o(s,t))},this.trackNetworkInformation=()=>{const s=window&&window.navigator;if(!s||!s.connection)return;const n=s.connection,{effectiveType:o,downlink:a,rtt:h}=n;this.trackEvent("network_info",o,""+a,h)},window.addEventListener("beforeunload",()=>this.flushEvents())}trackEvent(s,t,n,o,a,h){const T=["send","event",s,t=""===t||null===t?void 0:t,n,o=o&&!isNaN(o)?o:void 0];a&&T.push({nonInteraction:1}),this.ga(...T),this.logEvent(s,t,n,o,h)}}).name,Tn="SubscriptionService";angular.module(Tn,[sn]).factory("SubscriptionService",["$http","Tracker",function(c,s){return{getValidSubscriptions:function(){return c.get("/api/subscription/getValidSubscriptions1/",{isArray:!0})},getActiveSubscription:function(){return c.get("/api/subscription/getActiveSubscription1/")},getAllSubscriptions:function(){return c.get("/api/subscription/getAllSubscriptions1/",{isArray:!0})},getPlanInfo1:function(){return c.get("/api/subscription/getPlanInfo1/")},getPendingSubscription:function(n){return c.get("/api/subscription/getPendingSubscription1/?id="+n)},removePendingSubscription:function(n){return c.post("/api/subscription/removePendingSubscription/",{id:n})},reactivateSubscription:function(n){const o="/api/subscription/reactivateSubscription1/";return c.post(o,{id:n}).then(()=>{s.trackPage(o),s.trackEvent("subscription","reactivate")})},cancelSubscription:function(n){const o="/api/subscription/cancelSubscription1/";return c.post(o,{id:n}).then(()=>{s.trackPage(o),s.trackEvent("subscription","cancel")})},changePlan:function(n,o,a){const h="/api/subscription/changePlan1/";return c.post(h,a).then(()=>{s.trackPage(h),s.trackEvent("subscription",n)})}}}]);const rn=Tn,ln="SubscriptionModel";angular.module(ln,[ue,Oe,rn,"Util"]).factory("SubscriptionModel",["CurrentUser","
1EducationalAccountService","SubscriptionService","Util","$q",function(c,s,t,n,o){var a={subs:[],subPromise:null,loadsLeft:3,getSubscription:($=!1)=>c.educational?a.getValidSubscriptionsIfNotCached($).then(function(H){return H.length>0?H[0]:0}).catch(H=>{"AccessDeniedException"===(H.data?H.data.name:"")?ST.util.Dialog("Error","You do not have sufficient permissions to do this."):n.unexpectedError(H)}).finally(()=>{a.loadsLeft--}):a.getValidSubscriptionsIfNotCached($).then(H=>H.length>0?H[0]:0).catch(n.unexpectedError).finally(()=>{a.loadsLeft--}),getPlanInfo:()=>t.getPlanInfo1().finally(()=>{a.loadsLeft--}),getPendingSubscription:$=>t.getPendingSubscription($).finally(()=>{a.loadsLeft--}),getValidSubscriptionsIfNotCached:function($=!1){return!$&&a.subs.length>0?o(function(H){H(a.subs.filter(T))}):a.refresh().then(function(){return a.subs.filter(T)})},getAllSubscriptionsIfNotCached:function(){return a.subs.length>0?o(function($){$(a.subs)}):a.refresh().then(function(){return a.subs})},getLatestSubscription:()=>a.getAllSubscriptionsIfNotCached().then($=>$&&$.sort((H,M)=>M.id-H.id)[0]),refresh:function(){return a.subPromise?a.subPromise:h()},refreshAndGetValid:function(){return h().then(a.getValidSubscriptionsIfNotCached)}},h=function(){var $;return c.educational?(a.subPromise=s.getAllSubscriptions(),$=a.subPromise,a.subPromise.then(function(H){a.subs=H.data,a.subPromise=null})):(a.subPromise=t.getAllSubscriptions(),$=a.subPromise,a.subPromise.then(function(H){a.subs=H.data,a.subPromise=null})),$},T=function($){return"active"===$.state||"canceled"===$.state};return a.cancel=function($){return t.cancelSubscription($)},a.downgrade=function($,H){return t.changePlan("downgrade","SUBSCRIPTION DOWNGRADED",{id:$,changeTo:H})},a.upgrade=function($,H){return t.changePlan("upgrade","SUBSCRIPTION UPGRADED",{id:$,changeTo:H})},a.changeInterval=function($,H){return t.changePlan("change","SUBSCRIPTION INTERVAL CHANGED",{id:$,changeTo:H})},a.reactivate=function($){return t.reactivateSubscription($)},a}]);const Hn=ln;var Wn=b(85456),wn=b(72190);b(21722);let Fn=class{constructor(){const{AdminPanelMediatorService:s,CurrentUser:t,$scope:n,EducationalAccountService:o,DialogService:a,NgrxStoreService:h,TrackingService:T}=this.dependencies;this.activeView=t.eaaChangeOtherMember?"directory":"",this.activeMenu=t.eeaChangeOtherMemeber?"account":"",this.adminPanelMediator=s,this.currentUser=null,this.currentUserId=t.id,this.subscription=null,this.seatsAssigned=0,this.isChildOfDistrict=!0,this.dialogService=a,this.ngrxStoreService=h,this.trackingService=T,n.$watch(()=>s.activeView,($,H)=>{$&&$!==H&&self.activeView!==$&&(this.activeView=$,this.activeMenu="")}),n.$watch(()=>s.shouldUpdateSubscription,($,H)=>{$&&(this.getValidSubscriptions(!0),s.shouldUpdateSubscription=!1)}),n.$watchCollection(()=>s.groups,($,H)=>{$&&$!==H&&this.updateCurrentUser()}),n.$watch("this.currentUser"),n.$on("eduadmin:groupMembershipLengthChanged",this.updateCurrentUser.bind(this)),this.getValidSubscriptions(),o.getAccount().then($=>$.data).then($=>{this.isChildOfDistrict=!!$.parentId,this.seatsAssigned=$.membersAssigned})}getFirstKey(s){for(var t in s)return t}updateCurrentUser(){const{EducationalAccountService:s,AdminPanelMediatorService:t}=this.dependencies;s.getMember(this.currentUserId).then(n=>{t.currentUser=n.data,this.currentUser=t.currentUser})}setView(s){const{AdminPanelMediatorService:t}=this.dependencies;this.activeView=s,t.activeView=s}showBulkRoleAssignmentDialog(s){const{Dialogs:t,AdminPanelMediatorService:n}=this.dependencies;if(n.getSelectedMembers().length||s)return t.showBulkRoleAssignmentDialog({membership:s})}
1showAddGroupDialog(s){const{Dialogs:t}=this.dependencies;t.showAddGroupDialog(s)}getValidSubscriptions(s){const{SubscriptionModel:t,AdminPanelMediatorService:n}=this.dependencies;(s?t.refreshAndGetValid():t.getValidSubscriptionsIfNotCached()).then(a=>{n.validSubscription=a[0],this.subscription=n.validSubscription,this.subscription&&(n.subscriptionDaysLeft=Math.round((this.subscription.expiresAt-(new Date).getTime())/1e3/60/60/24),n.eduSubscriptionExpiresSoon=this.subscription.plan&&!this.subscription.plan.isTrial&&n.subscriptionDaysLeft<=30,this.daysLeft=n.subscriptionDaysLeft)})}showEducationalCheckoutDialog(){location.href="/checkout/edu"}showGoogleSyncDialog(){this.dialogService.open(Wn.v,(0,wn.Q0)({...Wn.v.dialogConfig,dialogType:wn.hs.Info,dialogSize:wn.EV.Large}))}};Fn=(0,g.Cg)([le({name:"EduAdminPanelCtrl",dependencies:[wt(),Oe,Re,cn,Ne,ue,Hn,"$scope","DialogService","$rootScope","NgrxStoreService","TrackingService","$window"],downgradedDependencies:["DialogService","NgrxStoreService","TrackingService"]})],Fn);const si=Fn,Yn="com.soundtrap.controllers.edulandingloginctrl";m.module(Yn,[wt()]).controller("EduLandingLoginCtrl",["$http","$injector","Dialogs","Tracker","Util",function(c,s,t,n,o){const a=W=>location.href=W,h=document.getElementById("edu-landing-input");function re(W){const me=document.getElementById("edu-landing-login-error");me&&(W?me.classList.remove("hidden"):me.classList.add("hidden"))}h&&(h.addEventListener("input",function T(){const W=h.value.trim(),me=/stu|elev/.test(W)||/^\d+@/.test(W),ke=document.getElementById("edu-landing-login-student-detected");ke&&me?ke.classList.remove("hidden"):ke&&!ke.classList.contains("hidden")&&ke.classList.add("hidden")}),h.addEventListener("input",function H(){const W=h.value.trim(),me=/lausd\.net\s*$/.test(W),ke=document.getElementById("edu-landing-login-lausd-detected");ke&&me?ke.classList.remove("hidden"):ke&&!ke.classList.contains("hidden")&&ke.classList.add("hidden")})),this.submit=()=>{const W=h.value.trim();!function $(){const W=h.value.trim(),me=o.checkIfPublicDomain(W),ke=document.getElementById("edu-landing-public-email-detected");return ke&&me?ke.classList.remove("hidden"):!me&&ke&&!ke.classList.contains("hidden")&&ke.classList.add("hidden"),me}()?o.validateEmail(W)?function M(W){const me=encodeURIComponent(W);c.post("/v1/login/email/",W,{headers:{"Content-Type":void 0}}).then(ke=>{switch(n.trackEvent("login","eduInputEmail",ke.data.loginType),ke.data.loginType){case"SIGN_UP":return function j(W){const me=encodeURIComponent(W);return a(`/edu/signup?email=${me}`)}(W);case"LOGIN_EMAIL":return t.showLoginDialog({edu:!0,extraOptions:{email:W}});case"LOGIN_GOOGLE":return a(`/v1/login/google/?email=${me}`);case"LOGIN_MICROSOFT":return a(`/v1/login/microsoft/?email=${me}`)}})}(W):/[A-Za-z0-9]{7}
1/.test(W)?function te(W){c.get(`/v1/eduinvite/${W}/exists/`).then(me=>{me.data.exists?(n.trackEvent("login","eduInputInviteCodeValid",W),location.href=`/invite/${W}`):(n.trackEvent("login","eduInputInviteCodeInvalid",W),re(!0))})}(W):(n.trackEvent("login","eduInputUnrecognizedError"),re(!0)):re(!1)}}]);const li=Yn,Ri="com.soundtrap.controllers.edusignuppage";angular.module(Ri,[]).controller("EduSignupPage",["TrackingService",function Lr(c){this.props=ST.util.getQueryParams(),this.dialog={extraOptions:this.props},this.signupDialogTemplateUrl=Ke,this.init=function(){c.track("edu-signup-page-impression",{category:"EDU Signup flow old",action:"Final step page impression old"})}}]);const Gr=Ri,ci="com.soundtrap.controllers.landing";angular.module(ci,[wt()]),angular.module(ci).controller("LandingCtrl",["$rootScope","$sce","$document","$window","Util","Dialogs","DialogService","$injector",function(c,s,t,n,o,a,h,T){const $=this;let H=!1;const M=j=>(...te)=>{H||(j(...te),H=!0,setTimeout(()=>{H=!1},1e3))};c.globalConfig=n["com.soundtrap.config"],c.$on("$translateChangeEnd",function(j,te){$.langCode=te.language}),$.currentStep=1,$.gotoStep=function(te){$.currentStep=2},$.gotoSignupPersonal=M(function(te){a.showSignupDialog(te)}),$.trackEvent=function(te,re,W){T.get("TrackingService").track("landing-generic",{category:te,action:re})},$.gotoJoinSchool=M(function(){T.get("TrackingService").track("landing-join-school-started",{category:"signup",action:"startJoinSchool"}),window.location.href="/invite"}),$.gotoCreateSchoolAccount=M(function(){T.get("TrackingService").track("landing-create-school-started",{category:"signup",action:"startCreateSchool"}),window.location.href="/edu/signup"}),$.login=M(j=>{a.showLoginDialog(j)}),$.isIOS=ST.util.Browser.isIOS,$.isAndroid=ST.util.Browser.isAndroid,$.isWindows=ST.util.Browser.isWindows,$.isWindowsMobile=ST.util.Browser.isWindows&&o.Browser.isMobile,$.isWindowsApp=ST.util.Browser.isWindowsApp,$.isEduVideoPlaying=!1,$.toggleEduVideo=()=>{const j=t[0].querySelector(".video-player-edu");j.paused?j.play():j.pause(),j.controls=!j.paused,$.isEduVideoPlaying=!j.paused},$.videoEnabled=!o.Browser.isMobile||navigator.connection&&""!=navigator.connection.type&&"cellular"!=navigator.connection.type,$.isMobile=o.Browser.isMobile}]);const jr=ci;var Rn=b(87602);const $i="com.soundtrap.services.facebook";angular.module($i,[wt(),L.A,"Util"]).factory("FacebookApi",["$window","$rootScope","$q","$timeout","Util","conf","$translate",function(c,s,t,n,o,a,h){var T={FB:{}},$=function H(re){switch(re){case"es":return"es_LA";case"sv":return"sv_SE";case"nl":return"nl_NL";case"fr":return"fr_FR";case"pt":return"pt_PT";case"it":return"it_IT";default:return"en_US"}}(h.proposedLanguage())||"en_US",M=t.defer(),j=!1,te=!1;return T.load=function(){return j||(o.loadJS("//connect.facebook.com/"+$+"/sdk.js","facebook-jssdk",function(){te=!0}),j=!0),M.promise},T.hasLoaded=function(){return te},c.fbAsyncInit=function(){c.FB.init({appId:a.facebookAppId,version:"v23.0",status:!0,xfbml:!1}),s.$apply(function(){T.FB=c.FB,M.resolve()})},T.getAuthResponse=function(){var re=t.defer();return T.load().then(function(){var W=T.FB.getAuthResponse();re.resolve(W)}),re.promise},T.authorize=function(){var re=t.defer();return T.load().then(function(){T.FB.login(function(W){n(function(){re.resolve(W)})},{scope:"public_profile,email"})}),re.promise},T.isConnected=function(){var re=t.defer();return T.load().then(function(){T.FB.getLoginStatus(function(W){n(function(){re.resolve("connected"===W.status)})})}),re.promise},T.parseXfbml=function(re){var W=t.defer();return T.load().then(function(){return T.FB.XFBML.parse(re,function(){n(function(){W.resolve()})})}),W.promise},T.api=function(re,W,me){var ke=t.defer();return T.load().then(function(){T.FB.api(re,W,me,function(ct){n(function(){ke.resolve(ct)})})}),ke.promise},T.ui=function(re){var W=t.defer();return T.load().then(function(){T.FB.ui(re,function(me){n(function(){W.resolve(me)})})}),W.promise},T.logout=function(){var re=t.defer();return T.load().then(function(){T.FB.logout(function(W){n(function(){re.resolve(W)})})}),re.promise},T}]);const Ui=$i,Ni="com.soundtrap.services.microsoft";angular.module(Ni,[L.A,"Util"]).factory("MicrosoftApi",["$window","conf","$q","$timeout","Util",function(c,s,t,n,o){var a={msapi:null},h=t.defer(),T=!1;return a.load=function(){return T||(o.loadJS("https://secure.aadcdn.microsoftonline-p.c
1om/lib/1.0.0/js/adal.min.js","msapi",onMSApiLoaded),T=!0),h.promise},c.onMSApiLoaded=function(){n(function(){a.msapi=new AuthenticationContext({instance:"https://login.windows.net/",clientId:s.msAuthClientId,tenant:"common",redirectUri:c.location.origin+"/msconnect/login"}),h.resolve()})},a.authorize=function(){var $=t.defer();return a.load().then(function(){a.msapi.config.displayCall=function(H){a.msapi.config.displayCall=null;var M=H.replace("response_type=id_token","response_type=code%20id_token");c.localStorage.removeItem("msinfo"),a._showPopup(M,800,500);var te=window.setInterval(function(){try{if(null!=c.localStorage.getItem("msinfo")){window.clearInterval(te);var re=c.localStorage.getItem("msinfo");c.localStorage.removeItem("msinfo");var W=null;a.msapi.isCallback(re)&&(W=a.msapi.getRequestInfo(re),a.msapi.saveTokenFromHash(W)),a.msapi.getCachedToken(s.msAuthClientId)&&W&&W.parameters&&W.parameters.code?$.resolve(W.parameters):$.reject(a.msapi.getLoginError())}}catch{$.reject()}},100)},a.msapi.login()}),$.promise},a.getId=function(){let $=t.defer();return a.msapi.getUser(function(H,M){H?$.reject(H):$.resolve(M.profile.oid)}),$.promise},a._showPopup=function($,H,M){return c.open($,"auth-popup","width="+H+",height="+M+",top="+((c.screenTop?c.screenTop:c.screenY)+c.innerHeight/2-M/2)+",left="+((c.screenLeft?c.screenLeft:c.screenX)+c.innerWidth/2-H/2))},a}]);const Fi=Ni,Li="SignupService";let ui=(()=>{class c{static{this.$inject=["$q","$timeout","$window","$http","TrackingService","Util"]}static{this.MAX_AGE_IN_YEARS=120}static{this.MIN_AGE_IN_YEARS=5}constructor(t,n,o,a,h,T){this.$q=t,this.$timeout=n,this.$window=o,this.$http=a,this.trackingService=h,this.Util=T}trackNewSignup(t,n){const o=t.type;return this.$q((a,h)=>{const T=this.$window.navigator.userAgent.toLowerCase(),$=this.Util.appVersion();this.trackingService.track(Jt.B.SignUp,{userAgent:T,appVersion:$,type:o});const H="Signed up"+(n?" "+n:""),M="Sign up method";this.trackingService.track(H,{category:H,action:T,label:$}),this.trackingService.track(M,{category:M,action:o}),this.$timeout(a)})}static getSignupYears(){const t=(new Date).getFullYear();return new Array(c.MAX_AGE_IN_YEARS-c.MIN_AGE_IN_YEARS).fill(null).map((n,o)=>t-o-c.MIN_AGE_IN_YEARS).map(n=>({id:n,label:n}))}}return c})();const di=m.module(Li,[]).service(Li,ui).name,fi="PotentiallyEduUserService",Hr=angular.module(fi,[Ne,wt()]);Hr.factory(fi,["Dialogs","TrackingService","$translate","$http",function(c,s,t,n){const o={},T=(M,j)=>{s.track("edu-potentially-edu-user-questions-shown",{category:"Join Edu Account Question Dialog",action:j,data:{domain:M}})},$=function(){var M=(0,Rn.A)(function*(j){const te=(M=>{if(!M)return null;const j=M.split("@");return 2!==j.length?null:j[1]})(j),re=yield(M=>{T(M,"Show Dialog");const j="view.landing.login.joineduquestion.title",te="view.landing.login.joineduquestion.message",re="view.landing.login.joineduquestion.join",W="view.landing.login.joineduquestion.create";return t([j,te,re,W]).then(me=>c.showInfoDialog({title:me[j],message:me[te],options:[me[re],me[W]]}).then(ke=>{switch(ke){case-1:return T(M,"Close Dialog w/o Action"),"CANCELLED";case 0:return T(M,"Join Edu Account"),"JOIN EDU";case 1:return T(M,"Create Consumer Account"),"CREATE CONSUMER";default:throw new Error("Unknown showInfoDialog result: "+ke)}}))})(te);return"JOIN EDU"===re&&c.showEduJoinAccountDialog({domain:te}),re});return function(te){return M.apply(this,arguments)}}();return o.verifyShouldCreateConsumerAccount=M=>(M=>n.get("/api/educationalemaildomain/checkEmailPotentiallyEdu/",{params:{email:M}}))(M).then(({data:{isPotentiallyEdu:j}})=>!j||$(M).then(te=>"CREATE CONSUMER"===te),()=>!0),o}]);const pi=fi;var Wr=b(4281);const Yr=c=>({providerName:c});let Xr=(()=>{class c{constructor(t,n){this.dialog=t,this.data=n,this.mergePassword="",this.providerName=this.data.providerName,this.minLength=8}merge(){this.dialog.close(this.mergePassword||null)}cancel(){this.dialog.close(null)}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(Wt.ce),l.rXU(Wt.Qs))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-merge-accounts-dialog"]],standalone:!1,decls:13,vars:23,consts:[[3,"close","title"],[1,"st-body-standard"],["type","password","name","merge-password",3,"ngModelChange","label","ngModel"],[1,"small-link","st-body-small",3,"innerHTML"],[3,"primaryAction","secondaryAction","primaryButtonText","secondaryButtonText","disablePrimaryAction"]],template:function(n,o){1&n&&(l.j41(0,"st-dialog-header",0),l.nI1(1,"translate"),l.bIt("close",function(){return o.cancel()}),l.k0s(),l.j41(2,"st-dialog-content")(3,"p",1),l.EFF(4),l.nI1(5,"translate"),l.k0s(),l.j41(6,"st-form-input",2),l.nI1(7,"translate"),l.mxI("ngModelChange",function(h){return l.DH7(o.mergePassword,h)||(o.mergePassword=h),h}),l.k0s(),l.nrm(8,"div",3),l.nI1(9,"translate"),l.k0s(),l.j41(10,"st-dialog-footer",4),l.nI1(11,"translate"),l.nI1(12,"translate"),l.bIt("primaryAction",function(){return o.merge
1()})("secondaryAction",function(){return o.cancel()}),l.k0s()),2&n&&(l.Y8G("title",l.bMT(1,8,"view.dialogs.merge_accounts.title")),l.R7$(4),l.SpI(" ",l.i5U(5,10,"view.dialogs.merge_accounts.message",l.eq3(21,Yr,o.providerName))," "),l.R7$(2),l.Y8G("label",l.bMT(7,13,"view.dialogs.password")),l.R50("ngModel",o.mergePassword),l.R7$(2),l.Y8G("innerHTML",l.bMT(9,15,"view.dialogs.merge_accounts.forgotpass"),l.npT),l.R7$(2),l.Y8G("primaryButtonText",l.bMT(11,17,"view.dialogs.ok"))("secondaryButtonText",l.bMT(12,19,"view.dialogs.cancel"))("disablePrimaryAction",o.mergePassword.length<o.minLength))},dependencies:[w.BC,w.vS,kn.B,Pn.Z,In.J,Wr.S,Yt.r],styles:["p[_ngcontent-%COMP%]{margin-bottom:var(--space-small)}.small-link[_ngcontent-%COMP%] a{color:var(--text-subdued);text-decoration:underline;font-size:13px}"]})}}return c})();var Bi=b(52257);const Gi="com.soundtrap.directives.dateselector";angular.module(Gi,[]).directive("dateSelector",["$timeout",()=>({restrict:"E",scope:{date:"=date"},template:'\n <fieldset>\n <legend>\n {{ \'view.dialogs.signup.date_of_birth\' | translate}}\n <strong aria-hidden="true">*</strong>\n </legend>\n \n <div class="form-group date-selector">\n <input type="number" min="1" max="31" required ng-model="date.day"\n name="day" placeholder="{{ \'view.dialogs.signup.day\' | translate }}" class="form-control"\n aria-label="{{\'view.dialogs.signup.select.day\' | translate }}" aria-required="true" placeholder="view.dialogs.signup.day"\n autocomplete="bday-day">\n <select required ng-options="month.id as month.label for month in months" ng-model="date.month" class="form-control"\n name="month" aria-label="{{\'view.dialogs.signup.select.month\' | translate }}" aria-required="true" autocomplete="bday-month">\n <option value="" disabled translate="view.dialogs.signup.month"></option>\n </select>\n <select required id="date-of-birth" aria-label="{{\'view.dialogs.signup.select.year\' | translate }}" aria-required="true" ng-options="year.id as year.label for year in years" \n ng-model="date.year" class="form-control" name="year" autocomplete="bday-year">\n <option value="" disabled translate="view.dialogs.signup.year"></option>\n </select>\n </div>\n </fieldset>\n ',controller:["$scope",c=>{try{c.years=ui.getSignupYears(),c.months=ne().months().map((s,t)=>({label:s,id:t}))}catch(s){console.error("Error: ",s)}}]})]);const hi=Gi;var Kr=b(6918),qr=b(78608),Qr=b(55335),Zr=b(55706);const ji="com.soundtrap.controllers.login";angular.module(ji,[wt(),ze,Ui,"Util",Ne,sn,Fi,di,f,pi,hi]).controller("LoginCtrl",["CurrentUser","$q","$http","Spinner","FacebookApi","Util","Dialogs","TrackingService","Tracker","$timeout","MicrosoftApi","$scope","SignupService","$translate","$window","UserService","PotentiallyEduUserService","DialogService","AppleAuthService","GoogleService",function(c,s,t,n,o,a,h,T,$,H,M,j,te,re,W,me,ke,ct,Et,Ct){const X=this,St=a.getQueryParams(),Ot=()=>W.location.pathname,bt="Landing page flow";X.email=St.email?St.email:"",X.password="",X.rememberMe=!0;const Vt=j.dialog&&j.dialog.modalOptions||{};let on="";function qt(Ae={type:X.loginType}){if(n.isVisible())return;n.start();const ot=Ae.type;t.post(X.needsAgeCheck?"/api/auth/signupAgeCheck2/":"/api/auth/tokenLogin2/",{type:X.loginType,token:X.token,email:X.email,merge_password:X.password,edu:X.edu,eduTrialSignup:X.eduTrialSignup,acceptTerms:X.acceptTerms,eduCode:X.eduCode,countryCode:X.countryCode,birthDate:X.birthDateFormatted}).then(Dt=>{if(Dt.data&&Dt.data.signup){ri("age-check-passed",X.countryCode,(0,Bi.QO)(X.birthDateFormatted)),""===X.url&&(X.url="/home");const Dn=me.getUserType(X.edu||X.eduTrialSignup,Ot());return te.trackNewSignup({type:ot},Dn)}const Cn=s.defer();return Cn.resolve(Dt),Cn.promise}).then(X.onLoginSuccess).catch(Dt=>{X.errorMessage="";var Cn=null!=Dt.data?Dt.data.name:"";switch(T.track("login-3rd-party-error",{category:"login",action:"tokenLoginError",label:ot,data:Cn}),Cn){case"TokenInvalidException":T.track("login-3rd-party-error-debug",{category:"login-debug",action:"tokenLoginError",label:ot,data:JSON.stringify(Dt.data)}),oi("view.landing.login.failed","view.landing.login.didntwork");break;case"EmailMissingException":case"ApiValidationException":var Dn=Dt.data.errors;Dn&&Dn.birthDateTooLow?(sessionStorage.setItem("birthDate",X.birthDateFormatted),sessionStorage.setItem("countryCode",X.c
1ountryCode),sessionStorage.setItem("birthDateTooLow",!0),W.location.href="/signup/sorry/"):Dn&&Dt.data.message?X.errorMessage=Dt.data.message:Ht();break;case"AccountMergeException":Nt();break;case"BadCredentialsException":""!==X.password?re("view.landing.login.wrongpass").then(function(ai){h.showInfoDialog({message:ai}).then(function(){H(function(){Nt()})})}):Nt();break;case"AcceptTermsException":!function Oi(){h.showInfoDialog({message:"How old are you?",options:["Under 13","13 or older"],defaultButton:1}).then(function(Ae){1==Ae&&(X.acceptTerms=!0,H(function(){qt({type:X.loginType})}))})}();break;case"AcceptEduMigrationException":!function Mt(){re("view.landing.login.confirmmig").then(function(Ae){h.showEduMigrationTermsDialog({title:Ae}).then(function(ot){ot&&(X.acceptTerms=!0,H(function(){qt({type:X.loginType})}))})})}();break;case"AccountDisabledException":gn(Dt.data.message,Dt.data.details);break;case"InvalidEduInviteCodeException":!function Bn(){const Ae="view.landing.login.invalidedu",ot="view.landing.login.enteredu";re([Ae,ot]).then(function(_t){h.showBasicInputDialog({message:""!=X.eduCode?_t[Ae]:_t[ot],value:X.eduCode}).then(function(Dt){null!==Dt&&(X.eduCode=Dt,H(function(){qt({type:X.loginType})}))})})}();break;default:a.unexpectedError(Dt)}}).finally(function(){n.stop()})}function Ht(){var Ae="view.landing.login.emailcomplete",ot="view.landing.login.invalidemail";re([Ae,ot]).then(function(_t){h.showBasicInputDialog({message:_t[Ae],value:X.email}).then(function(Dt){if(null!==Dt){if(X.email=Dt,!a.validateEmail(X.email))return void h.showInfoDialog({message:_t[ot]}).then(function(){H(function(){Ht()})});X.needsAgeCheck||H(function(){qt({type:X.loginType})})}})})}function Nt(){X.closeSelf();let _t=ct.open(Xr,{data:{providerName:{googleplus:"Google",facebook:"Facebook",microsoft:"Office 365"}[X.loginType]||""}});_t.then||(_t=(0,Q._)(_t.closed)),_t.then(function(Dt){null!==Dt&&(X.password=Dt,H(function(){qt({type:X.loginType})}))}).catch(Dt=>{console.log("Error in handleTokenSignupAccountMerge",Dt)})}function gn(Ae,ot){X.closeSelf(),h.showLoginFailDialog({message:Ae,details:ot}),X.onResultDefer&&X.onResultDefer.resolve(!1)}""!==Vt.url&&(on=Vt.url||St.url||""),X.url=a.sanitizeUrl(on),X.errorMessage="",X.hasAppleLogin=!1,X.edu=!1,X.eduTrialSignup=!1,X.acceptTerms=!1,X.eduCode="",X.onResultDefer=null,X.token="",X.loginType="",X.birthDate={day:void 0,month:void 0,year:void 0},X.countryCode="",X.noAgeCheck=!1,X.countries=[],me.getCountries().then(Ae=>{X.countries=Ae.data}),X.years=ui.getSignupYears(),X.isEduOrCreatorDropdownVisible=!1,X.showEduOrCreatorDropdown=()=>{X.isEduOrCreatorDropdownVisible=!0,T.track("login-edu-creator-dropdown",{category:"login",action:"edu-creator-dropdown",label:"triggered"})},X.loginEmailPassword=function(){if(!n.isVisible()){if(""===X.email&&""!==X.password)return T.track("login-email-empty-error",{category:"login",action:"error",label:"emailPassword",data:"noEmail"}),X.errorMessage=re.instant("view.landing.login.enteremail"),document.querySelector("#l_email").setAttribute("aria-describedby","login_error"),void document.querySelector("#l_email").focus();if(""===X.password&&""!==X.email)return T.track("login-email-empty-password",{category:"login",action:"error",label:"emailPassword",data:"noPassword"}),X.errorMessage=re.instant("view.landing.login.enterpassword"),document.querySelector("#l_password").setAttribute("aria-describedby","login_error"),void document.querySelector("#l_password").focus();if(""===X.email&&""===X.password)return T.track("login-email-empty-form",{category:"login",action:"error",label:"emailPassword",data:"noFormData"}),X.errorMessage=re.instant("view.landing.login.enterpasswordandemail"),document.querySelector("#l_email").setAttribute("aria-describedby","login_error"),document.querySelector("#l_password").setAttribute("aria-describedby","login_error"),void document.querySelector("#l_email").focus();n.start(),t.post("/api/auth/login2/",{email:X.email,password:X.password,remember_me:X.rememberMe,eduCode:X.eduCode}).then(Ae=>Ae.data).then(Ae=>{X.errorMessage="",X.onLoginSuccess()}).catch(Ae=>{X.errorMessage="";var ot=null!=Ae.data?Ae.data.name:"";switch(""!==ot&&(T.track("login-generic-error",{category:"login2",action:"error",label:ot}),T.track("login-generic-error",{category:"login",action:"error",label:"emailPassword",data:ot})),ot){case"ApiValidationException":T.track("login-generic-error",{category:bt,action:"Error: Exception on e-mail login",label:Ot(),data:Ae.data.message}),X.errorMessage=Ae.data.message,document.querySelector("#l_email").setAttribute("aria-describedby","login_error"),document.querySelector("#l_email").focus();break;case"NoSuchEmailException":T.track("login-no-such-email-error",{category:bt,action:"Error: User entered wrong e-mail",label:Ot()}),X.errorMessage=re.instant("view.landing.login.bad_credentials"),document.querySelector("#l_email").setAttribute("aria-describedby","login_error"),document.querySelector("#l_email").focus();break;case"BadCredentialsException":T.track("login-wrong-credentials-error",{category:bt,action:"Error: User entered wrong credentials",label:Ot()}),X.errorMessage=Ae.data.message,document.querySelector("#l_email").setAttribute("aria-describedby","login_error"),document.querySelector("#l_email").focus();break;case"UseConnectionException":T.track("login-3rd-party-error",{category:bt,action:"Error: Use connection exception",label:Ot(),data:Ae.data.message});var _t=function Sn(Ae){switch(Ae){case"googleplus":return X.loginGoogle(),!0;case"facebook":return X.loginFacebook(),!0;case"microsoft":return X.loginMicrosoft(),!0;case"apple":return X.loginApple(),!0;default:return!1}}(Ae.data.details.provider);_t||(document.querySelector("#l_email").setAttribute("aria-describedby","login_error"),document.querySelector("#password").setAttribute("aria-describedby","login_error"),X.errorMessage=Ae.data.message);break;case"AccountDisabledException":T.track("login-account-disabled",{category:bt,action:"Error: User account disabled",label:Ot()}),gn(Ae.data.message,Ae.data.details);break;case"PasswordNeedsChangeAccessDeniedException":T.track("login-password-needs-change",{category:bt,action:"Error: User password needs change",label:Ot()}),Al(Ae.data);break;default:a.unexpectedError(Ae)}}).finally(()=>n.stop())}},o.load(),X.loginFacebook=function(){if(T.track("login-facebook-clicked",{c
1ategory:bt,action:"Click Sign up with Facebook",label:Ot()}),T.track("login-facebook-started",{category:"login",action:"start",label:"facebook"}),!X.handleSessionBirthDateTooLow()){if(!o.hasLoaded())return oi("view.landing.login.error","view.landing.login.fbfailscript"),void console.log("Facebook SDK has not loaded due to script failure.");o.authorize().then(function(Ae){if("connected"!==Ae.status)return oi("view.landing.login.error","view.landing.login.fbfail"),T.track("login-facebook-error",{category:bt,action:"Error when signing up by Facebook",label:Ot(),data:Ae}),void T.track("login-facebook-generic-error",{category:"login",action:"error",label:"facebook"});X.loginType="facebook",X.token=Ae.authResponse.accessToken,X.isEduLogin()?qt({type:X.loginType}):me.checkUserIdSignup(X.loginType,Ae.authResponse.userID).then(({data:{userExists:ot}})=>{ot?qt({type:X.loginType}):(ri("age-check-started"),X.needsAgeCheck=!0)})})}},Ct.load(),X.loginGoogle=function(){T.track("login-google-clicked",{category:bt,action:"Click Sign up with Google",label:Ot()}),T.track("login-google-started",{category:"login",action:"start",label:"googleplus"}),!X.handleSessionBirthDateTooLow()&&Ct.authorize().then(function(Ae){X.loginType="googleplus",X.token=Ae.access_token,X.email=Ae.email,me.checkSignupAndDomain(X.email).then(({data:{userExists:ot}})=>{if(ot){const _t=X.isEduLogin()?"successEdu":"complete";T.track("login-google-completed",{category:"login",action:_t,label:"googleplus"}),qt({type:X.loginType})}else X.handleNewGoogleUser()})}).catch(Ae=>{var ot="view.landing.login.error",_t="view.landing.login.googfail";re([ot,_t,"view.landing.login.popup"]).then(function(Cn){if(-1!==Ae.error.indexOf("popup_closed_by_user")){let ai="/signup-googleplus/";X.url&&(ai+=`?url=${encodeURIComponent(X.url)}`),W.location.href=ai}else h.showInfoDialog({title:Cn[ot],message:Cn[_t]})}),console.log("result",Ae),T.track("login-google-generic-error",{category:"login",action:"error",label:"googleplus",value:"GoogleAuthorizeFailed"}),T.track("login-google-error",{category:bt,action:"Error when signing up by Google",label:Ot(),data:Ae})})},X.handleNewGoogleUser=function(){X.eduCode||X.eduTrialSignup?X.createNewGoogleUser():ke.verifyShouldCreateConsumerAccount(X.email).then(Ae=>{Ae&&X.createNewGoogleUser()})},X.createNewGoogleUser=function(){if(X.isEduLogin()||X.noAgeCheck){const Ae=X.isEduLogin()?"successEdu":"complete";T.track("login-google-completed",{category:"login",action:Ae,label:"googleplus"}),qt({type:X.loginType})}else T.track("login-google-age-check",{category:"login",action:"ageCheck",label:"googleplus"}),ri("age-check-started"),X.needsAgeCheck=!0},X.submitAgeCheck=()=>{X.birthDateFormatted=`${X.birthDate.year}-${Fr(X.birthDate.month+1)}-${Fr(X.birthDate.day)}`,qt({type:X.loginType})},X.loginWithGoogleToken=function(Ae){X.loginType="googleplus",X.token=Ae,qt({type:X.loginType})},M.load(),X.loginMicrosoft=function(){T.track("login-microsoft-started",{category:"login",action:"start",label:"microsoft"}),!X.handleSessionBirthDateTooLow()&&M.authorize().then(function(Ae){if(Ae&&!Ae.error)return X.loginType="microsoft",X.token=Ae.code,X.isEduLogin()?(T.track("login-microsoft-edu-completed",{category:"login",action:"successEdu",label:"microsoft"}),void qt({type:X.loginType})):void M.getId().then(ot=>me.checkUserIdSignup(X.loginType,ot)).then(ot=>{ot.data.userExists?(T.track("login-microsoft-completed",{category:"login",action:"tokenLogin",label:"microsoft"}),qt({type:X.loginType})):(T.track("login-microsoft-signed-up",{category:"login",action:"signup",label:"microsoft"}),ri("age-check-started"),X.needsAgeCheck=!0)});oi("view.landing.login.error","view.landing.login.o365fail")})},X.loginApple=function(){X.loginType="apple",T.track("login-apple-started",{category:"login",action:"start",label:"apple"}),Et.authenticate().pipe((0,mn.Z)(({authorization:{id_token:Ae}})=>(0,Zr.H)(me.checkSignupApple(Ae)),({authorization:Ae},{data:{userExists:ot}})=>[Ae,ot]),(0,Kr.$)(([Ae,ot])=>(ot||h.showInfoDialog({title:"Account does not exist",message:"We could not find an account for your Apple ID. Please try an alternative login method"}),ot)),(0,qr.T)(([Ae])=>Ae),(0,Qr.W)(Ae=>console.error(Ae))).subscribe(({code:Ae})=>{X.token=Ae,T.track("login-apple-completed",{category:"login",action:"tokenLogin",label:"apple"}),qt({type:X.loginType})})},X.closeSelf=function(Ae){j.dialog&&j.dialog.clicked&&j.dialog.clicked(-1)},X.onLoginSuccess=(0,Rn.A)(function*(){if(T.track("login-success",{category:"login",action:"success",label:X.loginType}),X.closeSelf(),X.onResultDefer)X.onResultDefer.resolve(!0);else{n.start();let Ae=X.url;if(X.hasTemporaryEduAccount)W.location.href="/temporary-edu-account";else{const ot=St.ref;if(ot){const Dt=(yield me.useSignupCode(ot)).data;null!=Dt.project&&(Ae=Dt.project.openUrl)}$.trackNetworkInformation();let _t=""===Ae||"/"===Ae||"/musicmakers"===Ae?"/home":a.sanitizeUrl(Ae);_t=a.addUtmParametersToUrl(_t,St),W.location.href=_t}}});const Al=Ae=>{c.passwordNeedsChange=!0,c.password=X.password,c.email=X.email;const{isTemporaryEduAccount:ot,educationalAccount:_t,nextChange:Dt,userRole:Cn}=Ae.details;sessionStorage&&sessionStorage.setItem("currentUser",JSON.stringify({email:X.email,password:X.password,created:(new Date).getTime(),isTemporaryEduAccount:ot,educationalAccount:_t,nextChange:Dt,userRole:Cn}));const Dn="/changepassword/";W.location.pathname!==Dn&&(W.location.href=Dn),X.closeSelf()};X.goToSignup=function(){X.onResultDefer?j.dialog.clicked("goToSignup"):X.closeSelf(),h.showSignupDialog({url:X.url,edu:X.edu?1:0,email:X.email,eduCode:X.eduCode,onResultDefer:X.onResultDefer}),T.track("login-edu-creator-dropdown",{category:"login",action:"edu-creator-dropdown",label:"choose-creator"})},X.handleSessionBirthDateTooLow=()=>{const Ae=!X.isEduLogin()&&sessionStorage.getItem("birthDateTooLow");return Ae&&(W.location.href="/signup/sorry/"),Ae},X.isEduLogin=()=>X.edu||X.eduTrialSignup;const ri=(Ae,ot,_t)=>{$.trackPage("/signup",Ae),T.track(`login-${Ae}`,{category:"Age check",action:Ae,label:ot,value:_t,noninteraction:!0})},oi=(Ae,ot)=>{re([Ae,ot]).then(function(_t){h.showInfoDialog({title:_t[Ae],message:_t[ot]})})};function Fr(Ae){return("0"+Ae).slice(-2)}X.setup=function(Ae){Ae&&(X.edu=Ae.edu||!1,X.eduTrialSignup=Ae.eduTrialSignup||!1,X.url=X.url||a.sanitizeUrl(Ae.url)||"",X.email=X.email||Ae.email||"",X.eduCode=X.eduCode||Ae.eduCode||"",X.askEduCode=X.askEduCode||Ae.askEduCode||!1,X.onResultDefer=X.onResultDefer||Ae.onResultDefer||null,X.noAgeCheck=X.noAgeCheck||Ae.noAgeCheck||!1),!X.isEduLogin()&&!W.location.href.includes("/edu")&&(X.hasAppleLogin=!0)}}]);const to=ji,Vi="com.soundtrap.controllers.loginwrapperctrl";angular.module(Vi,[]).controller("LoginWrapperCtrl",["options",function(c){this.options=c||{}}]);const io=Vi,gi="ProjectService";x().module(gi,[]),x().module(gi).factory("ProjectService",["$http",function(c){return{getMyInvites:function(){return c.get("/api/projectinvite/getMyProjectInvites1").then(({data:t})=>t)},getSupervisedUsersProjects:function(t,n,o){return c.get("/api/project/getSupervisedUsersProjects1",{params:{id:t,offset:n,count:o}}).then(({data:a})=>
1a)}}}]);const mi=gi,zi="com.soundtrap.controllers.openprojectsupervised";angular.module(zi,[mi,ze,"Util"]).controller("OpenProjectSupervisedController",["ProjectService","$modalInstance","options","Spinner","Util",function(c,s,t,n,o){var a=this;a.user=t.user,a.loading=!0,n.start(),c.getSupervisedUsersProjects(a.user.id,0,1e3).then(h=>{a.projects=h}).catch(o.unexpectedError).finally(()=>{a.loading=!1,n.stop()})}]);const oo=zi,Hi="com.soundtrap.controllers.resetpasswordctrl";function Wi(c,s){const t=/(?:^[#?]|&)code=([^&]*)/.exec(c||"");if(!t)return"";const n=s?t[1].replace(/\+/g," "):t[1];try{return decodeURIComponent(n)}catch{return""}}angular.module(Hi,[]).controller("ResetPasswordCtrl",["$http","$window",function(c,s){const t=this;t.message="",t.password={},t.code=function ao(c){const s=Wi(c.location.hash,!1)||Wi(c.location.search,!0);return s&&c.history&&c.history.replaceState&&c.history.replaceState(null,"",c.location.pathname),s}(s),t.resetPassword=function(){if(t.message="",!t.resetPasswordForm.$valid)return!1;c.post("/api/auth/resetPassword1/",{code:t.code,password1:t.password.password1,password2:t.password.password2}).then(function(){s.location.href="/login/"}).catch(function(n){n.data&&n.data.message&&(t.message=n.data.message)})},t.clearMessage=function(){t.message=""}}]);const lo=Hi,Yi="com.soundtrap.services.conversationservice";angular.module(Yi,[]).factory("ConversationService",["$http","$rootScope",function(c,s){return{getConversations:function(n,o,a){return c.get("/api/conversation/getConversations1",{params:{filter:n,offset:o,count:a}}).then(({data:h})=>h)},getConversation:function(n){return c.get("/api/conversation/getConversation1",{params:{id:n}}).then(({data:o})=>o)},getMessages:function(n,o,a){return c.get("/api/conversation/getMessages1",{params:{conversation_id:n,offset:o,count:a}}).then(({data:h})=>h)},getStatus:function(){return c.get("/api/conversation/getStatus1")},sendMessage:function(n,o,a){return c.post("/api/conversation/sendMessage2",null,{params:{conversation_id:n,recipients:o,message:a}}).then(({data:h})=>h)},addSubscribers:function(n,o){return c.post("/api/conversation/addSubscribers2",null,{params:{id:n,subscribers:o}}).then(({data:a})=>a)},leave:function(n){return c.post("/api/conversation/leave1",null,{params:{id:n}}).then(({data:o})=>o)},mark:function(n,o){return c.post("/api/conversation/mark1",null,{params:{id:n.id,mark:o}}).then(({data:a})=>a).then(()=>{switch(o){case"read":n.userRead=!0;break;case"unread":n.userRead=!1;break;case"archived":n.userArchived=!0;break;case"unarchived":n.userArchived=!1}s.$broadcast("conversation:marked",n)})}}}]);const vi=Yi,Xi="com.soundtrap.controllers.sendmessagectrl";angular.module(Xi,[vi,sn,wt(),Ne]).controller("SendMessageCtrl",["$scope","ConversationService","$http","$timeout","Tracker","$translate","Dialogs","$q",function(c,s,t,n,o,a,h,T){const $=this,H=c.dialog&&c.dialog.modalInstance||{close:function(){}},M=c.dialog&&c.dialog.extraOptions||{};$.recipient=M.recipient,$.recipients=M.recipients,$.message=M.message||"",$.sending=!1,$.callback=M.callback;const j=function(){H.close()};$.hide=j,c.g_currentUser||(ST.util.Dialog("",a("view.dialogs.send_message.not_logged_in")),n(j,0)),$.send=function(){if(""==$.message)return void j();$.sending=!0;const te=$.recipient?$.recipient.username:$.recipients&&$.recipients.map(re=>re.user&&re.user.username).join(", ");s.sendMessage(null,te,$.message).then(function(){j(),o.trackEvent("Send message"),$.callback&&$.callback(),T.all([a("view.dialogs.send_message.message_sent"),a("view.dialogs.ok")]).then(re=>{h.showInfoDialog({title:re[0],options:[re[1]],defaultButton:0}).then(function(){})})}).catch(function(re){j(),ST.util.unexpectedError(re)})}}]);const fo=Xi;var qn=b(66730);const Ji="com.soundtrap.controllers.setupedutrialctrl";angular.module(Ji,[Ne,"Util",ue,Oe]).controller("SetupEduTrialCtrl",["TrackingService","$rootScope","Dialogs","Util","CurrentUser","EducationalAccountService",function(c,s,t,n,o,a){var h=n.getQueryParams(),T=h.fn,$=h.ln,H=h.sc,M=h.se,j=h.pc,te=h.cy,re=h.dt,W=h.st,me=h.cp,ke=h.ci,ct=h.oc,Et=h.lt,Ct=h.td||30,X=h.of;function Ot(Vt){if(null===window.sessionStorage.getItem("pendingEduSignUp"))return void(window.location.href="/home");let on;window.sessionStorage.removeItem("pendingEduSignUp"),on={firstName:T,lastName:$,accountName:H,seats:M,promoCode:j,connectionProvider:me,connectionId:ke,countryCode:te,state:W,district:re,occupation:ct,licenseType:Et,offer:X},on.trialDays=Ct,a.setupTrialAccount(on).then(function(){c.track("edu-trial-created",{category:"edutrial_created",value:M}),function bt(Vt,on){on&&[qn.kq.Annual,qn.kq.Classroom,qn.kq.School,qn.kq.District].includes(on)?window.location.href=`/checkout?offer=${on}&source=${Vt}`:window.location.href=`/home?source=${Vt}`}(Vt,X)}).catch(n.unexpectedError)}o.educational&&(window.location.href="/home"),o.getValidSubscriptions().then(Vt=>{Vt.data.length>0?function St(){t.showEduMigrationTermsDialog({titleId:"view.dialogs.edumigration.confirmmigration",role:"teacher",firstName:T,lastName:$,trialDays:Ct}).then(function(Vt){Vt?Ot("consumer_user_to_edu_js"):window.location.href="/home"})}():Ot("edu_signup")})}]);const ho=Ji;let yi=class{constructor(){this.form=null,this.input={},this.minPasswordLength=6,this.input.password=null,this.input.password1=null,this.input.oldPassword=this.user&&this.user.password,this.passwordError=null,this.password1Error=null,this.oldPasswordError=null,this.formError=null,this.eaaAdministerAccount=this.user&&this.user.userRole&&-1!==this.user.userRole.attributeMask.indexOf("x")}get user(){const{CurrentUser:s}=this.dependencies;let t={};try{sessionStorage&&(t=sessionStorage&&sessionStorage.getItem("currentUser")&&JSON.parse(sessionStorage.getItem("currentUser")))}catch{}return{...t,...s}}get school(){let t={};try{sessionStorage&&(t=sessionStorage&&sessionStorage.getItem("currentUser")&&JSON.parse(sessionStorage.getItem("currentUser")).educationalAccount)}catch{}return{name:null,profileImage:null,id:null,...t}}
1checkAndMaybeOpenLoginPopup(s={}){const{Dialogs:t}=this.dependencies,n=!!angular.element("body.modal-open").length;!s.password&&!n&&t.showLoginDialog()}validateLettersAndNumbers(){Object.keys(this.input).forEach(s=>{const t=this.input[s],n=t&&t.match(/^(?=.*[a-zA-Z])(?=.*[0-9])/gi);this.form[s].$setValidity("numbersletters",n)})}checkMatchOldPassword(){this.form.$setValidity("matchingold",this.input.password!==this.input.oldPassword)}checkMatch(){this.form.$setValidity("matching",this.input.password===this.input.password1),this.checkMatchOldPassword(),this.validateLettersAndNumbers()}changeTempPassword(){const{UserService:s,Spinner:t,$window:n}=this.dependencies;if(this.checkMatch(),this.form.$invalid||!this.form.$valid)return this.form.$submitted&&(this.form.password.$error.required||this.form.password.$error.minlength||this.form.password.$error.numbersletters)?void document.querySelector('[name="password"]')?.focus():this.oldPassword||this.form.$submitted&&(this.form.password1.$error.required||this.form.password1.$error.minlength||this.form.password1.$error.numbersletters||this.form.$error.matching||this.form.$error.matchingold)?void document.querySelector('[name="password1"]')?.focus():void 0;t.start(),s.changePassword(this.user.email,this.input.oldPassword,this.input.password,this.input.password1).then(o=>{n.location.href="/home"}).catch(o=>{const a=o&&o.data&&o.data.errors||{};Object.keys(a).length>0&&Object.keys(a).forEach(h=>this[`${h}Error`]=a[h].join(", ")),o&&o.data&&o.data.message&&(this.formError=o.data.message,document.querySelector('[name="oldPassword"]')?.focus())}).finally(o=>t.stop())}};yi=(0,g.Cg)([le({name:"TempAccountPageCtrl",dependencies:[Ne,ue,f,ze,"$window"]})],yi);const go=yi,Ki="com.soundtrap.controllers.unreadmessagecounter";angular.module(Ki,[vi]).controller("UnreadMessageCounter",["$scope","ConversationService","$interval","$timeout",function(c,s,t,n){c.status={},c.reload=function(){s.getStatus().then(function(o){c.status=o}).catch(function(o){console.log(o)})},c.reload(),c.$on("conversation:marked",c.reload),c.$on("message:sent",c.reload),t(c.reload,6e4,60)}]);const vo=Ki;let bi=class{constructor(){const{options:s}=this.dependencies;this.selectedMembers=s.selectedMembers,this.groups=[],this.syncGroups()}userBelongsToGroup(s,t){return-1!==(s.groupMemberships||s.user.groupMemberships).map(a=>a.group.id).indexOf(t.id)}allUsersBelongToGroup(s,t){return s.filter(n=>this.userBelongsToGroup(n,t)).length===s.length}syncGroups(){const{GroupService:s,EducationalAccountService:t,$q:n}=this.dependencies;return s.getGroups().then(o=>o.data||[]).then(o=>this.groups=o).then(o=>n.all([o,t.searchMembers("","",null,0,500,o.map(a=>a.id).join(),"teacher,owner")])).then(o=>o.map(a=>a.data||a)).then(o=>({group:o[0],teachers:o[1]})).then(o=>o.group.map(a=>({...a,teachers:o.teachers.filter(h=>h.user.groupMemberships.filter(T=>T.group.id===a.id).length)}))).then(o=>o.map(a=>({...a,teachersAsString:a.teachers.map(h=>h.user.fullName).join(", ")}))).then(o=>this.groups=o)}syncMembers(){const{EducationalAccountService:s,$q:t}=this.dependencies;return t.all(this.selectedMembers.map(n=>s.getMember(n.user.id))).then(n=>n.map(o=>o.data)).then(n=>this.selectedMembers=n)}addToGroup(s,t=[]){const{GroupService:n}=this.dependencies,o=s.id,a=t.map(h=>h.user.id);return n.addMembers(o,a).then(this.syncMembers.bind(this)).then(this.syncGroups.bind(this))}};bi=(0,g.Cg)([le({name:"AddToGroupDialogCtrl",dependencies:[Re,Oe,"$q"],wrappedModal:!0})],bi);const yo=bi,qi="com.soundtrap.controllers.dialog.input";angular.module(qi,[]).controller("BasicInputDialogCtrl",["$modalInstance","options",function(c,s){this.title=s.title||"",this.message=s.message||"",this.options=s.options||["Cancel","Ok"],this.defaultButton=typeof s.defaultButton<"u"?s.defaultButton:1,this.okButton=typeof s.okButton<"u"?s.okButton:1,this.value=s.value||"",this.masked=!!s.masked,this.clicked=function(t){t===this.okButton?c.close(this.value):c.dismiss(t)}}]);const wo=qi,Qi="com.soundtrap.services.lmsservice";angular.module(Qi,[]).factory("LMSService",["$http",function(c){return{getGroups:t=>c({url:"/api/lms/getGroups1/",method:"GET",params:{provider:t}}),getOrCreateLTIConfiguration:t=>c({url:"api/lms/getOrCreateLTIConfiguration1/",method:"GET",params:{provider:t}}),resetLTIConfiguration:t=>
1c({url:"api/lms/resetLTIConfiguration1/",method:"POST",params:{provider:t}})}}]);const Zi=Qi,er="com.soundtrap.controllers.dialogs.educanvasconnectdialogctrl";angular.module(er,[Zi]).controller("EduCanvasConnectDialogCtrl",["$window","LMSService",function(c,s){const t=this;s.getOrCreateLTIConfiguration("canvas").then(n=>{t.ltiConfiguration=n.data}),t.resetLTIConfiguration=()=>{c.confirm("Warning! Are you sure you want to go ahead? If you have an existing Canvas integration, users will not be able to login until you configure Canvas to use the new configuration.")&&s.resetLTIConfiguration("canvas").then(o=>{t.ltiConfiguration=o.data})}}]);const Eo=er,wi=angular.module("com.soundtrap.services.bugapi",[]).factory("BugApi",function(){const c=new Date;return{reportBug:function(t,n){vn.A.bugapi.reportBug(c,t,n)}}}).name,tr="com.soundtrap.controllers.dialogs.educlassroomimportdialogctrl";let Ao=(()=>{class c{static{this.$inject=["TrackingService","Dialogs","$timeout","$scope","EducationalAccountService","Spinner","GroupService","Util","AdminPanelMediatorService","GoogleApi","$translate","BugApi"]}constructor(t,n,o,a,h,T,$,H,M,j,te,re){this.trackingService=t,this.dialogs=n,this.$timeout=o,this.$scope=a,this.educationalAccountService=h,this.spinner=T,this.groupService=$,this.util=H,this.adminPanelMediator=M,this.googleApi=j,this.$translate=te,this.bugApi=re,this.step=1,this.groups=[],this.group=null,this.authToken=null,this.students=[],this.courses=[],this.course=null,this.loadingCourses=!1,this.loadingStudents=!1,this.result={},this.numOk=0,this.numError=0,this.numWarning=0,this.initStepsLeft=1,this.$modalInstance=a.dialog&&a.dialog.modalInstance||{close:()=>{}},this.trackingService.track("edu-classroom-import-started",{category:"import_start",action:"googleclassroom"}),this.spinner.start(),this.groupService.getGroups().then(W=>{if(this.groups=W.data,0===this.groups.length)return this.$modalInstance.close(),void this.$translate(["view.dialogs.educlassimport.nogroup","view.dialogs.educlassimport.pleasesetup"]).then(me=>{this.dialogs.showInfoDialog({title:me["view.dialogs.educlassimport.nogroup"],message:me["view.dialogs.educlassimport.pleasesetup"]})});this.group=this.groups[0]}).catch(this.util.unexpectedError).finally(()=>{this.initStepped()}),a.$watch(()=>this.course,(W,me)=>{W!==me&&W&&this.loadStudents()}),this.googleApi.load({scopes:["https://www.googleapis.com/auth/classroom.courses.readonly","https://www.googleapis.com/auth/classroom.rosters.readonly","https://www.googleapis.com/auth/classroom.profile.photos","https://www.googleapis.com/auth/classroom.profile.emails"].join(" ")})}inited(){return this.initStepsLeft<=0}initStepped(){this.initStepsLeft--,this.initStepsLeft<=0&&this.spinner.stop()}authorize(){this.trackingService.track("edu-classroom-import-load-courses",{category:"googleclassroom-dialog",action:"load_courses_initiated"}),this.googleApi.authorize().then(t=>{this.authToken=t.access_token,this.loadCourses()}).catch(t=>{let n=t.error||"";this.trackingService.track("edu-classroom-import-load-courses",{category:"googleclassroom-dialog",action:"load_courses_error",value:n}),this.$translate(["view.dialogs.educlassimport.failed","view.dialogs.educlassimport.notauser","view.dialogs.educlassimport.popup"]).then(o=>{const a=o["view.dialogs.educlassimport.failed"];0===n.indexOf("@NotGoogleAppsUser")?n=o["view.dialogs.educlassimport.notauser"]:~n.indexOf("popup_closed_by_user")?n=o["view.dialogs.educlassimport.popup"]:this.bugApi.reportBug("Google Classroom auth failed",JSON.stringify(t)),this.dialogs.showInfoDialog({title:a,message:n}),this.$modalInstance.close()})})}fetchSomeCourses(t=[],n){const o={pageSize:75,courseStates:"ACTIVE"};return null!=n&&(o.pageToken=n),this.googleApi.gapi.client.request({root:"https://classroom.googleapis.com",path:"v1/courses",params:o}).then(a=>(a.result.courses&&t.push(...a.result.courses),a.result.nextPageToken?this.fetchSomeCourses(t,a.result.nextPageToken):t))}loadCourses(){this.loadingCourses=!0,this.courses=[],this.fetchSomeCourses().then(t=>{this.$timeout(()=>{if(this.loadingCourses=!1,!t)return this.trackingService.track("edu-classroom-import-load-courses",{category:"googleclassroom-dialog",action:"load_courses_empty"}),void this.$translate(["view.dialogs.educlassimport.noclasses","view.dialogs.educlassimport.noclassesmsg"]).then(n=>{this.dialogs.showInfoDialog({title:n["view.dialogs.educlassimport.noclasses"],message:n["view.dialogs.educlassimport.noclassesmsg"]}),this.$modalInstance.close()});this.courses=t,this.course=this.courses[0],this.step=2,this.trackingService.track("edu-classroom-import-load-courses",{category:"googleclassroom-dialog",action:"load_courses_successful"})})},t=>{this.$timeout(()=>{let n=t.result&&t.result.error&&t.result.error.message?t.result.error.message:"";this.$translate(["view.dialogs.educlassimport.failed","view.dialogs.educlassimport.notauser"]).then(o=>{this.trackingService.track("edu-classroom-import-load-courses-error",{category:"googleclassroom-dialog",action:"load_courses_error",value:n});const a=o["view.dialogs.educlassimport.failed"];0===n.indexOf("@NotGoogleAppsUser")?n=o["view.dialogs.educlassimport.notauser"]:this.bugApi.reportBug("Google Classroom import failed",JSON.stringify(t.result)),this.dialogs.showInfoDialog({title:a,message:n}),this.$modalInstance.close()})})})}fetchSomeStudents(t=[],n){const o={pageSize:75};return null!=n&&(o.pageToken=n),this.googleApi.gapi.client.request({root:"https://classroom.googleapis.com",path:"v1/courses/"+this.course.id+"/students",params:o}).then(a=>(a.result.students&&t.push(...a.result.students),a.result.nextPageToken?this.fetchSomeStudents(t,a.result.nextPageToken):t))}loadStudents(){this.students=[],this.loadingStudents=!0,this.fetchSomeStudents().then(t=>{this.$timeout(()=>
1{this.students=t,this.loadingStudents=!1,this.students.forEach(n=>{n.selected=!0})})},t=>{this.$timeout(()=>{this.loadingStudents=!1,this.bugApi.reportBug("Google Classroom student load failed",JSON.stringify(t.result)),this.util.unexpectedError(t.result),this.$modalInstance.close()})})}selectAll(){const t=!this.allSelected();this.students.forEach(n=>{n.selected=t})}allSelected(){return this.numSelected()===this.students.length&&this.students.length>0}canImport(){return this.numSelected()>0&&!this.spinner.isVisible()}numSelected(){return this.students.filter(t=>t.selected).length}doImport(){this.trackingService.track("edu-classroom-import-process",{category:"googleclassroom-dialog",action:"import_initiated"});const t=this.students.filter(n=>n.selected).map(n=>n.profile.id);this.spinner.start(),this.educationalAccountService.importFromClassroom(this.authToken,this.course.id,t,this.group.id).then(n=>{this.step=3,this.result={},n.data.results.forEach(o=>this.result[o.userId]=o),this.numOk=n.data.results.filter(o=>"ok"===o.status).length,this.numError=n.data.results.filter(o=>"error"===o.status).length,this.numWarning=n.data.results.filter(o=>"warning"===o.status).length,this.adminPanelMediator.hasUpdatedMemberships=!0,this.adminPanelMediator.shouldUpdateSubscription=!0,this.trackingService.track("edu-classroom-import-done",{category:"import_done",action:"googleclassroom",value:this.numOk})}).catch(n=>{this.trackingService.track("edu-classroom-import-process",{category:"googleclassroom-dialog",action:"import_failed",value:n}),this.util.unexpectedError(n)}).finally(()=>{this.spinner.stop()})}importDone(){this.step=4}}return c})();m.module(tr,[wt(),Ne,Oe,ze,Re,"Util",cn,Kt,wi]).controller("EduClassroomImportDialogCtrl",Ao);const To=tr;let Si=class{constructor(...s){this.dependencies.$modalInstance=this.dependencies.$scope.dialog&&this.dependencies.$scope.dialog.modalInstance||{close:function(){}},this.dependencies.options=this.dependencies.$scope.dialog&&this.dependencies.$scope.dialog.extraOptions||{};const{Spinner:t,$translate:n,GroupService:o,GoogleApi:a,TrackingService:h,$modalInstance:T,$scope:$,Dialogs:H,Util:M}=this.dependencies;this.step=1,this.groups=[],this.group=null,this.users=[],this.initStepsLeft=1,this.loadingUsers=!1,this.units=[],this.unit={},this.numOk=0,this.numError=0,this.numWarning=0,this.accessToken=null,h.track("edu-google-directory-import-started",{category:"import_start",action:"googledirectory"}),t.start(),o.getGroups().then(te=>this.groups=te.data).then(te=>{if(!te.length){const re="view.dialogs.edugoogledir.ngtitle",W="view.dialogs.edugoogledir.ngmessage";return n([re,W]).then(me=>(T.close(),H.showInfoDialog({title:me[re],message:me[W]})))}this.group=te[0]}).catch(M.unexpectedError).finally(()=>this.initStepped()),$.$watch(()=>this.unit,(te,re)=>te!==re&&te&&this.loadUsers());const j=this;$.$on("modal.closing",function(te,re){j.cancelImport()}),a.load({scopes:"https://www.googleapis.com/auth/admin.directory.orgunit.readonly https://www.googleapis.com/auth/admin.directory.user.readonly"})}authorize(){const{GoogleApi:s,Dialogs:t,$modalInstance:n,$translate:o,TrackingService:a}=this.dependencies;a.track("edu-google-directory-authorize",{category:"google-directory-dialog",action:"authorize"}),s.authorize().then(h=>{this.accessToken=h.access_token,this.loadOrgUnits()}).catch(h=>{a.track("edu-google-directory-authorize-failed",{category:"google-directory-dialog",action:"authorize-failed",value:h.error});const T="view.dialogs.edugoogledir.failed",$="view.dialogs.edugoogledir.notauser",H="view.dialogs.edugoogledir.popup";return o([T,$,H]).then(M=>{let j=h&&h.error?h.error:"";return 0===j.indexOf("@NotGoogleAppsUser")?j=M[$]:~j.indexOf("popup_closed_by_user")&&(j=M[H]),t.showInfoDialog({title:M[T],message:j}),n.close()})})}loadOrgUnits(){const{Spinner:s,$translate:t,Dialogs:n,$modalInstance:o,$timeout:a,GoogleApi:h,TrackingService:T}=this.dependencies;return s.start(),this.units=[],h.gapi.client.request({root:"https://www.googleapis.com",path:"admin/directory/v1/customer/my_customer/orgunits?type=all",params:{maxResults:500}}).then($=>{a(()=>{s.stop(),this.units=$.result.organizationUnits||[],this.units.unshift({orgUnitPath:"/",name:"/"}),this.unit=this.units[0];try{T.track("edu-google-directory-import-info",{category:"import_info",action:"googledirectory",data:{units:this.units}})}catch{}this.step=2})},$=>{a(()=>{T.track("edu-google-directory-load-org-units-failed",{category:"google-directory-dialog",action:"load-org-units-failed"}),s.stop();const H="view.dialogs.edugoogledir.failed",M="view.dialogs.edugoogledir.notauser";
1return t([H,M]).then(j=>{let te=$.result&&$.result.error&&$.result.error.message?$.result.error.message:"";return 0===te.indexOf("@NotGoogleAppsUser")&&(te=j[M]),n.showInfoDialog({title:j[H],message:te}),o.close()})})})}loadUsers(){this.users=[],this.loadingUsers=!0,this.nextPageToken=null,this.loadMoreUsers()}loadMoreUsers(){const{GoogleApi:s,$timeout:t,Util:n,$modalInstance:o}=this.dependencies;return s.gapi.client.request({root:"https://www.googleapis.com",path:"admin/directory/v1/users",params:{customer:"my_customer",query:"orgUnitPath='"+this.unit.orgUnitPath.replace(/'/g,"\\'")+"' isSuspended=false",maxResults:500,pageToken:this.nextPageToken}}).then(a=>t(()=>(this.loadingUsers=!1,this.nextPageToken=a.result.nextPageToken,this.users.push(...a.result.users?a.result.users:[]),this.users.forEach(T=>T.selected=!0,0))),a=>t(()=>(this.loadingUsers=!1,n.unexpectedError(a.result),o.close())))}selectAll(){const s=!this.allSelected;x().forEach(this.users,t=>t.selected=s)}doImport(){var s=this;return(0,Rn.A)(function*(){s.step=3;const{EducationalAccountService:t,AdminPanelMediatorService:n,TrackingService:o}=s.dependencies;let a=[];for(x().forEach(s.users,T=>T.selected&&a.push(T.id)),s.numOk=0,s.numFailed=0,s.numWarning=0,s.errors={},s.numImporting=a.length,s.canceling=!1,s.numImported=0,s.importResult={};s.numImported<s.numImporting;){let T=s.numImported;s.numImported+=50,s.numImported>s.numImporting&&(s.numImported=s.numImporting);let H=a.slice(T,s.numImported);try{let j=(yield t.importFromGoogleDirectory(s.accessToken,s.unit.orgUnitPath,H,s.group.id)).data;if(j.results.forEach(te=>s.importResult[te.userId]=te),s.numOk+=j.results.filter(te=>"ok"===te.status).length,s.numError+=j.results.filter(te=>"error"===te.status).length,s.numWarning+=j.results.filter(te=>"warning"===te.status).length,Object.assign(s.errors,j.errors),s.importedUsers=s.users.slice(0,s.numImported),s.canceling)break}catch(M){o.track("edu-google-directory-import-error",{category:"google-directory-dialog",action:"import-error",value:M?.data?.message}),"Util".unexpectedError(M)}}s.step=4,n.hasUpdatedMemberships=!0,n.shouldUpdateSubscription=!0,o.track("edu-google-directory-import-done",{category:"import_done",action:"googledirectory",value:s.numOk})})()}get allSelected(){return this.numSelected==this.users.length&&this.users.length>0}get inited(){return this.initStepsLeft<=0}get canImport(){return this.numSelected>0}get numSelected(){return this.users.filter(s=>s.selected).length}importDone(){this.step=5}cancelImport(){this.canceling=!0}initStepped(){const{Spinner:s}=this.dependencies;this.initStepsLeft--,this.inited&&s.stop()}};Si=(0,g.Cg)([le({name:"EduGoogleDirImportDialogCtrl",dependencies:[Ne,Oe,ze,Re,"Util",cn,Kt,"TrackingService","$timeout","$scope","$translate"],downgradedDependencies:["TrackingService"]})],Si);const Do=Si,nr="com.soundtrap.controllers.dialogs.edutrialdialogctrl";angular.module(nr,["Util",Ne,f,ue]).controller("EduTrialDialogCtrl",["$scope","$window","$http","Util","Dialogs","UserService","CurrentUser","TrackingService",function(c,s,t,n,o,a,h,T){var $=c.dialog&&c.dialog.modalInstance||{close:function(){}},H=c.dialog&&c.dialog.extraOptions||{},M=this;M.input=H.input||{},M.formEdu={},M.input.country="",M.input.occupation=null,M.input.students=M.input.students||H.seats||500,M.input.licensetype=null,M.input.terms=!1,M.signupCallback=H.signupCallback||o.showSignupDialog,M.countries=[],M.states=a.getStates(),M.promoCode=H.promoCode||"",M.trialDays=function _o(c,s){if(!c)return 30*(s||1);const t=ne()(new Date);return ne()(c).diff(t,"days")}(H.subscriptionEndDate,H.subscriptionMonths),M.redirectToCheckout=H.redirectToCheckout,M.paying=H.paying;const j=a.getCountries().then(function(Et){M.countries=Et.data}),te=Promise.all([j,a.geoLocate()]).then(([Et,Ct,X])=>{if(Ct.data.country){const Ot=a.getStates();var St=Et.data.find(bt=>bt.code===Ct.data.country);if(St&&(M.country=St,M.input.country=St.code),"US"===Ct.data.country&&Ct.data.state){const bt=Ot.find(Vt=>Vt.abbreviation===Ct.data.state);bt&&(M.state=bt,M.input.state=bt.abbreviation)}else M.state=null}});Promise.all([te]).finally(()=>c.$evalAsync(()=>M.preflightDone=!0)),h.loggedIn&&(M.isLoggedIn=!0,M.input.firstName=M.input.firstName||h.shortName,M.input.lastName=M.input.lastName||h.lastName),M.proceedToLogin=function(){var Et=M.redirectToCheckout?ct():ke(),Ct={email:M.input.email,url:Et,edu:0};$.close(),o.showLoginDialog(Ct)},M.toggleAcceptTerms=function(){M.input.terms=!M.input.terms},M.checkEmail=function(){M.formEdu.email&&(M.checkEmailFormatError(M.formEdu.email.$viewValue),M.checkLausdEmailError(M.formEdu.email.$viewValue))},M.checkEmailFormatError=Et=>{M.emailFormatError=!n.validateEmail(Et)},M.checkLausdEmailError=Et=>{M.lausdEmailError=/lausd\.net\s*$/.test(Et)}
1,M.submit=function(){if(!W())return M.formEdu.$invalid||M.emailFormatError?!M.formEdu.$invalid&&M.lausdEmailError?(document.querySelector('input[name="email"]').setAttribute("aria-describedby","lausd-email-error"),void document.querySelector('input[name="email"]')?.focus()):M.formEdu.$invalid||M.input.terms?void document.querySelector(".st-error")?.focus():(document.querySelector('input[name="terms"]').setAttribute("aria-describedby","terms-error"),void document.querySelector('input[name="terms"]')?.focus()):(document.querySelector('input[name="email"]').setAttribute("aria-describedby","invalid-email-error"),void document.querySelector('input[name="email"]')?.focus());window.sessionStorage.setItem("pendingEduSignUp","true"),h.loggedIn?me():a.checkSignup(M.input.email).then(function(Et){Et.data.ok?(T.track("edu-trial-dialog-signed-up",{category:"signup",action:"eduTrialSignupSubmit"}),function(){var Et={email:M.input.email,url:ke(),edu:0,title:"Sign up with your school account",description:"Great! Now just sign up and you're done creating your school account!",eduHistory:M.input};$.close(),M.signupCallback(Et)}()):($.close(),o.showInfoDialog({title:"Oops, you have already registered...",message:"Looks like you already have a Soundtrap account. Want to convert to an educational trial? No problem, just log in as usual and we'll take it from there.",options:["CLOSE","LOGIN"]}).then(function(X){1==X&&M.proceedToLogin()}))})};var W=function(){return isNaN(parseInt(M.input.students))?M.formEdu.$setValidity("students",!1):M.formEdu.$setValidity("students",!0),M.checkEmail(),!(M.emailFormatError||M.lausdEmailError||M.formEdu.$invalid||!M.input.terms)},me=function(){s.location.href=ke()},ke=function(){return n.buildUrl("/edutrial/",{fn:M.input.firstName,ln:M.input.lastName,sc:M.input.schoolName,se:parseInt(M.input.students),pc:M.promoCode,cy:M.input.country||"",st:M.input.state||"",dt:M.input.district||"",oc:M.input.occupation||"",lt:M.input.licensetype||"",td:M.trialDays,rc:M.redirectToCheckout})},ct=function(){return n.buildUrl("/checkout/edu",{numberOfSeats:parseInt(M.input.students)})};M.checkLausdEmailError(M.input.email)}]);const xo=nr,ir="com.soundtrap.controllers.dialogs.infodialogctrl";angular.module(ir,[]).controller("InfoDialogCtrl",["$modalInstance","options",function(c,s){this.title=s.title||"",this.message=s.message||"",this.options=s.options||["Ok"],this.canOptNull=!(typeof s.canOptNull<"u")||s.canOptNull,this.defaultButton=typeof s.defaultButton<"u"?s.defaultButton:0,this.clicked=function(t){c.close(t)}}]);const Po=ir,rr="com.soundtrap.controllers.dialogs.joineduaccountoptionsdialogctrl";angular.module(rr,[]).controller("JoinEduAccountOptionsDialogCtrl",["$scope","TrackingService",function(c,s){const t=c.$close||{close:function(){}},n=c.$options||{},{domain:o}=n,a=this,h=T=>{const $=T.replace(" ","-").toLowerCase();s.track(`edu-join-account-options-dialog-${$}`,{category:"Join Edu Account Options Dialog",action:T,data:{domain:o}})};a.closeModal=()=>{h("Close Dialog"),t()},a.goToInvitePage=()=>{h("Go To Invite Page")},a.goToLmsArticle=()=>{h("Go To LMS Article")},a.goToHelpArticle=()=>{h("Go To Help Article")}}]);const Mo=rr,or="com.soundtrap.controllers.dialogs.logindialogctrl";angular.module(or,[Ne]).controller("LoginDialogCtrl",["$scope","$controller","$modalInstance","options","$log","Dialogs",function(c,s,t,n,o,a){c.dialog=this,s("LoginCtrl",{$scope:c});var h=c.dialog;h.setup(n),h.closeSelf=function(T){t.close(T)},t.result.catch(function(){n.onResultDefer&&n.onResultDefer.resolve(!1)})}]);const $o=or,ar="com.soundtrap.controllers.dialogs.loginfaildialogctrl";angular.module(ar,[Ne]).controller("LoginFailDialogCtrl",["$modalInstance","$translate","$http","options","Dialogs","TrackingService",function(c,s,t,n,o,a){const h=this;h.details=n.details,h.message=n.message,h.errorMessage="",h.successfulMessage="",h.isLoginBlocked=!(n.details.isOrphan||n.details.noOwner||n.details.pendingAgreementStatus||n.details.seatUnassigned||n.details.trialExpired||n.details.noOwner||n.details.tooManyConcurrentSessions),h.equals=(T,$)=>
1angular.equals(T,$),h.showLoginDialog=function(){c.close(),o.showLoginDialog()},h.displayRequestAccess=n.details.seatUnassigned&&!n.details.trialExpired,h.primaryButtonText=s.instant(h.displayRequestAccess&&!h.successfulMessage?"view.dialogs.login_fail.request_seat":"view.dialogs.ok"),h.primaryButtonClick=function(T){h.displayRequestAccess&&!h.successfulMessage?h.requestSeat(T):h.successfulMessage?h.close():h.showLoginDialog()},h.openFeedbackDialog=function(){c.close(),o.showFeedbackDialog()},h.close=function(){c.close()},h.requestSeat=function(T){a.track("request-seat",{category:"request_seat",action:"click"}),t.post("/api/educationalaccount/requestSeat1/",{email:T}).then(function(){h.successfulMessage=s.instant("view.dialogs.login_fail.request_seat_successful"),h.primaryButtonText=s.instant("view.dialogs.ok")}).catch(function($){h.errorMessage=s.instant("view.dialogs.login_fail.request_seat_failed")})}}]);const No=ar;let Lo=(()=>{class c{static{this.$inject=["Dialogs","$modalInstance"]}constructor(t,n){this.Dialogs=t,this.$modalInstance=n,this.mergePassword=""}close(){this.$modalInstance.close(null)}merge(t){this.$modalInstance.close(t)}}return c})();const Bo=m.module("com.soundtrap.controllers.mergeaccount",["Dialogs"]).controller("MergeAccountDialogCtrl",Lo).name,sr="com.soundtrap.controllers.dialogs.purposedialogctrl";let Go=(()=>{class c{static{this.$inject=["$modalInstance","options"]}constructor(t,n){this.$modalInstance=t,this.modalOptions=n,this.headerInclude=this.modalOptions.headerInclude||null,this.bodyInclude=this.modalOptions.bodyInclude||null,this.footerInclude=this.modalOptions.footerInclude||null,this.icon=this.modalOptions.icon||"",this.list=this.modalOptions.list||[],this.message=this.modalOptions.message||"",this.options=this.modalOptions.options||[],this.title=this.modalOptions.title||"",this.closeIcon=this.modalOptions.closeIcon||"",this.isIconAnImage=this.icon.split("/").length>1,this.extraOptions=this.modalOptions.extraOptions||null,this.modalInstance=this.$modalInstance,this.canOptNull=!(typeof this.modalOptions.canOptNull<"u")||this.modalOptions.canOptNull,this.defaultButton=typeof this.modalOptions.defaultButton<"u"?this.modalOptions.defaultButton:0,this.updateIcon=o=>{this.icon=o||"",this.isIconAnImage=this.icon.split("/").length>1},this.updateTitle=o=>this.title=o,this.updateTitleAndIcon=(o,a)=>this.updateTitle(o)&&this.updateIcon(a),this.clicked=o=>{this.$modalInstance.close(o)}}}return c})();m.module(sr,[]).controller("PurposeDialogCtrl",Go);const jo=sr;let Ci=class{constructor(){this.memberships=[]}save(){const{EducationalAccountService:s}=this.dependencies;if(this.hide(),1===this.memberships.length){const t=this.membersAsIdArray;if(!this.hasChanged())return;if(1===this.memberships.length){if(this.newFirstName.length>50||this.newLastName.length>50)return;s.updateMembers(t,this.selectedRole).then(function(){return s.getMember(t[0])}).then(function(n){cn.updateMembership(n.data)}).catch(function(n){})}}else this.memberships.length&&s.updateMembers(this.membersAsIdArray).then(function(){cn.hasUpdatedMemberships=!0}).catch(function(t){})}hide(){const{$modalInstance:s}=this.dependencies;return s.close()}get membersAsIdArray(){return this.memberships.map(s=>s.user.id)}};Ci=(0,g.Cg)([le({name:"RemoveUsersDialogCtrl",dependencies:["$scope",Oe],wrappedModal:!0})],Ci);const Vo=Ci;let Ei=class{constructor(){const{AdminPanelMediatorService:s,$scope:t,options:n}=this.dependencies;this.memberships=[],this.roles=[],this.adminPanelMediator=s,this.adminPanelMediator.onInit.then(a=>this.roles=this.adminPanelMediator.account.roles),n.memberships?this.memberships=n.memberships:void 0!==n.membership?this.memberships.push(s.getMemberById(n.membership.user.id)):s.getSelectedMembers().length&&(this.memberships=s.getSelectedMembers());const o=this.memberships[0]||{user:{},role:{}};this.newFirstName=o.user.firstName,this.newLastName=o.user.lastName,this.selectedRole=void 0!==o.role?o.role:"",this.password="",t.$watch("this.selectedRole")}save(){const{AdminPanelMediatorService:s,EducationalAccountService:t}=this.dependencies;if(this.hide(),1===this.memberships.length){const n=this.membersAsIdArray;if(!this.hasChanged())return;if(1===this.memberships.length){if(this.newFirstName.length>50||this.newLastName.length>50)return;t.updateMembers(n,this.selectedRole&&this.selectedRole.id,null,this.newFirstName,this.newLastName,this.password).then(function(){return t.getMember(n[0])}).then(function(o){s.updateMembership(o.data)}).catch(function(o){})}}else this.memberships.length&&t.updateMembers(this.membersAsIdArray,this.selectedRole&&this.selectedRole.id).then(function(){s.hasUpdatedMemberships=!0}
1).catch(function(n){})}hide(){const{$modalInstance:s}=this.dependencies;return s.close()}get membersAsIdArray(){return this.memberships.map(s=>s.user.id)}hasChanged(){const s=this.memberships[0]||{user:{},role:{}};return!(this.newFirstName===s.user.firstName&&this.newLastName===s.user.lastName&&this.selectedRole===s.role.id&&""===this.password)}};Ei=(0,g.Cg)([le({name:"RoleAssignmentDialogCtrl",dependencies:["$scope",Oe,cn],wrappedModal:!0})],Ei);const zo=Ei,lr="com.soundtrap.services.captchaservice";angular.module(lr,[]).factory("CaptchaService",["$q","$window","$document","conf","localeService",function(c,s,t,n,o){var $,a={},h=c.defer(),T=h.promise;s.recaptchaApiLoaded=function(){h.resolve($=s.grecaptcha)},a.execute=function(j){$.execute(j)},a.reset=function(j){$.reset(j)},a.attachRecaptcha=function(j,te){return T.then(()=>H(j,te))};var H=function(j,te){var re=document.getElementById(j);return!(!re||re.hasChildNodes())&&$.render(re,{sitekey:n.recaptchaSitekey,size:"invisible",callback:te})};if(angular.isDefined(s.grecaptcha))s.recaptchaApiLoaded();else{var M=s.document.createElement("script");M.async=!0,M.defer=!0,M.src="https://www.google.com/recaptcha/api.js?onload=recaptchaApiLoaded&render=explicit&hl="+encodeURIComponent(o.currentLocale),t.find("body").append(M)}return a}]);const cr=lr,ur="com.soundtrap.controllers.dialogs.signupdialogctrl";function dr(){return Math.round(1e11*Math.random())}function fr(c){return("0"+c).slice(-2)}angular.module(ur,[ze,"Util",Ne,f,pi,di,cr,sn,mi,hi]).controller("SignupDialogCtrl",["$scope","$window","$timeout","Spinner","Util","Dialogs","UserService","PotentiallyEduUserService","SignupService","TrackingService","Tracker","$element","CaptchaService","ProjectService",function(c,s,t,n,o,a,h,T,$,H,M,j,te,re){var W=this,me=o.getQueryParams();const ke=()=>s.location.pathname,ct="Landing page flow";var Et=c.dialog&&c.dialog.modalInstance||{close:function(){}},Ct=c.dialog&&c.dialog.extraOptions||{};n.start(),W.loaded=!1,W.email=Ct.email||me.email||"",W.customMessage=Ct.customMessage||"",W.onResultDefer=Ct.onResultDefer,W.password="",W.birthDate={year:void 0,month:void 0,day:void 0},W.countryCode="";let X="";function St(Mt){n.start(),h.signup(Mt).then(function(Ht){W.errorMessage="",qt({type:"credentials"})}).catch(function(Ht){W.errorMessage="";const Nt=Ht.data||{};switch(Nt&&Nt.name||""){case"ApiValidationException":Nt&&Nt.errors&&Nt.errors.birthDateTooLow&&(sessionStorage.setItem("birthDate",Mt.birthDate),sessionStorage.setItem("countryCode",W.countryCode),sessionStorage.setItem("birthDateTooLow",!0),H.track("sign-up-too-young-error",{category:ct,action:"Error: User too young",label:ke()}),s.location.href="/signup/sorry/"),H.track("sign-up-failed",{category:ct,action:"Error: E-mail login failed",label:ke(),data:Nt.errors}),W.errorMessage=Nt.errors;const gn=Object.keys(W.errorMessage);gn.length&&document.querySelector(`#l_${gn[0]}`)&&document.querySelector(`#l_${gn[0]}`).focus();break;case"AcceptTermsException":!function Ot(){H.track("sign-up-edu-terms-not-accepted",{category:ct,action:"Error: User didn't accept signup terms",label:ke()}),a.showInfoDialog({message:"How old are you?",options:["Under 13","13 or older"],defaultButton:1}).then(function(Mt){1==Mt&&(W.acceptTerms=!0,t(function(){W.signupEmailPassword()}))})}();break;case"AccountDisabledException":!function bt(Mt,Ht){on(Mt,Ht,"Error: User account disabled")}(Nt.message,Nt.details);break;case"SyncAccountNonAuthorizedException":!function Vt(Mt,Ht){on(Mt,Ht,"Error: Sync account not authorized")}(Nt.message,Nt.details);break;default:o.unexpectedError(Ht)}}).finally(function(){n.stop()})}function on(Mt,Ht,Nt){H.track("login-failed-dialog-shown",{category:ct,action:Nt,label:ke()}),Et.close(),a.showLoginFailDialog({message:Mt,details:Ht}),W.onResultDefer&&W.onResultDefer.resolve(!1)}""!==Ct.url&&(X=Ct.url||me.url||""),W.url=o.sanitizeUrl(X),W.errorMessage={},W.edu=Ct.edu||!!me.edu||!1,W.acceptTerms=!1,W.captchaCode="",W.title=Ct.title||"Sign up!",W.description=Ct.description||"",W.captchaId=dr(),W.recaptchaId=!1,W.eduCode=me.eduCode||Ct.eduCode||"",W.isEduCodeLocked=!!W.eduCode,W.eduTrialSignup=c.eduTrialSignup,W.firstName=Ct.firstName||me.firstName||"",W.lastName=Ct.lastName||me.lastName||"",W.hideNameField=W.firstName||W.lastName,W.occupation=Ct.occupation||me.occupation,W.licenseType=Ct.licenseType||me.licensetype,W.countries=[],h.getCountries().then(Mt=>{W.countries=Mt.data}),W.regenerateCaptcha=function(){W.captchaId=dr()},W.isEmailFormShown=!1,W.onShowEmail=function(){H.track("sign-up-with-email-clicked",{c
1ategory:ct,action:"Click Sign up with email",label:ke()}),j.closest(".modal").addClass("show-email")},W.submit=function(){W.errorMessage={},!1!==W.recaptchaId?te.execute(W.recaptchaId):W.signupEmailPassword()},W.signupEmailPassword=function(Mt){if(!1!==W.recaptchaId&&te.reset(W.recaptchaId),n.isVisible())return;if(""==W.email)return W.errorMessage.email="Please enter your email.",void H.track("sign-up-no-email-error",{category:ct,action:"Error: No email address entered",label:ke()});if(""==W.password)return W.errorMessage.password="Please enter your password.",void H.track("sign-up-no-password-error",{category:ct,action:"Error: No password entered",label:ke()});const Ht=sessionStorage.getItem("birthDateTooLow");if(!W.isEduSignup()&&Ht)return H.track("sign-up-too-young-error",{category:ct,action:"Error: User too young",label:ke()}),void(s.location.href="/signup/sorry/");if(W.formSignup.$invalid)return;const Nt=W.birthDate,Bn=W.isEduSignup()?"":`${Nt.year}-${fr(Nt.month+1)}-${fr(Nt.day)}`,Sn={email:W.email,password:W.password,captchaCode:Mt||W.captchaCode,url:W.url,edu:W.edu,eduCode:W.eduCode,acceptTerms:W.acceptTerms,eduTrialSignup:W.eduTrialSignup,countryCode:W.countryCode,birthDate:Bn,forceAgeCheck:!W.isEduSignup(),firstName:W.firstName,lastName:W.lastName,occupation:W.occupation,licenseType:W.licenseType};W.isEduSignup()?St(Sn):T.verifyShouldCreateConsumerAccount(Sn.email).then(gn=>{gn&&St(Sn)})},W.goToLogin=function(){Et.close(),a.showLoginDialog({extraOptions:{url:W.url,edu:W.edu,eduCode:W.eduCode,onResultDefer:W.onResultDefer}})};const qt=function(){var Mt=(0,Rn.A)(function*(Ht={type:""}){Oi("age-check-passed",self.countryCode,(0,Bi.QO)(self.birthDate));const Nt=Ht.type;Et.close();const Bn=h.getUserType(W.edu||W.eduTrialSignup,ke());if(yield $.trackNewSignup({type:Nt},Bn),W.onResultDefer)W.onResultDefer.resolve(!0);else{if(n.start(),""===W.url||"/"===W.url){const gn=yield re.getMyInvites();W.url=gn.length>0?gn[0].project.openUrl:"/home"}"/musicmakers"===W.url&&(W.url="/home");let Sn=o.sanitizeUrl(W.url)||"/home";Sn=o.addUtmParametersToUrl(Sn,me),s.location.href=Sn}});return function(){return Mt.apply(this,arguments)}}();W.loaded=!0,n.stop(),te.attachRecaptcha("grecaptcha-placeholder",Mt=>W.signupEmailPassword(Mt)).then(Mt=>W.recaptchaId=Mt),W.isEduSignup=()=>W.edu||W.eduTrialSignup;const Oi=(Mt,Ht,Nt)=>{M.trackPage("/signup",Mt),H.track("sign-up-age-check",{category:"Age check",action:Mt,label:Ht,value:Nt,noninteraction:!0})}}]);const Yo=ur,pr="com.soundtrap.controllers.dialogs.signupfooterdialogctrl";angular.module(pr,[f]).controller("SignupFooterDialogCtrl",["UserService",function(c){var s=this;s.ipCountry=void 0,c.getIpCountry().then(t=>{s.ipCountry=t.data})}]);const Jo=pr,hr="com.soundtrap.controllers.dialogs.utility";angular.module(hr,["ngSanitize"]).controller("UtilityDialogCtrl",["$sce","$modalInstance","options","$q","BugApi",function(c,s,t,n,o){function a(h,T){const M=[/<[^>]+>/g,/&(#(\d+|x[a-z0-9]+)|\w+);/gi].reduce((j,te)=>j.concat(h.match(te)||[]),[]);M&&M.length&&o.reportBug("Suspected use of HTML in UtilityDialog",`Found ${M.map(j=>"'"+j+"'").join(", ")} in input string: '${h}'. `+(T&&!angular.isObject(T)?`Title was '${T}'. `:"")+(t.class?`Css class was: ${t.class}`:""))}this.headerInclude=t.headerInclude||null,this.bodyInclude=t.bodyInclude||null,this.footerInclude=t.footerInclude||null,this.htmlInclude=c.trustAsHtml(t.htmlInclude)||null,this.icon=t.icon||null,this.closeIcon=t.closeIcon||null,angular.isObject(t.title)&&t.title.then?(this.title="",t.title.then(h=>this.title=h)):this.title=t.title||"",this.list=t.list||[],this.list.forEach(h=>a(h,this.title)),angular.isObject(t.message)&&t.message.then?(this.message="",t.message.then(h=>{this.message=h,a(this.message,this.title)})):(this.message=t.message||"",a(this.message,this.title)),angular.isArray(t.options)&&t.options.length>0&&angular.isObject(t.options[0])&&t.options[0].then?(this.options=[],n.all(t.options).then(h=>{this.options=h})):this.options=t.options||[],this.style=t.style||null,this.extraOptions=t.extraOptions||null,this.modalInstance=s,this.canOptNull=!(typeof t.canOptNull<"u")||t.canOptNull,this.defaultButton=typeof t.defaultButton<"u"?t.defaultButton:0,this.extraFooterInclude=t.extraFooterInclude||"",this.clicked=function(h){s.close(h)}}]);const qo=hr,gr="com.soundtrap.services.draftservice";angular.module(gr,["Util",ue]).factory("DraftService",["Util","CurrentUser",function(c,s){var t={},n=c.localStorage,o="DraftStatus-",a=o+s.id;return t.update=function(h,T){T=T||"UNSAVED PROJECT",angular.forEach(n.keys(),function($){-1!==$.indexOf(o)&&n.remove($)}),h?(t.draft={exists:!0,date:(new Date).getTime(),title:T},n.set(a,t.draft)):t.remove()},t.remove=function(){n.remove(a),t.draft={}},t.draft=n.get(a)||{},t}]);const Zo=gr,Ai="EducationalAccountIdInterceptor";let ea=(()=>{class c{static{this.$inject=[L.A]}constructor(t){this.globalConfig=t,this.request=n=>{const o=this.globalConfig.educationalAccountId,a=-1!==n.url.indexOf("/educationalaccount/")||-1!==n.url.indexOf("/group/");return n.params&&n.params.overrideEduInterceptor?(n.params.overrideEduInterceptor=null,delete n.params.overrideEduInterceptor,n):(o&&a&&(n.params=n.params?n.params:{accountId:o,overrideEduInterceptor:null},n.params.accountId=o),n)}}}return c})();m.module(Ai,[]).service(Ai,ea);const ta=Ai;var na=b(81793),ia=b(96892),ra=b(96358);const Qn="SubscriptionContextInterceptor";let oa=(()=>{class c{static{this.$inject=["$q","SubscriptionContextService"]}constructor(t,n){this.$q=t,this.subscriptionContext=n,this.request=o=>(0,ra.I)(this.pathOf(o.url))?this.$q.when((0,Q._)(this.subscriptionContext.contextHeader()).then(a=>(a&&(o.headers={...o.headers,[ia.Gr]:a}),o))):o}pathOf(t){return new URL(t,location.origin).pathname}}return c})();m.module(Qn,[]).service(Qn,oa).config(["$httpProvider",c=>{na.c.production||c.interceptors.push(Qn)}]);const aa=Qn;var sa=b(10920);const mr="com.soundtrap.services.exceptionhandler";angular.module(mr,[wi]).factory("$exceptionHandler",["$log","$window","BugApi",function(c,s,t){var n=0,o=sa.JF({showDialog:!1});return function(h,T){c.error.apply(c,arguments);try{o.handleError(h)}catch(M){t.reportBug(`Sentry error handler failed: ${M.message}`,M.stack)}try{if(++n<=3){var $=""+h;null!=T&&($+=" "+T);var H=""+h.stack;if(function a(h,T){const $=h+" "+T;return["&affid=","$rootScope/inprog?p0=%24digest","Error: [$rootScope:inprog] $digest already in progress","Error: [$rootScope:inprog] $apply already in progress"].some(M=>$.includes(M))}($,H))return;t.reportBug($,H)}}catch{}}}]);const ca=mr,vr="com.soundtrap.services.windowspushservice";let ua=(()=>{class c{static{this.$inject=["$http",ue,"Util"]}constructor(t,n,o){this.$http=t,this.CurrentUser=n,this.Util=o,this._debug=(a,...h)=>{console.log(a,...h)},this.onNotificationReceived=a=>{const h=Windows.Networking.PushNotifications;if(a.notificationType===h.PushNotificationType.toast)try{const H=(new DOMParser).parseFromString(a.toastNotification.content.getXml(),"text/xml").getElementsByTagName("toast")[0].getAttribute("launch"),M=JSON.parse(H??"")||{};this._debug("launchData",M),M.userId!==this.CurrentUser.id&&(a.cancel=!0)}catch(T){this._debug("error",T)}else this._debug("onNotificationReceived",a.notificationType)},this.isSupported=()=>this.Util.Browser.isWindowsApp,this.registerChannel=()=>{const a=Windows.Networking.PushNotifications.PushNotificationChannelManager.createPushNotificationChannelForApplicationAsync(),h=(new Date).getTime();return a.then(T=>{const $=(new Date).getTime();this._debug("got channel in "+($-h)+" ms."),T.addEventListener("pushnotificationreceived",this.onNotificationReceived,!1);const H=this.Util.localStorage.get("winPushUserId",0);
1(this.Util.localStorage.get("winPushChannel","")!==T.uri||H!==this.CurrentUser.id)&&this.registerToServer(T).then(()=>{this._debug("Registered channel"),this.Util.localStorage.set("winPushChannel",T.uri),this.Util.localStorage.set("winPushUserId",this.CurrentUser.id)})},T=>{this._debug("Failed registering channel",T)})},this.registerToServer=a=>{let h=this.CurrentUser.id+"-"+Math.floor(4294967296*(1+Math.random())).toString(16);return h=this.Util.localStorage.get("winPushUUID",h),this.Util.localStorage.set("winPushUUID",h),this.$http.post("/api/pushnotification/createWindowsPushSubscription1/",{uri:a.uri,uuid:h})},this.init=()=>{if(this.isSupported()&&this.CurrentUser.loggedIn)try{this.registerChannel()}catch(a){console.log("Failed registering channel",a)}}}}return c})();m.module(vr,[ue,"Util"]).service("WindowsPushService",ua);const da=vr,yr="com.soundtrap.localedate";angular.module(yr,[S()]).service("localeService",["$translate","UserService","amMoment","moment",function fa(c,s,t,n){return{get currentLocale(){return n.locale()},set currentLocale(o){let a=this.langToLocale(o);n.locale(a),t.changeLocale(a),this._listeners.forEach(h=>h.$emit("localeUpdated",a))},langToLocale(o){let a=2==(o=o.toLowerCase()).split("-").length?o.split("-"):o.split("_");return 2==a.length?a[0]:o},_listeners:[]}}]);const ga=yr;let Zn=null;const br="TOAST.MESSAGE",va=fe({name:"ToastServiceLegacy",type:"factory",dependencies:[],sendMessage(c){if(!Zn||!Zn.$broadcast)throw new Error("Toast not linked to service");Zn.$broadcast(br,c)}});var Tt=b(37915),ya=b(16571),ba=b(41897),ei=b(14519);const Sa=()=>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));let Ca=(()=>{class c{constructor(t,n,o){this.document=n,this.window=o,this.renderer=t.createRenderer(null,null)}init(){return new ya.c(t=>{const n=this.renderer.createElement("script");n.src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",n.onload=()=>{this.window.AppleID.auth.init({clientId:"com.soundtrap.web",scope:"name email",redirectURI:this.window.location.origin,state:"login",nonce:this.generateNonce(),usePopup:!0}),t.next(this.window.AppleID)},this.renderer.appendChild(this.document.body,n)})}generateNonce(){return Array(32).fill("").map(Sa).join("")}authenticate(){return this.init().pipe((0,mn.Z)(t=>t.auth.signIn()),(0,ei.s)(1))}static{this.\u0275fac=function(n){return new(n||c)(Tt.KVO(l._9s),Tt.KVO(Tt.qQL),Tt.KVO(ba.jf))}}static{this.\u0275prov=Tt.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();var Ea=b(28269),Aa=b(60371),Ta=b(62242),Da=b(25520),Ia=b(94524),Ti=b(53135),_a=b(4242),Di=b(78407),xa=b(54487),ka=b(52395),Pa=b(49902);const Sr="com.soundtrap.downgraded.services";x().module(Sr,[]).factory("ProfileService",(0,i.f$)(Xt.p)).factory("TranslationService",(0,i.f$)(Da.L)).factory("DialogService",(0,i.f$)(Ti.o3)).factory("ToastService",(0,i.f$)(Di.f)).factory("LocationService",(0,i.f$)(Ta.N)).factory("FeatureFlagService",(0,i.f$)(Aa.y)).factory("EduSalesRepService",(0,i.f$)(Ea.d)).factory("AppleAuthService",(0,i.f$)(Ca)).factory("TutorialsService",(0,i.f$)(Ia.h)).factory("NgrxStoreService",(0,i.f$)(tn.il)).factory("TranslationLoaderService",(0,i.f$)(xa.k2)).run(["TranslationLoaderServiceAsyncProvider","TranslationLoaderService",function(c,s){c.resolve(s)}]).factory("TrackingService",(0,i.f$)(Jt.b)).factory("AdminPanelBridgeService",(0,i.f$)(_a.s)).factory("GoogleService",(0,i.f$)(ka.d)).factory("SubscriptionContextService",(0,i.f$)(Pa.Q));const Oa=Sr,Ma=fe({name:"memberAvatar",restrict:"E",template:'\n <div class="avatar-wrapper">\n <img ng-if="!avatarController.isEDUPlaceholder" ng-src="{{ img }}" alt="{{ member.fullName }}" />\n <div class="avatar-placeholder" ng-if="avatarController.isEDUPlaceholder" ng-style="{ \'background-color\': avatarController.color }">{{ avatarController.initials }}</div>\n <div ng-transclude></div>\n </div>\n ',transclude:!0,scope:{img:"@",member:"=",role:"=",tooltip:"@"},controllerAs:"avatarController",link(c,s,t){c.tooltip&&s.find(".avatar-wrapper").attr("data-tooltip",c.tooltip)},controller:["$scope",function(c){const{firstName:s,lastName:t,fullName:n,educational:o}=c.member,a=c.role&&c.role.name,h=c.img,T="abcdefghijklmnopqrstuvwxyz".split(""),$=2*T.length,j="teacher"===a||"owner"===a?["#c028aa"]:["#512a98","#6639b7","#8453db"];this.isEDUPlaceholder=-1!==h.indexOf("placeholder")&&".svg"===h.slice(-4)&&o,this.sanitizeString=te=>te&&te.replace(/[\W0-9_-]/g,""),this.getInitials=(te,re,W)=>
1{let me=this.sanitizeString(te),ke=this.sanitizeString(re),ct=this.sanitizeString(W);return me&&me.length&&ke&&ke.length?`${me.slice(0,1)}${ke.slice(0,1)}`.toLowerCase():me&&me.length>1?`${me.slice(0,2)}`.toLowerCase():ke&&ke.length>1?`${ke.slice(0,2)}`.toLowerCase():ct&&ct.length>1?`${ct.slice(0,1)}${ct.slice(-1)}`.toLowerCase():"??"},this.getPositionForInitials=te=>"??"===te||te.length<2?0:T.indexOf(te.slice(0,1))+T.indexOf(te.slice(-1)),this.getColor=te=>{const re=this.getPositionForInitials(te),me=Math.ceil(re*(j.length/$))-1;return j[me]},this.initials=this.getInitials(s,t,n),this.color=this.getColor(this.initials)}]}),Ra=fe({name:"eduInviteCodeDisplay",dependencies:[Oe],restrict:"E",template:"<copy-text>{{code}}</copy-text>",scope:{groupId:"="},controller:["$scope",Oe,function(c,s){function t(n){s.getInviteCode(n).then(function(o){null!=o&&(c.code=o.code)})}c.code="",c.$watch("groupId",function(n,o){n!==o&&t(n)}),c.groupId&&t(c.groupId)}]}),Cr="com.soundtrap.directives.elastic";angular.module(Cr,[]).directive("elastic",["$timeout","$rootScope",function(c,s){return{restrict:"A",link:function(t,n,o){var a=typeof o.elasticMinHeight<"u"?parseInt(o.elasticMinHeight):52,h=typeof o.elasticMinHeight<"u"?parseInt(o.elasticMaxHeight):250,T=typeof o.elasticPadding<"u"?parseInt(o.elasticPadding):20,$=function(){var H=n[0].style.height;n[0].style.height="1px";var M=n[0].scrollHeight+T;M=Math.max(a,M);var j=(M=Math.min(h,M))+"px";H!=j&&c(function(){s.$broadcast("customreflow")},0),n[0].style.height=j};n.on("blur keyup change",$),c($,0)}}}]);const Ua=Cr,Er="com.soundtrap.directives.focusme";angular.module(Er,[]).directive("focusMe",["$timeout","$parse",function(c,s){return{link:function(t,n,o){var a=s(o.focusMe);""!=a?t.$watch(a,function(h,T){!1!==h&&0!==h&&void 0!==h&&c(function(){n[0].focus(),"focusMeSelectAll"in o&&n[0].setSelectionRange(0,n[0].value.length)},200)}):c(function(){n[0].focus(),"focusMeSelectAll"in o&&n[0].setSelectionRange(0,n[0].value.length)},200)}}}]);const Fa=Er,La=fe({name:"itemListing",restrict:"EA",scope:{items:"=",limit:"@",key:"@",placeholder:"@"},template:'\n <canvas aria-hidden="true" class="measure-text"></canvas>\n <div ng-if="placeholder && !allText.length">{{ placeholder }}</div>\n <div class="clipped-items" ng-if="allText.length">
1\n <span class="clipped-items-inline">{{ allText }}</span>\n <span ng-if="hiddenCount && allText.length && limit && limit.length" class="hidden-count-inline">+{{hiddenCount}}</span>\n </div>\n <div\n class="count-hidden"\n ng-if="hiddenCount && allText.length && !limit"\n tooltip="{{ hiddenItemsText }}"\n tooltip-placement="bottom"\n tooltip-class="st-style-2016-tooltip">+{{hiddenCount}}</div>\n <st-tooltip text="{{ allText }}"></st-tooltip>\n ',link(c,s,t){const n=(a,h)=>a&&h?h.split(".").reduce(($,H)=>{if($&&H)return $[H]},a):void 0,o=()=>{const T=parseInt(c.limit)>=0?parseInt(c.limit):void 0,$=(c.items||[]).map(M=>n(M,c.key)).slice(0,T).join(", ");let H=0;if(T&&$.length)H=Math.max(c.items.length-c.limit,0);else if($.length){const M=s.css("font-size"),j=s.css("font-family"),re=s.find(".measure-text").get(0).getContext("2d");re.font=`${M} ${j}`;const W=s.parent().width()-20,ke=re.measureText($).width,Ct=Math.floor(W/(ke/$.length))-2,X=$.slice(0,Ct),St=X.split(",").length,Ot=X.length,Vt=$.split(", ").slice(0,St).join(", ").length<=Ot?0:1;H=c.items.length-St+Vt}c.hiddenCount=H,c.allText=$,c.hiddenItemsText=(c.items||[]).map(M=>n(M,c.key)).slice(T,void 0).join(", ")};c.$watch(()=>c.items,(a,h)=>a!==h&&o()),setTimeout(()=>{o()},100)}}),Ba=b.p+"loginBlockResponse.15ade7e5.html",Ar="com.soundtrap.directives.loginblockresponse";angular.module(Ar,[]).directive("loginBlockResponse",[function(){return{restrict:"E",templateUrl:Ba,scope:{details:"="},controller:["$scope",function(c){if("string"==typeof c.details){var s={};c.details.split(",").forEach(function(t){s[t]=!0}),c.details=s}}]}}]);const ja=Ar,Tr="com.soundtrap.directives.ngenter";angular.module(Tr,[]).directive("ngEnter",function(){return{link:function(c,s,t){s.bind("keypress",function(n){(13===n.which||10===n.which)&&(s.blur(),c.$apply(function(){c.$eval(t.ngEnter)}),n.preventDefault())})}}});const za=Tr,Dr={ADMINISTER_GROUP:"h",MESSAGING:"i",VIDEO_CHAT:"l",PAYMENTS:"m",SUPPRESS_NAME_CHANGE:"n",SUPERVISE_PROJECTS:"o",EDIT_PROFILE:"e"},Ha=Object.keys(Dr).map(c=>Dr[c]);function Wa(c,s,t,n){return s.all([c.getAccount(),s.all(Object.keys(this.roles).map(o=>this.roles[o])),n.refreshCurrentUser()]).then(o=>{const[a,h,T]=o,$=T.educationalAccountMembership?T.educationalAccountMembership.role.attributeMask.split(""):[],H=a.data,M=h.map((te,re)=>Object.assign({translated:te,name:Object.keys(this.roles)[re]})),j=te=>{const re=M.filter(W=>W.name===te.name);return re&&re[0]&&re[0].translated};return this.roleOptions=H.roles.map(te=>Object.assign(te,{translated:j(te)||te.name})).filter(te=>{const re=te.attributeMask.split("");return re.filter(W=>-1===Ha.indexOf(W)||-1!==$.indexOf(W)).length===re.length}),t.excludeOptions&&t.excludeOptions.length&&(this.roleOptions=this.roleOptions.filter(te=>!t.excludeOptions.includes(te.name))),this.roleOptions.reverse()}).then(o=>{const a=this.roleOptions.filter(h=>h.defaultRole)[0];a?this.role=a:this.roleOptions.length>0&&(this.role=this.roleOptions[0]),t.role&&(t.role=this.role)})}function Ya(c){c.role&&(c.role=this.role)}const Xa=fe({name:"roleList",dependencies:["$q",Oe,wt(),ue],restrict:"EA",template:'\n <select name="roles" class="form-control roles-list"\n aria-label="{{ \'view.eduadmin.directory.edit.changerole\' | translate }}"\n ng-options="role.translated for role in roleCtrl.roleOptions track by role.id"\n ng-model="roleCtrl.role"\n ng-change="roleCtrl.onChange()"\n ng-disabled="roleCtrl.disabled">\n </select>\n ',scope:{role:"=",excludeOptions:"=?",disabled:"@"},controllerAs:"roleCtrl",controller:[Oe,ue,"$q","$translate","$scope",function(c,s,t,n,o){this.roles={owner:n("view.profile.edu.groups.details.owner"),teacher:n("view.profile.edu.groups.details.teacher"),student:n("view.profile.edu.groups.details.student")},this.roleWeights=["student","teacher","owner"],this.roleOptions=[],this.disabled="true"===o.disabled,this.onChange=Ya.bind(this,o),Wa.call(this,c,t,o,s)}]});const ti={"google-classroom":{img:b.p+"img-logo-gclassroom.f234a0c5.png",bg:"#1d6f47"},csv:{img:b.p+"img-logo-csv.b2fbacee.png",bg:"#748840"},gsuite:{img:b.p+"img-logo-gsuite.2a991fd0.png",bg:"#e6e8ec"},google:{img:b.p+"img-logo-google.c0fb29af.png",bg:"#fff"},schoology:{img:b(1146).A,bg:"#333"},canvas:{img:b.p+"img-logo-canvas.9648f822.png",bg:"#e63c2e"}},is=c=>"glyphicons-"===c.slice(0,11)?c:`glyphicons-${c}`,rs=fe({name:"styleguideButton",dependencies:[wt()],scope:{type:"@",size:"@",version:"@",opt:"@"},restrict:"E",transclude:!0,template:'<button class="btn styleguide-button" ng-class="styleguideButton.buttonClass" ng-transclude></button>',controllerAs:"styleguideButton",controller:["$scope",function(c){this.buttonClass=(c=>{const{type:s,version:t,size:n,opt:o}=c;return["button",s,t,n&&n.toUpperCase(),o].reduce((a,h)=>h?`${a}_${h}`:a)})(c)}]}),os=fe({name:"styleguideButtonIcon",dependencies:[],scope:{name:"@"},restrict:"E",transclude:!0,template:'\n <i ng-class="{{ buttonIcon.iconClass }}" ng-style="{{ buttonIcon.iconStyle }}">\n <img ng-if="buttonIcon.iconLink.src" ng-src="{{ buttonIcon.iconLink.src }}
1" ng-srcset="{{ buttonIcon.iconLink.srcset }}"/>\n </i>\n ',controllerAs:"buttonIcon",controller:["$scope",function(c){this.iconLink=(c=>{const s=c?c.img:"",n=["2x","3x"].map(o=>`${s.split(".").slice(0,-1)}@${o}.${s.split(".").slice(-1)} ${o}`).join(",");return{src:s,srcset:n}})(ti[c.name]),this.iconBackground=ti[c.name]&&ti[c.name].bg,this.iconClass=["styleguide-button-icon"],ti[c.name]?this.iconStyle={backgroundColor:this.iconBackground}:this.iconClass=this.iconClass.concat([is(c.name),"glyphicons","icon"])}]}),as=angular.module("com.soundtrap.styleguide.button",[wt(),rs,os]).name,Ir="com.soundtrap.styleguide.close";angular.module(Ir,[]).directive("styleguideCloseWrapper",()=>({scope:{remember:"@",id:"@"},restrict:"E",transclude:!0,template:'<div ng-transclude ng-show="closeWrapper.isShown"></div>',controllerAs:"closeWrapper",controller:["$scope",function(c){const{id:s,remember:t}=c,n="true"===t;function a(h){return ST.util.localStorage.get(h)}c.safeApply=function(h){var T=this.$root.$$phase;"$apply"==T||"$digest"==T?h&&"function"==typeof h&&h():this.$apply(h)},this.isShown=!0,n&&(this.isShown=!("false"===a(s)||!1===a(s))),this.doClose=()=>{c.safeApply(()=>{this.isShown=!1}),n&&function o(h){ST.util.localStorage.set(h,!1)}(s)}}]})).directive("styleguideClose",()=>({require:"^^styleguideCloseWrapper",restrict:"E",template:'\n <div class="close-icon" ng-click="doClose()"></div>\n ',link:function(c,s,t,n){c.doClose=n.doClose}}));const ss=Ir,_r="com.soundtrap.styleguide.notifier";angular.module(_r,[]).directive("styleguideNotifier",()=>({scope:{title:"@",id:"@"},restrict:"E",transclude:!0,template:'\n <styleguide-close-wrapper remember="true" id="{{ \'styleguide.notifier.close.\' + (id || title).toLowerCase()}}">\n <section class="styleguide-notifier">\n <div class="container">\n <styleguide-close></styleguide-close>\n <h3 ng-if="title" class="title head-l-margin">{{title}}</h3>\n <div ng-transclude></div>\n </div>\n </section>\n </styleguide-close-wrapper>'}));const ls=_r;var xr=angular.module("com.soundtrap.copy.text",[]);xr.directive("copyText",()=>({scope:{ariaLabelledBy:"=arialabelledby"},restrict:"E",transclude:!0,template:'\n <div class="tooltip top st-style-2016-tooltip text-center fade in" ng-class="tooltipClasses">\n <div class="tooltip-arrow"></div>\n <div role="region" aria-live="polite" class="tooltip-inner" ng-show="isSuccess">{{ \'views.dialogs.createassignment.copy.title.ok\' | translate }}</div>\n <div id="copy-tooltip" class="tooltip-inner" ng-hide="isSuccess">{{ \'views.dialogs.createassignment.copy.title.fail\' | translate }}</div>\n </div>\n <a href="" aria-labelledby="{{ariaLabelledBy}} copy-tooltip" ng-transclude ng-click="copyText()" class="copy-area"></a>\n ',link:function(c,s){c.isSuccess=!1,c.tooltipClasses="",c.copyText=()=>{!function t(n){var h,T,a=n;document.body.createTextRange?((h=document.body.createTextRange()).moveToElementText(a),h.select()):window.getSelection&&(T=window.getSelection(),(h=document.createRange()).selectNodeContents(a),T.removeAllRanges(),T.addRange(h))}(s.find(".copy-area").get(0));try{var o=document.execCommand("copy");c.tooltipClasses="is-shown",c.isSuccess=o,setTimeout(()=>c.$apply(a=>a.tooltipClasses=""),600)}catch{c.tooltipClasses="is-shown",c.isSuccess=!1,setTimeout(()=>c.$apply(h=>h.tooltipClasses=""),600)}}}}));const us=xr.name,ds=fe({name:"toastMessage",dependencies:[wt()],template:'\n <div class="toast" ng-class="{ \'visible\': toast.messages.length, \'hidden\': !toast.messages.length }" ng-repeat="message in toast.messages">\n <div class="icon success" ng-show="message.success"><span class="glyphicon glyphicon-ok"></span></div>\n <div class="icon failure" ng-hide="message.success"><span class="glyphicon glyphicon-remove"></span></div>\n <h6 class="title" ng-bind-html="message.title" ng-show="message.title"></h6>\n <p class="desc" ng-bind-html="message.description" ng-show="message.description"></p>\n </div>\n ',controllerAs:"toast",controller:["$timeout","$scope","$translate",function(c,s,t){(function ma(c){!c||!c.$broadcast||(Zn=c)})(s),this.messages=[],s.$on(br,(o,a)=>{const{title:h,description:T,success:$,timeout:H=4e3,translateDesc:M,translateTitle:j}=a,te=M?t(M):T,me={title:j?t(j):h,description:te,success:$,index:this.messages.length+new Date/1e3+10*Math.random(),timeout:H};this.messages.push(me),c(ke=>{const ct=this.messages.filter(Et=>Object.keys(me).filter(X=>me[X]===Et[X]).length!==Object.keys(Et).length);this.messages=ct},H)})}]}),Ln={ENTER_EVENTS:"focus touchstart mouseenter",LEAVE_EVENTS:"blur touchcancel mouseleave",TOOLTIP_DEFAULT_DELAY_OUT:300,TOOLTIP_DEFAULT_DIRECTION:"bottom"},fs=fe({name:"stTooltip",dependencies:[],scope:{direction:"@",text:"@"},link(c,s,t){const n=`st-tooltip-${de()}`,o=s[0].parentNode,a=c.direction||Ln.TOOLTIP_DEFAULT_DIRECTION;let h=null,T=null,$=null,H=null,M=null;const j=()=>{const X=o.getBoundingClientRect(),Ot=window.scrollY;return`top: ${X.top+document.body.scrollTop+Ot+o.offsetHeight}px; left: ${X.left+o.offsetWidth/2}px;`},te=()=>
1{T=(new Date).getTime(),M&&clearTimeout(M),h?h.classList.remove("leave"):(h&&h.parentNode&&h.parentNode.removeChild(h),h=document.createElement("div"),h.style=j(),h.innerText=c.text,h.className=`st-tooltip ${n} tooltip-${a}`,document.body.appendChild(h),H&&clearInterval(H),H=setInterval(()=>{(new Date).getTime()-T>500&&h.classList.add("enter");const St=j();h.style=St},1),W(h),me(h))},re=()=>{$=(new Date).getTime(),h&&(h.classList.add("leave"),h.classList.remove("enter"),M=setTimeout(()=>{h&&$-T>0&&(H&&clearInterval(H),h.parentNode&&h.parentNode.removeChild(h),ke(h),ct(h),h=null)},Ln.TOOLTIP_DEFAULT_DELAY_OUT))},W=X=>Ln.ENTER_EVENTS.split(" ").forEach(St=>X.addEventListener(St,te,{passive:!0})),me=X=>Ln.LEAVE_EVENTS.split(" ").forEach(St=>X.addEventListener(St,re,{passive:!0})),ke=X=>Ln.ENTER_EVENTS.split(" ").forEach(St=>X.removeEventListener(St,te)),ct=X=>Ln.LEAVE_EVENTS.split(" ").forEach(St=>X.removeEventListener(St,re));W(o),me(o),c.$on("$destroy",()=>{ke(o),ct(o),h&&re()})}}),ps=fe({name:"groupSelector",dependencies:[Oe,Re],restrict:"E",template:'\n <label for="select-group">{{\'view.edu.bulk_import_dialog.add_user.group\' | translate}}</label>\n <select name="groups" class="form-control group-list" id="select-group"\n ng-options="group.name for group in groupSelectorCtrl.groups track by group.id"\n ng-model="groupSelectorCtrl.chosenGroup"\n ng-change="groupSelectorCtrl.onChange()"\n ng-disabled="groupSelectorCtrl.disabled">\n </select>\n ',scope:{defaultname:"<",change:"=",disabled:"<"},controllerAs:"groupSelectorCtrl",controller:["$scope",Re,function(c,s){this.$onInit=()=>{const{defaultname:t,change:n,disabled:o}=c;this.groups=[],this.chosenGroup={},this.disabled=!!o,this.onExternalChange=n,this.setGroupsFromService().then(()=>{this.setDefaultGroupByName(t||"Default group"),this.onChange()})},this.setGroupsFromService=()=>s.getGroups().then(t=>t&&t.data).then(t=>this.groups=t),this.setDefaultGroupByName=t=>{this.chosenGroup=this.groups.filter(n=>n.name===t)[0]||this.groups[0]},this.onChange=()=>{this.onExternalChange(this)}}]}),hs=fe({name:"inviteCodeSelector",dependencies:[Oe],downgradedDependencies:["ToastService"],restrict:"E",template:'\n <section class="invitecode-selector-wrapper legal-block-container" \n data-ng-class="{\'invite-code-selector--code-inactive\': !inviteSelectorCtrl.isInviteCodeActive}">\n <div>\n <group-selector ng-if="!inviteSelectorCtrl.group" change="inviteSelectorCtrl.onChange" class="group-list-selector"></group-selector>\n <h3 class="group-name" ng-if="inviteSelectorCtrl.group">{{ inviteSelectorCtrl.group.name }}</h3>\n\n <st-edu-bulk-import-dialog-invite-code [group-id]="inviteSelectorCtrl.currentGroupId" [tracking-context]="inviteSelectorCtrl.trackingContext"></st-edu-bulk-import-dialog-invite-code>\n </div>\n </section>\n ',scope:{group:"<"},controllerAs:"inviteSelectorCtrl",controller:["$scope",function(c){this.$onInit=()=>{this.group=c.group,this.groups=[],this.trackingContext=this.group&&this.group.id?"groups_view":"invite_dialog",this.group&&(!this.group.id&&console.warn("Please specify a group id, e.g. supply in the group a id"),this.currentGroupId=this.group.id)},this.onChange=s=>{this.currentGroupId=s.chosenGroup?.id}}]}),kr="passwordToggleField";class ni{constructor(){this.restrict="E",this.template='\n <input type="password" ng-hide="showPassword" ng-model="value" class="form-control">\n <input type="text" ng-show="showPassword" ng-model="value" class="form-control">\n <span class="glyphicons icon"\n ng-class="{ \'glyphicons-eye-open\': !showPassword, \'glyphicons-eye-close\': showPassword }"\n ng-click="toggleShowPassword()"></span>\n ',this.scope={value:"="},ni.prototype.link=(s,t,n)=>{s.value="string"==typeof s.value?s.value:"",s.toggleShowPassword=this.toggleShowPassword.bind(this,s),s.toggleShowPassword(!1)}}toggleShowPassword(s,t){s.showPassword=typeof t<"u"?t:!s.showPassword}static Factory(){const s=()=>new ni;return s.$inject=[],s}}const gs=m.module(kr,[]).directive(kr,ni.Factory()).name,ms=fe({name:"eduAdminAddUsers",restrict:"E",template:'\n <form\n class="individual-form"\n ng-controller="AdminAddUsersCtrl as addUsersCtrl"\n name="addUsersCtrl.createForm"\n ng-submit="addUsersCtrl.addUser()"\n novalidate\n >\n <div class="form-wrapper">\n <section class="inputs">\n <div class="row">\n <div class="col-sm-8">\n <input\n type="email"\n name="email"\n ng-model="addUsersCtrl.createEmail"\n class="form-control email"\n required\n email\n placeholder="{{\n \'view.eduadmin.add_users_view.add_user.email.placeholder\'\n | translate\n }}"\n ng-change="addUsersCtrl.checkValidation(); addUsersCtrl.createFormServerExisting = null;"\n ng-class="{\n \'st-error\':\n (addUsersCtrl.createForm.email.$error.required ||\n addUsersCtrl.createForm.email.$error) &&\n addUsersCtrl.createForm.$submitted\n }"\n />\n </div>\n <div class="col-sm-4">\n <role-list\n role="addUsersCtrl.createRole"\n exclude-options="dialog.excludeRoleOption"\n ></role-list>\n </div>\n </div>
1\n <div class="row spacer10">\n <div class="col-sm-8">\n <input\n type="text"\n ng-change="addUsersCtrl.checkValidation()"\n ng-blur="addUsersCtrl.focusedPassword = false"\n ng-focus="addUsersCtrl.focusedPassword = true"\n name="password"\n class="form-control password"\n ng-model="addUsersCtrl.createPassword"\n placeholder="{{\n \'view.eduadmin.add_users_view.add_user.password.placeholder\'\n | translate\n }}"\n required\n numbersletters\n minlength="8"\n ng-class="{\n \'st-error\':\n (addUsersCtrl.createForm.password.$error.minlength ||\n addUsersCtrl.createForm.password.$error.required ||\n addUsersCtrl.createForm.password.$error\n .numbersletters) &&\n addUsersCtrl.createForm.$submitted\n }"\n />\n </div>\n <div class="col-sm-4">\n <group-selector\n defaultname="group.name"\n disabled="group.name"\n change="addUsersCtrl.onGroupChange"\n ></group-selector>\n </div>\n </div>\n <div class="row spacer10">\n <div class="col-sm-8 generate">\n <a href="" ng-click="addUsersCtrl.setGeneratedPassword()"\n ><span class="glyphicons glyphicons-refresh"></span\n ><span>{{\n \'views.dialogs.edu.import.generatepassword\' | translate\n }}</span></a\n >\n </div>\n <div class="col-sm-4 submit">\n <styleguide-button\n type="D"\n version="sec"\n size="L"\n opt="inv"\n ><span\n translate="view.eduadmin.add_users_view.add_user.save"\n ></span\n ></styleguide-button>\n </div>\n </div>\n </section>\n </div>\n <p class="tip" ng-show="addUsersCtrl.focusedPassword">\n {{ \'view.eduadmin.add_users_view.password.error\' | translate }}\n </p>\n <section class="alerts">\n <div\n class="alert alert-danger"\n ng-show="\n addUsersCtrl.createFormServerExisting &&\n addUsersCtrl.createForm.$valid\n "\n ng-bind-html="addUsersCtrl.createFormServerExisting"\n ></div>\n <div\n class="alert alert-danger"\n role="alert"\n ng-show="\n (addUsersCtrl.createForm.password.$error.required ||\n addUsersCtrl.createForm.password.$error.minlength ||\n addUsersCtrl.createForm.password.$error.numbersletters) &&\n addUsersCtrl.createForm.$submitted\n "\n >\n {{ \'view.eduadmin.add_users_view.password.error\' | translate }}\n </div>\n <div\n class="alert alert-danger"\n role="alert"\n ng-show="\n (addUsersCtrl.createForm.email.$error.required ||\n addUsersCtrl.createForm.email.$error.email) &&\n addUsersCtrl.createForm.$submitted\n "\n >\n {{ \'view.eduadmin.add_users_view.email.error\' | translate }}\n </div>\n <div\n class="alert alert-danger"\n role="alert"\n ng-show="addUsersCtrl.createFormServerError"\n ng-bind-html="addUsersCtrl.createFormServerError"\n ></div>\n <div\n class="alert alert-success"\n role="alert"\n ng-show="addUsersCtrl.createFormSuccess"\n ng-bind-html="addUsersCtrl.createFormSuccess"\n ></div>\n </section>\n </form>\n ',bindings:{group:"<"}}),Pr="com.soundtrap.components.angularjspagemodule";x().module(Pr,[]).component("angularJsPage",{bindings:{templateUrl:"@",controller:"@"},template:'\n <div dynamic-controller="$ctrl.controller">\n <ng-include src="$ctrl.templateUrl"></ng-include>\n </div>\n '});const vs=Pr,Or="com.soundtrap.components.dynamiccontroller";x().module(Or,[]).directive("dynamicController",["$compile","$parse",function(c,s){return{restrict:"A",terminal:!0,priority:999,link:function(t,n){const o=s(n.attr("dynamic-controller"))(t);n.removeAttr("dynamic-controller"),n.attr("ng-controller",o),c(n)(t)}}}]);const ys=Or;var bs=b(85976),ws=b.n(bs);const Mr="com.soundtrap.combobox";function Ss(c){return`${c.querySelector(".optgroup-label")?.innerText||c.getAttribute("aria-label")} group entered, with ${[...c.querySelectorAll(".option")].filter(n=>"none"!==n.style.display).length} options.`}angular.module(Mr,[]).directive("stCombobox",["Util",c=>({restrict:"E",require:"^ngModel",scope:{ngModel:"=",options:"=",optgroups:"=?",loading:"=?",ariaLabel:"@",placeholder:"@"},template:'\n <div class="st-combobox-wrapper" ng-class="{\'open\': isOpen}">\n <input \n type="text" \n class="st-combobox"\n placeholder="{{placeholder}}"\n aria-label="{{ariaLabel}}"\n >\n <div class="st-combobox-listbox">\n <div\n ng-repeat="optgroup in groupedOptions"\n class="optgroup"\n role="group"\n aria-label="{{optgroup.hiddenLabel ? optgroup.name : null}}"\n aria-labelledby="{{!optgroup.hiddenLabel ? optgroup.optgroup : null}}"\n >\n <h2 \n ng-if="!optgroup.hiddenLabel" \n class="optgroup-label" \n id="optgroup.optgroup"\n >\n {{optgroup.name}}\n </h2>\n <ul>\n <li \n ng-repeat="option in optgroup.options" \n class="option" \n data-id="{{option.id}}"\n >\n <button>{{option.text}}</button>\n </li>\n </ul>\n </div>\n </div>\n </div>\n ',link:function(s,t,n,o){const a=`st-combobox-${c.guid()}`;t.find(".st-combobox-wrapper").attr("id",a),s.$watch("options",T=>{s.groupedOptions=(s.optgroups||[]).map(H=>({...H,options:T.filter(M=>M.optgroup===H.optgroup)})).filter(H=>H.options.length>0),s.loading||h()});const h=()=>{setTimeout(()=>{const T=new(ws())({input:`#${a} input`,list:`#${a} .st-combobox-listbox`,groups:`#${a} .optgroup`,activeClass:"active",noResultsText:"No results found.",announcement:{groupChange:Ss}});T.on("selection",this.onChange),T.on("list:open",this.onOpen),T.on("list:close",this.onClose)})};this.onChange=({option:T})=>{const $=T?.getAttribute("data-id");o.$setViewValue($)},this.onOpen=()=>{s.isOpen=!0},this.onClose=()=>{s.isOpen=!1}}})]);const Cs=Mr,Rr="com.soundtrap.vendors";x().module(Rr,[ee().name,"ngLocale","ngSanitize","ui.bootstrap","ui.scroll","monospaced.mousewheel"]);const _s=(0,D.Fi)([Rr,L.A,F,dt,Bt,an,hn,Mn,si,li,Gr,jr,to,io,oo,lo,fo,ho,go,vo,yo,wo,Eo,To,Do,xo,Po,Mo,$o,No,Bo,jo,Vo,zo,Yo,Jo,qo,ue,cn,wi,cr,vi,Ne,Zo,ta,aa,Oe,ca,Ui,Kt,Re,Zi,Fi,pi,mi,di,ze,Hn,rn,sn,f,"Util",da,ga,va,Ma,hi,Ra,Ua,Fa,La,ja,za,Xa,as,ss,ls,us,ds,fs,ps,hs,gs,ms,vs,ys,Cs,Oa]).name;var xs=b(18351),$r=b(72262);let ks=(()=>{class c{onClick(){this.removeUsers()}constructor(t,n,o,a){this.translate=t,this.educationalAccountService=n,this.dialogService=o,this.toastService=a,this.removed=new Tt.bkB,this.error=new Tt.bkB}removeUsers(){var t=this;return(0,Rn.A)(function*(){const n=t.allSelected?t.membersAdjusted:t.selectedMembers;if(!n.length)return;const o=n.filter(a=>a.user.id!==t.currentUser.id).map(a=>a.user.id.toString());t.dialogService.confirm({title:"view.eduadmin.dialogs.removeusers.title",message:"view.eduadmin.dialogs.removeusers.message",primaryButtonText:"view.eduadmin.dialogs.removeusers.remove",secondaryButtonText:"view.eduadmin.dialogs.removeusers.cancel",destructivePrimaryAction:!0}
1).result.subscribe(function(){var a=(0,Rn.A)(function*(h){if(h){let T;t.loading=!0;try{T=yield t.educationalAccountService.removeMembers(o)}catch($){return void t.error.emit($)}T.data.failed?t.dialogService.confirm({title:"view.eduadmin.dialogs.oops.title",message:"view.eduadmin.dialogs.could_not_be_removed.message",primaryButtonText:"view.eduadmin.dialogs.oops.ok_btn"}):1===o.length?t.translate.get("view.eduadmin.directory.toasts.userremoved").pipe((0,ei.s)(1)).subscribe($=>t.toastService.sendMessage(new xt.y(`${n[0].user.shortName} ${$}`))):o.length&&t.translate.get("view.eduadmin.directory.toasts.usersremoved").pipe((0,ei.s)(1)).subscribe($=>t.toastService.sendMessage(new xt.y(`${o.length} ${$}`))),t.loading=!1,t.removed.emit({failed:T.data.failed,success:T.data.success})}});return function(h){return a.apply(this,arguments)}}())})()}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(_.c$),l.rXU($r.F),l.rXU(Ti.o3),l.rXU(Di.f))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-remove-users"]],hostBindings:function(n,o){1&n&&l.bIt("click",function(){return o.onClick()})},inputs:{allSelected:"allSelected",loading:"loading",currentUser:"currentUser",membersAdjusted:"membersAdjusted",selectedMembers:"selectedMembers"},outputs:{removed:"removed",error:"error"},standalone:!1,decls:3,vars:3,template:function(n,o){1&n&&(l.j41(0,"span"),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&n&&(l.R7$(),l.SpI(" ",l.bMT(2,1,"view.eduadmin.directory.edit.remove_seats")," "))},dependencies:[Yt.r],styles:["[_nghost-%COMP%]{display:flex;font-size:15px;width:238px;position:relative;align-items:center;cursor:pointer}[_nghost-%COMP%]:hover .icon[_ngcontent-%COMP%]{color:var(--text-base)}.icon[_ngcontent-%COMP%]{color:var(--text-base)}"]})}}return c})();var Ii=b(94734);let Ps=(()=>{class c{constructor(t,n){this.route=t,this.router=n}ngOnInit(){this.router.initialNavigation()}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(Ii.nX),l.rXU(Ii.Ix))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-admin"]],standalone:!1,decls:1,vars:0,template:function(n,o){1&n&&l.nrm(0,"router-outlet")},dependencies:[Ii.n3],encapsulation:2})}}return c})();var Os=b(18731),Ms=b(48348),Rs=b(64006);const $s=c=>({hours:c}),Ur=(c,s,t)=>({hours:c,minutes:s,seconds:t});function Us(c,s){if(1&c&&(l.j41(0,"section",0)(1,"h3",1),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"div",2),l.EFF(5),l.nI1(6,"translate"),l.k0s(),l.j41(7,"h3",1),l.EFF(8),l.nI1(9,"translate"),l.k0s(),l.j41(10,"div",3)(11,"div",4),l.EFF(12),l.nI1(13,"translate"),l.k0s(),l.j41(14,"div"),l.EFF(15),l.nI1(16,"translate"),l.k0s()(),l.j41(17,"div",3)(18,"div",4),l.EFF(19),l.nI1(20,"translate"),l.k0s(),l.j41(21,"div"),l.EFF(22),l.nI1(23,"translate"),l.k0s()(),l.j41(24,"div")(25,"span",5),l.EFF(26),l.nI1(27,"translate"),l.k0s(),l.j41(28,"a",6),l.EFF(29),l.nI1(30,"translate"),l.k0s()()()),2&c){const t=s;l.R7$(2),l.SpI(" ",l.bMT(3,9,"view.transcription.totalhours.title")," "),l.R7$(3),l.SpI(" ",l.i5U(6,11,"view.transcription.totalhours.body",l.eq3(30,$s,t.transcriptionHoursAvailable))," "),l.R7$(3),l.JRh(l.bMT(9,14,"view.transcription.quota.title")),l.R7$(4),l.SpI(" ",l.bMT(13,16,"view.transcription.quota.used")," : "),l.R7$(3),l.SpI(" ",l.i5U(16,18,"view.transcription.quota.timetemplate",l.sMw(32,Ur,t.transcriptTimeUsed.hours,t.transcriptTimeUsed.minutes,t.transcriptTimeUsed.seconds))," "),l.R7$(4),l.SpI(" ",l.bMT(20,21,"view.transcription.quota.remaining")," : "),l.R7$(3),l.SpI(" ",l.i5U(23,23,"view.transcription.quota.timetemplate",l.sMw(36,Ur,t.transcriptTimeRemaining.hours,t.transcriptTimeRemaining.minutes,t.transcriptTimeRemaining.seconds))," "),l.R7$(4),l.JRh(l.bMT(27,26,"view.transcription.quota.message")),l.R7$(3),l.JRh(l.bMT(30,28,"view.transcription.quota.contactsupport"))}}let Ns=(()=>{class c{constructor(t){this.store=t,this.$quotaModel=this.store.pipe((0,tn.Lt)(Ms.TN))}ngOnInit(){this.store.dispatch(new Os.PD(Rs.l.TRANSCRIPT))}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(tn.il))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-transcription-quota"]],standalone:!1,decls:2,vars:3,consts:[[1,"transcription-quota"],[1,"title"],[1,"text"],[1,"quota-value-container"],[1,"quota-value-title"],[1,"contact-support"],["href","https://soundtra
1p.zendesk.com/hc/en-us/requests/new"]],template:function(n,o){if(1&n&&(l.nVh(0,Us,31,40,"section",0),l.nI1(1,"async")),2&n){let a;l.vxM((a=l.bMT(1,1,o.$quotaModel))?0:-1,a)}},dependencies:[P.Jj,Yt.r],styles:[".title[_ngcontent-%COMP%]{font-size:15px;font-weight:500;padding-bottom:10px;border-bottom:1px solid var(--decorative-subdued);display:flex;justify-content:space-between;margin-bottom:20px}.contact-support[_ngcontent-%COMP%]{padding-right:.3125rem}.quota-value-container[_ngcontent-%COMP%]{display:flex;padding-bottom:.625rem}.quota-value-title[_ngcontent-%COMP%]{min-width:6.25rem}.text[_ngcontent-%COMP%]{min-height:4.375rem}"]})}}return c})();var Fs=b(81708),Ls=b(50518),Bs=b(3513),Gs=b(7025),js=b(13172),Vs=b(20267),ii=b(32610),Jn=b(84845),_i=b(29444),xi=b(11580),ki=b(20927),Pi=b(28372);const zs=[[["st-edu-remove-users"]],[["st-edu-delete-users"]]],Hs=["st-edu-remove-users","st-edu-delete-users"];function Ws(c,s){if(1&c&&(l.j41(0,"st-dropdown-item",6),l.nrm(1,"st-icon-legacy",7),l.SdG(2),l.k0s()),2&c){const t=l.XpG();l.Y8G("isDisabled",!t.canRemoveSeatsForSelectedUsers)}}function Ys(c,s){1&c&&(l.j41(0,"st-dropdown-item"),l.nrm(1,"st-icon-legacy",8),l.SdG(2,1),l.k0s())}let Xs=(()=>{class c{constructor(){this.seatsAssigned=new Tt.bkB,this.seatsUnassigned=new Tt.bkB,this.isOpen=!1}assignSeats(){this.seatsAssigned.emit()}unassignSeats(){this.seatsUnassigned.emit()}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-assign-seats-dropdown"]],inputs:{isAllAssigned:"isAllAssigned",isAllUnassigned:"isAllUnassigned",canAssignSeatsForSelectedUsers:"canAssignSeatsForSelectedUsers",canUnassignSeatsForSelectedUsers:"canUnassignSeatsForSelectedUsers",canRemoveSeatsForSelectedUsers:"canRemoveSeatsForSelectedUsers",selectedGroup:"selectedGroup",isDeleteEnabled:"isDeleteEnabled"},outputs:{seatsAssigned:"seatsAssigned",seatsUnassigned:"seatsUnassigned"},standalone:!1,ngContentSelectors:Hs,decls:16,vars:15,consts:[["dropdown",""],["size","small","st-button-primary","","cdkMonitorElementFocus","",1,"dropdown-button","btn",3,"opened","closed","stDropdownTriggerFor"],["size","10px",3,"icon"],[3,"click","isDisabled"],["icon","ok"],["icon","warning-sign"],[3,"isDisabled"],["icon","cancel"],["icon","delete"]],template:function(n,o){if(1&n&&(l.NAR(zs),l.j41(0,"button",1),l.bIt("opened",function(){return o.isOpen=!0})("closed",function(){return o.isOpen=!1}),l.nrm(1,"st-icon-legacy",2),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"st-dropdown",null,0)(6,"st-dropdown-item",3),l.bIt("click",function(){return o.assignSeats()}),l.nrm(7,"st-icon-legacy",4),l.EFF(8),l.nI1(9,"translate"),l.k0s(),l.j41(10,"st-dropdown-item",3),l.bIt("click",function(){return o.unassignSeats()}),l.nrm(11,"st-icon-legacy",5),l.EFF(12),l.nI1(13,"translate"),l.k0s(),l.nVh(14,Ws,3,1,"st-dropdown-item",6),l.nVh(15,Ys,3,0,"st-dropdown-item"),l.k0s()),2&n){const a=l.sdS(5);l.Y8G("stDropdownTriggerFor",a),l.R7$(),l.Y8G("icon",o.isOpen?"chevron-up":"chevron-down"),l.R7$(),l.SpI(" ",l.bMT(3,9,"view.eduadmin.directory.edit.editseats")," "),l.R7$(4),l.Y8G("isDisabled",o.isAllAssigned&&!o.canAssignSeatsForSelectedUsers),l.R7$(2),l.SpI(" ",l.bMT(9,11,"view.eduadmin.directory.edit.assign_seats")," "),l.R7$(2),l.Y8G("isDisabled",o.isAllUnassigned&&!o.canUnassignSeatsForSelectedUsers),l.R7$(2),l.SpI(" ",l.bMT(13,13,"view.eduadmin.directory.edit.unassign_seats")," "),l.R7$(2),l.vxM(o.selectedGroup.name&&!o.selectedGroup.thirdPartyHandled?14:-1),l.R7$(),l.vxM(o.isDeleteEnabled?15:-1)}},dependencies:[ii.k,Jn.vR,_i.P,xi.S,ki.j,Pi.Q,Yt.r],styles:[".dropdown-button[_ngcontent-%COMP%]{border:1px solid var(--text-base)}"]})}}return c})();function Js(c,s){if(1&c){const t=l.RV6();l.j41(0,"st-dropdown-item",4),l.bIt("click",function(){Tt.eBV(t);const o=l.XpG().$implicit,a=l.XpG();return Tt.Njj(a.addToGroup(o))}),l.EFF(1),l.k0s()}if(2&c){const t=l.XpG().$implicit;l.R7$(),l.SpI(" ",t.name," ")}}function Ks(c,s){if(1&c&&l.nVh(0,Js,2,1,"st-dropdown-item"),2&c){const t=s.$implicit,n=l.XpG();l.vxM(n.areSelectedMembersAllInGroup(t)||t.thirdPartyHandled?-1:0)}}
1function qs(c,s){if(1&c){const t=l.RV6();l.j41(0,"st-dropdown-item",4),l.bIt("click",function(){Tt.eBV(t);const o=l.XpG();return Tt.Njj(o.removeFromGroup(o.selectedGroup))}),l.EFF(1),l.nI1(2,"translate"),l.k0s()}if(2&c){const t=l.XpG();l.R7$(),l.Lme(" ",l.bMT(2,2,"view.eduadmin.directory.edit.this_group"),"(",t.selectedGroup.name,") ")}}function Qs(c,s){if(1&c){const t=l.RV6();l.j41(0,"st-dropdown-item",4),l.bIt("click",function(){Tt.eBV(t);const o=l.XpG().$implicit,a=l.XpG();return Tt.Njj(a.removeFromGroup(o))}),l.EFF(1),l.k0s()}if(2&c){const t=l.XpG().$implicit;l.R7$(),l.SpI(" ",t.name," ")}}function Zs(c,s){if(1&c&&l.nVh(0,Qs,2,1,"st-dropdown-item"),2&c){const t=s.$implicit,n=l.XpG();l.vxM(n.getSelectedMembersInGroup(t).length&&!t.thirdPartyHandled?0:-1)}}let el=(()=>{class c{constructor(){this.createGroupDialogShown=new Tt.bkB,this.addedToGroup=new Tt.bkB,this.removedFromGroup=new Tt.bkB,this.isOpen=!1}showCreateGroupDialog(){this.createGroupDialogShown.emit()}addToGroup(t){this.addedToGroup.emit(t)}removeFromGroup(t){this.removedFromGroup.emit(t)}getSelectedMembersInGroup(t){return this.selectedMembers.length?this.selectedMembers.filter(n=>n.user.groupMemberships.filter(o=>o.group.id===t.id).length):[]}areSelectedMembersAllInGroup(t){return!!this.selectedMembers&&this.getSelectedMembersInGroup(t).length===this.selectedMembers.length}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-edit-groups-dropdown"]],inputs:{allGroups:"allGroups",selectedMembers:"selectedMembers",selectedGroup:"selectedGroup"},outputs:{createGroupDialogShown:"createGroupDialogShown",addedToGroup:"addedToGroup",removedFromGroup:"removedFromGroup"},standalone:!1,decls:28,vars:18,consts:[["dropdown",""],["size","small","st-button-primary","","cdkMonitorElementFocus","",1,"dropdown-button","btn",3,"opened","closed","stDropdownTriggerFor"],["size","10px",3,"icon"],["icon","circle-plus"],[3,"click"],["icon","glyphicons-plus"],["icon","circle-minus"]],template:function(n,o){if(1&n&&(l.j41(0,"button",1),l.bIt("opened",function(){return o.isOpen=!0})("closed",function(){return o.isOpen=!1}),l.nrm(1,"st-icon-legacy",2),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"st-dropdown",null,0)(6,"st-dropdown-item"),l.nrm(7,"st-icon-legacy",3),l.EFF(8),l.nI1(9,"translate"),l.j41(10,"st-dropdown")(11,"st-dropdown-item",4),l.bIt("click",function(){return o.showCreateGroupDialog()}),l.nrm(12,"st-icon-legacy",5),l.EFF(13),l.nI1(14,"translate"),l.k0s(),l.Z7z(15,Ks,1,1,null,null,l.fX1),l.k0s()(),l.j41(17,"st-dropdown-item"),l.nrm(18,"st-icon-legacy",6),l.EFF(19),l.nI1(20,"translate"),l.j41(21,"st-dropdown"),l.nVh(22,qs,3,4,"st-dropdown-item"),l.Z7z(23,Zs,1,1,null,null,l.fX1),l.j41(25,"st-dropdown-item"),l.EFF(26),l.nI1(27,"translate"),l.k0s()()()()),2&n){const a=l.sdS(5);l.Y8G("stDropdownTriggerFor",a),l.R7$(),l.Y8G("icon",o.isOpen?"chevron-up":"chevron-down"),l.R7$(),l.SpI(" ",l.bMT(3,8,"view.eduadmin.directory.edit.editgroups")," "),l.R7$(6),l.SpI(" ",l.bMT(9,10,"view.eduadmin.directory.edit.add_to")," "),l.R7$(5),l.SpI(" ",l.bMT(14,12,"view.eduadmin.directory.edit.create_group")," "),l.R7$(2),l.Dyx(o.allGroups),l.R7$(4),l.SpI(" ",l.bMT(20,14,"view.eduadmin.directory.edit.remove_from")," "),l.R7$(3),l.vxM(o.selectedGroup.name&&o.selectedGroup.thirdPartyHandled?22:-1),l.R7$(),l.Dyx(o.allGroups),l.R7$(3),l.SpI(" ",l.bMT(27,16,"view.eduadmin.directory.edit.nogroups")," ")}},dependencies:[ii.k,Jn.vR,_i.P,xi.S,ki.j,Pi.Q,Yt.r],styles:[".dropdown-button[_ngcontent-%COMP%]{border:1px solid var(--text-base)}"]})}}return c})();const tl=b.p+"clock.07f48705.svg";var Nr=b(65886);function nl(c,s){1&c&&(l.j41(0,"div"),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&c&&(l.R7$(),l.SpI(" ",l.bMT(2,1,"view.eduadmin.directory.edit.temporary")," "))}let il=(()=>{class c{constructor(){this.clockIcon=tl}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-temporary-account-icon"]],standalone:!1,decls:4,vars:6,consts:[["temporaryAccountTooltip",""],["cdkMonitorElementFocus","",1,"icon",3,"src","stTooltip","alt"]],template:function(n,o){if(1&n&&(l.nrm(0,"img",1),l.nI1(1,"translate"),l.DNE(2,nl,3,3,"ng-template",null,0,l.C5r)),2&n){const a=l.sdS(3);l.Y8G("alt",l.mNQ(l.bMT(1,4,"view.eduadmin.directory.edit.temporary.account")))("src",o.clockIcon,l.B4B)("stTooltip",a)}},dependencies:[Nr.d,Jn.vR,Yt.r],styles:[".icon.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:2px solid var(--focus);outline-offset:2px}"]})}}return c})();const rl=b.p+"warning.d8c54ea3.svg";function ol(c,s){if(1&c){const t=l.RV6();l.j41(0,"st-dropdown-item",4),l.bIt("click",function(){Tt.eBV(t);const o=l.XpG();return Tt.Njj(o.seatAssigned.emit())}),l.nrm(1,"st-icon-legacy",5),l.EFF(2),l.nI1(3,"translate"),l.k0s()}2&c&&(l.R7$(),l.jOp("aria-hidden",!0),l.R7$(),l.SpI(" ",l.bMT(3,2,"view.eduadmin.directory.edit.seatassigned.btn")," "))}function al(c,s){if(1&c){const t=l.RV6();l.j41(0,"st-dropdown-item",4),l.bIt("click",function(){Tt.eBV(t);const o=l.XpG();return Tt.Njj(o.seatsRequested.emit())}),l.nrm(1,"st-icon-legacy",6),l.EFF(2),l.nI1(3,"translate"),l.k0s()}2&c&&(l.R7$(),l.jOp("aria-hidden",!0),l.R7$(),l.SpI(" ",l.bMT(3,2,"view.eduadmin.directory.edit.insufficientseats.btn")," "))}function sl(c,s){if(1&c){const t=l.RV6();l.j41(0,"st-dropdown-item",4),l.bIt("click",function(){const o=Tt.eBV(t).$implicit,a=l.XpG(2);return Tt.Njj(a.ownerContacted.emit(o))}),l.EFF(1),l.k0s()}if(2&c){const t=s.$implicit;l.R7$(),l.SpI(" ",t.email," ")}}function ll(c,s){if(1&c&&(l.j41(0,"st-dropdown-item"),l.nrm(1,"st-icon-legacy",7),l.EFF(2),l.nI1(3,"translate"),l.j41(4,"st-dropdown"),l.Z7z(5,sl,2,1,"st-dropdown-item",null,l.fX1),l.k0s()()),2&c){const t=l.XpG();
1l.R7$(),l.jOp("aria-hidden",!0),l.R7$(),l.SpI(" ",l.bMT(3,2,"view.eduadmin.directory.edit.insufficientseats.contact.owner")," "),l.R7$(3),l.Dyx(t.owners)}}function cl(c,s){1&c&&(l.j41(0,"div"),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&c&&(l.R7$(),l.SpI(" ",l.bMT(2,1,"view.eduadmin.directory.edit.seatassigned.desc")," "))}function ul(c,s){1&c&&(l.j41(0,"div"),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&c&&(l.R7$(),l.SpI(" ",l.bMT(2,1,"view.eduadmin.directory.edit.insufficientseats.desc")," "))}function dl(c,s){1&c&&(l.j41(0,"div")(1,"p",8),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.j41(4,"p"),l.EFF(5),l.nI1(6,"translate"),l.k0s()()),2&c&&(l.R7$(2),l.SpI(" ",l.bMT(3,2,"view.eduadmin.directory.edit.insufficientseats.desc")," "),l.R7$(3),l.SpI(" ",l.bMT(6,4,"view.eduadmin.directory.edit.insufficientseats.desc2")," "))}function fl(c,s){if(1&c&&(l.nVh(0,cl,3,3,"div"),l.nVh(1,ul,3,3,"div"),l.nVh(2,dl,7,6,"div")),2&c){const t=l.XpG();l.vxM(t.hasSeatsAvailable?0:-1),l.R7$(),l.vxM(!t.hasSeatsAvailable&&t.userCanPay?1:-1),l.R7$(),l.vxM(t.hasSeatsAvailable||t.userCanPay?-1:2)}}let pl=(()=>{class c{constructor(){this.warningIcon=rl,this.seatAssigned=new Tt.bkB,this.seatsRequested=new Tt.bkB,this.ownerContacted=new Tt.bkB}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-unassigned-seat-icon"]],inputs:{hasSeatsAvailable:"hasSeatsAvailable",userCanPay:"userCanPay",owners:"owners"},outputs:{seatAssigned:"seatAssigned",seatsRequested:"seatsRequested",ownerContacted:"ownerContacted"},standalone:!1,decls:10,vars:10,consts:[["dropdown",""],["unassignedSeatTooltip",""],["cdkMonitorElementFocus","",1,"unassigned-seat-button",3,"stTooltip","stDropdownTriggerFor"],[3,"src","alt"],[3,"click"],["icon","ok",3,"aria-hidden"],["icon","add",3,"aria-hidden"],["icon","mail",3,"aria-hidden"],[1,"text"]],template:function(n,o){if(1&n&&(l.j41(0,"button",2),l.nrm(1,"img",3),l.nI1(2,"translate"),l.k0s(),l.j41(3,"st-dropdown",null,0),l.nVh(5,ol,4,4,"st-dropdown-item"),l.nVh(6,al,4,4,"st-dropdown-item"),l.nVh(7,ll,7,4,"st-dropdown-item"),l.k0s(),l.DNE(8,fl,3,3,"ng-template",null,1,l.C5r)),2&n){const a=l.sdS(4),h=l.sdS(9);l.Y8G("stTooltip",h)("stDropdownTriggerFor",a),l.R7$(),l.Y8G("alt",l.mNQ(l.bMT(2,8,"view.eduadmin.directory.edit.seat.notassigned")))("src",o.warningIcon,l.B4B),l.R7$(4),l.vxM(o.hasSeatsAvailable?5:-1),l.R7$(),l.vxM(!o.hasSeatsAvailable&&o.userCanPay?6:-1),l.R7$(),l.vxM(o.hasSeatsAvailable||o.userCanPay?-1:7)}},dependencies:[Nr.d,ii.k,Jn.vR,_i.P,xi.S,ki.j,Yt.r],styles:[".unassigned-seat-button[_ngcontent-%COMP%]{width:24px;height:24px;border:none;background:none;padding:0}.unassigned-seat-button.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:2px solid var(--focus);outline-offset:2px}"]})}}return c})();var hl=b(43289),gl=b(89480);let ml=(()=>{class c{static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-empty-user-list"]],standalone:!1,features:[l.Jv_([(0,hl.b)("empty_user_list")])],decls:9,vars:7,consts:[[1,"st-pastel-primary-set","container"],[1,"st-heading-3"],["icon","user-add","size","32px",3,"aria-hidden"]],template:function(n,o){1&n&&(l.j41(0,"div",0)(1,"h2",1),l.nrm(2,"st-icon-legacy",2),l.EFF(3),l.nI1(4,"translate"),l.k0s(),l.j41(5,"p"),l.EFF(6),l.nI1(7,"translate"),l.k0s(),l.nrm(8,"st-edu-add-users-buttons"),l.k0s()),2&n&&(l.R7$(2),l.jOp("aria-hidden",!0),l.R7$(),l.SpI(" ",l.bMT(4,3,"view.user_list.empty_state.title")," "),l.R7$(3),l.JRh(l.bMT(7,5,"view.user_list.empty_state.desc")))},dependencies:[ii.k,gl.W,Yt.r],styles:[".container[_ngcontent-%COMP%]{margin-top:var(--space-large);padding:var(--space-medium-2);border-radius:4px;background-color:var(--background-elevated-base);width:100%;display:flex;flex-direction:column}p[_ngcontent-%COMP%]{margin-bottom:0;max-width:600px}st-edu-add-users-buttons[_ngcontent-%COMP%]{margin-top:var(--space-medium-2)}.st-heading-3[_ngcontent-%COMP%]{margin-top:0}"],changeDetection:0})}}return c})(),vl=(()=>{class c{onClick(){this.deleteUsers()}constructor(t,n,o,a){this.translate=t,this.educationalAccountService=n,this.dialogService=o,this.toastService=a,this.removed=new Tt.bkB,this.error=new Tt.bkB}deleteUsers(){var t=this;if(!this.selectedMembers.length)return;if(this.selectedMembers.some(o=>o.seatAssigned))return void this.dialogService.confirm({title:"view.eduadmin.dialogs.deleteusers.seatedusers.title",message:"view.eduadmin.dialogs.deleteusers.seatedusers.message",primaryButtonText:"view.eduadmin.dialogs.generic_error.confirm_btn",destructivePrimaryAction:!1});const n=this.selectedMembers.map(o=>o.user.id);this.dialogService.confirm({title:"view.eduadmin.dialogs.deleteusers.title",message:"view.eduadmin.dialogs.deleteusers.message",primaryButtonText:"view.eduadmin.dialogs.deleteusers.delete",secondaryButtonText:"view.eduadmin.dialogs.deleteusers.cancel",translateParams:{userCount:this.selectedMembers.length.toString()},destructivePrimaryAction:!0}
1).result.subscribe(function(){var o=(0,Rn.A)(function*(a){if(a){let h;try{h=yield(0,Q._)(t.educationalAccountService.softDeleteUsers(n))}catch(T){return void t.error.emit(T)}h.failed?t.dialogService.confirm({title:"view.eduadmin.dialogs.could_not_be_deleted.title",message:"view.eduadmin.dialogs.could_not_be_deleted.message",primaryButtonText:"view.eduadmin.dialogs.oops.ok_btn",translateParams:{userCountTotal:n.length.toString(),userCountFailed:h.failed.toString()}}):t.translate.get("view.eduadmin.directory.toasts.userdeleted",{userCount:n.length}).pipe((0,ei.s)(1)).subscribe(T=>t.toastService.sendMessage(new xt.y(T))),t.removed.emit()}});return function(a){return o.apply(this,arguments)}}())}static{this.\u0275fac=function(n){return new(n||c)(l.rXU(_.c$),l.rXU($r.F),l.rXU(Ti.o3),l.rXU(Di.f))}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-delete-users"]],hostBindings:function(n,o){1&n&&l.bIt("click",function(){return o.onClick()})},inputs:{allSelected:"allSelected",currentUser:"currentUser",membersAdjusted:"membersAdjusted",selectedMembers:"selectedMembers"},outputs:{removed:"removed",error:"error"},standalone:!1,decls:3,vars:3,template:function(n,o){1&n&&(l.j41(0,"span"),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&n&&(l.R7$(),l.SpI(" ",l.bMT(2,1,"view.eduadmin.directory.edit.delete_users")," "))},dependencies:[Yt.r],styles:["[_nghost-%COMP%]{display:flex;font-size:15px;width:238px;position:relative;align-items:center;cursor:pointer}"]})}}return c})(),yl=(()=>{class c{static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275cmp=l.VBU({type:c,selectors:[["st-edu-edit-role"]],standalone:!1,decls:5,vars:3,consts:[["size","small","st-button-primary","","cdkMonitorElementFocus","",1,"edit-button","btn"],[1,"flex","items-center"],[1,"glyphicons","glyphicons-education"]],template:function(n,o){1&n&&(l.j41(0,"button",0)(1,"div",1),l.nrm(2,"span",2),l.EFF(3),l.nI1(4,"translate"),l.k0s()()),2&n&&(l.R7$(3),l.SpI(" ",l.bMT(4,1,"view.eduadmin.directory.edit.editrole")," "))},dependencies:[Jn.vR,Pi.Q,Yt.r],styles:[".edit-button[_ngcontent-%COMP%]{border:1px solid var(--text-base)}"]})}}return c})();x().module("com.soundtrap.app").directive("stImageButton",(0,i.PW)({component:Fs.H})).directive("stCopyright",(0,i.PW)({component:js.b})).directive("stVimeoPlayer",(0,i.PW)({component:Bs.z})).directive("stLanguagePicker",(0,i.PW)({component:Ls.K})).directive("stToast",(0,i.PW)({component:Vs.i})).directive("stTranscriptionQuota",(0,i.PW)({component:Ns})).directive("stEduAdmin",(0,i.PW)({component:Ps})).directive("stCheckbox",(0,i.PW)({component:Gs.P,inputs:["checked","name"],outputs:["change"]})).directive("stEduRemoveUsers",(0,i.PW)({component:ks})).directive("stEduDeleteUsers",(0,i.PW)({component:vl})).directive("stGroupCodeSettings",(0,i.PW)({component:xs.$})).directive("stEduEditRole",(0,i.PW)({component:yl})).directive("stEduAssignSeatsDropdown",(0,i.PW)({component:Xs})).directive("stEduEditGroupsDropdown",(0,i.PW)({component:el})).directive("stEduEmptyUserList",(0,i.PW)({component:ml})).directive("stEduTemporaryAccountIcon",(0,i.PW)({component:il})).directive("stEduUnassignedSeatIcon",(0,i.PW)({component:pl}));var bl=b(85912),wl=b(16685);function Sl(c){return c.get("Dialogs")}function Cl(c){return c.get("$rootScope")}let El=(()=>{class c{constructor(t,n,o){if(this.upgrade=t,this.injector=n,this.lazyLoad=o,!this.lazyLoad.isLoaded()){const a=document.documentElement;(0,D.Nw)(),t.bootstrap(a,[_s],{strictDi:!1}),this.lazyLoad.registerAngularJsModule(this.injector)}}static{this.\u0275fac=function(n){return new(n||c)(Tt.KVO(i.be),Tt.KVO(Tt.zZn),Tt.KVO(wl.H))}}static{this.\u0275mod=l.$C({type:c})}static{this.\u0275inj=Tt.G2t({providers:[{provide:bl.h,useFactory:Sl,deps:["$injector"]},{provide:"$scope",useFactory:Cl,deps:["$injector"]}],imports:[P.MD,i.be]})}}return c})()},72190(ce,G,b){"use strict";b.d(G,{EV:()=>U,hs:()=>z,Q0:()=>S});var P=b(41591),i=b(32861),m=b(32560),x=b(29247),C=b(90113);function v(y,R){}let u=(()=>{class y extends i.sU{get dialogClass(){return this._config&&this._config.data&&this._config.data.dialogType?this._config.data.dialogType:"purpose-dialog"}get dialogSize(){return this._config&&this._config.data&&this._config.data.dialogSize?"modal-"+this._config.data.dialogSize:""}static{this.\u0275fac=(()=>{let V;return function(J){return(V||(V=m.xGo(y)))(J||y)}})()}static{this.\u0275cmp=m.VBU({type:y,selectors:[["st-legacy-dialog-container"]],hostAttrs:[1,"st-light-theme"],standalone:!1,features:[m.Vt3],decls:3,vars:5,consts:[["cdkTrapFocus",""],["cdkPortalOutlet",""]],template:function(ee,J){1&ee&&(m.j41(0,"div",0)(1,"div"),m.DNE(2,v,0,0,"ng-template",1),m.k0s()()),2&ee&&(m.HbH(J.dialogClass),m.R7$(),m.HbH(m.VkB("modal-dialog ",J.dialogSize)))},dependencies:[x.I3,C.kB],styles:["st-legacy-dialog-container{background-color:var(--background-elevated-base);color:var(--text-base);border-radius:10px;box-shadow:0 1px 8px #0000001a;display:block;flex-grow:1;outline:none;will-change:transform}st-legacy-dialog-container .modal-dialog{margin:0!important;text-align:center}st-legacy-dialog-container .modal-title{border-radius:10px 10px 0 0!important}.cdk-global-overlay-wrapper{overflow-y:auto;pointer-events:auto}.st-dialog-panel{margin:auto}\n"],encapsulation:2,data:{animation:[(0,P.hZ)("dialog",[(0,P.wk)("enter",(0,P.iF)({opacity:1})),(0,P.wk)("exit, void",(0,P.iF)({transform:"scale(0.97)"})),(0,P.kY)("* => enter",(0,P.i0)("{{enterAnimationDuration}}")),(0,P.kY)("* => exit, * => void",(0,P.i0)("{{exitAnimationDuration}}"))])]}})}}return y})();const S=({data:y,id:R,dialogType:V=z.GeneralPurpose,dialogSize:ee}={dialogType:z.GeneralPurpose})=>({id:R,container:u,maxWidth:"initial",width:"initial",maxHeight:"initial",data:{...y,dialogType:V,dialogSize:ee}});var z=function(y){return y.GeneralPurpose="purpose-dialog",y.Info="utility-dialog",y}(z||{}),U=function(y){return y.Small="sm",y.Medium="md",y.Large="lg",y}(U||{})},44765(ce,G,b){"use strict";b.d(G,{_:()=>i});var P=b(32560);let i=(()=>{class m{set shouldFocus(C){C&&this.hostElement.nativeElement.focus()}constructor(C){this.hostElement=C}static{this.\u0275fac=function(v){return new(v||m)(P.rXU(P.aKT))}}static{this.\u0275dir=P.FsC({type:m,selectors:[["","stFocus",""]],inputs:{shouldFocus:[0,"stFocus","shouldFocus"]},standalone:!1})}}return m})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.