!function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return i(e[a][1][t]||t)}),u,u.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>i,setupSdk:()=>r});const n=t=>"string"==typeof t?document.querySelector(t):t,r=async(t,e={})=>{var r,i,o,a,s;const{connectOptions:l=[],container:c,domain:u="my.matterport.com",iframe:d,iframeAttributes:h={},iframeQueryParams:p=new URLSearchParams,space:f="SxQL3iGyoDo"}=e;let m=n(d);if(!t)throw new Error("sdkKey required to use the SDK.");for(await new Promise(((t,e)=>{const n=document.createElement("script");n.onload=t,n.onerror=e,n.setAttribute("src","https://static.matterport.com/showcase-sdk/latest.js"),document.head.append(n)}));!window.MP_SDK;)await new Promise(requestAnimationFrame);if(!m){m=document.createElement("iframe");const e={frameborder:"0",allow:"fullscreen; xr-spatial-tracking",id:"mp-showcase",width:c?"100%":"853px",height:c?"100%":"480px"},i=Object.assign(Object.assign({},e),h);for(const t in i)m.setAttribute(t,i[t]);const o={m:f,play:"1",applicationKey:t},a=p instanceof URLSearchParams?p:new URLSearchParams(Object.entries(p).map((([t,e])=>[t,e.toString()])));Object.keys(o).forEach((t=>{a.has(t)||a.set(t,o[t])}));const s=u.replace(/^(?:[^:]*\:\/\/|\/\/)/gm,"");m.setAttribute("src",`//${s}/show?${a.toString()}`),(null!==(r=n(c))&&void 0!==r?r:document.body).appendChild(m)}const v=null!==(i=null==l?void 0:l[0])&&void 0!==i?i:m;try{return await window.MP_SDK.connect(v,t,"")}catch(t){throw(null===(s=null===(o=t.toString)||void 0===o?void 0:(a=o.call(t)).includes)||void 0===s?void 0:s.call(a,"key/referrer mismatch"))&&(t=`Incorrect SDK key. Did you:\n\t(a) set up your key using the instructions at https://matterport.github.io/showcase-sdk/sdk_home.html#installation and\n\t(b) add ${window.location.host} to the allowed domains?\n\n${t}`),new Error(t)}},i=r;return e})(),"object"==typeof n&&"object"==typeof e?e.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof n?n.MpSdk=i():r.MpSdk=i()},{}],2:[function(t,e,n){},{}],3:[function(t,e,n){e.exports=function(t){var e=1,n=t.element||document.getElementById(t.id),r=Number(t.width)||n.offsetWidth,i=Number(t.height)||n.offsetHeight,o=t.valign||"center",a=t.halign||"center",s=t.fit||"cover",l=t.scale;function c(){switch(o){case"top":o=0;break;case"center":o=.5;break;case"bottom":o=1;break;default:o=Number(o)/100}}function u(){switch(a){case"left":a=0;break;case"center":a=.5;break;case"right":a=1;break;default:a=Number(a)/100}}function d(){var t=n.parentElement.offsetWidth,c=n.parentElement.offsetHeight,u=0-(r*e-t),h=0-(i*e-c);t&&c?(e="cover"===s?t>c/i*r?t/r:c/i:"contain"===s?c>t/r*i?t/r:c/i:1,l?n.style.transform="scale("+e+")":(n.style.width=r*e+"px",n.style.height=i*e+"px"),n.style.left=t!==r*e?u*a+"px":"0px",n.style.top=c!==i*e?h*o+"px":"0px"):setTimeout(d,30)}n.style.position="absolute",n.parentElement.style.overflow="hidden",l&&(n.style.transformOrigin="left top"),-1===["relative","absolute","fixed"].indexOf(window.getComputedStyle(n.parentElement,null).getPropertyValue("position"))&&(n.parentElement.style.position="relative"),c(),u(),d(),this.update=d,this.setWidth=function(t){r=Number(t)},this.setHeight=function(t){i=Number(t)},this.setValign=function(t){o=t,c()},this.setHalign=function(t){a=t,u()},this.setFit=function(t){s=t},this.getWidth=function(){return Number(r)},this.getHeight=function(){return Number(i)},this.getCurrentWidth=function(){return e*r},this.getCurrentHeight=function(){return e*i},this.getValign=function(){return o},this.getHalign=function(){return a},this.getFit=function(){return s},this.getScale=function(){return e}}},{}],4:[function(t,e,n){!function(t,r){"object"==typeof n&&void 0!==e?r(n):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t} /*! * GSAP 3.7.1 * https://greensock.com * * @license Copyright 2008-2021, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var r,i,o,a,s,l,c,u,d,h,p,f,m,v,g,y,_,b,w,x,S,C,k,T,E,M,A,I,O={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},P={duration:.5,overwrite:!1,delay:0},N=1e8,D=1e-8,R=2*Math.PI,L=R/4,F=0,$=Math.sqrt,B=Math.cos,j=Math.sin,z=function(t){return"string"==typeof t},Y=function(t){return"function"==typeof t},H=function(t){return"number"==typeof t},U=function(t){return void 0===t},V=function(t){return"object"==typeof t},W=function(t){return!1!==t},G=function(){return"undefined"!=typeof window},q=function(t){return Y(t)||z(t)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},K=Array.isArray,J=/(?:-?\.?\d|\.)+/gi,Z=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Q=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,tt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,et=/[+-]=-?[.\d]+/,nt=/[^,'"\[\]\s]+/gi,rt=/[\d.+\-=]+(?:e[-+]\d*)*/i,it={},ot={},at=function(t){return(ot=It(t,it))&&yn},st=function(t,e){return!e&&void 0},lt=function(t,e){return t&&(it[t]=e)&&ot&&(ot[t]=e)||it},ct=function(){return 0},ut={},dt=[],ht={},pt={},ft={},mt=30,vt=[],gt="",yt=function(t){var e,n,r=t[0];if(V(r)||Y(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=vt.length;n--&&!vt[n].targetTest(r););e=vt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Ye(t[n],e)))||t.splice(n,1);return t},_t=function(t){return t._gsap||yt(se(t))[0]._gsap},bt=function(t,e,n){return(n=t[e])&&Y(n)?t[e]():U(n)&&t.getAttribute&&t.getAttribute(e)||n},wt=function(t,e){return(t=t.split(",")).forEach(e)||t},xt=function(t){return Math.round(1e5*t)/1e5||0},St=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++rt._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Ft=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},$t=function t(e){return!e||e._ts&&t(e.parent)},Bt=function(t){return t._repeat?jt(t._tTime,t=t.duration()+t._rDelay)*t:0},jt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},zt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Yt=function(t){return t._end=xt(t._start+(t._tDur/Math.abs(t._ts||t._rts||D)||0))},Ht=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=xt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Yt(t),n._dirty||Lt(n,t)),t},Ut=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=zt(t.rawTime(),e),(!e._dur||ne(0,e.totalDuration(),n)-e._tTime>D)&&e.render(n,!0)),Lt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Vt=function(t,e,n,r){return e.parent&&Rt(e),e._start=xt((H(n)?n:n||t!==i?Qt(t,n,e):t._time)+e._delay),e._end=xt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,a=t[r];if(i)for(o=e[i];a&&a[i]>o;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),Xt(e)||(t._recent=e),r||Ut(t,e),t},Wt=function(t,e){return it.ScrollTrigger?it.ScrollTrigger.create(e,t):void 0},Gt=function(t,e,n,r){return Xe(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==Ae.frame?(dt.push(t),t._lazy=[e,r],1):void 0:1},qt=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Xt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Kt=function(t,e,n,r){var i=t._repeat,o=xt(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:xt(o*(i+1)+t._rDelay*i):o,a&&!r?Ht(t,t._tTime=t._tDur*a):t.parent&&Yt(t),n||Lt(t.parent,t),t},Jt=function(t){return t instanceof Ue?Lt(t):Kt(t,t._dur)},Zt={_start:0,endTime:ct,totalDuration:ct},Qt=function t(e,n,r){var i,o,a,s=e.labels,l=e._recent||Zt,c=e.duration()>=N?l.endTime(!1):e._dur;return z(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=c),s[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(o=o/100*(K(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:c+o)):null==n?c:+n},te=function(t,e,n){var r,i,o=H(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=W(i.vars.inherit)&&i.parent;s.immediateRender=W(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new Qe(e[0],s,e[a+1])},ee=function(t,e){return t||0===t?e(t):e},ne=function(t,e,n){return ne?e:n},re=function(t){if("string"!=typeof t)return"";var e=rt.exec(t);return e?t.substr(e.index+e[0].length):""},ie=[].slice,oe=function(t,e){return t&&V(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&V(t[0]))&&!t.nodeType&&t!==o},ae=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return z(t)&&!e||oe(t,1)?(r=n).push.apply(r,se(t)):n.push(t)}))||n},se=function(t,e,n){return!z(t)||n||!a&&Ie()?K(t)?ae(t,n):oe(t)?ie.call(t,0):t?[t]:[]:ie.call((e||s).querySelectorAll(t),0)},le=function(t){return t.sort((function(){return.5-Math.random()}))},ce=function(t){if(Y(t))return t;var e=V(t)?t:{each:t},n=Fe(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},a=r>0&&r<1,s=isNaN(r)||a,l=e.axis,c=r,u=r;return z(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!a&&s&&(c=r[0],u=r[1]),function(t,a,d){var h,p,f,m,v,g,y,_,b,w=(d||e).length,x=o[w];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,N])[1])){for(y=-N;y<(y=d[b++].getBoundingClientRect().left)&&by&&(y=v),v<_&&(_=v);"random"===r&&le(x),x.max=y-_,x.min=_,x.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:l?"y"===l?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),x.b=w<0?i-w:i,x.u=re(e.amount||e.each)||0,n=n&&w<0?Re(n):n}return w=(x[t]-x.min)/x.max||0,xt(x.b+(n?n(w):w)*x.v)+x.u}},ue=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(n){var r=Math.round(parseFloat(n)/t)*t*e;return(r-r%1)/e+(H(n)?0:re(n))}},de=function(t,e){var n,r,i=K(t);return!i&&V(t)&&(n=i=t.radius||N,t.values?(t=se(t.values),(r=!H(t[0]))&&(n*=n)):t=ue(t.increment)),ee(e,i?Y(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,o,a=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=N,c=0,u=t.length;u--;)(i=r?(i=t[u].x-a)*i+(o=t[u].y-s)*o:Math.abs(t[u]-a))(i=Math.abs(i))&&(o=r,s=i);return o},ge=function(t,e,n){var r,i,o=t.vars,a=o[e];if(a)return r=o[e+"Params"],i=o.callbackScope||t,n&&dt.length&&Ct(),r?a.apply(i,r):a.call(i)},ye=function(t){return Rt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&ge(t,"onInterrupt"),t},_e=function(t){var e=(t=!t.name&&t.default||t).name,n=Y(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:ct,render:cn,add:Ge,kill:dn,modifier:un,rawVars:0},o={targetTest:0,get:0,getSetter:on,aliases:{},register:0};if(Ie(),t!==r){if(pt[e])return;Mt(r,Mt(Pt(t,i),o)),It(r.prototype,It(i,Pt(t,o))),pt[r.prop=e]=r,t.targetTest&&(vt.push(r),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}lt(e,r),t.register&&t.register(yn,r,fn)},be=255,we={aqua:[0,be,be],lime:[0,be,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,be],navy:[0,0,128],white:[be,be,be],olive:[128,128,0],yellow:[be,be,0],orange:[be,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[be,0,0],pink:[be,192,203],cyan:[0,be,be],transparent:[be,be,be,0]},xe=function(t,e,n){return(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*be+.5|0},Se=function(t,e,n){var r,i,o,a,s,l,c,u,d,h,p=t?H(t)?[t>>16,t>>8&be,t&be]:0:we.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),we[t])p=we[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&be,p&be,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&be,t&be]}else if("hsl"===t.substr(0,3))if(p=h=t.match(J),e){if(~t.indexOf("="))return p=t.match(Z),n&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,s=+p[1]/100,r=2*(l=+p[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),p.length>3&&(p[3]*=1),p[0]=xe(a+1/3,r,i),p[1]=xe(a,r,i),p[2]=xe(a-1/3,r,i);else p=t.match(J)||we.transparent;p=p.map(Number)}return e&&!h&&(r=p[0]/be,i=p[1]/be,o=p[2]/be,l=((c=Math.max(r,i,o))+(u=Math.min(r,i,o)))/2,c===u?a=s=0:(d=c-u,s=l>.5?d/(2-c-u):d/(c+u),a=c===r?(i-o)/d+(i_&&(w+=a-b),((n=(i=(x+=a)-w)-C)>0||s)&&(o=++m.frame,v=i-1e3*m.time,m.time=i/=1e3,C+=n+(n>=S?4:S-n),r=1),s||(h=p(t)),r)for(g=0;g=e&&g--},_listeners:k=[]}),Ie=function(){return!d&&Ae.wake()},Oe={},Pe=/^[\d.\-M][\d.\-,\s]/,Ne=/["']/g,De=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,l=o.length;s1&&a.config?a.config.apply(null,~t.indexOf("{")?[De(o[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),a=o/R*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*j((t-a)*o)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Be(s);return o=R/o,l.config=function(n,r){return t(e,n,r)},l},ze=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Be(r);return i.config=function(n){return t(e,n)},i};wt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;$e(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Oe.Linear.easeNone=Oe.none=Oe.Linear.easeIn,$e("Elastic",je("in"),je("out"),je()),E=7.5625,A=1/(M=2.75),$e("Bounce",(function(t){return 1-I(1-t)}),I=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Kt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ie(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ht(this,t),!n._dp||n.parent||Ut(n,this);n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Vt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===D||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),kt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Bt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Bt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?jt(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?zt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,Ft(this.totalTime(ne(-this._delay,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ie(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==D&&(this._tTime-=D)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Vt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(W(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?zt(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Jt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Jt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Qt(this,t),W(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,W(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Y(t)?t:Et,i=function(){var t=e.then;e.then=null,Y(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){ye(this)},t}();Mt(He.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function r(e,r){var o;return void 0===e&&(e={}),(o=t.call(this,e)||this).labels={},o.smoothChildTiming=!!e.smoothChildTiming,o.autoRemoveChildren=!!e.autoRemoveChildren,o._sort=W(e.sortChildren),i&&Vt(e.parent||i,n(o),r),e.reversed&&o.reverse(),e.paused&&o.paused(!0),e.scrollTrigger&&Wt(n(o),e.scrollTrigger),o}e(r,t);var o=r.prototype;return o.to=function(t,e,n){return te(0,arguments,this),this},o.from=function(t,e,n){return te(1,arguments,this),this},o.fromTo=function(t,e,n,r){return te(2,arguments,this),this},o.set=function(t,e,n){return e.duration=0,e.parent=this,Nt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,Qt(this,n),1),this},o.call=function(t,e,n){return Vt(this,Qe.delayedCall(0,t,e),n)},o.staggerTo=function(t,e,n,r,i,o,a){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new Qe(t,n,Qt(this,i)),this},o.staggerFrom=function(t,e,n,r,i,o,a){return n.runBackwards=1,Nt(n).immediateRender=W(n.immediateRender),this.staggerTo(t,e,n,r,i,o,a)},o.staggerFromTo=function(t,e,n,r,i,o,a,s){return r.startAt=n,Nt(r).immediateRender=W(r.immediateRender),this.staggerTo(t,e,r,i,o,a,s)},o.render=function(t,e,n){var r,o,a,s,l,c,u,d,h,p,f,m,v=this._time,g=this._dirty?this.totalDuration():this._tDur,y=this._dur,_=this!==i&&t>g-D&&t>=0?g:ty&&(r=y)),p=jt(this._tTime,l),!v&&this._tTime&&p!==s&&(p=s),f&&1&s&&(r=y-r,m=1),s!==p&&!this._lock){var w=f&&1&p,x=w===(f&&1&s);if(se)for(r=t._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start=v&&t>=0)for(o=this._first;o;){if(a=o._next,(o._act||r>=o._start)&&o._ts&&u!==o){if(o.parent!==this)return this.render(t,e,n);if(o.render(o._ts>0?(r-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(r-o._start)*o._ts,e,n),r!==this._time||!this._ts&&!c){u=0,a&&(_+=this._zTime=-1e-8);break}}o=a}else{o=this._last;for(var S=t<0?t:r;o;){if(a=o._prev,(o._act||S<=o._end)&&o._ts&&u!==o){if(o.parent!==this)return this.render(t,e,n);if(o.render(o._ts>0?(S-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(S-o._start)*o._ts,e,n),r!==this._time||!this._ts&&!c){u=0,a&&(_+=this._zTime=S?-1e-8:D);break}}o=a}}if(u&&!e&&(this.pause(),u.render(r>=v?0:-1e-8)._zTime=r>=v?1:-1,this._ts))return this._start=h,Yt(this),this.render(t,e,n);this._onUpdate&&!e&&ge(this,"onUpdate",!0),(_===g&&g>=this.totalDuration()||!_&&v)&&(h!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((t||!y)&&(_===g&&this._ts>0||!_&&this._ts<0)&&Rt(this,1),e||t<0&&!v||!_&&!v&&g||(ge(this,_===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom())))}return this},o.add=function(t,e){var n=this;if(H(e)||(e=Qt(this,e,t)),!(t instanceof He)){if(K(t))return t.forEach((function(t){return n.add(t,e)})),this;if(z(t))return this.addLabel(t,e);if(!Y(t))return this;t=Qe.delayedCall(0,t)}return this!==t?Vt(this,t,e):this},o.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-N);for(var i=[],o=this._first;o;)o._start>=r&&(o instanceof Qe?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._next;return i},o.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},o.remove=function(t){return z(t)?this.removeLabel(t):Y(t)?this.killTweensOf(t):(Dt(this,t),t===this._recent&&(this._recent=this._last),Lt(this))},o.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=xt(Ae.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},o.addLabel=function(t,e){return this.labels[t]=Qt(this,e),this},o.removeLabel=function(t){return delete this.labels[t],this},o.addPause=function(t,e,n){var r=Qe.delayedCall(0,e||ct,n);return r.data="isPause",this._hasPause=1,Vt(this,r,Qt(this,t))},o.removePause=function(t){var e=this._first;for(t=Qt(this,t);e;)e._start===t&&"isPause"===e.data&&Rt(e),e=e._next},o.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Ve!==r[i]&&r[i].kill(t,e);return this},o.getTweensOf=function(t,e){for(var n,r=[],i=se(t),o=this._first,a=H(e);o;)o instanceof Qe?St(o._targets,i)&&(a?(!Ve||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},o.tweenTo=function(t,e){e=e||{};var n,r=this,i=Qt(r,t),o=e,a=o.startAt,s=o.onStart,l=o.onStartParams,c=o.immediateRender,u=Qe.to(r,Mt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale())||D,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale());u._dur!==t&&Kt(u,t,0,1).render(u._time,!0,!0),n=1}s&&s.apply(u,l||[])}},e));return c?u.render(0):u},o.tweenFromTo=function(t,e,n){return this.tweenTo(e,Mt({startAt:{time:Qt(this,t)}},n))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),ve(this,Qt(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),ve(this,Qt(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+D)},o.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return Lt(this)},o.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},o.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Lt(this)},o.totalDuration=function(t){var e,n,r,o=0,a=this,s=a._last,l=N;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>l&&a._sort&&s._ts&&!a._lock?(a._lock=1,Vt(a,s,n-s._delay,1)._lock=0):l=n,n<0&&s._ts&&(o-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),l=0),s._end>o&&s._ts&&(o=s._end),s=e;Kt(a,a===i&&a._time>o?a._time:o,1,1),a._dirty=0}return a._tDur},r.updateRoot=function(t){if(i._ts&&(kt(i,zt(t,i)),c=Ae.frame),Ae.frame>=mt){mt+=O.autoSleep||120;var e=i._first;if((!e||!e._ts)&&O.autoSleep&&Ae._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ae.sleep()}}},r}(He);Mt(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ve,We=function(t,e,n,r,i,o,a){var s,l,c,u,d,h,p,f,m=new fn(this._pt,t,e,0,1,ln,null,i),v=0,g=0;for(m.b=n,m.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=fe(r)),o&&(o(f=[n,r],t,e),n=f[0],r=f[1]),l=n.match(tt)||[];s=tt.exec(r);)u=s[0],d=r.substring(v,s.index),c?c=(c+1)%5:"rgba("===d.substr(-5)&&(c=1),u!==l[g++]&&(h=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:d||1===g?d:",",s:h,c:"="===u.charAt(1)?parseFloat(u.substr(2))*("-"===u.charAt(0)?-1:1):parseFloat(u)-h,m:c&&c<4?Math.round:0},v=tt.lastIndex);return m.c=v0&&!A&&(e._startAt=0),I&&n<=0)return void(n&&(e._zTime=n))}else!1===A&&(e._startAt=0);else if(T&&I)if(O)!A&&(e._startAt=0);else if(n&&(w=!1),s=Mt({overwrite:!1,data:"isFromStart",lazy:w&&W(x),immediateRender:w,stagger:0,parent:R},o),v&&(s[h.prop]=v),Rt(e._startAt=Qe.set(N,s)),n<0&&e._startAt.render(-1,!0),w){if(!n)return}else t(e._startAt,D);for(e._pt=0,x=I&&W(x)||x&&!I,a=0;a":e*w)}))})):S.forEach((function(t){return c.to(M,t,">")}));else{if(h=M.length,m=w?ce(w):ct,V(w))for(p in w)~Je.indexOf(p)&&(v||(v={}),v[p]=w[p]);for(u=0;up-D&&t>=0?p:tf&&(r=f)),(l=this._yoyo&&1&o)&&(d=this._yEase,r=f-r),s=jt(this._tTime,a),r===h&&!n&&this._initted)return this;o!==s&&(u&&this._yEase&&Le(u,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=n=1,this.render(xt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Gt(this,t<0?t:r,n,e))return this._tTime=0,this;if(f!==this._dur)return this.render(t,e,n)}if(this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(d||this._ease)(r/f),this._from&&(this.ratio=c=1-c),r&&!h&&!e&&(ge(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(t<0?t:!r&&l?-1e-8:u._dur*c,e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),ge(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&ge(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Rt(this,1),e||t<0&&!h||!m&&!h||(ge(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m0)&&this._prom()))}}else!function(t,e,n,r){var i,o,a,s=t.ratio,l=e<0||!e&&(!t._start&&qt(t)&&(t._initted||!Xt(t))||(t._ts<0||t._dp._ts<0)&&!Xt(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=ne(0,t._tDur,e),o=jt(u,c),a=jt(t._tTime,c),t._yoyo&&1&o&&(l=1-l),o!==a&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||r||t._zTime===D||!e&&t._zTime){if(!t._initted&&Gt(t,e,r,n))return;for(a=t._zTime,t._zTime=e||(n?D:0),n||(n=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=u,i=t._pt;i;)i.r(l,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&ge(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&ge(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Rt(t,1),n||(ge(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},a.targets=function(){return this._targets},a.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ye(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ve&&!0!==Ve.vars.overwrite)._first||ye(this),this.parent&&n!==this.timeline.totalDuration()&&Kt(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,a,s,l,c,u=this._targets,d=t?se(t):u,h=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(u,d))return"all"===e&&(this._pt=0),ye(this);for(r=this._op=this._op||[],"all"!==e&&(z(e)&&(s={},wt(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,o,a=t[0]?_t(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(r in n=It({},e),s)if(r in n)for(i=(o=s[r].split(",")).length;i--;)n[o[i]]=n[r];return n}(u,e)),c=u.length;c--;)if(~d.indexOf(u[c]))for(s in i=h[c],"all"===e?(r[c]=e,a=i,o={}):(o=r[c]=r[c]||{},a=e),a)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Dt(this,l,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&p&&ye(this),this},o.to=function(t,e){return new o(t,e,arguments[2])},o.from=function(t,e){return te(1,arguments)},o.delayedCall=function(t,e,n,r){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},o.fromTo=function(t,e,n){return te(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,n){return i.killTweensOf(t,e,n)},o}(He);Mt(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),wt("staggerTo,staggerFrom,staggerFromTo",(function(t){Qe[t]=function(){var e=new Ue,n=ie.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var tn=function(t,e,n){return t[e]=n},en=function(t,e,n){return t[e](n)},nn=function(t,e,n,r){return t[e](r.fp,n)},rn=function(t,e,n){return t.setAttribute(e,n)},on=function(t,e){return Y(t[e])?en:U(t[e])&&t.setAttribute?rn:tn},an=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},sn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ln=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},cn=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},un=function(t,e,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},dn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Dt(this,r,"_pt"):r.dep||(e=1),r=n;return!e},hn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},pn=function(t){for(var e,n,r,i,o=t._pt;o;){for(e=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},fn=function(){function t(t,e,n,r,i,o,a,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||an,this.d=a||this,this.set=s||tn,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=hn,this.m=t,this.mt=n,this.tween=e},t}();wt(gt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ut[t]=1})),it.TweenMax=it.TweenLite=Qe,it.TimelineLite=it.TimelineMax=Ue,i=new Ue({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),O.stringFilter=Me;var mn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n1){var r=t.map((function(t){return yn.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var o=pt[e],a=_t(t),s=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(e){var r=new o;u._pt=0,r.init(t,n?e+n:e,u,0,[t]),r.render(1,r),u._pt&&cn(1,u)}:a.set(t,s);return o?l:function(e){return l(t,s,n?e+n:e,a,1)}},isTweening:function(t){return i.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Fe(t.ease,P.ease)),Ot(P,t||{})},config:function(t){return Ot(O,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!pt[t]&&!it[t]&&st()})),ft[e]=function(t,e,r){return n(se(t),Mt(e||{},i),r)},o&&(Ue.prototype[e]=function(t,n,r){return this.add(ft[e](t,V(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Oe[t]=Fe(e)},parseEase:function(t,e){return arguments.length?Fe(t,e):Oe},getById:function(t){return i.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,o=new Ue(t);for(o.smoothChildTiming=W(t.smoothChildTiming),i.remove(o),o._dp=0,o._time=o._tTime=i._time,n=i._first;n;)r=n._next,!e&&!n._dur&&n instanceof Qe&&n.vars.onComplete===n._targets[0]||Vt(o,n,n._start-n._delay),n=r;return Vt(i,o,0),o},utils:{wrap:function t(e,n,r){var i=n-e;return K(e)?pe(e,t(0,e.length),n):ee(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,o=2*i;return K(e)?pe(e,t(0,e.length-1),n):ee(r,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:ce,random:he,snap:de,normalize:function(t,e,n){return me(t,e,0,1,n)},getUnit:re,clamp:function(t,e,n){return ee(n,(function(n){return ne(t,e,n)}))},splitColor:Se,toArray:se,selector:function(t){return t=se(t)[0]||st()||{},function(e){var n=t.current||t.nativeElement||t;return se(e,n.querySelectorAll?n:n===t?st()||s.createElement("div"):t)}},mapRange:me,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0?fr[i]:"")+t},vr=function(){"undefined"!=typeof window&&window.document&&(_n=window,bn=_n.document,wn=bn.documentElement,Sn=hr("div")||{style:{}},hr("div"),ur=mr(ur),dr=ur+"Origin",Sn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",kn=!!mr("perspective"),xn=1)},gr=function t(e){var n,r=hr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(wn.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),wn.removeChild(r),this.style.cssText=a,n},yr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},_r=function(t){var e;try{e=t.getBBox()}catch(n){e=gr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===gr||(e=gr.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+yr(t,["x","cx","x1"])||0,y:+yr(t,["y","cy","y1"])||0,width:0,height:0}},br=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!_r(t))},wr=function(t,e){if(e){var n=t.style;e in Un&&e!==dr&&(e=ur),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(qn,"-$1").toLowerCase())):n.removeAttribute(e)}},xr=function(t,e,n,r,i,o){var a=new fn(t._pt,e,n,0,1,o?rr:nr);return t._pt=a,a.b=r,a.e=i,t._props.push(n),a},Sr={deg:1,rad:1,turn:1},Cr=function t(e,n,r,i){var o,a,s,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",d=Sn.style,h=Xn.test(n),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(h?"Width":"Height"),m=100,v="px"===i,g="%"===i;return i===u||!c||Sr[i]||Sr[u]?c:("px"!==u&&!v&&(c=t(e,n,r,"px")),l=e.getCTM&&br(e),!g&&"%"!==u||!Un[n]&&!~n.indexOf("adius")?(d[h?"width":"height"]=m+(v?u:i),a=~n.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==bn&&a.appendChild||(a=bn.body),(s=a._gsap)&&g&&s.width&&h&&s.time===Ae.time?xt(c/s.width*m):((g||"%"===u)&&(d.position=pr(e,"position")),a===e&&(d.position="static"),a.appendChild(Sn),o=Sn[f],a.removeChild(Sn),d.position="absolute",h&&g&&((s=_t(a)).time=Ae.time,s.width=a[f]),xt(v?o*c/m:o&&c?m/o*c:0))):(o=l?e.getBBox()[h?"width":"height"]:e[f],xt(g?c/o*m:c/100*o)))},kr=function(t,e,n,r){var i;return xn||vr(),e in Jn&&"transform"!==e&&~(e=Jn[e]).indexOf(",")&&(e=e.split(",")[0]),Un[e]&&"transform"!==e?(i=Lr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Fr(pr(t,dr))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Ar[e]&&Ar[e](t,e,n)||pr(t,e)||bt(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Cr(t,e,i,n)+n:i},Tr=function(t,e,n,r){if(!n||"none"===n){var i=mr(e,t,1),o=i&&pr(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=pr(t,"borderTopColor"))}var a,s,l,c,u,d,h,p,f,m,v,g,y=new fn(this._pt,t.style,e,0,1,ln),_=0,b=0;if(y.b=n,y.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=pr(t,e)||r,t.style[e]=n),Me(a=[n,r]),r=a[1],l=(n=a[0]).match(Q)||[],(r.match(Q)||[]).length){for(;s=Q.exec(r);)h=s[0],f=r.substring(_,s.index),u?u=(u+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(u=1),h!==(d=l[b++]||"")&&(c=parseFloat(d)||0,v=d.substr((c+"").length),(g="="===h.charAt(1)?+(h.charAt(0)+"1"):0)&&(h=h.substr(2)),p=parseFloat(h),m=h.substr((p+"").length),_=Q.lastIndex-m.length,m||(m=m||O.units[e]||v,_===r.length&&(r+=m,y.e+=m)),v!==m&&(c=Cr(t,e,d,m)||0),y._pt={_next:y._pt,p:f||1===b?f:",",s:c,c:g?g*p:p-c,m:u&&u<4||"zIndex"===e?Math.round:0});y.c=_-1;)n=s[i],Un[n]&&(r=1,n="transformOrigin"===n?dr:ur),wr(o,n);r&&(wr(o,ur),l&&(l.svg&&o.removeAttribute("transform"),Lr(o,1),l.uncache=1))}},Ar={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new fn(t._pt,e,n,0,0,Mr);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},Ir=[1,0,0,1,0,0],Or={},Pr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Nr=function(t){var e=pr(t,ur);return Pr(e)?Ir:e.substr(7).match(Z).map(xt)},Dr=function(t,e){var n,r,i,o,a=t._gsap||_t(t),s=t.style,l=Nr(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ir:l:(l!==Ir||t.offsetParent||t===wn||a.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,r=t.nextSibling,wn.appendChild(t)),l=Nr(t),i?s.display=i:wr(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):wn.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Rr=function(t,e,n,r,i,o){var a,s,l,c=t._gsap,u=i||Dr(t,!0),d=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,m=u[0],v=u[1],g=u[2],y=u[3],_=u[4],b=u[5],w=e.split(" "),x=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?u!==Ir&&(s=m*y-v*g)&&(l=x*(-v/s)+S*(m/s)-(m*b-v*_)/s,x=x*(y/s)+S*(-g/s)+(g*b-y*_)/s,S=l):(x=(a=_r(t)).x+(~w[0].indexOf("%")?x/100*a.width:x),S=a.y+(~(w[1]||w[0]).indexOf("%")?S/100*a.height:S)),r||!1!==r&&c.smooth?(_=x-d,b=S-h,c.xOffset=p+(_*m+b*g)-_,c.yOffset=f+(_*v+b*y)-b):c.xOffset=c.yOffset=0,c.xOrigin=x,c.yOrigin=S,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[dr]="0px 0px",o&&(xr(o,c,"xOrigin",d,x),xr(o,c,"yOrigin",h,S),xr(o,c,"xOffset",p,c.xOffset),xr(o,c,"yOffset",f,c.yOffset)),t.setAttribute("data-svg-origin",x+" "+S)},Lr=function(t,e){var n=t._gsap||new Ye(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,a,s,l,c,u,d,h,p,f,m,v,g,y,_,b,w,x,S,C,k,T,E,M,A,I,P,N,D,R,L=t.style,F=n.scaleX<0,$="px",B="deg",j=pr(t,dr)||"0";return r=i=o=l=c=u=d=h=p=0,a=s=1,n.svg=!(!t.getCTM||!br(t)),v=Dr(t,n.svg),n.svg&&(T=(!n.uncache||"0px 0px"===j)&&!e&&t.getAttribute("data-svg-origin"),Rr(t,T||j,!!T||n.originIsAbsolute,!1!==n.smooth,v)),f=n.xOrigin||0,m=n.yOrigin||0,v!==Ir&&(b=v[0],w=v[1],x=v[2],S=v[3],r=C=v[4],i=k=v[5],6===v.length?(a=Math.sqrt(b*b+w*w),s=Math.sqrt(S*S+x*x),l=b||w?Gn(w,b)*Vn:0,(d=x||S?Gn(x,S)*Vn+l:0)&&(s*=Math.abs(Math.cos(d*Wn))),n.svg&&(r-=f-(f*b+m*x),i-=m-(f*w+m*S))):(R=v[6],N=v[7],A=v[8],I=v[9],P=v[10],D=v[11],r=v[12],i=v[13],o=v[14],c=(g=Gn(R,P))*Vn,g&&(T=C*(y=Math.cos(-g))+A*(_=Math.sin(-g)),E=k*y+I*_,M=R*y+P*_,A=C*-_+A*y,I=k*-_+I*y,P=R*-_+P*y,D=N*-_+D*y,C=T,k=E,R=M),u=(g=Gn(-x,P))*Vn,g&&(y=Math.cos(-g),D=S*(_=Math.sin(-g))+D*y,b=T=b*y-A*_,w=E=w*y-I*_,x=M=x*y-P*_),l=(g=Gn(w,b))*Vn,g&&(T=b*(y=Math.cos(g))+w*(_=Math.sin(g)),E=C*y+k*_,w=w*y-b*_,k=k*y-C*_,b=T,C=E),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=xt(Math.sqrt(b*b+w*w+x*x)),s=xt(Math.sqrt(k*k+R*R)),g=Gn(C,k),d=Math.abs(g)>2e-4?g*Vn:0,p=D?1/(D<0?-D:D):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Pr(pr(t,ur)),T&&t.setAttribute("transform",T))),Math.abs(d)>90&&Math.abs(d)<270&&(F?(a*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),n.x=r-((n.xPercent=r&&(n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+$,n.y=i-((n.yPercent=i&&(n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+$,n.z=o+$,n.scaleX=xt(a),n.scaleY=xt(s),n.rotation=xt(l)+B,n.rotationX=xt(c)+B,n.rotationY=xt(u)+B,n.skewX=d+B,n.skewY=h+B,n.transformPerspective=p+$,(n.zOrigin=parseFloat(j.split(" ")[2])||0)&&(L[dr]=Fr(j)),n.xOffset=n.yOffset=0,n.force3D=O.force3D,n.renderTransform=n.svg?Ur:kn?Hr:Br,n.uncache=0,n},Fr=function(t){return(t=t.split(" "))[0]+" "+t[1]},$r=function(t,e,n){var r=re(e);return xt(parseFloat(e)+parseFloat(Cr(t,"x",n+"px",r)))+r},Br=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Hr(t,e)},jr="0deg",zr="0px",Yr=") ",Hr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,s=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,d=n.skewX,h=n.skewY,p=n.scaleX,f=n.scaleY,m=n.transformPerspective,v=n.force3D,g=n.target,y=n.zOrigin,_="",b="auto"===v&&t&&1!==t||!0===v;if(y&&(u!==jr||c!==jr)){var w,x=parseFloat(c)*Wn,S=Math.sin(x),C=Math.cos(x);x=parseFloat(u)*Wn,w=Math.cos(x),o=$r(g,o,S*w*-y),a=$r(g,a,-Math.sin(x)*-y),s=$r(g,s,C*w*-y+y)}m!==zr&&(_+="perspective("+m+Yr),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(b||o!==zr||a!==zr||s!==zr)&&(_+=s!==zr||b?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+Yr),l!==jr&&(_+="rotate("+l+Yr),c!==jr&&(_+="rotateY("+c+Yr),u!==jr&&(_+="rotateX("+u+Yr),d===jr&&h===jr||(_+="skew("+d+", "+h+Yr),1===p&&1===f||(_+="scale("+p+", "+f+Yr),g.style[ur]=_||"translate(0, 0)"},Ur=function(t,e){var n,r,i,o,a,s=e||this,l=s.xPercent,c=s.yPercent,u=s.x,d=s.y,h=s.rotation,p=s.skewX,f=s.skewY,m=s.scaleX,v=s.scaleY,g=s.target,y=s.xOrigin,_=s.yOrigin,b=s.xOffset,w=s.yOffset,x=s.forceCSS,S=parseFloat(u),C=parseFloat(d);h=parseFloat(h),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),h+=f),h||p?(h*=Wn,p*=Wn,n=Math.cos(h)*m,r=Math.sin(h)*m,i=Math.sin(h-p)*-v,o=Math.cos(h-p)*v,p&&(f*=Wn,a=Math.tan(p-f),i*=a=Math.sqrt(1+a*a),o*=a,f&&(a=Math.tan(f),n*=a=Math.sqrt(1+a*a),r*=a)),n=xt(n),r=xt(r),i=xt(i),o=xt(o)):(n=m,o=v,r=i=0),(S&&!~(u+"").indexOf("px")||C&&!~(d+"").indexOf("px"))&&(S=Cr(g,"x",u,"px"),C=Cr(g,"y",d,"px")),(y||_||b||w)&&(S=xt(S+y-(y*n+_*i)+b),C=xt(C+_-(y*r+_*o)+w)),(l||c)&&(a=g.getBBox(),S=xt(S+l/100*a.width),C=xt(C+c/100*a.height)),a="matrix("+n+","+r+","+i+","+o+","+S+","+C+")",g.setAttribute("transform",a),x&&(g.style[ur]=a)},Vr=function(t,e,n,r,i,o){var a,s,l=360,c=z(i),u=parseFloat(i)*(c&&~i.indexOf("rad")?Vn:1),d=o?u*o:u-r,h=r+d+"deg";return c&&("short"===(a=i.split("_")[1])&&(d%=l)!==d%180&&(d+=d<0?l:-360),"cw"===a&&d<0?d=(d+36e9)%l-~~(d/l)*l:"ccw"===a&&d>0&&(d=(d-36e9)%l-~~(d/l)*l)),t._pt=s=new fn(t._pt,e,n,r,d,Qn),s.e=h,s.u="deg",t._props.push(n),s},Wr=function(t,e){for(var n in e)t[n]=e[n];return t},Gr=function(t,e,n){var r,i,o,a,s,l,c,u=Wr({},n._gsap),d=n.style;for(i in u.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),d[ur]=e,r=Lr(n,1),wr(n,ur),n.setAttribute("transform",o)):(o=getComputedStyle(n)[ur],d[ur]=e,r=Lr(n,1),d[ur]=o),Un)(o=u[i])!==(a=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=re(o)!==(c=re(a))?Cr(n,i,o,c):parseFloat(o),l=parseFloat(a),t._pt=new fn(t._pt,r,i,s,l-s,Zn),t._pt.u=c||0,t._props.push(i));Wr(r,u)};wt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",o="Left",a=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return e<2?t+n:"border"+n+t}));Ar[e>1?"border"+t:t]=function(t,e,n,r,i){var o,s;if(arguments.length<4)return o=a.map((function(e){return kr(t,e,n)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,i)}}));var qr,Xr,Kr,Jr={name:"css",register:vr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,a,s,l,c,u,d,h,p,f,m,v,g,y,_,b,w,x,S,C=this._props,k=t.style,T=n.vars.startAt;for(d in xn||vr(),e)if("autoRound"!==d&&(a=e[d],!pt[d]||!qe(d,e,n,r,t,i)))if(c=typeof a,u=Ar[d],"function"===c&&(c=typeof(a=a.call(n,r,t,i))),"string"===c&&~a.indexOf("random(")&&(a=fe(a)),u)u(this,t,d,a,n)&&(_=1);else if("--"===d.substr(0,2))o=(getComputedStyle(t).getPropertyValue(d)+"").trim(),a+="",Te.lastIndex=0,Te.test(o)||(h=re(o),p=re(a)),p?h!==p&&(o=Cr(t,d,o,p)+p):h&&(a+=h),this.add(k,"setProperty",o,a,r,i,0,0,d),C.push(d);else if("undefined"!==c){if(T&&d in T?(o="function"==typeof T[d]?T[d].call(n,r,t,i):T[d],d in O.units&&!re(o)&&(o+=O.units[d]),"="===(o+"").charAt(1)&&(o=kr(t,d))):o=kr(t,d),l=parseFloat(o),(f="string"===c&&"="===a.charAt(1)?+(a.charAt(0)+"1"):0)&&(a=a.substr(2)),s=parseFloat(a),d in Jn&&("autoAlpha"===d&&(1===l&&"hidden"===kr(t,"visibility")&&s&&(l=0),xr(this,k,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==d&&"transform"!==d&&~(d=Jn[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Un)if(v||((g=t._gsap).renderTransform&&!e.parseTransform||Lr(t,e.parseTransform),y=!1!==e.smoothOrigin&&g.smooth,(v=this._pt=new fn(this._pt,k,ur,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new fn(this._pt,g,"scaleY",g.scaleY,(f?f*s:s-g.scaleY)||0),C.push("scaleY",d),d+="X";else{if("transformOrigin"===d){w=void 0,x=void 0,S=void 0,w=(b=a).split(" "),x=w[0],S=w[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==S&&"right"!==S||(b=x,x=S,S=b),w[0]=Er[x]||x,w[1]=Er[S]||S,a=w.join(" "),g.svg?Rr(t,a,0,y,0,this):((p=parseFloat(a.split(" ")[2])||0)!==g.zOrigin&&xr(this,g,"zOrigin",g.zOrigin,p),xr(this,k,d,Fr(o),Fr(a)));continue}if("svgOrigin"===d){Rr(t,a,1,y,0,this);continue}if(d in Or){Vr(this,g,d,l,a,f);continue}if("smoothOrigin"===d){xr(this,g,"smooth",g.smooth,a);continue}if("force3D"===d){g[d]=a;continue}if("transform"===d){Gr(this,a,t);continue}}else d in k||(d=mr(d)||d);if(m||(s||0===s)&&(l||0===l)&&!Kn.test(a)&&d in k)s||(s=0),(h=(o+"").substr((l+"").length))!==(p=re(a)||(d in O.units?O.units[d]:h))&&(l=Cr(t,d,o,p)),this._pt=new fn(this._pt,m?g:k,d,l,f?f*s:s-l,m||"px"!==p&&"zIndex"!==d||!1===e.autoRound?Zn:er),this._pt.u=p||0,h!==p&&(this._pt.b=o,this._pt.r=tr);else if(d in k)Tr.call(this,t,d,o,a);else{if(!(d in t))continue;this.add(t,d,o||t[d],a,r,i)}C.push(d)}_&&pn(this)},get:kr,aliases:Jn,getSetter:function(t,e,n){var r=Jn[e];return r&&r.indexOf(",")<0&&(e=r),e in Un&&e!==dr&&(t._gsap.x||kr(t,"x"))?n&&Cn===n?"scale"===e?sr:ar:(Cn=n||{})&&("scale"===e?lr:cr):t.style&&!U(t.style[e])?ir:~e.indexOf("-")?or:on(t,e)},core:{_removeProperty:wr,_getMatrix:Dr}};yn.utils.checkPrefix=mr,Kr=wt((qr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Xr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Un[t]=1})),wt(Xr,(function(t){O.units[t]="deg",Or[t]=1})),Jn[Kr[13]]=qr+","+Xr,wt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Jn[e[1]]=Kr[e[0]]})),wt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){O.units[t]="px"})),yn.registerPlugin(Jr);var Zr=yn.registerPlugin(Jr)||yn,Qr=Zr.core.Tween;t.Back=$n,t.Bounce=jn,t.CSSPlugin=Jr,t.Circ=Hn,t.Cubic=Nn,t.Elastic=Fn,t.Expo=Yn,t.Linear=On,t.Power0=Tn,t.Power1=En,t.Power2=Mn,t.Power3=An,t.Power4=In,t.Quad=Pn,t.Quart=Dn,t.Quint=Rn,t.Sine=zn,t.SteppedEase=Bn,t.Strong=Ln,t.TimelineLite=Ue,t.TimelineMax=Ue,t.TweenLite=Qe,t.TweenMax=Qr,t.default=Zr,t.gsap=Zr,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}))},{}],5:[function(t,e,n){(function(r){(function(){!function(t){if("object"==typeof n&&void 0!==e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:this).Marzipano=t()}}((function(){var e;return function e(n,r,i){function o(s,l){if(!r[s]){if(!n[s]){var c="function"==typeof t&&t;if(!l&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=r[s]={exports:{}};n[s][0].call(d.exports,(function(t){return o(n[s][1][t]||t)}),d,d.exports,e,n,r,i)}return r[s].exports}for(var a="function"==typeof t&&t,s=0;s1&&n[1]||""}function n(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,a=e(/(ipod|iphone|ipad)/i).toLowerCase(),s=!/like android/i.test(t)&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),c=!l&&/nexus\s*[0-9]+/i.test(t),u=/CrOS/.test(t),d=/silk/i.test(t),h=/sailfish/i.test(t),p=/tizen/i.test(t),f=/(web|hpw)(o|0)s/i.test(t),m=/windows phone/i.test(t),v=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),g=!a&&!d&&/macintosh/i.test(t),y=!s&&!h&&!p&&!f&&/linux/i.test(t),_=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),b=e(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t)&&!/tablet pc/i.test(t),x=!w&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:o,version:b||e(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:o,version:e(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||b}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:o,version:b||e(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?i={name:"NAVER Whale browser",whale:o,version:e(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?i={name:"MZ Browser",mzbrowser:o,version:e(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:o,version:b||e(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?i={name:"Focus",focus:o,version:e(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:o,version:b||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:o,version:e(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:o,version:e(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:o,version:e(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:o,version:e(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:o,version:e(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:o,version:e(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:o},_?(i.msedge=o,i.version=_):(i.msie=o,i.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:o,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?i={name:"Chrome",osname:"Chrome OS",chromeos:o,chromeBook:o,chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:o,version:_}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:o,version:e(/vivaldi\/(\d+(\.\d+)?)/i)||b}:h?i={name:"Sailfish",osname:"Sailfish OS",sailfish:o,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:o,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:o,version:e(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=o,i.osname="Firefox OS")):d?i={name:"Amazon Silk",silk:o,version:e(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:o,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:o,version:e(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:o,version:b||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(i={name:"WebOS",osname:"WebOS",webos:o,version:b||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=o)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:o,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:p?i={name:"Tizen",osname:"Tizen",tizen:o,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||b}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:o,version:e(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||b}:/chromium/i.test(t)?i={name:"Chromium",chromium:o,version:e(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||b}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:o,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?i={name:"Android",version:b}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:o},b&&(i.version=b)):a?(i={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},b&&(i.version=b)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:o,version:e(/googlebot\/(\d+(\.\d+))/i)||b}:{name:e(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=o):(i.name=i.name||"Webkit",i.webkit=o),!i.version&&b&&(i.version=b)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=o,i.version=i.version||e(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!s&&!i.silk?!i.windowsphone&&a?(i[a]=o,i.ios=o,i.osname="iOS"):g?(i.mac=o,i.osname="macOS"):S?(i.xbox=o,i.osname="Xbox"):v?(i.windows=o,i.osname="Windows"):y&&(i.linux=o,i.osname="Linux"):(i.android=o,i.osname="Android");var C="";i.windows?C=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(e(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?C=e(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?C=(C=e(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):a?C=(C=e(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):s?C=e(/android[ \/-](\d+(\.\d+)*)/i):i.webos?C=e(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?C=e(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?C=e(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(C=e(/tizen[\/\s](\d+(\.\d+)*)/i)),C&&(i.osversion=C);var k=!i.windows&&C.split(".")[0];return w||c||"ipad"==a||s&&(3==k||k>=4&&!x)||i.silk?i.tablet=o:(x||"iphone"==a||"ipod"==a||s||l||i.blackberry||i.webos||i.bada)&&(i.mobile=o),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===r([i.version,"1.0"])||i.mzbrowser&&1===r([i.version,"6.0"])||i.focus&&1===r([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=o:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=o:i.x=o,i}function e(t){return t.split(".").length}function n(t,e){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(n=0;n=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]!==i[1][r])return-1;if(0===r)return 0}}function i(e,n,i){var o=a;"string"==typeof n&&(i=n,n=void 0),void 0===n&&(n=!1),i&&(o=t(i));var s=""+o.version;for(var l in e)if(e.hasOwnProperty(l)&&o[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return r([s,e[l]])<0}return n}var o=!0,a=t("undefined"!=typeof navigator&&navigator.userAgent||"");return a.test=function(t){for(var e=0;e0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},i.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],l=i+i,c=o+o,u=a+a,d=i*l,h=i*c,p=i*u,f=o*c,m=o*u,v=a*u,g=s*l,y=s*c,_=s*u,b=r[0],w=r[1],x=r[2];return t[0]=(1-(f+v))*b,t[1]=(h+_)*b,t[2]=(p-y)*b,t[3]=0,t[4]=(h-_)*w,t[5]=(1-(d+v))*w,t[6]=(m+g)*w,t[7]=0,t[8]=(p+y)*x,t[9]=(m-g)*x,t[10]=(1-(d+f))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},i.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],l=e[3],c=o+o,u=a+a,d=s+s,h=o*c,p=o*u,f=o*d,m=a*u,v=a*d,g=s*d,y=l*c,_=l*u,b=l*d,w=r[0],x=r[1],S=r[2],C=i[0],k=i[1],T=i[2];return t[0]=(1-(m+g))*w,t[1]=(p+b)*w,t[2]=(f-_)*w,t[3]=0,t[4]=(p-b)*x,t[5]=(1-(h+g))*x,t[6]=(v+y)*x,t[7]=0,t[8]=(f+_)*S,t[9]=(v-y)*S,t[10]=(1-(h+m))*S,t[11]=0,t[12]=n[0]+C-(t[0]*C+t[4]*k+t[8]*T),t[13]=n[1]+k-(t[1]*C+t[5]*k+t[9]*T),t[14]=n[2]+T-(t[2]*C+t[6]*k+t[10]*T),t[15]=1,t},i.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,l=i+i,c=n*a,u=r*a,d=r*s,h=i*a,p=i*s,f=i*l,m=o*a,v=o*s,g=o*l;return t[0]=1-d-f,t[1]=u+g,t[2]=h-v,t[3]=0,t[4]=u-g,t[5]=1-c-f,t[6]=p+m,t[7]=0,t[8]=h+v,t[9]=p-m,t[10]=1-c-d,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},i.frustum=function(t,e,n,r,i,o,a){var s=1/(n-e),l=1/(i-r),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t},i.perspective=function(t,e,n,r,i){var o=1/Math.tan(e/2),a=1/(r-i);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+r)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*r*a,t[15]=0,t},i.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(i-o)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},i.ortho=function(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*c,t[15]=1,t},i.lookAt=function(t,e,n,o){var a,s,l,c,u,d,h,p,f,m,v=e[0],g=e[1],y=e[2],_=o[0],b=o[1],w=o[2],x=n[0],S=n[1],C=n[2];return Math.abs(v-x).999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(o.cross(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+l,s.normalize(r,r))}}(),s.setAxes=function(){var t=i.create();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],s.normalize(e,s.fromMat3(e,t))}}(),s.clone=a.clone,s.fromValues=a.fromValues,s.copy=a.copy,s.set=a.set,s.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},s.setAxisAngle=function(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t},s.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return 0!=r?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},s.add=a.add,s.multiply=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],c=n[2],u=n[3];return t[0]=r*u+a*s+i*c-o*l,t[1]=i*u+a*l+o*s-r*c,t[2]=o*u+a*c+r*l-i*s,t[3]=a*u-r*s-i*l-o*c,t},s.mul=s.multiply,s.scale=a.scale,s.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=o*l-i*s,t[3]=a*l-r*s,t},s.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-o*s,t[1]=i*l+a*s,t[2]=o*l+r*s,t[3]=a*l-i*s,t},s.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t},s.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},s.dot=a.dot,s.lerp=a.lerp,s.slerp=function(t,e,n,r){var i,o,a,s,l,c=e[0],u=e[1],d=e[2],h=e[3],p=n[0],f=n[1],m=n[2],v=n[3];return(o=c*p+u*f+d*m+h*v)<0&&(o=-o,p=-p,f=-f,m=-m,v=-v),1-o>1e-6?(i=Math.acos(o),a=Math.sin(i),s=Math.sin((1-r)*i)/a,l=Math.sin(r*i)/a):(s=1-r,l=r),t[0]=s*c+l*p,t[1]=s*u+l*f,t[2]=s*d+l*m,t[3]=s*h+l*v,t},s.sqlerp=function(){var t=s.create(),e=s.create();return function(n,r,i,o,a,l){return s.slerp(t,r,a,l),s.slerp(e,i,o,l),s.slerp(n,t,e,2*l*(1-l)),n}}(),s.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t},s.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},s.length=a.length,s.len=s.length,s.squaredLength=a.squaredLength,s.sqrLen=s.squaredLength,s.normalize=a.normalize,s.fromMat3=function(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n}return t},s.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},s.exactEquals=a.exactEquals,s.equals=a.equals,e.exports=s},{"./common.js":3,"./mat3.js":6,"./vec3.js":10,"./vec4.js":11}],9:[function(t,e,n){var r=t("./common.js"),i={create:function(){var t=new r.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},clone:function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},fromValues:function(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}};i.sub=i.subtract,i.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},i.mul=i.multiply,i.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},i.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},i.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},i.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},i.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},i.distance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)},i.dist=i.distance,i.squaredDistance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},i.len=i.length,i.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},i.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},i.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},i.lerp=function(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t},i.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},i.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},i.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},i.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},i.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},i.forEach=function(){var t=i.create();return function(e,n,r,i,o,a){var s,l;for(n||(n=2),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},i.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t},i.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t},i.hermite=function(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+r[0]*c+i[0]*u,t[1]=e[1]*s+n[1]*l+r[1]*c+i[1]*u,t[2]=e[2]*s+n[2]*l+r[2]*c+i[2]*u,t},i.bezier=function(t,e,n,r,i,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,d=3*l*a,h=l*o;return t[0]=e[0]*c+n[0]*u+r[0]*d+i[0]*h,t[1]=e[1]*c+n[1]*u+r[1]*d+i[1]*h,t[2]=e[2]*c+n[2]*u+r[2]*d+i[2]*h,t},i.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},i.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t},i.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},i.transformQuat=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*o-l*i,d=c*i+l*r-a*o,h=c*o+a*i-s*r,p=-a*r-s*i-l*o;return t[0]=u*c+p*-a+d*-l-h*-s,t[1]=d*c+p*-s+h*-a-u*-l,t[2]=h*c+p*-l+u*-s-d*-a,t},i.rotateX=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},i.rotateY=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},i.rotateZ=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},i.forEach=function(){var t=i.create();return function(e,n,r,i,o,a){var s,l;for(n||(n=3),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s1?0:o<-1?Math.PI:Math.acos(o)},i.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},i.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},i.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))},e.exports=i},{"./common.js":3}],11:[function(t,e,n){var r=t("./common.js"),i={create:function(){var t=new r.ARRAY_TYPE(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},clone:function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},set:function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}};i.sub=i.subtract,i.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},i.mul=i.multiply,i.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t},i.div=i.divide,i.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},i.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},i.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},i.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},i.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},i.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},i.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},i.distance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+o*o)},i.dist=i.distance,i.squaredDistance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o},i.sqrDist=i.squaredDistance,i.length=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)},i.len=i.length,i.squaredLength=function(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i},i.sqrLen=i.squaredLength,i.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},i.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},i.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a),t},i.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},i.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t},i.random=function(t,e){return e=e||1,t[0]=r.RANDOM(),t[1]=r.RANDOM(),t[2]=r.RANDOM(),t[3]=r.RANDOM(),i.normalize(t,t),i.scale(t,t,e),t},i.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t},i.transformQuat=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2],c=n[3],u=c*r+s*o-l*i,d=c*i+l*r-a*o,h=c*o+a*i-s*r,p=-a*r-s*i-l*o;return t[0]=u*c+p*-a+d*-l-h*-s,t[1]=d*c+p*-s+h*-a-u*-l,t[2]=h*c+p*-l+u*-s-d*-a,t[3]=e[3],t},i.forEach=function(){var t=i.create();return function(e,n,r,i,o,a){var s,l;for(n||(n=4),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s-1}function _(t){return t.trim().split(/\s+/g)}function b(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}function S(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=M(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=A(r);e.timeStamp=at(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=P(s,l),e.distance=O(s,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==ht&&o.eventType!==ft||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=I(e.deltaX,e.deltaY),e.scale=a?function(t,e){return O(e[0],e[1],kt)/O(t[0],t[1],kt)}(a.pointers,r):1,e.rotation=a?function(t,e){return P(e[1],e[0],kt)-P(t[1],t[0],kt)}(a.pointers,r):0,E(n,e);var c=t.element;g(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function E(t,e){var n,r,i,a,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=mt&&(l>dt||s.velocity===o)){var c=s.deltaX-e.deltaX,u=s.deltaY-e.deltaY,d=function(t,e,n){return{x:e/t||0,y:n/t||0}}(l,c,u);r=d.x,i=d.y,n=ot(d.x)>ot(d.y)?d.x:d.y,a=I(c,u),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=a}function M(t){for(var e=[],n=0;n=ot(e)?t>0?gt:yt:e>0?_t:bt}function O(t,e,n){n||(n=Ct);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function P(t,e,n){n||(n=Ct);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function N(){this.evEl=Et,At?this.evDoc=Mt:this.evWin=Mt,this.allow=!0,this.pressed=!1,k.apply(this,arguments)}function D(){this.evEl=Pt,this.evWin=Nt,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=Rt,this.evWin=Lt,this.started=!1,k.apply(this,arguments)}function L(t,e){var n=w(t.touches),r=w(t.changedTouches);return e&(ft|mt)&&(n=x(n.concat(r),"identifier",!0)),[n,r]}function F(){this.evTarget=$t,this.targetIds={},k.apply(this,arguments)}function $(t,e){var n=w(t.touches),r=this.targetIds;if(e&(ht|pt)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=w(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return g(t.target,l)})),e===ht)for(i=0;i0;d(N,k,{handler:function(t){var e=Tt[t.type],n=0;At&&(n=1),e&ht&&t.button===n&&(this.pressed=!0),e&pt&&t.button!==n&&(e=ft),this.pressed&&this.allow&&(e&ft&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var It={pointerdown:ht,pointermove:pt,pointerup:ft,pointercancel:mt,pointerout:mt},Ot={2:"touch",3:"pen",4:"mouse",5:"kinect"},Pt="pointerdown",Nt="pointermove pointerup pointercancel";t.MSPointerEvent&&(Pt="MSPointerDown",Nt="MSPointerMove MSPointerUp MSPointerCancel"),d(D,k,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=It[r],o=Ot[t.pointerType]||t.pointerType,a="touch"==o,s=b(e,t.pointerId,"pointerId");i&ht&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(ft|mt)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var Dt={touchstart:ht,touchmove:pt,touchend:ft,touchcancel:mt},Rt="touchstart",Lt="touchstart touchmove touchend touchcancel";d(R,k,{handler:function(t){var e=Dt[t.type];if(e===ht&&(this.started=!0),this.started){var n=L.call(this,t,e);e&(ft|mt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Ft={touchstart:ht,touchmove:pt,touchend:ft,touchcancel:mt},$t="touchstart touchmove touchend touchcancel";d(F,k,{handler:function(t){var e=Ft[t.type],n=$.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),d(B,k,{handler:function(t,e,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(r)this.mouse.allow=!1;else if(i&&!this.mouse.allow)return;e&(ft|mt)&&(this.mouse.allow=!0),this.callback(t,e,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Bt=S(nt.style,"touchAction"),jt=Bt!==o,zt="auto",Yt="manipulation",Ht="none",Ut="pan-x",Vt="pan-y";j.prototype={set:function(t){"compute"==t&&(t=this.compute()),jt&&this.manager.element.style&&(this.manager.element.style[Bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,(function(e){p(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(y(t,Ht))return Ht;var e=y(t,Ut),n=y(t,Vt);return e&&n?Ut+" "+Vt:e||n?e?Ut:Vt:y(t,Yt)?Yt:zt}(t.join(" "))},preventDefaults:function(t){if(!jt){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var r=this.actions,i=y(r,Ht),o=y(r,Vt),a=y(r,Ut);return i||o&&n&wt||a&&n&xt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Wt=1,Gt=2,qt=4,Xt=8,Kt=Xt,Jt=16;z.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=H(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)||(t=H(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return-1===b(e,t=H(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=H(t,this);var e=b(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(n.options.event+(e?function(t){return t&Jt?"cancel":t&Xt?"end":t&qt?"move":t&Gt?"start":""}(r):""),t)}var n=this,r=this.state;r=Xt&&e(!0)},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return U.prototype.attrTest.call(this,t)&&(this.state&Gt||!(this.state&Gt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Y(t.direction);e&&this.manager.emit(this.options.event+e,t),this._super.emit.call(this,t)}}),d(W,U,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ht]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Gt)},emit:function(t){if(this._super.emit.call(this,t),1!==t.scale){var e=t.scale<1?"in":"out";this.manager.emit(this.options.event+e,t)}}}),d(G,z,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[zt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||t.eventType&(ft|mt)&&!i)this.reset();else if(t.eventType&ht)this.reset(),this._timer=a((function(){this.state=Kt,this.tryEmit()}),e.time,this);else if(t.eventType&ft)return Kt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Kt&&(t&&t.eventType&ft?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=at(),this.manager.emit(this.options.event,this._input)))}}),d(q,U,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ht]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Gt)}}),d(X,U,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:wt|xt,pointers:1},getTouchAction:function(){return V.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(wt|xt)?e=t.velocity:n&wt?e=t.velocityX:n&xt&&(e=t.velocityY),this._super.attrTest.call(this,t)&&n&t.direction&&t.distance>this.options.threshold&&ot(e)>this.options.velocity&&t.eventType&ft},emit:function(t){var e=Y(t.direction);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(K,z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[Yt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance=0&&n.splice(r,1)}},r.prototype.emit=function(){var t=this.__events=this.__events||{},e=arguments[0],n=t[e];if(n)for(var r=0;r0;){var i=this._queue.shift();if(!e.has(i)&&r(i)){e.add(i);for(var o=n(i),a=0;a=0},r.prototype.listHotspots=function(){return[].concat(this._hotspots)},r.prototype.destroyHotspot=function(t){var e=this._hotspots.indexOf(t);if(e<0)throw new Error("No such hotspot");this._hotspots.splice(e,1),t.destroy(),this.emit("hotspotsChange")},r.prototype.hide=function(){this._visible=!1,this._updateVisibility()},r.prototype.show=function(){this._visible=!0,this._updateVisibility()},r.prototype._updateVisibility=function(){var t=this._visible&&this._supported;t&&!this._isVisible?(this._hotspotContainerWrapper.style.display="block",this._isVisible=!0):!t&&this._isVisible&&(this._hotspotContainerWrapper.style.display="none",this._isVisible=!1)},r.prototype._update=function(){this._updatePositionAndSize();for(var t=0;t0?this._supported=!1:(a(this._stage.width(),this._stage.height(),this._rect,this._newPositionAndSize),this._setPositionAndSizeWithRect(this._newPositionAndSize),this._supported=!0):(this._setPositionAndSizeWithoutRect(),this._supported=!0),this._updateVisibility()},r.prototype._setPositionAndSizeWithRect=function(t){var e=this._hotspotContainerWrapper;!0!==this._hasRect&&u(e),!0===this._hasRect&&t.left===this._positionAndSize.left&&t.top===this._positionAndSize.top||s(e,t.left,t.top),!0===this._hasRect&&+t.width===this._positionAndSize.width&&t.height===this._positionAndSize.height||p(e,t.width,t.height),this._positionAndSize.left=t.left,this._positionAndSize.top=t.top,this._positionAndSize.width=t.width,this._positionAndSize.height=t.height,this._hasRect=!0},r.prototype._setPositionAndSizeWithoutRect=function(){!1!==this._hasRect&&(s(this._hotspotContainerWrapper,0,0),h(this._hotspotContainerWrapper),d(this._hotspotContainerWrapper),this._hasRect=!1)},e.exports=r},{"./Hotspot":15,"./calcRect":29,"./positionAbsolutely":58,"./support/cssPointerEvents":87,"./util/dom":101,"minimal-event-emitter":13}],17:[function(t,e,n){"use strict";function r(t,e,n,r,i,o){o=o||{};var a=this;this._stage=t,this._source=e,this._geometry=n,this._view=r,this._textureStore=i,this._effects=o.effects||{},this._fixedLevelIndex=null,this._viewChangeHandler=function(){a.emit("viewChange",a.view())},this._view.addEventListener("change",this._viewChangeHandler),this._textureStoreChangeHandler=function(){a.emit("textureStoreChange",a.textureStore())},this._textureStore.addEventListener("textureLoad",this._textureStoreChangeHandler),this._textureStore.addEventListener("textureError",this._textureStoreChangeHandler),this._textureStore.addEventListener("textureInvalid",this._textureStoreChangeHandler)}var i=t("minimal-event-emitter"),o=t("./util/extend");i(r),r.prototype.destroy=function(){this._view.removeEventListener("change",this._viewChangeHandler),this._textureStore.removeEventListener("textureLoad",this._textureStoreChangeHandler),this._textureStore.removeEventListener("textureError",this._textureStoreChangeHandler),this._textureStore.removeEventListener("textureInvalid",this._textureStoreChangeHandler),this._stage=null,this._source=null,this._geometry=null,this._view=null,this._textureStore=null,this._fixedLevelIndex=null,this._effects=null,this._viewChangeHandler=null,this._textureStoreChangeHandler=null},r.prototype.stage=function(){return this._stage},r.prototype.source=function(){return this._source},r.prototype.geometry=function(){return this._geometry},r.prototype.view=function(){return this._view},r.prototype.textureStore=function(){return this._textureStore},r.prototype.effects=function(){return this._effects},r.prototype.setEffects=function(t){this._effects=t,this.emit("effectsChange",this._effects)},r.prototype.mergeEffects=function(t){o(this._effects,t),this.emit("effectsChange",this._effects)},r.prototype.fixedLevel=function(){return this._fixedLevelIndex},r.prototype.setFixedLevel=function(t){if(t!==this._fixedLevelIndex){if(null!=t&&(t>=this._geometry.levelList.length||t<0))throw new Error("Level index out of range: "+t);this._fixedLevelIndex=t,this.emit("fixedLevelChange",this._fixedLevelIndex)}},r.prototype._selectLevel=function(){return null!=this._fixedLevelIndex?this._geometry.levelList[this._fixedLevelIndex]:this._view.selectLevel(this._geometry.selectableLevelList)},r.prototype.visibleTiles=function(t){var e=this._selectLevel();return this._geometry.visibleTiles(this._view,e,t)},r.prototype.pinLevel=function(t){for(var e=this._geometry.levelList[t],n=this._geometry.levelTiles(e),r=0;r0;)this.destroyLayer(this._layers[0])},r.prototype.switchTo=function(t,e){return this._viewer.switchScene(this,t,e)},r.prototype.lookTo=function(t,e,n){if(e=e||{},n=n||c,"object"!==u(t))throw new Error("Target view parameters must be an object");var r=null!=e.transitionDuration?e.transitionDuration:1e3,i=null==e.shortest||e.shortest,o=this._view,a=o.parameters(),s={};d(s,t),d(s,a),i&&o.normalizeToClosest&&o.normalizeToClosest(s,s);var l=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},h=this._viewer.controls().enabled();this._viewer.controls().disable(),this.startMovement((function(){var t=!1;return function(e,n){if(n>=r&&t)return null;var i=Math.min(n/r,1);for(var o in e){var c=a[o],u=s[o];e[o]=c+l(i)*(u-c)}return t=n>=r,e}}),(function(){h&&this._viewer.controls().enable(),n()}))},r.prototype.startMovement=function(t,e){var n=this._viewer.renderLoop();this._movement&&this.stopMovement();var r=t();if("function"!=typeof r)throw new Error("Bad movement");this._movement=t,this._movementStep=r,this._movementStartTime=l(),this._movementParams={},this._movementCallback=e,n.addEventListener("beforeRender",this._updateMovementHandler),n.renderOnNextFrame()},r.prototype.stopMovement=function(){var t=this._viewer.renderLoop();this._movementCallback&&this._movementCallback(),t.removeEventListener("beforeRender",this._updateMovementHandler),this._movement=null,this._movementStep=null,this._movementStartTime=null,this._movementParams=null,this._movementCallback=null},r.prototype.movement=function(){return this._movement},r.prototype._updateMovement=function(){if(!this._movement)throw new Error("Should not call update");var t=this._viewer.renderLoop(),e=this._view,n=l()-this._movementStartTime,r=this._movementStep,i=this._movementParams;null==(i=r(i=e.parameters(i),n))?this.stopMovement():(e.setParameters(i),t.renderOnNextFrame())},r.prototype._updateHotspotContainer=function(){this.visible()?this._hotspotContainer.show():this._hotspotContainer.hide()},e.exports=r},{"./HotspotContainer":16,"./Layer":17,"./TextureStore":21,"./util/clock":92,"./util/defaults":97,"./util/noop":107,"./util/type":115,"minimal-event-emitter":13}],21:[function(t,e,n){"use strict";function r(){}function i(t,e){var n=this;n._id=v++,n._store=t,n._tile=e,n._asset=null,n._texture=null,n._changeHandler=function(){t.emit("textureInvalid",e)};var i=t.source(),o=t.stage(),a=i.loadAsset.bind(i),s=o.createTexture.bind(o),l=h(d(a),s);n._cancel=l(o,e,(function(t,e,i,o){if(n._cancel=null,t)return i&&i.destroy(),o&&o.destroy(),void(t instanceof r?n._store.emit("textureCancel",n._tile):n._store.emit("textureError",n._tile,t));n._texture=o,i.dynamic?(n._asset=i,i.addEventListener("change",n._changeHandler)):i.destroy(),n._store.emit("textureLoad",n._tile)}))}function o(t,e,n,r){r=u(r||{},m),this._source=e,this._stage=n;var i=t.TileClass;this._clientPhase=f,this._clientCounter=0,this._itemMap=new a(i.equals,i.hash),this._visible=new s(i.equals,i.hash),this._previouslyVisible=new l(i.equals,i.hash,r.previouslyVisibleCacheSize),this._pinMap=new a(i.equals,i.hash),this._newVisible=new s(i.equals,i.hash),this._noLongerVisible=[],this._visibleAgain=[],this._evicted=[]}var a=t("./collections/Map"),s=t("./collections/Set"),l=t("./collections/LruSet"),c=t("minimal-event-emitter"),u=t("./util/defaults"),d=t("./util/retry"),h=t("./util/chain"),p=t("./util/inherits"),f=("undefined"!=typeof MARZIPANODEBUG&&MARZIPANODEBUG.textureStore,"idle"),m={previouslyVisibleCacheSize:32},v=0;p(r,Error),i.prototype.asset=function(){return this._asset},i.prototype.texture=function(){return this._texture},i.prototype.destroy=function(){var t=this,e=(t._id,t._store),n=t._tile,i=t._asset,o=t._texture,a=t._cancel;a?a(new r("Texture load cancelled")):(i&&(i.removeEventListener("change",t._changeHandler),i.destroy()),o&&o.destroy(),e.emit("textureUnload",n),t._changeHandler=null,t._asset=null,t._texture=null,t._tile=null,t._store=null,t._id=null)},c(i),c(o),o.prototype.destroy=function(){this.clear(),this._source=null,this._stage=null,this._itemMap=null,this._visible=null,this._previouslyVisible=null,this._pinMap=null,this._newVisible=null,this._noLongerVisible=null,this._visibleAgain=null,this._evicted=null},o.prototype.stage=function(){return this._stage},o.prototype.source=function(){return this._source},o.prototype.clear=function(){var t=this;t._evicted.length=0,t._itemMap.each((function(e){t._evicted.push(e)})),t._evicted.forEach((function(e){t._unloadTile(e)})),t._itemMap.clear(),t._visible.clear(),t._previouslyVisible.clear(),t._pinMap.clear(),t._newVisible.clear(),t._noLongerVisible.length=0,t._visibleAgain.length=0,t._evicted.length=0},o.prototype.clearNotPinned=function(){var t=this;t._evicted.length=0,t._itemMap.each((function(e){t._pinMap.has(e)||t._evicted.push(e)})),t._evicted.forEach((function(e){t._unloadTile(e)})),t._visible.clear(),t._previouslyVisible.clear(),t._evicted.length=0},o.prototype.startFrame=function(){if(this._clientPhase!==f&&"start"!==this._clientPhase)throw new Error("TextureStore: startFrame called out of sequence");this._clientPhase="start",this._clientCounter++,this._newVisible.clear()},o.prototype.markTile=function(t){if("start"!==this._clientPhase)throw new Error("TextureStore: markTile called out of sequence");var e=this._itemMap.get(t),n=e&&e.texture(),r=e&&e.asset();n&&r&&n.refresh(t,r),this._newVisible.add(t)},o.prototype.endFrame=function(){if("start"!==this._clientPhase&&"end"!==this._clientPhase)throw new Error("TextureStore: endFrame called out of sequence");this._clientPhase="end",--this._clientCounter||(this._update(),this._clientPhase=f)},o.prototype._update=function(){var t=this;t._noLongerVisible.length=0,t._visible.each((function(e){t._newVisible.has(e)||t._noLongerVisible.push(e)})),t._visibleAgain.length=0,t._newVisible.each((function(e){t._previouslyVisible.has(e)&&t._visibleAgain.push(e)})),t._visibleAgain.forEach((function(e){t._previouslyVisible.remove(e)})),t._evicted.length=0,t._noLongerVisible.forEach((function(e){var n=t._itemMap.get(e);if(n&&n.texture()){var r=t._previouslyVisible.add(e);null!=r&&t._evicted.push(r)}else n&&t._unloadTile(e)})),t._evicted.forEach((function(e){t._pinMap.has(e)||t._unloadTile(e)})),t._newVisible.each((function(e){t._itemMap.get(e)||t._loadTile(e)}));var e=t._visible;t._visible=t._newVisible,t._newVisible=e,t._noLongerVisible.length=0,t._visibleAgain.length=0,t._evicted.length=0},o.prototype._loadTile=function(t){if(this._itemMap.has(t))throw new Error("TextureStore: loading texture already in cache");var e=new i(this,t);this._itemMap.set(t,e)},o.prototype._unloadTile=function(t){var e=this._itemMap.del(t);if(!e)throw new Error("TextureStore: unloading texture not in cache");e.destroy()},o.prototype.asset=function(t){var e=this._itemMap.get(t);return e?e.asset():null},o.prototype.texture=function(t){var e=this._itemMap.get(t);return e?e.texture():null},o.prototype.pin=function(t){var e=(this._pinMap.get(t)||0)+1;return this._pinMap.set(t,e),this._itemMap.has(t)||this._loadTile(t),e},o.prototype.unpin=function(t){var e=this._pinMap.get(t);if(!e)throw new Error("TextureStore: unpin when not pinned");return--e>0?this._pinMap.set(t,e):(this._pinMap.del(t),this._visible.has(t)||this._previouslyVisible.has(t)||this._unloadTile(t)),e},o.prototype.query=function(t){var e=this._itemMap.get(t),n=this._pinMap.get(t)||0;return{visible:this._visible.has(t),previouslyVisible:this._previouslyVisible.has(t),hasAsset:null!=e&&null!=e.asset(),hasTexture:null!=e&&null!=e.texture(),pinned:0!==n,pinCount:n}},e.exports=o},{"./collections/LruSet":31,"./collections/Map":32,"./collections/Set":33,"./util/chain":90,"./util/defaults":97,"./util/inherits":104,"./util/retry":112,"minimal-event-emitter":13}],22:[function(t,e,n){"use strict";function r(t){t=o(t||{},s),this._duration=t.duration,this._startTime=null,this._handle=null,this._check=this._check.bind(this)}var i=t("minimal-event-emitter"),o=t("./util/defaults"),a=t("./util/clock"),s={duration:1/0};i(r),r.prototype.start=function(){this._startTime=a(),null==this._handle&&this._duration<1/0&&this._setup(this._duration)},r.prototype.started=function(){return null!=this._startTime},r.prototype.stop=function(){this._startTime=null,null!=this._handle&&(clearTimeout(this._handle),this._handle=null)},r.prototype._setup=function(t){this._handle=setTimeout(this._check,t)},r.prototype._teardown=function(){clearTimeout(this._handle),this._handle=null},r.prototype._check=function(){var t=a()-this._startTime,e=this._duration-t;this._teardown(),e<=0?(this.emit("timeout"),this._startTime=null):e<1/0&&this._setup(e)},r.prototype.duration=function(){return this._duration},r.prototype.setDuration=function(t){this._duration=t,null!=this._startTime&&this._check()},e.exports=r},{"./util/clock":92,"./util/defaults":97,"minimal-event-emitter":13}],23:[function(t,e,n){"use strict";function r(t,e){var n;if(e=e||{},this._domElement=t,m(t),e.stageType){if(!(n=C[e.stageType]))throw new Error("Unknown stage type: "+e.stageType)}else{for(var r=0;rr.length)for(o=0;o0;)this.destroyScene(this._scenes[0])},r.prototype.hasScene=function(t){return this._scenes.indexOf(t)>=0},r.prototype.listScenes=function(){return[].concat(this._scenes)},r.prototype.scene=function(){return this._currentScene},r.prototype.view=function(){var t=this._currentScene;return t?t.view():null},r.prototype.lookTo=function(t,e,n){var r=this._currentScene;r&&r.lookTo(t,e,n)},r.prototype.startMovement=function(t,e){var n=this._currentScene;n&&n.startMovement(t,e)},r.prototype.stopMovement=function(){var t=this._currentScene;t&&t.stopMovement()},r.prototype.setIdleMovement=function(t,e){this._idleTimer.setDuration(t),this._idleMovement=e},r.prototype.breakIdleMovement=function(){this._leaveIdle(),this._resetIdleTimer()},r.prototype._resetIdleTimer=function(){this._idleTimer.start()},r.prototype._enterIdle=function(){var t=this._currentScene,e=this._idleMovement;t&&e&&t.startMovement(e)},r.prototype._leaveIdle=function(){var t=this._currentScene;t&&t.movement()===this._idleMovement&&t.stopMovement()},r.prototype.switchScene=function(t,e,n){var r=this;e=e||{},n=n||b;var o=this._stage,a=this._currentScene;if(a!==t){if(this._scenes.indexOf(t)<0)throw new Error("No such scene in viewer");this._cancelCurrentTween&&(this._cancelCurrentTween(),this._cancelCurrentTween=null);var s=a?a.listLayers():[],l=t.listLayers(),c=o.listLayers();if(a&&(c.length!==s.length||c.length>1&&c[0]!=s[0]))throw new Error("Stage not in sync with viewer");for(var u=null!=e.transitionDuration?e.transitionDuration:1e3,d=null!=e.transitionUpdate?e.transitionUpdate:i,h=(l=t.listLayers(),0);hw?Math.min(f+t*s,n):Math.max(f-t*s,0),i=g*t,c<_.pitch&&(_.pitch=Math.max(c,_.pitch-i)),c>_.pitch&&(_.pitch=Math.min(c,_.pitch+i))}if(null!=u&&_.fov!==c){var x=.5*m*m/l;y=Math.abs(u-_.fov)>x?Math.min(m+t*l,o):Math.max(m-t*l,0),d=y*t,u<_.fov&&(_.fov=Math.max(u,_.fov-d)),u>_.fov&&(_.fov=Math.min(u,_.fov+d))}return h=b,p=v,f=g,m=y,_}}}},{"./util/defaults":97}],29:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i,o,a,s;return r=r||{},i=null!=n&&null!=n.absoluteWidth?n.absoluteWidth:null!=n&&null!=n.relativeWidth?n.relativeWidth*t:t,o=n&&null!=n.absoluteHeight?n.absoluteHeight:null!=n&&null!=n.relativeHeight?n.relativeHeight*e:e,a=null!=n&&null!=n.absoluteX?n.absoluteX:null!=n&&null!=n.relativeX?n.relativeX*t:0,s=null!=n&&null!=n.absoluteY?n.absoluteY:null!=n&&null!=n.relativeY?n.relativeY*e:0,r.height=o,r.width=i,r.left=a,r.top=s,r.right=a+i,r.bottom=s+o,r.totalWidth=t,r.totalHeight=e,r}},{}],30:[function(t,e,n){"use strict";function r(t,e,n){if("function"!=typeof t)throw new Error("LruMap: bad equals function");if(this._equals=t,"function"!=typeof e)throw new Error("LruMap: bad hash function");if(this._hash=e,"number"!=typeof n||isNaN(n)||n<0)throw new Error("LruMap: bad maximum size");this._maxsize=n,this._keys=[],this._values=[],this._pivot=0}var i=t("../util/mod");r.prototype._modulus=function(){return this._maxsize>this._keys.length?this._keys.length+1:this._maxsize},r.prototype.get=function(t){for(var e=0;ethis._items.length?this._items.length+1:this._maxsize},r.prototype.add=function(t){var e=null,n=!1;if(0===this._maxsize)return t;for(var r=0;r=0&&(this._queue.splice(n,1),t.cb.apply(null,e))}},i.prototype._next=function(){if(!this._paused&&this._queue.length&&!this._currentTask){if(null!=this._lastFinished){var t=o()-this._lastFinished,e=this._delay-t;if(e>0)return void setTimeout(this._next.bind(this),e)}var n=this._queue.shift();this._start(n)}},e.exports=i},{"../util/clock":92}],36:[function(t,e,n){"use strict";function r(t,e,n){(function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];t[0]=n[0]*r+n[1]*i+n[2]*o+n[3]*a,t[1]=n[4]*r+n[5]*i+n[6]*o+n[7]*a,t[2]=n[8]*r+n[9]*i+n[10]*o+n[11]*a,t[3]=n[12]*r+n[13]*i+n[14]*o+n[15]*a})(n,t,e.colorMatrix),i.add(n,n,e.colorOffset)}var i=t("gl-matrix/src/gl-matrix/vec4"),o=t("gl-matrix/src/gl-matrix/mat4"),a=i.create();e.exports={identity:function(t){var e=t||{};return e.colorOffset=e.colorOffset||i.create(),e.colorMatrix=e.colorMatrix||o.create(),e},applyToPixel:r,applyToImageData:function(t,e){for(var n=t.width,o=t.height,s=t.data,l=0;l=0){var n=this._methods.splice(e,1)[0];n.instance.removeEventListener("parameterDynamics",n.parameterDynamicsHandler)}},r.prototype.has=function(t){return this._indexOfInstance(t)>=0},r.prototype._indexOfInstance=function(t){for(var e=0;e0&&this.emit("active"),this.emit("enabled"),this._updateComposer()},r.prototype.disable=function(){this._enabled=!1,this._activeCount>0&&this.emit("inactive"),this.emit("disabled"),this._updateComposer()},r.prototype.attach=function(t){this._attachedRenderLoop&&this.detach(),this._attachedRenderLoop=t,this._beforeRenderHandler=this._updateViewsWithControls.bind(this),this._changeHandler=t.renderOnNextFrame.bind(t),this._attachedRenderLoop.addEventListener("beforeRender",this._beforeRenderHandler),this._composer.addEventListener("change",this._changeHandler)},r.prototype.detach=function(){this._attachedRenderLoop&&(this._attachedRenderLoop.removeEventListener("beforeRender",this._beforeRenderHandler),this._composer.removeEventListener("change",this._changeHandler),this._beforeRenderHandler=null,this._changeHandler=null,this._attachedRenderLoop=null)},r.prototype.attached=function(){return null!=this._attachedRenderLoop},r.prototype._listen=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");e.instance.addEventListener("active",e.activeHandler),e.instance.addEventListener("inactive",e.inactiveHandler)},r.prototype._unlisten=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");e.instance.removeEventListener("active",e.activeHandler),e.instance.removeEventListener("inactive",e.inactiveHandler)},r.prototype._handleActive=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");if(!e.enabled)throw new Error("Should not receive event from disabled control method");e.active||(e.active=!0,this._incrementActiveCount())},r.prototype._handleInactive=function(t){var e=this._methods[t];if(!e)throw new Error("Bad method id");if(!e.enabled)throw new Error("Should not receive event from disabled control method");e.active&&(e.active=!1,this._decrementActiveCount())},r.prototype._incrementActiveCount=function(){this._activeCount++,a&&this._checkActiveCount(),this._enabled&&1===this._activeCount&&this.emit("active")},r.prototype._decrementActiveCount=function(){this._activeCount--,a&&this._checkActiveCount(),this._enabled&&0===this._activeCount&&this.emit("inactive")},r.prototype._checkActiveCount=function(){var t=0;for(var e in this._methods){var n=this._methods[e];n.enabled&&n.active&&t++}if(t!=this._activeCount)throw new Error("Bad control state")},r.prototype._updateComposer=function(){var t=this._composer;for(var e in this._methods){var n=this._methods[e],r=this._enabled&&n.enabled;r&&!t.has(n.instance)&&t.add(n.instance),!r&&t.has(n.instance)&&t.remove(n.instance)}},r.prototype._updateViewsWithControls=function(){var t=this._composer.offsets();t.changing&&this._attachedRenderLoop.renderOnNextFrame(),this.updatedViews_.length=0;for(var e=this._attachedRenderLoop.stage().listLayers(),n=0;n0?Math.max(0,t-e):0}(this.velocity,this.friction*t):this.velocity:null},r.prototype.offsetFromVelocity=function(t){t=Math.min(t,this.nullVelocityTime());var e=this.velocityAfter(t);return(this.velocity+e)/2*t},r.prototype.nullVelocityTime=function(){return null==this.velocity?0:this.velocity&&!this.friction?1/0:Math.abs(this.velocity/this.friction)},e.exports=r},{}],42:[function(t,e,n){"use strict";function r(t,e,n,r){if(!t)throw new Error("ElementPressControlMethod: element must be defined");if(!e)throw new Error("ElementPressControlMethod: parameter must be defined");if(!n)throw new Error("ElementPressControlMethod: velocity must be defined");if(!r)throw new Error("ElementPressControlMethod: friction must be defined");this._element=t,this._pressHandler=this._handlePress.bind(this),this._releaseHandler=this._handleRelease.bind(this),t.addEventListener("mousedown",this._pressHandler),t.addEventListener("mouseup",this._releaseHandler),t.addEventListener("mouseleave",this._releaseHandler),t.addEventListener("touchstart",this._pressHandler),t.addEventListener("touchmove",this._releaseHandler),t.addEventListener("touchend",this._releaseHandler),this._parameter=e,this._velocity=n,this._friction=r,this._dynamics=new i,this._pressing=!1}var i=t("./Dynamics");t("minimal-event-emitter")(r),r.prototype.destroy=function(){this._element.removeEventListener("mousedown",this._pressHandler),this._element.removeEventListener("mouseup",this._releaseHandler),this._element.removeEventListener("mouseleave",this._releaseHandler),this._element.removeEventListener("touchstart",this._pressHandler),this._element.removeEventListener("touchmove",this._releaseHandler),this._element.removeEventListener("touchend",this._releaseHandler)},r.prototype._handlePress=function(){this._pressing=!0,this._dynamics.velocity=this._velocity,this._dynamics.friction=0,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("active")},r.prototype._handleRelease=function(){this._pressing&&(this._dynamics.friction=this._friction,this.emit("parameterDynamics",this._parameter,this._dynamics),this.emit("inactive")),this._pressing=!1},e.exports=r},{"./Dynamics":41,"minimal-event-emitter":13}],43:[function(t,e,n){"use strict";function r(){this._managers=new l(i,o)}function i(t,e){return t===e}function o(t){for(var e=t.id||t.toString();e.length<5;)e+="0";return c(e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4))}function a(t,e,n,r){this._manager=e,this._element=n,this._type=r,this._hammerGestures=t,this._eventHandlers=[]}var s=t("hammerjs"),l=t("../collections/Map"),c=t("../util/hash"),u=t("bowser");r.prototype.get=function(t,e){this._managers.has(t)||this._managers.set(t,{});var n=this._managers.get(t);n[e]||(n[e]=this._createManager(t,e));var r=n[e];return r.refs+=1,new a(this,r.manager,t,e)},r.prototype._createManager=function(t,e){var n=new s.Manager(t);return"mouse"===e?n.add(new s.Pan({direction:s.DIRECTION_ALL,threshold:0})):"touch"!==e&&"pen"!==e&&"kinect"!==e||(n.add(new s.Pan({direction:s.DIRECTION_ALL,threshold:20,pointers:1})),u.msie&&parseFloat(u.version)<10||n.add(new s.Pinch)),{manager:n,refs:0}},r.prototype._releaseHandle=function(t,e){var n=this._managers.get(t)[e];n.refs-=1,n.refs<=0&&(n.manager.destroy(),this._managers.get(t)[e]=null)},a.prototype.on=function(t,e){var n=this._type,r=function(t){n===t.pointerType&&e(t)};this._eventHandlers.push({events:t,handler:r}),this._manager.on(t,r)},a.prototype.release=function(){for(var t=0;t=0&&t.enableMethod(p)}for(var m in d){var v=d[m];t.addMethodGroup(m,v)}return u}},{"../util/defaults":97,"./Drag":40,"./Key":44,"./PinchZoom":45,"./Qtvr":46,"./ScrollZoom":47}],51:[function(t,e,n){"use strict";function r(t,e,n,r){var i=Math.atan(e/t);r[0]=n*Math.cos(i),r[1]=n*Math.sin(i)}e.exports={maxFriction:function(t,e,n,i,o){var a=Math.sqrt(Math.pow(e,2)+Math.pow(n,2));r(e,n,t=Math.max(t,a/i),o),o[0]=Math.abs(o[0]),o[1]=Math.abs(o[1])},changeVectorNorm:r}},{}],52:[function(t,e,n){"use strict";function r(t,e,n,r,i){this.face=t,this.x=e,this.y=n,this.z=r,this._geometry=i,this._level=i.levelList[r]}function i(t){if(this.constructor.super_.call(this,t),this._size=t.size,this._tileSize=t.tileSize,this._size%this._tileSize!=0)throw new Error("Level size is not multiple of tile size: "+this._size+" "+this._tileSize)}function o(t){if("array"!==v(t))throw new Error("Level list must be an array");this.levelList=d(t,i),this.selectableLevelList=h(this.levelList);for(var e=1;e=u||y<0||y>=d){var x,S=this.centerX(),C=this.centerY();v<0?(g.set(i,-.5,C,-.5),w=k[o][0]):v>=u?(g.set(i,.5,C,-.5),w=k[o][1]):y<0?(g.set(i,S,.5,-.5),w=k[o][2]):y>=d&&(g.set(i,S,-.5,-.5),w=k[o][3]),p(i,i,(x=_[o]).y,x.x,0),p(i,i,-(x=_[w]).y,-x.x,0),v=f(Math.floor((.5+i[0])*u),0,u-1),y=f(Math.floor((.5-i[1])*d),0,d-1)}h.push(new r(w,v,y,b,t))}return e.set(this,h),h},r.prototype.hash=function(){return r.hash(this)},r.prototype.equals=function(t){return r.equals(this,t)},r.prototype.cmp=function(t){return r.cmp(this,t)},r.prototype.str=function(){return r.str(this)},r.hash=function(t){return null!=t?s(t.face.charCodeAt(0),t.z,t.x,t.y):0},r.equals=function(t,e){return null!=t&&null!=e&&t.face===e.face&&t.z===e.z&&t.x===e.x&&t.y===e.y},r.cmp=function(t,e){var n=y.indexOf(t.face),r=y.indexOf(e.face);return m(t.z,e.z)||m(n,r)||m(t.y,e.y)||m(t.x,e.x)},r.str=function(t){return"CubeTile("+t.face+", "+t.x+", "+t.y+", "+t.z+")"},a(i,u),i.prototype.width=function(){return this._size},i.prototype.height=function(){return this._size},i.prototype.tileWidth=function(){return this._tileSize},i.prototype.tileHeight=function(){return this._tileSize},i.prototype._validateWithParentLevel=function(t){var e=this.width(),n=this.height(),r=this.tileWidth(),i=this.tileHeight(),o=this.numHorizontalTiles(),a=this.numVerticalTiles(),s=t.width(),l=t.height(),c=t.tileWidth(),u=t.tileHeight(),d=t.numHorizontalTiles(),h=t.numVerticalTiles();if(e%s!=0)throw new Error("Level width must be multiple of parent level: "+e+" vs. "+s);if(n%l!=0)throw new Error("Level height must be multiple of parent level: "+n+" vs. "+l);if(o%d!=0)throw new Error("Number of horizontal tiles must be multiple of parent level: "+o+" ("+e+"/"+r+") vs. "+d+" ("+s+"/"+c+")");if(a%h!=0)throw new Error("Number of vertical tiles must be multiple of parent level: "+a+" ("+n+"/"+i+") vs. "+h+" ("+l+"/"+u+")")},o.prototype.maxTileSize=function(){for(var t=0,e=0;e=0);)d=l.nextSibling,h.removeChild(l),l=d,i=p[++e];if(!(s=(a=m.get(o))?a._canvas:null))throw new Error("Rendering tile with missing texture");if(i&&0===i.cmp(o)){if(s!=l)throw new Error("DOM not in sync with tile list");l=l.nextSibling,i=p[++e]}else h.insertBefore(s,l);c(s,this.calculateTransform(o,a,v)),u&&s.setAttribute("data-tile",o.str())}for(;l;)d=l.nextSibling,h.removeChild(l),l=d;if(h.children.length!==f.length)throw new Error("DOM not in sync with tile list");var g=this._oldTileList;this._oldTileList=this._newTileList,this._newTileList=g},e.exports=i},{"../collections/Map":32,"../util/dom":101}],60:[function(t,e,n){"use strict";function r(t,e){this.constructor.super_.call(this,t,e,i)}var i=t("../geometries/Cube").TileClass,o=t("./CssBase"),a=t("../util/decimal");t("../util/inherits")(r,o),r.prototype.calculateTransform=function(t,e,n){var r=this._browserQuirks.padSize,i=this._browserQuirks.reverseLevelDepth,o=this._browserQuirks.perspectiveNudge,s="",l=i?256-t.z:t.levelWidth(),c=n.size(),u=c.width,d=c.height;s+="translate3d("+a(u/2)+"px, "+a(d/2)+"px, 0px) ";var h=.5*d/Math.tan(n.fov()/2),p=h+o;s+="perspective("+a(h)+"px) translateZ("+a(p)+"px) ";var f=-n.roll(),m=-n.pitch(),v=n.yaw();s+="rotateZ("+a(f)+"rad) rotateX("+a(m)+"rad) rotateY("+a(v)+"rad) ";var g=-t.rotX(),y=t.rotY();s+="rotateX("+a(g)+"rad) rotateY("+a(y)+"rad) ";var _=t.centerX()-t.scaleX()/2,b=-(t.centerY()+t.scaleY()/2)*l,w=-l/2;if(s+="translate3d("+a(_*l)+"px, "+a(b)+"px, "+a(w)+"px) ",i){var x=l*t.scaleX()/t.width(),S=l*t.scaleY()/t.height();s+="scale("+a(x)+", "+a(S)+") "}var C=t.padLeft()?r:0,k=t.padTop()?r:0;return 0===C&&0===k||(s+="translate3d("+a(-C)+"px, "+a(-k)+"px, 0) "),s},e.exports=r},{"../geometries/Cube":52,"../util/decimal":96,"../util/inherits":104,"./CssBase":59}],61:[function(t,e,n){"use strict";function r(t,e){this.constructor.super_.call(this,t,e,i)}var i=t("../geometries/Flat").TileClass,o=t("./CssBase"),a=t("../util/decimal");t("../util/inherits")(r,o),r.prototype.calculateTransform=function(t,e,n){var r=this._browserQuirks.padSize,i="",o=n.width(),s=n.height();i+="translateX("+a(o/2)+"px) translateY("+a(s/2)+"px) ";var l=o/n._zoomX(),c=s/n._zoomY(),u=t.centerX()-t.scaleX()/2+.5,d=(.5-t.centerY()-t.scaleY()/2)*c;i+="translateX("+a(u*l)+"px) translateY("+a(d)+"px) ";var h=-n.x()*l,p=-n.y()*c;i+="translateX("+a(h)+"px) translateY("+a(p)+"px) ";var f=t.padLeft()?r:0,m=t.padTop()?r:0;0===f&&0===m||(i+="translateX("+a(-f)+"px) translateY("+a(-m)+"px) ");var v=l/t.levelWidth(),g=c/t.levelHeight();return i+"scale("+a(v)+", "+a(g)+") "},e.exports=r},{"../geometries/Flat":54,"../util/decimal":96,"../util/inherits":104,"./CssBase":59}],62:[function(t,e,n){"use strict";function r(t,e){return t.cmp(e)}function i(t,e,n,r){this._flashElement=t,this._layerId=e,this._quirks=n,this._tileList=[],this._textureMap=new o(r.equals,r.hash),this._layerCreated=!1}var o=t("../collections/Map");i.prototype.destroy=function(){this._flashElement.destroyLayer(this._layerId),this._flashElement=null,this._layerId=null,this._layerCreated=null,this._tileList=null,this._padSize=null},i.prototype.startLayer=function(t,e){this._flashElement.isReady&&this._flashElement.isReady()&&(this._layerCreated||(this._flashElement.createLayer(this._layerId),this._layerCreated=!0),this._tileList.length=0,this._textureMap.clear())},i.prototype.renderTile=function(t,e){this._tileList.push(t),this._textureMap.set(t,e)},i.prototype.endLayer=function(t,e){this._flashElement.isReady&&this._flashElement.isReady()&&(this._tileList.sort(r),this._renderOnFlash(t,e))},e.exports=i},{"../collections/Map":32}],63:[function(t,e,n){"use strict";function r(t,e,n){this.constructor.super_.call(this,t,e,n,o),this._flashTileList=[]}var i=t("./FlashBase"),o=t("../geometries/Cube").TileClass,a=t("../util/inherits"),s=t("../util/radToDeg");a(r,i),r.prototype._renderOnFlash=function(t,e){var n=this._flashElement,r=this._layerId,i=this._quirks.padSize,o=this._tileList,a=this._textureMap,l=this._flashTileList;l.length=0;for(var c=0;c',a="";a+='',a+='',a+='',o+=a+='',o+="";var s=document.createElement("div");s.innerHTML=o;var l=s.firstChild;u(l),d(l),r.appendChild(l);var c=document.createElement("div");return u(c),d(c),h(c),r.appendChild(c),{root:r,flash:l,blocking:c}}(this._swfPath,this._flashStageId,this._stageCallbacksObjVarName);this._domElement=n.root,this._blockingElement=n.blocking,this._flashElement=n.flash,this._checkReadyTimer=setInterval(this._checkReady.bind(this),50)}function i(t,e,n){var r=n.element(),i=e.width(),o=e.height(),a=y.padSize,s=e.padTop()?a:0,l=e.padBottom()?a:0,c=e.padLeft()?a:0,u=e.padRight()?a:0,d=t._flashElement.createTexture(r,i,o,s,l,c,u);this._stage=t,this._textureId=d}var o=t("./Stage"),a=t("../support/Flash"),s=t("../collections/WorkQueue"),l=t("../util/inherits"),c=t("../util/defer"),u=t("../util/dom").setAbsolute,d=t("../util/dom").setFullSize,h=t("../util/dom").setBlocking,p=t("./loadImageFlash"),f="transparent",m=function(){var t=document.currentScript;if(!t){var e=document.getElementsByTagName("script");t=e.length?e[e.length-1]:null}if(!t)return null;var n=t.src,r=n.lastIndexOf("/");return(n=r>=0?n.slice(0,r+1):"")+"marzipano.swf"}(),v="MarzipanoFlashCallbackMap";v in window||(window[v]={__next:0});var g=["imageLoaded"],y={padSize:3};l(r,o),r.prototype.destroy=function(){this.constructor.super_.prototype.destroy.call(this),this._domElement=null,this._blockingElement=null,this._flashElement=null,window[v][this._flashStageId]=null,this._callbacksObj=null,this._loadImageQueue=null,clearInterval(this._checkReadyTimer)},r.supported=function(){return a()},r.prototype._setSize=function(){},r.prototype.loadImage=function(t,e,n){var r=p.bind(null,this,t,e);return this._loadImageQueue.push(r,n)},r.prototype._validateLayer=function(t){},r.prototype._onCallback=function(t,e){this._callbackListeners[t]=this._callbackListeners[t]||[],this._callbackListeners[t].push(e)},r.prototype._offCallback=function(t,e){var n=this._callbackListeners[t]||[],r=n.indexOf(e);r>=0&&n.splice(r,1)},r.prototype._callListeners=function(t){var e=this;return function(){for(var n=e._callbackListeners[t]||[],r=0;r100)throw new Error("FlashStage: Snapshot quality needs to be a number between 0 and 100");return this._flashElement.takeSnapshot(e)},r.type=r.prototype.type="flash",i.prototype.refresh=function(t,e){},i.prototype.destroy=function(){var t=this._textureId;this._stage._flashElement.destroyTexture(t),this._stage=null,this._textureId=null},r.TextureClass=r.prototype.TextureClass=i,e.exports=r},{"../collections/WorkQueue":35,"../support/Flash":85,"../util/defer":98,"../util/dom":101,"../util/inherits":104,"./Stage":80,"./loadImageFlash":82}],79:[function(t,e,n){"use strict";function r(){this._renderers={}}r.prototype.set=function(t,e,n){this._renderers[t]||(this._renderers[t]={}),this._renderers[t][e]=n},r.prototype.get=function(t,e){return this._renderers[t]&&this._renderers[t][e]||null},e.exports=r},{}],80:[function(t,e,n){"use strict";function r(t,e){return-t.cmp(e)}function i(t){this._domElement=null,this._layers=[],this._renderers=[],this._visibleTiles=[],this._fallbackTiles={children:[],parents:[]},this._tmpTiles=[],this._width=null,this._height=null,this._rect={},this._createTextureWorkQueue=new a({delay:d}),this.emitRenderInvalid=this.emitRenderInvalid.bind(this),this._rendererRegistry=new u}var o=t("minimal-event-emitter"),a=t("../collections/WorkQueue"),s=t("../calcRect"),l=t("../util/async"),c=t("../util/cancelize"),u=t("./RendererRegistry"),d=20;o(i),i.prototype.destroy=function(){this.removeAllLayers(),this._layers=null,this._renderers=null,this._visibleTiles=null,this._fallbackTiles=null,this._tmpTiles=null,this._width=null,this._height=null,this._createTextureWorkQueue=null,this.emitRenderInvalid=null,this._rendererRegistry=null},i.prototype.registerRenderer=function(t,e,n){return this._rendererRegistry.set(t,e,n)},i.prototype.domElement=function(){return this._domElement},i.prototype.width=function(){return this._width},i.prototype.height=function(){return this._height},i.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},i.prototype.setSize=function(t){this._width=t.width,this._height=t.height,this._setSize(),this.emit("resize"),this.emitRenderInvalid()},i.prototype.emitRenderInvalid=function(){this.emit("renderInvalid")},i.prototype.listLayers=function(){return[].concat(this._layers)},i.prototype.hasLayer=function(t){return this._layers.indexOf(t)>=0},i.prototype.addLayer=function(t,e){if(this._layers.indexOf(t)>=0)throw new Error("Layer already in stage");if(null==e&&(e=this._layers.length),e<0||e>this._layers.length)throw new Error("Invalid layer position");this._validateLayer(t),this._layers.splice(e,0,t),this._renderers.splice(e,0,null),t.addEventListener("viewChange",this.emitRenderInvalid),t.addEventListener("effectsChange",this.emitRenderInvalid),t.addEventListener("fixedLevelChange",this.emitRenderInvalid),t.addEventListener("textureStoreChange",this.emitRenderInvalid),this.emitRenderInvalid()},i.prototype.moveLayer=function(t,e){var n=this._layers.indexOf(t);if(n<0)throw new Error("No such layer in stage");if(e<0||e>=this._layers.length)throw new Error("Invalid layer position");t=this._layers.splice(n,1)[0];var r=this._renderers.splice(n,1)[0];this._layers.splice(e,0,t),this._renderers.splice(e,0,r),this.emitRenderInvalid()},i.prototype.removeLayer=function(t){var e=this._layers.indexOf(t);if(e<0)throw new Error("No such layer in stage");var n=this._layers.splice(e,1)[0],r=this._renderers.splice(e,1)[0];r&&this.destroyRenderer(r),n.removeEventListener("viewChange",this.emitRenderInvalid),n.removeEventListener("effectsChange",this.emitRenderInvalid),n.removeEventListener("fixedLevelChange",this.emitRenderInvalid),n.removeEventListener("textureStoreChange",this.emitRenderInvalid),this.emitRenderInvalid()},i.prototype.removeAllLayers=function(){for(;this._layers.length>0;)this.removeLayer(this._layers[0])},i.prototype.render=function(){var t,e=this._visibleTiles,n=this._fallbackTiles,i=this._width,o=this._height,a=this._rect;if(!(i<=0||o<=0)){for(this.startFrame(),t=0;tn)throw new Error("Layer has level with tile size larger than maximum texture size ("+e+" vs. "+n+")")},r.prototype.createRenderer=function(t){if(this._rendererInstances.has(t))return this._rendererInstances.get(t);var e=new t(this._gl);return this._rendererInstances.set(t,e),e},r.prototype.destroyRenderer=function(t){this._renderers.indexOf(t)<0&&(t.destroy(),this._rendererInstances.del(t.constructor))},r.prototype.startFrame=function(){var t=this._gl;if(!t)throw new Error("Bad WebGL context - maybe context was lost?");var e=this._width,n=this._height,r=d();t.viewport(0,0,r*e,r*n),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.enable(t.DEPTH_TEST),t.enable(t.BLEND),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA)},r.prototype.endFrame=function(){},r.prototype.takeSnapshot=function(t){"object"==typeof t&&null!=t||(t={});var e=t.quality;if(void 0===e&&(e=75),"number"!=typeof e||e<0||e>100)throw new Error("WebGLStage: Snapshot quality needs to be a number between 0 and 100");return this.render(),this._domElement.toDataURL("image/jpeg",e/100)},r.type=r.prototype.type="webgl",i.prototype.refresh=function(t,e){var n,r=this._gl,i=this._stage,o=e.timestamp();if(o!==this._timestamp){var a=e.element(),s=e.width(),l=e.height();if(s!==this._width||l!==this._height){var c=i.maxTextureSize();if(s>c)throw new Error("Texture width larger than max size ("+s+" vs. "+c+")");if(l>c)throw new Error("Texture height larger than max size ("+l+" vs. "+c+")");this._texture&&r.deleteTexture(n),n=this._texture=r.createTexture(),r.bindTexture(r.TEXTURE_2D,n),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,a)}else n=this._texture,r.bindTexture(r.TEXTURE_2D,n),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),a instanceof HTMLVideoElement&&g?r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,a):r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,a);i._generateMipmaps&&p(s)&&p(l)?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR_MIPMAP_LINEAR),r.generateMipmap(r.TEXTURE_2D)):(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR)),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.bindTexture(r.TEXTURE_2D,null),this._timestamp=o,this._width=s,this._height=l}},i.prototype.destroy=function(){var t=this._texture,e=this._gl;t&&e.deleteTexture(t),this._stage=null,this._gl=null,this._texture=null,this._timestamp=null,this._width=this._height=null},r.TextureClass=r.prototype.TextureClass=i,e.exports=r},{"../collections/Map":32,"../support/WebGl":86,"../util/defer":98,"../util/dom":101,"../util/hash":103,"../util/inherits":104,"../util/ispot":105,"../util/pixelRatio":109,"./Stage":80,"./loadImageHtml":83,bowser:1}],82:[function(t,e,n){"use strict";var r=t("../NetworkError"),i=t("../util/once"),o=t("../assets/FlashImage");e.exports=function(t,e,n,a){function s(n,i){i===p&&(t._offCallback("imageLoaded",s),n?a(new r("Network error: "+e)):a(null,new o(l,p)))}var l=t._flashElement,c=n&&n.x||0,u=n&&n.y||0,d=n&&n.width||1,h=n&&n.height||1,p=l.loadImage(e,d,h,c,u);return a=i(a),t._onCallback("imageLoaded",s),function(){l.cancelImage(p),t._offCallback("imageLoaded",s),a.apply(null,arguments)}}},{"../NetworkError":18,"../assets/FlashImage":25,"../util/once":108}],83:[function(t,e,n){"use strict";var r=t("../NetworkError"),i=t("../util/once"),o=t("../assets/StaticImage"),a=t("../assets/StaticCanvas");e.exports=function(t,e,n){var s=new Image;s.crossOrigin="anonymous";var l=e&&e.x||0,c=e&&e.y||0,u=e&&e.width||1,d=e&&e.height||1;return n=i(n),s.onload=function(){if(0===l&&0===c&&1===u&&1===d)n(null,new o(s));else{l*=s.naturalWidth,c*=s.naturalHeight,u*=s.naturalWidth,d*=s.naturalHeight;var t=document.createElement("canvas");t.width=u,t.height=d,t.getContext("2d").drawImage(s,l,c,u,d,0,0,u,d),n(null,new a(t))}},s.onerror=function(){n(new r("Network error: "+t))},s.src=t,function(){s.onload=s.onerror=null,s.src="",n.apply(null,arguments)}}},{"../NetworkError":18,"../assets/StaticCanvas":26,"../assets/StaticImage":27,"../util/once":108}],84:[function(t,e,n){"use strict";var r,i=t("../util/dom").prefixProperty;e.exports=function(){return void 0!==r?r:r=function(){var t=i("perspective"),e=document.createElement("div"),n=void 0!==e.style[t];if(n&&"WebkitPerspective"===t){var r="__marzipano_test_css3d_support__",o=document.createElement("style");o.textContent="@media(-webkit-transform-3d){#"+r+"{height: 3px;})",document.getElementsByTagName("head")[0].appendChild(o),e.id=r,document.body.appendChild(e),n=e.offsetHeight>0,o.parentNode.removeChild(o),e.parentNode.removeChild(e)}return n}()}},{"../util/dom":101}],85:[function(t,e,n){"use strict";function r(){var t=function(){var t=null,e=navigator.plugins,n=navigator.mimeTypes,r=null;if(e&&e["Shockwave Flash"]&&n&&n["application/x-shockwave-flash"]&&n["application/x-shockwave-flash"].enabledPlugin)r=(r=e["Shockwave Flash"].description).replace(/^.*\s+(\S+\s+\S+$)/,"$1"),(t=[0,0,0])[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),t[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),t[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;else if(window.ActiveXObject)try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");i&&(r=i.GetVariable("$version"))&&(r=r.split(" ")[1].split(","),t=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)])}catch(t){}return t}();return t&&(t[0]>=11||10===t[0]&&t[1]>=1)}var i;e.exports=function(){return void 0!==i?i:i=r()}},{}],86:[function(t,e,n){"use strict";var r;e.exports=function(){return void 0!==r?r:r=function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("webgl")&&!t.getContext("experimental-webgl"))}()}},{}],87:[function(t,e,n){"use strict";var r,i=t("bowser");e.exports=function(){return void 0!==r?r:r=function(){var t=document.createElement("a").style;t.cssText="pointer-events:auto";var e="auto"===t.pointerEvents,n=i.msie&&parseFloat(i.version)<11;return e&&!n}()}},{bowser:1}],88:[function(t,e,n){"use strict";e.exports=function(t){return function(e){var n,r;try{r=t()}catch(t){n=t}finally{e(n||null,n?null:r)}}}},{}],89:[function(t,e,n){"use strict";var r=t("./once");e.exports=function(t){return function(){function e(){i.apply(null,arguments)}if(!arguments.length)throw new Error("cancelized: expected at least one argument");var n=Array.prototype.slice.call(arguments,0),i=n[n.length-1]=r(n[n.length-1]);return t.apply(null,n),e}}},{"./once":108}],90:[function(t,e,n){"use strict";var r=t("./noop");e.exports=function(){var t=Array.prototype.slice.call(arguments,0);return function(){function e(){if(arguments[0])return o=a=null,void l.apply(null,arguments);if(!i.length)return o=a=null,void l.apply(null,arguments);var t=o=i.shift(),n=Array.prototype.slice.call(arguments,1);n.push(e);var r=o.apply(null,n);if(t===o){if("function"!=typeof r)throw new Error("chain: chaining on non-cancellable function");a=r}}function n(){a&&a.apply(null,arguments)}var i=t.slice(0),o=null,a=null,s=arguments.length?Array.prototype.slice.call(arguments,0,arguments.length-1):[],l=arguments.length?arguments[arguments.length-1]:r;return s.unshift(null),e.apply(null,s),n}}},{"./noop":107}],91:[function(t,e,n){"use strict";e.exports=function(t,e,n){return Math.min(Math.max(t,e),n)}},{}],92:[function(t,e,n){"use strict";var r=(window.performance&&window.performance.now?function(){return window.performance.now()}:null)||function(){return Date.now()};e.exports=r},{}],93:[function(t,e,n){"use strict";e.exports=function(t,e){return te?1:0}},{}],94:[function(t,e,n){"use strict";e.exports=function(){var t=arguments;return function(e){for(var n=e,r=0;r0?t.apply(null,e):t()}),0)}},{}],99:[function(t,e,n){"use strict";e.exports=function(t){return t*Math.PI/180}},{}],100:[function(t,e,n){"use strict";e.exports=function(t,e){var n=null;return n=setTimeout((function(){null!=n&&(n=null,e(null))}),t),function(){null!=n&&(clearTimeout(n),n=null,e.apply(null,arguments))}}},{}],101:[function(t,e,n){"use strict";function r(t){for(var e=document.documentElement.style,n=["Moz","Webkit","Khtml","O","ms"],r=0;r>6}return t+=t<<3,t^=t>>11,(t+=t<<15)>=0?t:-t}},{}],104:[function(t,e,n){"use strict";e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],105:[function(t,e,n){"use strict";e.exports=function(t){return 0==(t&t-1)}},{}],106:[function(t,e,n){"use strict";e.exports=function(t,e){return(+t%(e=+e)+e)%e}},{}],107:[function(t,e,n){"use strict";e.exports=function(){}},{}],108:[function(t,e,n){"use strict";e.exports=function(t){var e,n=!1;return function(){return n||(n=!0,e=t.apply(null,arguments)),e}}},{}],109:[function(t,e,n){"use strict";var r=1;e.exports=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t&&t.deviceXDPI&&t.logicalXDPI)return t.deviceXDPI/t.logicalXDPI;if(t&&t.systemXDPI&&t.logicalXDPI)return t.systemXDPI/t.logicalXDPI}return r}},{}],110:[function(t,e,n){"use strict";e.exports=function(t){return 180*t/Math.PI}},{}],111:[function(t,e,n){"use strict";e.exports=function(t){return"number"==typeof t&&isFinite(t)}},{}],112:[function(t,e,n){"use strict";var r=t("./noop");e.exports=function(t){return function(){function e(){!arguments[0]||a?i.apply(null,arguments):o=t.apply(null,n)}var n=arguments.length?Array.prototype.slice.call(arguments,0,arguments.length-1):[],i=arguments.length?arguments[arguments.length-1]:r,o=null,a=!1;return n.push(e),e(!0),function(){a=!0,o.apply(null,arguments)}}}},{"./noop":107}],113:[function(t,e,n){"use strict";var r=t("gl-matrix/src/gl-matrix/vec3"),i=t("gl-matrix/src/gl-matrix/mat4"),o=i.identity(i.create()),a=i.create();e.exports=function(t,e,n,s,l){return i.copy(a,o),n&&i.rotateY(a,a,n),s&&i.rotateX(a,a,s),l&&i.rotateZ(a,a,l),r.transformMat4(t,e,a),t}},{"gl-matrix/src/gl-matrix/mat4":7,"gl-matrix/src/gl-matrix/vec3":10}],114:[function(t,e,n){"use strict";var r=t("./clock");e.exports=function(t,e,n){var i=!1,o=r();return e(0),requestAnimationFrame((function a(){if(!i){var s=(r()-o)/t;s<1?(e(s),requestAnimationFrame(a)):(e(1),n())}})),function(){i=!0,n.apply(null,arguments)}}},{"./clock":92}],115:[function(t,e,n){"use strict";e.exports=function(t){var e=typeof t;if("object"===e){if(null===t)return"null";if("[object Array]"===Object.prototype.toString.call(t))return"array";if("[object RegExp]"===Object.prototype.toString.call(t))return"regexp"}return e}},{}],116:[function(t,e,n){"use strict";function r(t,e){if(!t||null==t.mediaAspectRatio)throw new Error("mediaAspectRatio must be defined");this._x=t&&null!=t.x?t.x:h,this._y=t&&null!=t.y?t.y:p,this._zoom=t&&null!=t.zoom?t.zoom:f,this._mediaAspectRatio=t.mediaAspectRatio,this._width=t&&null!=t.width?t.width:u,this._height=t&&null!=t.height?t.height:d,this._limiter=e||null,this._viewFrustum=[0,0,0,0],this._projectionMatrix=l.create(),this._projectionChanged=!0,this._params={},this._vertex=c.create(),this._invProj=l.create(),this._update()}var i=t("minimal-event-emitter"),o=t("../util/pixelRatio"),a=t("../util/real"),s=t("../util/clamp"),l=t("gl-matrix/src/gl-matrix/mat4"),c=t("gl-matrix/src/gl-matrix/vec4"),u=0,d=0,h=.5,p=.5,f=1,m=[1,0,1,0],v=[-1,-1,1,1];i(r),r.prototype.destroy=function(){this._x=null,this._y=null,this._zoom=null,this._mediaAspectRatio=null,this._width=null,this._height=null,this._limiter=null,this._viewFrustum=null,this._projectionMatrix=null,this._projectionChanged=null,this._params=null,this._vertex=null,this._invProj=null},r.prototype.x=function(){return this._x},r.prototype.y=function(){return this._y},r.prototype.zoom=function(){return this._zoom},r.prototype.mediaAspectRatio=function(){return this._mediaAspectRatio},r.prototype.width=function(){return this._width},r.prototype.height=function(){return this._height},r.prototype.size=function(t){return(t=t||{}).width=this._width,t.height=this._height,t},r.prototype.parameters=function(t){return(t=t||{}).x=this._x,t.y=this._y,t.zoom=this._zoom,t.mediaAspectRatio=this._mediaAspectRatio,t},r.prototype.limiter=function(){return this._limiter},r.prototype.setX=function(t){this._resetParams(),this._params.x=t,this._update(this._params)},r.prototype.setY=function(t){this._resetParams(),this._params.y=t,this._update(this._params)},r.prototype.setZoom=function(t){this._resetParams(),this._params.zoom=t,this._update(this._params)},r.prototype.offsetX=function(t){this.setX(this._x+t)},r.prototype.offsetY=function(t){this.setY(this._y+t)},r.prototype.offsetZoom=function(t){this.setZoom(this._zoom+t)},r.prototype.setMediaAspectRatio=function(t){this._resetParams(),this._params.mediaAspectRatio=t,this._update(this._params)},r.prototype.setSize=function(t){this._resetParams(),this._params.width=t.width,this._params.height=t.height,this._update(this._params)},r.prototype.setParameters=function(t){this._resetParams();var e=this._params;e.x=t.x,e.y=t.y,e.zoom=t.zoom,e.mediaAspectRatio=t.mediaAspectRatio,this._update(e)},r.prototype.setLimiter=function(t){this._limiter=t||null,this._update()},r.prototype._resetParams=function(){var t=this._params;t.x=null,t.y=null,t.zoom=null,t.mediaAspectRatio=null,t.width=null,t.height=null},r.prototype._update=function(t){null==t&&(this._resetParams(),t=this._params);var e=this._x,n=this._y,r=this._zoom,i=this._mediaAspectRatio,o=this._width,l=this._height;if(t.x=null!=t.x?t.x:e,t.y=null!=t.y?t.y:n,t.zoom=null!=t.zoom?t.zoom:r,t.mediaAspectRatio=null!=t.mediaAspectRatio?t.mediaAspectRatio:i,t.width=null!=t.width?t.width:o,t.height=null!=t.height?t.height:l,this._limiter&&!(t=this._limiter(t)))throw new Error("Bad view limiter");var c=t.x,u=t.y,d=t.zoom,h=t.mediaAspectRatio,p=t.width,f=t.height;if(!(a(c)&&a(u)&&a(d)&&a(h)&&a(p)&&a(f)))throw new Error("Bad view - suspect a broken limiter");d=s(d,1e-9,1/0),this._x=c,this._y=u,this._zoom=d,this._mediaAspectRatio=h,this._width=p,this._height=f,c===e&&u===n&&d===r&&h===i&&p===o&&f===l||(this._projectionChanged=!0,this.emit("change")),p===o&&f===l||this.emit("resize")},r.prototype._zoomX=function(){return this._zoom},r.prototype._zoomY=function(){var t=this._mediaAspectRatio,e=this._width/this._height,n=this._zoom,r=n*t/e;return isNaN(r)&&(r=n),r},r.prototype.updateWithControlParameters=function(t){var e=this.zoom(),n=this._zoomX(),r=this._zoomY();this.offsetX(t.axisScaledX*n+t.x*e),this.offsetY(t.axisScaledY*r+t.y*e),this.offsetZoom(t.zoom*e)},r.prototype.projection=function(){var t=this._projectionMatrix;if(this._projectionChanged){var e=this._x,n=this._y,r=this._zoomX(),i=this._zoomY(),o=this._viewFrustum,a=o[0]=.5-n+.5*i,s=o[1]=e-.5+.5*r,c=o[2]=.5-n-.5*i,u=o[3]=e-.5-.5*r;l.ortho(t,u,s,c,a,-1,1),this._projectionChanged=!1}return t},r.prototype.intersects=function(t){var e=this._viewFrustum;this.projection();for(var n=0;n0&&l[i]>r){a=!0;break}}if(!a)return!1}return!0},r.prototype.selectLevel=function(t){for(var e=o()*this.width(),n=this._zoom,r=0;r=e)return i}return t[t.length-1]},r.prototype.coordinatesToScreen=function(t,e){var n=this._vertex;e||(e={});var r=this._width,i=this._height;if(r<=0||i<=0)return e.x=null,e.y=null,null;var o=t&&null!=t.x?t.x:h,a=t&&null!=t.y?t.y:p;c.set(n,o-.5,.5-a,-1,1),c.transformMat4(n,n,this.projection());for(var s=0;s<3;s++)n[s]/=n[3];return e.x=r*(n[0]+1)/2,e.y=i*(1-n[1])/2,e},r.prototype.screenToCoordinates=function(t,e){var n=this._vertex,r=this._invProj;e||(e={});var i=this._width,o=this._height;l.invert(r,this.projection());var a=2*t.x/i-1,s=1-2*t.y/o;return c.set(n,a,s,1,1),c.transformMat4(n,n,r),e.x=.5+n[0],e.y=.5-n[1],e},r.limit={x:function(t,e){return function(n){return n.x=s(n.x,t,e),n}},y:function(t,e){return function(n){return n.y=s(n.y,t,e),n}},zoom:function(t,e){return function(n){return n.zoom=s(n.zoom,t,e),n}},resolution:function(t){return function(e){if(e.width<=0||e.height<=0)return e;var n=e.width,r=o()*n/t;return e.zoom=s(e.zoom,r,1/0),e}},visibleX:function(t,e){return function(n){var r=e-t;n.zoom>r&&(n.zoom=r);var i=t+.5*n.zoom,o=e-.5*n.zoom;return n.x=s(n.x,i,o),n}},visibleY:function(t,e){return function(n){if(n.width<=0||n.height<=0)return n;var r=n.width/n.height/n.mediaAspectRatio,i=(e-t)*r;n.zoom>i&&(n.zoom=i);var o=t+.5*n.zoom/r,a=e-.5*n.zoom/r;return n.y=s(n.y,o,a),n}},letterbox:function(){return function(t){if(t.width<=0||t.height<=0)return t;var e,n,r,i,o=t.width/t.height,a=o/t.mediaAspectRatio;return t.mediaAspectRatio>=o&&(t.zoom=Math.min(t.zoom,1)),t.mediaAspectRatio<=o&&(t.zoom=Math.min(t.zoom,a)),t.zoom>1?e=n=.5:(e=0+.5*t.zoom/1,n=1-.5*t.zoom/1),t.zoom>a?r=i=.5:(r=0+.5*t.zoom/a,i=1-.5*t.zoom/a),t.x=s(t.x,e,n),t.y=s(t.y,r,i),t}}},r.type=r.prototype.type="flat",e.exports=r},{"../util/clamp":91,"../util/pixelRatio":109,"../util/real":111,"gl-matrix/src/gl-matrix/mat4":7,"gl-matrix/src/gl-matrix/vec4":11,"minimal-event-emitter":13}],117:[function(t,e,n){"use strict";function r(t,e){this._yaw=t&&null!=t.yaw?t.yaw:g,this._pitch=t&&null!=t.pitch?t.pitch:y,this._roll=t&&null!=t.roll?t.roll:_,this._fov=t&&null!=t.fov?t.fov:b,this._width=t&&null!=t.width?t.width:m,this._height=t&&null!=t.height?t.height:v,this._projectionCenterX=t&&null!=t.projectionCenterX?t.projectionCenterX:w,this._projectionCenterY=t&&null!=t.projectionCenterY?t.projectionCenterY:x,this._limiter=e||null,this._projectionMatrix=p.create(),this._projectionChanged=!0,this._viewFrustum=[f.create(),f.create(),f.create(),f.create(),f.create()],this._params={},this._fovs={},this._vertex=f.create(),this._invProj=p.create(),this._update()}var i=t("minimal-event-emitter"),o=t("../util/pixelRatio"),a=t("../util/convertFov"),s=t("../util/rotateVector"),l=t("../util/mod"),c=t("../util/real"),u=t("../util/clamp"),d=t("../util/decimal"),h=t("../util/compose"),p=t("gl-matrix/src/gl-matrix/mat4"),f=t("gl-matrix/src/gl-matrix/vec4"),m=0,v=0,g=0,y=0,_=0,b=Math.PI/4,w=0,x=0;i(r),r.prototype.destroy=function(){this._yaw=null,this._pitch=null,this._roll=null,this._fov=null,this._width=null,this._height=null,this._limiter=null,this._projectionChanged=null,this._projectionMatrix=null,this._viewFrustum=null,this._params=null,this._vertex=null,this._invProj=null},r.prototype.yaw=function(){return this._yaw},r.prototype.pitch=function(){return this._pitch},r.prototype.roll=function(){return this._roll},r.prototype.projectionCenterX=function(){return this._projectionCenterX},r.prototype.projectionCenterY=function(){return this._projectionCenterY},r.prototype.fov=function(){return this._fov},r.prototype.width=function(){return this._width},r.prototype.height=function(){return this._height},r.prototype.size=function(t){return t||(t={}),t.width=this._width,t.height=this._height,t},r.prototype.parameters=function(t){return t||(t={}),t.yaw=this._yaw,t.pitch=this._pitch,t.roll=this._roll,t.fov=this._fov,t},r.prototype.limiter=function(){return this._limiter},r.prototype.setYaw=function(t){this._resetParams(),this._params.yaw=t,this._update(this._params)},r.prototype.setPitch=function(t){this._resetParams(),this._params.pitch=t,this._update(this._params)},r.prototype.setRoll=function(t){this._resetParams(),this._params.roll=t,this._update(this._params)},r.prototype.setFov=function(t){this._resetParams(),this._params.fov=t,this._update(this._params)},r.prototype.setProjectionCenterX=function(t){this._resetParams(),this._params.projectionCenterX=t,this._update(this._params)},r.prototype.setProjectionCenterY=function(t){this._resetParams(),this._params.projectionCenterY=t,this._update(this._params)},r.prototype.offsetYaw=function(t){this.setYaw(this._yaw+t)},r.prototype.offsetPitch=function(t){this.setPitch(this._pitch+t)},r.prototype.offsetRoll=function(t){this.setRoll(this._roll+t)},r.prototype.offsetFov=function(t){this.setFov(this._fov+t)},r.prototype.setSize=function(t){this._resetParams(),this._params.width=t.width,this._params.height=t.height,this._update(this._params)},r.prototype.setParameters=function(t){this._resetParams();var e=this._params;e.yaw=t.yaw,e.pitch=t.pitch,e.roll=t.roll,e.fov=t.fov,e.projectionCenterX=t.projectionCenterX,e.projectionCenterY=t.projectionCenterY,this._update(e)},r.prototype.setLimiter=function(t){this._limiter=t||null,this._update()},r.prototype._resetParams=function(){var t=this._params;t.yaw=null,t.pitch=null,t.roll=null,t.fov=null,t.width=null,t.height=null},r.prototype._update=function(t){null==t&&(this._resetParams(),t=this._params);var e=this._yaw,n=this._pitch,r=this._roll,i=this._fov,o=this._projectionCenterX,a=this._projectionCenterY,s=this._width,l=this._height;if(t.yaw=null!=t.yaw?t.yaw:e,t.pitch=null!=t.pitch?t.pitch:n,t.roll=null!=t.roll?t.roll:r,t.fov=null!=t.fov?t.fov:i,t.width=null!=t.width?t.width:s,t.height=null!=t.height?t.height:l,t.projectionCenterX=null!=t.projectionCenterX?t.projectionCenterX:o,t.projectionCenterY=null!=t.projectionCenterY?t.projectionCenterY:a,this._limiter&&!(t=this._limiter(t)))throw new Error("Bad view limiter");var u=(t=this._normalize(t)).yaw,d=t.pitch,h=t.roll,p=t.fov,f=t.width,m=t.height,v=t.projectionCenterX,g=t.projectionCenterY;if(!(c(u)&&c(d)&&c(h)&&c(p)&&c(f)&&c(m)&&c(v)&&c(g)))throw new Error("Bad view - suspect a broken limiter");this._yaw=u,this._pitch=d,this._roll=h,this._fov=p,this._width=f,this._height=m,this._projectionCenterX=v,this._projectionCenterY=g,u===e&&d===n&&h===r&&p===i&&f===s&&m===l&&v===o&&g===a||(this._projectionChanged=!0,this.emit("change")),f===s&&m===l||this.emit("resize")},r.prototype._normalize=function(t){this._normalizeCoordinates(t);var e=a.htov(Math.PI,t.width,t.height),n=isNaN(e)?Math.PI:Math.min(Math.PI,e);return t.fov=u(t.fov,1e-6,n-1e-6),t},r.prototype._normalizeCoordinates=function(t){return"yaw"in t&&(t.yaw=l(t.yaw-Math.PI,-2*Math.PI)+Math.PI),"pitch"in t&&(t.pitch=l(t.pitch-Math.PI,-2*Math.PI)+Math.PI),"roll"in t&&(t.roll=l(t.roll-Math.PI,-2*Math.PI)+Math.PI),t},r.prototype.normalizeToClosest=function(t,e){var n=this._yaw,r=this._pitch,i=t.yaw,o=t.pitch,a=i-2*Math.PI,s=i+2*Math.PI;Math.abs(a-n)=0&&(o=!0)}if(!o)return!1}return!0},r.prototype.selectLevel=function(t){for(var e=o()*this._height,n=Math.tan(.5*this._fov),r=0;r=e)return i}return t[t.length-1]},r.prototype.coordinatesToScreen=function(t,e){var n=this._vertex;e||(e={});var r=this._width,i=this._height;if(r<=0||i<=0)return e.x=null,e.y=null,null;var o=t&&null!=t.yaw?t.yaw:g,a=t&&null!=t.pitch?t.pitch:y,l=t&&null!=t.roll?t.roll:_;return f.set(n,0,0,-1,1),s(n,n,-o,-a,-l),f.transformMat4(n,n,this.projection()),n[3]>=0?(e.x=r*(n[0]/n[3]+1)/2,e.y=i*(1-n[1]/n[3])/2,e):(e.x=null,e.y=null,null)},r.prototype.screenToCoordinates=function(t,e){var n=this._vertex,r=this._invProj;e||(e={});var i=this._width,o=this._height;p.invert(r,this.projection());var a=2*t.x/i-1,s=1-2*t.y/o;f.set(n,a,s,1,1),f.transformMat4(n,n,r);var l=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);return e.yaw=Math.atan2(n[0],-n[2]),e.pitch=Math.acos(n[1]/l)-Math.PI/2,this._normalizeCoordinates(e),e},r.prototype.coordinatesToPerspectiveTransform=function(t,e,n){n=n||"";var r=this._height,i=this._width,o=this._fov,a=.5*r/Math.tan(o/2),s="";return s+="translateX("+d(i/2)+"px) translateY("+d(r/2)+"px) ",s+="translateX(-50%) translateY(-50%) ",s+="perspective("+d(a)+"px) ",s+="translateZ("+d(a)+"px) ",s+="rotateZ("+d(-this._roll)+"rad) ",s+="rotateX("+d(-this._pitch)+"rad) ",s+="rotateY("+d(this._yaw)+"rad) ",s+="rotateY("+d(-t.yaw)+"rad) ",s+="rotateX("+d(t.pitch)+"rad) ",(s+="translateZ("+d(-e)+"px) ")+(n+" ")},r.limit={yaw:function(t,e){return function(n){return n.yaw=u(n.yaw,t,e),n}},pitch:function(t,e){return function(n){return n.pitch=u(n.pitch,t,e),n}},roll:function(t,e){return function(n){return n.roll=u(n.roll,t,e),n}},hfov:function(t,e){return function(n){var r=n.width,i=n.height;if(r>0&&i>0){var o=a.htov(t,r,i),s=a.htov(e,r,i);n.fov=u(n.fov,o,s)}return n}},vfov:function(t,e){return function(n){return n.fov=u(n.fov,t,e),n}},resolution:function(t){return function(e){var n=e.height;if(n){var r=o()*n,i=2*Math.atan(r/t);e.fov=u(e.fov,i,1/0)}return e}},traditional:function(t,e,n){return n=null!=n?n:e,h(r.limit.resolution(t),r.limit.vfov(0,e),r.limit.hfov(0,n),r.limit.pitch(-Math.PI/2,Math.PI/2))}},r.type=r.prototype.type="rectilinear",e.exports=r},{"../util/clamp":91,"../util/compose":94,"../util/convertFov":95,"../util/decimal":96,"../util/mod":106,"../util/pixelRatio":109,"../util/real":111,"../util/rotateVector":113,"gl-matrix/src/gl-matrix/mat4":7,"gl-matrix/src/gl-matrix/vec4":11,"minimal-event-emitter":13}]},{},[57])(57)}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,e,n){var r,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&f())}function f(){if(!d){var t=l(p);d=!0;for(var e=u.length;e;){for(c=u,u=[];++h1)for(var n=1;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}("object"==typeof e?e.exports:{});try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{}],8:[function(t,e,n){ /*! * ScrollMagic v2.0.8 (2020-08-14) * The javascript library for magical scroll interactions. * (c) 2020 Jan Paepke (@janpaepke) * Project Website: http://scrollmagic.io * * @version 2.0.8 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @file ScrollMagic main library. */var r,i;r=this,i=function(){"use strict";var t=function(){i.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(r){var o,a,s="ScrollMagic.Controller",l="REVERSE",c="PAUSED",u=n.defaults,d=this,h=i.extend({},u,r),p=[],f=!1,m=0,v=c,g=!0,y=0,_=!0,b=function(){h.refreshInterval>0&&(a=window.setTimeout(E,h.refreshInterval))},w=function(){return h.vertical?i.get.scrollTop(h.container):i.get.scrollLeft(h.container)},x=function(){return h.vertical?i.get.height(h.container):i.get.width(h.container)},S=this._setScrollPos=function(t){h.vertical?g?window.scrollTo(i.get.scrollLeft(),t):h.container.scrollTop=t:g?window.scrollTo(t,i.get.scrollTop()):h.container.scrollLeft=t},C=function(){if(_&&f){var t=i.type.Array(f)?f:p.slice(0);f=!1;var e=m,n=(m=d.scrollPos())-e;0!==n&&(v=n>0?"FORWARD":l),v===l&&t.reverse(),t.forEach((function(e,n){M(3,"updating Scene "+(n+1)+"/"+t.length+" ("+p.length+" total)"),e.update(!0)})),0===t.length&&h.loglevel>=3&&M(3,"updating 0 Scenes (nothing added to controller)")}},k=function(){o=i.rAF(C)},T=function(t){M(3,"event fired causing an update:",t.type),"resize"==t.type&&(y=x(),v=c),!0!==f&&(f=!0,k())},E=function(){if(!g&&y!=x()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}h.container.dispatchEvent(t)}p.forEach((function(t,e){t.refresh()})),b()},M=this._log=function(t,e){h.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),i.log.apply(window,arguments))};this._options=h;var A=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(i.type.Array(e))e.forEach((function(t,e){d.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==d)e.addTo(d);else if(p.indexOf(e)<0){for(var n in p.push(e),p=A(p),e.on("shift.controller_sort",(function(){p=A(p)})),h.globalSceneOptions)e[n]&&e[n].call(e,h.globalSceneOptions[n]);M(3,"adding Scene (now "+p.length+" total)")}}else M(1,"ERROR: invalid argument supplied for '.addScene()'");return d},this.removeScene=function(t){if(i.type.Array(t))t.forEach((function(t,e){d.removeScene(t)}));else{var e=p.indexOf(t);e>-1&&(t.off("shift.controller_sort"),p.splice(e,1),M(3,"removing Scene (now "+p.length+" left)"),t.remove())}return d},this.updateScene=function(e,n){return i.type.Array(e)?e.forEach((function(t,e){d.updateScene(t,n)})):n?e.update(!0):!0!==f&&e instanceof t.Scene&&(-1==(f=f||[]).indexOf(e)&&f.push(e),f=A(f),k()),d},this.update=function(t){return T({type:"resize"}),t&&C(),d},this.scrollTo=function(n,r){if(i.type.Number(n))S.call(h.container,n,r);else if(n instanceof t.Scene)n.controller()===d?d.scrollTo(n.scrollOffset(),r):M(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",n);else if(i.type.Function(n))S=n;else{var o=i.get.elements(n)[0];if(o){for(;o.parentNode.hasAttribute(e);)o=o.parentNode;var a=h.vertical?"top":"left",s=i.get.offset(h.container),l=i.get.offset(o);g||(s[a]-=d.scrollPos()),d.scrollTo(l[a]-s[a],r)}else M(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",n)}return d},this.scrollPos=function(t){return arguments.length?(i.type.Function(t)?w=t:M(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),d):w.call(d)},this.info=function(t){var e={size:y,vertical:h.vertical,scrollPos:m,scrollDirection:v,container:h.container,isDocument:g};return arguments.length?void 0!==e[t]?e[t]:void M(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(h.loglevel!=t&&(h.loglevel=t),d):h.loglevel},this.enabled=function(t){return arguments.length?(_!=t&&(_=!!t,d.updateScene(p,!0)),d):_},this.destroy=function(t){window.clearTimeout(a);for(var e=p.length;e--;)p[e].destroy(t);return h.container.removeEventListener("resize",T),h.container.removeEventListener("scroll",T),i.cAF(o),M(3,"destroyed "+s+" (reset: "+(t?"true":"false")+")"),null},function(){for(var e in h)u.hasOwnProperty(e)||(M(2,'WARNING: Unknown option "'+e+'"'),delete h[e]);if(h.container=i.get.elements(h.container)[0],!h.container)throw M(1,"ERROR creating object "+s+": No valid scroll container supplied"),s+" init failed.";(g=h.container===window||h.container===document.body||!document.body.contains(h.container))&&(h.container=window),y=x(),h.container.addEventListener("resize",T),h.container.addEventListener("scroll",T);var n=parseInt(h.refreshInterval,10);h.refreshInterval=i.type.Number(n)?n:u.refreshInterval,b(),M(3,"added new "+s+" controller (v"+t.version+")")}(),d};var n={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){n.defaults[t]=e},t.Controller.extend=function(e){var n=this;t.Controller=function(){return n.apply(this,arguments),this.$super=i.extend({},this),e.apply(this,arguments)||this},i.extend(t.Controller,n),t.Controller.prototype=n.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(n){var o,a,s="ScrollMagic.Scene",l="BEFORE",c="DURING",u="AFTER",d=r.defaults,h=this,p=i.extend({},d,n),f=l,m=0,v={start:0,end:0},g=0,y=!0,_={};this.on=function(t,e){return i.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var n=t.split("."),r=n[0],i=n[1];"*"!=r&&(_[r]||(_[r]=[]),_[r].push({namespace:i||"",callback:e}))})):b(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),h},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEach((function(t,n){var r=t.split("."),i=r[0],o=r[1]||"";("*"===i?Object.keys(_):[i]).forEach((function(t){for(var n=_[t]||[],r=n.length;r--;){var i=n[r];!i||o!==i.namespace&&"*"!==o||e&&e!=i.callback||n.splice(r,1)}n.length||delete _[t]}))})),h):(b(1,"ERROR: Invalid event name supplied."),h)},this.trigger=function(e,n){if(e){var r=e.trim().split("."),i=r[0],o=r[1],a=_[i];b(3,"event fired:",i,n?"->":"",n||""),a&&a.forEach((function(e,r){o&&o!==e.namespace||e.callback.call(h,new t.Event(i,e.namespace,h,n))}))}else b(1,"ERROR: Invalid event name supplied.");return h},h.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?k():"reverse"===t.what&&h.update())})).on("shift.internal",(function(t){S(),h.update()}));var b=this._log=function(t,e){p.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),i.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?a!=e&&(a&&a.removeScene(h),a=e,M(),C(!0),k(!0),S(),a.info("container").addEventListener("resize",T),e.addScene(h),h.trigger("add",{controller:a}),b(3,"added "+s+" to controller"),h.update()):b(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),h},this.enabled=function(t){return arguments.length?(y!=t&&(y=!!t,h.update(!0)),h):y},this.remove=function(){if(a){a.info("container").removeEventListener("resize",T);var t=a;a=void 0,t.removeScene(h),h.trigger("remove"),b(3,"removed "+s+" from controller")}return h},this.destroy=function(t){return h.trigger("destroy",{reset:t}),h.remove(),h.off("*.*"),b(3,"destroyed "+s+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(a)if(t)if(a.enabled()&&y){var e,n=a.info("scrollPos");e=p.duration>0?(n-v.start)/(v.end-v.start):n>=v.start?1:0,h.trigger("update",{startPos:v.start,endPos:v.end,scrollPos:n}),h.progress(e)}else w&&f===c&&O(!0);else a.updateScene(h,!1);return h},this.refresh=function(){return C(),k(),h},this.progress=function(t){if(arguments.length){var e=!1,n=f,r=a?a.info("scrollDirection"):"PAUSED",i=p.reverse||t>=m;if(0===p.duration?(e=m!=t,f=0==(m=t<1&&i?0:1)?l:c):t<0&&f!==l&&i?(m=0,f=l,e=!0):t>=0&&t<1&&i?(m=t,f=c,e=!0):t>=1&&f!==u?(m=1,f=u,e=!0):f!==c||i||O(),e){var o={progress:m,state:f,scrollDirection:r},s=f!=n,d=function(t){h.trigger(t,o)};s&&n!==c&&(d("enter"),d(n===l?"start":"end")),d("progress"),s&&f!==c&&(d(f===l?"start":"end"),d("leave"))}return h}return m};var w,x,S=function(){v={start:g+p.offset},a&&p.triggerElement&&(v.start-=a.info("size")*p.triggerHook),v.end=v.start+p.duration},C=function(t){if(o){var e="duration";A(e,o.call(h))&&!t&&(h.trigger("change",{what:e,newval:p.duration}),h.trigger("shift",{reason:e}))}},k=function(t){var n=0,r=p.triggerElement;if(a&&(r||g>0)){if(r)if(r.parentNode){for(var o=a.info(),s=i.get.offset(o.container),l=o.vertical?"top":"left";r.parentNode.hasAttribute(e);)r=r.parentNode;var c=i.get.offset(r);o.isDocument||(s[l]-=a.scrollPos()),n=c[l]-s[l]}else b(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),h.triggerElement(void 0);var u=n!=g;g=n,u&&!t&&h.trigger("shift",{reason:"triggerElementPosition"})}},T=function(t){p.triggerHook>0&&h.trigger("shift",{reason:"containerResize"})},E=i.extend(r.validate,{duration:function(t){if(i.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return a?a.info("size")*e:0}}if(i.type.Function(t)){o=t;try{t=parseFloat(o.call(h))}catch(e){t=-1}}if(t=parseFloat(t),!i.type.Number(t)||t<0)throw o?(o=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),M=function(t){(t=arguments.length?[t]:Object.keys(E)).forEach((function(t,e){var n;if(E[t])try{n=E[t](p[t])}catch(e){n=d[t];var r=i.type.String(e)?[e]:e;i.type.Array(r)?(r[0]="ERROR: "+r[0],r.unshift(1),b.apply(this,r)):b(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{p[t]=n}}))},A=function(t,e){var n=!1,r=p[t];return p[t]!=e&&(p[t]=e,M(t),n=r!=p[t]),n},I=function(t){h[t]||(h[t]=function(e){return arguments.length?("duration"===t&&(o=void 0),A(t,e)&&(h.trigger("change",{what:t,newval:p[t]}),r.shifts.indexOf(t)>-1&&h.trigger("shift",{reason:t})),h):p[t]})};this.controller=function(){return a},this.state=function(){return f},this.scrollOffset=function(){return v.start},this.triggerPosition=function(){var t=p.offset;return a&&(p.triggerElement?t+=g:t+=a.info("size")*h.triggerHook()),t},h.on("shift.internal",(function(t){var e="duration"===t.reason;(f===u&&e||f===c&&0===p.duration)&&O(),e&&P()})).on("progress.internal",(function(t){O()})).on("add.internal",(function(t){P()})).on("destroy.internal",(function(t){h.removePin(t.reset)}));var O=function(t){if(w&&a){var e=a.info(),n=x.spacer.firstChild;if(t||f!==c){var r={position:x.inFlow?"relative":"absolute",top:0,left:0},o=i.css(n,"position")!=r.position;x.pushFollowers?p.duration>0&&(f===u&&0===parseFloat(i.css(x.spacer,"padding-top"))||f===l&&0===parseFloat(i.css(x.spacer,"padding-bottom")))&&(o=!0):r[e.vertical?"top":"left"]=p.duration*m,i.css(n,r),o&&P()}else{"fixed"!=i.css(n,"position")&&(i.css(n,{position:"fixed"}),P());var s=i.get.offset(x.spacer,!0),d=p.reverse||0===p.duration?e.scrollPos-v.start:Math.round(m*p.duration*10)/10;s[e.vertical?"top":"left"]+=d,i.css(x.spacer.firstChild,{top:s.top,left:s.left})}}},P=function(){if(w&&a&&x.inFlow){var t=f===c,e=a.info("vertical"),n=x.spacer.firstChild,r=i.isMarginCollapseType(i.css(x.spacer,"display")),o={};x.relSize.width||x.relSize.autoFullWidth?t?i.css(w,{width:i.get.width(x.spacer)}):i.css(w,{width:"100%"}):(o["min-width"]=i.get.width(e?w:n,!0,!0),o.width=t?o["min-width"]:"auto"),x.relSize.height?t?i.css(w,{height:i.get.height(x.spacer)-(x.pushFollowers?p.duration:0)}):i.css(w,{height:"100%"}):(o["min-height"]=i.get.height(e?n:w,!0,!r),o.height=t?o["min-height"]:"auto"),x.pushFollowers&&(o["padding"+(e?"Top":"Left")]=p.duration*m,o["padding"+(e?"Bottom":"Right")]=p.duration*(1-m)),i.css(x.spacer,o)}},N=function(){a&&w&&f===c&&!a.info("isDocument")&&O()},D=function(){a&&w&&f===c&&((x.relSize.width||x.relSize.autoFullWidth)&&i.get.width(window)!=i.get.width(x.spacer.parentNode)||x.relSize.height&&i.get.height(window)!=i.get.height(x.spacer.parentNode))&&P()},R=function(t){a&&w&&f===c&&!a.info("isDocument")&&(t.preventDefault(),a._setScrollPos(a.info("scrollPos")-((t.wheelDelta||t[a.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,n){var r=n&&n.hasOwnProperty("pushFollowers");if(n=i.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},n),!(t=i.get.elements(t)[0]))return b(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),h;if("fixed"===i.css(t,"position"))return b(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),h;if(w){if(w===t)return h;h.removePin()}var o=(w=t).parentNode.style.display,a=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];w.parentNode.style.display="none";var s="absolute"!=i.css(w,"position"),l=i.css(w,a.concat(["display"])),c=i.css(w,["width","height"]);w.parentNode.style.display=o,!s&&n.pushFollowers&&(b(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),n.pushFollowers=!1),window.setTimeout((function(){w&&0===p.duration&&r&&n.pushFollowers&&b(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var u=w.parentNode.insertBefore(document.createElement("div"),w),d=i.extend(l,{position:s?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(s||i.extend(d,i.css(w,["width","height"])),i.css(u,d),u.setAttribute(e,""),i.addClass(u,n.spacerClass),x={spacer:u,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&s&&i.isMarginCollapseType(l.display)},pushFollowers:n.pushFollowers,inFlow:s},!w.___origStyle){w.___origStyle={};var f=w.style;a.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){w.___origStyle[t]=f[t]||""}))}return x.relSize.width&&i.css(u,{width:c.width}),x.relSize.height&&i.css(u,{height:c.height}),u.appendChild(w),i.css(w,{position:s?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(x.relSize.width||x.relSize.autoFullWidth)&&i.css(w,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",N),window.addEventListener("resize",N),window.addEventListener("resize",D),w.addEventListener("mousewheel",R),w.addEventListener("DOMMouseScroll",R),b(3,"added pin"),O(),h},this.removePin=function(t){if(w){if(f===c&&O(!0),t||!a){var n=x.spacer.firstChild;if(n.hasAttribute(e)){var r=x.spacer.style,o={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){o[t]=r[t]||""})),i.css(n,o)}x.spacer.parentNode.insertBefore(n,x.spacer),x.spacer.parentNode.removeChild(x.spacer),w.parentNode.hasAttribute(e)||(i.css(w,w.___origStyle),delete w.___origStyle)}window.removeEventListener("scroll",N),window.removeEventListener("resize",N),window.removeEventListener("resize",D),w.removeEventListener("mousewheel",R),w.removeEventListener("DOMMouseScroll",R),w=void 0,b(3,"removed pin (reset: "+(t?"true":"false")+")")}return h};var L,F=[];return h.on("destroy.internal",(function(t){h.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var n=i.get.elements(t);return 0!==n.length&&i.type.String(e)?(F.length>0&&h.removeClassToggle(),L=e,F=n,h.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?i.addClass:i.removeClass;F.forEach((function(t,n){e(t,L)}))})),h):(b(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===n.length?"element":"classes")+" supplied."),h)},this.removeClassToggle=function(t){return t&&F.forEach((function(t,e){i.removeClass(t,L)})),h.off("start.internal_class end.internal_class"),L=void 0,F=[],h},function(){for(var t in p)d.hasOwnProperty(t)||(b(2,'WARNING: Unknown option "'+t+'"'),delete p[t]);for(var e in d)I(e);M()}(),h};var r={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!i.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=i.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(i.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!i.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,n,i,o){e in r.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(r.defaults[e]=n,r.validate[e]=i,o&&r.shifts.push(e))},t.Scene.extend=function(e){var n=this;t.Scene=function(){return n.apply(this,arguments),this.$super=i.extend({},this),e.apply(this,arguments)||this},i.extend(t.Scene,n),t.Scene.prototype=n.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,n,r){for(var i in r=r||{})this[i]=r[i];return this.type=t,this.target=this.currentTarget=n,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var i=t._util=function(t){var e,n={},r=function(t){return parseFloat(t)||0},i=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},o=function(e,n,o,a){if((n=n===document?t:n)===t)a=!1;else if(!f.DomElement(n))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var s=(o?n["offset"+e]||n["outer"+e]:n["client"+e]||n["inner"+e])||0;if(o&&a){var l=i(n);s+="Height"===e?r(l.marginTop)+r(l.marginBottom):r(l.marginLeft)+r(l.marginRight)}return s},a=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};n.extend=function(t){for(t=t||{},e=1;e-1};var s=0,l=["ms","moz","webkit","o"],c=t.requestAnimationFrame,u=t.cancelAnimationFrame;for(e=0;!c&&ed.length||t<=0)&&(t=d.length);var e=new Date,n=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),r=d[t-1],i=Array.prototype.splice.call(arguments,1),o=Function.prototype.bind.call(h[r],h);i.unshift(n),o.apply(h,i)};var f=n.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};f.String=function(t){return"string"===f(t)},f.Function=function(t){return"function"===f(t)},f.Array=function(t){return Array.isArray(t)},f.Number=function(t){return!f.Array(t)&&t-parseFloat(t)+1>=0},f.DomElement=function(t){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var m=n.get={};return m.elements=function(e){var n=[];if(f.String(e))try{e=document.querySelectorAll(e)}catch(t){return n}if("nodelist"===f(e)||f.Array(e)||e instanceof NodeList)for(var r=0,i=n.length=e.length;r ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t},"function"==typeof define&&define.amd?define(i):"object"==typeof n?e.exports=i():r.ScrollMagic=i()},{}],9:[function(t,e,n){ /*! * ScrollMagic v2.0.8 (2020-08-14) * The javascript library for magical scroll interactions. * (c) 2020 Jan Paepke (@janpaepke) * Project Website: http://scrollmagic.io * * @version 2.0.8 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @file ScrollMagic GSAP Animation Plugin. * * requires: GSAP ~1.14 * Powered by the Greensock Animation Platform (GSAP): http://www.greensock.com/js * Greensock License info at http://www.greensock.com/licensing/ */ !function(e,r){if("function"==typeof define&&define.amd)define(["ScrollMagic","gsap","TweenMax","TimelineMax"],r);else if("object"==typeof n){var i=t("gsap/dist/gsap")||t("gsap");r(t("scrollmagic"),i,TweenMax||i,TimelineMax||i)}else r(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.gsap,e.gsap||e.TweenMax||e.TweenLite,e.gsap||e.TimelineMax||e.TimelineLite)}(this,(function(t,e,n,r){"use strict";var i="animation.gsap",o=e&&parseFloat(e.version)>=3,a=window.console||{},s=Function.prototype.bind.call(a.error||a.log||function(){},a);t||s("("+i+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),n||s("("+i+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),t.Scene.addOption("tweenChanges",!1,(function(t){return!!t})),t.Scene.extend((function(){var t,e=this,a=function(){e._log&&(Array.prototype.splice.call(arguments,1,0,"("+i+")","->"),e._log.apply(this,arguments))};e.on("progress.plugin_gsap",(function(){s()})),e.on("destroy.plugin_gsap",(function(t){e.removeTween(t.reset)}));var s=function(){if(t){var n=e.progress(),r=e.state();t.repeat&&-1===t.repeat()?"DURING"===r&&t.paused()?t.play():"DURING"===r||t.paused()||t.pause():n!=t.progress()&&(0===e.duration()?n>0?t.play():t.reverse():e.tweenChanges()&&t.tweenTo?t.tweenTo(n*t.duration()):t.progress(n).pause())}};e.setTween=function(i,l,c){var u;if(arguments.length>1){var d="number"==typeof arguments[1];o?(d||(c=l),c.hasOwnProperty("duration")||(c.duration=d?l:1)):arguments.length<3&&(c=l,l=1),i=o?n.to(i,c):n.to(i,l,c)}try{(u=r&&!o?new r({smoothChildTiming:!0}).add(i):i).pause()}catch(t){return a(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),e}if(t&&e.removeTween(),t=u,i.repeat&&-1===i.repeat()&&(t.repeat(-1),t.yoyo(i.yoyo())),e.tweenChanges()&&!t.tweenTo&&a(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),t&&e.controller()&&e.triggerElement()&&e.loglevel()>=2){var h=n.getTweensOf(e.triggerElement()),p=e.controller().info("vertical");h.forEach((function(t,e){var n=t.vars.css||t.vars;if(p?void 0!==n.top||void 0!==n.bottom:void 0!==n.left||void 0!==n.right)return a(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1}))}if(parseFloat(TweenLite.version)>=1.14)for(var f,m,v=o?"onInterrupt":"onOverwrite",g=t.getChildren?t.getChildren(!0,!0,!1):[t],y=function(){a(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},_=0;_ ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");var i="0.85em",o="9999",a=t._util,s=0;t.Scene.extend((function(){var t,e=this;e.addIndicators=function(n){if(!t){var r={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};n=a.extend({},r,n),s++,t=new l(e,n),e.on("add.plugin_addIndicators",t.add),e.on("remove.plugin_addIndicators",t.remove),e.on("destroy.plugin_addIndicators",e.removeIndicators),e.controller()&&t.add()}return e},e.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),e}})),t.Controller.addOption("addIndicators",!1),t.Controller.extend((function(){var n=this,r=n.info(),i=r.container,o=r.isDocument,s=r.vertical,l={groups:[]};n._indicators&&function(){n._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),n._log.apply(this,arguments))}(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=l;var c=function(){l.updateBoundsPositions()},u=function(){l.updateTriggerGroupPositions()};return i.addEventListener("resize",u),o||(window.addEventListener("resize",u),window.addEventListener("scroll",u)),i.addEventListener("resize",c),i.addEventListener("scroll",c),this._indicators.updateBoundsPositions=function(t){for(var e,n,r,o=t?[a.extend({},t.triggerGroup,{members:[t]})]:l.groups,c=o.length,u={},d=s?"left":"top",h=s?"width":"height",p=s?a.get.scrollLeft(i)+a.get.width(i)-15:a.get.scrollTop(i)+a.get.height(i)-15;c--;)for(e=(r=o[c]).members.length,n=a.get[h](r.element.firstChild);e--;)u[d]=p-n,a.css(r.members[e].bounds,u)},this._indicators.updateTriggerGroupPositions=function(t){for(var e,r,c,u,d=t?[t]:l.groups,h=d.length,p=o?document.body:i,f=o?{top:0,left:0}:a.get.offset(p,!0),m=s?a.get.width(i)-15:a.get.height(i)-15,v=s?"width":"height",g=s?"Y":"X";h--;)r=(e=d[h]).element,u=(c=e.triggerHook*n.info("size"))>a.get[v](r.firstChild.firstChild)?"translate"+g+"(-100%)":"",a.css(r,{top:f.top+(s?c:m-e.members[0].options.indent),left:f.left+(s?m-e.members[0].options.indent:c)}),a.css(r.firstChild.firstChild,{"-ms-transform":u,"-webkit-transform":u,transform:u})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(t.members.length>1?"":" "+t.members[0].options.name),n=t.element.firstChild.firstChild;n.textContent!==e&&(n.textContent=e,s&&l.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof t.Scene&&e.controller()===n&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){i.removeEventListener("resize",u),o||(window.removeEventListener("resize",u),window.removeEventListener("scroll",u)),i.removeEventListener("resize",c),i.removeEventListener("scroll",c),this.$super.destroy.apply(this,arguments)},n}));var l=function(t,n){var r,i,o=this,l=c.bounds(),u=c.start(n.colorStart),d=c.end(n.colorEnd),h=n.parent&&a.get.elements(n.parent)[0],p=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),t._log.apply(this,arguments))};n.name=n.name||s,u.firstChild.textContent+=" "+n.name,d.textContent+=" "+n.name,l.appendChild(u),l.appendChild(d),o.options=n,o.bounds=l,o.triggerGroup=void 0,this.add=function(){i=t.controller(),r=i.info("vertical");var e=i.info("isDocument");h||(h=e?document.body:i.info("container")),e||"static"!==a.css(h,"position")||a.css(h,{position:"relative"}),t.on("change.plugin_addIndicators",m),t.on("shift.plugin_addIndicators",f),_(),g(),setTimeout((function(){i._indicators.updateBoundsPositions(o)}),0),p(3,"added indicators")},this.remove=function(){if(o.triggerGroup){if(t.off("change.plugin_addIndicators",m),t.off("shift.plugin_addIndicators",f),o.triggerGroup.members.length>1){var e=o.triggerGroup;e.members.splice(e.members.indexOf(o),1),i._indicators.updateTriggerGroupLabel(e),i._indicators.updateTriggerGroupPositions(e),o.triggerGroup=void 0}else y();v(),p(3,"removed indicators")}};var f=function(){g()},m=function(t){"triggerHook"===t.what&&_()},v=function(){l.parentNode.removeChild(l)},g=function(){var e;l.parentNode!==h&&(e=i.info("vertical"),a.css(u.firstChild,{"border-bottom-width":e?1:0,"border-right-width":e?0:1,bottom:e?-1:n.indent,right:e?n.indent:-1,padding:e?"0 8px":"2px 4px"}),a.css(d,{"border-top-width":e?1:0,"border-left-width":e?0:1,top:e?"100%":"",right:e?n.indent:"",bottom:e?"":n.indent,left:e?"":"100%",padding:e?"0 8px":"2px 4px"}),h.appendChild(l));var o={};o[r?"top":"left"]=t.triggerPosition(),o[r?"height":"width"]=t.duration(),a.css(l,o),a.css(d,{display:t.duration()>0?"":"none"})},y=function(){i._indicators.groups.splice(i._indicators.groups.indexOf(o.triggerGroup),1),o.triggerGroup.element.parentNode.removeChild(o.triggerGroup.element),o.triggerGroup=void 0},_=function(){var e=t.triggerHook(),s=1e-4;if(!(o.triggerGroup&&Math.abs(o.triggerGroup.triggerHook-e)=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n.setImmediate="function"==typeof e?e:function(t){var e=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,i((function(){s[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))})),e},n.clearImmediate="function"==typeof r?r:function(t){delete s[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":6,timers:11}],12:[function(t,e,n){ /*! * viewport-units-buggyfill v0.6.2 * @web: https://github.com/rodneyrehm/viewport-units-buggyfill/ * @author: Rodney Rehm - http://rodneyrehm.de/en/ */ !function(){!function(t,r){"use strict";"function"==typeof define&&define.amd?define([],r):"object"==typeof n?e.exports=r():t.viewportUnitsBuggyfill=r()}(this,(function(){"use strict";var t,e,n,r,i,o=!1,a=window.navigator.userAgent,s=/([+-]?[0-9.]+)(vh|vw|vmin|vmax)/g,l=/(https?:)?\/\//,c=[].forEach,u=/MSIE [0-9]\./i.test(a),d=/MSIE [0-8]\./i.test(a),h=a.indexOf("Opera Mini")>-1,p=/(iPhone|iPod|iPad).+AppleWebKit/i.test(a)&&((i=a.match(/OS (\d)/))&&i.length>1&&parseInt(i[1])<10),f=a.indexOf(" Android ")>-1&&a.indexOf("Version/")>-1&&parseFloat((a.match("Android ([0-9.]+)")||[])[1])<=4.4;u||(u=!!navigator.userAgent.match(/MSIE 10\.|Trident.*rv[ :]*1[01]\.| Edge\/1\d\./));try{new m("test")}catch(t){var m=function(t,e){var n;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};m.prototype=window.Event.prototype,window.CustomEvent=m}function v(){o&&(g(),setTimeout((function(){r.textContent=_(),r.parentNode.appendChild(r),window.dispatchEvent(new m("viewport-units-buggyfill-style"))}),1))}function g(){return n=[],c.call(document.styleSheets,(function(t){var e=function(t){try{if(!t.cssRules)return}catch(t){if("SecurityError"!==t.name)throw t;return}for(var e=[],n=0;n=200&&a<300,this.status=a||0,this.statusText=s||"",this.headers=new F(i),this.body=t,f(t)?this.bodyText=t:(n=t,"undefined"!=typeof Blob&&n instanceof Blob&&(this.bodyBlob=t,function(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}(t)&&(this.bodyText=function(t){return new o((function(e){var n=new FileReader;n.readAsText(t),n.onload=function(){e(n.result)}}))}(t))))}var e=t.prototype;return e.blob=function(){return y(this.bodyBlob)},e.text=function(){return y(this.bodyText)},e.json=function(){return y(this.text(),(function(t){return JSON.parse(t)}))},t}();Object.defineProperty(B.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var j=function(){function t(t){var e;this.body=null,this.params={},w(this,t,{method:(e=t.method||"GET",e?e.toUpperCase():"")}),this.headers instanceof F||(this.headers=new F(this.headers))}var e=t.prototype;return e.getUrl=function(){return A(this)},e.getBody=function(){return this.body},e.respondWith=function(t,e){return new B(t,w(e||{},{url:this.getUrl()}))},t}(),z={"Content-Type":"application/json;charset=utf-8"};function Y(t){var e=this||{},n=function(t){var e=[L],n=[];function r(r){for(;e.length;){var i=e.pop();if(m(i)){var a=function(){var e=void 0,a=void 0;if(v(e=i.call(t,r,(function(t){return a=t}))||a))return{v:new o((function(r,i){n.forEach((function(n){e=y(e,(function(e){return n.call(t,e)||e}),i)})),y(e,r,i)}),t)};m(e)&&n.unshift(e)}();if("object"==typeof a)return a.v}}}return v(t)||(t=null),r.use=function(t){e.push(t)},r}(e.$vm);return function(t){c.call(arguments,1).forEach((function(e){for(var n in e)void 0===t[n]&&(t[n]=e[n])}))}(t||{},e.$options,Y.options),Y.interceptors.forEach((function(t){f(t)&&(t=Y.interceptor[t]),m(t)&&n.use(t)})),n(new j(t)).then((function(t){return t.ok?t:o.reject(t)}),(function(t){return Error,o.reject(t)}))}function H(t,e,n,r){var i=this||{},o={};return b(n=w({},H.actions,n),(function(n,a){n=x({url:t,params:w({},e)},r,n),o[a]=function(){return(i.$http||Y)(U(n,arguments))}})),o}function U(t,e){var n,r=w({},t),i={};switch(e.length){case 2:i=e[0],n=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(r.method)?n=e[0]:i=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return r.body=n,r.params=w({},r.params,i),r}function V(t){V.installed||(!function(t){var e=t.config,n=t.nextTick;s=n,e.debug||!e.silent}(t),t.url=A,t.http=Y,t.resource=H,t.Promise=o,Object.defineProperties(t.prototype,{$url:{get:function(){return _(t.url,this,this.$options.url)}},$http:{get:function(){return _(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(n){return new t.Promise(n,e)}}}}))}Y.options={},Y.headers={put:z,post:z,patch:z,delete:z,common:{Accept:"application/json, text/plain, */*"},custom:{}},Y.interceptor={before:function(t){m(t.before)&&t.before.call(this,t)},method:function(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")},jsonp:function(t){"JSONP"==t.method&&(t.client=N)},json:function(t){var e=t.headers.get("Content-Type")||"";return v(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?y(t.text(),(function(e){var n,r,i;if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||(r=(n=e).match(/^\s*(\[|\{)/),i={"[":/]\s*$/,"{":/}\s*$/},r&&i[r[1]].test(n)))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t})):t}},form:function(t){var e;e=t.body,"undefined"!=typeof FormData&&e instanceof FormData?t.headers.delete("Content-Type"):v(t.body)&&t.emulateJSON&&(t.body=A.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))},header:function(t){b(w({},Y.headers.common,t.crossOrigin?{}:Y.headers.custom,Y.headers[h(t.method)]),(function(e,n){t.headers.has(n)||t.headers.set(n,e)}))},cors:function(t){if(u){var e=A.parse(location.href),n=A.parse(t.getUrl());n.protocol===e.protocol&&n.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,P||(t.client=O))}}},Y.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach((function(t){Y[t]=function(e,n){return this(w(n||{},{url:e,method:t}))}})),["post","put","patch"].forEach((function(t){Y[t]=function(e,n,r){return this(w(r||{},{url:e,method:t,body:n}))}})),H.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&!window.Vue.resource&&window.Vue.use(V),e.exports=V},{got:2}],14:[function(t,e,n){(function(t){(function(){ /*! * vue-router v3.5.2 * (c) 2021 Evan You * @license MIT */ "use strict";function n(t,e){if(!t)throw new Error("[vue-router] "+e)}function r(e,n){t.env.NODE_ENV}function i(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function c(e){try{return decodeURIComponent(e)}catch(e){"production"!==t.env.NODE_ENV&&r()}return e}var u=function(t){return null==t||"object"==typeof t?t:String(t)};function d(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(l(e)):r.push(l(e)+"="+l(t)))})),r.join("&")}return l(e)+"="+l(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function f(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=m(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:y(e,i),matched:t?g(t):[]};return n&&(a.redirectedFrom=y(n,i)),Object.freeze(a)}function m(t){if(Array.isArray(t))return t.map(m);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=m(t[n]);return e}return t}var v=f(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||h)(r)+i}function _(t,e,n){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&(n||t.hash===e.hash&&b(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&b(t.query,e.query)&&b(t.params,e.params))))}function b(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var a=e[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?b(o,a):String(o)===String(a)}))}function w(t){for(var e=0;e=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(s.path||""),f=n&&n.path||"/",m=p.path?C(p.path,f,o||s.append):f,v=function(e,n,i){void 0===n&&(n={});var o,a=i||d;try{o=a(e||"")}catch(e){"production"!==t.env.NODE_ENV&&r(0,e.message),o={}}for(var s in n){var l=n[s];o[s]=Array.isArray(l)?l.map(u):u(l)}return o}(p.query,s.query,a&&a.options.parseQuery),g=s.hash||p.hash;return g&&"#"!==g.charAt(0)&&(g="#"+g),{_normalized:!0,path:m,query:v,hash:g}}var V,W,G,q,X=function(){},K={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var n=this,o=this.$router,a=this.$route,s=o.resolve(this.to,a,this.append),l=s.location,c=s.route,u=s.href,d={},h=o.options.linkActiveClass,m=o.options.linkExactActiveClass,v=null==h?"router-link-active":h,g=null==m?"router-link-exact-active":m,y=null==this.activeClass?v:this.activeClass,b=null==this.exactActiveClass?g:this.exactActiveClass,w=c.redirectedFrom?f(null,U(c.redirectedFrom),null,o):c;d[b]=_(a,w,this.exactPath),d[y]=this.exact||this.exactPath?d[b]:function(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(a,w);var x=d[b]?this.ariaCurrentValue:null,S=function(t){J(t)&&(n.replace?o.replace(l,X):o.push(l,X))},C={click:J};Array.isArray(this.event)?this.event.forEach((function(t){C[t]=S})):C[this.event]=S;var k={class:d},T=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:c,navigate:S,isActive:d[y],isExactActive:d[b]});if(T){if("production"===t.env.NODE_ENV||this.custom||(!V&&r(),V=!0),1===T.length)return T[0];if(T.length>1||!T.length)return"production"!==t.env.NODE_ENV&&r(0,this.to),0===T.length?e():e("span",{},T)}if("production"!==t.env.NODE_ENV&&("tag"in this.$options.propsData&&!W&&(r(),W=!0),"event"in this.$options.propsData&&!G&&(r(),G=!0)),"a"===this.tag)k.on=C,k.attrs={href:u,"aria-current":x};else{var E=Z(this.$slots.default);if(E){E.isStatic=!1;var M=E.data=i({},E.data);for(var A in M.on=M.on||{},M.on){var I=M.on[A];A in C&&(M.on[A]=Array.isArray(I)?I:[I])}for(var O in C)O in M.on?M.on[O].push(C[O]):M.on[O]=S;var P=E.data.attrs=i({},E.data.attrs);P.href=u,P["aria-current"]=x}else k.on=C}return e(this.tag,k,this.$slots.default)}};function J(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Z(t){if(t)for(var e,n=0;n0){h.map((function(t){return"- "+t})).join("\n");r()}}return{pathList:s,pathMap:l,nameMap:c}}function nt(e,i,o,a,s,l){var c=a.path,u=a.name;"production"!==t.env.NODE_ENV&&(n(null!=c,'"path" is required in a route configuration.'),n("string"!=typeof a.component,'route config "component" for path: '+String(c||u)+" cannot be a string id. Use an actual component instead."),r(/[^\u0000-\u007F]+/.test(c)));var d=a.pathToRegexpOptions||{},h=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return k(e.path+"/"+t)}(c,s,d.strict);"boolean"==typeof a.caseSensitive&&(d.sensitive=a.caseSensitive);var p={path:h,regex:rt(h,d),components:a.components||{default:a.component},alias:a.alias?"string"==typeof a.alias?[a.alias]:a.alias:[],instances:{},enteredCbs:{},name:u,parent:s,matchAs:l,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{},props:null==a.props?{}:a.components?a.props:{default:a.props}};if(a.children&&("production"!==t.env.NODE_ENV&&a.name&&!a.redirect&&a.children.some((function(t){return/^\/?$/.test(t.path)}))&&r(0,(a.name,a.name)),a.children.forEach((function(t){var n=l?k(l+"/"+t.path):void 0;nt(e,i,o,t,p,n)}))),i[p.path]||(e.push(p.path),i[p.path]=p),void 0!==a.alias)for(var f=Array.isArray(a.alias)?a.alias:[a.alias],m=0;m-1&&(c.params[f]=n.params[f]);return c.path=H(h.path,c.params),d(h,c,o)}if(c.path){c.params={};for(var m=0;m=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var Tt={redirected:2,aborted:4,cancelled:8,duplicated:16};function Et(t,e){return At(t,e,Tt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return It.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Mt(t,e){return At(t,e,Tt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function At(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var It=["params","query","hash"];function Ot(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Pt(t,e){return Ot(t)&&t._isRouter&&(null==e||t.type===e)}function Nt(e){return function(n,i,o){var a=!1,s=0,l=null;Dt(e,(function(e,n,i,c){if("function"==typeof e&&void 0===e.cid){a=!0,s++;var u,d=Ft((function(t){var n;((n=t).__esModule||Lt&&"Module"===n[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:q.extend(t),i.components[c]=t,--s<=0&&o()})),h=Ft((function(e){var n="Failed to resolve async component "+c+": "+e;"production"!==t.env.NODE_ENV&&r(),l||(l=Ot(e)?e:new Error(n),o(l))}));try{u=e(d,h)}catch(t){h(t)}if(u)if("function"==typeof u.then)u.then(d,h);else{var p=u.component;p&&"function"==typeof p.then&&p.then(d,h)}}})),a||o()}}function Dt(t,e){return Rt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Rt(t){return Array.prototype.concat.apply([],t)}var Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ft(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var $t=function(t,e){this.router=t,this.base=function(t){if(!t)if(tt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Bt(t,e,n,r){var i=Dt(t,(function(t,r,i,o){var a=function(t,e){"function"!=typeof t&&(t=q.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Rt(r?i.reverse():i)}function jt(t,e){if(e)return function(){return t.apply(e,arguments)}}$t.prototype.listen=function(t){this.cb=t},$t.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},$t.prototype.onError=function(t){this.errorCbs.push(t)},$t.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Pt(t,Tt.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},$t.prototype.confirmTransition=function(t,e,n){var i=this,o=this.current;this.pending=t;var a,s,l=function(t){!Pt(t)&&Ot(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):r()),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(_(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),l(((s=At(a=o,t,Tt.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",s));var d=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,r=xt&&n;r&&this.listeners.push(ht());var i=function(){var n=t.current,i=Yt(t.base);t.current===v&&i===t._startLocation||t.transitionTo(i,(function(t){r&&pt(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){St(k(r.base+t.fullPath)),pt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ct(k(r.base+t.fullPath)),pt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Yt(this.base)!==this.current.fullPath){var e=k(this.base+this.current.fullPath);t?St(e):Ct(e)}},e.prototype.getCurrentLocation=function(){return Yt(this.base)},e}($t);function Yt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(k(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ht=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=Yt(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}(this.base)||Ut()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=xt&&e;n&&this.listeners.push(ht());var r=function(){var e=t.current;Ut()&&t.transitionTo(Vt(),(function(r){n&&pt(t.router,r,e,!0),xt||qt(r.fullPath)}))},i=xt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Gt(t.fullPath),pt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){qt(t.fullPath),pt(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Vt()!==e&&(t?Gt(e):qt(e))},e.prototype.getCurrentLocation=function(){return Vt()},e}($t);function Ut(){var t=Vt();return"/"===t.charAt(0)||(qt("/"+t),!1)}function Vt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Wt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Gt(t){xt?St(Wt(t)):window.location.hash=t}function qt(t){xt?Ct(Wt(t)):window.location.replace(Wt(t))}var Xt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Pt(t,Tt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}($t),Kt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(e.routes||[],this);var r=e.mode||"hash";switch(this.fallback="history"===r&&!xt&&!1!==e.fallback,this.fallback&&(r="hash"),tt||(r="abstract"),this.mode=r,r){case"history":this.history=new zt(this,e.base);break;case"hash":this.history=new Ht(this,e.base,this.fallback);break;case"abstract":this.history=new Xt(this,e.base);break;default:"production"!==t.env.NODE_ENV&&n(!1,"invalid mode: "+r)}},Jt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Kt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Jt.currentRoute.get=function(){return this.history&&this.history.current},Kt.prototype.init=function(e){var r=this;if("production"!==t.env.NODE_ENV&&n(Q.installed,"not installed. Make sure to call `Vue.use(VueRouter)` before creating root instance."),this.apps.push(e),e.$once("hook:destroyed",(function(){var t=r.apps.indexOf(e);t>-1&&r.apps.splice(t,1),r.app===e&&(r.app=r.apps[0]||null),r.app||r.history.teardown()})),!this.app){this.app=e;var i=this.history;if(i instanceof zt||i instanceof Ht){var o=function(t){i.setupListeners(),function(t){var e=i.current,n=r.options.scrollBehavior;xt&&n&&"fullPath"in t&&pt(r,t,e,!1)}(t)};i.transitionTo(i.getCurrentLocation(),o,o)}i.listen((function(t){r.apps.forEach((function(e){e._route=t}))}))}},Kt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Kt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Kt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Kt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Kt.prototype.onError=function(t){this.history.onError(t)},Kt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Kt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Kt.prototype.go=function(t){this.history.go(t)},Kt.prototype.back=function(){this.go(-1)},Kt.prototype.forward=function(){this.go(1)},Kt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Kt.prototype.resolve=function(t,e,n){var r=U(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?k(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Kt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Kt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Kt.prototype.addRoutes=function(e){"production"!==t.env.NODE_ENV&&r(),this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Kt.prototype,Jt),Kt.install=Q,Kt.version="3.5.2",Kt.isNavigationFailure=Pt,Kt.NavigationFailureType=Tt,Kt.START_LOCATION=v,tt&&window.Vue&&window.Vue.use(Kt),e.exports=Kt}).call(this)}).call(this,t("_process"))},{_process:6}],15:[function(t,e,n){(function(t,r){(function(){ /*! * Vue.js v2.6.14 * (c) 2014-2021 Evan You * Released under the MIT License. */ !function(t,r){"object"==typeof n&&void 0!==e?e.exports=r():"function"==typeof define&&define.amd?define(r):(t=t||self).Vue=r()}(this,(function(){"use strict";var e=Object.freeze({});function n(t){return null==t}function i(t){return null!=t}function o(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function c(t){return l.call(t).slice(8,-1)}function u(t){return"[object Object]"===l.call(t)}function d(t){return"[object RegExp]"===l.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var S=/-(\w)/g,C=x((function(t){return t.replace(S,(function(t,e){return e?e.toUpperCase():""}))})),k=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),T=/\B([A-Z])/g,E=x((function(t){return t.replace(T,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function I(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n0,tt=J&&J.indexOf("edge/")>0,et=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),nt=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),rt={}.watch,it=!1;if(q)try{var ot={};Object.defineProperty(ot,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,ot)}catch(t){}var at=function(){return void 0===W&&(W=!q&&!X&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),W},st=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function lt(t){return"function"==typeof t&&/native code/.test(t.toString())}var ct,ut="undefined"!=typeof Symbol&<(Symbol)&&"undefined"!=typeof Reflect&<(Reflect.ownKeys);ct="undefined"!=typeof Set&<(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt,ht,pt,ft=P,mt="undefined"!=typeof console,vt=/(?:^|[-_])(\w)/g;dt=function(t,e){var n=e?ft(e):"";z.warnHandler?z.warnHandler.call(null,t,e,n):mt&&z.silent},ht=function(t,e){mt&&z.silent},pt=function(t,e){if(t.$root===t)return"";var n="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t,r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?"<"+function(t){return t.replace(vt,(function(t){return t.toUpperCase()})).replace(/[-_]/g,"")}(r)+">":"")+(i&&!1!==e?" at "+i:"")};ft=function(t){if(t._isVue&&t.$parent){for(var e=[],n=0;t;){if(e.length>0){var r=e[e.length-1];if(r.constructor===t.constructor){n++,t=t.$parent;continue}n>0&&(e[e.length-1]=[r,n],n=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((function(t,e){return""+(0===e?"---\x3e ":function(t,e){for(var n="";e;)e%2==1&&(n+=t),e>1&&(t+=t),e>>=1;return n}(" ",5+2*e))+(Array.isArray(t)?pt(t[0])+"... ("+t[1]+" recursive calls)":pt(t))})).join("\n")}return"\n\n(found in "+pt(t)+")"};var gt=0,yt=function(){this.id=gt++,this.subs=[]};yt.prototype.addSub=function(t){this.subs.push(t)},yt.prototype.removeSub=function(t){_(this.subs,t)},yt.prototype.depend=function(){yt.target&&yt.target.addDep(this)},yt.prototype.notify=function(){var t=this.subs.slice();z.async||t.sort((function(t,e){return t.id-e.id}));for(var e=0,n=t.length;e-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===E(t)){var u=te(String,i.type);(u<0||l0&&($e((s=Be(s,(e||"")+"_"+r))[0])&&$e(c)&&(u[l]=kt(c.text+s[0].text),s.shift()),u.push.apply(u,s)):a(s)?$e(c)?u[l]=kt(c.text+s):""!==s&&u.push(kt(s)):$e(s)&&$e(c)?u[l]=kt(c.text+s.text):(o(t._isVList)&&i(s.tag)&&n(s.key)&&i(e)&&(s.key="__vlist"+e+"_"+r+"__"),u.push(s)));return u}function je(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Ve(n,l,t[l]))}else i={};for(var c in n)c in i||(i[c]=We(n,c));return t&&Object.isExtensible(t)&&(t._normalized=i),U(i,"$stable",a),U(i,"$key",s),U(i,"$hasNormal",o),i}function Ve(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:Fe(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!He(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function We(t,e){return function(){return t[e]}}function Ge(t,e){var n,r,o,a,l;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;r.",t),l=new xt(z.parsePlatformTagName(e),n,r,void 0,void 0,t)):l=n&&n.pre||!i(u=Gt(t.$options,"components",e))?new xt(e,n,r,void 0,void 0,t):fn(u,n,t,r,e)}else l=fn(e,n,t,r);return Array.isArray(l)?l:i(l)?(i(c)&&gn(l,c),i(n)&&function(t){s(t.style)&&Ie(t.style);s(t.class)&&Ie(t.class)}(n),l):Ct()}(t,e,n,r,l)}function gn(t,e,r){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,r=!0),i(t.children))for(var a=0,s=t.children.length;adocument.createEvent("Event").timeStamp&&(zn=function(){return Yn.now()})}function Hn(){var t,e;for(jn=zn(),$n=!0,Nn.sort((function(t,e){return t.id-e.id})),Bn=0;Bn100)){dt("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var n=Dn.slice(),r=Nn.slice();Bn=Nn.length=Dn.length=0,Rn={},Ln={},Fn=$n=!1,function(t){for(var e=0;eBn&&Nn[n].id>t.id;)n--;Nn.splice(n+1,0,t)}else Nn.push(t);if(!Fn){if(Fn=!0,!z.async)return void Hn();_e(Hn)}}}(this)},Vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';oe(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},Vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Vn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Wn={enumerable:!0,configurable:!0,get:P,set:P};function Gn(t,e,n){Wn.get=function(){return this[e][n]},Wn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Wn)}function qn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Ot(!1);var a=function(a){i.push(a);var s=qt(a,e,n,t),l=E(a);(y(l)||z.isReservedAttr(l))&&dt('"'+l+'" is a reserved attribute and cannot be used as component prop.',t),Dt(r,a,s,(function(){o||En||dt("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',t)})),a in t||Gn(t,"_props",a)};for(var s in e)a(s);Ot(!0)}(t,e.props),e.methods&&function(t,e){var n=t.$options.props;for(var r in e)"function"!=typeof e[r]&&dt('Method "'+r+'" has type "'+typeof e[r]+'" in the component definition. Did you reference the function correctly?',t),n&&w(n,r)&&dt('Method "'+r+'" has already been defined as a prop.',t),r in t&&H(r)&&dt('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),t[r]="function"!=typeof e[r]?P:M(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){bt();try{return t.call(e,e)}catch(t){return ie(t,e,"data()"),{}}finally{wt()}}(e,t):e||{})||(e={},dt("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));var n=Object.keys(e),r=t.$options.props,i=t.$options.methods,o=n.length;for(;o--;){var a=n[o];i&&w(i,a)&&dt('Method "'+a+'" has already been defined as a data property.',t),r&&w(r,a)?dt('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',t):H(a)||Gn(t,"_data",a)}Nt(e,!0)}(t):Nt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=at();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;null==a&&dt('Getter is missing for computed property "'+i+'".',t),r||(n[i]=new Vn(t,a||P,P,Xn)),i in t?i in t.$data?dt('The computed property "'+i+'" is already defined in data.',t):t.$options.props&&i in t.$options.props?dt('The computed property "'+i+'" is already defined as a prop.',t):t.$options.methods&&i in t.$options.methods&&dt('The computed property "'+i+'" is already defined as a method.',t):Kn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==rt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function ar(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&sr(n,o,r,i)}}}function sr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,_(n,e)}!function(t){t.prototype._init=function(t){var n,r,i=this;i._uid=tr++,z.performance&&ce&&(n="vue-perf-start:"+i._uid,r="vue-perf-end:"+i._uid,ce(n)),i._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(i,t):i.$options=Wt(er(i.constructor),t||{},i),be(i),i._self=i,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(i),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&kn(t,e)}(i),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ze(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return vn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return vn(t,e,n,r,i,!0)};var o=r&&r.data;Dt(t,"$attrs",o&&o.attrs||e,(function(){!En&&dt("$attrs is readonly.",t)}),!0),Dt(t,"$listeners",n._parentListeners||e,(function(){!En&&dt("$listeners is readonly.",t)}),!0)}(i),Pn(i,"beforeCreate"),function(t){var e=je(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach((function(n){Dt(t,n,e[n],(function(){dt('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+n+'"',t)}))})),Ot(!0))}(i),qn(i),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(i),Pn(i,"created"),z.performance&&ce&&(i._name=pt(i,!1),ce(r),ue("vue "+i._name+" init",n,r)),i.$options.el&&i.$mount(i.$options.el)}}(nr),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};e.set=function(){dt("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){dt("$props is readonly.",this)},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Rt,t.prototype.$delete=Lt,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return Qn(r,t,e,n);(n=n||{}).user=!0;var i=new Vn(r,t,e,n);if(n.immediate){var o='callback for immediate watcher "'+i.expression+'"';bt(),oe(e,r,[i.value],r,o),wt()}return function(){i.teardown()}}}(nr),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?A(r):r;for(var i=A(arguments,1),o='event handler for "'+t+'"',a=0,s=r.length;aparseInt(this.max)&&sr(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)sr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){ar(t,(function(t){return or(e,t)}))})),this.$watch("exclude",(function(e){ar(t,(function(t){return!or(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=wn(t),n=e&&e.componentOptions;if(n){var r=ir(n),i=this.include,o=this.exclude;if(i&&(!r||!or(i,r))||o&&r&&or(o,r))return e;var a=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,_(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return z},set:function(){dt("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:I,mergeOptions:Wt,defineReactive:Dt},t.set=Rt,t.delete=Lt,t.nextTick=_e,t.observable=function(t){return Nt(t),t},t.options=Object.create(null),B.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,I(t.options.components,cr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Wt(this.options,t),this}}(t),rr(t),function(t){B.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&Ut(t),"component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(nr),Object.defineProperty(nr.prototype,"$isServer",{get:at}),Object.defineProperty(nr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(nr,"FunctionalRenderContext",{value:cn}),nr.version="2.6.14";var ur=v("style,class"),dr=v("input,textarea,option,select,progress"),hr=function(t,e,n){return"value"===n&&dr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},pr=v("contenteditable,draggable,spellcheck"),fr=v("events,caret,typing,plaintext-only"),mr=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),vr="http://www.w3.org/1999/xlink",gr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},yr=function(t){return gr(t)?t.slice(6,t.length):""},_r=function(t){return null==t||!1===t};function br(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=wr(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=wr(e,n.data));return function(t,e){if(i(t)||i(e))return xr(t,Sr(e));return""}(e.staticClass,e.class)}function wr(t,e){return{staticClass:xr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function xr(t,e){return t?e?t+" "+e:t:e||""}function Sr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?qr(t,e,n):mr(e)?_r(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):pr(e)?t.setAttribute(e,function(t,e){return _r(e)||"false"===e?"false":"contenteditable"===t&&fr(e)?e:"true"}(e,n)):gr(e)?_r(n)?t.removeAttributeNS(vr,yr(e)):t.setAttributeNS(vr,e,n):qr(t,e,n)}function qr(t,e,n){if(_r(n))t.removeAttribute(e);else{if(Z&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Xr={create:Wr,update:Wr};function Kr(t,e){var r=e.elm,o=e.data,a=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=br(e),l=r._transitionClasses;i(l)&&(s=xr(s,Sr(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var Jr,Zr,Qr,ti,ei,ni,ri,ii={create:Kr,update:Kr},oi=/[\w).+\-_$\]]/;function ai(t){var e,n,r,i,o,a=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,p=0;for(r=0;r=0&&" "===(m=t.charAt(f));f--);m&&oi.test(m)||(c=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&v(),o)for(r=0;r-1?{exp:t.slice(0,ti),key:'"'+t.slice(ti+1)+'"'}:{exp:t,key:null};Zr=t,ti=ei=ni=0;for(;!Ci();)ki(Qr=Si())?Ei(Qr):91===Qr&&Ti(Qr);return{exp:t.slice(0,ei),key:t.slice(ei+1,ni)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Si(){return Zr.charCodeAt(++ti)}function Ci(){return ti>=Jr}function ki(t){return 34===t||39===t}function Ti(t){var e=1;for(ei=ti;!Ci();)if(ki(t=Si()))Ei(t);else if(91===t&&e++,93===t&&e--,0===e){ni=ti;break}}function Ei(t){for(var e=t;!Ci()&&(t=Si())!==e;);}var Mi,Ai="__r";function Ii(t,e,n){var r=Mi;return function i(){var o=e.apply(null,arguments);null!==o&&Ni(t,i,n,r)}}var Oi=de&&!(nt&&Number(nt[1])<=53);function Pi(t,e,n,r){if(Oi){var i=jn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Mi.addEventListener(t,e,it?{capture:n,passive:r}:n)}function Ni(t,e,n,r){(r||Mi).removeEventListener(t,e._wrapper||e,n)}function Di(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},o=t.data.on||{};Mi=e.elm,function(t){if(i(t.__r)){var e=Z?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),De(r,o,Pi,Ni,Ii,e.context),Mi=void 0}}var Ri,Li={create:Di,update:Di};function Fi(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var r,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(r in i(l.__ob__)&&(l=e.data.domProps=I({},l)),s)r in l||(a[r]="");for(r in l){if(o=l[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var c=n(o)?"":String(o);$i(a,c)&&(a.value=c)}else if("innerHTML"===r&&Tr(a.tagName)&&n(a.innerHTML)){(Ri=Ri||document.createElement("div")).innerHTML=""+o+"";for(var u=Ri.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(o!==s[r])try{a[r]=o}catch(t){}}}}function $i(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return m(n)!==m(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Bi={create:Fi,update:Fi},ji=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function zi(t){var e=Yi(t.style);return t.staticStyle?I(t.staticStyle,e):e}function Yi(t){return Array.isArray(t)?O(t):"string"==typeof t?ji(t):t}var Hi,Ui=/^--/,Vi=/\s*!important$/,Wi=function(t,e,n){if(Ui.test(e))t.style.setProperty(e,n);else if(Vi.test(n))t.style.setProperty(E(e),n.replace(Vi,""),"important");else{var r=qi(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Ji).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Qi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Ji).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function to(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&I(e,eo(t.name||"v")),I(e,t),e}return"string"==typeof t?eo(t):void 0}}var eo=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),no=q&&!Q,ro="transition",io="animation",oo="transition",ao="transitionend",so="animation",lo="animationend";no&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oo="WebkitTransition",ao="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(so="WebkitAnimation",lo="webkitAnimationEnd"));var co=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function uo(t){co((function(){co(t)}))}function ho(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Zi(t,e))}function po(t,e){t._transitionClasses&&_(t._transitionClasses,e),Qi(t,e)}function fo(t,e,n){var r=vo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ro?ao:lo,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(n=ro,u=a,d=o.length):e===io?c>0&&(n=io,u=c,d=l.length):d=(n=(u=Math.max(a,c))>0?a>c?ro:io:null)?n===ro?o.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===ro&&mo.test(r[oo+"Property"])}}function go(t,e){for(;t.length explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",n.context):isNaN(t)&&dt(" explicit "+e+" duration is NaN - the duration expression might be incorrect.",n.context)}function xo(t){return"number"==typeof t&&!isNaN(t)}function So(t){if(n(t))return!1;var e=t.fns;return i(e)?So(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Co(t,e){!0!==e.data.show&&_o(e)}var ko=function(t){var e,r,s={},l=t.modules,c=t.nodeOps;for(e=0;e - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?c.createElementNS(t.ns,v):c.createElement(v,t),w(t),y(t,f,e),i(d)&&b(t,e),g(n,t.elm,r),d&&d.pre&&p--):o(t.isComment)?(t.elm=c.createComment(t.text),g(n,t.elm,r)):(t.elm=c.createTextNode(t.text),g(n,t.elm,r))}}function m(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,_(t)?(b(t,e),w(t)):(Dr(t),e.push(t))}function g(t,e,n){i(t)&&(i(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){T(e);for(var r=0;rp?x(t,n(r[g+1])?null:r[g+1].elm,r,h,g,o):h>g&&C(e,d,p)}(d,m,v,r,u):i(v)?(T(v),i(t.text)&&c.setTextContent(d,""),x(d,null,v,0,v.length-1,r)):i(m)?C(m,0,m.length-1):i(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),i(p)&&i(h=p.hook)&&i(h=h.postpatch)&&h(t,e)}}}function A(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r, or missing . Bailing hydration and performing full client-side render.")}l=t,t=new xt(c.tagName(l).toLowerCase(),{},[],void 0,l)}var p=t.elm,m=c.parentNode(p);if(f(e,d,p._leaveCb?null:m,c.nextSibling(p)),i(e.parent))for(var v=e.parent,g=_(e);v;){for(var y=0;y-1,a.selected!==o&&(a.selected=o);else if(R(Io(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}else dt('