1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CH3fYYyz2.js","./BrziuKlZ.js","./CXRl-omN.js","./BihudvvN.js","./DaMhauKL.js","./Dm1eL0PY.js","./BOkSj4L7.js","./DQ0SsZjh.js","./CrRnRItm.js","./DmxAbXyk.js","./DQOC4VRY.js","./BDNMzG2s.js","./Dk_UvX4z.js","./z7l00AT8.js","./L3_U0-XL.js","./Cm9TjWzH2.js","./_appliance_.CDiRs-07.css","./CwAM3wfW.js","./Mlp3uqSs.js","./CCdleD-T.js","./PageNav.BNiOPFn-.css","./B3zkQxRd.js","./BqZlvbIG.js","./w2rLkssz.js","./SubHero.1s92X0qe.css","./CeRUkyEr.js","./DKP0DES6.js","./brand.Cwps0DL9.css","./DDpunkI3.js","./BoFeF2cV.js","./Dsy6IEME.js","./Graphic.BO3TxkSX.css","./DTCKSaQY.js","./VerticalFeature.epiEzbe3.css","./certification.B-m-moLs.css","./8DKBHlrc.js","./cla.B32OrFQx.css","./CigNwPsE2.js","./HZHgVyam.js","./FloatingModal.BMbWtD_-.css","./DqrXqTw8.js","./carousel.Beob95xg.css","./CYQny8wC2.js","./conference.D6ZMrhJN.css","./Cgt-8MxB2.js","./BO_l4E_s.js","./BFbzM9y4.js","./D-Kz-qhJ.js","./B46cUOZ4.js","./ContactForm.BKpnkGpQ.css","./BmPqPcBY2.js","./DQHUzpFG2.js","./demo-maintenance.DVEDcggG.css","./DCbwuCe_2.js","./education.bkPM6tGe.css","./-AY7raSd2.js","./CGCEXr_Z2.js","./9Npx_yTN2.js","./CU8wm_-l2.js","./hardware.Djd1aOTN.css","./DU-cU7Rg2.js","./license.BAMcc2Xc.css","./Bvfqrp-h2.js","./privacy.CL3X-SMZ.css","./W5LweR_22.js","./pro.DiUqP1Za.css","./DIxtdySK2.js","./software.CHa9g1tF.css","./kVEKSlF82.js","./status.Cm8PBpA1.css","./DM8wwkAa2.js","./support.-5fLiuVl.css","./BasKdVIF2.js","./B-6EkcEj2.js","./thank_you.Bib-K9Z5.css","./D7Stg5mQ2.js","./training.C9_sUFiY.css","./DslXIcTW2.js","./pages.Rs6hKDFW.css","./CtFDdz6h.js","./QauN0Mad.js","./default.CCnJ0MM9.css"])))=>i.map(i=>d[i]); 2import{A as e,B as t,E as n,F as r,G as i,I as a,J as o,L as s,M as c,N as l,O as u,P as d,R as f,T as p,U as m,W as h,X as g,Y as _,_ as v,a as y,b,c as ee,f as x,g as S,i as C,j as w,k as te,m as ne,n as re,o as T,p as E,q as ie,r as ae,s as oe,t as se,v as ce}from"./CXRl-omN.js";import{$ as le,C as D,E as ue,F as de,H as fe,I as O,K as pe,T as me,W as he,X as ge,Z as _e,_ as ve,a as ye,c as k,d as be,et as xe,f as Se,i as Ce,j as we,k as Te,l as Ee,nt as De,r as Oe,rt as ke,st as A,tt as Ae,u as je,v as Me,w as Ne,x as j,y as Pe}from"./BihudvvN.js";import{n as Fe,r as Ie}from"./CrRnRItm.js";import{n as Le,t as Re}from"./D-Kz-qhJ.js";import{n as ze}from"./Mlp3uqSs.js";import{a as Be,c as Ve,d as He,f as Ue,i as We,l as Ge,n as Ke,o as qe,p as Je,s as Ye,t as M,u as Xe}from"./QauN0Mad.js";import{A as Ze,B as Qe,C as $e,D as et,E as tt,F as nt,H as rt,I as it,L as at,M as ot,N,O as st,P as ct,R as lt,S as ut,T as dt,U as ft,V as pt,W as mt,_ as ht,b as gt,c as _t,d as vt,f as yt,g as bt,h as xt,j as St,k as Ct,l as wt,m as Tt,n as Et,o as Dt,p as Ot,s as kt,t as At,u as jt,v as Mt,w as Nt,x as Pt,y as Ft,z as It}from"./DQ0SsZjh.js";import{i as Lt,o as Rt}from"./DQOC4VRY.js";import{t as zt}from"./DaMhauKL.js";import{c as Bt,n as Vt,r as Ht,s as Ut}from"./Dm1eL0PY.js";import{r as Wt}from"./BOkSj4L7.js";import{t as Gt}from"./BDNMzG2s.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),`global`in globalThis||(globalThis.global=globalThis);function Kt(e,t){return t&&typeof e==`function`&&(e.key=t),e}var qt=/\\/g,Jt=/</g,Yt=/"/g,Xt=/%\w+(?:\.\w+)?/g,Zt=`%separator`;function Qt(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(qt,`\\\\`).replace(Jt,`\\u003C`).replace(Yt,`\\"`):r||``}function $t(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(Xt);if(!a)return e;let o=e.includes(Zt);return e=e.replace(Xt,e=>{if(e===Zt||!a.includes(e))return e;let n=Qt(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(Zt).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var en=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,tn=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),nn=Kt({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=tn(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=tn(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(en))}}}),rn=Kt({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`
2in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function an(e){return typeof e?.then==`function`}function on(e){if(typeof e==`function`)return e;if(an(e))return Promise.resolve(e).then(on);if(Array.isArray(e)){let t=e.map(on);return t.some(an)?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=t.map(t=>on(e[t]));if(n.some(an))return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var sn=Kt(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=on(a);if(!an(o)){t.delete(i);continue}t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})}}}}},`promises`),cn={meta:`content`,link:`href`,htmlAttrs:`lang`},ln=[`innerHTML`,`textContent`],un=Kt(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=$t(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=cn[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=$t(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of ln)typeof e[t]==`string`&&(e[t]=$t(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=$t(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function dn(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function fn(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>dn(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var pn=g({docsBase:o,reporters:_}),mn=g({docsBase:o,reporters:_}),hn=()=>location.protocol+`//`+location.host;function gn(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ze(n,``)}return Ze(n,e)+r+i}function _n(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=gn(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(N({},e.state,{scroll:kt()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function vn(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?kt():null}}function yn(e){let{history:t,location:n}=window,r={value:gn(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:hn()+e+r;
vendor: 4,812 bytes, line 2
2try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,N({},t.state,vn(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=N({},i.value,t.state,{forward:e,scroll:kt()});a(o.current,o,!0),a(e,N({},vn(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function bn(e){e=ut(e);let t=yn(e),n=_n(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=N({location:``,base:e,go:r,createHref:_t.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var xn={type:0,value:``},Sn=/[a-zA-Z0-9_]/;function Cn(e){if(!e)return[[]];if(e===`/`)return[[xn]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Sn.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var wn=`[^/]+?`,Tn={sensitive:!1,strict:!1,start:!0,end:!0},En=/[.+*?^${}()[\]/\\]/g;function Dn(e,t){let n=N({},Tn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(En,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||wn;if(u!==wn){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(nt(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=nt(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function On(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function kn(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=On(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(An(r))return 1;if(An(i))return-1}return i.length-r.length}function An(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var jn={strict:!1,end:!0,sensitive:!1};function Mn(e,t,n){let r=Dn(Cn(e.path),n),i=N(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Nn(e,t){let n=[],r=new Map;t=lt(jn,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Fn(e);s.aliasOf=r&&r.record;let l=lt(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Fn(N({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Mn(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Ln(d)&&o(e.name)),Vn(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:It}function o(e){if(Mt(e)){let t=r.get(e);
vendor: 9,124 bytes, line 2
2t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=zn(e,n);n.splice(t,0,e),e.record.name&&!Ln(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ct(1,{location:e});s=i.record.name,a=N(Pn(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Pn(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ct(1,{location:e,currentLocation:t});s=i.record.name,a=N({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Rn(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Pn(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Fn(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:In(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function In(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ln(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Rn(e){return e.reduce((e,t)=>N(e,t.meta),{})}function zn(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;kn(e,t[i])<0?r=i:n=i+1}let i=Bn(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Bn(e){let t=e;for(;t=t.parent;)if(Vn(t)&&kn(e,t)===0)return t}function Vn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hn(e){let t=D(pt),n=D(Qe),r=k(()=>{let n=A(e.to);return t.resolve(n)}),i=k(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Pt.bind(null,i));if(o>-1)return o;let s=qn(e[t-2]);return t>1&&qn(i)===s&&a[a.length-1].path!==s?a.findIndex(Pt.bind(null,e[t-2])):o}),a=k(()=>i.value>-1&&Kn(n.params,r.value.params)),o=k(()=>i.value>-1&&i.value===n.matched.length-1&>(n.params,r.value.params));function s(n={}){if(Gn(n)){let n=t[A(e.replace)?`replace`:`push`](A(e.to)).catch(It);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Un(e){return e.length===1?e[0]:e}var Wn=Pe({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Hn,setup(e,{slots:t}){let n=xe(Hn(e)),{options:r}=D(pt),i=k(()=>({[Jn(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Jn(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Un(t.default(n));return e.custom?r:j(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Gn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Kn(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!nt(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function qn(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Jn=(e,t,n)=>e??t??n,Yn=Pe({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=D(rt),i=k(()=>e.route||r.value),a=D(mt,0),o=k(()=>{let e=A(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=k(()=>i.value.matched[o.value]);O(mt,k(()=>o.value+1)),O(at,s),O(rt,i);let c=Ae();return he(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Pt(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Xn(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=j(l,N({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Xn(n.default,{Component:f,route:r})||f}}});function Xn(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Zn=Yn;function Qn(e){let t=Nn(e.routes,e),n=e.parseQuery||Nt,r=e.stringifyQuery||st,i=e.history,a=St(),o=St(),s=St(),c=ke(Dt),l=Dt;ht&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=ot.bind(null,e=>``+e),d=ot.bind(null,vt),f=ot.bind(null,wt);function p(e,n){let r,i;return Mt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=N({},a||c.value),typeof e==`string`){let r=dt(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return N(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=N({},e,{path:dt(n,e.path,a.path).path});else{let t=N({},e.params);for(let e in t)t[e]??delete t[e];o=N({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Ct(r,N({},e,{hash:jt(l),path:s.path})),m=i.createHref(p);return N({fullPath:p,hash:l,query:r===st?$e(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?dt(n,e,c.value.path):N({},e)}function y(e,t){if(l!==e)return ct(8,{from:t,to:e})}function b(e){return S(e)}function ee(e){return b(N(v(e),{replace:!0}))}function x(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),N({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function S(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=x(n,i);if(u)return S(N(v(u),{state:typeof u==`object`?N({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Ft(r,i,n)&&(f=ct(16,{to:d,from:i}),D(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>it(e)?it(e,2)?e:le(e):se(e,d,i)).then(e=>{if(e){if(it(e,2))return S(N({replace:s},v(e.to),{state:typeof e.to==`object`?N({},a,e.to.state):a,force:o}),t||d)}else e=re(d,i,!0,s,a);return ne(d,i,e),e})}function C(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=O.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=yt(e,t);n=Ot(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(bt(r,e,t))});let c=C.bind(null,e,t);return n.push(c),me(n).then(()=>{n=[];for(let r of a.list())n.push(bt(r,e,t));return n.push(c),me(n)}).then(()=>{n=Ot(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(bt(r,e,t))});return n.push(c),me(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(nt(r.beforeEnter))for(let i of r.beforeEnter)n.push(bt(i,e,t));else n.push(bt(r.beforeEnter,e,t))}return n.push(c),me(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ot(s,`beforeRouteEnter`,e,t,w),n.push(c),me(n))).then(()=>{n=[];for(let r of o.list())n.push(bt(r,e,t));return n.push(c),me(n)}).catch(e=>it(e,8)?e:Promise.reject(e))}function ne(e,t,n){s.list().forEach(r=>w(()=>r(e,t,n)))}function re(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Dt,l=ht?history.state:{};n&&(r||s?i.replace(e.fullPath,N({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,D(e,t,n,s),le()}let T;function E(){T||=i.listen((e,t,n)=>{if(!pe.listening)return;let r=_(e),a=x(r,pe.currentRoute.value);if(a){S(N(a,{replace:!0,force:!0}),r).catch(It);return}l=r;let o=c.value;ht&&tt(xt(o.fullPath,n.delta),kt()),te(r,o).catch(e=>it(e,12)?e:it(e,2)?(S(N(v(e.to),{force:!0}),r).then(e=>{it(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(It),Promise.reject()):(n.delta&&i.go(-n.delta,!1),se(e,r,o))).then(e=>{e||=re(r,o,!1),e&&(n.delta&&!it(e,8)?i.go(-n.delta,!1):n.type===`pop`&&it(e,20)&&i.go(-1,!1)),ne(r,o,e)}
2).catch(It)})}let ie=St(),ae=St(),oe;function se(e,t,n){le(e);let r=ae.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ce(){return oe&&c.value!==Dt?Promise.resolve():new Promise((e,t)=>{ie.add([e,t])})}function le(e){return oe||(oe=!e,E(),ie.list().forEach(([t,n])=>e?n(e):t()),ie.reset()),e}function D(t,n,r,i){let{scrollBehavior:a}=e;if(!ht||!a)return Promise.resolve();let o=!r&&Tt(xt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return ue().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&et(e)).catch(e=>t===c.value&&se(e,t,n))}let de=e=>i.go(e),fe,O=new Set,pe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:ee,go:de,back:()=>de(-1),forward:()=>de(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ae.add,isReady:ce,install(e){e.component(`RouterLink`,Wn),e.component(`RouterView`,Zn),e.config.globalProperties.$router=pe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>A(c)}),ht&&!fe&&c.value===Dt&&(fe=!0,b(i.location).catch(e=>{}));let t={};for(let e in Dt)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(pt,pe),e.provide(Qe,De(t)),e.provide(rt,c);let n=e.unmount;O.add(e),e.unmount=function(){O.delete(e),O.size<1&&(l=Dt,T&&T(),T=null,c.value=Dt,fe=!1,oe=!1),n()}}};function me(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return pe}var $n=(e,t)=>[],er=$n,tr=function(e){if(!e.includes(`%`))return e;let t=e.indexOf(`?`),n=t===-1?e:e.slice(0,t);try{return t===-1?decodeURI(n):decodeURI(n)+e.slice(t)}catch{return e}},nr=(e,t)=>
2{if(typeof e!=`string`)return e;let n=tr(e);return t?n.toLowerCase():n},rr=e=>Rt.sensitive?ne({},...$n(``,nr(e,!1)).map(e=>e.data).reverse()):ne({},...er(``,nr(e,!0)).map(e=>e.data).reverse()),ir=Le,ar=rr,or;function sr(){let e;return e=ir(ze(`builds/meta/${s().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw mn.NUXT_E5004();return e}),or=e,e.catch(t=>{or===e&&(or=void 0),mn.NUXT_E5002({cause:t})}),e}function cr(){return or||sr()}function lr(e){let t=typeof e==`string`?e:e.path;try{return ar(t)}catch(e){return mn.NUXT_E5003({path:t,cause:e}),{}}}var ur=2**32-1,dr=ur-1,fr=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function pr(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===fr}function mr(e){return Object.prototype.toString.call(e).slice(8,-1)}function hr(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}function gr(e){return!(!Number.isInteger(e)||e<0||e>dr)}function _r(e){return!(!Number.isInteger(e)||e<0||e>ur)}function vr(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return gr(+e)}function yr(e){for(var t=e.length-1;t>=0&&!vr(e[t]);t--);return t+1}function br(e){let t=Object.keys(e);return t.length=yr(t),t}function xr(e){return Uint8Array.fromBase64(e).buffer}function Sr(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function Cr(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var wr=typeof Uint8Array.fromBase64==`function`,Tr=typeof process==`object`&&process.versions?.node!==void 0,Er=wr?xr:Tr?Sr:Cr;function Dr(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}var Or=Object.freeze({kind:`not-plain`}),kr=Object.freeze({kind:`symbol-keys`});Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>mr(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>br(e),shapeOf:e=>pr(e)?hr(e).length>0?kr:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:Or,get:(e,t)=>e[t]});var Ar=Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[dr]=void 0,delete t[dr],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});function jr(e,t,n){return Mr(JSON.parse(e),t,n)}function Mr(e,t,n){let r=Dr(Ar,n?.operations);if(typeof e==`number`)return s(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let i=e,a=Array(i.length),o=null;function s(e,n=!1){if(e===-1)return r.fromPrimitive(void 0);if(e===-3)return r.fromPrimitive(NaN);if(e===-4)return r.fromPrimitive(1/0);if(e===-5)return r.fromPrimitive(-1/0);if(e===-6)return r.fromPrimitive(-0);if(n||typeof e!=`number`)throw Error(`Invalid input`);if(e in a)return a[e];if(e>=i.length)throw Error(`Invalid input`);let c=i[e];if(!c||typeof c!=`object`)a[e]=r.fromPrimitive(c);else if(Array.isArray(c)){if(typeof c[0]==`string`){let n=c[0],l=t&&Object.hasOwn(t,n)?t[n]:void 0;if(l){let t=c[1];if(typeof t!=`number`&&(t=i.push(c[1])-1),Object.hasOwn(a,t))return a[e]=l(a[t]);if(o??=new Set,o.has(t))throw Error(`Invalid circular reference`);return o.add(t),a[e]=l(s(t)),o.delete(t),a[e]}switch(n){case`Date`:a[e]=r.fromISOString(c[1]);break;case`Set`:let t=r.createSet();a[e]=t;for(let e=1;e<c.length;e+=1)r.addValue(t,s(c[e]));break;case`Map`:let o=r.createMap();a[e]=o;for(let e=1;e<c.length;
2e+=2)r.addEntry(o,s(c[e]),s(c[e+1]));break;case`RegExp`:a[e]=r.fromRegExpInfo(c[1],c[2]);break;case`Object`:{let t=c[1];if(typeof i[t]==`object`&&i[t][0]!==`BigInt`)throw Error(`Invalid input`);a[e]=r.box(s(t));break}case`BigInt`:a[e]=r.fromPrimitive(BigInt(c[1]));break;case`null`:let l=r.createNullPrototypeObject();a[e]=l;for(let e=1;e<c.length;e+=2){if(c[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(l,c[e],s(c[e+1]))}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(i[c[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=s(c[1]);a[e]=r.fromViewInfo(n,t,c[2],c[3]);break}case`ArrayBuffer`:{let t=c[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);a[e]=r.fromArrayBuffer(Er(t));break}case`URL`:case`URLSearchParams`:case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:a[e]=r.fromStringValue(n,c[1]);break;default:throw Error(`Unknown type ${n}`)}}else if(c[0]===-7){let t=c[1];if(!_r(t))throw Error(`Invalid input`);let n=r.createSparseArray(t);a[e]=n;for(let e=2;e<c.length;e+=2){let i=c[e];if(!gr(i)||i>=t)throw Error(`Invalid input`);r.set(n,i,s(c[e+1]))}}else{let t=r.createArray(c.length);a[e]=t;for(let e=0;e<c.length;e+=1){let n=c[e];n!==-2&&r.set(t,e,s(n))}}}else{let t=r.createObject();a[e]=t;for(let e of Object.keys(c)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(t,e,s(c[e]))}}return a[e]}return s(0)}async function Nr(e,t={}){return await Hr(e)&&await Lr(await Ir(e,t),Br(e)?`default`:`force-cache`)||null}var Pr=`_payload.json`,Fr=`_b`;async function Ir(e,t={}){let n=new URL(e,`http://localhost`);if(n.host!==`localhost`||S(n.pathname,{acceptRelative:!0}))throw pn.NUXT_E7001({url:e});let r=s(),i=t.hash||(t.fresh?Date.now():r.app.buildId),a=r.app.cdnURL,o=a&&await Ur(e)?a:r.app.baseURL,c=b(o,n.pathname,Pr);return Br(e)||(n.search=``),i&&n.searchParams.set(Fr,String(i)),c+n.search}async function Lr(e,t){try{{let n=await fetch(e,{cache:t});return n.ok?await Kr(await n.text()):null}}catch(t){pn.NUXT_E7002({url:e,cause:t})}return null}function Rr(e){if(e.redirect)return!1;if(e.prerender)return!0}function zr(e){return new URL(e,`http://localhost`).pathname}function Br(e){return!!lr({path:zr(e)}).payload}async function Vr(e){e=zr(e),e=e===`/`?e:e.replace(/\/$/,``);try{return(await cr()).prerendered.includes(e)}catch{return!1}}async function Hr(e=x().path){let t=lr({path:zr(e)});if(t.ssr===!1)return!1;let n=Rr(t);return n===void 0?t.payload?!0:await Vr(e):n}async function Ur(e=x().path){let t=Rr(lr({path:zr(e)}));return t===void 0?await Vr(e):t}var Wr=null;async function Gr(){if(Wr)return Wr;let e=document.getElementById(`__NUXT_DATA__`);if(!e)return{};let t=await Kr(e.textContent||``),n=e.dataset.src?await Lr(e.dataset.src,t.prerenderedAt?`force-cache`:`no-cache`):void 0;return Wr={...t,...n,...window.__NUXT__},Wr.config?.public&&(Wr.config.public=xe(Wr.config.public)),Wr}async function Kr(e){return await jr(e,a()._payloadRevivers)}function qr(e,t){a()._payloadRevivers[e]=t}function Jr(e){try{return JSON.parse(e)}catch{return e}}var Yr=[[`NuxtError`,e=>C(e)],[`EmptyShallowRef`,e=>ke(e===`_`?void 0:e===`0n`?BigInt(0):Jr(e))],[`EmptyRef`,e=>Ae(e===`_`?void 0:e===`0n`?BigInt(0):Jr(e))],[`ShallowRef`,e=>ke(e)],[`ShallowReactive`,e=>De(e)],[`Ref`,e=>Ae(e)],[`Reactive`,e=>xe(e)]],Xr=r({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of Yr)qr(e,t);Object.assign(e.payload,([t,n]=i(()=>e.runWithContext(Gr)),t=await t,n(),t)),delete window.__NUXT__}},1);function Zr(e,t){t.push(f),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function Qr(e,t,n){let r=e.push,i=e;return i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>dn(i,e),i.render=()=>n(i),i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,t.callHook(`entries:updated`,i)},i.push=(n,a)=>{let o=a?.onRendered?t.hook(`dom:rendered`,a.onRendered):void 0,s=r(n,a),c=e.entries.get(s._i);return c&&(c._o=n),i.dirty=!0,t.callHook(`entries:updated`,i),{_i:s._i,patch(e){s.patch(e),i.dirty=!0,t.callHook(`entries:updated`,i)},dispose(){o?.(),e.entries.has(s._i)&&(s.dispose(),i.invalidate())}}},t.hook(`entries:updated`,()=>{i.render()}),i}var $r=/\s+/;function ei(e={}){return t=>ii(t,e)}function ti(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function ni(e){for(let t in e._s)e._s[t]();for(let t in e._p)e._p[t]();e._s={},e._p={},e._e.clear(),e._l.clear()}function ri(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let e of[...t.body.children,...t.head.children]){let t=e.tagName.toLowerCase();if(!Ue.has(t))continue;let r={innerHTML:e.innerHTML};for(let t of e.getAttributeNames())r[t]=e.getAttribute(t);let i=Ve({tag:t,props:{}},r);i.key=e.getAttribute(`data-hid`)||void 0;let a=Be(i)||qe(i),o=a,s=1;for(;n._e.has(o);)o=`${a}:${s++}
2`;n._e.set(o,e)}for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split($r))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function ii(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom,i=!!r&&r._d!==n;if(!n||r&&!i&&!e.dirty&&!ti(e)||e._du)return!1;let a=n.defaultView;e._du=!0;let o=!1;try{let r=function(e,t,n,r){let i=`${e}:${t}`;d._s[i]=!r&&d._p[i]||n,delete d._p[i]},i=function(e){let t=d._p[e];return delete d._p[e],t},s=function(e,t,n,i,a,o){let s=`event:${t}`,c=`${e}:${s}`,l=d._l.get(c);if(l&&l[0]===o&&l[1]===n&&l[2]===i){r(e,s,l[4]);return}l?.[4]();let u=`data-${t}`,f=(e=>i.call(a,e)),p=()=>{o.removeEventListener(n,f),a.getAttribute(u)===``&&a.removeAttribute(u),d._l.get(c)?.[3]===f&&d._l.delete(c)};o.addEventListener(n,f),d._l.set(c,[o,n,i,f,p]),a.setAttribute(u,``),r(e,s,p,!0)},c=function({id:e,$el:t,tag:n}){let o=n.tag.endsWith(`Attrs`);if(d._e.set(e,t),!o){let a=n.textContent;a!=null&&a!==``&&(a!==t.textContent&&(t.textContent=a),r(e,`text`,()=>{t.textContent===a&&(t.textContent=``)},!0));let o=n.innerHTML;o!=null&&o!==``&&(o!==t.innerHTML&&(t.innerHTML=o),r(e,`html`,()=>{t.innerHTML===o&&(t.innerHTML=``)},!0));let s=`${e}:el`;d._s[s]=i(s)||(()=>{t?.remove(),d._e.delete(e)})}for(let r in n.props){let o=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof o==`function`){let i=r.slice(2);t?.dataset?.[`${r}fired`]&&o.call(t,new((a?.Event)||Event)(i)),s(e,r,i,o,t,n.tag===`bodyAttrs`&&a?a:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&o)for(let e of o){let n=`${c}:${e}`;d._s[n]=i(n)||(()=>t.classList.remove(e)),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&o)for(let[e,n]of o){let r=`${c}:${e}`;d._s[r]=i(r)||(()=>t.style.removeProperty(e)),t.style.setProperty(e,n)}else o!==!1&&o!==null&&(t.getAttribute(r)!==o&&t.setAttribute(r,o===!0?``:String(o)),d._s[c]=i(c)||(()=>t.removeAttribute(r)))}},l={shouldRender:!0,tags:[]};if(Xe(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=e._dom;u?._d!==n&&(u&&ni(u),u=void 0),u?u._p=u._s:u=ri(e,n),u._s={};let d=u,f=[],p={};e.dirty=!1;let m=Ge(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),h=[],g={};for(let e of m){let t=g[e._d]||0,i=(t?`${e._d}:${t}`:e._d)||e._h,a={tag:e,id:i,shouldRender:!0};if(e.tag===`meta`&&e._d&&Ye(e._d)&&(g[e._d]=t+1),h.push(a),e.tag===`title`){n.title=e.textContent,r(`title`,``,()=>n.title=d._t);continue}a.$el=d._e.get(i),a.$el?c(a):Ue.has(e.tag)&&f.push(a)}for(let e of f)e.$el=n.createElement(e.tag.tag),c(e),(p[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(let e in d._p)d._p[e]();e._dom=d,o=!0,Xe(e,`dom:rendered`,{renders:h})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return o&&(e.dirty||ti(e))&&ii(e,t),o}var ai=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Je[e.tagPriority]||0);function oi(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||ei({document:e.document}),n=Qr(fn(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:ai,init:[]}),He(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function si(e={}){let t=ei(),n,r=0;return n=oi({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=We(n),n}var ci={disableDefaults:!0,plugins:[rn,sn,un,nn]},li=r({name:`nuxt:head`,enforce:`pre`,setup(e){Zr(e,si(ci))}}),ui=/(:\w+)\([^)]+\)/g,di=/(:\w+)[?+*]/g,fi=/:\w+/g,pi=(e,t)=>t.path.replace(ui,`$1`).replace(di,`$1`).replace(fi,t=>e.params[t.slice(1)]?.toString()||``),mi=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&pi(e.route,n));return typeof r==`function`?r(e.route):r},hi=(e,t)=>({default:()=>e?j(Ce,e===!0?{}:e,t):t});function gi(e){return Array.isArray(e)?e:[e]}var _i=[ee(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=i(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);
2if(r!==!0)return C({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})},1),ee(e=>{let t=lr({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return S(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],vi={},yi=[{name:`hardware-appliance`,path:`/hardware/:appliance()`,component:()=>M(()=>import(`./CH3fYYyz2.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)},{name:`brand`,path:`/brand`,component:()=>M(()=>import(`./CwAM3wfW.js`),__vite__mapDeps([17,3,18,2,11,12,19,20,21,22,14,13,23,24,25,26,27]),import.meta.url)},{name:`certification`,path:`/certification`,component:()=>M(()=>import(`./DDpunkI3.js`),__vite__mapDeps([28,1,2,3,4,5,6,7,8,9,11,12,21,13,14,23,24,29,30,31,32,33,34]),import.meta.url)},{name:`cla`,path:`/cla`,component:()=>M(()=>import(`./8DKBHlrc.js`),__vite__mapDeps([35,3,11,19,20,21,23,24,36]),import.meta.url)},{name:`conference`,path:`/conference`,component:()=>M(()=>import(`./CigNwPsE2.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,11,38,39,19,20,21,22,13,23,24,30,12,31,40,41,42,26,43]),import.meta.url)},{name:`contact_us`,path:`/contact_us`,component:()=>M(()=>import(`./Cgt-8MxB2.js`),__vite__mapDeps([44,2,3,6,7,8,11,45,46,47,18,9,48,49]),import.meta.url)},{name:`demo-maintenance`,path:`/demo-maintenance`,component:()=>M(()=>import(`./BmPqPcBY2.js`),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,11,12,19,20,21,22,13,14,23,24,51,26,52]),import.meta.url)},{name:`education`,path:`/education`,component:()=>M(()=>import(`./DCbwuCe_2.js`),__vite__mapDeps([53,3,10,2,7,8,4,11,12,21,22,13,14,23,24,26,25,54]),import.meta.url)},{name:`feedback`,path:`/feedback`,component:()=>M(()=>import(`./-AY7raSd2.js`),__vite__mapDeps([55,2,3,6,7,8,11,45,46,47,18,9,48,49]),import.meta.url)},{name:`hardware`,path:`/hardware`,component:()=>M(()=>import(`./CGCEXr_Z2.js`),__vite__mapDeps([56,1,2,3,4,5,6,7,8,9,11,12,19,20,21,22,14,13,23,24,30,31,42,26,15,57,58,32,59]),import.meta.url)},{name:`license`,path:`/license`,component:()=>M(()=>import(`./DU-cU7Rg2.js`),__vite__mapDeps([60,3,11,19,20,21,23,24,61]),import.meta.url)},{name:`privacy`,path:`/privacy`,component:()=>M(()=>import(`./Bvfqrp-h2.js`),__vite__mapDeps([62,3,11,12,2,19,20,21,23,24,63]),import.meta.url)},{name:`pro`,path:`/pro`,component:()=>M(()=>import(`./W5LweR_22.js`),__vite__mapDeps([64,1,2,3,4,5,6,7,8,9,11,12,19,20,21,22,13,14,23,24,25,26,42,51,57,58,30,31,32,65]),import.meta.url)},{name:`software`,path:`/software`,component:()=>M(()=>import(`./DIxtdySK2.js`),__vite__mapDeps([66,1,2,3,4,5,6,7,8,9,11,12,19,20,21,22,13,14,23,24,30,31,29,32,33,42,26,51,57,67]),import.meta.url)},{name:`status`,path:`/status`,component:()=>M(()=>import(`./kVEKSlF82.js`),__vite__mapDeps([68,3,11,19,20,21,22,23,24,69]),import.meta.url)},{name:`support`,path:`/support`,component:()=>M(()=>import(`./DM8wwkAa2.js`),__vite__mapDeps([70,1,2,3,4,5,6,7,8,9,11,12,19,20,21,22,14,13,23,24,42,26,51,71]),import.meta.url)},{name:`terms`,path:`/terms`,component:()=>M(()=>import(`./BasKdVIF2.js`),__vite__mapDeps([72,2,3,11]),import.meta.url)},{name:`thank_you`,path:`/thank_you`,component:()=>M(()=>import(`./B-6EkcEj2.js`),__vite__mapDeps([73,3,18,2,10,7,8,4,11,26,74]),import.meta.url)},{name:`training`,path:`/training`,component:()=>M(()=>import(`./D7Stg5mQ2.js`),__vite__mapDeps([75,1,2,3,4,5,6,7,8,9,11,12,19,20,21,22,13,14,23,24,26,30,31,32,42,57,58,76]),import.meta.url)},{name:`index`,path:`/`,component:()=>M(()=>import(`./DslXIcTW2.js`),__vite__mapDeps([77,1,2,3,4,5,6,7,8,9,18,10,11,48,12,19,20,21,22,13,14,30,31,29,32,33,40,41,42,26,57,78]),import.meta.url)}];function bi(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),p(n,``)}let s=p(r,e),c=!n||v(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var xi=r({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=s().app.baseURL,a=Rt.history?.(r)??bn(r),o=Rt.routes?([t,n]=i(()=>
2Rt.routes(yi)),t=await t,n(),t??yi):yi,c,l=Qn({...Rt,scrollBehavior:(e,t,n)=>{if(t===Dt){c=n;return}if(Rt.scrollBehavior){if(l.options.scrollBehavior=Rt.scrollBehavior,`scrollRestoration`in window.history){let e=l.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return Rt.scrollBehavior(e,Dt,c||n)}},history:a,routes:o});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(l);let d=ke(l.currentRoute.value);l.afterEach((e,t)=>{d.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>d.value});let f=bi(r,window.location,e.payload.path),p=ke(l.currentRoute.value),m=()=>{p.value=l.currentRoute.value};l.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;if(n===r){mi({route:e,Component:{type:n}})===mi({route:t,Component:{type:r}})&&m();return}e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&m()});let h={sync:m};for(let e in p.value)Object.defineProperty(h,e,{get:()=>p.value[e],enumerable:!0});e._route=De(h),e._middleware||={global:[],named:{}};let g=oe();l.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&g.value&&await e.runWithContext(ae),r&&await e.callHook(`page:loading:end`)});try{[t,n]=i(()=>l.isReady()),await t,n()}catch(r){[t,n]=i(()=>re(e,r)),await t,n()}let _=f===l.currentRoute.value.fullPath?l.currentRoute.value:l.resolve(f),b=l.currentRoute.value.fullPath,ee=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&f!==e.payload.path&&v(l.currentRoute.value.path,e.payload.path);m();function x(t){!e.isHydrating&&t.fullPath!==bi(r,window.location)&&a.push(t.fullPath)}let S=e.payload.state._layout;return l.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=xe(t.meta),e.isHydrating&&S&&!_e(t.meta.layout)&&(t.meta.layout=S),e._processingMiddleware=!0;{let r=new Set([..._i,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of gi(t))r.add(e)}let i=lr({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await vi[i]?.().then(e=>e.default||e):i;if(!r)throw u.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||C({status:404,statusText:`Page Not Found: ${f}`});return await e.runWithContext(()=>T(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return y(i)&&i.fatal&&(await e.runWithContext(()=>T(i)),x(t)),i}catch(n){let r=C(n);return r.fatal&&(await e.runWithContext(()=>T(r)),x(t)),r}}}}),l.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),l.afterEach(t=>{if(t.matched.length===0&&!g.value)return e.runWithContext(()=>T(C({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in _&&(_.name=void 0),l.currentRoute.value.fullPath===b){if(ee){let t=l.resolve(e.payload.path);`name`in t&&(t.name=void 0),await l.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,l.currentRoute.value=l.resolve(f),m(),l.replace({..._,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await l.replace({..._,force:!0})}l.options.scrollBehavior=Rt.scrollBehavior}catch(t){await re(e,t)}}),{provide:{router:l}}}},1),Si=r({name:`nuxt:payload`,setup(e){let t=new Set;E().beforeResolve(async(r,i)=>{let a=Br(r.path),o=a?n(r.fullPath):r.path;if(o===(a?n(i.fullPath):i.path))return;let s=await Nr(o);if(s){for(let n of t)delete e.static.data[n];for(let n in s.data)n in e.static.data||t.add(n),e.static.data[n]=s.data[n]}}),zt(()=>{e.hooks.hook(`link:prefetch`,async e=>{let{hostname:t,pathname:n}=new URL(e,window.location.href);t===window.location.hostname&&await Nr(e).catch(()=>{pn.NUXT_E7003({url:e})})}),navigator.connection?.effectiveType!==`slow-2g`&&setTimeout(cr,1e3)})}}),Ci=r(()=>{let e=E();zt(()=>
2{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),wi=r(e=>{let t;async function n(){let r;try{r=await cr()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,m);try{let n=await Le(ze(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}zt(()=>{t=setTimeout(n,m)})});function Ti(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw u.NUXT_E2010({path:t});if(n.protocol&&ce(n.protocol))throw u.NUXT_E2002({toPath:t,protocol:n.protocol});let r={};try{r=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:a().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var Ei=r({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&c(navigator.userAgent)&&Ti()})}}),Di=r({name:`nuxt:chunk-reload`,setup(e){let t=E(),n=s(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){Ti({path:b(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),Oi=r({name:`nuxt:island-link-navigation`,setup(e){}}),ki=[[`Icon`,Me(()=>M(()=>import(`./BrziuKlZ.js`).then(e=>e.n).then(e=>e.default||e.default||e),__vite__mapDeps([1,2,3,4,5,6,7,8,9]),import.meta.url))]],Ai=r({name:`nuxt:global-components`,setup(e){for(let[t,n]of ki)e.vueApp.component(t,n),e.vueApp.component(`Lazy`+t,n)}}),ji={default:Me(()=>M(()=>import(`./CtFDdz6h.js`).then(e=>e.default||e),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,18,80,10,46,47,11,12,81]),import.meta.url))},Mi=r({name:`nuxt:prefetch`,setup(e){let t=E();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof ji[t]==`function`&&await ji[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(S(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=gi(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=vi[e];typeof t==`function`&&t()}typeof r==`string`&&r in ji&&Lt(ji[r])})}}),Ni=r({name:`@nuxt/icon`,setup(){let e=s(),t=Bt().icon,n=Re();Vt.setFetch(n.native);let r=[];if(t.provider===`server`){let n=e.app?.baseURL?.replace(/\/$/,``)??``;r.push(n+(t.localApiEndpoint||`/api/_nuxt_icon`)),(t.fallbackToApi===!0||t.fallbackToApi===`client-only`)&&r.push(t.iconifyApiEndpoint)}else t.provider===`none`?Vt.setFetch(()=>Promise.resolve(new Response)):r.push(t.iconifyApiEndpoint);async function i(e,t){try{let i=await n(r[0]+`/`+t+`.json`,{query:{icons:e.join(`,`)}});if(!i||i.prefix!==t||!i.icons)throw Error(`Invalid data`+JSON.stringify(i));return i}catch(e){return console.error(`Failed to load custom icons`,e),null}}Ht(``,{resources:r});for(let e of t.customCollections||[])e&&Ut(i,e)}});function Pi(){return typeof window>`u`||typeof document>`u`}async function Fi(e,t){return new Promise((n,r)=>{if(Pi())return n();let i=document.head,a=document.createElement(`script`);if(a.async=!0,a.src=e,a.type=t?.type??`text/javascript`,t?.defer&&(a.defer=!0),t?.nonce&&a.setAttribute(`nonce`,t.nonce),t?.preconnect){let t=document.createElement(`link`);t.href=new URL(e).origin,t.rel=`preconnect`,i.appendChild(t)}i.appendChild(a),a.onload=()=>n(),a.onerror=e=>r(e)})}function Ii(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Li(e,t){let n={...e};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let i=t[r],a=e[r];n[r]=Ii(i)&&Ii(a)?Li(a,i):i}return n}function Ri(e){if(Pi())return;let t=new URL(window.location.href);t.search=``;for(let[n,r]of Object.entries(e))t.searchParams.set(n,r);window.history.replaceState({},``,t.toString())}var zi=`utm_`;function Bi(e){let t=new URL(e),n={},r=[],i={};
2t.searchParams.forEach((e,t)=>{t.includes(zi)?(n[t.replace(zi,``).replace(`campaign`,`id`)]=e,r.push(t)):i[t]=e});for(let e of r)t.searchParams.delete(e);return{utmParams:n,cleanQueryParams:i,cleanUrl:t.toString()}}function Vi(e){let t=RegExp(`[?&]${zi}`);return!!e.match(t)}function Hi(e,t){return`${t.endsWith(`/`)?t:`${t}/`}${e.startsWith(`/`)?e.substring(1):e}`}var Ui={resource:{url:`https://www.googletagmanager.com/gtag/js`,inject:!0},dataLayerName:`dataLayer`,gtagName:`gtag`,groupName:`default`,initMode:`auto`};function P(){return Ui}function Wi(e){Ui=Li(Ui,e)}function F(...e){let{dataLayerName:t,gtagName:n}=P();Pi()||(window[t]=window[t]||[],window[n]=function(){window[t].push(arguments)},window[n](...e))}function Gi(e){let{tagId:t,additionalAccounts:n}=P();if(t&&(F(`config`,t,e),n))for(let t of n)F(`config`,t.tagId,e)}function Ki(e,t){F(`consent`,e,t)}function qi(e=`default`){Ki(e,{ad_user_data:`granted`,ad_personalization:`granted`,ad_storage:`granted`,analytics_storage:`granted`})}function Ji(e=`default`){Ki(e,{ad_user_data:`denied`,ad_personalization:`denied`,ad_storage:`denied`,analytics_storage:`denied`})}function Yi(e){Gi({custom_map:e})}function Xi(e,t={}){let{groupName:n,additionalAccounts:r}=P();t.send_to===void 0&&r?.length&&(t.send_to=n),F(`event`,e,t)}function Zi(e,t={}){Xi(e,t)}function Qi(e){Xi(`exception`,e)}function $i(e){F(`set`,`linker`,e)}function ea(e,t){t?window[e]=t:delete window[e]}function ta(e,t){let{tagId:n,additionalAccounts:r}=P();if(!Pi()&&(ea(`ga-disable-${e??n}`,t),!(!r?.length||e)))for(let e of r)ea(`ga-disable-${e.tagId}`,t)}function na(e){ta(e,!0)}function ra(e){ta(e,void 0)}function ia(...e){F(`set`,...e)}function aa(e){let{pageTracker:t}=P(),n;if(typeof e==`string`)n={page_path:e};else if(`path`in e){let r=t?.router.options.history.base??``,i=t?.useRouteFullPath?e.fullPath:e.path;n={...e.name?{page_title:e.name.toString()}:{},page_path:t?.useRouterBasePath?Hi(i,r):i}}else n=e;if(n.page_location===void 0&&(n.page_location=window.location.href),n.send_page_view===void 0&&(n.send_page_view=t?.sendPageView??!0),n.page_path!==`/`&&n.page_path?.endsWith(`/`)&&(n.page_path=n.page_path.slice(0,-1)),Vi(n.page_location)){let{utmParams:e,cleanUrl:t,cleanQueryParams:r}=Bi(n.page_location);n.page_location=t,Ri(r),ia(`campaign`,e)}F(`event`,`page_view`,n)}function oa(e){let{appName:t}=P(),n={};typeof e==`string`?n.screen_name=e:`path`in e?n.screen_name=e.name??e.path:n=e,t&&n?.app_name===void 0&&(n.app_name=t),F(`event`,`screen_view`,n)}function sa(e){Xi(`timing_complete`,e)}function ca(e={}){return{send_page_view:!1,anonymize_ip:!0,...e}}function la(){let{tagId:e,config:t,groupName:n,linker:r,additionalAccounts:i,hooks:a,consentMode:o}=P();if(e){if(a?.[`config:init:before`]?.(),o===`granted`?qi():o===`denied`&&Ji(),r&&$i(r),F(`js`,new Date),F(`config`,e,ca(t)),i)for(let e of i)F(`config`,e.tagId,ca({groups:n,...e.config}));a?.[`config:init:after`]?.()}}function ua(e){let{pageTracker:t}=P();return t?.exclude?typeof t.exclude==`function`?t.exclude(e):t.exclude?.some(({name:t,path:n}={})=>t&&t===e.name||n&&n===e.path):!1}function da(e){let{pageTracker:t,hooks:n}=P();if(ua(e))return;n?.[`router:track:before`]?.(e);let r;t?.template&&(r=typeof t.template==`function`?t.template(e):t.template),t?.useScreenview?oa(r&&`screen_name`in r?r:e):aa(r&&`page_path`in r?r:e),n?.[`router:track:after`]?.(e)}async function fa(){let{pageTracker:e}=P();if(!e?.router)return;let{router:t}=e;await t.isReady(),da(t.currentRoute.value),t.afterEach((e,t)=>{e.path!==t.path&&da(e)})}async function pa(){let{resource:e,dataLayerName:t,tagId:n,pageTracker:r,hooks:i}=P();if(n&&(la(),r?.router&&fa(),e.inject))try{await Fi(`${e.url}?id=${n}&l=${t}`,{preconnect:e.preconnect,defer:e.defer,nonce:e.nonce}),i?.[`script:loaded`]?.()}catch(e){i?.[`script:error`]?.(e)}}function ma(){let{initMode:e}=P();e!==`manual`&&pa()}function ha(e){Wi(e),ma()}var ga={config:Gi,consent:Ki,consentDeniedAll:Ji,consentGrantedAll:qi,customMap:Yi,ecommerce:Zi,event:Xi,exception:Qi,linker:$i,optIn:ra,optOut:na,pageview:aa,screenview:oa,set:ia,time:sa,query:F};function _a(e){return ha(e),e=>{e.config.globalProperties.$gtag=ga}}var va=r(e=>{e.vueApp.use(_a({config:{id:s().public.gtag,anonymize_ip:!0,linker:{domains:[`securityonionsolutions.
2com`]}},includes:[{id:s().public.adtag}]},e.$router))}),ya=r(e=>{e.vueApp.directive(`reveal`,{getSSRProps(e,t){return{}},mounted(e,t){let n=new IntersectionObserver(r=>{r.forEach(r=>{r.isIntersecting?(e.classList.add(`active`),t.modifiers.once&&n.unobserve(e)):t.modifiers.once||e.classList.remove(`active`)})},{threshold:0,rootMargin:`0px 0px 0px 0px`});e.classList.add(`reveal`),n.observe(e),e._revealObserver=n},unmounted(e){e._revealObserver&&e._revealObserver.disconnect()}})});function ba(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function xa(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Sa(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xa(arguments[t]));return e}var Ca=function(e){return e===void 0},wa=function(){function e(e,t){var n,r;if(this._canceled=!1,t)try{for(var i=ba(Object.keys(t)),a=i.next();!a.done;a=i.next()){var o=a.value;
2this[o]=t[o]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.eventType=e}var t=e.prototype;return t.stop=function(){this._canceled=!0},t.isCanceled=function(){return this._canceled},e}(),I=function(){function e(){this._eventHandler={}}var t=e.prototype;return t.trigger=function(e){var t=[...arguments].slice(1),n=e instanceof wa?e.eventType:e,r=Sa(this._eventHandler[n]||[]);return r.length<=0||(e instanceof wa?(e.currentTarget=this,r.forEach(function(t){t(e)})):r.forEach(function(e){e.apply(void 0,Sa(t))})),this},t.once=function(e,t){var n=this;if(typeof e==`object`&&Ca(t)){var r=e;for(var i in r)this.once(i,r[i]);return this}if(typeof e==`string`&&typeof t==`function`){var a=function(){var r=[...arguments];t.apply(void 0,Sa(r)),n.off(e,a)};this.on(e,a)}return this},t.hasOn=function(e){return!!this._eventHandler[e]},t.on=function(e,t){if(typeof e==`object`&&Ca(t)){var n=e;for(var r in n)this.on(r,n[r]);return this}if(typeof e==`string`&&typeof t==`function`){var i=this._eventHandler[e];Ca(i)&&(this._eventHandler[e]=[],i=this._eventHandler[e]),i.push(t)}return this},t.off=function(e,t){if(Ca(e))return this._eventHandler={},this;if(Ca(t)){if(typeof e==`string`)return delete this._eventHandler[e],this;var n=e;for(var r in n)this.off(r,n[r]);return this}var i=this._eventHandler[e];if(i){for(var a=i.length,o=0;o<a;++o)if(i[o]===t){i.splice(o,1),a<=1&&delete this._eventHandler[e];break}}return this},e.VERSION=`3.0.5`,e}(),L=wa;function Ta(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function Ea(e){return new this(function(t,n){if(!(e&&e.length!==void 0))return n(TypeError(typeof e+` `+e+` is not iterable(cannot read property Symbol(Symbol.iterator))`));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var i=r.length;function a(e,n){if(n&&(typeof n==`object`||typeof n==`function`)){var o=n.then;if(typeof o==`function`){o.call(n,function(t){a(e,t)},function(n){r[e]={status:`rejected`,reason:n},--i===0&&t(r)});return}}r[e]={status:`fulfilled`,value:n},--i===0&&t(r)}for(var o=0;o<r.length;o++)a(o,r[o])})}function Da(e,t){this.name=`AggregateError`,this.errors=e,this.message=t||``}Da.prototype=Error.prototype;function Oa(e){var t=this;return new t(function(n,r){if(!(e&&e.length!==void 0))return r(TypeError(`Promise.any accepts an array`));var i=Array.prototype.slice.call(e);if(i.length===0)return r();for(var a=[],o=0;o<i.length;o++)try{t.resolve(i[o]).then(n).catch(function(e){a.push(e),a.length===i.length&&r(new Da(a,`All promises were rejected`))})}catch(e){r(e)}})}var ka=setTimeout;function Aa(e){return!!(e&&e.length!==void 0)}function ja(){}function Ma(e,t){return function(){e.apply(t,arguments)}}function R(e){if(!(this instanceof R))throw TypeError(`Promises must be constructed via new`);if(typeof e!=`function`)throw TypeError(`not a function`);this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Ra(e,this)}function Na(e,t){for(;e._state===3;)e=e._value;if(e._state===0){e._deferreds.push(t);return}e._handled=!0,R._immediateFn(function(){var n=e._state===1?t.onFulfilled:t.onRejected;if(n===null){(e._state===1?Pa:Fa)(t.promise,e._value);return}var r;try{r=n(e._value)}catch(e){Fa(t.promise,e);return}Pa(t.promise,r)})}function Pa(e,t){try{if(t===e)throw TypeError(`A promise cannot be resolved with itself.`);if(t&&(typeof t==`object`||typeof t==`function`)){var n=t.then;if(t instanceof R){e._state=3,e._value=t,Ia(e);return}if(typeof n==`function`){Ra(Ma(n,t),e);return}}e._state=1,e._value=t,Ia(e)}catch(t){Fa(e,t)}}function Fa(e,t){e._state=2,e._value=t,Ia(e)}function Ia(e){e._state===2&&e._deferreds.length===0&&R._immediateFn(function(){e._handled||R._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)Na(e,e._deferreds[t]);e._deferreds=null}function La(e,t,n){this.onFulfilled=typeof e==`function`?e:null,this.onRejected=typeof t==`function`?t:null,this.promise=n}function Ra(e,t){var n=!1;try{e(function(e){n||(n=!0,Pa(t,e))},function(e){n||(n=!0,Fa(t,e))})}catch(e){if(n)return;n=!0,Fa(t,e)}}R.prototype.catch=function(e){return this.then(null,e)},R.prototype.then=function(e,t){var n=new this.constructor(ja);return Na(this,new La(e,t,n)),n},R.prototype.finally=Ta,R.all=function(e){return new R(function(t,n){if(!Aa(e))return n(TypeError(`Promise.all accepts an array`));var r=Array.prototype.slice.call(e);
2if(r.length===0)return t([]);var i=r.length;function a(e,o){try{if(o&&(typeof o==`object`||typeof o==`function`)){var s=o.then;if(typeof s==`function`){s.call(o,function(t){a(e,t)},n);return}}r[e]=o,--i===0&&t(r)}catch(e){n(e)}}for(var o=0;o<r.length;o++)a(o,r[o])})},R.any=Oa,R.allSettled=Ea,R.resolve=function(e){return e&&typeof e==`object`&&e.constructor===R?e:new R(function(t){t(e)})},R.reject=function(e){return new R(function(t,n){n(e)})},R.race=function(e){return new R(function(t,n){if(!Aa(e))return n(TypeError(`Promise.race accepts an array`));for(var r=0,i=e.length;r<i;r++)R.resolve(e[r]).then(t,n)})},R._immediateFn=typeof setImmediate==`function`&&function(e){setImmediate(e)}||function(e){ka(e,0)},R._unhandledRejectionFn=function(e){typeof console<`u`&&console&&console.warn(`Possible Unhandled Promise Rejection:`,e)};function za(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function Ba(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function Va(e){var t=e;if(t===void 0){if(typeof navigator>`u`||!navigator)return``;t=navigator.userAgent||``}return t.toLowerCase()}function Ha(e,t){try{return new RegExp(e,`g`).exec(t)}catch{return null}}function Ua(){if(typeof navigator>`u`||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!!(t&&t.length)}function Wa(e,t){var n=Ha(`(`+e+`)((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return n?n[3]:``}function Ga(e){return e.replace(/_/g,`.`)}function Ka(e,t){var n=null,r=`-1`;
2return za(e,function(e){var i=Ha(`(`+e.test+`)((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!i||e.brand?!1:(n=e,r=i[3]||`-1`,e.versionAlias?r=e.versionAlias:e.versionTest&&(r=Wa(e.versionTest.toLowerCase(),t)||r),r=Ga(r),!0)}),{preset:n,version:r}}function qa(e,t){var n={brand:``,version:`-1`};return za(e,function(e){var r=Ja(t,e);return r?(n.brand=e.id,n.version=e.versionAlias||r.version,n.version!==`-1`):!1}),n}function Ja(e,t){return Ba(e,function(e){var n=e.brand;return Ha(``+t.test,n.toLowerCase())})}var Ya=[{test:`phantomjs`,id:`phantomjs`},{test:`whale`,id:`whale`},{test:`edgios|edge|edg`,id:`edge`},{test:`msie|trident|windows phone`,id:`ie`,versionTest:`iemobile|msie|rv`},{test:`miuibrowser`,id:`miui browser`},{test:`samsungbrowser`,id:`samsung internet`},{test:`samsung`,id:`samsung internet`,versionTest:`version`},{test:`chrome|crios`,id:`chrome`},{test:`firefox|fxios`,id:`firefox`},{test:`android`,id:`android browser`,versionTest:`version`},{test:`safari|iphone|ipad|ipod`,id:`safari`,versionTest:`version`}],Xa=[{test:`(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)`,id:`chrome`,versionTest:`chrome`},{test:`chromium`,id:`chrome`},{test:`whale`,id:`chrome`,versionAlias:`-1`,brand:!0}],Za=[{test:`applewebkit`,id:`webkit`,versionTest:`applewebkit|safari`}],Qa=[{test:`(?=(iphone|ipad))(?!(.*version))`,id:`webview`},{test:`(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))`,id:`webview`},{test:`webview`,id:`webview`}],$a=[{test:`windows phone`,id:`windows phone`},{test:`windows 2000`,id:`window`,versionAlias:`5.0`},{test:`windows nt`,id:`window`},{test:`win32|windows`,id:`window`}
2,{test:`iphone|ipad|ipod`,id:`ios`,versionTest:`iphone os|cpu os`},{test:`macos|macintel|mac os x`,id:`mac`},{test:`android|linux armv81`,id:`android`},{test:`tizen`,id:`tizen`},{test:`webos|web0s`,id:`webos`}];function eo(e){return!!Ka(Qa,e).preset}function to(e){var t=Va(e),n=!!/mobi/g.exec(t),r={name:`unknown`,version:`-1`,majorVersion:-1,webview:eo(t),chromium:!1,chromiumVersion:`-1`,webkit:!1,webkitVersion:`-1`},i={name:`unknown`,version:`-1`,majorVersion:-1},a=Ka(Ya,t),o=a.preset,s=a.version,c=Ka($a,t),l=c.preset,u=c.version,d=Ka(Xa,t);if(r.chromium=!!d.preset,r.chromiumVersion=d.version,!r.chromium){var f=Ka(Za,t);r.webkit=!!f.preset,r.webkitVersion=f.version}return l&&(i.name=l.id,i.version=u,i.majorVersion=parseInt(u,10)),o&&(r.name=o.id,r.version=s,r.webview&&i.name===`ios`&&r.name!==`safari`&&(r.webview=!1)),r.majorVersion=parseInt(r.version,10),{browser:r,os:i,isMobile:n,isHints:!1}}function no(e){var t=navigator.userAgentData,n=(t.uaList||t.brands).slice(),r=e&&e.fullVersionList,i=t.mobile||!1,a=n[0],o=(e&&e.platform||t.platform||navigator.platform).toLowerCase(),s={name:a.brand,version:a.version,majorVersion:-1,webkit:!1,webkitVersion:`-1`,chromium:!1,chromiumVersion:`-1`,webview:!!qa(Qa,n).brand||eo(Va())},c={name:`unknown`,version:`-1`,majorVersion:-1};s.webkit=!s.chromium&&za(Za,function(e){return Ja(n,e)});var l=qa(Xa,n);if(s.chromium=!!l.brand,s.chromiumVersion=l.version||`-1`,!s.chromium){var u=qa(Za,n);s.webkit=!!u.brand,s.webkitVersion=u.version||`-1`}var d=Ba($a,function(e){return RegExp(``+e.test,`g`).exec(o)});if(c.name=d?d.id:``,e&&(c.version=e.platformVersion||`-1`),r&&r.length){var f=qa(Ya,r);s.name=f.brand||s.name,s.version=f.version||s.version}else{var p=qa(Ya,n);s.name=p.brand||s.name,s.version=p.brand&&e?e.uaFullVersion:p.version}return s.webkit&&(c.name=i?`ios`:`mac`),c.name===`ios`&&s.webview&&(s.version=`-1`),c.version=Ga(c.version),s.version=Ga(s.version),c.majorVersion=parseInt(c.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:c,isMobile:i,isHints:!0}}function ro(e){return e===void 0&&Ua()?no():to(e)}function io(e){return Object.keys(e)}var ao=`__observers__`,oo=`__computed__`,so=1,co=`__CFCS_DETECTED_DEPENDENCIES__`,lo=function(e,t){return lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},lo(e,t)};function uo(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);lo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function fo(){Object[co]=Object[co]||{};var e=Object[co];return e[so]=e[so]||[],e[so]}function po(){var e=fo();return e[e.length-1]}function mo(e){var t=fo(),n=[],r={host:e,observers:n,push:function(t){e!==t&&n.indexOf(t)===-1&&n.push(t)}};return t.push(r),r}function ho(){return fo().pop()}var go=function(){function e(e){this._emitter=new I,this._current=e}var t=e.prototype;return Object.defineProperty(t,"current",{get:function(){return po()?.push(this),this._current},set:function(e){this._setCurrent(e)},enumerable:!1,configurable:!0}),t.subscribe=function(e){return this.current,this._emitter.on(`update`,e),this},t.unsubscribe=function(e){return this._emitter.off(`update`,e),this},t._setCurrent=function(e){var t=this._current,n=e!==t;this._current=e,n&&this._emitter.trigger(`update`,e,t)},t.toString=function(){return`${this.current}`},t.valueOf=function(){return this.current},e}(),_o=function(e){uo(t,e);function t(t){var n=e.call(this)||this;return n._computedCallback=t,n._registered=[],n._onCheckUpdate=function(){n._setCurrent(n.current)},n._current=n.current,n}var n=t.prototype;return Object.defineProperty(n,"current",{get:function(){var e=this;mo(this);var t=this._computedCallback(),n=ho();return this._registered.forEach(function(t){t.unsubscribe(e._onCheckUpdate)}),n.observers.forEach(function(t){t.subscribe(e._onCheckUpdate)}),this._registered=n.observers,t},enumerable:!1,configurable:!0}),t}(go);function vo(e,t,n){n===void 0&&(n=t),Object.defineProperty(e,t,{configurable:!0,get:function(){return Eo(this,n).current},set:function(e){Eo(this,n,e).current=e}}),n!==t&&Object.defineProperty(e,n,{configurable:!0,get:function(){return Eo(this,n).current}})}function yo(){var e=[...arguments];return e.length>1?vo(e[0],e[1]):function(t,n){return vo(t,n,e[0])}}function bo(e){e.subscribe=function(e,t){this[e],Eo(this,e).subscribe(t)},e.unsubscribe=function(e,t){var n=this;
2if(!e){io(To(this)).forEach(function(e){n.unsubscribe(e)});return}e in this&&Eo(this,e).unsubscribe(t)}}function xo(e){var t=e.prototype;bo(t)}function So(e){return new go(e)}function Co(e){return new _o(e)}function wo(e){var t={};return Object.defineProperty(e,ao,{get:function(){return t}}),t}function To(e,t){e[ao]||wo(e);var n=e[ao];if(!t){var r=e?.constructor?.prototype?.[oo];r&&r.forEach(function(t){!(t in n)&&t in e&&e[t]})}return n}function Eo(e,t,n){var r=To(e);return r[t]||(r[t]=So(n)),r[t]}function Do(e,t,n){var r=n.get;function i(){var e=To(this,!0);return t in e||(e[t]=Co(r.bind(this))),Eo(this,t).current}var a={configurable:!0,get:i};e[oo]||(e[oo]=[]);var o=e[oo];return o.indexOf(t)===-1&&o.push(t),Object.defineProperty(e,t,a),a}var Oo=function(e,t){return Oo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Oo(e,t)};function ko(e,t){Oo(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},z.apply(this,arguments)};function Ao(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var B=typeof window>`u`?{navigator:{userAgent:``}}:window,jo=1,Mo=2,No=4,Po=6,Fo=8,Io=16,Lo=24,Ro=30,zo=`left`,Bo=`right`,Vo=`middle`,Ho={1:zo,2:Vo,3:Bo},Uo=`any`,Wo=`none`,Go=`shift`,Ko=`ctrl`,qo=`alt`,Jo=`meta`,Yo=16,Xo=30,Zo=`ontouchstart`in B&&ro().browser.name===`safari`,Qo=function(){if(typeof document>`u`)return``;for(var e=(document.head||document.getElementsByTagName(`head`)[0]).style,t=[`transform`,`webkitTransform`,`msTransform`,`mozTransform`],n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n];return``}(),$o={"-webkit-user-select":`none`,"-ms-user-select":`none`,"-moz-user-select":`none`,"user-select":`none`,"-webkit-user-drag":`none`},es=function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},ts=function(e,t){t===void 0&&(t=!1);var n;if(typeof e==`string`){if(e.match(/^<([a-z]+)\s*([^>]*)>/)){var r=document.createElement(`div`);r.innerHTML=e,n=es(r.childNodes)}else n=es(document.querySelectorAll(e));t||(n=n.length>=1?n[0]:void 0)}else e===B?n=e:`value`in e||`current`in e?n=e.value||e.current:e.nodeName&&(e.nodeType===1||e.nodeType===9)?n=e:`jQuery`in B&&e instanceof jQuery||e.constructor.prototype.jquery?n=t?e.toArray():e.get(0):Array.isArray(e)&&(n=e.map(function(e){return ts(e)}),t||(n=n.length>=1?n[0]:void 0));return n},ns=B.requestAnimationFrame||B.webkitRequestAnimationFrame,rs=B.cancelAnimationFrame||B.webkitCancelAnimationFrame;if(ns&&!rs){var is={},as=ns;ns=function(e){var t=as(function(n){is[t]&&e(n)});return is[t]=!0,t},rs=function(e){delete is[e]}}else ns&&rs||(ns=function(e){return B.setTimeout(function(){e(B.performance&&B.performance.now&&B.performance.now()||new Date().getTime())},16)},rs=B.clearTimeout);var os=function(e){return ns(e)},ss=function(e){rs(e)},cs=function(e,t){var n={};for(var r in e)r&&(n[r]=t(e[r],r));return n},ls=function(e,t){var n={};for(var r in e)r&&t(e[r],r)&&(n[r]=e[r]);return n},us=function(e,t){for(var n in e)if(n&&!t(e[n],n))return!1;return!0},ds=function(e,t){return us(e,function(e,n){return e===t[n]})},fs={},ps=function(e,t){return fs[t]||(fs[t]=_s(t)),fs[t](e)},ms=function(e,t){return!e||!t?e:cs(e,function(e,n){return ps(e,typeof t==`number`?t:t[n])})},hs=function(e){if(!isFinite(e))return 0;var t=`${e}`;if(t.indexOf(`e`)>=0){for(var n=0,r=1;Math.round(e*r)/r!==e;)r*=10,n++;return n}return t.indexOf(`.`)>=0?t.length-t.indexOf(`.`)-1:0},gs=function(e){return 1/10**e},_s=function(e){var t=e<1?10**hs(e):1;return function(n){return e===0?0:Math.round(Math.round(n/e)*e*t)/t}},vs=function(e,t){return Math.atan2(t,e)*180/Math.PI},ys=function(e){var t=!0;
2return Object.keys($o).forEach(function(n){(!e||e[n]!==$o[n])&&(t=!1)}),t},bs=function(e,t){return e&&t?Ro:e?Po:t?Lo:jo},xs=function(e,t,n){return n?!!(t===Ro||t&e&&n&e):!!(t&e)},Ss=function(e,t,n){var r,i=(r={},r[jo]=`auto`,r[Ro]=`none`,r[Lo]=`pan-x`,r[Po]=`pan-y`,r),a={};if(e&&e.style){var o=t.touchAction?t.touchAction:i[n],s=z(z({},$o),{"touch-action":e.style[`touch-action`]===`none`?`none`:o});Object.keys(s).forEach(function(t){a[t]=e.style[t]}),Object.keys(s).forEach(function(t){e.style[t]=s[t]})}return a},Cs=function(e,t){e&&e.style&&t&&Object.keys(t).forEach(function(n){e.style[n]=t[n]})},ws=function(){function e(e){this._axes=e,this.holdingCount=0}var t=e.prototype;return t.hold=function(e,t){var n=this._getRoundPos(e).roundPos;this._axes.trigger(new L(`hold`,{pos:n,input:t.input||null,inputEvent:t.event||null,isTrusted:!0}))},t.triggerRelease=function(e){var t=this._getRoundPos(e.destPos,e.depaPos),n=t.roundPos,r=t.roundDepa;e.destPos=n,e.depaPos=r,e.setTo=this._createUserControll(e.destPos,e.duration),this._axes.trigger(new L(`release`,z(z({},e),{bounceRatio:this._getBounceRatio(n)})))},t.triggerChange=function(e,t,n,r){var i=this;r===void 0&&(r=!1);var a=this.animationManager,o=a.axisManager,s=a.getEventInfo(),c=this._getRoundPos(e,t),l=c.roundPos,u=c.roundDepa,d=o.moveTo(l,u),f=n?.event||s?.event||null,p={pos:d.pos,delta:d.delta,bounceRatio:this._getBounceRatio(d.pos),holding:r,inputEvent:f,isTrusted:!!f,input:n?.input||s?.input||null,set:f?this._createUserControll(d.pos):function(){}},m=new L(`change`,p);return this._axes.trigger(m),Object.keys(d.pos).forEach(function(e){var t=d.pos[e];Eo(i._axes,e,t).current=t}),f&&o.set(p.set().destPos),!m.isCanceled()},t.triggerAnimationStart=function(e){var t=this._getRoundPos(e.destPos,e.depaPos),n=t.roundPos,r=t.roundDepa;e.destPos=n,e.depaPos=r,e.setTo=this._createUserControll(e.destPos,e.duration);var i=new L(`animationStart`,e);return this._axes.trigger(i),!i.isCanceled()},t.triggerAnimationEnd=function(e){e===void 0&&(e=!1),this._axes.trigger(new L(`animationEnd`,{isTrusted:e}))},t.triggerFinish=function(e){e===void 0&&(e=!1),this._axes.trigger(new L(`finish`,{isTrusted:e}))},t.setAnimationManager=function(e){this.animationManager=e},t.destroy=function(){this._axes.off()},t._createUserControll=function(e,t){t===void 0&&(t=0);var n={destPos:z({},e),duration:t};return function(e,t){return e&&(n.destPos=z({},e)),t!==void 0&&(n.duration=t),n}},t._getRoundPos=function(e,t){var n=this._axes.options.round;return{roundPos:ms(e,n),roundDepa:ms(t,n)}},t._getBounceRatio=function(e){return this._axes.axisManager.map(e,function(e,t){return e<t.range[0]&&t.bounce[0]!==0?(t.range[0]-e)/t.bounce[0]:e>t.range[1]&&t.bounce[1]!==0?(e-t.range[1])/t.bounce[1]:0})},Ao([yo],e.prototype,`holdingCount`,void 0),e}(),Ts=function(){function e(e){this._options=e,this._prevented=!1}var t=e.prototype;return t.isInterrupting=function(){return this._options.interruptable||this._prevented},t.isInterrupted=function(){return!this._options.interruptable&&this._prevented},t.setInterrupt=function(e){this._options.interruptable||(this._prevented=e)},e}(),Es=function(e,t,n,r){var i=e,a=[n[0]?t[0]:r?t[0]-r[0]:t[0],n[1]?t[1]:r?t[1]+r[1]:t[1]];return i=Math.max(a[0],i),i=Math.min(a[1],i),i},Ds=function(e,t){return e<t[0]||e>t[1]},Os=function(e,t,n,r){return!r[0]&&e===t[0]-n[0]||!r[1]&&e===t[1]+n[1]},ks=function(e,t){var n=Math.sqrt(e/t*2);return n<100?0:n},As=function(e,t,n){return n[1]&&e>t[1]||n[0]&&e<t[0]},js=function(e,t,n){var r=e,i=t[0],a=t[1],o=a-i;return n[1]&&e>a&&(r=(r-a)%o+i),n[0]&&e<i&&(r=(r-i)%o+a),r},Ms=function(){function e(e){var t=this;this._axis=e,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(e,n){return e[n]=t._axis[n].startPos,e},{})}var t=e.prototype;return t.getDelta=function(e,t){var n=this.get(e);return cs(this.get(t),function(e,t){return e-n[t]})},t.get=function(e){var t=this;return e&&Array.isArray(e)?e.reduce(function(e,n){return n&&n in t._pos&&(e[n]=t._pos[n]),e},{}):z(z({},this._pos),e||{})},t.moveTo=function(e,t){t===void 0&&(t=this._pos);var n=cs(this._pos,function(n,r){return r in e&&r in t?e[r]-t[r]:0});return this.set(this.map(e,function(e,t){return t?js(e,t.range,t.circular):0})),{pos:z({},this._pos),delta:n}},t.set=function(e){for(var t in e)t&&t in this._pos&&(this._pos[t]=e[t])},t.every=function(e,t){var n=this._axis;return us(e,function(e,r){return t(e,n[r],r)})},t.filter=function(e,t){var n=this._axis;return ls(e,function(e,r){return t(e,n[r],r)})},t.map=function(e,t){var n=this._axis;return cs(e,function(e,r){return t(e,n[r],r)})},t.isOutside=function(e){return!this.every(e?this.get(e):this._pos,function(e,t){return!Ds(e,t.range)})},t.getAxisOptions=function(e){return this._axis[e]},t.setAxis=function(e){var t=this;Object.keys(e).forEach(function(n){if(!t._axis[n])throw Error(`Axis ${n} does not exist in Axes instance`);t._axis[n]=z(z({},t._axis[n]),e[n])}),this._complementOptions()},t._complementOptions=function(){var e=this;
2Object.keys(this._axis).forEach(function(t){e._axis[t]=z({range:[0,100],startPos:e._axis[t].range[0],bounce:[0,0],circular:[!1,!1]},e._axis[t]),[`bounce`,`circular`].forEach(function(n){var r=e._axis,i=r[t][n];/string|number|boolean/.test(typeof i)&&(r[t][n]=[i,i])})})},e}(),Ns=`ontouchstart`in B,Ps=`PointerEvent`in B,Fs=`MSPointerEvent`in B,Is=Ps||Fs,Ls=function(e,t){return!!(!t||t.indexOf(Uo)>-1||t.indexOf(Wo)>-1&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey||t.indexOf(Go)>-1&&e.shiftKey||t.indexOf(Ko)>-1&&e.ctrlKey||t.indexOf(qo)>-1&&e.altKey||t.indexOf(Jo)>-1&&e.metaKey)},Rs=function(){function e(){var e=this;this._stopContextMenu=function(t){t.preventDefault(),B.removeEventListener(`contextmenu`,e._stopContextMenu)}}var t=e.prototype;return t.extendEvent=function(e){var t,n=this.prevEvent,r=this._getCenter(e),i=n?this._getMovement(e):{x:0,y:0},a=n?this._getScale(e):1,o=n?vs(r.x-n.center.x,r.y-n.center.y):0,s=n?n.deltaX+i.x:i.x,c=n?n.deltaY+i.y:i.y,l=i.x,u=i.y,d=this._latestInterval,f=Date.now(),p=d?f-d.timestamp:0,m=n?n.velocityX:0,h=n?n.velocityY:0,g=n?n.directionX:1,_=n?n.directionY:1;return l>0?g=1:l<0&&(g=-1),u>0?_=1:u<0&&(_=-1),(!d||p>=Yo)&&(d&&(t=[(s-d.deltaX)/p,(c-d.deltaY)/p],m=t[0],h=t[1]),this._latestInterval={timestamp:f,deltaX:s,deltaY:c}),{srcEvent:e,scale:a,angle:o,center:r,deltaX:s,deltaY:c,offsetX:l,offsetY:u,directionX:g,directionY:_,velocityX:m,velocityY:h,preventSystemEvent:!0}},t._getDistance=function(e,t){var n=t.clientX-e.clientX,r=t.clientY-e.clientY;return Math.sqrt(n*n+r*r)},t._getButton=function(e){var t={1:zo,2:Bo,4:Vo};return(this._isTouchEvent(e)?zo:t[e.buttons])||null},t._isTouchEvent=function(e){return e.type&&e.type.indexOf(`touch`)>-1},t._isValidButton=function(e,t){return t.indexOf(e)>-1},t._isValidEvent=function(e,t,n){return(!t||Ls(e,t))&&(!n||this._isValidButton(this._getButton(e),n))},t._preventMouseButton=function(e,t){t===Bo?B.addEventListener(`contextmenu`,this._stopContextMenu):t===Vo&&e.preventDefault()},e}(),zs=function(e){ko(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.start=[`mousedown`],t.move=[`mousemove`],t.end=[`mouseup`],t}var n=t.prototype;return n.onEventStart=function(e,t,n){var r=this._getButton(e);return this._isValidEvent(e,t,n)?(this._preventMouseButton(e,r),this.extendEvent(e)):null},n.onEventMove=function(e,t,n){return this._isValidEvent(e,t,n)?this.extendEvent(e):null},n.onEventEnd=function(){},n.onRelease=function(){this.prevEvent=null},n.getTouches=function(e,t){return t&&this._isValidButton(Ho[e.which],t)&&this.end.indexOf(e.type)===-1?1:0},n._getScale=function(){return 1},n._getCenter=function(e){return{x:e.clientX,y:e.clientY}},n._getMovement=function(e){var t=this.prevEvent.srcEvent;return{x:e.clientX-t.clientX,y:e.clientY-t.clientY}},t}(Rs),Bs=function(e){ko(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.start=[`touchstart`],t.move=[`touchmove`],t.end=[`touchend`,`touchcancel`],t}var n=t.prototype;return n.onEventStart=function(e,t){return this._baseTouches=e.touches,this._isValidEvent(e,t)?this.extendEvent(e):null},n.onEventMove=function(e,t){return this._isValidEvent(e,t)?this.extendEvent(e):null},n.onEventEnd=function(e){this._baseTouches=e.touches},n.onRelease=function(){this.prevEvent=null,this._baseTouches=null},n.getTouches=function(e){return e.touches.length},n._getScale=function(e){return e.touches.length!==2||this._baseTouches.length<2?null:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1])},n._getCenter=function(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}},n._getMovement=function(e){var t=this.prevEvent.srcEvent;return e.touches[0].identifier===t.touches[0].identifier?{x:e.touches[0].clientX-t.touches[0].clientX,y:e.touches[0].clientY-t.touches[0].clientY}:{x:0,y:0}},t}(Rs),Vs=function(e){ko(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.start=Ps?[`pointerdown`]:[`MSPointerDown`],t.move=Ps?[`pointermove`]:[`MSPointerMove`],t.end=Ps?[`pointerup`,`pointercancel`]:[`MSPointerUp`,`MSPointerCancel`],t._firstInputs=[],t._recentInputs=[],t}var n=t.prototype;return n.onEventStart=function(e,t,n){var r=this._getButton(e);return this._isValidEvent(e,t,n)?(this._preventMouseButton(e,r),this._updatePointerEvent(e),this.extendEvent(e)):null},n.onEventMove=function(e,t,n){return this._isValidEvent(e,t,n)?(this._updatePointerEvent(e),this.extendEvent(e)):null},n.onEventEnd=function(e){this._removePointerEvent(e)},n.onRelease=function(){this.prevEvent=null,this._firstInputs=[],this._recentInputs=[]},n.getTouches=function(){return this._recentInputs.length},n._getScale=function(){return this._recentInputs.length===2?this._getDistance(this._recentInputs[0],this._recentInputs[1])/this._getDistance(this._firstInputs[0],this._firstInputs[1]):null},n._getCenter=function(e){return{x:e.clientX,y:e.clientY}},n._getMovement=function(e){var t=this.prevEvent.srcEvent;return e.pointerId===t.pointerId?{x:e.clientX-t.clientX,y:e.clientY-t.clientY}:{x:0,y:0}},n._updatePointerEvent=function(e){var t=this,n=!1;
2this._recentInputs.forEach(function(r,i){r.pointerId===e.pointerId&&(n=!0,t._recentInputs[i]=e)}),n||(this._firstInputs.push(e),this._recentInputs.push(e))},n._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(t){return t.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(t){return t.pointerId!==e.pointerId})},t}(Rs),Hs=function(e){ko(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.start=[`mousedown`,`touchstart`],t.move=[`mousemove`,`touchmove`],t.end=[`mouseup`,`touchend`,`touchcancel`],t}var n=t.prototype;return n.onEventStart=function(e,t,n){var r=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,t,n)?(this._preventMouseButton(e,r),this.extendEvent(e)):null},n.onEventMove=function(e,t,n){return this._isValidEvent(e,t,n)?this.extendEvent(e):null},n.onEventEnd=function(e){this._isTouchEvent(e)&&(this._baseTouches=e.touches)},n.onRelease=function(){this.prevEvent=null,this._baseTouches=null},n.getTouches=function(e,t){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(Ho[e.which],t)&&this.end.indexOf(e.type)===-1?1:0},n._getScale=function(e){return this._isTouchEvent(e)?e.touches.length!==2||this._baseTouches.length<2?1:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1]):this.prevEvent.scale},n._getCenter=function(e){return this._isTouchEvent(e)?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}},n._getMovement=function(e){var t=this,n=[e,this.prevEvent.srcEvent].map(function(e){return t._isTouchEvent(e)?{id:e.touches[0].identifier,x:e.touches[0].clientX,y:e.touches[0].clientY}:{id:null,x:e.clientX,y:e.clientY}}),r=n[0],i=n[1];return r.id===i.id?{x:r.x-i.x,y:r.y-i.y}:{x:0,y:0}},t}(Rs),Us=function(e,t){return t.reduce(function(t,n,r){return e[r]&&(t[e[r]]=n),t},{})},Ws=function(e){e===void 0&&(e=[]);var t=!1,n=!1,r=!1;return e.forEach(function(e){switch(e){case`mouse`:n=!0;break;case`touch`:t=Ns;break;case`pointer`:r=Is}}),r?new Vs:t&&n?new Hs:t?new Bs:n?new zs:null};function Gs(e){return e.indexOf(`touch`)>-1&&{passive:!1}}var Ks=function(){function e(e){var t=e.options,n=e.interruptManager,r=e.eventManager,i=e.axisManager,a=e.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=t,this._interruptManager=n,this._eventManager=r,this._axisManager=i,this._animationManager=a}var t=e.prototype;return t.get=function(e){return this._axisManager.get(e.axes)},t.hold=function(e,t){if(!(this._interruptManager.isInterrupted()||!e.axes.length)){var n={input:e,event:t};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(n),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),n),this._isOutside=this._axisManager.isOutside(e.axes),this._moveDistance=this._axisManager.get(e.axes)}},t.change=function(e,t,n,r){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(n,function(e){return e===0}))){var i=t.srcEvent?t.srcEvent:t;if(!i.__childrenAxesAlreadyChanged){var a=this._moveDistance||this._axisManager.get(e.axes),o=cs(a,function(e,t){return e+(n[t]||0)});this._moveDistance&&=this._axisManager.map(o,function(e,t){var n=t.circular,r=t.range;return n&&(n[0]||n[1])?js(e,r,n):e}),this._isOutside&&this._axisManager.every(a,function(e,t){return!Ds(e,t.range)})&&(this._isOutside=!1),a=this._atOutside(a),o=this._atOutside(o),(!this.options.nested||!this._isEndofAxis(n,a,o))&&(i.__childrenAxesAlreadyChanged=!0);var s={input:e,event:t};if(r){var c=this._animationManager.getDuration(o,a);this._animationManager.animateTo(o,c,s)}else this._eventManager.triggerChange(o,a,s,!0)||(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}},t.release=function(e,t,n,r){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var i=t.srcEvent?t.srcEvent:t;i.__childrenAxesAlreadyReleased&&(n=n.map(function(){return 0}));var a=this._axisManager.get(e.axes),o=this._axisManager.get(),s=this._animationManager.getDisplacement(n),c=Us(e.axes,s),l=this._axisManager.get(this._axisManager.map(c,function(e,t,n){return t.circular&&(t.circular[0]||t.circular[1])?a[n]+e:Es(a[n]+e,t.range,t.circular,t.bounce)}));i.__childrenAxesAlreadyReleased=!0;var u=this._animationManager.getDuration(l,a,r);u===0&&(l=z({},o));var d={depaPos:o,destPos:l,duration:u,delta:this._axisManager.getDelta(o,l),inputEvent:t,input:e,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(d),this._eventManager.holdingCount===0&&(this._moveDistance=null);var f=this._animationManager.getUserControl(d),p=ds(f.destPos,o),m={input:e,event:t};p||f.duration===0?(p||this._eventManager.triggerChange(f.destPos,o,m,!0),this._interruptManager.setInterrupt(!1),this._axisManager.isOutside()?this._animationManager.restore(m):this._eventManager.triggerFinish(!0)):this._animationManager.animateTo(f.destPos,f.duration,m)}},t._atOutside=function(e){var t=this;return this._isOutside?this._axisManager.map(e,function(e,t){var n=t.range[0]-t.bounce[0],r=t.range[1]+t.bounce[1];return e>r?r:e<n?n:e}):this._axisManager.map(e,function(e,n){var r=n.range[0],i=n.range[1],a=n.bounce,o=n.circular;return o[0]&&e<r||o[1]&&e>i?e:e<r?r-t._animationManager.interpolate(r-e,a[0]):e>i?i+t._animationManager.interpolate(e-i,a[1]):e})},t._isEndofAxis=function(e,t,n){return this._axisManager.every(t,function(r,i,a){return e[a]===0||t[a]===n[a]&&Os(r,i.range,i.bounce,i.circular)})},e}(),qs=function(e,t,n){return Math.max(Math.min(e,n),t)},Js=function(e){ko(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._useDuration=!0,t}var n=t.prototype;return n.interpolate=function(e,t){var n=this._easing(1e-5)/1e-5;return this._easing(e/(t*n))*t},n.updateAnimation=function(e){var t=this._animateParam;if(t){var n=new Date().getTime()-t.startTime,r=e?.destPos||t.destPos,i=e?.duration??t.duration;if(e?.restart||i<=n){this.setTo(r,i-n);return}if(e?.destPos){var a=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,t.delta=this.axisManager.getDelta(a,r),t.destPos=r}if(e?.duration){var o=(n+this._durationOffset)/t.duration;this._durationOffset=o*i-n,t.duration=i}}},n._initState=function(e){return this._initialEasingPer=0,this._prevEasingPer=0,this._durationOffset=0,{pos:e.depaPos,easingPer:0,finished:!1}},n._getNextState=function(e){var t=this,n=this._animateParam,r=e.pos,i=n.destPos,a=cs(r,function(e,t){return e<=i[t]?1:-1}),o=(new Date().getTime()-n.startTime+this._durationOffset)/n.duration,s=this._easing(o),c=this.axisManager.map(r,function(e,c,l){var u=o>=1?i[l]:e+n.delta[l]*(s-t._prevEasingPer)/(1-t._initialEasingPer),d=js(u,c.range,c.circular);if(u!==d){var f=a[l]*(c.range[1]-c.range[0]);i[l]-=f,r[l]-=f}return d});return this._prevEasingPer=s,{pos:c,easingPer:s,finished:s>=1}},n._easing=function(e){return e>1?1:this._options.easing(e)},t}(function(){function e(e){var t=e.options,n=e.interruptManager,r=e.eventManager,i=e.axisManager;this._options=t,this.interruptManager=n,this.eventManager=r,this.axisManager=i,this.animationEnd=this.animationEnd.bind(this)}var t=e.prototype;return t.getDuration=function(e,t,n){var r=this,i;if(n!==void 0)i=n;else{var a=cs(t,function(t,n){return ks(Math.abs(t-e[n]),r._options.deceleration)});i=Object.keys(a).reduce(function(e,t){return Math.max(e,a[t])},-1/0)}return qs(i,this._options.minimumDuration,this._options.maximumDuration)},t.getDisplacement=function(e){var t=e.reduce(function(e,t){return e+t*t},0)**(1/e.length),n=Math.abs(t/-this._options.deceleration);return e.map(function(e){return e/2*n})},t.stopAnimation=function(e){if(this._animateParam){var t=this.axisManager.get(),n=this.axisManager.map(t,function(e,t){return js(e,t.range,t.circular)});us(n,function(e,n){return t[n]===e})||this.eventManager.triggerChange(n,t,e,!!e),this._animateParam=null,this._raf&&ss(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!e?.event)}},t.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},t.restore=function(e){var t=this.axisManager.get(),n=this.axisManager.map(t,function(e,t){return Math.min(t.range[1],Math.max(t.range[0],e))});this.stopAnimation(),this.animateTo(n,this.getDuration(t,n),e)},t.animationEnd=function(){var e=this.getEventInfo();this._animateParam=null;var t=this.axisManager.filter(this.axisManager.get(),function(e,t){return As(e,t.range,t.circular)});Object.keys(t).length>0&&this.setTo(this.axisManager.map(t,function(e,t){return js(e,t.range,t.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!e),this.axisManager.isOutside()?this.restore(e):this.finish(!!e)},t.finish=function(e){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(e)},t.getUserControl=function(e){var t=e.setTo();return t.destPos=this.axisManager.get(t.destPos),t.duration=qs(t.duration,this._options.minimumDuration,this._options.maximumDuration),t},t.animateTo=function(e,t,n){var r=this;this.stopAnimation();var i=this._createAnimationParam(e,t,n),a=z({},i.depaPos),o=this.eventManager.triggerAnimationStart(i),s=this.getUserControl(i);if(!o&&this.axisManager.every(s.destPos,function(e,t){return As(e,t.range,t.circular)})&&console.warn(`You can't stop the 'animation' event when 'circular' is true.`),o&&!ds(s.destPos,a)){var c=n?.event||null;this._animateLoop({depaPos:a,destPos:s.destPos,duration:s.duration,delta:this.axisManager.getDelta(a,s.destPos),isTrusted:!!c,inputEvent:c,input:n?.input||null},function(){return r.animationEnd()})}},t.setTo=function(e,t){t===void 0&&(t=0);var n=Object.keys(e),r=this.axisManager.get(n);if(ds(e,r))return this;this.interruptManager.setInterrupt(!0);var i=ls(e,function(e,t){return r[t]!==e});return!Object.keys(i).length||(i=this.axisManager.map(i,function(e,t){var n=t.range,r=t.circular;return r&&(r[0]||r[1])?e:Es(e,n,r)}),ds(i,r))||(t>0?this.animateTo(i,t):(this.stopAnimation(),this.eventManager.triggerChange(i),this.finish(!1))),this},t.setBy=function(e,t){return t===void 0&&(t=0),this.setTo(cs(this.axisManager.get(Object.keys(e)),function(t,n){return t+e[n]}),t)},t.setOptions=function(e){this._options=z(z({},this._options),e)},t._createAnimationParam=function(e,t,n){var r=this.axisManager.get(),i=e,a=n?.event||null;return{depaPos:r,destPos:i,duration:qs(t,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(r,i),inputEvent:a,input
2:n?.input||null,isTrusted:!!a,done:this.animationEnd}},t._animateLoop=function(e,t){var n=this;if(e.duration){this._animateParam=z(z({},e),{startTime:new Date().getTime()});var r=cs(e.destPos,function(e){return e}),i=this._initState(this._animateParam),a=function(){n._raf=null;var e=n._animateParam,o=n._getNextState(i),s=!n.eventManager.triggerChange(o.pos,i.pos);if(i=o,o.finished){e.destPos=n._getFinalPos(e.destPos,r),ds(e.destPos,n.axisManager.get(Object.keys(e.destPos)))||n.eventManager.triggerChange(e.destPos,o.pos),t();return}s?n.finish(!1):n._raf=os(a)};a()}else this.eventManager.triggerChange(e.destPos),t()},t._getFinalPos=function(e,t){var n=this,r=1e-6;return cs(e,function(e,i){return e>=t[i]-r&&e<=t[i]+r?t[i]:ps(e,n._getRoundUnit(e,i))})},t._getRoundUnit=function(e,t){var n=this._options.round,r=null;if(!n){var i=this.axisManager.getAxisOptions(t);r=gs(Math.max(hs(i.range[0]),hs(i.range[1]),hs(e)))}return r||n},e}()),Ys=function(e){ko(t,e);function t(t,n,r){t===void 0&&(t={}),n===void 0&&(n={}),r===void 0&&(r={});var i=e.call(this)||this;return i.axis=t,i._inputs=[],i.options=z({easing:function(e){return 1-(1-e)**3},interruptable:!0,maximumDuration:1/0,minimumDuration:0,deceleration:6e-4,round:null,nested:!1},n),Object.keys(r).forEach(function(e){i.axis[e].startPos=r[e]}),i.interruptManager=new Ts(i.options),i.axisManager=new Ms(i.axis),i.eventManager=new ws(i),i.animationManager=new Js(i),i.inputObserver=new Ks(i),i.eventManager.setAnimationManager(i.animationManager),i.eventManager.triggerChange(i.axisManager.get()),i}var n=t.prototype;return Object.defineProperty(n,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),n.connect=function(e,t){var n=typeof e==`string`?e.split(` `):e.concat();return~this._inputs.indexOf(t)&&this.disconnect(t),t.mapAxes(n),t.connect(this.inputObserver),this._inputs.push(t),this},n.disconnect=function(e){if(e){var t=this._inputs.indexOf(e);t>=0&&(this._inputs[t].disconnect(),this._inputs.splice(t,1))}else this._inputs.forEach(function(e){return e.disconnect()}),this._inputs=[];return this},n.get=function(e){return this.axisManager.get(e)},n.setTo=function(e,t){return t===void 0&&(t=0),this.animationManager.setTo(e,t),this},n.setBy=function(e,t){return t===void 0&&(t=0),this.animationManager.setBy(e,t),this},n.setOptions=function(e){return this.options=z(z({},this.options),e),this.animationManager.setOptions(e),this},n.setAxis=function(e){return this.axisManager.setAxis(e),this},n.stopAnimation=function(){return this.animationManager.stopAnimation(),this.animationManager.finish(!1),this},n.updateAnimation=function(e){return this.animationManager.updateAnimation(e),this},n.isBounceArea=function(e){return this.axisManager.isOutside(e)},n.destroy=function(){this.disconnect(),this.eventManager.destroy()},t.VERSION=`3.9.2`,t.TRANSFORM=Qo,t.DIRECTION_NONE=jo,t.DIRECTION_LEFT=Mo,t.DIRECTION_RIGHT=No,t.DIRECTION_UP=Fo,t.DIRECTION_DOWN=Io,t.DIRECTION_HORIZONTAL=Po,t.DIRECTION_VERTICAL=Lo,t.DIRECTION_ALL=Ro,Ao([Do],t.prototype,`holding`,null),t=Ao([xo],t),t}(I),Xs=function(e,t){if(t<0||t>90)return jo;var n=Math.abs(e);return n>t&&n<180-t?Lo:Po},Zs=function(){function e(e,t){var n=this;this.axes=[],this.element=null,this._enabled=!1,this._activeEvent=null,this._atRightEdge=!1,this._rightEdgeTimer=0,this._dragged=!1,this._isOverThreshold=!1,this._preventClickWhenDragged=function(e){n._dragged&&(e.preventDefault(),e.stopPropagation()),n._dragged=!1},this._voidFunction=function(){},this.element=ts(e),this.options=z({inputType:[`touch`,`mouse`,`pointer`],inputKey:[Uo],inputButton:[zo],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:Xo,releaseOnScroll:!1,touchAction:null},t),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var t=e.prototype;return t.mapAxes=function(e){this._direction=bs(!!e[0],!!e[1]),this.axes=e},t.connect=function(e){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(e),this},t.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),this._direction=jo,this},t.destroy=function(){this.disconnect(),this.element=null},t.enable=function(){if(Ws(this.options.inputType))this._enabled||(this._enabled=!0,this._originalCssProps=Ss(this.element,this.options,this._direction));else throw Error(`PanInput cannot be enabled if there is no available input event.`);return this},t.disable=function(){return this._enabled&&(this._enabled=!1,ys(this._originalCssProps)||Cs(this.element,this._originalCssProps)),this},t.isEnabled=function(){return this._enabled},t.release=function(){var e=this._activeEvent,t=e.prevEvent;return e.onRelease(),this._observer.release(this,t,[0,0]),this._detachWindowEvent(e),this},t._onPanstart=function(e){var t=this.options,n=t.inputKey,r=t.inputButton,i=t.preventDefaultOnDrag,a=this._activeEvent,o=a.onEventStart(e,n,r);if(!(!o||!this._enabled||a.getTouches(e,r)>1)&&o.srcEvent.cancelable!==!1){var s=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,o),this._atRightEdge=Zo&&o.center.x>window.innerWidth-s,this._attachWindowEvent(a),i&&o.srcEvent.type!==`touchstart`&&o.srcEvent.preventDefault(),a.prevEvent=o}},t._onPanmove=function(e){var t=this,n=this.options,r=n.iOSEdgeSwipeThreshold,i=n.preventClickOnDrag,a=n.releaseOnScroll,o=n.inputKey,s=n.inputButton,c=n.threshold,l=n.thresholdAngle,u=this._activeEvent,d=u.onEventMove(e,o,s),f=u.getTouches(e,s);if(f===0||a&&d&&!d.srcEvent.cancelable){this._onPanend(e);return}if(!(!d||!this._enabled||f>1)){var p=Xs(d.angle,l),m=xs(Po,this._direction,p),h=xs(Lo,this._direction,p);if(u.prevEvent&&Zo){if(d.center.x<0){this.release();return}this._atRightEdge&&(clearTimeout(this._rightEdgeTimer),d.deltaX<-r?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return t.release()},100))}var g=this._getDistance([d.deltaX,d.deltaY],[m,h]),_=this._getOffset([d.offsetX,d.offsetY],[m,h]),v=_.some(function(e){return e!==0});v&&(d.srcEvent.cancelable!==!1&&d.srcEvent.preventDefault(),d.srcEvent.stopPropagation()),d.preventSystemEvent=v,v&&(this._isOverThreshold||g>=c)&&(this._dragged=i,this._isOverThreshold=!0,this._observer.change(this,d,Us(this.axes,_))),u.prevEvent=d}},t._onPanend=function(e){var t=this.options.inputButton,n=this._activeEvent;if(n.onEventEnd(e),!(!this._enabled||n.getTouches(e,t)!==0)){this._detachWindowEvent(n),clearTimeout(this._rightEdgeTimer);var r=n.prevEvent,i=this._isOverThreshold?this._getOffset([Math.abs(r.velocityX)*r.directionX,Math.abs(r.velocityY)*r.directionY],[xs(Po,this._direction),xs(Lo,this._direction)]):[0,0];n.onRelease(),this._observer.release(this,r,i)}},t._attachWindowEvent=function(e){var t=this;e?.move.forEach(function(e){window.addEventListener(e,t._onPanmove,Gs(e))}
2),e?.end.forEach(function(e){window.addEventListener(e,t._onPanend,Gs(e))})},t._detachWindowEvent=function(e){var t=this;e?.move.forEach(function(e){window.removeEventListener(e,t._onPanmove)}),e?.end.forEach(function(e){window.removeEventListener(e,t._onPanend)})},t._getOffset=function(e,t){var n=this.options.scale;return[t[0]?e[0]*n[0]:0,t[1]?e[1]*n[1]:0]},t._getDistance=function(e,t){return Math.sqrt(Number(t[0])*e[0]**2+Number(t[1])*e[1]**2)},t._attachElementEvent=function(e){var t=this,n=Ws(this.options.inputType),r=this.element;if(n){if(!r)throw Error(`Element to connect input does not exist.`);this._observer=e,this.enable(),this._activeEvent=n,r.addEventListener(`click`,this._preventClickWhenDragged,!0),n.start.forEach(function(e){r.addEventListener(e,t._onPanstart)}),n.move.forEach(function(e){r.addEventListener(e,t._voidFunction)})}},t._detachElementEvent=function(){var e=this,t=this._activeEvent,n=this.element;n&&(n.removeEventListener(`click`,this._preventClickWhenDragged,!0),t?.start.forEach(function(t){n.removeEventListener(t,e._onPanstart)}),t?.move.forEach(function(t){n.removeEventListener(t,e._voidFunction)})),this.disable(),this._observer=null},e}(),Qs=function(){function e(e,t){this.axes=[],this.element=null,this._pinchFlag=!1,this._enabled=!1,this._activeEvent=null,this._isOverThreshold=!1,this.element=ts(e),this.options=z({scale:1,threshold:0,inputType:[`touch`,`pointer`],touchAction:`none`},t),this._onPinchStart=this._onPinchStart.bind(this),this._onPinchMove=this._onPinchMove.bind(this),this._onPinchEnd=this._onPinchEnd.bind(this)}var t=e.prototype;return t.mapAxes=function(e){this.axes=e},t.connect=function(e){return this._activeEvent&&this._detachEvent(),this._attachEvent(e),this._originalCssProps=Ss(this.element,this.options,Ro),this},t.disconnect=function(){return this._detachEvent(),ys(this._originalCssProps)||Cs(this.element,this._originalCssProps),this},t.destroy=function(){this.disconnect(),this.element=null},t.enable=function(){return this._enabled=!0,this},t.disable=function(){return this._enabled=!1,this},t.isEnabled=function(){return this._enabled},t._onPinchStart=function(e){var t=this._activeEvent,n=t.onEventStart(e);!n||!this._enabled||t.getTouches(e)!==2||(this._baseValue=this._observer.get(this)[this.axes[0]],this._observer.hold(this,e),this._pinchFlag=!0,this._isOverThreshold=!1,t.prevEvent=n)},t._onPinchMove=function(e){var t=this.options.threshold,n=this._activeEvent,r=n.onEventMove(e);if(!(!r||!this._pinchFlag||!this._enabled||n.getTouches(e)!==2)){var i=this._getDistance(r.scale),a=this._getOffset(r.scale,n.prevEvent.scale);(this._isOverThreshold||i>=t)&&(this._isOverThreshold=!0,this._observer.change(this,e,Us(this.axes,[a]))),n.prevEvent=r}},t._onPinchEnd=function(e){var t=this._activeEvent;t.onEventEnd(e),!(!this._pinchFlag||!this._enabled||t.getTouches(e)>=2)&&(t.onRelease(),this._observer.release(this,e,[0],0),this._baseValue=null,this._pinchFlag=!1)},t._attachEvent=function(e){var t=this,n=Ws(this.options.inputType),r=this.element;if(n){if(!r)throw Error(`Element to connect input does not exist.`);this._observer=e,this._enabled=!0,this._activeEvent=n,n.start.forEach(function(e){r.addEventListener(e,t._onPinchStart,!1)}),n.move.forEach(function(e){r.addEventListener(e,t._onPinchMove,!1)}),n.end.forEach(function(e){r.addEventListener(e,t._onPinchEnd,!1)})}},t._detachEvent=function(){var e=this,t=this._activeEvent,n=this.element;n&&(t?.start.forEach(function(t){n.removeEventListener(t,e._onPinchStart,!1)}),t?.move.forEach(function(t){n.removeEventListener(t,e._onPinchMove,!1)}),t?.end.forEach(function(t){n.removeEventListener(t,e._onPinchEnd,!1)})),this._enabled=!1,this._observer=null},t._getOffset=function(e,t){return t===void 0&&(t=1),this._baseValue*(e-t)*this.options.scale},t._getDistance=function(e){return Math.abs(e-1)},e}(),$s=function(){function e(e,t){this.axes=[],this.element=null,this._enabled=!1,this._holding=!1,this._timer=null,this.element=ts(e),this.options=z({inputKey:[Uo],scale:1,releaseDelay:300,useNormalized:!0,useAnimation:!1},t),this._onWheel=this._onWheel.bind(this)}var t=e.prototype;
2return t.mapAxes=function(e){this._direction=bs(!!e[1],!!e[0]),this.axes=e},t.connect=function(e){return this._detachEvent(),this._attachEvent(e),this},t.disconnect=function(){return this._detachEvent(),this},t.destroy=function(){this.disconnect(),this.element=null},t.enable=function(){return this._enabled=!0,this},t.disable=function(){return this._enabled=!1,this},t.isEnabled=function(){return this._enabled},t._onWheel=function(e){var t=this;if(!(!this._enabled||!Ls(e,this.options.inputKey))){var n=this._getOffset([e.deltaY,e.deltaX],[xs(Lo,this._direction),xs(Po,this._direction)]);(n[0]!==0||n[1]!==0)&&(e.preventDefault(),this._holding||=(this._observer.hold(this,e),!0),this._observer.change(this,e,Us(this.axes,n),this.options.useAnimation),clearTimeout(this._timer),this._timer=setTimeout(function(){t._holding&&(t._holding=!1,t._observer.release(t,e,[0]))},this.options.releaseDelay))}},t._getOffset=function(e,t){var n=this.options.scale,r=this.options.useNormalized;return[t[0]&&e[0]?(e[0]>0?-1:1)*(r?1:Math.abs(e[0]))*n:0,t[1]&&e[1]?(e[1]>0?-1:1)*(r?1:Math.abs(e[1]))*n:0]},t._attachEvent=function(e){var t=this.element;if(!t)throw Error(`Element to connect input does not exist.`);this._observer=e,t.addEventListener(`wheel`,this._onWheel),this._enabled=!0},t._detachEvent=function(){this.element&&this.element.removeEventListener(`wheel`,this._onWheel),this._enabled=!1,this._observer=null,this._timer&&=(clearTimeout(this._timer),null)},e}(),ec=37,tc=65,nc=38,rc=87,ic=39,ac=68,oc=40,sc=83,cc=-1,lc=1,uc=-1,dc=1,fc=80,pc=function(){function e(e,t){this.axes=[],this.element=null,this._enabled=!1,this._holding=!1,this._timer=null,this.element=ts(e),this.options=z({scale:[1,1]},t),this._onKeydown=this._onKeydown.bind(this),this._onKeyup=this._onKeyup.bind(this)}var t=e.prototype;return t.mapAxes=function(e){this.axes=e},t.connect=function(e){return this._detachEvent(),this.element.getAttribute(`tabindex`)!==`0`&&this.element.setAttribute(`tabindex`,`0`),this._attachEvent(e),this},t.disconnect=function(){return this._detachEvent(),this},t.destroy=function(){this.disconnect(),this.element=null},t.enable=function(){return this._enabled=!0,this},t.disable=function(){return this._enabled=!1,this},t.isEnabled=function(){return this._enabled},t._onKeydown=function(e){if(this._enabled){var t=!0,n=lc,r=uc;switch(e.keyCode){case ec:case tc:n=cc;break;case ic:case ac:break;case oc:case sc:n=cc,r=dc;break;case nc:case rc:r=dc;break;default:t=!1}if((r===uc&&!this.axes[0]||r===dc&&!this.axes[1])&&(t=!1),t){e.preventDefault();var i=r===uc?[+this.options.scale[0]*n,0]:[0,+this.options.scale[1]*n];this._holding||=(this._observer.hold(this,e),!0),clearTimeout(this._timer),this._observer.change(this,e,Us(this.axes,i))}}},t._onKeyup=function(e){var t=this;this._holding&&(clearTimeout(this._timer),this._timer=setTimeout(function(){t._observer.release(t,e,[0,0]),t._holding=!1},fc))},t._attachEvent=function(e){var t=this.element;if(!t)throw Error(`Element to connect input does not exist.`);this._observer=e,t.addEventListener(`keydown`,this._onKeydown,!1),t.addEventListener(`keypress`,this._onKeydown,!1),t.addEventListener(`keyup`,this._onKeyup,!1),this._enabled=!0},t._detachEvent=function(){var e=this.element;e&&(e.removeEventListener(`keydown`,this._onKeydown,!1),e.removeEventListener(`keypress`,this._onKeydown,!1),e.removeEventListener(`keyup`,this._onKeyup,!1)),this._enabled=!1,this._observer=null},e}(),mc=1e-6,V=typeof Float32Array<`u`?Float32Array:Array,hc=Math.PI/180;180/Math.PI;function gc(e){return e*hc}function _c(){var e=new V(9);return V!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function vc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function yc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=u*o-s*l,f=-u*a+s*c,p=l*a-o*c,m=n*d+r*f+i*p;return m?(m=1/m,e[0]=d*m,e[1]=(-u*r+i*l)*m,e[2]=(s*r-i*o)*m,e[3]=f*m,e[4]=(u*n-i*c)*m,e[5]=(-s*n+i*a)*m,e[6]=p*m,e[7]=(-l*n+r*c)*m,e[8]=(o*n-r*a)*m,e):null}function bc(){var e=new V(16);return V!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function xc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
vendor: 5,476 bytes, line 2
2]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Sc(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*r,e[5]=o*i+u*r,e[6]=s*i+d*r,e[7]=c*i+f*r,e[8]=l*i-a*r,e[9]=u*i-o*r,e[10]=d*i-s*r,e[11]=f*i-c*r,e}function Cc(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],c=t[3],l=t[8],u=t[9],d=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*r,e[1]=o*i-u*r,e[2]=s*i-d*r,e[3]=c*i-f*r,e[8]=a*r+l*i,e[9]=o*r+u*i,e[10]=s*r+d*i,e[11]=c*r+f*i,e}function wc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,f=i*o,p=i*s,m=i*c,h=a*o,g=a*s,_=a*c;return e[0]=1-d-m,e[1]=u+_,e[2]=f-g,e[3]=0,e[4]=u-_,e[5]=1-l-m,e[6]=p+h,e[7]=0,e[8]=f+g,e[9]=p-h,e[10]=1-l-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Tc(e,t,n,r,i){var a=1/Math.tan(t/2);if(e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,i!=null&&i!==1/0){var o=1/(r-i);e[10]=(i+r)*o,e[14]=2*i*r*o}else e[10]=-1,e[14]=-2*r;return e}var Ec=Tc;function H(){var e=new V(3);return V!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Dc(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function U(e,t,n){var r=new V(3);return r[0]=e,r[1]=t,r[2]=n,r}function Oc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function kc(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function Ac(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function jc(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Mc(e,t){var n=t[0],r=t[1],i=t[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Nc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Pc(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=i*c-a*s,e[1]=a*o-r*c,e[2]=r*s-i*o,e}function Fc(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function Ic(e,t,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],c=t[1],l=t[2],u=i*l-a*c,d=a*s-r*l,f=r*c-i*s;return u+=u,d+=d,f+=f,e[0]=s+o*u+i*f-a*d,e[1]=c+o*d+a*u-r*f,e[2]=l+o*f+r*d-i*u,e}var Lc=Dc;(function(){var e=H();return function(t,n,r,i,a,o){var s,c;for(n||=3,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s<c;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}})();function Rc(){var e=new V(4);return V!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function zc(e){var t=new V(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Bc(e,t,n,r){var i=new V(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function Vc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Hc(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=a*o,e}function Uc(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Wc(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}(function(){var e=Rc();return function(t,n,r,i,a,o){var s,c;for(n||=4,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s<c;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}})();function Gc(){var e=new V(4);return V!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Kc(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function qc(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=n[0],c=n[1],l=n[2],u=n[3];return e[0]=r*u+o*s+i*l-a*c,e[1]=i*u+o*c+a*s-r*l,e[2]=a*u+o*l+r*c-i*s,e[3]=o*u-r*s-i*c-a*l,e}function Jc(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3],c=n[0],l=n[1],u=n[2],d=n[3],f,p=i*c+a*l+o*u+s*d,m,h,g;return p<0&&(p=-p,c=-c,l=-l,u=-u,d=-d),1-p>1e-6?(f=Math.acos(p),m=Math.sin(f),h=Math.sin((1-r)*f)/m,g=Math.sin(r*f)/m):(h=1-r,g=r),e[0]=h*i+g*c,e[1]=h*a+g*l,e[2]=h*o+g*u,e[3]=h*s+g*d,e}function Yc(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function Xc(e,t){var n=t[0]+t[4]+t[8],r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(t[i*3+i]-t[a*3+a]-t[o*3+o]+1),e[i]=.5*r,r=.5/r,e[3]=(t[a*3+o]-t[o*3+a])*r,e[a]=(t[a*3+i]+t[i*3+a])*r,e[o]=(t[o*3+i]+t[i*3+o])*r}return e}var Zc=zc,Qc=Bc,$c=Vc,el=Hc,tl=Wc;function nl(e,t){return Math.abs(Uc(e,t))>=1-mc}(function(){var e=H(),t=U(1,0,0),n=U(0,1,0);return function(r,i,a){var o=Nc(i,a);return o<-.999999?(Pc(e,t,i),Lc(e)<1e-6&&Pc(e,n,i),Mc(e,e),Kc(r,e,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Pc(e,i,a),r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=1+o,el(r,r))}})(),function(){var e=Gc(),t=Gc();return function(n,r,i,a,o,s){return Jc(e,r,o,s),Jc(t,i,a,s),Jc(n,e,t,2*s*(1-s)),n}}(),function(){var e=_c();return function(t,n,r,i){return e[0]=r[0],e[3]=r[1],e[6]=r[2],e[1]=i[0],e[4]=i[1],e[7]=i[2],e[2]=-n[0],e[5]=-n[1],e[8]=-n[2],el(t,Xc(t,e))}}();function rl(){var e=new V(2);return V!=Float32Array&&(e[0]=0,e[1]=0),e}function il(e,t){var n=new V(2);return n[0]=e,n[1]=t,n}function al(e,t){return e[0]=t[0],e[1]=t[1],e}function ol(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function sl(e,t){return e[0]*t[0]+e[1]*t[1]}(function(){var e=rl();return function(t,n,r,i,a,o){var s,c;for(n||=2,r||=0,c=i?Math.min(i*n+r,t.length):t.length,s=r;s<c;
vendor: 6,886 bytes, line 2
2s+=n)e[0]=t[s],e[1]=t[s+1],a(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}})();var cl=function(e,t){return cl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},cl(e,t)};function ll(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);cl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ul=function(){return ul=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ul.apply(this,arguments)};function dl(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var fl=typeof window<`u`,pl=fl?window.navigator.userAgent:``,ml=fl?`getComputedStyle`in window:!1,hl=/MSIE|Trident|Windows Phone|Edge/.test(pl),gl=fl?`addEventListener`in document:!1,_l=`width`,vl=`height`;function yl(e,t){return e.getAttribute(t)||``}function bl(e){return[].slice.call(e)}function xl(e,t){return t===void 0&&(t=`data-`),!!e.getAttribute(t+`width`)}function Sl(e,t){return t===void 0&&(t=`data-`),`loading`in e&&e.getAttribute(`loading`)===`lazy`||!!e.getAttribute(t+`lazy`)}function Cl(e,t){return t===void 0&&(t=`data-`),!!e.getAttribute(t+`skip`)}function wl(e,t,n){gl?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent(`on`+t,n):e[`on`+t]=n}function Tl(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent(`on`+t,n):e[`on`+t]=null}function El(e){return kl(e,`Width`)}function Dl(e){return kl(e,`Height`)}function Ol(e){return(ml?window.getComputedStyle(e):e.currentStyle)||{}}function kl(e,t){var n=e[`client`+t]||e[`offset`+t];return parseFloat(n||Ol(e)[t.toLowerCase()])||0}function Al(e,t,n){var r=bl(e.querySelectorAll(dl([`[`+n+`skip] [`+n+`width]`],t.map(function(e){return[`[`+n+`skip] `+e,e+`[`+n+`skip]`,`[`+n+`width] `+e].join(`, `)})).join(`, `)));return bl(e.querySelectorAll(`[`+n+`width], `+t.join(`, `))).filter(function(e){return r.indexOf(e)===-1})}var jl=[];function Ml(e,t){!jl.length&&wl(window,`resize`,Fl),e.__PREFIX__=t,jl.push(e),Pl(e)}function Nl(e,t){var n=jl.indexOf(e);if(!(n<0)){var r=yl(e,t+`fixed`);delete e.__PREFIX__,e.style[r===vl?_l:vl]=``,jl.splice(n,1),!jl.length&&Tl(window,`resize`,Fl)}}function Pl(e,t){t===void 0&&(t=`data-`);var n=e.__PREFIX__||t,r=parseInt(yl(e,``+n+_l),10)||0,i=parseInt(yl(e,``+n+vl),10)||0;if(yl(e,n+`fixed`)===vl){var a=Dl(e)||i;e.style[_l]=r/i*a+`px`}else{var a=El(e)||r;e.style[vl]=i/r*a+`px`}}function Fl(){jl.forEach(function(e){Pl(e)})}var Il=function(e){ll(t,e);function t(t,n){n===void 0&&(n={});var r=e.call(this)||this;r.isReady=!1,r.isPreReady=!1,r.hasDataSize=!1,r.hasLoading=!1,r.isSkip=!1,r.onCheck=function(e){r.clear(),e&&e.type===`error`&&r.onError(r.element),!(r.hasLoading&&r.checkElement())&&r.onReady()},r.options=ul({prefix:`data-`},n),r.element=t;var i=r.options.prefix;return r.hasDataSize=xl(t,i),r.isSkip=Cl(t,i),r.hasLoading=Sl(t,i),r}var n=t.prototype;return n.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(),!1):(this.hasDataSize&&Ml(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},n.addEvents=function(){var e=this,t=this.element;this.constructor.EVENTS.forEach(function(n){wl(t,n,e.onCheck)})},n.clear=function(){var e=this,t=this.element;this.constructor.EVENTS.forEach(function(n){Tl(t,n,e.onCheck)}),this.removeAutoSizer()},n.destroy=function(){this.clear(),this.off()},n.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;Nl(this.element,e)}},n.onError=function(e){this.trigger(`error`,{element:this.element,target:e})},n.onPreReady=function(){this.isPreReady||(this.isPreReady=!0,this.trigger(`preReady`,{element:this.element,hasLoading:this.hasLoading,isSkip:this.isSkip}))},n.onReady=function(){var e=this.isPreReady;this.isPreReady=!0,!this.isReady&&(this.removeAutoSizer(),this.isReady=!0,this.trigger(`ready`,{element:this.element,withPreReady:!e,hasLoading:this.hasLoading,isSkip:this.isSkip}))},n.onAlreadyError=function(e){var t=this;setTimeout(function(){t.onError(e)})},n.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},n.onAlreadyReady=function(){var e=this;setTimeout(function(){e.onReady()})},t.EVENTS=[],t}(I),Ll=function(e){ll(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}var n=t.prototype;return n.setHasLoading=function(e){this.hasLoading=e},n.check=function(){return this.isSkip?(this.onAlreadyReady(),!1):(this.hasDataSize?(Ml(this.element,this.options.prefix),this.onAlreadyPreReady()):this.trigger(`requestChildren`),!0)},n.checkElement=function(){return!0},n.destroy=function(){this.clear(),this.trigger(`requestDestroy`),this.off()},n.onAlreadyPreReady=function(){e.prototype.onAlreadyPreReady.call(this),this.trigger(`reqeustReadyChildren`)},t.EVENTS=[],t}(Il),Rl=function(e){ll(t,e);function t(t){t===void 0&&(t={});var n=e.call(this)||this;return n.readyCount=0,n.preReadyCount=0,n.totalCount=0,n.totalErrorCount=0,n.isPreReadyOver=!0,n.elementInfos=[],n.options=ul({loaders:{},prefix:`data-`},t),n}var n=t.prototype;return n.check=function(e){var t=this,n=this.options.prefix;this.clear(),this.elementInfos=bl(e).map(function(e,r){var i=t.getLoader(e,{prefix:n});return i.check(),i.on(`error`,function(e){t.onError(r,e.target)}).on(`preReady`,function(e){var n=t.elementInfos[r];n.hasLoading=e.hasLoading,n.isSkip=e.isSkip;var i=t.checkPreReady(r);t.onPreReadyElement(r),i&&t.onPreReady()}).on(`ready`,function(e){var n=e.withPreReady,i=e.hasLoading,a=e.isSkip,o=t.elementInfos[r];o.hasLoading=i,o.isSkip=a;var s=n&&t.checkPreReady(r),c=t.checkReady(r);n&&t.onPreReadyElement(r),t.onReadyElement(r),s&&t.onPreReady(),c&&t.onReady()}),{loader:i,element:e,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var r=this.elementInfos.length;return this.totalCount=r,r||setTimeout(function(){t.onPreReady(),t.onReady()}),this},n.getTotalCount=function(){return this.totalCount},n.isPreReady=function(){return this.elementInfos.every(function(e){return e.isPreReady})},n.isReady=function(){return this.elementInfos.every(function(e){return e.isReady})},n.hasError=function(){return this.totalErrorCount>0},n.clear=function(){this.isPreReadyOver=!1,this.totalCount=0,this.preReadyCount=0,this.readyCount=0,this.totalErrorCount=0,this.elementInfos.forEach(function(e){e.loader&&e.loader.destroy()}),this.elementInfos=[]},n.destroy=function(){this.clear(),this.off()},n.getLoader=function(e,t){var n=this,r=e.tagName.toLowerCase(),i=this.options.loaders,a=t.prefix,o=Object.keys(i);if(i[r])return new i[r](e,t);
2var s=new Ll(e,t),c=bl(e.querySelectorAll(o.join(`, `)));s.setHasLoading(c.some(function(e){return Sl(e,a)}));var l=this.clone().on(`error`,function(e){s.onError(e.target)}).on(`ready`,function(){s.onReady()});return s.on(`requestChildren`,function(){var t=Al(e,o,n.options.prefix);l.check(t).on(`preReady`,function(e){e.isReady||s.onPreReady()})}).on(`reqeustReadyChildren`,function(){l.check(c)}).on(`requestDestroy`,function(){l.destroy()}),s},n.clone=function(){return new t(ul({},this.options))},n.checkPreReady=function(e){return this.elementInfos[e].isPreReady=!0,++this.preReadyCount,!(this.preReadyCount<this.totalCount)},n.checkReady=function(e){return this.elementInfos[e].isReady=!0,++this.readyCount,!(this.readyCount<this.totalCount)},n.onError=function(e,t){var n=this.elementInfos[e];n.hasError=!0,this.trigger(new L(`error`,{element:n.element,index:e,target:t,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},n.onPreReadyElement=function(e){var t=this.elementInfos[e];this.trigger(new L(`preReadyElement`,{element:t.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:t.hasLoading,isSkip:t.isSkip}))},n.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new L(`preReady`,{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},n.onReadyElement=function(e){var t=this.elementInfos[e];this.trigger(new L(`readyElement`,{index:e,element:t.element,hasError:t.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:t.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:t.isSkip}))},n.onReady=function(){this.trigger(new L(`ready`,{errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,totalCount:this.totalCount}))},n.getErrorCount=function(){return this.elementInfos.filter(function(e){return e.hasError}).length},n.hasLoading=function(){return this.elementInfos.some(function(e){return e.hasLoading})},t}(I),zl=function(e){ll(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}var n=t.prototype;return n.checkElement=function(){var e=this.element,t=e.getAttribute(`src`);if(e.complete){if(t)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),hl&&e.setAttribute(`src`,t),!0},t.EVENTS=[`load`,`error`],t}(Il),Bl=function(e){ll(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}var n=t.prototype;return n.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},t.EVENTS=[`loadedmetadata`,`error`],t}(Il),Vl=function(e){ll(t,e);function t(t){return t===void 0&&(t={}),e.call(this,ul({loaders:{img:zl,video:Bl}},t))||this}return t}(Rl),Hl=`3.6.4`,Ul=function(e,t){return Ul=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Ul(e,t)};function W(e,t){Ul(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)};function Wl(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Gl(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>
20&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function Kl(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function ql(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Jl(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ql(arguments[t]));return e}var K=typeof window<`u`&&window.Math===Math?window:typeof self<`u`&&self.Math===Math?self:Function(`return this`)(),q=K.document,Yl=K.navigator,Xl=ro(),Zl=Xl.os.name,Ql=Xl.browser.name,$l=Zl===`ios`,eu=Zl===`mac`&&Ql===`safari`;K.Float32Array=K.Float32Array===void 0?K.Array:K.Float32Array,K.Float32Array,K.getComputedStyle;var tu=K.navigator&&K.navigator.userAgent,nu=`ontouchstart`in K,ru=`ondevicemotion`in K,iu=K.DeviceMotionEvent,au=K.devicePixelRatio,ou=function(){for(var e=q?.documentElement.style??{},t=[`transform`,`webkitTransform`,`msTransform`,`mozTransform`],n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n];return``}(),su=K.CSS&&K.CSS.supports&&K.CSS.supports(`will-change`,`transform`),cu=!1,lu=function(){var e=window.navigator;e.xr&&(e.xr.isSessionSupported?e.xr.isSessionSupported(`immersive-vr`).then(function(e){cu=e}).catch(function(){}):e.xr.supportsSession&&e.xr.supportsSession(`immersive-vr`).then(function(e){cu=e}).catch(function(){}))},uu=function(e){var t=U(0,0,1);return Ic(t,t,e),t},du=function(e){return e*180/Math.PI},J={};J.isPowerOfTwo=function(e){return e&&!(e&e-1)},J.extractPitchFromQuat=function(e){var t=uu(e);return-1*Math.atan2(t[1],Math.sqrt(t[0]**2+t[2]**2))},J.hypot=Math.hypot||function(e,t){return Math.sqrt(e*e+t*t)};var Y={PITCH_DELTA:1,YAW_DELTA_BY_ROLL:2,YAW_DELTA_BY_YAW:3};Y[Y.PITCH_DELTA]={targetAxis:[0,1,0],meshPoint:[0,0,1]},Y[Y.YAW_DELTA_BY_ROLL]={targetAxis:[0,1,0],meshPoint:[1,0,0]},Y[Y.YAW_DELTA_BY_YAW]={targetAxis:[1,0,0],meshPoint:[0,0,1]};var fu=function(e,t,n){var r=U(Y[n].targetAxis[0],Y[n].targetAxis[1],Y[n].targetAxis[2]),i=Y[n].meshPoint,a=Zc(e),o=Zc(t);el(a,a),el(o,o);var s=U(0,0,1),c=U(0,0,1);Ic(s,s,a),Ic(c,c,o),Ic(r,r,o);var l=Nc(r,Pc(H(),s,c))>0?1:-1,u=U(i[0],i[1],i[2]),d=n===Y.YAW_DELTA_BY_YAW?U(l,0,0):U(0,l,0);Ic(u,u,o),Ic(d,d,o);var f=u,p=d,m=H();Pc(m,f,p),Mc(m,m);var h=m[0],g=m[1],_=m[2];c=U(i[0],i[1],i[2]),Ic(c,c,o),s=U(i[0],i[1],i[2]),Ic(s,s,a);var v=Math.abs(s[0]*h+s[1]*g+s[2]*_),y=H();Ac(y,s,jc(H(),m,v));var b=(y[0]*c[0]+y[1]*c[1]+y[2]*c[2])/(Dc(y)*Dc(c));b>1&&(b=1);var ee=Math.acos(b),x=Pc(H(),c,y);return v=h*x[0]+g*x[1]+_*x[2],du(ee*(n===Y.YAW_DELTA_BY_YAW?v<0?1:-1:v>0?1:-1)*l)},pu=function(e,t){var n=e[0]*t[1]-t[0]*e[1];return-Math.atan2(n,sl(e,t))};J.yawOffsetBetween=function(e,t){var n=il(e[0],e[2]),r=il(t[0],t[2]);return ol(n,n),ol(r,r),-pu(n,r)},J.sign=function(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e},J.toDegree=du,J.getRotationDelta=fu,J.angleBetweenVec2=pu;var mu=function(e,t){return t.reduce(function(t,n,r){return e[r]&&(t[e[r]]=n),t},{})},hu=-1,gu=null,_u=null,vu=/Chrome\/([0-9]+)\.(?:[0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(tu);vu&&(hu=parseInt(vu[1],10),gu=vu[2],_u=vu[3]);var yu=hu,bu=hu===65&&gu===`3325`&&parseInt(_u,10)<148,xu=/Android/i.test(tu),Su=1,Cu=2,wu=1,Tu=2,Eu=4,Du=Tu|Eu,Ou=.0014,ku=1e3,Au=[.2,.2],ju=110,Mu=320,Nu=180,Pu=90,Fu=180,Iu={NONE:`none`,YAWPITCH:`yawPitch`,VR:`VR`},X=K.MathUtil||{};X.degToRad=Math.PI/180,X.radToDeg=180/Math.PI,X.Vector2=function(e,t){this.x=e||0,this.y=t||0},X.Vector2.prototype={constructor:X.Vector2,set:function(e,t){return this.x=e,this.y=t,this},copy:function(e){return this.x=e.x,this.y=e.y,this},subVectors:function(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}},X.Vector3=function(e,t,n){this.x=e||0,this.y=t||0,this.z=n||0},X.Vector3.prototype={constructor:X.Vector3,set:function(e,t,n){return this.x=e,this.y=t,this.z=n,this},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},normalize:function(){var e=this.length();if(e!==0){var t=1/e;this.multiplyScalar(t)}else this.x=0,this.y=0,this.z=0;return this},multiplyScalar:function(e){this.x*=e,this.y*=e,this.z*=e},applyQuaternion:function(e){var t=this.x,n=this.y,r=this.z,i=e.x,a=e.
2y,o=e.z,s=e.w,c=s*t+a*r-o*n,l=s*n+o*t-i*r,u=s*r+i*n-a*t,d=-i*t-a*n-o*r;return this.x=c*s+d*-i+l*-o-u*-a,this.y=l*s+d*-a+u*-i-c*-o,this.z=u*s+d*-o+c*-a-l*-i,this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},crossVectors:function(e,t){var n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}},X.Quaternion=function(e,t,n,r){this.x=e||0,this.y=t||0,this.z=n||0,this.w=r===void 0?1:r},X.Quaternion.prototype={constructor:X.Quaternion,set:function(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this},copy:function(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w,this},setFromEulerXYZ:function(e,t,n){var r=Math.cos(e/2),i=Math.cos(t/2),a=Math.cos(n/2),o=Math.sin(e/2),s=Math.sin(t/2),c=Math.sin(n/2);return this.x=o*i*a+r*s*c,this.y=r*s*a-o*i*c,this.z=r*i*c+o*s*a,this.w=r*i*a-o*s*c,this},setFromEulerYXZ:function(e,t,n){var r=Math.cos(e/2),i=Math.cos(t/2),a=Math.cos(n/2),o=Math.sin(e/2),s=Math.sin(t/2),c=Math.sin(n/2);return this.x=o*i*a+r*s*c,this.y=r*s*a-o*i*c,this.z=r*i*c-o*s*a,this.w=r*i*a+o*s*c,this},setFromAxisAngle:function(e,t){var n=t/2,r=Math.sin(n);return this.x=e.x*r,this.y=e.y*r,this.z=e.z*r,this.w=Math.cos(n),this},multiply:function(e){return this.multiplyQuaternions(this,e)},multiplyQuaternions:function(e,t){var n=e.x,r=e.y,i=e.z,a=e.w,o=t.x,s=t.y,c=t.z,l=t.w;return this.x=n*l+a*o+r*c-i*s,this.y=r*l+a*s+i*o-n*c,this.z=i*l+a*c+n*s-r*o,this.w=a*l-n*o-r*s-i*c,this},inverse:function(){return this.x*=-1,this.y*=-1,this.z*=-1,this.normalize(),this},normalize:function(){var e=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);return e===0?(this.x=0,this.y=0,this.z=0,this.w=1):(e=1/e,this.x*=e,this.y*=e,this.z*=e,this.w*=e),this},slerp:function(e,t){if(t===0)return this;if(t===1)return this.copy(e);var n=this.x,r=this.y,i=this.z,a=this.w,o=a*e.w+n*e.x+r*e.y+i*e.z;if(o<0?(this.w=-e.w,this.x=-e.x,this.y=-e.y,this.z=-e.z,o=-o):this.copy(e),o>=1)return this.w=a,this.x=n,this.y=r,this.z=i,this;var s=Math.acos(o),c=Math.sqrt(1-o*o);if(Math.abs(c)<.001)return this.w=.5*(a+this.w),this.x=.5*(n+this.x),this.y=.5*(r+this.y),this.z=.5*(i+this.z),this;var l=Math.sin((1-t)*s)/c,u=Math.sin(t*s)/c;return this.w=a*l+this.w*u,this.x=n*l+this.x*u,this.y=r*l+this.y*u,this.z=i*l+this.z*u,this},setFromUnitVectors:function(){var e,t;return function(n,r){return e===void 0&&(e=new X.Vector3),t=n.dot(r)+1,t<1e-6?(t=0,Math.abs(n.x)>Math.abs(n.z)?e.set(-n.y,n.x,0):e.set(0,-n.z,n.y)):e.crossVectors(n,r),this.x=e.x,this.y=e.y,this.z=e.z,this.w=t,this.normalize(),this}}()};var Lu=Yl?.userAgent??``,Z=K.Util||{};Z.MIN_TIMESTEP=.001,Z.MAX_TIMESTEP=1,Z.base64=function(e,t){return`data:`+e+`;base64,`+t},Z.clamp=function(e,t,n){return Math.min(Math.max(t,e),n)},Z.lerp=function(e,t,n){return e+(t-e)*n},Z.isIOS=function(){var e=/iPad|iPhone|iPod/.test(Yl?.platform);return function(){return e}}(),Z.isWebViewAndroid=function(){var e=Lu.indexOf(`Version`)!==-1&&Lu.indexOf(`Android`)!==-1&&Lu.indexOf(`Chrome`)!==-1;return function(){return e}}(),Z.isSafari=function(){var e=/^((?!chrome|android).)*safari/i.test(Lu);return function(){return e}}(),Z.isFirefoxAndroid=function(){var e=Lu.indexOf(`Firefox`)!==-1&&Lu.indexOf(`Android`)!==-1;return function(){return e}}(),Z.isR7=function(){var e=Lu.indexOf(`R7 Build`)!==-1;return function(){return e}}(),Z.isLandscapeMode=function(){var e=K.orientation===90||K.orientation===-90;return Z.isR7()?!e:e},Z.isTimestampDeltaValid=function(e){return!(isNaN(e)||e<=Z.MIN_TIMESTEP||e>Z.MAX_TIMESTEP)},Z.getScreenWidth=function(){return Math.max(K.screen.width,K.screen.height)*K.devicePixelRatio},Z.getScreenHeight=function(){return Math.min(K.screen.width,K.screen.height)*K.devicePixelRatio},Z.requestFullscreen=function(e){if(Z.isWebViewAndroid())return!1;if(e.requestFullscreen)e.requestFullscreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.msRequestFullscreen)e.msRequestFullscreen();else return!1;return!0},Z.exitFullscreen=function(){if(q.exitFullscreen)q.exitFullscreen();else if(q.webkitExitFullscreen)q.webkitExitFullscreen();else if(q.mozCancelFullScreen)q.mozCancelFullScreen();else if(q.msExitFullscreen)q.msExitFullscreen();else return!1;return!0},Z.getFullscreenElement=function(){return q.fullscreenElement||q.webkitFullscreenElement||q.mozFullScreenElement||q.msFullscreenElement},Z.linkProgram=function(e,t,n,r){var i=e.createShader(e.VERTEX_SHADER);e.shaderSource(i,t),e.compileShader(i);var a=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(a,n),e.compileShader(a);var o=e.createProgram();for(var s in e.attachShader(o,i),e.attachShader(o,a),r)e.bindAttribLocation(o,r[s],s);return e.linkProgram(o),e.deleteShader(i),e.deleteShader(a),o},Z.getProgramUniforms=function(e,t){for(var n={},r=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),i=``,a=0;a<r;a++)i=e.getActiveUniform(t,a).name.replace(`[0]`,``),n[i]=e.getUniformLocation(t,i);return n},Z.orthoMatrix=function(e,t,n,r,i,a,o){var s=1/(t-n),c=1/(r-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
2]=2*l,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*c,e[14]=(o+a)*l,e[15]=1,e},Z.copyArray=function(e,t){for(var n=0,r=e.length;n<r;n++)t[n]=e[n]},Z.isMobile=function(){var e=!1;return(function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)})(Lu||Yl?.vendor||K.opera),e},Z.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},Z.safariCssSizeWorkaround=function(e){if(Z.isIOS()){var t=e.style.width,n=e.style.height;e.style.width=parseInt(t)+1+`px`,e.style.height=parseInt(n)+`px`,setTimeout(function(){e.style.width=t,e.style.height=n},100)}K.Util=Z,K.canvas=e},Z.isDebug=function(){return Z.getQueryParameter(`debug`)},Z.getQueryParameter=function(e){e=e.replace(/[\[]/,`\\[`).replace(/[\]]/,`\\]`);var t=RegExp(`[\\?&]`+e+`=([^&#]*)`).exec(location.search);return t===null?``:decodeURIComponent(t[1].replace(/\+/g,` `))},Z.frameDataFromPose=function(){var e=Math.PI/180,t=Math.PI*.25;function n(n,r,i,a){var o=Math.tan(r?r.upDegrees*e:t),s=Math.tan(r?r.downDegrees*e:t),c=Math.tan(r?r.leftDegrees*e:t),l=Math.tan(r?r.rightDegrees*e:t),u=2/(c+l),d=2/(o+s);return n[0]=u,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=d,n[6]=0,n[7]=0,n[8]=-((c-l)*u*.5),n[9]=(o-s)*d*.5,n[10]=a/(i-a),n[11]=-1,n[12]=0,n[13]=0,n[14]=a*i/(i-a),n[15]=0,n}function r(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=r+r,c=i+i,l=a+a,u=r*s,d=r*c,f=r*l,p=i*c,m=i*l,h=a*l,g=o*s,_=o*c,v=o*l;return e[0]=1-(p+h),e[1]=d+v,e[2]=f-_,e[3]=0,e[4]=d-v,e[5]=1-(u+h),e[6]=m+g,e[7]=0,e[8]=f+_,e[9]=m-g,e[10]=1-(u+p),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function i(e,t,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,d,f,p,m,h,g,_;return t===e?(e[12]=t[0]*r+t[4]*i+t[8]*a+t[12],e[13]=t[1]*r+t[5]*i+t[9]*a+t[13],e[14]=t[2]*r+t[6]*i+t[10]*a+t[14],e[15]=t[3]*r+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],c=t[2],l=t[3],u=t[4],d=t[5],f=t[6],p=t[7],m=t[8],h=t[9],g=t[10],_=t[11],e[0]=o,e[1]=s,e[2]=c,e[3]=l,e[4]=u,e[5]=d,e[6]=f,e[7]=p,e[8]=m,e[9]=h,e[10]=g,e[11]=_,e[12]=o*r+u*i+m*a+t[12],e[13]=s*r+d*i+h*a+t[13],e[14]=c*r+f*i+g*a+t[14],e[15]=l*r+p*i+_*a+t[15]),e}function a(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14],_=t[15],v=n*s-r*o,y=n*c-i*o,b=n*l-a*o,ee=r*c-i*s,x=r*l-a*s,S=i*l-a*c,C=u*h-d*m,w=u*g-f*m,te=u*_-p*m,ne=d*g-f*h,re=d*_-p*h,T=f*_-p*g,E=v*T-y*re+b*ne+ee*te-x*w+S*C;return E?(E=1/E,e[0]=(s*T-c*re+l*ne)*E,e[1]=(i*re-r*T-a*ne)*E,e[2]=(h*S-g*x+_*ee)*E,e[3]=(f*x-d*S-p*ee)*E,e[4]=(c*te-o*T-l*w)*E,e[5]=(n*T-i*te+a*w)*E,e[6]=(g*b-m*S-_*y)*E,e[7]=(u*S-f*b+p*y)*E,e[8]=(o*re-s*te+l*C)*E,e[9]=(r*te-n*re-a*C)*E,e[10]=(m*x-h*b+_*v)*E,e[11]=(d*b-u*x-p*v)*E,e[12]=(s*w-o*ne-c*C)*E,e[13]=(n*ne-r*w+i*C)*E,e[14]=(h*y-m*ee-g*v)*E,e[15]=(u*ee-d*y+f*v)*E,e):null}var o=new Float32Array([0,0,0,1]),s=new Float32Array([0,0,0]);function c(e,t,c,l,u){n(e,l?l.fieldOfView:null,u.depthNear,u.depthFar),r(t,c.orientation||o,c.position||s),l&&i(t,t,l.offset),a(t,t)}return function(e,t,n){return!e||!t?!1:(e.pose=t,e.timestamp=t.timestamp,c(e.leftProjectionMatrix,e.leftViewMatrix,t,n.getEyeParameters(`left`),n),c(e.rightProjectionMatrix,e.rightViewM
2atrix,t,n.getEyeParameters(`right`),n),!0)}}(),Z.isInsideCrossDomainIFrame=function(){var e=K.self!==K.top,t=Z.getDomainFromUrl(q.referrer),n=Z.getDomainFromUrl(K.location.href);return e&&t!==n},Z.getDomainFromUrl=function(e){var t=e.indexOf(`://`)>-1?e.split(`/`)[2]:e.split(`/`)[0];return t=t.split(`:`)[0],t};var Ru=function(){function e(e){this.predictionTimeS=e,this.previousQ=new X.Quaternion,this.previousTimestampS=null,this.deltaQ=new X.Quaternion,this.outQ=new X.Quaternion}var t=e.prototype;return t.getPrediction=function(e,t,n){if(!this.previousTimestampS)return this.previousQ.copy(e),this.previousTimestampS=n,e;var r=new X.Vector3;r.copy(t),r.normalize();var i=t.length();if(i<X.degToRad*20)return Z.isDebug()&&console.log(`Moving slowly, at %s deg/s: no prediction`,(X.radToDeg*i).toFixed(1)),this.outQ.copy(e),this.previousQ.copy(e),this.outQ;n-this.previousTimestampS;var a=i*this.predictionTimeS;return this.deltaQ.setFromAxisAngle(r,a),this.outQ.copy(this.previousQ),this.outQ.multiply(this.deltaQ),this.previousQ.copy(e),this.previousTimestampS=n,this.outQ},e}(),zu=200,Bu=function(e){W(t,e);function t(){var t=e.call(this)||this;return t._onDeviceMotion=t._onDeviceMotion.bind(t),t._onDeviceOrientation=t._onDeviceOrientation.bind(t),t._onChromeWithoutDeviceMotion=t._onChromeWithoutDeviceMotion.bind(t),t.isWithoutDeviceMotion=bu,t.isAndroid=xu,t.stillGyroVec=H(),t.rawGyroVec=H(),t.adjustedGyroVec=H(),t._timer=-1,t.lastDevicemotionTimestamp=0,t._isEnabled=!1,t.enable(),t}var n=t.prototype;return n.enable=function(){this.isAndroid&&K.addEventListener(`deviceorientation`,this._onDeviceOrientation),this.isWithoutDeviceMotion?K.addEventListener(`deviceorientation`,this._onChromeWithoutDeviceMotion):K.addEventListener(`devicemotion`,this._onDeviceMotion),this._isEnabled=!0},n.disable=function(){K.removeEventListener(`deviceorientation`,this._onDeviceOrientation),K.removeEventListener(`deviceorientation`,this._onChromeWithoutDeviceMotion),K.removeEventListener(`devicemotion`,this._onDeviceMotion),this._isEnabled=!1},n._onChromeWithoutDeviceMotion=function(e){var t=e.alpha,n=e.beta,r=e.gamma;t!==null&&(t=(t||0)*Math.PI/180,n=(n||0)*Math.PI/180,r=(r||0)*Math.PI/180,this.trigger(new L(`devicemotion`,{inputEvent:{deviceorientation:{alpha:t,beta:n,gamma:-r}}})))},n._onDeviceOrientation=function(){var e=this;this._timer&&clearTimeout(this._timer),this._timer=K.setTimeout(function(){new Date().getTime()-e.lastDevicemotionTimestamp<zu&&Oc(e.stillGyroVec,e.rawGyroVec)},zu)},n._onDeviceMotion=function(e){var t=e.rotationRate.alpha!=null,n=e.accelerationIncludingGravity.x!=null;if(!(e.interval===0||!(t&&n))){var r=G({},e);r.interval=e.interval,r.timeStamp=e.timeStamp,r.type=e.type,r.rotationRate={alpha:e.rotationRate.alpha,beta:e.rotationRate.beta,gamma:e.rotationRate.gamma},r.accelerationIncludingGravity={x:e.accelerationIncludingGravity.x,y:e.accelerationIncludingGravity.y,z:e.accelerationIncludingGravity.z},r.acceleration={x:e.acceleration.x,y:e.acceleration.y,z:e.acceleration.z},this.isAndroid&&(kc(this.rawGyroVec,e.rotationRate.alpha||0,e.rotationRate.beta||0,e.rotationRate.gamma||0),Ac(this.adjustedGyroVec,this.rawGyroVec,this.stillGyroVec),this.lastDevicemotionTimestamp=new Date().getTime(),r.adjustedRotationRate={alpha:this.adjustedGyroVec[0],beta:this.adjustedGyroVec[1],gamma:this.adjustedGyroVec[2]}),this.trigger(new L(`devicemotion`,{inputEvent:r}))}},t}(I),Vu=function(){function e(e,t){this.set(e,t)}var t=e.prototype;return t.set=function(e,t){this.sample=e,this.timestampS=t},t.copy=function(e){this.set(e.sample,e.timestampS)},e}(),Hu=function(){function e(e){this.addGyroMeasurement=function(e,t){this.currentGyroMeasurement.set(e,t);var n=t-this.previousGyroMeasurement.timestampS;Z.isTimestampDeltaValid(n)&&this.run_(),this.previousGyroMeasurement.copy(this.currentGyroMeasurement)},this.kFilter=e,this.currentAccelMeasurement=new Vu,this.currentGyroMeasurement=new Vu,this.previousGyroMeasurement=new Vu,this.filterQ=Z.isIOS()?new X.Quaternion(-1,0,0,1):new X.Quaternion(1,0,0,1),this.previousFilterQ=new X.Quaternion,this.previousFilterQ.copy(this.filterQ),this.accelQ=new X.Quaternion,this.isOrientationInitialized=!1,this.estimatedGravity=new X.Vector3,this.measuredGravity=new X.Vector3,this.gyroIntegralQ=new X.Quaternion}var t=e.prototype;return t.addAccelMeasurement=function(e,t){this.currentAccelMeasurement.set(e,t)},t.getOrientation=function(){return this.filterQ},t.run_=function(){if(!this.isOrientationInitialized){this.accelQ=this.accelToQuaternion_(this.currentAccelMeasurement.sample),this.previousFilterQ.copy(this.accelQ),this.isOrientationInitialized=!0;return}var e=this.currentGyroMeasurement.timestampS-this.previousGyroMeasurement.timestampS,t=this.gyroToQuaternionDelta_(this.currentGyroMeasurement.sample,e);this.gyroIntegralQ.multiply(t),this.filterQ.copy(this.previousFilterQ),this.filterQ.multiply(t);var n=new X.Quaternion;n.copy(this.filterQ),n.inverse(),this.estimatedGravity.set(0,0,-1),this.estimatedGravity.applyQuaternion(n),this.estimatedGravity.normalize(),this.measuredGravity.copy(this.currentAccelMeasurement.sample),this.measuredGravity.normalize();var r=new X.Quaternion;r.setFromUnitVectors(this.estimatedGravity,this.measuredGravity),r.inverse(),Z.isDebug()&&console.log(`Delta: %d deg, G_est: (%s, %s, %s), G_meas: (%s, %s, %s)`,X.radToDeg*Z.getQuaternionAngle(r),this.estimatedGravity.x.toFixed(1),this.estimatedGravity.y.toFixed(1),this.estimatedGravity.z.toFixed(1),this.measuredGravity.x.toFixed(1),this.measuredGravity.y.toFixed(1),this.measuredGravity.z.toFixed(1));var i=new X.Quaternion;i.copy(this.filterQ),i.multiply(r),this.filterQ.slerp(i,1-this.kFilter),this.previousFilterQ.copy(this.filterQ)},t.accelToQuaternion_=function(e){var t=new X.Vector3;t.copy(e),t.normalize();var n=new X.Quaternion;return n.setFromUnitVectors(new X.Vector3(0,0,-1),t),n.inverse(),n},t.gyroToQuaternionDelta_=function(e,t){var n=new X.Quaternion,r=new X.Vector3;return r.copy(e),r.normalize(),n.setFromAxisAngle(r,e.length()*t),n},e}();Hu.prototype.run_=function(){if(!this.isOrientationInitialized){this.accelQ=this.accelToQuaternion_(this.currentAccelMeasurement.sample),this.previousFilterQ.copy(this.accelQ),this.isOrientationInitialized=!0;return}var e=this.currentGyroMeasurement.timestampS-this.previousGyroMeasurement.timestampS,t=this.gyroToQuaternionDelta_(this.currentGyroMeasurement.sample,e);this.gyroIntegralQ.multiply(t),this.filterQ.copy(this.previousFilterQ),this.filterQ.multiply(t);var n=new X.Quaternion;n.copy(this.filterQ),n.inverse(),this.estimatedGravity.set(0,0,-1),this.estimatedGravity.applyQuaternion(n),this.estimatedGravity.normalize(),this.measuredGravity.copy(this.currentAccelMeasurement.sample),this.measuredGravity.normalize();var r=new X.Quaternion;r.setFromUnitVectors(this.estimatedGravity,this.measuredGravity),r.inverse();var i=new X.Quaternion;i.copy(this.filterQ),i.multiply(r),this.filterQ.slerp(i,1-this.kFilter),this.previousFilterQ.copy(this.filterQ),this.isFilterQuaternionInitialized||=!0},Hu.prototype.getOrientation=function(){return this.isFilterQuaternionInitialized?this.filterQ:null};var Uu=.98,Wu=.04,Gu=function(e){W(t,e);function t(){var t=e.call(this)||this;return t.deviceMotion=new Bu,t.accelerometer=new X.Vector3,t.gyroscope=new X.Vector3,t._onDeviceMotionChange=t._onDeviceMotionChange.bind(t),t._onScreenOrientationChange=t._onScreenOrientationChange.bind(t),t.filter=new Hu(Uu),t.posePredictor=new Ru(Wu),t.filterToWorldQ=new X.Quaternion,t.isFirefoxAndroid=Z.isFirefoxAndroid(),t.isIOS=$l||eu,t.isChromeUsingDegrees=yu>=66,t._isEnabled=!1,t.isIOS?t.filterToWorldQ.setFromAxisAngle(new X.Vector3(1,0,0),Math.PI/2):t.filterToWorldQ.setFromAxisAngle(new X.Vector3(1,0,0),-Math.PI/2),t.inverseWorldToScreenQ=new X.Quaternion,t.worldToScreenQ=new X.Quaternion,t.originalPoseAdjustQ=new X.Quaternion,t.originalPoseAdjustQ.setFromAxisAngle(new X.Vector3(0,0,1),-K.orientation*Math.PI/180),t._setScreenTransform(),Z.isLandscapeMode()&&t.filterToWorldQ.multiply(t.inverseWorldToScreenQ),t.resetQ=new X.Quaternion,t.deviceMotion.on(`devicemotion`,t._onDeviceMotionChange),t.enable(),t}var n=t.prototype;return n.enable=function(){this.isEnabled()||(this.deviceMotion.enable(),this._isEnabled=!0,K.addEventListener(`orientationchange`,this._onScreenOrientationChange))},n.disable=function(){this.isEnabled()&&(this.deviceMotion.disable(),this._isEnabled=!1,K.removeEventListener(`orientationchange`,this._onScreenOrientationChange))},n.isEnabled=function(){return this._isEnabled},n.destroy=function(){this.disable(),this.deviceMotion=null},n.getOrientation=function(){var e=this,t;if(this.deviceMotion.isWithoutDeviceMotion&&this._deviceOrientationQ){this.deviceOrientationFixQ=this.deviceOrientationFixQ||function(){return new X.Quaternion().setFromAxisAngle(new X.Vector3(0,1,0),-e._alpha)}(),t=this._deviceOrientationQ;var n=new X.Quaternion;n.copy(t),n.multiply(this.filterToWorldQ),n.multiply(this.resetQ),n.multiply(this.worldToScreenQ),n.multiplyQuaternions(this.deviceOrientationFixQ,n);var r=Qc(n.x,n.y,n.z,n.w);return el(r,r)}if(t=this.filter.getOrientation(),!t)return null;var n=this._convertFusionToPredicted(t),r=Qc(n.x,n.y,n.z,n.w);return el(r,r)},n._triggerChange=function(){var e=this.getOrientation();if(e){if(!this._prevOrientation){this._prevOrientation=e;return}nl(this._prevOrientation,e)||this.trigger(new L(`change`,{quaternion:e}))}},n._convertFusionToPredicted=function(e){this.predictedQ=this.posePredictor.getPrediction(e,this.gyroscope,this.previousTimestampS);var t=new X.Quaternion;return t.copy(this.filterToWorldQ),t.multiply(this.resetQ),t.multiply(this.predictedQ),t.multiply(this.worldToScreenQ),t},n._onDeviceMotionChange=function(e){var t=e.inputEvent,n=t.deviceorientation,r=t,i=r.accelerationIncludingGravity,a=r.adjustedRotationRate||r.rotationRate,o=r.timeStamp/1e3;n?(this._alpha||=n.alpha,this._deviceOrientationQ=this._deviceOrientationQ||new X.Quaternion,this._deviceOrientationQ.setFromEulerYXZ(n.beta,n.alpha,n.gamma),this._triggerChange()):(this.isFirefoxAndroid&&(o/=1e3),this.accelerometer.set(-i.x,-i.y,-i.z),this.gyroscope.set(a.alph
2a,a.beta,a.gamma),(this.isIOS||this.isFirefoxAndroid||this.isChromeUsingDegrees)&&this.gyroscope.multiplyScalar(Math.PI/180),this.filter.addAccelMeasurement(this.accelerometer,o),this.filter.addGyroMeasurement(this.gyroscope,o),this._triggerChange(),this.previousTimestampS=o)},n._onScreenOrientationChange=function(){this._setScreenTransform()},n._setScreenTransform=function(){this.worldToScreenQ.set(0,0,0,1);var e=K.orientation;switch(e){case 0:break;case 90:case-90:case 180:this.worldToScreenQ.setFromAxisAngle(new X.Vector3(0,0,1),e/-180*Math.PI)}this.inverseWorldToScreenQ.copy(this.worldToScreenQ),this.inverseWorldToScreenQ.inverse()},t}(I),Ku=function(e,t){var n=J.getRotationDelta(e,t,Y.YAW_DELTA_BY_YAW);return J.getRotationDelta(e,t,Y.YAW_DELTA_BY_ROLL)*Math.sin(J.extractPitchFromQuat(t))+n},qu=function(e,t){return J.getRotationDelta(e,t,Y.PITCH_DELTA)},Ju=function(e){W(t,e);function t(t,n){n===void 0&&(n={});var r=e.call(this)||this;return r.element=t,r._prevQuaternion=null,r._quaternion=null,r.fusionPoseSensor=null,r.options=G({scale:1,threshold:0},n),r._onPoseChange=r._onPoseChange.bind(r),r}var n=t.prototype;return n.mapAxes=function(e){this.axes=e},n.connect=function(e){return this.observer?this:(this.observer=e,this.fusionPoseSensor=new Gu,this.fusionPoseSensor.enable(),this._attachEvent(),this)},n.disconnect=function(){return this.observer?(this._dettachEvent(),this.fusionPoseSensor.disable(),this.fusionPoseSensor.destroy(),this.fusionPoseSensor=null,this.observer=null,this):this},n.destroy=function(){this.disconnect(),this.element=null,this.options=null,this.axes=null,this._prevQuaternion=null,this._quaternion=null},n._onPoseChange=function(e){if(!this._prevQuaternion){this._prevQuaternion=Zc(e.quaternion),this._quaternion=Zc(e.quaternion);return}$c(this._prevQuaternion,this._quaternion),$c(this._quaternion,e.quaternion),this.observer.change(this,e,mu(this.axes,[Ku(this._prevQuaternion,this._quaternion),qu(this._prevQuaternion,this._quaternion)]))},n._attachEvent=function(){this.fusionPoseSensor.on(`change`,this._onPoseChange)},n._dettachEvent=function(){this.fusionPoseSensor.off(`change`,this._onPoseChange)},t}(I),Yu=null,Xu=0,Zu=function(){function e(){if(Xu++,Yu)return Yu;Yu=this,this._onDeviceOrientation=this._onDeviceOrientation.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._spinR=0,this._screenOrientationAngle=0,K.addEventListener(`deviceorientation`,this._onDeviceOrientation),K.addEventListener(`orientationchange`,this._onOrientationChange)}var t=e.prototype;return t.getRadian=function(){return this._spinR+gc(this._screenOrientationAngle)},t.unref=function(){--Xu>0||(K.removeEventListener(`deviceorientation`,this._onDeviceOrientation),K.removeEventListener(`orientationchange`,this._onOrientationChange),this._spinR=0,this._screenOrientationAngle=0,Yu=null,Xu=0)},t._onDeviceOrientation=function(e){if(e.beta!==null&&e.gamma!==null){var t=gc(e.beta),n=gc(e.gamma);this._spinR=Math.atan2(Math.cos(t)*Math.sin(n),Math.sin(t))}},t._onOrientationChange=function(){K.screen&&K.screen.orientation&&K.screen.orientation.angle!==void 0?this._screenOrientationAngle=screen.orientation.angle:K.orientation!==void 0&&(this._screenOrientationAngle=K.orientation>=0?K.orientation:360+K.orientation)},e}(),Qu=function(e){W(t,e);function t(t,n){n===void 0&&(n={});var r=e.call(this,t,n)||this;return r._useRotation=!1,r._screenRotationAngle=null,r.setUseRotation(!!(n&&n.useRotation)),r._userDirection=Ys.DIRECTION_ALL,r}var n=t.prototype;return n.setUseRotation=function(e){this._useRotation=e,this._screenRotationAngle&&=(this._screenRotationAngle.unref(),null),this._useRotation&&(this._screenRotationAngle=new Zu)},n.connect=function(t){return this._userDirection=this._direction,this._useRotation&&this._direction&Ys.DIRECTION_ALL&&(this._direction=Ys.DIRECTION_HORIZONTAL),e.prototype.connect.call(this,t)},n.destroy=function(){this._useRotation&&this._screenRotationAngle&&this._screenRotationAngle.unref(),e.prototype.destroy.call(this)},n._getOffset=function(t,n){if(this._useRotation===!1)return e.prototype._getOffset.call(this,t,n);var r=e.prototype._getOffset.call(this,t,[!0,!0]),i=[0,0],a=this._screenRotationAngle.getRadian(),o=Math.cos(a),s=Math.sin(a);return i[0]=r[0]*o-r[1]*s,i[1]=r[1]*o+r[0]*s,this._userDirection&Ys.DIRECTION_HORIZONTAL?this._userDirection&Ys.DIRECTION_VERTICAL||(i[1]=0):i[0]=0,i},t}(Zs),$u=U(0,1,0),ed=function(e){W(t,e);function t(){var t=e.call(this)||this;return t._fusionPoseSensor=new Gu,t._quaternion=Gc(),t._fusionPoseSensor.enable(),t._fusionPoseSensor.on(`change`,function(e){t._quaternion=e.quaternion,t.trigger(new L(`change`,{isTrusted:!0}))}),t}var n=t.prototype;return n.getCombinedQuaternion=function(e){var t=Kc(Gc(),$u,gc(-e)),n=Yc(Gc(),this._quaternion);return qc(Gc(),n,t)},n.destroy=function(){this.off(),this._fusionPoseSensor&&=(this._fusionPoseSensor.off(),this._fusionPoseSensor.destroy(),null)},t}(I),td=[-Nu,Nu],nd=[-Pu,Pu],rd=[-Fu,Fu],id=function(e){W(t,e);function t(t){var n=e.call(this)||this;n.options={};var r=G({element:null,yaw:0,pitch:0,fov:65,showPolePoint:!1,useZoom:!0,useKeyboard:!0,gyroMode:Iu.YAWPITCH,touchDirection:Du,yawRange:td,pitchRange:nd,fovRange:[30,110],aspectRatio:1},t);return n._element=r.element,n._initialFov=r.fov,n._enabled=!1,n._isAnimating=!1,n._deviceQuaternion=null,n._initAxes(r),n.option(r),n}var n=t.prototype;return n.updatePanScale=function(e){e===void 0&&(e={});var t=this._axes.get().fov,n=e.height||parseInt(window.getComputedStyle(this._element).height,10),r=Au[0]*t/this._initialFov*Mu/n;return this._axesPanInput.options.scale=[r,r],this._axes.options.deceleration=Ou*t/ju,this},n.option=function(e,t){if(!e)return this._getOptions();if(e&&typeof e==`string`&&t===void 0)return this._getOptions(e);var n={},r=[];if(typeof e==`string`)r.push(e),n[e]=t;else{var i=e;r=Object.keys(i),n=G({},i)}return this._setOptions(this._getValidatedOptions(n)),this._applyOptions(r),this},n.enable=function(){return this._enabled?this:(this._enabled=!0,this._applyOptions(Object.keys(this.options)),this.updatePanScale(),this)},n.disable=function(e){return e===void 0&&(e=!1),this._enabled?(e||this._resetOrientation(),this._axes.disconnect(),this._enabled=!1,this):this},n.lookAt=function(e,t){var n=e.yaw,r=e.pitch,i=e.fov,a=this._axes.get(),o=n===void 0?0:n-a.yaw,s=r===void 0?0:r-a.pitch,c=i===void 0?0:i-a.fov;this._axes.options.maximumDuration=1/0,this._axes.setBy({yaw:o,pitch:s,fov:c},t)},n.getYawPitch=function(){var e=this._axes.get();
2return{yaw:e.yaw,pitch:e.pitch}},n.getFov=function(){return this._axes.get().fov},n.getQuaternion=function(){var e=this._axes.get();return this._deviceQuaternion.getCombinedQuaternion(e.yaw)},n.shouldRenderWithQuaternion=function(){return this.options.gyroMode===Iu.VR},n.destroy=function(){this._axes&&this._axes.destroy(),this._axesPanInput&&this._axesPanInput.destroy(),this._axesWheelInput&&this._axesWheelInput.destroy(),this._axesTiltMotionInput&&this._axesTiltMotionInput.destroy(),this._axesPinchInput&&this._axesPinchInput.destroy(),this._axesMoveKeyInput&&this._axesMoveKeyInput.destroy(),this._deviceQuaternion&&this._deviceQuaternion.destroy()},n._initAxes=function(e){var t=this,n=this._updateYawRange(e.yawRange,e.fov,e.aspectRatio),r=this._updatePitchRange(e.pitchRange,e.fov,e.showPolePoint),i=e.gyroMode===Iu.VR;this._axesPanInput=new Qu(this._element,{useRotation:i}),this._axesWheelInput=new $s(this._element,{scale:-4}),this._axesTiltMotionInput=null,this._axesPinchInput=nu?new Qs(this._element,{scale:-1}):null,this._axesMoveKeyInput=new pc(this._element,{scale:[-6,6]}),this._axes=new Ys({yaw:{range:n,circular:this._isCircular(n),bounce:[0,0]},pitch:{range:r,circular:this._isCircular(r),bounce:[0,0]},fov:{range:e.fovRange,circular:[!1,!1],bounce:[0,0]}},{deceleration:Ou,maximumDuration:ku},{yaw:e.yaw,pitch:e.pitch,fov:e.fov}).on({hold:function(e){t._axes.options.maximumDuration=ku,t.trigger(new L(`hold`,{isTrusted:e.isTrusted}))},change:function(e){e.delta.fov!==0&&(t._updateControlScale(e),t.updatePanScale()),t._triggerChange(e)},release:function(e){t._triggerChange(e)},animationEnd:function(e){t.trigger(new L(`animationEnd`,{isTrusted:e.isTrusted}))}})},n._getValidatedOptions=function(e){return e.yawRange&&=this._getValidYawRange(e.yawRange,e.fov,e.aspectRatio),e.pitchRange&&=this._getValidPitchRange(e.pitchRange,e.fov),e},n._getOptions=function(e){var t;return typeof e==`string`?t=this.options[e]:arguments.length===0&&(t=this.options),t},n._setOptions=function(e){for(var t in e)this.options[t]=e[t]},n._applyOptions=function(e){var t=this.options,n=this._axes,r=t.gyroMode===Iu.VR,i=t.gyroMode===Iu.YAWPITCH,a=r?Tu&t.touchDirection:t.touchDirection;if(e.some(function(e){return e===`showPolePoint`||e===`fov`||e===`aspectRatio`||e===`yawRange`||e===`pitchRange`})&&(e.indexOf(`fov`)>=0&&(n.setTo({fov:t.fov}),this.updatePanScale()),this._updateControlScale()),e.some(function(e){return e===`fovRange`})){var o=t.fovRange,s=n.get().fov,c=n.get().fov;al(n.axis.fov.range,o),c<o[0]?c=o[0]:s>o[1]&&(c=o[1]),s!==c&&(n.setTo({fov:c},0),this._updateControlScale(),this.updatePanScale())}if(e.some(function(e){return e===`gyroMode`})&&ru&&(this._axesTiltMotionInput&&=(this._axes.disconnect(this._axesTiltMotionInput),this._axesTiltMotionInput.destroy(),null),this._deviceQuaternion&&=(this._deviceQuaternion.destroy(),null),r?this._initDeviceQuaternion():i&&(this._axesTiltMotionInput=new Ju(this._element),this._axes.connect([`yaw`,`pitch`],this._axesTiltMotionInput)),this._axesPanInput.setUseRotation(r)),e.some(function(e){return e===`useKeyboard`})&&(t.useKeyboard?n.connect([`yaw`,`pitch`],this._axesMoveKeyInput):n.disconnect(this._axesMoveKeyInput)),e.some(function(e){return e===`useZoom`})){var l=t.useZoom;n.disconnect(this._axesWheelInput),l&&n.connect([`fov`],this._axesWheelInput)}this._togglePinchInputByOption(t.touchDirection,t.useZoom),e.some(function(e){return e===`touchDirection`})&&this._enabled&&this._enableTouch(a)},n._togglePinchInputByOption=function(e,t){this._axesPinchInput&&(this._axes.disconnect(this._axesPinchInput),t&&e===Du&&this._axes._inputs.indexOf(this._axesPinchInput)===-1&&this._axes.connect([`fov`],this._axesPinchInput))},n._enableTouch=function(e){this._axesPanInput&&this._axes.disconnect(this._axesPanInput);var t=e&Tu?`yaw`:null,n=e&Eu?`pitch`:null;this._axes.connect([t,n],this._axesPanInput)},n._initDeviceQuaternion=function(){var e=this;this._deviceQuaternion=new ed,this._deviceQuaternion.on(`change`,function(t){e._triggerChange(t)})},n._getValidYawRange=function(e,t,n){var r=this._adjustAspectRatio(n||this.options.aspectRatio||1),i=(t||this._axes.get().fov)*r;return e[1]-e[0]>=i?e:this.options.yawRange||td},n._getValidPitchRange=function(e,t){var n=t||this._axes.get().fov;return e[1]-e[0]>=n?e:this.options.pitchRange||nd},n._isCircular=function(e){return e[1]-e[0]<360?[!1,!1]:[!0,!0]},n._updateControlScale=function(e){var t=this.options,n=this._axes.get().fov,r=this._updatePitchRange(t.pitchRange,n,t.showPolePoint),i=this._updateYawRange(t.yawRange,n,t.aspectRatio),a=this._axes.get(),o=a.yaw,s=a.pitch;return al(this._axes.axis.yaw.range,i),al(this._axes.axis.pitch.range,r),this._axes.axis.yaw.circular=this._isCircular(i),this._axes.axis.pitch.circular=this._isCircular(r),o<i[0]?o=i[0]:o>i[1]&&(o=i[1]),s<r[0]?s=r[0]:s>r[1]&&(s=r[1]),e&&e.set({yaw:o,pitch:s}),this._axes.setTo({yaw:o,pitch:s},0),this},n._updatePitchRange=function(e,t,n){if(this.options.gyroMode===Iu.VR)return rd;var r=e[1]-e[0],i=t/2;return n&&!(r<180)?e.concat():[e[0]+i,e[1]-i]},n._updateYawRange=function(e,t,n){if(this.options.gyroMode===Iu.VR)return td;if(e[1]-e[0]>=360)return e.concat();var r=J.toDegree(Math.atan2(n,1/Math.tan(gc(t/2))));return[e[0]+r,e[1]-r]},n._triggerChange=function(e){var t=this._axes.get(),n=this.options,r={targetElement:n.element,isTrusted:e.isTrusted,yaw:t.yaw,pitch:t.pitch,fov:t.fov,quaternion:null};n.gyroMode===Iu.VR&&this._deviceQuaternion&&(r.quaternion=this._deviceQuaternion.getCombinedQuaternion(t.yaw)),this.trigger(new L(`change`,r))},n._adjustAspectRatio=function(e){for(var t=[.52,.54,.563,.57,.584,.59,.609,.67,.702,.72,.76,.78,.82,.92,.97,1,1.07,1.14,1.19,1.25,1.32,1.38,1.4,1.43,1.53,1.62,1.76,1.77,1.86,1.96,2.26,2.3,2.6,3,5,6],n=[.51,.54,.606,.56,.628,.63,.647,.71,.736,.757,.78,.77,.8,.89,.975,1,1.07,1.1,1.15,1.18,1.22,1.27,1.3,1.33,1.39,1.45,1.54,1.55,1.58,1.62,1.72,1.82,1.92,2,2.24,2.3],r=-1,i=0;i<t.length-1;i++)if(t[i]<=e&&t[i+1]>=e){r=i;break}if(r===-1)return t[0]>e?n[0]:n[n[0].length-1];var a=t[r],o=t[r+1],s=n[r],c=n[r+1];return this._lerp(s,c,(e-a)/(o-a))},n._lerp=function(e,t,n){return e+n*(t-e)},n._resetOrientation=function(){var e=this.options;return this._axes.setTo({yaw:e.yaw,pitch:e.pitch,fov:e.fov},0),this},t.VERSION=Hl,t.CONTROL_MODE_VR=Su,t.CONTROL_MODE_YAWPITCH=Cu,t.TOUC
2H_DIRECTION_ALL=Du,t.TOUCH_DIRECTION_YAW=Tu,t.TOUCH_DIRECTION_PITCH=Eu,t.TOUCH_DIRECTION_NONE=wu,t}(I),ad={INVALID_DEVICE:10,NO_WEBGL:11,FAIL_IMAGE_LOAD:12,FAIL_BIND_TEXTURE:13,INVALID_RESOURCE:14,RENDERING_CONTEXT_LOST:15},Q={READY:`ready`,VIEW_CHANGE:`viewChange`,ANIMATION_END:`animationEnd`,ERROR:`error`},od={EQUIRECTANGULAR:`equirectangular`,CUBEMAP:`cubemap`,CUBESTRIP:`cubestrip`,PANORAMA:`panorama`,STEREOSCOPIC_EQUI:`stereoequi`},sd={TOP_BOTTOM:`3dv`,LEFT_RIGHT:`3dh`,NONE:``},cd={image:!0,video:!0,projectionType:!0,cubemapConfig:!0,stereoFormat:!0,width:!0,height:!0,yaw:!0,pitch:!0,fov:!0,showPolePoint:!0,useZoom:!0,useKeyboard:!0,gyroMode:!0,yawRange:!0,pitchRange:!0,fovRange:!0,touchDirection:!0,canvasClass:!0},ld=`view360-canvas`,ud=function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){var r=t[n];e[n]=Array.isArray(e[n])&&Array.isArray(r)?Jl(e[n],r):r})}),e},dd=function(e){var t=(e instanceof Array?e:[e]).map(function(e){var t=e;return typeof e==`string`&&(t=new Image,t.crossOrigin=`anonymous`,t.src=e),t});return t.length===1?t[0]:t},fd=function(e){if(e instanceof HTMLVideoElement)return e;var t=document.createElement(`video`);return t.setAttribute(`crossorigin`,`anonymous`),t.setAttribute(`webkit-playsinline`,``),t.setAttribute(`playsinline`,``),e instanceof Array?e.forEach(function(e){return pd(t,e)}):pd(t,e),t.querySelectorAll(`source`).length>0&&t.readyState<1&&t.load(),t},pd=function(e,t){var n,r;if(typeof t==`object`?(n=t.src,r=t.type):typeof t==`string`&&(n=t),!n)return!1;var i=document.createElement(`source`);i.src=n,r&&(i.type=r),e.appendChild(i)},md={0:`NO_ERROR`,1280:`INVALID_ENUM`,1281:`INVALID_VALUE`,1282:`INVALID_OPERATION`,1285:`OUT_OF_MEMORY`,1286:`INVALID_FRAMEBUFFER_OPERATION`,37442:`CONTEXT_LOST_WEBGL`},hd=null,$=function(){function e(){}return e.createShader=function(e,t,n){var r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.error(e.getShaderInfoLog(r)),null)},e.createProgram=function(e,t,n){var r=e.createProgram();return e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.deleteShader(t),e.deleteShader(n),e.getProgramParameter(r,e.LINK_STATUS)?r:(e.deleteProgram(r),null)},e.initBuffer=function(e,t,n,r,i){var a=e.createBuffer();return e.bindBuffer(t,a),e.bufferData(t,n,e.STATIC_DRAW),a&&(a.itemSize=r,a.numItems=n.length/r),i!==void 0&&(e.enableVertexAttribArray(i),e.vertexAttribPointer(i,a.itemSize,e.FLOAT,!1,0,0)),a},e.getWebglContext=function(e,t){var n,r,i=[`webgl`,`experimental-webgl`,`webkit-3d`,`moz-webgl`],a=null,o=G({preserveDrawingBuffer:!1,antialias:!1},t),s=function(e){return e.statusMessage};e.addEventListener(`webglcontextcreationerror`,s);try{for(var c=Kl(i),l=c.next();!l.done;l=c.next()){var u=l.value;try{a=e.getContext(u,o)}catch{}if(a)break}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return e.removeEventListener(`webglcontextcreationerror`,s),a},e.createTexture=function(e,t){var n=e.createTexture();return e.bindTexture(t,n),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(t,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(t,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.bindTexture(t,null),n},e.isWebGLAvailable=function(){if(hd===null){var t=document.createElement(`canvas`),n=e.getWebglContext(t);if(hd=!!n,n){var r=n.getExtension(`WEBGL_lose_context`);r&&r.loseContext()}}return!!hd},e.isStableWebGL=function(){var e=ro(),t=!0;if(e.os.name===`android`){var n=parseFloat(e.os.version);(n<=4.3&&n>=1||n===4.4&&e.browser.name!==`chrome`)&&(t=!1)}return t},e.getErrorNameFromWebGLErrorCode=function(e){return e in md?md[e]:`UNKNOWN_ERROR`},e.texImage2D=function(e,t,n){try{e.texImage2D(t,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n)}catch(e){console.error(`WebGLUtils.texImage2D error:`,e)}},e.getMaxTextureSize=function(e){return e.getParameter(e.MAX_TEXTURE_SIZE)},e}(),gd=ro(),_d=gd.browser.name===`ie`&&gd.browser.majorVersion===11,vd={ERROR:`error`},yd=function(e){W(t,e);function t(){var t=e.call(this)||this;return t._forceDimension=null,t._pixelCanvas=null,t._pixelContext=null,t}var n=t.prototype;return n.render=function(e){var t=e.gl,n=e.shaderProgram,r=e.indexBuffer,i=e.mvMatrix,a=e.pMatrix;t.uniformMatrix4fv(n.pMatrixUniform,!1,a),t.uniformMatrix4fv(n.mvMatrixUniform,!1,i),r&&t.drawElements(t.TRIANGLES,r.numItems,t.UNSIGNED_SHORT,0)}
2,n.getDimension=function(e){return{width:e.naturalWidth||e.videoWidth,height:e.naturalHeight||e.videoHeight}},n.updateShaderData=function(e){},n._initPixelSource=function(e,t){if(t===void 0&&(t=null),_d&&e instanceof HTMLVideoElement||t){var n=t||this.getDimension(e),r=n.width,i=n.height;this._pixelCanvas=document.createElement(`canvas`),this._pixelCanvas.width=r,this._pixelCanvas.height=i,this._pixelContext=this._pixelCanvas.getContext(`2d`)}this._forceDimension=t},n._getPixelSource=function(e){if(!this._pixelCanvas)return e;var t=this.getDimension(e),n=this._forceDimension||t;return this._pixelCanvas.width!==n.width&&(this._pixelCanvas.width=n.width),this._pixelCanvas.height!==n.height&&(this._pixelCanvas.height=n.height),this._forceDimension?this._pixelContext.drawImage(e,0,0,t.width,t.height,0,0,n.width,n.height):this._pixelContext.drawImage(e,0,0),this._pixelCanvas},n._extractTileConfig=function(e){var t=Array.isArray(e.tileConfig)?e.tileConfig:Array.apply(void 0,Jl([,,,,,,])).map(function(){return e.tileConfig});return t=t.map(function(e){return G({flipHorizontal:!1,rotation:0},e)}),t},n._triggerError=function(e){console.error(`Renderer Error:`,e),this.trigger(new L(vd.ERROR,{message:typeof e==`string`?e:e.message}))},t.EVENTS=vd,t}(I),bd=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}var n=t.prototype;return t.extractOrder=function(e){return e.order||`RLUDBF`},n.getVertexPositionData=function(){return t._VERTEX_POSITION_DATA=t._VERTEX_POSITION_DATA===null?[1,-1,1,-1,-1,1,-1,1,1,1,1,1,-1,-1,-1,1,-1,-1,1,1,-1,-1,1,-1,-1,1,-1,1,1,-1,1,1,1,-1,1,1,1,-1,-1,-1,-1,-1,-1,-1,1,1,-1,1,1,-1,-1,1,-1,1,1,1,1,1,1,-1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,1]:t._VERTEX_POSITION_DATA,t._VERTEX_POSITION_DATA},n.getIndexData=function(){if(t._INDEX_DATA)return t._INDEX_DATA;for(var e=[],n=this.getVertexPositionData(),r=0;r<n.length/3;r+=4)e.push(r,r+2,r+1,r,r+3,r+2);return t._INDEX_DATA=e,e},n.getTextureCoordData=function(e){var n=this,r=e.image,i=e.imageConfig,a=`BFUDRL`,o=t.extractOrder(i),s=this.getVertexPositionData(),c=this._extractTileConfig(i),l=3,u=4,d=i.trim;return a.split(``).map(function(e){return c[o.indexOf(e)]}).map(function(e,t){for(var n=Math.floor(e.rotation/90),r=e.flipHorizontal?[0,1,2,3]:[1,0,3,2],i=0;i<Math.abs(n);i++)e.flipHorizontal&&n>0||!e.flipHorizontal&&n<0?r.push(r.shift()):r.unshift(r.pop());for(var a=l*u,o=s.slice(t*a,t*a+a),c=[],d=0;d<u;d++)c[r[d]]=o.splice(0,l);return c}).map(function(e){return n._shrinkCoord({image:r,faceCoords:e,trim:d})}).reduce(function(e,t){return Jl(e,t.reduce(function(e,t){return Jl(e,t)},[]))},[])},n.getVertexShaderSource=function(){return` 3attribute vec3 aVertexPosition; 4attribute vec3 aTextureCoord; 5uniform mat4 uMVMatrix; 6uniform mat4 uPMatrix; 7varying highp vec3 vVertexDirectionVector; 8void main(void) { 9 vVertexDirectionVector = aTextureCoord; 10 gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0
10); 11}`},n.getFragmentShaderSource=function(){return` 12precision highp float; 13uniform samplerCube uSampler; 14varying highp vec3 vVertexDirectionVector; 15void main(void) { 16 gl_FragColor = textureCube(uSampler, vVertexDirectionVector); 17}`},n.updateTexture=function(e,n,r){var i=`RLUDBF`,a=t.extractOrder(r),o={};a.split(``).forEach(function(e,t){o[e]=t});try{if(n instanceof Array)for(var s=0;s<6;s++){var c=o[i[s]];$.texImage2D(e,e.TEXTURE_CUBE_MAP_POSITIVE_X+s,n[c])}else for(var l=this.getMaxCubeMapTextureSize(e,n),s=0;s<6;s++){var c=o[i[s]],u=this.extractTileFromImage(n,c,l);$.texImage2D(e,e.TEXTURE_CUBE_MAP_POSITIVE_X+s,u)}}catch(e){this._triggerError(e)}},n.bindTexture=function(e,t,n,r){e.bindTexture(e.TEXTURE_CUBE_MAP,t),this.updateTexture(e,n,r)},n.getSourceTileSize=function(e){var t=this.getDimension(e),n=t.width,r=t.height,i=n/r;return i===1/6?n:i===6?r:i===2/3?n/2:n/3},n.extractTileFromImage=function(e,t,n){var r=this.getDimension(e).width,i=this.getSourceTileSize(e),a=document.createElement(`canvas`);a.width=n,a.height=n;var o=a.getContext(`2d`),s=r/i,c=i*t%(i*s),l=Math.floor(t/s)*i;return o.drawImage(e,c,l,i,i,0,0,n,n),a},n.getMaxCubeMapTextureSize=function(e,t){var n=ro(),r=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),i=this.getSourceTileSize(t);if(n.browser.name===`ie`&&n.browser.majorVersion===11&&!J.isPowerOfTwo(i))for(var a=1;a<r;a*=2)if(a<i)continue;else{i=a;break}if(n.os.name===`ios`){var o=n.os.majorVersion;o===9&&(i=1024),o===8&&(i=512)}return Math.min(r,i)},n._shrinkCoord=function(e){var t=e.image,n=e.faceCoords,r=1-e.trim*(2/(Array.isArray(t)?this.getDimension(t[0]).width:this.getSourceTileSize(t))),i=[0,1,2].map(function(e){var t=J.sign(n[0][e]);return n.some(function(n){return J.sign(n[e])!==t})}).map(function(e){return e?r:1});return n.map(function(e){return e.map(function(e,t){return e*i[t]})})},t._VERTEX_POSITION_DATA=null,t._INDEX_DATA=null,t}(yd),xd=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}var n=t.prototype;return n.getVertexShaderSource=function(){return` 18attribute vec3 aVertexPosition; 19attribute vec2 aTextureCoord; 20uniform mat4 uMVMatrix; 21uniform mat4 uPMatrix; 22varying highp vec2 vTextureCoord; 23void main(void) { 24 vTextureCoord = aTextureCoord; 25 gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0
25); 26}`},n.getFragmentShaderSource=function(){return` 27#define PI 3.14159265359 28precision highp float; 29varying highp vec2 vTextureCoord; 30uniform sampler2D uSampler; 31uniform bool uIsEAC; 32const vec2 OPERATE_COORDS_RANGE = vec2(-1.0, 1.0); 33const vec2 TEXTURE_COORDS_RANGE = vec2(0.0, 1.0); 34// vector type is used for initializing values instead of array. 35const vec4 TEXTURE_DIVISION_X = vec4(0.0, 1.0 / 3.0, 2.0 / 3.0, 1.0); 36const vec3 TEXTURE_DIVISION_Y = vec3(0.0, 1.0 / 2.0, 1.0); 37const float EAC_CONST = 2.0 / PI; 38float scale(vec2 domainRange, vec2 targetRange, float val) { 39 float unit = 1.0 / (domainRange[1] - domainRange[0]); 40 return targetRange[0] + (targetRange[1] - targetRange[0]) * (val - domainRange[0]) * unit; 41} 42void main(void) { 43 float transformedCoordX; 44 float transformedCoordY; 45 46 if (uIsEAC) { 47 vec2 orgTextureRangeX; 48 vec2 orgTextureRangeY; 49 50 // Apply EAC transform 51 if (vTextureCoord.s >= TEXTURE_DIVISION_X[2]) { 52 orgTextureRangeX = vec2(TEXTURE_DIVISION_X[2], TEXTURE_DIVISION_X[3]); 53 } else if (vTextureCoord.s >= TEXTURE_DIVISION_X[1]) { 54 orgTextureRangeX = vec2(TEXTURE_DIVISION_X[1], TEXTURE_DIVISION_X[2]); 55 } else { 56 orgTextureRangeX = vec2(TEXTURE_DIVISION_X[0], TEXTURE_DIVISION_X[1]); 57 } 58 59 if (vTextureCoord.t >= TEXTURE_DIVISION_Y[1]) { 60 orgTextureRangeY = vec2(TEXTURE_DIVISION_Y[1], TEXTURE_DIVISION_Y[2]); 61 } else { 62 orgTextureRangeY = vec2(TEXTURE_DIVISION_Y[0], TEXTURE_DIVISION_Y[1]); 63 } 64 65 // scaling coors by the coordinates following the range from -1.0 to 1.0. 66 float px = scale(orgTextureRangeX, OPERATE_COORDS_RANGE, vTextureCoord.s); 67 float py = scale(orgTextureRangeY, OPERATE_COORDS_RANGE, vTextureCoord.t); 68 69 float qu = EAC_CONST * atan(px) + 0.5; 70 float qv = EAC_CONST * atan(py) + 0.5; 71 72 // re-scaling coors by original coordinates ranges 73 transformedCoordX = scale(TEXTURE_COORDS_RANGE, orgTextureRangeX, qu); 74 transformedCoordY = scale(TEXTURE_COORDS_RANGE, orgTextureRangeY, qv); 75 } else { 76 // normal cubemap 77 transformedCoordX = vTextureCoord.s; 78 transformedCoordY = vTextureCoord.t; 79 } 80 81 gl_FragColor = texture2D(uSampler, vec2(transformedCoordX, transformedCoordY)); 82}`},n.getVertexPositionData=function(){return this._vertices||=[1,-1,1,-1,-1,1,-1,1,1,1,1,1,-1,-1,-1,1,-1,-1,1,1,-1,-1,1,-1,-1,1,-1,1,1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,-1,-1,-1,-1,-1,1,-1,-1,1,-1,1,1,1,1,1,1,-1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,1],this._vertices},n.getIndexData=function(){var e=this;return function(){for(var t=[],n=0;n<e._vertices.length/3;n+=4)t.push(n,n+1,n+2,n,n+2,n+3);return t}()},n.getTextureCoordData=function(e){for(var t=this,n=e.image,r=e.imageConfig,i=3,a=2,o=this.getDimension(n),s=r.trim,c=r.order||`RLUDFB`,l=[],u=a-1;u>=0;u--)for(var d=0;d<i;d++){var f=[d/i,u/a,(d+1)/i,u/a,(d+1)/i,(u+1)/a,d/i,(u+1)/a];l.push(f)}var p=this._extractTileConfig(r);return l=l.map(function(e){return t._shrinkCoord(e,o,s)}).map(function(e,n){return t._transformCoord(e,p[n])}),`BFUDRL`.split(``).map(function(e){return c.indexOf(e)}).map(function(e){return l[e]}).reduce(function(e,t){return e.concat(t)},[])},n.updateTexture=function(e,t){$.texImage2D(e,e.TEXTURE_2D,this._getPixelSource(t))},n.bindTexture=function(e,t,n){var r=this.getDimension(n),i=r.width,a=r.height,o=Math.max(i,a),s=$.getMaxTextureSize(e);if(o>s){this._triggerError(`Image width(`+i+`) exceeds device limit(`+s+`))`);return}this._initPixelSource(n),e.activeTexture(e.TEXTURE0),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.bindTexture(e.TEXTURE_2D,t),this.updateTexture(e,n)},n._transformCoord=function(e,t){var n=e.slice();return t.flipHorizontal&&(n=this._flipHorizontalCoord(n)),t.rotation&&(n=this._rotateCoord(n,t.rotation)),n},n._shrinkCoord=function(e,t,n){var r=t.width,i=n*(1/t.height),a=1/r*n;return[e[0]+a,e[1]+i,e[2]-a,e[3]+i,e[4]-a,e[5]-i,e[6]+a,e[7]-i]},n._rotateCoord=function(e,t){var n=2,r=Math.floor(t/90)%4;if(r===0)return e;var i,a=[];return r>0?(i=e.splice(0,r*n),a=e.concat(i)):(i=e.splice((4+r)*n,-r*n),a=i.concat(e)),a},n._flipHorizontalCoord=function(e){return[e[2],e[3],e[0],e[1],e[6],e[7],e[4],e[5]]},t}(yd),Sd=60,Cd=60,wd=2,Td=-.5*Math.PI,Ed=[],Dd=[],Od=[],kd,Ad;for(kd=0;kd<=Sd;kd++){var jd=(kd/Sd-.5)*Math.PI,Md=Math.sin(jd),Nd=Math.cos(jd);for(Ad=0;Ad<=Cd;Ad++){var Pd=(Ad/Cd-.5)*2*Math.PI+Td,Fd=Math.sin(Pd),Id=Math.cos(Pd)*Nd,Ld=Md,Rd=Fd*Nd,zd=Ad/Cd,Bd=kd/Sd;if(Ed.push(zd,Bd),Dd.push(wd*Id,wd*Ld,wd*Rd),Ad!==Cd&&kd!==Sd){var Vd=kd*(Cd+1)+Ad,Hd=Vd+Cd+1;Od.push(Vd,Hd,Vd+1,Hd,Hd+1,Vd+1)}}}var Ud=function(e){W(t,e);function t(t){var n=e.call(this)||this;return n._stereoFormat=t,n}var n=t.prototype;return n.render=function(t){var n=t.gl,r=t.shaderProgram,i,a;switch(this._stereoFormat){case sd.TOP_BOTTOM:i=[1,.5,0,0],a=[1,.5,0,.5];break;case sd.LEFT_RIGHT:i=[.5,1,0,0],a=[.5,1,.5,0];break;default:i=[1,1,0,0],a=[1,1,0,0]}var o=n.getUniformLocation(r,`uTexScaleOffset`);n.uniform4fv(o,Jl(i,a)),e.prototype.render.call(this,t)},n.getVertexPositionData=function(){return t._VERTEX_POSITION_DATA},n.getIndexData=function(){return t._INDEX_DATA},n.getTextureCoordData=function(){return t._TEXTURE_COORD_DATA},n.getVertexShaderSource=function(){return` 83attribute vec3 aVertexPosition; 84attribute vec2 aTextureCoord; 85uniform mat4 uMVMatrix; 86uniform mat4 uPMatrix; 87uniform float uEye; 88uniform vec4 uTexScaleOffset[2]; 89varying highp vec2 vTextureCoord; 90void main(void) { 91 vec4 scaleOffset = uTexScaleOffset[int(uEye)]; 92 vTextureCoord = aTextureCoord.xy * scaleOffset.xy + scaleOffset.zw; 93 gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0
93); 94}`},n.getFragmentShaderSource=function(){return` 95precision highp float; 96varying highp vec2 vTextureCoord; 97uniform sampler2D uSampler; 98void main(void) { 99 gl_FragColor = texture2D(uSampler, vTextureCoord.st); 100}`},n.updateTexture=function(e,t){$.texImage2D(e,e.TEXTURE_2D,this._getPixelSource(t))},n.bindTexture=function(e,t,n){var r=this.getDimension(n),i=r.width,a=r.height,o=Math.max(i,a),s=$.getMaxTextureSize(e);if(o>s){this._triggerError(`Image width(`+i+`) exceeds device limit(`+s+`))`);return}this._initPixelSource(n),e.activeTexture(e.TEXTURE0),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.bindTexture(e.TEXTURE_2D,t),this.updateTexture(e,n)},t._VERTEX_POSITION_DATA=Dd,t._TEXTURE_COORD_DATA=Ed,t._INDEX_DATA=Od,t}(yd),Wd=6,Gd=60,Kd=[],qd=[],Jd=[],Yd=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}var n=t.prototype;return n.getVertexPositionData=function(){return t._VERTEX_POSITION_DATA},n.getIndexData=function(){return t._INDEX_DATA},n.getTextureCoordData=function(){return t._TEXTURE_COORD_DATA},n.getVertexShaderSource=function(){return` 101attribute vec3 aVertexPosition; 102attribute vec2 aTextureCoord; 103uniform mat4 uMVMatrix; 104uniform mat4 uPMatrix; 105varying highp vec2 vTextureCoord; 106void main(void) { 107 vTextureCoord = aTextureCoord; 108 gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0
108); 109}`},n.getFragmentShaderSource=function(){return` 110precision highp float; 111varying highp vec2 vTextureCoord; 112uniform sampler2D uSampler; 113void main(void) { 114 gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t)); 115}`},n.updateTexture=function(e,t){$.texImage2D(e,e.TEXTURE_2D,this._getPixelSource(t))},n.bindTexture=function(e,t,n){var r=this.getDimension(n),i=r.width,a=r.height,o=Math.max(i,a),s=$.getMaxTextureSize(e),c;o>s&&(this._triggerError(`Image width(`+i+`) exceeds device texture limit(`+s+`))`),c=i>a?{width:s,height:s*a/i}:{width:s*i/a,height:s}),this._initPixelSource(n,c),e.activeTexture(e.TEXTURE0),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.bindTexture(e.TEXTURE_2D,t),this.updateTexture(e,n)},n.updateShaderData=function(e){var t=e.imageAspectRatio,n=t===void 0?Wd:t,r,i,a,o,s;if(n<1?(o=!0,s=1/n):(o=!1,s=n),s>=Wd){var c=360/s;i=2*Math.PI,a=Math.tan(gc(c/2))}else i=s,a=.5;Kd.length=0,qd.length=0,Jd.length=0;for(var l=[-a,a],u=Math.PI/2+(2*Math.PI-i)/2,d=0,f=l.length;d<f;d++)for(r=0;r<=Gd;r++){var p=u+r/Gd*i,m=Math.cos(p),h=l[d],g=Math.sin(p),_=void 0,v=void 0;if(o?(_=1-d,v=r/Gd):(_=r/Gd,v=d),Kd.push(_,v),qd.push(m,h,g),d===0&&r<Gd){var y=r,b=y+Gd+1;Jd.push(y,b,y+1,b,b+1,y+1)}}},t._VERTEX_POSITION_DATA=qd,t._TEXTURE_COORD_DATA=Kd,t._INDEX_DATA=Jd,t}(yd),Xd=`vrdisplaypresentchange`,Zd=[0,0,.5,1],Qd=[.5,0,.5,1],$d={LEFT:`left`,RIGHT:`right`},ef=function(){function e(){var e=this;this.destroy=function(){var t=e._vrDisplay;e.removeEndCallback(e.destroy),t&&t.isPresenting&&t.exitPresent(),e._clear()},this._frameData=new window.VRFrameData,this._clear()}var t=e.prototype;return Object.defineProperty(t,"context",{get:function(){return this._vrDisplay},enumerable:!1,configurable:!0}),t.canRender=function(){return!!this._vrDisplay},t.beforeRender=function(e){e.bindFramebuffer(e.FRAMEBUFFER,null)},t.afterRender=function(){this._vrDisplay.submitFrame()},t.getEyeParams=function(e){var t=this._vrDisplay,n=e.drawingBufferWidth*.5,r=e.drawingBufferHeight,i=this._frameData;t.getFrameData(i);var a=i.leftViewMatrix,o=i.rightViewMatrix;return Cc(a,a,this._yawOffset),Cc(o,o,this._yawOffset),[{viewport:[0,0,n,r],mvMatrix:a,pMatrix:i.leftProjectionMatrix},{viewport:[n,0,n,r],mvMatrix:o,pMatrix:i.rightProjectionMatrix}]},t.isPresenting=function(){return!!(this._vrDisplay&&this._vrDisplay.isPresenting)},t.addEndCallback=function(e){window.addEventListener(Xd,e)},t.removeEndCallback=function(e){window.removeEventListener(Xd,e)},t.requestPresent=function(e){var t=this;return navigator.getVRDisplays().then(function(n){var r=n.length&&n[0];return r?r.capabilities.canPresent?r.requestPresent([{source:e}]).then(function(){var n=r.getEyeParameters($d.LEFT),i=r.getEyeParameters($d.RIGHT);e.width=Math.max(n.renderWidth,i.renderWidth)*2,e.height=Math.max(n.renderHeight,i.renderHeight),t._setDisplay(r)}):R.reject(Error(`Display lacking capability to present.`)):R.reject(Error(`No displays available.`))})},t.setYawOffset=function(e){this._yawOffset=e},t._setDisplay=function(e){this._vrDisplay=e;var t=e.getLayers();if(t.length){var n=t[0];this._leftBounds=n.leftBounds,this._rightBounds=n.rightBounds}this.addEndCallback(this.destroy)},t._clear=function(){this._vrDisplay=null,this._leftBounds=Zd,this._rightBounds=Qd,this._yawOffset=0},e}(),tf=`local`,nf=function(){function e(e){var t=this;e===void 0&&(e={}),this.destroy=function(){var e=t._xrSession;t.removeEndCallback(t.destroy),e&&e.end().then(function(){},function(){}),t._clear()},this._clear(),this._options=e}var t=e.prototype;return Object.defineProperty(t,"context",{get:function(){return this._xrSession},enumerable:!1,configurable:!0}),t.canRender=function(e){return!!e.getViewerPose(this._xrRefSpace)},t.beforeRender=function(e,t){var n=t.session.renderState.baseLayer;e.bindFramebuffer(e.FRAMEBUFFER,n.framebuffer)},t.afterRender=function(){},t.getEyeParams=function(e,t){var n=this,r=t.session,i=t.getViewerPose(this._xrRefSpace);if(!i)return null;var a=r.renderState.baseLayer;return i.views.map(function(e){var t=a.getViewport(e),r=e.transform.inverse.matrix;return eu&&Sc(r,r,gc(180)),Cc(r,r,n._yawOffset),{viewport:[t.x,t.y,t.width,t.height],mvMatrix:r,pMatrix:e.projectionMatrix}})},t.isPresenting=function(){return this._presenting},t.addEndCallback=function(e){var t;(t=this._xrSession)==null||t.addEventListener(`end`,e)},t.removeEndCallback=function(e){var t;(t=this._xrSession)==null||t.removeEventListener(`end`,e)},t.requestPresent=function(e,t){return Wl(this,void 0,void 0,function(){var e,n,r=this;
115return Gl(this,function(i){switch(i.label){case 0:return e=ud({requiredFeatures:[tf]},this._options),n=t.getContextAttributes(),n&&n.xrCompatible!==!0?[4,t.makeXRCompatible()]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2,navigator.xr.requestSession(`immersive-vr`,e).then(function(e){var n=new window.XRWebGLLayer(e,t);return e.updateRenderState({baseLayer:n}),e.requestReferenceSpace(tf).then(function(t){r._setSession(e,n,t)})})]}})})},t.setYawOffset=function(e){this._yawOffset=e},t._setSession=function(e,t,n){this._xrSession=e,this._xrLayer=t,this._xrRefSpace=n,this._presenting=!0,this.addEndCallback(this.destroy)},t._clear=function(){this._xrSession=null,this._xrLayer=null,this._xrRefSpace=null,this._presenting=!1,this._yawOffset=0,this._options={}},e}(),rf=function(){function e(){var e=this;this._onLoop=function(){var t=[...arguments];e._callback.apply(e,Jl(t)),e._rafId=e._context.requestAnimationFrame(e._onLoop)},this._onLoopNextTick=function(){var t=[...arguments],n=performance.now();e._callback.apply(e,Jl(t));var r=performance.now()-n;e._rafTimer>=0&&(clearTimeout(e._rafTimer),e._rafTimer=-1),r<16?e._rafId=e._context.requestAnimationFrame(e._onLoop):e._rafTimer=window.setTimeout(e._onLoop,0)},this._callback=null,this._context=window,this._rafId=-1,this._rafTimer=-1}var t=e.prototype;return t.setCallback=function(e){this._callback=e},t.setContext=function(e){this._context=e},t.start=function(){var e=this._context,t=this._callback;!e||!t||this._rafId>=0||this._rafTimer>=0||(this._rafId=eu?e.requestAnimationFrame(this._onLoopNextTick):e.requestAnimationFrame(this._onLoop))},t.stop=function(){this._rafId>=0&&this._context.cancelAnimationFrame(this._rafId),this._rafTimer>=0&&clearTimeout(this._rafTimer),this._rafId=-1,this._rafTimer=-1},e}(),af=od,of=au||1;of>2&&(of=2);var sf={BIND_TEXTURE:`bindTexture`,IMAGE_LOADED:`imageLoaded`,ERROR:`error`,RENDERING_CONTEXT_LOST:`renderingContextLost`,RENDERING_CONTEXT_RESTORE:`renderingContextRestore`},cf={INVALID_DEVICE:10,NO_WEBGL:11,FAIL_IMAGE_LOAD:12,RENDERER_ERROR:13},lf=function(e){W(t,e);function t(t,n,r,i,a,o,s,c){var l=e.call(this)||this;return l.textureCoordBuffer=null,l.vertexBuffer=null,l.indexBuffer=null,l.exitVR=function(){var e=l._vr,t=l.context,n=l._animator;e&&(e.removeEndCallback(l.exitVR),e.destroy(),l._vr=null,$l&&l._restoreStyle(),l.updateViewportDimensions(l.width,l.height),l._updateViewport(),t.bindFramebuffer(t.FRAMEBUFFER,null),l._bindBuffers(),l._shouldForceDraw=!0,n.stop(),n.setContext(window),n.setCallback(l._render.bind(l)),n.start())},l._renderStereo=function(e,t){var n,r,i=l._vr,a=l.context,o=i.getEyeParams(a,t);if(o){i.beforeRender(a,t);try{for(var s=Kl([0,1]),c=s.next();!c.done;c=s.next()){var u=c.value,d=o[u];l.mvMatrix=d.mvMatrix,l.pMatrix=d.pMatrix,a.viewport.apply(a,Jl(d.viewport)),a.uniform1f(l.shaderProgram.uEye,u),l._bindBuffers(),l._draw()}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}i.afterRender()}},l._onFirstVRFrame=function(e,t){var n=l._vr,r=l.context,i=l._animator;if(n.canRender(t)){var a=U(0,0,-1),o=n.getEyeParams(r,t)[0],s=vc(_c(),o.mvMatrix),c=vc(_c(),o.pMatrix),u=yc(_c(),s),d=yc(_c(),c),f=Fc(H(),a,d);Fc(f,f,u);var p=J.yawOffsetBetween(f,U(0,0,1));p!==0&&(n.setYawOffset(p),i.setCallback(l._renderStereo))}},l.sphericalConfig=s,l.fieldOfView=s.fieldOfView,l.width=n,l.height=r,l._lastQuaternion=null,l._lastYaw=null,l._lastPitch=null,l._lastFieldOfView=null,l.pMatrix=bc(),l.mvMatrix=bc(),Ec(l.pMatrix,gc(l.fieldOfView),n/r,.1,100),l.textureCoordBuffer=null,l.vertexBuffer=null,l.indexBuffer=null,l.canvas=l._initCanvas(a,o,n,r),l._setDefaultCanvasStyle(),l._wrapper=null,l._wrapperOrigStyle=null,l._renderingContextAttributes=c,l._image=null,l._imageConfig=null,l._imageIsReady=!1,l._shouldForceDraw=!1,l._keepUpdate=!1,l._onContentLoad=l._onContentLoad.bind(l),l._onContentError=l._onContentError.bind(l),l._animator=new rf,l._vr=null,t&&l.setImage({image:t,imageType:s.imageType,isVideo:i,cubemapConfig:s.cubemapConfig}),l}var n=t.prototype;return n.setYawPitchControl=function(e){this._yawPitchControl=e},n.getContent=function(){return this._image},n.setImage=function(e){var t=e.image,n=e.imageType,r=e.isVideo,i=r!==void 0&&r,a=e.cubemapConfig;this._imageIsReady=!1,this._isVideo=i,this._imageConfig=G({order:n===af.CUBEMAP?`RLUDBF`:`RLUDFB`,tileConfig:{flipHorizontal:!1,rotation:0},trim:0},a),this._setImageType(n),this._contentLoader&&this._contentLoader.destroy(),this._contentLoader=new Vl().on(`ready`,this._onContentLoad).on(`error`,this._onContentError),i?(this._image=fd(t),this._contentLoader.check([this._image]),this._keepUpdate=!0):(this._image=dd(t),this._contentLoader.check(Array.isArray(this._image)?this._image:[this._image]),this._keepUpdate=!1)},n.isImageLoaded=function(){return!!this._image&&this._imageIsReady&&(!this._isVideo||this._image.readyState>=2)},n.bindTexture=function(){var e=this;return new R(function(t,n){var r=e._contentLoader;if(!e._image)return n(`Image is not defined`);if(!r)return n(`ImageLoader is not initialized`);r.isReady()?(e._bindTexture(),t()):(r.check(Array.isArray(e._image)?e._image:[e._image]),r.once(`ready`,function(r){r.errorCount>0?n(`Failed to load images.`):(e._bindTexture(),t())}))})},n.attachTo=function(e){this._hasExternalCanvas||(this.detach(),e.appendChild(this.canvas)),this._wrapper=e},n.forceContextLoss=function(){if(this.hasRenderingContext()){var e=this.context.getExtension(`WEBGL_lose_context`);e&&e.loseContext()}},n.detach=function(){!this._hasExternalCanvas&&this.canvas.parentElement&&this.canvas.parentElement.removeChild(this.canvas)},n.destroy=function(){this._contentLoader&&this._contentLoader.destroy(),this._animator.stop(),this.detach(),this.forceContextLoss(),this.off(),this.canvas.removeEventListener(`webglcontextlost`,this._onWebglcontextlost),this.canvas.removeEventListener(`webglcontextrestored`,this._onWebglcontextrestored)},n.hasRenderingContext=function(){var e=this.context;return!(!e||e.isContextLost()||!e.getProgramParameter(this.shaderProgram,e.LINK_STATUS))},n.updateFieldOfView=function(e){this.fieldOfView=e,this._updateViewport()},n.updateViewportDimensions=function(e,t){var n=!1;this.width=e,this.height=t;var r=e*of,i=t*of;r!==this.canvas.width&&(this.canvas.width=r,n=!0),i!==this.canvas.height&&(this.canvas.height=i,n=!0),n&&(this._updateViewport(),this._shouldForceDraw=!0)},n.keepUpdate=function(e){e&&this.isImageLoaded()===!1&&(this._shouldForceDraw=!0),this._keepUpdate=e},n.startRender=function(){this._animator.setCallback(this._render.bind(this)),this._animator.start()},n.stopRender=function(){this._animator.stop()},n.renderWithQuaternion=function(e,t){this.isImageLoaded()&&(this._keepUpdate===!1&&this._lastQuaternion&&tl(this._lastQuaternion,e)&&this.fieldOfView&&this.fieldOfView===t&&this._shouldForceDraw===!1||(t!==void 0&&t!==this.fieldOfView&&this.updateFieldOfView(t),this.mvMatrix=wc(bc(),e),this._draw(),this._lastQuaternion=Zc(e),this._shouldForceDraw&&=!1))},n.renderWithYawPitch=function(e,t,n){this.isImageLoaded()&&(this._keepUpdate===!1&&this._lastYaw!==null&&this._lastYaw===e&&this._lastPitch!==null&&this._lastPitch===t&&this.fieldOfView&&this.fieldOfView===n&&this._shouldForceDraw===!1||(n!==void 0&&n!==this.fieldOfView&&this.updateFieldOfView(n),xc(this.mvMatrix),Sc(this.mvMatrix,this.mvMatrix,-gc(t)),Cc(this.mvMatrix,this.mvMatrix,-gc(e)),this._draw(),this._lastYaw=e,this._lastPitch=t,this._shouldForceDraw&&=!1))},n.getProjectionRenderer=function(){return this._renderer},n.enterVR=function(e){var t=this._vr;return!cu&&!navigator.getVRDisplays?R.reject(`VR is not available on this browser.`):t&&t.isPresenting()?R.resolve(`VR already enabled.`):this._requestPresent(e)},n._setImageType=function(e){var t=this;if(!(!e||this._imageType===e)){switch(this._imageType=e,this._isCubeMap=e===af.CUBEMAP,this._renderer&&this._renderer.off(),e){case af.CUBEMAP:this._renderer=new bd;break;case af.CUBESTRIP:this._renderer=new xd;break;case af.PANORAMA:this._renderer=new Yd;break;case af.STEREOSCOPIC_EQUI:this._renderer=new Ud(this.sphericalConfig.stereoFormat);break;default:this._renderer=new Ud(sd.NONE)}this._renderer.on(yd.EVENTS.ERROR,function(e){t.trigger(new L(sf.ERROR,{type:cf.RENDERER_ERROR,message:e.message}))}),this._initWebGL()}}
115,n._initCanvas=function(e,t,n,r){var i=e.querySelector(`.`+t),a=i||this._createCanvas(t);return this._hasExternalCanvas=!!i,a.width=n,a.height=r,this._onWebglcontextlost=this._onWebglcontextlost.bind(this),this._onWebglcontextrestored=this._onWebglcontextrestored.bind(this),a.addEventListener(`webglcontextlost`,this._onWebglcontextlost),a.addEventListener(`webglcontextrestored`,this._onWebglcontextrestored),a},n._createCanvas=function(e){var t=document.createElement(`canvas`);return t.className=e,t},n._setDefaultCanvasStyle=function(){var e=this.canvas;e.style.bottom=`0`,e.style.left=`0`,e.style.right=`0`,e.style.top=`0`,e.style.margin=`auto`,e.style.maxHeight=`100%`,e.style.maxWidth=`100%`,e.style.outline=`none`,e.style.position=`absolute`},n._onContentError=function(){return this._imageIsReady=!1,this._image=null,this.trigger(new L(sf.ERROR,{type:cf.FAIL_IMAGE_LOAD,message:`failed to load image`})),!1},n._triggerContentLoad=function(){this.trigger(new L(sf.IMAGE_LOADED,{content:this._image,isVideo:this._isVideo,projectionType:this._imageType}))},n._onContentLoad=function(e){e.errorCount>0||(this._imageIsReady=!0,this._triggerContentLoad())},n._initShaderProgram=function(){var e=this.context;this.shaderProgram&&=(e.deleteProgram(this.shaderProgram),null);var t=this._renderer,n=t.getVertexShaderSource(),r=t.getFragmentShaderSource(),i=$.createShader(e,e.VERTEX_SHADER,n),a=$.createShader(e,e.FRAGMENT_SHADER,r),o=$.createProgram(e,i,a);if(!o)throw Error(`Failed to initialize shaders: `+$.getErrorNameFromWebGLErrorCode(e.getError()));e.useProgram(o),o.vertexPositionAttribute=e.getAttribLocation(o,`aVertexPosition`),o.pMatrixUniform=e.getUniformLocation(o,`uPMatrix`),o.mvMatrixUniform=e.getUniformLocation(o,`uMVMatrix`),o.samplerUniform=e.getUniformLocation(o,`uSampler`),o.textureCoordAttribute=e.getAttribLocation(o,`aTextureCoord`),o.uEye=e.getUniformLocation(o,`uEye`),e.enableVertexAttribArray(o.vertexPositionAttribute),e.enableVertexAttribArray(o.textureCoordAttribute),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT),e.uniform1i(o.samplerUniform,0),this.shaderProgram=o},n._onWebglcontextlost=function(e){e.preventDefault(),this.trigger(new L(sf.RENDERING_CONTEXT_LOST))},n._onWebglcontextrestored=function(){this._initWebGL(),this.trigger(new L(sf.RENDERING_CONTEXT_RESTORE))},n._updateViewport=function(){Ec(this.pMatrix,gc(this.fieldOfView),this.canvas.width/this.canvas.height,.1,100),this.context.viewport(0,0,this.context.drawingBufferWidth,this.context.drawingBufferHeight)},n._initWebGL=function(){var e;try{this._initRenderingContext(),e=this.context,this.updateViewportDimensions(this.width,this.height),this._initShaderProgram()}catch(e){this.trigger(new L(sf.ERROR,{type:cf.NO_WEBGL,message:`no webgl support`})),this.destroy(),console.error(e);return}e.clearColor(0,0,0,0);var t=this._isCubeMap?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D;this.texture&&e.deleteTexture(this.texture),this.texture=$.createTexture(e,t),this._imageType===af.CUBESTRIP&&e.enable(e.CULL_FACE)},n._initRenderingContext=function(){if(!this.hasRenderingContext()){if(!window.WebGLRenderingContext)throw Error(`WebGLRenderingContext not available.`);if(this.context=$.getWebglContext(this.canvas,this._renderingContextAttributes),!this.context)throw Error(`Failed to acquire 3D rendering context`)}},n._initBuffers=function(){var e=this._image,t=this._renderer.getVertexPositionData(),n=this._renderer.getIndexData(),r=this._renderer.getTextureCoordData({image:e,imageConfig:this._imageConfig}),i=this.context;this.vertexBuffer=$.initBuffer(i,i.ARRAY_BUFFER,new Float32Array(t),3,this.shaderProgram.vertexPositionAttribute),this.indexBuffer=$.initBuffer(i,i.ELEMENT_ARRAY_BUFFER,new Uint16Array(n),1),this.textureCoordBuffer=$.initBuffer(i,i.ARRAY_BUFFER,new Float32Array(r),this._isCubeMap?3:2,this.shaderProgram.textureCoordAttribute),this._bindBuffers()},n._bindTexture=function(){if(this._imageType===af.CUBESTRIP){var e=this._renderer.getDimension(this._image),t=e.width,n=e.height,r=t&&n&&t/n!==1.5?1:0;this.context.uniform1f(this.context.getUniformLocation(this.shaderProgram,`uIsEAC`),r)}else if(this._imageType===af.PANORAMA){var i=this._renderer.getDimension(this._image),t=i.width,n=i.height,a=t&&n&&t/n;this._renderer.updateShaderData({imageAspectRatio:a})}this._initBuffers(),this._renderer.bindTexture(this.context,this.texture,this._image,this._imageConfig),this._shouldForceDraw=!0,this.trigger(new L(sf.BIND_TEXTURE))},n._updateTexture=function(){this._renderer.updateTexture(this.context,this._image,this._imageConfig)},n._render=function(){var e=this._yawPitchControl,t=e.getFov();if(e.shouldRenderWithQuaternion()){var n=e.getQuaternion();this.renderWithQuaternion(n,t)}else{var r=e.getYawPitch();this.renderWithYawPitch(r.yaw,r.pitch,t)}},n._bindBuffers=function(){var e=this.context,t=this.shaderProgram,n=this.vertexBuffer,r=this.textureCoordBuffer;e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(t.vertexPositionAttribute),e.vertexAttribPointer(t.vertexPositionAttribute,n.itemSize,e.FLOAT,!1,0,0),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indexBuffer),e.bindBuffer(e.ARRAY_BUFFER,r),e.enableVertexAttribArray(t.textureCoordAttribute),e.vertexAttribPointer(t.textureCoordAttribute,r.itemSize,e.FLOAT,!1,0,0)},n._draw=function(){this._isVideo&&this._keepUpdate&&this._updateTexture(),this._renderer.render({gl:this.context,shaderProgram:this.shaderProgram,indexBuffer:this.indexBuffer,mvMatrix:this.mvMatrix,pMatrix:this.pMatrix})},n._requestPresent=function(e){var t=this,n=this.context,r=this.canvas,i=this._animator;this._vr=cu?new nf(e):new ef;var a=this._vr;return i.stop(),new R(function(e,o){a.requestPresent(r,n).then(function(){a.addEndCallback(t.exitVR),i.setContext(a.context),i.setCallback(t._onFirstVRFrame),$l&&t._setWrapperFullscreen(),t._shouldForceDraw=!0,i.start(),e(`success`)}).catch(function(e){a.destroy(),t._vr=null,i.start(),o(e)})})},n._setWrapperFullscreen=function(){var e=this._wrapper;if(e){this._wrapperOrigStyle=e.getAttribute(`style`);var t=e.style;t.width=`100vw`,t.height=`100vh`,t.position=`fixed`,t.left=`0`,t.top=`0`,t.zIndex=`9999`}},n._restoreStyle=function(){var e=this._wrapper,t=this.canvas;e&&(this._wrapperOrigStyle?e.setAttribute(`style`,this._wrapperOrigStyle):e.removeAttribute(`style`),this._wrapperOrigStyle=null,t.removeAttribute(`style`),this._setDefaultCanvasStyle())},t.EVENTS=sf,t.ERROR_TYPE=cf,t}(I),uf=function(e){W(t,e);function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;if(!$.isWebGLAvailable())return setTimeout(function(){i.trigger(new L(Q.ERROR,{type:ad.NO_WEBGL,message:`no webgl support`}))},0),i;if(!$.isStableWebGL())return setTimeout(function(){i.trigger(new L(Q.ERROR,{type:ad.INVALID_DEVICE,message:`blacklisted browser`}))},0),i;if(r.image&&r.video)return setTimeout(function(){i.trigger(new L(Q.ERROR,{type:ad.INVALID_RESOURCE,message:`Specifying multi resouces(both image and video) is not val
115id.`}))},0),i;lu(),i._container=n,i._image=r.image||r.video,i._isVideo=!!r.video,i._projectionType=r.projectionType||od.EQUIRECTANGULAR,i._cubemapConfig=G({order:i._projectionType===od.CUBEMAP?`RLUDBF`:`RLUDFB`,tileConfig:{flipHorizontal:!1,rotation:0},trim:0},r.cubemapConfig),i._stereoFormat=r.stereoFormat||sd.TOP_BOTTOM,i._width=r.width||parseInt(window.getComputedStyle(n).width,10),i._height=r.height||parseInt(window.getComputedStyle(n).height,10),i._yaw=r.yaw||0,i._pitch=r.pitch||0,i._fov=r.fov||65,i._gyroMode=r.gyroMode||Iu.YAWPITCH,i._quaternion=null,i._aspectRatio=i._height===0?1:i._width/i._height,i._canvasClass=r.canvasClass||`view360-canvas`;var a=r.fovRange||[30,110],o=t._isValidTouchDirection(r.touchDirection)?r.touchDirection:id.TOUCH_DIRECTION_ALL,s=G(G({},r),{element:n,yaw:i._yaw,pitch:i._pitch,fov:i._fov,gyroMode:i._gyroMode,fovRange:a,aspectRatio:i._aspectRatio,touchDirection:o});return i._isReady=!1,i._initYawPitchControl(s),i._initRenderer(i._yaw,i._pitch,i._fov,i._projectionType,i._cubemapConfig),i}var n=t.prototype;return t.isSupported=function(){return $.isWebGLAvailable()&&$.isStableWebGL()},t.isWebGLAvailable=function(){return $.isWebGLAvailable()},t.isGyroSensorAvailable=function(e){if(!iu&&e){e(!1);return}var n;R.race([function(){return new R(function(e){n=function(t){e(t.rotationRate.alpha!=null)},window.addEventListener(`devicemotion`,n)})}(),function(){return new R(function(e){setTimeout(function(){return e(!1)},1e3)})}()]).then(function(r){window.removeEventListener(`devicemotion`,n),e&&e(r),t.isGyroSensorAvailable=function(e){return e&&e(r),r}})},t._isValidTouchDirection=function(e){return e===t.TOUCH_DIRECTION.NONE||e===t.TOUCH_DIRECTION.YAW||e===t.TOUCH_DIRECTION.PITCH||e===t.TOUCH_DIRECTION.ALL},n.getVideo=function(){return this._isVideo?this._photoSphereRenderer.getContent():null},n.setVideo=function(e,t){return t===void 0&&(t={}),e&&this.setImage(e,{projectionType:t.projectionType,isVideo:!0,cubemapConfig:t.cubemapConfig,stereoFormat:t.stereoFormat}),this},n.getImage=function(){return this._isVideo?null:this._photoSphereRenderer.getContent()},n.setImage=function(e,t){t===void 0&&(t={});var n=G({order:`RLUDBF`,tileConfig:{flipHorizontal:!1,rotation:0},trim:0}
115,t.cubemapConfig),r=t.stereoFormat||sd.TOP_BOTTOM,i=!!t.isVideo;return this._image&&this._isVideo!==i?(console.warn(`PanoViewer is not currently supporting content type changes. (Image <--> Video)`),this):(e&&(this._deactivate(),this._image=e,this._isVideo=i,this._projectionType=t.projectionType||od.EQUIRECTANGULAR,this._cubemapConfig=n,this._stereoFormat=r,this._initRenderer(this._yaw,this._pitch,this._fov,this._projectionType,this._cubemapConfig)),this)},n.keepUpdate=function(e){return this._photoSphereRenderer.keepUpdate(e),this},n.getProjectionType=function(){return this._projectionType},n.enableSensor=function(){return new R(function(e,t){iu&&typeof iu.requestPermission==`function`?iu.requestPermission().then(function(n){n===`granted`?e():t(Error(`permission denied`))}).catch(function(e){t(e)}):e()})},n.disableSensor=function(){return this},n.enterVR=function(e){var t=this;return e===void 0&&(e={}),this._isReady?new R(function(n,r){t.enableSensor().then(function(){return t._photoSphereRenderer.enterVR(e)}).then(function(e){return n(e)}).catch(function(e){return r(e)})}):R.reject(Error(`PanoViewer is not ready to show image.`))},n.exitVR=function(){return this._photoSphereRenderer.exitVR(),this},n.setUseZoom=function(e){return typeof e==`boolean`&&this._yawPitchControl.option(`useZoom`,e),this},n.setUseKeyboard=function(e){return this._yawPitchControl.option(`useKeyboard`,e),this},n.setGyroMode=function(e){return this._yawPitchControl.option(`gyroMode`,e),this},n.setFovRange=function(e){return this._yawPitchControl.option(`fovRange`,e),this},n.getFovRange=function(){return this._yawPitchControl.option(`fovRange`)},n.updateViewportDimensions=function(e){if(e===void 0&&(e={}),!this._isReady)return this;var t;(e.width===void 0||e.height===void 0)&&(t=window.getComputedStyle(this._container));var n=e.width||parseInt(t.width,10),r=e.height||parseInt(t.height,10);return n===this._width&&r===this._height?this:(this._width=n,this._height=r,this._aspectRatio=n/r,this._photoSphereRenderer.updateViewportDimensions(n,r),this._yawPitchControl.option(`aspectRatio`,this._aspectRatio),this._yawPitchControl.updatePanScale({height:r}),this.lookAt({},0),this)},n.getFov=function(){return this._fov},n.getYaw=function(){return this._yaw},n.getPitch=function(){return this._pitch},n.getYawRange=function(){return this._yawPitchControl.option(`yawRange`)},n.getPitchRange=function(){return this._yawPitchControl.option(`pitchRange`)},n.setYawRange=function(e){return this._yawPitchControl.option(`yawRange`,e),this},n.setPitchRange=function(e){return this._yawPitchControl.option(`pitchRange`,e),this},n.setShowPolePoint=function(e){return this._yawPitchControl.option(`showPolePoint`,e),this},n.lookAt=function(e,t){if(t===void 0&&(t=0),!this._isReady)return this;var n=e.yaw===void 0?this._yaw:e.yaw,r=e.pitch===void 0?this._pitch:e.pitch,i=this._yawPitchControl.option(`pitchRange`),a=i[1]-i[0],o=e.fov===void 0?this._fov:e.fov;return a<o&&(o=a),this._yawPitchControl.lookAt({yaw:n,pitch:r,fov:o},t),t===0&&this._photoSphereRenderer.renderWithYawPitch(n,r,o),this},n.setTouchDirection=function(e){return t._isValidTouchDirection(e)&&this._yawPitchControl.option(`touchDirection`,e),this},n.getTouchDirection=function(){return this._yawPitchControl.option(`touchDirection`)},n.destroy=function(){return this._deactivate(),this._yawPitchControl&&=(this._yawPitchControl.destroy(),null),this},n._initRenderer=function(e,t,n,r,i){var a=this;this._photoSphereRenderer=new lf(this._image,this._width,this._height,this._isVideo,this._container,this._canvasClass,{initialYaw:e,initialPitch:t,fieldOfView:n,imageType:r,cubemapConfig:i,stereoFormat:this._stereoFormat}),this._photoSphereRenderer.setYawPitchControl(this._yawPitchControl),this._bindRendererHandler(),this._photoSphereRenderer.bindTexture().then(function(){return a._activate()}).catch(function(){a.trigger(new L(Q.ERROR,{type:ad.FAIL_BIND_TEXTURE,message:`failed to bind texture`}))})},n._updateYawPitchIfNeeded=function(){if(this._projectionType===t.ProjectionType.PANORAMA){var e=this._photoSphereRenderer.getContent(),n=e.naturalWi
115dth/e.naturalHeight,r=void 0,i=void 0;n<1&&(n=1/n),n<6?(r=J.toDegree(n),i=J.toDegree(Math.atan(.5))*2):(r=360,i=360/n);var a=this._yawPitchControl.option(`fovRange`)[0];this._yawPitchControl.option({fov:i,yawRange:[-r/2,r/2],pitchRange:[-i/2,i/2],fovRange:[a,i]}),this.lookAt({fov:i})}},n._bindRendererHandler=function(){var e=this;this._photoSphereRenderer.on(lf.EVENTS.ERROR,function(t){e.trigger(new L(Q.ERROR,t))}),this._photoSphereRenderer.on(lf.EVENTS.RENDERING_CONTEXT_LOST,function(){e._deactivate(),e.trigger(new L(Q.ERROR,{type:ad.RENDERING_CONTEXT_LOST,message:`webgl rendering context lost`}))})},n._initYawPitchControl=function(e){var t=this;this._yawPitchControl=new id(e),this._yawPitchControl.on(Q.ANIMATION_END,function(e){t.trigger(new L(Q.ANIMATION_END,e))}),this._yawPitchControl.on(`change`,function(e){t._yaw=e.yaw,t._pitch=e.pitch,t._fov=e.fov,t._quaternion=e.quaternion,t.trigger(new L(Q.VIEW_CHANGE,{yaw:e.yaw,pitch:e.pitch,fov:e.fov,quaternion:e.quaternion,isTrusted:e.isTrusted}))})},n._activate=function(){this._photoSphereRenderer.attachTo(this._container),this._yawPitchControl.enable(),this.updateViewportDimensions(),this._isReady=!0,this._updateYawPitchIfNeeded(),this.trigger(new L(Q.READY)),this._photoSphereRenderer.startRender()},n._deactivate=function(){var e=this.getVideo();e&&e.pause(),this._isReady&&=(this._photoSphereRenderer.stopRender(),this._yawPitchControl.disable(),!1),this._photoSphereRenderer&&=(this._photoSphereRenderer.destroy(),null)},t.VERSION=Hl,t.ERROR_TYPE=ad,t.EVENTS=Q,t.PROJECTION_TYPE=od,t.GYRO_MODE=Iu,t.ProjectionType=od,t.STEREO_FORMAT=sd,t.TOUCH_DIRECTION={NONE:id.TOUCH_DIRECTION_NONE,YAW:id.TOUCH_DIRECTION_YAW,PITCH:id.TOUCH_DIRECTION_PITCH,ALL:id.TOUCH_DIRECTION_ALL},t}(I),df={imageUrl:!0,rowCount:!0,colCount:!0,width:!0,height:!0,autoHeight:!0,colRow:!0,scale:!0,frameIndex:!0,wrapperClass:!0,imageClass:!0},ff={LOAD:`load`,IMAGE_ERROR:`imageError`,CHANGE:`change`,ANIMATION_END:`animationEnd`},pf=`view360-wrapper`,mf=`view360-image`,hf=function(e){W(t,e);function t(n,r){r===void 0&&(r={});var i=e.call(this)||this,a=r||{};i._el=n,i._rowCount=a.rowCount||1,i._colCount=a.colCount||1,i._totalCount=i._rowCount*i._colCount,i._width=a.width||`auto`,i._height=a.height||`auto`,i._autoHeight=a.autoHeight==null||a.autoHeight,i._colRow=[0,0],a.colRow?i._colRow=a.colRow:a.frameIndex&&i.setFrameIndex(a.frameIndex),i._el.style.width=t._getSizeString(i._width),i._el.style.height=t._getSizeString(i._height);var o=a.wrapperClass||`view360-wrapper`,s=a.imageClass||`view360-image`;if(!a.imageUrl)return setTimeout(function(){i.trigger(new L(`imageError`,{imageUrl:a.imageUrl}))},0),i;var c=n.querySelector(`.`+s),l=n.querySelector(`.`+o);l&&c&&(c.style.display=`none`),i._image=c||new Image;var u=i._image;return u.onload=function(){l&&c&&(c.style.display=``),i._bg=t._createBgDiv(l,u,i._rowCount,i._colCount,i._autoHeight),i._el.appendChild(i._bg),i.setColRow(i._colRow[0],i._colRow[1]),i.trigger(new L(`load`,{target:i._el,bgElement:i._bg})),i._autoPlayReservedInfo&&=(i.play(i._autoPlayReservedInfo),null)},u.onerror=function(){i.trigger(new L(`imageError`,{imageUrl:a.imageUrl}))},u.src=a.imageUrl,i}var n=t.prototype;return t._createBgDiv=function(e,t,n,r,i){var a=e||document.createElement(`div`);a.style.position=`relative`,a.style.overflow=`hidden`,t.style.position=`absolute`,t.style.width=r*100+`%`,t.style.height=n*100+`%`,t.ondragstart=function(){return!1},su&&(t.style.willChange=`transform`),a.appendChild(t);var o=t.naturalWidth/r,s=t.naturalHeight/n;if(i){var c=s/o;a.style.paddingBottom=c*100+`%`}else a.style.height=`100%`;return a},t._getSizeString=function(e){return typeof e==`number`?e+`px`:e},n.setFrameIndex=function(e){var t=this.toColRow(e);this.setColRow(t[0],t[1])},n.getFrameIndex=function(){return this._colRow[1]*this._colCount+this._colRow[0]},n.setColRow=function(e,t){t>this._rowCount-1||e>this._colCount-1||(this._image&&ou&&(this._image.style[ou]=`translate(`+-(e/this._colCount*100)+`%, `+-(t/this._rowCount*100)+`%)`),this._colRow=[e,t])},n.getColRow=function(){return this._colRow},n.stop=function(){this._autoPlayTimer&&=(clearInterval(this._autoPlayTimer),-1)},n.play=function(e){var t=this,n=e===void 0?{interval:1e3/this._totalCount,playCount:0}:e,r=n.interval,i=n.playCount;if(!this._bg){this._autoPlayReservedInfo={interval:r,playCount:i};return}this._autoPlayTimer&&=(clearInterval(this._autoPlayTimer),-1);var a=this.getFrameIndex(),o=0,s=0;this._autoPlayTimer=window.setInterval(function(){a%=t._totalCount;var e=t.toColRow(a);t.setColRow(e[0],e[1]),a++,++s===t._totalCount&&(s=0,o++),i>0&&o===i&&clearInterval(t._autoPlayTimer)},r)},n.toColRow=function(e){var t=this._colCount,n=this._rowCount;return e<0?[0,0]:e>=this._totalCount?[t-1,n-1]:[e%t,Math.floor(e/t)]},t.VERSION=Hl,t}(I),gf=.21,_f=function(e){W(t,e);function t(t,n){n===void 0&&(n={});var r=e.call(this)||this;r._el=t;var i=G({},n),a=i.colCount||1,o=i.rowCount||1;return r._scale=i.scale||1,r._panScale=r._scale*gf,r._frameCount=a*o,r._sprites=new hf(t,i).on({load:function(e){r.trigger(new L(`load`,e))},imageError:function(e){r.trigger(new L(`imageError`,{imageUrl:e.imageUrl}))}}),r._panInput=new Zs(r._el,{scale:[r._panScale,r._panScale]}),r._axes=new Ys({angle:{range:[0,359],circular:!0}}).on({change:function(e){var t=Math.floor(e.pos.angle/(360/r._frameCount)),n=r._frameCount-t-1;r._sprites.setFrameIndex(n),r.trigger(new L(`change`,{frameIndex:n,colRow:r._sprites.getColRow(),angle:e.pos.angle}))},animationEnd:function(e){r.trigger(new L(`animationEnd`,{isTrusted:e.isTrusted}))}}),r._axes.connect(`angle`,r._panInput),r}var n=t.prototype;return n.setScale=function(e){return isNaN(e)||e<0?this:(this._scale=e,this._panScale=e*gf,this._panInput.options.scale=[this._panScale,this._panScale],this)},n.getScale=function(){return this._scale},n.spinBy=function(e,t){return e===void 0&&(e=0),t===void 0&&(t={duration:0}),this._axes.setBy({angle:e},t.duration),this},n.spinTo=function(e,t){return e===void 0&&(e=0),t===void 0&&(t={duration:0}),this._axes.setTo({angle:e},t.duration),this},n.getAngle=function(){return this._axes.get().angle||0},t.VERSION=Hl,t}(I),vf=function(e,t,n){[I.prototype,e.prototype].forEach(function(e){Object.getOwnPropertyNames(e).filter(function(e){return!t[e]&&!e.startsWith(`_`)&&e!==`constructor`}
115).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);if(i.value)Object.defineProperty(t,r,{value:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=i.value).call.apply(e,Jl([this[n]],t))}});else{var a={};i.get&&(a.get=function(){return i.get?.call(this[n])}),i.set&&(a.set=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=i.set)?.call.apply(e,Jl([this[n]],t))}),Object.defineProperty(t,r,a)}})})},yf=function(e,t){vf(uf,e,t)},bf=function(e,t){vf(_f,e,t)},xf=(function(e,t,n){Sf(t.image,n.image)?e.setImage(t.image,{projectionType:t.projectionType,cubemapConfig:t.cubemapConfig,stereoFormat:t.stereoFormat,isVideo:!1}):Sf(t.video,n.video)&&e.setVideo(t.video,{projectionType:t.projectionType,cubemapConfig:t.cubemapConfig,stereoFormat:t.stereoFormat}),[`fovRange`,`gyroMode`,`pitchRange`,`showPolePoint`,`touchDirection`,`useKeyboard`,`useZoom`,`yawRange`].forEach(function(r){Cf(e,r,t,n)})}),Sf=function(e,t){return e!=null&&e!==t},Cf=function(e,t,n,r){Sf(n[t],r[t])&&e[`set`+t[0].toUpperCase()+t.slice(1)](n[t])},wf=function(e){return Object.keys(e).reduce(function(t,n){return e[n]!=null&&(t[n]=e[n]),t},{})},Tf=function(e){var t;do{var n=new Uint32Array(1);crypto.getRandomValues(n),t=n[0]}while(t===e);return t},Ef=function(){return Ef=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ef.apply(this,arguments)},Df=Object.keys(cd).reduce(function(e,t){return e[t]=null,e},{}),Of=Pe({props:Ef(Ef({},Df),{tag:{type:String,required:!1,default:`div`}}),data:function(){return{canvasKey:-1}},mounted:function(){var e=this,t=wf(this.$props);this.updateEmitter=new I,this.vanillaPanoViewer=new uf(this.$refs.container,t),yf(this,`vanillaPanoViewer`),this.prevProps=t;var n=this.vanillaPanoViewer;Object.keys(Q).map(function(e){return Q[e]}).forEach(function(t){n.on(t,function(n){n.currentTarget=e,e.$emit(t.replace(/([A-Z])/g,`-$1`).toLowerCase(),n)})})},beforeDestroy:function(){this.vanillaPanoViewer?.destroy()},updated:function(){this.updateEmitter.trigger(`updated`)},watch:{$props:{handler:function(){var e=this.vanillaPanoViewer;if(e){var t=wf(this.$props),n=this.prevProps;t.image!=null&&t.image!==n.image||t.video!=null&&t.video!==n.video?(this.canvasKey=Tf(this.canvasKey),this.$forceUpdate(),this.updateEmitter.once(`updated`,function(){xf(e,t,n)})):xf(e,t,n),this.prevProps=t}},deep:!0,immediate:!0}},render:function(){var e,t=this.canvasClass??ld;return j(this.tag,{ref:`container`},[j(`canvas`,{class:t,key:this.canvasKey}),(e=this.$slots).default?.call(e)])}}),kf=Object.keys(df).reduce(function(e,t){return e[t]=null,e},{}),Af=Pe({props:Ef(Ef({},kf),{tag:{type:String,required:!1,default:`div`}}),data:function(){return{}},mounted:function(){var e=this,t=wf(this.$props);this.vanillaSpinViewer=new _f(this.$refs.container,t),bf(this,`vanillaSpinViewer`);var n=this.vanillaSpinViewer;Object.keys(ff).map(function(e){return ff[e]}).forEach(function(t){n.on(t,function(n){n.currentTarget=e,e.$emit(t.replace(/([A-Z])/g,`-$1`).toLowerCase(),n)})})},watch:{scale:function(e){var t;(t=this.vanillaSpinViewer)==null||t.setScale(e)}},render:function(){var e,t=this.wrapperClass??pf,n=this.imageClass??mf;return j(this.tag,{ref:`container`},[j(`div`,{class:t},[j(`img`,{class:n})]),(e=this.$slots).default?.call(e)])}}),jf={install:function(e){e.component(`PanoViewer`,Of),e.component(`SpinViewer`,Af)},PanoViewer:Of,SpinViewer:Af},Mf=[Xr,li,xi,Si,Ci,wi,Ei,Di,Oi,Ai,Mi,Ni,va,ya,r(e=>{e.vueApp.use(jf)})];function Nf(e={}){let t=ke(``),n=ke(e.politeness||`polite`),r=Ke();function i(e=``,r=`polite`){t.value=e,n.value=r}function a(e){i(e,`polite`)}function o(e){i(e,`assertive`)}function s(){i(document?.title?.trim(),n.value)}function c(){r?.hooks?.removeHook(`dom:rendered`,s)}return s(),r?.hooks?.hook(`dom:rendered`,s),{_cleanup:c,message:t,politeness:n,set:i,polite:a,assertive:o}}function Pf(e={}){let t=a(),n=t._routeAnnouncer||=Nf(e);return e.politeness&&e.politeness!==n.politeness.value&&(n.politeness.value=e.politeness),ge()&&(t._routeAnnouncerDeps||=0,t._routeAnnouncerDeps++,le(()=>{t._routeAnnouncerDeps--,t._routeAnnouncerDeps===0&&(n._cleanup(),delete t._routeAnnouncer)}
115)),n}var Ff=Pe({name:`NuxtRouteAnnouncer`,props:{atomic:{type:Boolean,default:!1},politeness:{type:String,default:`polite`}},setup(e,{slots:t,expose:n}){let{set:r,polite:i,assertive:a,message:o,politeness:s}=Pf({politeness:e.politeness}),c=k(()=>{if(s.value===`assertive`)return`alert`;if(s.value!==`off`)return`status`});return n({set:r,polite:i,assertive:a,message:o,politeness:s}),()=>j(`span`,{class:`nuxt-route-announcer`,style:{position:`absolute`}},j(`span`,{role:c.value,"aria-live":s.value,"aria-atomic":e.atomic,style:{border:`0`,clip:`rect(0 0 0 0)`,"clip-path":`inset(50%)`,height:`1px`,width:`1px`,overflow:`hidden`,position:`absolute`,"white-space":`nowrap`,"word-wrap":`normal`,margin:`-1px`,padding:`0`}},t.default?t.default({message:o.value}):o.value))}}),If=(e=`RouteProvider`)=>Pe({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return O(w,De(r)),()=>e.vnode?j(e.vnode,{ref:e.vnodeRef}):e.vnode}}),Lf=If(),Rf=new WeakMap,zf=Pe({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=a(),o=Ae(),s=D(w,null),c=new Set,l;r({pageRef:o});let u=D(te,null),d,f=i.deferHydration(),p=!1,m=!1,h,g=0;if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,f),t=E().beforeEach(()=>{e(),t()})}e.pageKey&&he(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let _=!1;{let e=E().beforeResolve(()=>{_=!1});Te(()=>{e(),f()})}return()=>j(Zn,{name:e.name,route:e.route,...t},{default:Hf(t=>{let r=Bf(s,t.route,t.Component),a=s&&s.matched.length===t.route.matched.length;if(!t.Component){if(d&&!a&&!Wf(d))return d;f();return}if(d&&u&&!Wf(d)&&!u.isCurrent(t.route))return d;if(r&&s&&(!u||u?.isCurrent(s)))return(a||d)&&!Wf(d)?d:null;let v=mi(t,e.pageKey),y=Vf(s,t.route,t.Component);!i.isHydrating&&l===v&&!y&&ue(()=>{_||(_=!0,i.callHook(`page:loading:end`))}),p&&l!==v&&m&&g++,l=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),ee=b&&At([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){i[`~transitionFinish`]?.(),delete i[`~transitionFinish`],delete i[`~transitionPromise`],i.callHook(`page:transition:finish`,t.Component)}}]),x=e.keepalive??t.route.meta.keepalive??!1,S=t.Component.type,C=S.name||S.__name;t.route.meta.keepalive&&C&&c.add(C);let w;if(c.size>0&&e.keepalive==null&&(!x||typeof x==`object`&&x&&x.include)){let e=typeof x==`object`&&x?{...x}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];w={...e,include:Array.from(new Set([...t,...c]))}}else w=x;return d=Et(b&&ee,hi(w,j(ye,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&!i[`~transitionPromise`]&&(i[`~transitionPromise`]=new Promise(e=>{i[`~transitionFinish`]=e})),h=i.callHook(`page:start`,t.Component)}
115,onResolve:async()=>{p=!1,m=!0,i.isHydrating&&i[`~restoreDeferredRoute`]?.();try{await ue(),i._route.sync?.(),await h,await i.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await i.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:n.default?Uf(n.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:o,routeRecord:void 0};if(!w)return j(Lf,e);let r=S,i=Rf.get(r);return i||(i=If(C),Rf.set(r,i)),j(i,e)}}))).default(),d})})}});function Bf(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&mi({route:t,Component:n})!==mi({route:e,Component:n})}function Vf(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function Hf(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!Ne(n)?[be()]:[n]});return t._n=!0,t}function Uf(e,t){let n=e(t);return n.length===1?j(n[0]):j(Oe,void 0,n)}function Wf(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var Gf=rr;function Kf(e,t){return A(t)??e?.meta.layout??Gf(e?.path??`/`).appLayout??`default`}var qf=Pe({name:`LayoutLoader`,inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>j(ji[e.name],e.layoutProps,t.slots)}}),Jf=Pe({name:`NuxtLayout`,inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(t,n){let r=a(),i=D(w),o=!i||i===x()?ft():i,s=k(()=>{let e=Kf(o,t.name);return e&&!(e in ji)&&t.fallback&&(e=A(t.fallback)),e});O(e,s);let c=ke();n.expose({layoutRef:c});let l=r.deferHydration();if(r.isHydrating){let e=r.hooks.hookOnce(`app:error`,l),t=E().beforeEach(()=>{e(),t()})}let u;return()=>{let e=!!s.value&&s.value in ji&&!!(o?.meta.layoutTransition??!1),i=e&&At([o?.meta.layoutTransition,!1,{onBeforeLeave(){r[`~transitionPromise`]=new Promise(e=>{r[`~transitionFinish`]=e})},onAfterLeave(){r[`~transitionFinish`]?.(),delete r[`~transitionFinish`],delete r[`~transitionPromise`]}}]),a=u;return u=s.value,Et(i,{default:()=>j(ye,{suspensible:!0,onResolve:async()=>{await ue(l)}},{default:()=>j(Yf,{layoutProps:me(n.attrs,o.meta.layoutProps??{},{ref:c}),key:s.value||void 0,name:s.value,shouldProvide:!t.name,isRenderingNewLayout:e=>e!==a&&e===s.value,hasTransition:e},n.slots)})}).default()}}}),Yf=Pe({name:`NuxtLayoutProvider`,inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){let n=e.name;e.shouldProvide&&O(te,{isCurrent:e=>n===!1||n===Kf(e)});let r=D(w),i=r&&r===x(),a=D(te,null);if(i){let t=ft(),n={};for(let i in t){let o=i;Object.defineProperty(n,o,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)&&(!a||a.isCurrent(t))?t[o]:r[o]})}O(w,De(n))}return()=>!n||typeof n==`string`&&!(n in ji)?t.slots.default?.():j(qf,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),Xf=Wt(Ff),Zf={};function Qf(e,t){let n=Xf,r=zf,i=Jf;return de(),je(i,null,{default:pe(()=>[ve(n),ve(r)]),_:1})}var $f=Gt(Zf,[[`render`,Qf]]),ep={};function tp(e,t){return de(),Se(`head`,null,[...t[0]||=[Ee(`meta`,{"http-equiv":`refresh`,content:`0;/`},null,-1)]])}var np=Gt(ep,[[`render`,tp]]),rp=()=>null,ip={key:0},ap={__name:`nuxt-root`,setup(e){let t=a(),n=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,n),r=E().beforeEach(()=>{e(),r()})}window.location.pathname,O(w,x()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let r=oe();function i(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return we((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),c(navigator.userAgent))return se(t,e),!1;if(y(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>T(e)),i(e,n,r),!1}),(e,t)=>
115(de(),je(ye,{onResolve:A(n)},{default:pe(()=>[A(!1)?(de(),Se(`div`,ip)):A(r)?(de(),je(A(np),{key:1,error:A(r)},null,8,[`error`])):A(!1)?(de(),je(A(rp),{key:2,context:A(!1)},null,8,[`context`])):A(!1)?(de(),je(fe(A(!1)),{key:3})):(de(),je(A($f),{key:4}))]),_:1},8,[`onResolve`]))}},op;{let e;op=async function(){if(e)return e;let n=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),r=n?Ie(ap):Fe(ap),i=d({vueApp:r});async function a(e){await i.callHook(`app:error`,e),i.payload.error||=C(e)}a.__nuxt_default=!0,r.config.errorHandler=a,i.hook(`app:suspense:resolve`,()=>{r.config.errorHandler===a&&(r.config.errorHandler=void 0)}),!n&&t.id&&i.hook(`app:suspense:resolve`,()=>{document.getElementById(t.id)?.remove()});try{await l(i,Mf)}catch(e){a(e)}try{await i.hooks.callHook(`app:created`,r),await i.hooks.callHook(`app:beforeMount`,r),r.mount(h),await i.hooks.callHook(`app:mounted`,r),await ue()}catch(e){a(e)}return r},e=op().catch(e=>{throw ie.NUXT_E1009({cause:e}),e})}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.