(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),r=n("da84"),o=n("c65b"),s=n("e330"),a=n("1626"),l=n("861d"),c=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),u=r.Error,h=s(/./.test);i({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=this.exec;if(!a(t))return h(this,e);var n=o(t,this,e);if(null!==n&&!l(n))throw new u("RegExp exec method returned something other than an Object or null");return!!n}})},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"01b4":function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},"0366":function(e,t,n){var i=n("e330"),r=n("59ed"),o=n("40d5"),s=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},"0481":function(e,t,n){"use strict";var i=n("23e7"),r=n("a2bf"),o=n("7b0b"),s=n("07fa"),a=n("5926"),l=n("65f0");i({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=s(t),i=l(t,0);return i.length=r(i,t,t,n,0,void 0===e?1:a(e)),i}})},"0538":function(e,t,n){"use strict";var i=n("da84"),r=n("e330"),o=n("59ed"),s=n("861d"),a=n("1a2d"),l=n("f36a"),c=n("40d5"),u=i.Function,h=r([].concat),d=r([].join),f={},p=function(e,t,n){if(!a(f,t)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";f[t]=u("C,a","return new C("+d(i,",")+")")}return f[t](e,n)};e.exports=c?u.bind:function(e){var t=o(this),n=t.prototype,i=l(arguments,1),r=function(){var n=h(i,l(arguments));return this instanceof r?p(t,n.length,n):t.apply(e,n)};return s(n)&&(r.prototype=n),r}},"057f":function(e,t,n){var i=n("c6b6"),r=n("fc6a"),o=n("241c").f,s=n("4dae"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"==i(e)?l(e):o(r(e))}},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var i=n("6b75");function r(e,t){if(e){if("string"===typeof e)return Object(i["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i["a"])(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),l=n("a04b"),c=n("1a2d"),u=n("0cfb"),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return s(!r(o.f,e,t),e[t])}},"07fa":function(e,t,n){var i=n("50c4");e.exports=function(e){return i(e.length)}},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),s=n("5270"),a=n("4a7b"),l=n("848b"),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!i){var u=[s,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(o),r=Promise.resolve(e);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=e;while(n.length){var d=n.shift(),f=n.shift();try{h=d(h)}catch(p){f(p);break}}try{r=s(h)}catch(p){return Promise.reject(p)}while(o.length)r=r.then(o.shift(),o.shift());return r},u.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(a(i||{},{method:e,url:t,data:n}))}})),e.exports=u},"0b42":function(e,t,n){var i=n("da84"),r=n("e8b5"),o=n("68ee"),s=n("861d"),a=n("b622"),l=a("species"),c=i.Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,o(t)&&(t===c||r(t.prototype))?t=void 0:s(t)&&(t=t[l],null===t&&(t=void 0))),void 0===t?c:t}},"0c47":function(e,t,n){var i=n("da84"),r=n("d44e");r(i.JSON,"JSON",!0)},"0cb2":function(e,t,n){var i=n("e330"),r=n("7b0b"),o=Math.floor,s=i("".charAt),a=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,h,d){var f=n+e.length,p=i.length,g=u;return void 0!==h&&(h=r(h),g=c),a(d,g,(function(r,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>p){var d=o(u/10);return 0===d?r:d<=p?void 0===i[d-1]?s(a,1):i[d-1]+s(a,1):r}c=i[u-1]}return void 0===c?"":c}))}},"0ccb":function(e,t,n){var i=n("e330"),r=n("50c4"),o=n("577e"),s=n("1148"),a=n("1d80"),l=i(s),c=i("".slice),u=Math.ceil,h=function(e){return function(t,n,i){var s,h,d=o(a(t)),f=r(n),p=d.length,g=void 0===i?" ":o(i);return f<=p||""==g?d:(s=f-p,h=l(g,u(s/g.length)),h.length>s&&(h=c(h,0,s)),e?d+h:h+d)}};e.exports={start:h(!1),end:h(!0)}},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,n){var i=n("da84"),r=i.String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"107c":function(e,t,n){var i=n("d039"),r=n("da84"),o=r.RegExp;e.exports=i((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1148:function(e,t,n){"use strict";var i=n("da84"),r=n("5926"),o=n("577e"),s=n("1d80"),a=i.RangeError;e.exports=function(e){var t=o(s(this)),n="",i=r(e);if(i<0||i==1/0)throw a("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},"12d0":function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function i(){return window.Piwik.getAsyncTracker()}function r(e){return new Promise((function(t,n){var i=document.createElement("script");i.async=!0,i.defer=!0,i.src=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i),i.onload=t,i.onerror=n}))}function o(e,t){return e.resolve(t).href}n.r(t),n.d(t,"matomoKey",(function(){return a})),n.d(t,"default",(function(){return h}));var s={debug:!1,disableCookies:!1,requireCookieConsent:!1,enableHeartBeatTimer:!1,enableLinkTracking:!0,heartBeatTimerInterval:15,requireConsent:!1,trackInitialView:!0,trackSiteSearch:!1,trackerFileName:"matomo",trackerUrl:void 0,trackerScriptUrl:void 0,userId:void 0,cookieDomain:void 0,domains:void 0,preInitActions:[]},a="Matomo";function l(e,t,n){if("function"==typeof e.trackSiteSearch){var r=e.trackSiteSearch(t);if(r)return void function(e,t){var n=t.keyword,r=t.category,o=t.resultsCount,s=i();e.debug&&console.debug("[vue-matomo] Site Search "+n),s.trackSiteSearch(n,r,o)}(e,r)}!function(e,t,n){var r,s,a,l=i();if(e.router){if(s=o(e.router,t.fullPath),a=n&&n.fullPath?o(e.router,n.fullPath):void 0,t.meta.analyticsIgnore)return void(e.debug&&console.debug("[vue-matomo] Ignoring "+s));e.debug&&console.debug("[vue-matomo] Tracking "+s),r=t.meta.title||s}a&&l.setReferrerUrl(a),s&&l.setCustomUrl(s),l.trackPageView(r)}(e,t,n)}function c(e,t){var n=i();if(Number(e.version.split(".")[0])>2?(e.config.globalProperties.$piwik=n,e.config.globalProperties.$matomo=n,e.provide(a,n)):(e.prototype.$piwik=n,e.prototype.$matomo=n),t.trackInitialView&&t.router){var r=t.router.currentRoute.value?t.router.currentRoute.value:t.router.currentRoute;l(t,r)}t.router&&t.router.afterEach((function(e,i){l(t,e,i),t.enableLinkTracking&&n.enableLinkTracking()}))}function u(){return new Promise((function(e,t){var n=Date.now(),i=setInterval((function(){if(window.Piwik)return clearInterval(i),e();if(Date.now()>=n+3e3)throw clearInterval(i),new Error("[vue-matomo]: window.Piwik undefined after waiting for ".concat(3e3,"ms"))}),50)}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},s,t),i=n.host,o=n.siteId,a=n.trackerFileName,l=n.trackerUrl,h=n.trackerScriptUrl,d=h||"".concat(i,"/").concat(a,".js"),f=l||"".concat(i,"/").concat(a,".php");window._paq=window._paq||[],window._paq.push(["setTrackerUrl",f]),window._paq.push(["setSiteId",o]),n.requireConsent&&window._paq.push(["requireConsent"]),n.userId&&window._paq.push(["setUserId",n.userId]),n.enableLinkTracking&&window._paq.push(["enableLinkTracking"]),n.disableCookies&&window._paq.push(["disableCookies"]),n.requireCookieConsent&&window._paq.push(["requireCookieConsent"]),n.enableHeartBeatTimer&&window._paq.push(["enableHeartBeatTimer",n.heartBeatTimerInterval]),n.cookieDomain&&window._paq.push(["setCookieDomain",n.cookieDomain]),n.domains&&window._paq.push(["setDomains",n.domains]),n.preInitActions.forEach((function(e){return window._paq.push(e)})),r(d).then((function(){return u()})).then((function(){return c(e,n)})).catch((function(e){if(e.target)return console.error("[vue-matomo] An error occurred trying to load ".concat(e.target.src,". ")+"If the file exists you may have an ad- or trackingblocker enabled.");console.error(e)}))}}])}))},"14c3":function(e,t,n){var i=n("da84"),r=n("c65b"),o=n("825a"),s=n("1626"),a=n("c6b6"),l=n("9263"),c=i.TypeError;e.exports=function(e,t){var n=e.exec;if(s(n)){var i=r(n,e,t);return null!==i&&o(i),i}if("RegExp"===a(e))return r(l,e,t);throw c("RegExp#exec called on incompatible receiver")}},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("785a"),s=n("17c2"),a=n("9112"),l=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in r)r[c]&&l(i[c]&&i[c].prototype);l(o)},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=r("forEach");e.exports=o?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"19aa":function(e,t,n){var i=n("da84"),r=n("3a9b"),o=i.TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},"1a2d":function(e,t,n){var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},"1d80":function(e,t,n){var i=n("da84"),r=i.TypeError;e.exports=function(e){if(void 0==e)throw r("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),s=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"213a":function(e,t,n){"use strict";n.d(t,"a",(function(){return G})),n.d(t,"b",(function(){return V}));n("d3b7");function i(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,l,"next",e)}function l(e){i(s,r,o,a,l,"throw",e)}a(void 0)}))}}var o=n("d4ec"),s=n("bee2"),a=n("ade3"),l=n("5530"),c=n("3835"),u=n("2909"),h=(n("a4d3"),n("e01a"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("06c5"));function d(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(h["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(a)throw o}}}}var f=n("53ca"),p=(n("96cf"),n("dca8"),n("d81d"),n("4de4"),n("b64b"),n("caad"),n("2532"),n("99af"),n("5d41"),n("f8c9"),n("7ed3"),n("ac16"),n("a630"),n("a15b"),n("0481"),n("4069"),n("e9c4"),n("25f0"),n("944a"),n("0c47"),n("23dc"),n("8a79"),n("159b"),n("a434"),n("c740"),n("7a23")),g=function(e,t){return function(n,i){var r=-1;if(i.reduce((function(t,n,i){var o=e(t,n);return o!==t?(r=i,o):t}),t),r>-1)return n[r]}},m=g((function(e,t){var n=t.depth;return!e||n>e?n:e})),v=Object.freeze({__proto__:null,setup:function(e){var t=0;if(e.vm){var n=e.vm;do{n.parent&&(t++,n=n.parent)}while(n&&n.parent&&n!==n.root)}e.depth=t},resolve:m}),y={body:{tag:"script",to:"body"},base:{valueAttribute:"href"},charset:{tag:"meta",nameless:!0,valueAttribute:"charset"},description:{tag:"meta"},og:{group:!0,namespacedAttribute:!0,tag:"meta",keyAttribute:"property"},twitter:{group:!0,namespacedAttribute:!0,tag:"meta"},htmlAttrs:{attributesFor:"html"},headAttrs:{attributesFor:"head"},bodyAttrs:{attributesFor:"body"}},b={title:{attributes:!1},base:{contentAsAttribute:!0,attributes:["href","target"]},meta:{contentAsAttribute:!0,keyAttribute:"name",attributes:["content","name","http-equiv","charset"]},link:{contentAsAttribute:!0,attributes:["href","crossorigin","rel","media","integrity","hreflang","type","referrerpolicy","sizes","imagesrcset","imagesizes","as","color"]},style:{attributes:["media"]},script:{attributes:["src","type","nomodule","async","defer","crossorigin","integrity","referrerpolicy"]},noscript:{attributes:!1}};Object.freeze({}),Object.freeze([]);var w=Array.isArray,x=function(e){return"function"==typeof e},_=function(e){return"string"==typeof e},T=function(e){return null!==e&&"object"==Object(f["a"])(e)},S=Object.prototype.toString,O=function(e){return"[object Object]"===S.call(e)},E=Symbol("kIsProxy"),P=Symbol("kProxySources"),C=Symbol("kProxyTarget"),k=Symbol("kResolveContext");function R(e){if(w(e))return e.map(R);if(T(e)){var t={};for(var n in e)t[n]="context"===n?e[n]:R(e[n]);return t}return e}var j=function(e,t,n){var i,r=[],o=d(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;s&&t in s&&(r.push(s[t]),n&&n(s))}}catch(a){o.e(a)}finally{o.f()}return r},I=function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(!r&&!o&&(n=t,r=n.active,o=n.sources,i.length))for(var s=function(e){var t=i[e];if(!r||!r[t])return{v:void console.error("recompute: segment ".concat(t," not found on target"),i,r)};r=r[t],o=o.map((function(e){return e[t]})).filter(Boolean)},a=0;a<i.length;a++){var l=s(a);if("object"===Object(f["a"])(l))return l.v}if(r&&o){for(var c=function(e){for(var t=e?Object.keys(e):[],n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(i){var o,s=d(i);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a&&T(a))for(var l in a)t.includes(l)||t.push(l)}}catch(c){s.e(c)}finally{s.f()}}return t}.apply(void 0,Object(u["a"])(o)),h=Object.keys(r),p=0,g=h;p<g.length;p++){var m=g[p];c.includes(m)||delete r[m]}var v,y=d(c);try{var b=function(){for(var n=v.value,s=!1,a=0;a<o.length;a++){var l=o[a];if(l&&n in l&&void 0!==l[n]){s=O(l[n]);break}}if(s){r[n]||(r[n]={});var c,h=[],f=d(o);try{for(f.s();!(c=f.n()).done;){var p=c.value;n in p&&h.push(p[n])}}catch(b){f.e(b)}finally{f.f()}return e(t,[].concat(Object(u["a"])(i),[n]),r[n],h),"continue"}!r[n]&&w(o[0][n])&&(r[n]=[]);var g=[],m=j(o,n,(function(e){return g.push(e[k])})),y=t.resolve(m,g,r[n],n,i);O(y)&&(y=R(y)),r[n]=y};for(y.s();!(v=y.n()).done;)b()}catch(x){y.e(x)}finally{y.f()}}},D=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=L(e,n,i),o=Object(p["t"])(new Proxy(t,r));return!i.length&&e.sources&&e.sources.push(o),o},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return{get:function(i,r,o){if(r===E)return!0;if(r===P)return e.sources;if(r===C)return i;if(r===k)return t;var s=Reflect.get(i,r,o);if(!T(s))return s;if(!s[E]){var a=[].concat(Object(u["a"])(n),[r]);s=D(e,s,t,a),Reflect.set(i,r,s)}return s},set:function(t,i,r){var o=Reflect.set(t,i,r);if(o){var s,a,l=w(t),c=!1,u=e.sources,h=e.active,f=0,p=d(n);try{for(p.s();!(a=p.n()).done;){var g=a.value;if(u=j(u,g),l&&f===n.length-1){s=g;break}w(h)&&(c=!0),h=h[g],f++}}catch(b){p.e(b)}finally{p.f()}if(c)return I(e),o;if(O(r))return I(e,n),o;var m,v=[];l?(m=u,v=u.map((function(e){return e[k]}))):m=j(u,i,(function(e){return v.push(e[k])}));var y=e.resolve(m,v,h,i,n);O(y)&&(y=R(y)),l&&s?h[s]=y:h[i]=y}return o},deleteProperty:function(t,i){var r=Reflect.deleteProperty(t,i);if(r){var o,s,a=w(t),l=e.sources,c=e.active,u=0,h=d(n);try{var f=function(){var e=s.value;if(l=l.map((function(t){return t&&t[e]})),a&&u===n.length-1)return o=e,"break";c=c[e],u++};for(h.s();!(s=h.n()).done;){var p=f();if("break"===p)break}}catch(y){h.e(y)}finally{h.f()}if(l.some((function(e){return e&&i in e}))){var g,m=[];a?(g=l,m=l.map((function(e){return e[k]}))):g=j(l,i,(function(e){return m.push(e[k])}));var v=e.resolve(g,m,c,i,n);O(v)&&(v=R(v)),a&&o?c[o]=v:c[i]=v}else delete c[i]}return r}}},F={};function A(e,t,n,i){return"attributesFor"in i?function(e,t,n,i){var r=i.attributesFor;if(r&&n){if(e.isSSR)return{to:"",vnode:Object(p["p"])("ssr-".concat(r),n)};if(!F[r]){var o=Array.from(document.querySelectorAll(r)),s=Object(c["a"])(o,2),a=s[0],l=s[1];if(!a)return void console.error("Could not find element for selector",r,", won't render attributes");l&&console.warn("Found multiple elements for selector",r),F[r]={el:a,attrs:[]}}var u=F[r],h=u.el,f=u.attrs;for(var g in n){var m=M(e,"".concat(t,"(").concat(g,")"),n[g],n);w(m)&&(m=m.join(",")),h.setAttribute(g,m||""),f.includes(g)||f.push(g)}var v,y=f.filter((function(e){return!n[e]})),b=d(y);try{for(b.s();!(v=b.n()).done;){var x=v.value;h.removeAttribute(x)}}catch(_){b.e(_)}finally{b.f()}}}(e,t,n,i):"group"in i?function(e,t,n,i){return w(n)?(console.warn("Specifying an array for group properties isnt supported"),[]):Object.keys(n).map((function(r){var o={group:t,data:n};if(i.namespaced)o.tagNamespace=!0===i.namespaced?t:i.namespaced;else if(i.namespacedAttribute){var s=!0===i.namespacedAttribute?t:i.namespacedAttribute;o.fullName="".concat(s,":").concat(r),o.slotName="".concat(s,"(").concat(r,")")}return N(e,t,n[r],i,o)})).filter(Boolean).flat()}(e,t,n,i):N(e,t,n,i)}function N(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,o=["content","json","rawContent"],s=function(e){return function(e,t){var n,i=d(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=b[r];if(r&&o)return o[t]}}catch(s){i.e(s)}finally{i.f()}}([u,i.tag],e)};if(w(n))return n.map((function(n){return N(e,t,n,i,r)})).filter(Boolean).flat();var a=n.tag,u=void 0===a?i.tag||t:a,h="",g=!1,m=!1;if(_(n))h=n;else if(n.children&&w(n.children))g=!0,h=n.children.map((function(n){var o=N(e,t,n,i,r);return w(o)?o.map((function(e){var t=e.vnode;return t})):o&&o.vnode}));else{var v,y=0,x=d(o);try{for(x.s();!(v=x.n()).done;){var T=v.value;if(!h&&n[T]){h=1===y?JSON.stringify(n[T]):n[T],m=y>1;break}y++}}catch(z){x.e(z)}finally{x.f()}}var S=r&&r.fullName||t,O=r&&r.slotName||t,E=n.attrs;if(E||"object"!=Object(f["a"])(n))E||(E={});else{E=Object(l["a"])({},n),delete E.tag,delete E.children,delete E.to;var P,C=d(o);try{for(C.s();!(P=C.n()).done;){var k=P.value;delete E[k]}}catch(z){C.e(z)}finally{C.f()}}if(g)h=M(e,O,h,n);else{var R=!!s("contentAsAttribute"),j=i.valueAttribute;if(!j&&R){var I=s("attributes"),D=Object(c["a"])(I,1),L=D[0];j=_(R)?R:L}if(j){var F=i.nameless;if(!F){var A=i.keyAttribute||s("keyAttribute");A&&(E[A]=S)}E[j]=M(e,O,E[j]||h,r),h=""}else h=M(e,O,h,n)}var B=r&&r.tagNamespace?"".concat(r.tagNamespace,":").concat(u):u;if("title"!==B||e.isSSR){m&&h&&(E.innerHTML=h);var H=Object(p["p"])(B,E,h||void 0);return{to:n.to,vnode:H}}document.title=h}function M(e,t,n,i){var r=e.metainfo,o=e.slots,s=o&&o[t];if(!s||!x(s))return n;var a={content:n,metainfo:r};if(i&&i.group){var l=i.group,c=i.data;a[l]=c}var u=s(a);if(u&&u.length){var h=u[0].children;return h?h.toString():""}return n}var B="function"==typeof Symbol&&"symbol"==Object(f["a"])(Symbol.toStringTag),H=function(e){return B?Symbol("[vue-meta]: "+e):"[vue-meta]: "+e}("meta_active");function z(e,t,n){for(var i in t)i in n?T(e[i])?z(e[i],t[i],n[i]):t[i]!==n[i]&&(e[i]=t[i]):e[i]=t[i];for(var r in n)t&&r in t||delete e[r]}function U(e){if(e||(e=Object(p["o"])()||void 0),e)return e.appContext.config.globalProperties.$metaManager}function V(e,t){var n=Object(p["o"])()||void 0;if(!t&&n&&(t=U(n)),!t)throw new Error("No manager or current instance");Object(p["r"])(e)&&(Object(p["S"])(e,(function(e,t){z(i.meta,e,t)})),e=e.value);var i=t.addMeta(e,n);return i}var W=Object(p["n"])({name:"Metainfo",inheritAttrs:!1,setup:function(e,t){var n=t.slots;return function(){var e=U();if(e)return e.render({slots:n})}}});function q(e,t,n,i){var r,o=w(i)?i:[i];e?n.endsWith("Attrs")||o.forEach((function(e){e.props||(e.props={}),e.props["data-vm-ssr"]=!0})):o.forEach((function(e,t){e.type===p["a"]&&o.splice(t,1)})),t[n]||(t[n]=[]),(r=t[n]).push.apply(r,Object(u["a"])(o))}var G=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return $.create(e,t||y,n||v)},$=function(){function e(t,n,i,r){Object(o["a"])(this,e),Object(a["a"])(this,"isSSR",!1),Object(a["a"])(this,"config",void 0),Object(a["a"])(this,"target",void 0),Object(a["a"])(this,"resolver",void 0),Object(a["a"])(this,"ssrCleanedUp",!1),this.isSSR=t,this.config=n,this.target=i,r&&"setup"in r&&x(r.setup)&&(this.resolver=r)}return Object(s["a"])(e,[{key:"install",value:function(e){e.component("Metainfo",W),e.config.globalProperties.$metaManager=this,e.provide(H,this.target.context.active)}},{key:"addMeta",value:function(e,t){var n=this;t||(t=Object(p["o"])()||void 0);var i={removed:[]},r={vm:t},o=this.resolver;o&&o.setup&&o.setup(r);var s=this.target.addSource(e,r,!0),a=function(e){return n.unmount(!!e,s,i,t)};return t&&Object(p["A"])(a),{meta:s,onRemoved:function(e){return i.removed.push(e)},unmount:a}}},{key:"unmount",value:function(e,t,n,i){var r=this;if(i){var o=i.proxy.$el;if(o&&o.offsetParent){var s=new MutationObserver((function(i){var a,l=d(i);try{for(l.s();!(a=l.n()).done;){var c=a.value.removedNodes;c&&c.forEach((function(i){i===o&&s&&(s.disconnect(),s=void 0,r.reallyUnmount(e,t,n))}))}}catch(u){l.e(u)}finally{l.f()}}));return void s.observe(o.parentNode,{childList:!0})}}this.reallyUnmount(e,t,n)}},{key:"reallyUnmount",value:function(){var e=r(regeneratorRuntime.mark((function e(t,n,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.target.delSource(n),e.t0=!t&&i,!e.t0){e.next=5;break}return e.next=5,Promise.all(i.removed.map((function(e){return e()})));case 5:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slots,n=this.target.context.active,i=this.isSSR;if(!i&&!this.ssrCleanedUp){this.ssrCleanedUp=!0;var r=function(){var e=document.querySelectorAll("[data-vm-ssr]");e&&e.length&&e.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)}))};"loading"===document.readyState?window.addEventListener("DOMContentLoaded",r,{once:!0}):r()}var o={};for(var s in n){var a=this.config[s]||{},l=A({isSSR:i,metainfo:n,slots:t},s,n[s],a);if(l){w(l)||(l=[l]);var c="base"!==s&&n[s].to;!c&&"to"in a&&(c=a.to),!c&&"attributesFor"in a&&(c=s);var u,h=d(l);try{for(h.s();!(u=h.n()).done;){var f=u.value,g=f.to,m=f.vnode;q(this.isSSR,o,g||c||"head",m)}}catch(_){h.e(_)}finally{h.f()}}}if(t)for(var v in t){var y="default"===v?"head":v;if("head"===y||"body"===y){var b=t[v];x(b)&&q(this.isSSR,o,y,b({metainfo:n}))}}return Object.keys(o).map((function(e){return Object(p["p"])(p["c"],{to:e},o[e])}))}}]),e}();Object(a["a"])($,"create",(function(e,t,n){var i=function(e,t){var n=[],i={active:t,resolve:e,sources:n},r=function(){return I(i)};return{context:i,compute:r,addSource:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=D(i,e,t||{});return n&&r(),o},delSource:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=n.findIndex((function(t){return t===e||t[C]===e}));return i>-1&&(n.splice(i,1),t&&r(),!0)}}}((function(e,t,i,r,o){return x(n)?n(e,t,i,r,o):n.resolve(e,t,i,r,o)}),Object(p["F"])({}));return new $(e,t,i,n)}))},2266:function(e,t,n){var i=n("da84"),r=n("0366"),o=n("c65b"),s=n("825a"),a=n("0d51"),l=n("e95a"),c=n("07fa"),u=n("3a9b"),h=n("9a1f"),d=n("35a1"),f=n("2a62"),p=i.TypeError,g=function(e,t){this.stopped=e,this.result=t},m=g.prototype;e.exports=function(e,t,n){var i,v,y,b,w,x,_,T=n&&n.that,S=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),P=r(t,T),C=function(e){return i&&f(i,"normal",e),new g(!0,e)},k=function(e){return S?(s(e),E?P(e[0],e[1],C):P(e[0],e[1])):E?P(e,C):P(e)};if(O)i=e;else{if(v=d(e),!v)throw p(a(e)+" is not iterable");if(l(v)){for(y=0,b=c(e);b>y;y++)if(w=k(e[y]),w&&u(m,w))return w;return new g(!1)}i=h(e,v)}x=i.next;while(!(_=o(x,i)).done){try{w=k(_.value)}catch(R){f(i,"throw",R)}if("object"==typeof w&&w&&u(m,w))return w}return new g(!1)}},"23cb":function(e,t,n){var i=n("5926"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),s=n("6eeb"),a=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,d,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||a(g,{}):(i[g]||{}).prototype,u)for(h in t){if(f=t[h],e.noTargetGet?(p=r(u,h),d=p&&p.value):d=u[h],n=c(m?h:g+(v?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),s(u,h,f,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o=n("387f"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function c(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw o(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(s)})),e.exports=u}).call(this,n("4362"))},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("5a34"),s=n("1d80"),a=n("577e"),l=n("ab13"),c=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(e,t,n){"use strict";var i=n("e330"),r=n("5e77").PROPER,o=n("6eeb"),s=n("825a"),a=n("3a9b"),l=n("577e"),c=n("d039"),u=n("ad6d"),h="toString",d=RegExp.prototype,f=d[h],p=i(u),g=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),m=r&&f.name!=h;(g||m)&&o(RegExp.prototype,h,(function(){var e=s(this),t=l(e.source),n=e.flags,i=l(void 0===n&&a(d,e)&&!("flags"in d)?p(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),s=n("83ab"),a=o("species");e.exports=function(e){var t=i(e),n=r.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},"262e":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("d9e2");function i(e,t){return i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(e,t)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6b75");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var s=n("06c5");n("d9e2");function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||Object(s["a"])(e)||a()}},"2a62":function(e,t,n){var i=n("c65b"),r=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var s,a;r(e);try{if(s=o(e,"return"),!s){if("throw"===t)throw n;return n}s=i(s,e)}catch(l){a=!0,s=l}if("throw"===t)throw n;if(a)throw s;return r(s),n}},"2ba4":function(e,t,n){var i=n("40d5"),r=Function.prototype,o=r.apply,s=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},"2c3e":function(e,t,n){var i=n("da84"),r=n("83ab"),o=n("9f7f").MISSED_STICKY,s=n("c6b6"),a=n("9bf2").f,l=n("69f3").get,c=RegExp.prototype,u=i.TypeError;r&&o&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"2caf":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("4ae1"),n("d3b7"),n("f8c9"),n("3410");function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n("d9e2");var o=n("53ca");function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){if(t&&("object"===Object(o["a"])(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function l(e){var t=r();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}},"2cf4":function(e,t,n){var i,r,o,s,a=n("da84"),l=n("2ba4"),c=n("0366"),u=n("1626"),h=n("1a2d"),d=n("d039"),f=n("1be4"),p=n("f36a"),g=n("cc12"),m=n("1cdc"),v=n("605d"),y=a.setImmediate,b=a.clearImmediate,w=a.process,x=a.Dispatch,_=a.Function,T=a.MessageChannel,S=a.String,O=0,E={},P="onreadystatechange";try{i=a.location}catch(I){}var C=function(e){if(h(E,e)){var t=E[e];delete E[e],t()}},k=function(e){return function(){C(e)}},R=function(e){C(e.data)},j=function(e){a.postMessage(S(e),i.protocol+"//"+i.host)};y&&b||(y=function(e){var t=p(arguments,1);return E[++O]=function(){l(u(e)?e:_(e),void 0,t)},r(O),O},b=function(e){delete E[e]},v?r=function(e){w.nextTick(k(e))}:x&&x.now?r=function(e){x.now(k(e))}:T&&!m?(o=new T,s=o.port2,o.port1.onmessage=R,r=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!d(j)?(r=j,a.addEventListener("message",R,!1)):r=P in g("script")?function(e){f.appendChild(g("script"))[P]=function(){f.removeChild(this),C(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:y,clear:b}},"2d00":function(e,t,n){var i,r,o=n("da84"),s=n("342f"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),o=n("7b0b"),s=n("e163"),a=n("e177"),l=r((function(){s(1)}));i({target:"Object",stat:!0,forced:l,sham:!a},{getPrototypeOf:function(e){return s(o(e))}})},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,n){var i=n("f5df"),r=n("dc4a"),o=n("3f8c"),s=n("b622"),a=s("iterator");e.exports=function(e){if(void 0!=e)return r(e,a)||r(e,"@@iterator")||o[i(e)]}},"37e8":function(e,t,n){var i=n("83ab"),r=n("aed9"),o=n("9bf2"),s=n("825a"),a=n("fc6a"),l=n("df75");t.f=i&&!r?Object.defineProperties:function(e,t){s(e);var n,i=a(t),r=l(t),c=r.length,u=0;while(c>u)o.f(e,n=r[u++],i[n]);return e}},3835:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return a}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done);s=!0)if(o.push(i.value),t&&o.length===t)break}catch(l){a=!0,r=l}finally{try{s||null==n["return"]||n["return"]()}finally{if(a)throw r}}return o}}var o=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return i(e)||r(e,t)||Object(o["a"])(e,t)||s()}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3a9b":function(e,t,n){var i=n("e330");e.exports=i({}.isPrototypeOf)},"3bbe":function(e,t,n){var i=n("da84"),r=n("1626"),o=i.String,s=i.TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("577e"),o=n("69f3"),s=n("7dd0"),a="String Iterator",l=o.set,c=o.getterFor(a);s(String,"String",(function(e){l(this,{type:a,string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3f4e":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("abc5");const r="devtools-plugin:setup",o="plugin:settings:set";class s{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const o in e.settings){const t=e.settings[o];n[o]=t.defaultValue}const i="__vue-devtools-plugin-settings__"+e.id;let r=Object.assign({},n);try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(r,t)}catch(s){}this.fallbacks={getSettings(){return r},setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(s){}r=e}},t&&t.on(o,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function a(e,t){const n=Object(i["b"])(),o=Object(i["a"])(),a=i["c"]&&e.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const i=a?new s(e,o):null,r=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];r.push({pluginDescriptor:e,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}else o.emit(r,e,t)}},"3f8c":function(e,t){e.exports={}},4069:function(e,t,n){var i=n("44d2");i("flat")},"408a":function(e,t,n){var i=n("e330");e.exports=i(1..valueOf)},"40d5":function(e,t,n){var i=n("d039");e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"428f":function(e,t,n){var i=n("da84");e.exports=i},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var i=n("da84"),r=n("e330"),o=n("d039"),s=n("c6b6"),a=i.Object,l=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==s(e)?l(e,""):a(e)}:a},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),s=i("unscopables"),a=Array.prototype;void 0==a[s]&&o.f(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),o=n("b622"),s=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},"467f":function(e,t,n){"use strict";var i=n("2d83");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"47e2":function(e,t,n){"use strict";n.d(t,"a",(function(){return Xt})),n.d(t,"b",(function(){return Yt}));var i=n("f83d");
/*!
  * @intlify/message-compiler v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */function r(e,t,n={}){const{domain:i,messages:r,args:o}=n,s=e,a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=i,a}function o(e){throw e}function s(e,t,n){return{line:e,column:t,offset:n}}function a(e,t,n){const i={start:e,end:t};return null!=n&&(i.source=n),i}const l=" ",c="\r",u="\n",h=String.fromCharCode(8232),d=String.fromCharCode(8233);function f(e){const t=e;let n=0,i=1,r=1,o=0;const s=e=>t[e]===c&&t[e+1]===u,a=e=>t[e]===u,l=e=>t[e]===d,f=e=>t[e]===h,p=e=>s(e)||a(e)||l(e)||f(e),g=()=>n,m=()=>i,v=()=>r,y=()=>o,b=e=>s(e)||l(e)||f(e)?u:t[e],w=()=>b(n),x=()=>b(n+o);function _(){return o=0,p(n)&&(i++,r=0),s(n)&&n++,n++,r++,t[n]}function T(){return s(n+o)&&o++,o++,t[n+o]}function S(){n=0,i=1,r=1,o=0}function O(e=0){o=e}function E(){const e=n+o;while(e!==n)_();o=0}return{index:g,line:m,column:v,peekOffset:y,charAt:b,currentChar:w,currentPeek:x,next:_,peek:T,reset:S,resetPeek:O,skipToPeek:E}}const p=void 0,g="'",m="tokenizer";function v(e,t={}){const n=!1!==t.location,i=f(e),o=()=>i.index(),c=()=>s(i.line(),i.column(),i.index()),h=c(),d=o(),v={currentType:14,offset:d,startLoc:h,endLoc:h,lastType:14,lastOffset:d,lastStartLoc:h,lastEndLoc:h,braceNest:0,inLinked:!1,text:""},y=()=>v,{onError:b}=t;function w(e,t,n,...i){const o=y();if(t.column+=n,t.offset+=n,b){const n=a(o.startLoc,t),s=r(e,n,{domain:m,args:i});b(s)}}function x(e,t,i){e.endLoc=c(),e.currentType=t;const r={type:t};return n&&(r.loc=a(e.startLoc,e.endLoc)),null!=i&&(r.value=i),r}const _=e=>x(e,14);function T(e,t){return e.currentChar()===t?(e.next(),t):(w(0,c(),0,t),"")}function S(e){let t="";while(e.currentPeek()===l||e.currentPeek()===u)t+=e.currentPeek(),e.peek();return t}function O(e){const t=S(e);return e.skipToPeek(),t}function E(e){if(e===p)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function P(e){if(e===p)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function C(e,t){const{currentType:n}=t;if(2!==n)return!1;S(e);const i=E(e.currentPeek());return e.resetPeek(),i}function k(e,t){const{currentType:n}=t;if(2!==n)return!1;S(e);const i="-"===e.currentPeek()?e.peek():e.currentPeek(),r=P(i);return e.resetPeek(),r}function R(e,t){const{currentType:n}=t;if(2!==n)return!1;S(e);const i=e.currentPeek()===g;return e.resetPeek(),i}function j(e,t){const{currentType:n}=t;if(8!==n)return!1;S(e);const i="."===e.currentPeek();return e.resetPeek(),i}function I(e,t){const{currentType:n}=t;if(9!==n)return!1;S(e);const i=E(e.currentPeek());return e.resetPeek(),i}function D(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;S(e);const i=":"===e.currentPeek();return e.resetPeek(),i}function L(e,t){const{currentType:n}=t;if(10!==n)return!1;const i=()=>{const t=e.currentPeek();return"{"===t?E(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===l||!t)&&(t===u?(e.peek(),i()):E(t))},r=i();return e.resetPeek(),r}function F(e){S(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function A(e,t=!0){const n=(t=!1,i="",r=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==i&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==i&&!r)||!(i===l||i===u):o===l?(e.peek(),n(!0,l,r)):o!==u||(e.peek(),n(!0,u,r)):"%"===i||t},i=n();return t&&e.resetPeek(),i}function N(e,t){const n=e.currentChar();return n===p?p:t(n)?(e.next(),n):null}function M(e){const t=e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t};return N(e,t)}function B(e){const t=e=>{const t=e.charCodeAt(0);return t>=48&&t<=57};return N(e,t)}function H(e){const t=e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};return N(e,t)}function z(e){let t="",n="";while(t=B(e))n+=t;return n}function U(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!A(e))break;t+=n,e.next()}else if(n===l||n===u)if(A(e))t+=n,e.next();else{if(F(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function V(e){O(e);let t="",n="";while(t=M(e))n+=t;return e.currentChar()===p&&w(6,c(),0),n}function W(e){O(e);let t="";return"-"===e.currentChar()?(e.next(),t+="-"+z(e)):t+=z(e),e.currentChar()===p&&w(6,c(),0),t}function q(e){O(e),T(e,"'");let t="",n="";const i=e=>e!==g&&e!==u;while(t=N(e,i))n+="\\"===t?G(e):t;const r=e.currentChar();return r===u||r===p?(w(2,c(),0),r===u&&(e.next(),T(e,"'")),n):(T(e,"'"),n)}function G(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),"\\"+t;case"u":return $(e,t,4);case"U":return $(e,t,6);default:return w(3,c(),0,t),""}}function $(e,t,n){T(e,t);let i="";for(let r=0;r<n;r++){const n=H(e);if(!n){w(4,c(),0,`\\${t}${i}${e.currentChar()}`);break}i+=n}return`\\${t}${i}`}function Z(e){O(e);let t="",n="";const i=e=>"{"!==e&&"}"!==e&&e!==l&&e!==u;while(t=N(e,i))n+=t;return n}function X(e){let t="",n="";while(t=M(e))n+=t;return n}function Y(e){const t=(n=!1,i)=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&r?r===l?i:r===u?(i+=r,e.next(),t(n,i)):(i+=r,e.next(),t(!0,i)):i};return t(!1,"")}function K(e){O(e);const t=T(e,"|");return O(e),t}function J(e,t){let n=null;const i=e.currentChar();switch(i){case"{":return t.braceNest>=1&&w(8,c(),0),e.next(),n=x(t,2,"{"),O(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&w(7,c(),0),e.next(),n=x(t,3,"}"),t.braceNest--,t.braceNest>0&&O(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&w(6,c(),0),n=Q(e,t)||_(t),t.braceNest=0,n;default:let i=!0,r=!0,o=!0;if(F(e))return t.braceNest>0&&w(6,c(),0),n=x(t,1,K(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return w(6,c(),0),t.braceNest=0,ee(e,t);if(i=C(e,t))return n=x(t,5,V(e)),O(e),n;if(r=k(e,t))return n=x(t,6,W(e)),O(e),n;if(o=R(e,t))return n=x(t,7,q(e)),O(e),n;if(!i&&!r&&!o)return n=x(t,13,Z(e)),w(1,c(),0,n.value),O(e),n;break}return n}function Q(e,t){const{currentType:n}=t;let i=null;const r=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||r!==u&&r!==l||w(9,c(),0),r){case"@":return e.next(),i=x(t,8,"@"),t.inLinked=!0,i;case".":return O(e),e.next(),x(t,9,".");case":":return O(e),e.next(),x(t,10,":");default:return F(e)?(i=x(t,1,K(e)),t.braceNest=0,t.inLinked=!1,i):j(e,t)||D(e,t)?(O(e),Q(e,t)):I(e,t)?(O(e),x(t,12,X(e))):L(e,t)?(O(e),"{"===r?J(e,t)||i:x(t,11,Y(e))):(8===n&&w(9,c(),0),t.braceNest=0,t.inLinked=!1,ee(e,t))}}function ee(e,t){let n={type:14};if(t.braceNest>0)return J(e,t)||_(t);if(t.inLinked)return Q(e,t)||_(t);const i=e.currentChar();switch(i){case"{":return J(e,t)||_(t);case"}":return w(5,c(),0),e.next(),x(t,3,"}");case"@":return Q(e,t)||_(t);default:if(F(e))return n=x(t,1,K(e)),t.braceNest=0,t.inLinked=!1,n;if(A(e))return x(t,0,U(e));if("%"===i)return e.next(),x(t,4,"%");break}return n}function te(){const{currentType:e,offset:t,startLoc:n,endLoc:r}=v;return v.lastType=e,v.lastOffset=t,v.lastStartLoc=n,v.lastEndLoc=r,v.offset=o(),v.startLoc=c(),i.currentChar()===p?x(v,14):ee(i,v)}return{nextToken:te,currentOffset:o,currentPosition:c,context:y}}const y="parser",b=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function w(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function x(e={}){const t=!1!==e.location,{onError:n}=e;function o(e,t,i,o,...s){const l=e.currentPosition();if(l.offset+=o,l.column+=o,n){const e=a(i,l),o=r(t,e,{domain:y,args:s});n(o)}}function s(e,n,i){const r={type:e,start:n,end:n};return t&&(r.loc={start:i,end:i}),r}function l(e,n,i,r){e.end=n,r&&(e.type=r),t&&e.loc&&(e.loc.end=i)}function c(e,t){const n=e.context(),i=s(3,n.offset,n.startLoc);return i.value=t,l(i,e.currentOffset(),e.currentPosition()),i}function u(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:r}=n,o=s(5,i,r);return o.index=parseInt(t,10),e.nextToken(),l(o,e.currentOffset(),e.currentPosition()),o}function h(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:r}=n,o=s(4,i,r);return o.key=t,e.nextToken(),l(o,e.currentOffset(),e.currentPosition()),o}function d(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:r}=n,o=s(9,i,r);return o.value=t.replace(b,w),e.nextToken(),l(o,e.currentOffset(),e.currentPosition()),o}function f(e){const t=e.nextToken(),n=e.context(),{lastOffset:i,lastStartLoc:r}=n,a=s(8,i,r);return 12!==t.type?(o(e,11,n.lastStartLoc,0),a.value="",l(a,i,r),{nextConsumeToken:t,node:a}):(null==t.value&&o(e,13,n.lastStartLoc,0,_(t)),a.value=t.value||"",l(a,e.currentOffset(),e.currentPosition()),{node:a})}function p(e,t){const n=e.context(),i=s(7,n.offset,n.startLoc);return i.value=t,l(i,e.currentOffset(),e.currentPosition()),i}function g(e){const t=e.context(),n=s(6,t.offset,t.startLoc);let i=e.nextToken();if(9===i.type){const t=f(e);n.modifier=t.node,i=t.nextConsumeToken||e.nextToken()}switch(10!==i.type&&o(e,13,t.lastStartLoc,0,_(i)),i=e.nextToken(),2===i.type&&(i=e.nextToken()),i.type){case 11:null==i.value&&o(e,13,t.lastStartLoc,0,_(i)),n.key=p(e,i.value||"");break;case 5:null==i.value&&o(e,13,t.lastStartLoc,0,_(i)),n.key=h(e,i.value||"");break;case 6:null==i.value&&o(e,13,t.lastStartLoc,0,_(i)),n.key=u(e,i.value||"");break;case 7:null==i.value&&o(e,13,t.lastStartLoc,0,_(i)),n.key=d(e,i.value||"");break;default:o(e,12,t.lastStartLoc,0);const r=e.context(),a=s(7,r.offset,r.startLoc);return a.value="",l(a,r.offset,r.startLoc),n.key=a,l(n,r.offset,r.startLoc),{nextConsumeToken:i,node:n}}return l(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,i=1===t.currentType?t.endLoc:t.startLoc,r=s(2,n,i);r.items=[];let a=null;do{const n=a||e.nextToken();switch(a=null,n.type){case 0:null==n.value&&o(e,13,t.lastStartLoc,0,_(n)),r.items.push(c(e,n.value||""));break;case 6:null==n.value&&o(e,13,t.lastStartLoc,0,_(n)),r.items.push(u(e,n.value||""));break;case 5:null==n.value&&o(e,13,t.lastStartLoc,0,_(n)),r.items.push(h(e,n.value||""));break;case 7:null==n.value&&o(e,13,t.lastStartLoc,0,_(n)),r.items.push(d(e,n.value||""));break;case 8:const i=g(e);r.items.push(i.node),a=i.nextConsumeToken||null;break}}while(14!==t.currentType&&1!==t.currentType);const f=1===t.currentType?t.lastOffset:e.currentOffset(),p=1===t.currentType?t.lastEndLoc:e.currentPosition();return l(r,f,p),r}function x(e,t,n,i){const r=e.context();let a=0===i.items.length;const c=s(1,t,n);c.cases=[],c.cases.push(i);do{const t=m(e);a||(a=0===t.items.length),c.cases.push(t)}while(14!==r.currentType);return a&&o(e,10,n,0),l(c,e.currentOffset(),e.currentPosition()),c}function T(e){const t=e.context(),{offset:n,startLoc:i}=t,r=m(e);return 14===t.currentType?r:x(e,n,i,r)}function S(n){const r=v(n,Object(i["a"])({},e)),a=r.context(),c=s(0,a.offset,a.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=T(r),14!==a.currentType&&o(r,13,a.lastStartLoc,0,n[a.offset]||""),l(c,r.currentOffset(),r.currentPosition()),c}return{parse:S}}function _(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function T(e,t={}){const n={ast:e,helpers:new Set},i=()=>n,r=e=>(n.helpers.add(e),e);return{context:i,helper:r}}function S(e,t){for(let n=0;n<e.length;n++)O(e[n],t)}function O(e,t){switch(e.type){case 1:S(e.cases,t),t.helper("plural");break;case 2:S(e.items,t);break;case 6:const n=e;O(n.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function E(e,t={}){const n=T(e);n.helper("normalize"),e.body&&O(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function P(e,t){const{sourceMap:n,filename:i,breakLineCode:r,needIndent:o}=t,s={source:e.loc.source,filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0},a=()=>s;function l(e,t){s.code+=e}function c(e,t=!0){const n=t?r:"";l(o?n+"  ".repeat(e):n)}function u(e=!0){const t=++s.indentLevel;e&&c(t)}function h(e=!0){const t=--s.indentLevel;e&&c(t)}function d(){c(s.indentLevel)}const f=e=>"_"+e,p=()=>s.needIndent;return{context:a,push:l,indent:u,deindent:h,newline:d,helper:f,needIndent:p}}function C(e,t){const{helper:n}=e;e.push(n("linked")+"("),I(e,t.key),t.modifier&&(e.push(", "),I(e,t.modifier)),e.push(")")}function k(e,t){const{helper:n,needIndent:i}=e;e.push(n("normalize")+"(["),e.indent(i());const r=t.items.length;for(let o=0;o<r;o++){if(I(e,t.items[o]),o===r-1)break;e.push(", ")}e.deindent(i()),e.push("])")}function R(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(n("plural")+"(["),e.indent(i());const r=t.cases.length;for(let n=0;n<r;n++){if(I(e,t.cases[n]),n===r-1)break;e.push(", ")}e.deindent(i()),e.push("])")}}function j(e,t){t.body?I(e,t.body):e.push("null")}function I(e,t){const{helper:n}=e;switch(t.type){case 0:j(e,t);break;case 1:R(e,t);break;case 2:k(e,t);break;case 6:C(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:0}}const D=(e,t={})=>{const n=Object(i["q"])(t.mode)?t.mode:"normal",r=Object(i["q"])(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=P(e,{mode:n,filename:r,sourceMap:o,breakLineCode:s,needIndent:a});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(a),l.length>0&&(c.push(`const { ${l.map(e=>`${e}: _${e}`).join(", ")} } = ctx`),c.newline()),c.push("return "),I(c,e),c.deindent(a),c.push("}");const{code:u,map:h}=c.context();return{ast:e,code:u,map:h?h.toJSON():void 0}};function L(e,t={}){const n=Object(i["a"])({},t),r=x(n),o=r.parse(e);return E(o,n),D(o,n)}
/*!
  * @intlify/message-resolver v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */const F=Object.prototype.hasOwnProperty;function A(e,t){return F.call(e,t)}const N=e=>null!==e&&"object"===typeof e,M=[];M[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},M[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},M[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},M[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},M[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},M[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},M[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const B=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H(e){return B.test(e)}function z(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function U(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function V(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(H(t)?z(t):"*"+t)}function W(e){const t=[];let n,i,r,o,s,a,l,c=-1,u=0,h=0;const d=[];function f(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,d[0](),!0}d[0]=()=>{void 0===i?i=r:i+=r},d[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),h++},d[3]=()=>{if(h>0)h--,u=4,d[0]();else{if(h=0,void 0===i)return!1;if(i=V(i),!1===i)return!1;d[1]()}};while(null!==u)if(c++,n=e[c],"\\"!==n||!f()){if(o=U(n),l=M[u],s=l[o]||l["l"]||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=d[s[1]],a&&(r=n,!1===a())))return;if(7===u)return t}}const q=new Map;function G(e,t){if(!N(e))return null;let n=q.get(t);if(n||(n=W(t),n&&q.set(t,n)),!n)return null;const i=n.length;let r=e,o=0;while(o<i){const e=r[n[o]];if(void 0===e)return null;r=e,o++}return r}function $(e){if(!N(e))return e;for(const t in e)if(A(e,t))if(t.includes(".")){const n=t.split("."),i=n.length-1;let r=e;for(let e=0;e<i;e++)n[e]in r||(r[n[e]]={}),r=r[n[e]];r[n[i]]=e[t],delete e[t],N(r[n[i]])&&$(r[n[i]])}else N(e[t])&&$(e[t]);return e}
/*!
  * @intlify/runtime v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */const Z=e=>e,X=e=>"",Y="text",K=e=>0===e.length?"":e.join(""),J=i["s"];function Q(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ee(e){const t=Object(i["m"])(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Object(i["m"])(e.named.count)||Object(i["m"])(e.named.n))?Object(i["m"])(e.named.count)?e.named.count:Object(i["m"])(e.named.n)?e.named.n:t:t}function te(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ne(e={}){const t=e.locale,n=ee(e),r=Object(i["n"])(e.pluralRules)&&Object(i["q"])(t)&&Object(i["l"])(e.pluralRules[t])?e.pluralRules[t]:Q,o=Object(i["n"])(e.pluralRules)&&Object(i["q"])(t)&&Object(i["l"])(e.pluralRules[t])?Q:void 0,s=e=>e[r(n,e.length,o)],a=e.list||[],l=e=>a[e],c=e.named||{};Object(i["m"])(e.pluralIndex)&&te(n,c);const u=e=>c[e];function h(t){const n=Object(i["l"])(e.messages)?e.messages(t):!!Object(i["n"])(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):X)}const d=t=>e.modifiers?e.modifiers[t]:Z,f=Object(i["o"])(e.processor)&&Object(i["l"])(e.processor.normalize)?e.processor.normalize:K,p=Object(i["o"])(e.processor)&&Object(i["l"])(e.processor.interpolate)?e.processor.interpolate:J,g=Object(i["o"])(e.processor)&&Object(i["q"])(e.processor.type)?e.processor.type:Y,m={["list"]:l,["named"]:u,["plural"]:s,["linked"]:(e,t)=>{const n=h(e)(m);return Object(i["q"])(t)?d(t)(n):n},["message"]:h,["type"]:g,["interpolate"]:p,["normalize"]:f};return m}
/*!
  * @intlify/devtools-if v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */const ie={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};
/*!
  * @intlify/core-base v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */let re=null;function oe(e){re=e}function se(e,t,n){re&&re.emit(ie.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ae=le(ie.FunctionTranslate);function le(e){return t=>re&&re.emit(e,t)}const ce="9.1.9",ue=-1,he="";function de(){return{upper:e=>Object(i["q"])(e)?e.toUpperCase():e,lower:e=>Object(i["q"])(e)?e.toLowerCase():e,capitalize:e=>Object(i["q"])(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let fe;function pe(e){fe=e}let ge=null;const me=e=>{ge=e},ve=()=>ge;let ye=0;function be(e={}){const t=Object(i["q"])(e.version)?e.version:ce,n=Object(i["q"])(e.locale)?e.locale:"en-US",r=Object(i["h"])(e.fallbackLocale)||Object(i["o"])(e.fallbackLocale)||Object(i["q"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=Object(i["o"])(e.messages)?e.messages:{[n]:{}},s=Object(i["o"])(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=Object(i["o"])(e.numberFormats)?e.numberFormats:{[n]:{}},l=Object(i["a"])({},e.modifiers||{},de()),c=e.pluralRules||{},u=Object(i["l"])(e.missing)?e.missing:null,h=!Object(i["i"])(e.missingWarn)&&!Object(i["p"])(e.missingWarn)||e.missingWarn,d=!Object(i["i"])(e.fallbackWarn)&&!Object(i["p"])(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,p=!!e.unresolving,g=Object(i["l"])(e.postTranslation)?e.postTranslation:null,m=Object(i["o"])(e.processor)?e.processor:null,v=!Object(i["i"])(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=Object(i["l"])(e.messageCompiler)?e.messageCompiler:fe,w=Object(i["l"])(e.onWarn)?e.onWarn:i["t"],x=e,_=Object(i["n"])(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,T=Object(i["n"])(x.__numberFormatters)?x.__numberFormatters:new Map,S=Object(i["n"])(x.__meta)?x.__meta:{};ye++;const O={version:t,cid:ye,locale:n,fallbackLocale:r,messages:o,datetimeFormats:s,numberFormats:a,modifiers:l,pluralRules:c,missing:u,missingWarn:h,fallbackWarn:d,fallbackFormat:f,unresolving:p,postTranslation:g,processor:m,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,onWarn:w,__datetimeFormatters:_,__numberFormatters:T,__meta:S};return __INTLIFY_PROD_DEVTOOLS__&&se(O,t,S),O}function we(e,t,n,r,o){const{missing:s,onWarn:a}=e;if(null!==s){const r=s(e,n,t,o);return Object(i["q"])(r)?r:t}return t}function xe(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];while(Object(i["h"])(e))e=_e(o,e,t);const s=Object(i["h"])(t)?t:Object(i["o"])(t)?t["default"]?t["default"]:null:t;e=Object(i["q"])(s)?[s]:s,Object(i["h"])(e)&&_e(o,e,!1),r.__localeChainCache.set(n,o)}return o}function _e(e,t,n){let r=!0;for(let o=0;o<t.length&&Object(i["i"])(r);o++){const s=t[o];Object(i["q"])(s)&&(r=Te(e,t[o],n))}return r}function Te(e,t,n){let i;const r=t.split("-");do{const t=r.join("-");i=Se(e,t,n),r.splice(-1,1)}while(r.length&&!0===i);return i}function Se(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(Object(i["h"])(n)||Object(i["o"])(n))&&n[o]&&(r=n[o])}return r}function Oe(e,t,n){const i=e;i.__localeChainCache=new Map,xe(e,n,t)}const Ee=e=>e;let Pe=Object.create(null);function Ce(e,t={}){{const n=t.onCacheKey||Ee,i=n(e),r=Pe[i];if(r)return r;let s=!1;const a=t.onError||o;t.onError=e=>{s=!0,a(e)};const{code:l}=L(e,t),c=new Function("return "+l)();return s?c:Pe[i]=c}}function ke(e){return r(e,null,void 0)}const Re=()=>"",je=e=>Object(i["l"])(e);function Ie(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,fallbackLocale:s,messages:a}=e,[l,c]=Ne(...t),u=Object(i["i"])(c.missingWarn)?c.missingWarn:e.missingWarn,h=Object(i["i"])(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=Object(i["i"])(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,p=Object(i["q"])(c.default)||Object(i["i"])(c.default)?Object(i["i"])(c.default)?l:c.default:n?l:"",g=n||""!==p,m=Object(i["q"])(c.locale)?c.locale:e.locale;d&&De(c);let[v,y,b]=f?[l,m,a[m]||{}]:Le(e,l,m,s,h,u),w=l;if(f||Object(i["q"])(v)||je(v)||g&&(v=p,w=v),!f&&(!Object(i["q"])(v)&&!je(v)||!Object(i["q"])(y)))return o?ue:l;let x=!1;const _=()=>{x=!0},T=je(v)?v:Fe(e,l,y,v,w,_);if(x)return v;const S=Be(e,y,b,c),O=ne(S),E=Ae(e,T,O),P=r?r(E):E;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:Object(i["q"])(l)?l:je(v)?v.key:"",locale:y||(je(v)?v.locale:""),format:Object(i["q"])(v)?v:je(v)?v.source:"",message:P};t.meta=Object(i["a"])({},e.__meta,ve()||{}),ae(t)}return P}function De(e){Object(i["h"])(e.list)?e.list=e.list.map(e=>Object(i["q"])(e)?Object(i["c"])(e):e):Object(i["n"])(e.named)&&Object.keys(e.named).forEach(t=>{Object(i["q"])(e.named[t])&&(e.named[t]=Object(i["c"])(e.named[t]))})}function Le(e,t,n,r,o,s){const{messages:a,onWarn:l}=e,c=xe(e,r,n);let u,h={},d=null,f=n,p=null;const g="translate";for(let m=0;m<c.length;m++){u=p=c[m],h=a[u]||{};if(null===(d=G(h,t))&&(d=h[t]),Object(i["q"])(d)||Object(i["l"])(d))break;const n=we(e,t,u,s,g);n!==t&&(d=n),f=p}return[d,u,h]}function Fe(e,t,n,i,r,o){const{messageCompiler:s,warnHtmlMessage:a}=e;if(je(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}const l=s(i,Me(e,n,r,i,a,o));return l.locale=n,l.key=t,l.source=i,l}function Ae(e,t,n){const i=t(n);return i}function Ne(...e){const[t,n,r]=e,o={};if(!Object(i["q"])(t)&&!Object(i["m"])(t)&&!je(t))throw ke(14);const s=Object(i["m"])(t)?String(t):(je(t),t);return Object(i["m"])(n)?o.plural=n:Object(i["q"])(n)?o.default=n:Object(i["o"])(n)&&!Object(i["k"])(n)?o.named=n:Object(i["h"])(n)&&(o.list=n),Object(i["m"])(r)?o.plural=r:Object(i["q"])(r)?o.default=r:Object(i["o"])(r)&&Object(i["a"])(o,r),[s,o]}function Me(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>Object(i["e"])(t,n,e)}}function Be(e,t,n,r){const{modifiers:o,pluralRules:s}=e,a=r=>{const o=G(n,r);if(Object(i["q"])(o)){let n=!1;const i=()=>{n=!0},s=Fe(e,r,t,o,r,i);return n?Re:s}return je(o)?o:Re},l={locale:t,modifiers:o,pluralRules:s,messages:a};return e.processor&&(l.processor=e.processor),r.list&&(l.list=r.list),r.named&&(l.named=r.named),Object(i["m"])(r.plural)&&(l.pluralIndex=r.plural),l}const He="undefined"!==typeof Intl;He&&Intl.DateTimeFormat,He&&Intl.NumberFormat;function ze(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s}=e,{__datetimeFormatters:a}=e;const[l,c,u,h]=Ue(...t),d=Object(i["i"])(u.missingWarn)?u.missingWarn:e.missingWarn,f=(Object(i["i"])(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),p=Object(i["q"])(u.locale)?u.locale:e.locale,g=xe(e,o,p);if(!Object(i["q"])(l)||""===l)return new Intl.DateTimeFormat(p).format(c);let m,v={},y=null,b=p,w=null;const x="datetime format";for(let S=0;S<g.length;S++){if(m=w=g[S],v=n[m]||{},y=v[l],Object(i["o"])(y))break;we(e,l,m,d,x),b=w}if(!Object(i["o"])(y)||!Object(i["q"])(m))return r?ue:l;let _=`${m}__${l}`;Object(i["k"])(h)||(_=`${_}__${JSON.stringify(h)}`);let T=a.get(_);return T||(T=new Intl.DateTimeFormat(m,Object(i["a"])({},y,h)),a.set(_,T)),f?T.formatToParts(c):T.format(c)}function Ue(...e){const[t,n,r,o]=e;let s,a={},l={};if(Object(i["q"])(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw ke(16);s=new Date(t);try{s.toISOString()}catch(c){throw ke(16)}}else if(Object(i["j"])(t)){if(isNaN(t.getTime()))throw ke(15);s=t}else{if(!Object(i["m"])(t))throw ke(14);s=t}return Object(i["q"])(n)?a.key=n:Object(i["o"])(n)&&(a=n),Object(i["q"])(r)?a.locale=r:Object(i["o"])(r)&&(l=r),Object(i["o"])(o)&&(l=o),[a.key||"",s,a,l]}function Ve(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__datetimeFormatters.has(e)&&i.__datetimeFormatters.delete(e)}}function We(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s}=e,{__numberFormatters:a}=e;const[l,c,u,h]=qe(...t),d=Object(i["i"])(u.missingWarn)?u.missingWarn:e.missingWarn,f=(Object(i["i"])(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),p=Object(i["q"])(u.locale)?u.locale:e.locale,g=xe(e,o,p);if(!Object(i["q"])(l)||""===l)return new Intl.NumberFormat(p).format(c);let m,v={},y=null,b=p,w=null;const x="number format";for(let S=0;S<g.length;S++){if(m=w=g[S],v=n[m]||{},y=v[l],Object(i["o"])(y))break;we(e,l,m,d,x),b=w}if(!Object(i["o"])(y)||!Object(i["q"])(m))return r?ue:l;let _=`${m}__${l}`;Object(i["k"])(h)||(_=`${_}__${JSON.stringify(h)}`);let T=a.get(_);return T||(T=new Intl.NumberFormat(m,Object(i["a"])({},y,h)),a.set(_,T)),f?T.formatToParts(c):T.format(c)}function qe(...e){const[t,n,r,o]=e;let s={},a={};if(!Object(i["m"])(t))throw ke(14);const l=t;return Object(i["q"])(n)?s.key=n:Object(i["o"])(n)&&(s=n),Object(i["q"])(r)?s.locale=r:Object(i["o"])(r)&&(a=r),Object(i["o"])(o)&&(a=o),[s.key||"",l,s,a]}function Ge(e,t,n){const i=e;for(const r in n){const e=`${t}__${r}`;i.__numberFormatters.has(e)&&i.__numberFormatters.delete(e)}}"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(Object(i["f"])().__INTLIFY_PROD_DEVTOOLS__=!1);var $e=n("7a23"),Ze=n("3f4e");
/*!
  * @intlify/vue-devtools v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */
const Xe={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},Ye={["vue-i18n-resource-inspector"]:"Search for scopes ..."},Ke={["vue-i18n-timeline"]:16764185},Je="9.1.9";function Qe(){let e=!1;"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,Object(i["f"])().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(e=!0,Object(i["f"])().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __VUE_I18N_PROD_DEVTOOLS__&&(e=!0,Object(i["f"])().__VUE_I18N_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(Object(i["f"])().__INTLIFY_PROD_DEVTOOLS__=!1)}function et(e,...t){return r(e,null,void 0)}const tt="__INTLIFY_META__",nt=Object(i["r"])("__transrateVNode"),it=Object(i["r"])("__datetimeParts"),rt=Object(i["r"])("__numberParts"),ot=Object(i["r"])("__enableEmitter"),st=Object(i["r"])("__disableEmitter"),at=Object(i["r"])("__setPluralRules");Object(i["r"])("__intlifyMeta");const lt=Object(i["r"])("__injectWithOption");let ct=0;function ut(e){return(t,n,i,r)=>e(n,i,Object($e["o"])()||void 0,r)}function ht(e,t){const{messages:n,__i18n:r}=t,o=Object(i["o"])(n)?n:Object(i["h"])(r)?{}:{[e]:{}};if(Object(i["h"])(r)&&r.forEach(({locale:e,resource:t})=>{e?(o[e]=o[e]||{},ft(t,o[e])):ft(t,o)}),t.flatJson)for(const s in o)Object(i["g"])(o,s)&&$(o[s]);return o}const dt=e=>!Object(i["n"])(e)||Object(i["h"])(e);function ft(e,t){if(dt(e)||dt(t))throw et(20);for(const n in e)Object(i["g"])(e,n)&&(dt(e[n])||dt(t[n])?t[n]=e[n]:ft(e[n],t[n]))}const pt=()=>{const e=Object($e["o"])();return e&&e.type[tt]?{[tt]:e.type[tt]}:null};function gt(e={}){const{__root:t}=e,n=void 0===t;let r=!Object(i["i"])(e.inheritLocale)||e.inheritLocale;const o=Object($e["H"])(t&&r?t.locale.value:Object(i["q"])(e.locale)?e.locale:"en-US"),s=Object($e["H"])(t&&r?t.fallbackLocale.value:Object(i["q"])(e.fallbackLocale)||Object(i["h"])(e.fallbackLocale)||Object(i["o"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),a=Object($e["H"])(ht(o.value,e)),l=Object($e["H"])(Object(i["o"])(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),c=Object($e["H"])(Object(i["o"])(e.numberFormats)?e.numberFormats:{[o.value]:{}});let u=t?t.missingWarn:!Object(i["i"])(e.missingWarn)&&!Object(i["p"])(e.missingWarn)||e.missingWarn,h=t?t.fallbackWarn:!Object(i["i"])(e.fallbackWarn)&&!Object(i["p"])(e.fallbackWarn)||e.fallbackWarn,d=t?t.fallbackRoot:!Object(i["i"])(e.fallbackRoot)||e.fallbackRoot,f=!!e.fallbackFormat,p=Object(i["l"])(e.missing)?e.missing:null,g=Object(i["l"])(e.missing)?ut(e.missing):null,m=Object(i["l"])(e.postTranslation)?e.postTranslation:null,v=!Object(i["i"])(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const b=t?t.modifiers:Object(i["o"])(e.modifiers)?e.modifiers:{};let w,x=e.pluralRules||t&&t.pluralRules;function _(){return be({version:Je,locale:o.value,fallbackLocale:s.value,messages:a.value,datetimeFormats:l.value,numberFormats:c.value,modifiers:b,pluralRules:x,missing:null===g?void 0:g,missingWarn:u,fallbackWarn:h,fallbackFormat:f,unresolving:!0,postTranslation:null===m?void 0:m,warnHtmlMessage:v,escapeParameter:y,__datetimeFormatters:Object(i["o"])(w)?w.__datetimeFormatters:void 0,__numberFormatters:Object(i["o"])(w)?w.__numberFormatters:void 0,__v_emitter:Object(i["o"])(w)?w.__v_emitter:void 0,__meta:{framework:"vue"}})}function T(){return[o.value,s.value,a.value,l.value,c.value]}w=_(),Oe(w,o.value,s.value);const S=Object($e["e"])({get:()=>o.value,set:e=>{o.value=e,w.locale=o.value}}),O=Object($e["e"])({get:()=>s.value,set:e=>{s.value=e,w.fallbackLocale=s.value,Oe(w,o.value,e)}}),E=Object($e["e"])(()=>a.value),P=Object($e["e"])(()=>l.value),C=Object($e["e"])(()=>c.value);function k(){return Object(i["l"])(m)?m:null}function R(e){m=e,w.postTranslation=e}function j(){return p}function I(e){null!==e&&(g=ut(e)),p=e,w.missing=g}function D(e,n,r,o,s,a){let l;if(T(),__INTLIFY_PROD_DEVTOOLS__)try{me(pt()),l=e(w)}finally{me(null)}else l=e(w);if(Object(i["m"])(l)&&l===ue){const[e,i]=n();return t&&d?o(t):s(e)}if(a(l))return l;throw et(14)}function L(...e){return D(t=>Ie(t,...e),()=>Ne(...e),"translate",t=>t.t(...e),e=>e,e=>Object(i["q"])(e))}function F(...e){const[t,n,r]=e;if(r&&!Object(i["n"])(r))throw et(15);return L(t,n,Object(i["a"])({resolvedMessage:!0},r||{}))}function A(...e){return D(t=>ze(t,...e),()=>Ue(...e),"datetime format",t=>t.d(...e),()=>he,e=>Object(i["q"])(e))}function N(...e){return D(t=>We(t,...e),()=>qe(...e),"number format",t=>t.n(...e),()=>he,e=>Object(i["q"])(e))}function M(e){return e.map(e=>Object(i["q"])(e)?Object($e["m"])($e["d"],null,e,0):e)}const B=e=>e,H={normalize:M,interpolate:B,type:"vnode"};function z(...e){return D(t=>{let n;const i=t;try{i.processor=H,n=Ie(i,...e)}finally{i.processor=null}return n},()=>Ne(...e),"translate",t=>t[nt](...e),e=>[Object($e["m"])($e["d"],null,e,0)],e=>Object(i["h"])(e))}function U(...e){return D(t=>We(t,...e),()=>qe(...e),"number format",t=>t[rt](...e),()=>[],e=>Object(i["q"])(e)||Object(i["h"])(e))}function V(...e){return D(t=>ze(t,...e),()=>Ue(...e),"datetime format",t=>t[it](...e),()=>[],e=>Object(i["q"])(e)||Object(i["h"])(e))}function W(e){x=e,w.pluralRules=x}function q(e,t){const n=Object(i["q"])(t)?t:o.value,r=X(n);return null!==G(r,e)}function $(e){let t=null;const n=xe(w,s.value,o.value);for(let i=0;i<n.length;i++){const r=a.value[n[i]]||{},o=G(r,e);if(null!=o){t=o;break}}return t}function Z(e){const n=$(e);return null!=n?n:t&&t.tm(e)||{}}function X(e){return a.value[e]||{}}function Y(e,t){a.value[e]=t,w.messages=a.value}function K(e,t){a.value[e]=a.value[e]||{},ft(t,a.value[e]),w.messages=a.value}function J(e){return l.value[e]||{}}function Q(e,t){l.value[e]=t,w.datetimeFormats=l.value,Ve(w,e,t)}function ee(e,t){l.value[e]=Object(i["a"])(l.value[e]||{},t),w.datetimeFormats=l.value,Ve(w,e,t)}function te(e){return c.value[e]||{}}function ne(e,t){c.value[e]=t,w.numberFormats=c.value,Ge(w,e,t)}function ie(e,t){c.value[e]=Object(i["a"])(c.value[e]||{},t),w.numberFormats=c.value,Ge(w,e,t)}ct++,t&&(Object($e["S"])(t.locale,e=>{r&&(o.value=e,w.locale=e,Oe(w,o.value,s.value))}),Object($e["S"])(t.fallbackLocale,e=>{r&&(s.value=e,w.fallbackLocale=e,Oe(w,o.value,s.value))}));const re={id:ct,locale:S,fallbackLocale:O,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(o.value=t.locale.value,s.value=t.fallbackLocale.value,Oe(w,o.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:E,datetimeFormats:P,numberFormats:C,get modifiers(){return b},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(e){u=e,w.missingWarn=u},get fallbackWarn(){return h},set fallbackWarn(e){h=e,w.fallbackWarn=h},get fallbackRoot(){return d},set fallbackRoot(e){d=e},get fallbackFormat(){return f},set fallbackFormat(e){f=e,w.fallbackFormat=f},get warnHtmlMessage(){return v},set warnHtmlMessage(e){v=e,w.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,w.escapeParameter=e},t:L,rt:F,d:A,n:N,te:q,tm:Z,getLocaleMessage:X,setLocaleMessage:Y,mergeLocaleMessage:K,getDateTimeFormat:J,setDateTimeFormat:Q,mergeDateTimeFormat:ee,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:ie,getPostTranslationHandler:k,setPostTranslationHandler:R,getMissingHandler:j,setMissingHandler:I,[nt]:z,[rt]:U,[it]:V,[at]:W,[lt]:e.__injectWithOption};return re}function mt(e){const t=Object(i["q"])(e.locale)?e.locale:"en-US",n=Object(i["q"])(e.fallbackLocale)||Object(i["h"])(e.fallbackLocale)||Object(i["o"])(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=Object(i["l"])(e.missing)?e.missing:void 0,o=!Object(i["i"])(e.silentTranslationWarn)&&!Object(i["p"])(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!Object(i["i"])(e.silentFallbackWarn)&&!Object(i["p"])(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!Object(i["i"])(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,c=Object(i["o"])(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,h=Object(i["l"])(e.postTranslation)?e.postTranslation:void 0,d=!Object(i["q"])(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!Object(i["i"])(e.sync)||e.sync;let g=e.messages;if(Object(i["o"])(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);g=n.reduce((e,n)=>{const r=e[n]||(e[n]={});return Object(i["a"])(r,t[n]),e},g||{})}const{__i18n:m,__root:v,__injectWithOption:y}=e,b=e.datetimeFormats,w=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:x,datetimeFormats:b,numberFormats:w,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:a,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:h,warnHtmlMessage:d,escapeParameter:f,inheritLocale:p,__i18n:m,__root:v,__injectWithOption:y}}function vt(e={}){const t=gt(mt(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Object(i["i"])(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=Object(i["i"])(e)?!e:e},get silentFallbackWarn(){return Object(i["i"])(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=Object(i["i"])(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,s={};let a=null,l=null;if(!Object(i["q"])(n))throw et(15);const c=n;return Object(i["q"])(r)?s.locale=r:Object(i["h"])(r)?a=r:Object(i["o"])(r)&&(l=r),Object(i["h"])(o)?a=o:Object(i["o"])(o)&&(l=o),t.t(c,a||l||{},s)},rt(...e){return t.rt(...e)},tc(...e){const[n,r,o]=e,s={plural:1};let a=null,l=null;if(!Object(i["q"])(n))throw et(15);const c=n;return Object(i["q"])(r)?s.locale=r:Object(i["m"])(r)?s.plural=r:Object(i["h"])(r)?a=r:Object(i["o"])(r)&&(l=r),Object(i["q"])(o)?s.locale=o:Object(i["h"])(o)?a=o:Object(i["o"])(o)&&(l=o),t.t(c,a||l||{},s)},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return t.d(...e)},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return t.n(...e)},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1},__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:i}=e;i&&i(t,n)}};return n}const yt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},bt={name:"i18n-t",props:Object(i["a"])({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Object(i["m"])(e)||!isNaN(e)}},yt),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Yt({useScope:e.scope,__useComponent:!0}),s=Object.keys(n).filter(e=>"_"!==e);return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=Object(i["q"])(e.plural)?+e.plural:e.plural);const a=wt(t,s),l=o[nt](e.keypath,a,n),c=Object(i["a"])({},r);return Object(i["q"])(e.tag)||Object(i["n"])(e.tag)?Object($e["p"])(e.tag,c,l):Object($e["p"])($e["b"],c,l)}}};function wt({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce((t,n)=>{const i=e[n];return i&&(t[n]=i()),t},{})}function xt(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),Object(i["q"])(e.format)?t.key=e.format:Object(i["n"])(e.format)&&(Object(i["q"])(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?Object(i["a"])({},t,{[r]:e.format[r]}):t,{}));const l=r(e.value,t,a);let c=[t.key];Object(i["h"])(l)?c=l.map((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:l}):[e.value]}):Object(i["q"])(l)&&(c=[l]);const u=Object(i["a"])({},s);return Object(i["q"])(e.tag)||Object(i["n"])(e.tag)?Object($e["p"])(e.tag,u,c):Object($e["p"])($e["b"],u,c)}}const _t=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Tt={name:"i18n-n",props:Object(i["a"])({value:{type:Number,required:!0},format:{type:[String,Object]}},yt),setup(e,t){const n=e.i18n||Yt({useScope:"parent",__useComponent:!0});return xt(e,t,_t,(...e)=>n[rt](...e))}},St=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Ot={name:"i18n-d",props:Object(i["a"])({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yt),setup(e,t){const n=e.i18n||Yt({useScope:"parent",__useComponent:!0});return xt(e,t,St,(...e)=>n[it](...e))}};function Et(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return null!=i?i.__composer:e.global.__composer}}function Pt(e){const t=(t,{instance:n,value:i,modifiers:r})=>{if(!n||!n.$)throw et(22);const o=Et(e,n.$);const s=Ct(i);t.textContent=o.t(...kt(s))};return{beforeMount:t,beforeUpdate:t}}function Ct(e){if(Object(i["q"])(e))return{path:e};if(Object(i["o"])(e)){if(!("path"in e))throw et(19,"path");return e}throw et(20)}function kt(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,a={},l=r||{};return Object(i["q"])(n)&&(a.locale=n),Object(i["m"])(o)&&(a.plural=o),Object(i["m"])(s)&&(a.plural=s),[t,l,a]}function Rt(e,t,...n){const r=Object(i["o"])(n[0])?n[0]:{},o=!!r.useI18nComponentName,s=!Object(i["i"])(r.globalInstall)||r.globalInstall;s&&(e.component(o?"i18n":bt.name,bt),e.component(Tt.name,Tt),e.component(Ot.name,Ot)),e.directive("t",Pt(t))}const jt="vue-i18n: composer properties";let It;async function Dt(e,t){return new Promise((n,i)=>{try{Object(Ze["a"])({id:"vue-devtools-plugin-vue-i18n",label:Xe["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[jt],app:e},i=>{It=i,i.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{Lt(e,n,t)}),i.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&Ft(n,e.vnode.el.__VUE_I18N__):Ft(n,e.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:Xe["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ye["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&zt(n,t)}),i.on.getInspectorState(n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&Vt(n,t)}),i.on.editInspectorState(n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&Gt(n,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:Xe["vue-i18n-timeline"],color:Ke["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),i(!1)}})}function Lt(e,t,n){const i="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==i){const n=e.type.name||e.type.displayName||e.type.__file,i={label:`i18n (${n} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function Ft(e,t){const n=jt;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:At(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function At(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];Object(i["l"])(r)&&"source"in r?t[n]=Ht(r):Object(i["n"])(r)?t[n]=At(r):t[n]=r}),t}const Nt={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Mt(e){return e.replace(/[<>"&]/g,Bt)}function Bt(e){return Nt[e]||e}function Ht(e){const t=e.source?`("${Mt(e.source)}")`:"(?)";return{_custom:{type:"function",display:"<span>ƒ</span> "+t}}}function zt(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[i,r]of t.__instances){const o="composition"===t.mode?r:r.__composer;if(n===o)continue;const s=i.type.name||i.type.displayName||i.type.__file;e.rootNodes.push({id:o.id.toString(),label:s+" Scope"})}}function Ut(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?"composition"===t.mode?n:n.__composer:null}}function Vt(e,t){const n=Ut(e.nodeId,t);n&&(e.state=Wt(n))}function Wt(e){const t={},n="Locale related info",i=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=i;const r="Locale messages info",o=[{type:r,key:"messages",editable:!1,value:At(e.messages.value)}];t[r]=o;const s="Datetime formats info",a=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=a;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];return t[l]=c,t}function qt(e,t){if(It){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),It.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function Gt(e,t){const n=Ut(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&Object(i["q"])(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(Object(i["q"])(e.state.value)||Object(i["h"])(e.state.value)||Object(i["n"])(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&Object(i["i"])(e.state.value)&&(n.inheritLocale=e.state.value)}}function $t(e,t,n){return{beforeCreate(){const i=Object($e["o"])();if(!i)throw et(22);const r=this.$options;if(r.i18n){const n=r.i18n;r.__i18n&&(n.__i18n=r.__i18n),n.__root=t,this===this.$root?this.$i18n=Zt(e,n):(n.__injectWithOption=!0,this.$i18n=vt(n))}else r.__i18n?this===this.$root?this.$i18n=Zt(e,r):this.$i18n=vt({__i18n:r.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(i,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){if(__VUE_I18N_PROD_DEVTOOLS__){this.$el.__VUE_I18N__=this.$i18n.__composer;const e=this.__v_emitter=Object(i["b"])(),t=this.$i18n;t.__enableEmitter&&t.__enableEmitter(e),e.on("*",qt)}},beforeUnmount(){const e=Object($e["o"])();if(!e)throw et(22);if(__VUE_I18N_PROD_DEVTOOLS__){this.__v_emitter&&(this.__v_emitter.off("*",qt),delete this.__v_emitter);const e=this.$i18n;e.__disableEmitter&&e.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}function Zt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[at](t.pluralizationRules||e.pluralizationRules);const n=ht(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}function Xt(e={}){const t=__VUE_I18N_LEGACY_API__&&Object(i["i"])(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!!e.globalInjection,r=new Map,o=__VUE_I18N_LEGACY_API__&&t?vt(e):gt(e),s=Object(i["r"])(""),a={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(__VUE_I18N_PROD_DEVTOOLS__&&(e.__VUE_I18N__=a),e.__VUE_I18N_SYMBOL__=s,e.provide(e.__VUE_I18N_SYMBOL__,a),!t&&n&&tn(e,a.global),__VUE_I18N_FULL_INSTALL__&&Rt(e,a,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin($t(o,o.__composer,a)),__VUE_I18N_PROD_DEVTOOLS__){const n=await Dt(e,a);if(!n)throw et(21);const r=Object(i["b"])();if(t){const e=o;e.__enableEmitter&&e.__enableEmitter(r)}else{const e=o;e[ot]&&e[ot](r)}r.on("*",qt)}},get global(){return o},__instances:r,__getInstance(e){return r.get(e)||null},__setInstance(e,t){r.set(e,t)},__deleteInstance(e){r.delete(e)}};return a}function Yt(e={}){const t=Object($e["o"])();if(null==t)throw et(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw et(17);const n=Object($e["q"])(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw et(22);const r="composition"===n.mode?n.global:n.global.__composer,o=Object(i["k"])(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===o){let n=Object(i["n"])(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=ht(r.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const o=Object.keys(n);if(o.length&&o.forEach(e=>{r.mergeLocaleMessage(e,n[e])}),Object(i["n"])(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach(t=>{r.mergeDateTimeFormat(t,e.datetimeFormats[t])})}if(Object(i["n"])(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach(t=>{r.mergeNumberFormat(t,e.numberFormats[t])})}return r}if("parent"===o){let i=Kt(n,t,e.__useComponent);return null==i&&(i=r),i}if("legacy"===n.mode)throw et(18);const s=n;let a=s.__getInstance(t);if(null==a){const n=t.type,o=Object(i["a"])({},e);n.__i18n&&(o.__i18n=n.__i18n),r&&(o.__root=r),a=gt(o),Jt(s,t,a),s.__setInstance(t,a)}return a}function Kt(e,t,n=!1){let i=null;const r=t.root;let o=t.parent;while(null!=o){const t=e;if("composition"===e.mode)i=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(i=e.__composer),n&&i&&!i[lt]&&(i=null)}if(null!=i)break;if(r===o)break;o=o.parent}return i}function Jt(e,t,n){let r=null;Object($e["z"])(()=>{if(__VUE_I18N_PROD_DEVTOOLS__&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=Object(i["b"])();const e=n;e[ot]&&e[ot](r),r.on("*",qt)}},t),Object($e["A"])(()=>{if(__VUE_I18N_PROD_DEVTOOLS__&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",qt);const e=n;e[st]&&e[st](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}const Qt=["locale","fallbackLocale","availableLocales"],en=["t","rt","d","n","tm"];function tn(e,t){const n=Object.create(null);Qt.forEach(e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw et(22);const r=Object($e["s"])(i.value)?{get(){return i.value.value},set(e){i.value.value=e}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,e,r)}),e.config.globalProperties.$i18n=n,en.forEach(n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw et(22);Object.defineProperty(e.config.globalProperties,"$"+n,i)})}if(pe(Ce),Qe(),__INTLIFY_PROD_DEVTOOLS__){const e=Object(i["f"])();e.__INTLIFY__=!0,oe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},4840:function(e,t,n){var i=n("825a"),r=n("5087"),o=n("b622"),s=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[s])?t:r(n)}},"485a":function(e,t,n){var i=n("da84"),r=n("c65b"),o=n("1626"),s=n("861d"),a=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&o(n=e.toString)&&!s(i=r(n,e)))return i;if(o(n=e.valueOf)&&!s(i=r(n,e)))return i;if("string"!==t&&o(n=e.toString)&&!s(i=r(n,e)))return i;throw a("Can't convert object to primitive value")}},4930:function(e,t,n){var i=n("2d00"),r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"4a0c":function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","/app"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/"],"_resolved":false,"_spec":"0.21.4","_where":"/app","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function c(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,(function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),i.forEach(o,c),i.forEach(s,(function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])})),i.forEach(a,(function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))}));var u=r.concat(o).concat(s).concat(a),h=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return i.forEach(h,c),n}},"4ae1":function(e,t,n){var i=n("23e7"),r=n("d066"),o=n("2ba4"),s=n("0538"),a=n("5087"),l=n("825a"),c=n("861d"),u=n("7c73"),h=n("d039"),d=r("Reflect","construct"),f=Object.prototype,p=[].push,g=h((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),m=!h((function(){d((function(){}))})),v=g||m;i({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){a(e),l(t);var n=arguments.length<3?e:a(arguments[2]);if(m&&!g)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return o(p,i,t),new(o(s,e,i))}var r=n.prototype,h=u(c(r)?r:f),v=o(e,h,t);return c(v)?v:h}})},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),o=n("e330"),s=n("94ca"),a=n("7156"),l=n("9112"),c=n("9bf2").f,u=n("241c").f,h=n("3a9b"),d=n("44e7"),f=n("577e"),p=n("ad6d"),g=n("9f7f"),m=n("6eeb"),v=n("d039"),y=n("1a2d"),b=n("69f3").enforce,w=n("2626"),x=n("b622"),_=n("fce3"),T=n("107c"),S=x("match"),O=r.RegExp,E=O.prototype,P=r.SyntaxError,C=o(p),k=o(E.exec),R=o("".charAt),j=o("".replace),I=o("".indexOf),D=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F=/a/g,A=/a/g,N=new O(F)!==F,M=g.MISSED_STICKY,B=g.UNSUPPORTED_Y,H=i&&(!N||M||_||T||v((function(){return A[S]=!1,O(F)!=F||O(A)==A||"/a/i"!=O(F,"i")}))),z=function(e){for(var t,n=e.length,i=0,r="",o=!1;i<=n;i++)t=R(e,i),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+R(e,++i);return r},U=function(e){for(var t,n=e.length,i=0,r="",o=[],s={},a=!1,l=!1,c=0,u="";i<=n;i++){if(t=R(e,i),"\\"===t)t+=R(e,++i);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:k(L,D(e,i+1))&&(i+=2,l=!0),r+=t,c++;continue;case">"===t&&l:if(""===u||y(s,u))throw new P("Invalid capture group name");s[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=t:r+=t}return[r,o]};if(s("RegExp",H)){for(var V=function(e,t){var n,i,r,o,s,c,u=h(E,this),p=d(e),g=void 0===t,m=[],v=e;if(!u&&p&&g&&e.constructor===V)return e;if((p||h(E,e))&&(e=e.source,g&&(t="flags"in v?v.flags:C(v))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),v=e,_&&"dotAll"in F&&(i=!!t&&I(t,"s")>-1,i&&(t=j(t,/s/g,""))),n=t,M&&"sticky"in F&&(r=!!t&&I(t,"y")>-1,r&&B&&(t=j(t,/y/g,""))),T&&(o=U(e),e=o[0],m=o[1]),s=a(O(e,t),u?this:E,V),(i||r||m.length)&&(c=b(s),i&&(c.dotAll=!0,c.raw=V(z(e),n)),r&&(c.sticky=!0),m.length&&(c.groups=m)),e!==v)try{l(s,"source",""===v?"(?:)":v)}catch(y){}return s},W=function(e){e in V||c(V,e,{configurable:!0,get:function(){return O[e]},set:function(t){O[e]=t}})},q=u(O),G=0;q.length>G;)W(q[G++]);E.constructor=V,V.prototype=E,m(r,"RegExp",V)}w("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("23cb"),o=n("07fa"),s=function(e){return function(t,n,s){var a,l=i(t),c=o(l),u=r(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4d90":function(e,t,n){"use strict";var i=n("23e7"),r=n("0ccb").start,o=n("9a0c");i({target:"String",proto:!0,forced:o},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4dae":function(e,t,n){var i=n("da84"),r=n("23cb"),o=n("07fa"),s=n("8418"),a=i.Array,l=Math.max;e.exports=function(e,t,n){for(var i=o(e),c=r(t,i),u=r(void 0===n?i:n,i),h=a(l(u-c,0)),d=0;c<u;c++,d++)s(h,d,e[c]);return h.length=d,h}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),s=o("filter");i({target:"Array",proto:!0,forced:!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("da84"),r=n("0366"),o=n("c65b"),s=n("7b0b"),a=n("9bdd"),l=n("e95a"),c=n("68ee"),u=n("07fa"),h=n("8418"),d=n("9a1f"),f=n("35a1"),p=i.Array;e.exports=function(e){var t=s(e),n=c(this),i=arguments.length,g=i>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,i>2?arguments[2]:void 0));var v,y,b,w,x,_,T=f(t),S=0;if(!T||this==p&&l(T))for(v=u(t),y=n?new this(v):p(v);v>S;S++)_=m?g(t[S],S):t[S],h(y,S,_);else for(w=d(t,T),x=w.next,y=n?new this:[];!(b=o(x,w)).done;S++)_=m?a(w,g,[b.value,S],!0):b.value,h(y,S,_);return y.length=S,y}},"4ec9":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"4fad":function(e,t,n){var i=n("d039"),r=n("861d"),o=n("c6b6"),s=n("d86b"),a=Object.isExtensible,l=i((function(){a(1)}));e.exports=l||s?function(e){return!!r(e)&&((!s||"ArrayBuffer"!=o(e))&&(!a||a(e)))}:a},5087:function(e,t,n){var i=n("da84"),r=n("68ee"),o=n("0d51"),s=i.TypeError;e.exports=function(e){if(r(e))return e;throw s(o(e)+" is not a constructor")}},"50c4":function(e,t,n){var i=n("5926"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),s=n("2444");function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){a(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return a(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var i=n("2ba4"),r=n("c65b"),o=n("e330"),s=n("d784"),a=n("d039"),l=n("825a"),c=n("1626"),u=n("5926"),h=n("50c4"),d=n("577e"),f=n("1d80"),p=n("8aa5"),g=n("dc4a"),m=n("0cb2"),v=n("14c3"),y=n("b622"),b=y("replace"),w=Math.max,x=Math.min,_=o([].concat),T=o([].push),S=o("".indexOf),O=o("".slice),E=function(e){return void 0===e?e:String(e)},P=function(){return"$0"==="a".replace(/./,"$0")}(),C=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),k=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var o=C?"$":"$0";return[function(e,n){var i=f(this),o=void 0==e?void 0:g(e,b);return o?r(o,e,i,n):r(t,d(i),e,n)},function(e,r){var s=l(this),a=d(e);if("string"==typeof r&&-1===S(r,o)&&-1===S(r,"$<")){var f=n(t,s,a,r);if(f.done)return f.value}var g=c(r);g||(r=d(r));var y=s.global;if(y){var b=s.unicode;s.lastIndex=0}var P=[];while(1){var C=v(s,a);if(null===C)break;if(T(P,C),!y)break;var k=d(C[0]);""===k&&(s.lastIndex=p(a,h(s.lastIndex),b))}for(var R="",j=0,I=0;I<P.length;I++){C=P[I];for(var D=d(C[0]),L=w(x(u(C.index),a.length),0),F=[],A=1;A<C.length;A++)T(F,E(C[A]));var N=C.groups;if(g){var M=_([D],F,L,a);void 0!==N&&T(M,N);var B=d(i(r,void 0,M))}else B=m(D,a,L,F,N,r);L>=j&&(R+=O(a,j,L)+B,j=L+D.length)}return R+O(a,j)}]}),!k||!P||C)},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");var i=n("ade3");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.3",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){var i=n("d066"),r=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?l(t,n(e)):t}},"577e":function(e,t,n){var i=n("da84"),r=n("f5df"),o=i.String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("e330"),r=n("1d80"),o=n("577e"),s=n("5899"),a=i("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),h=function(e){return function(t){var n=o(r(t));return 1&e&&(n=a(n,c,"")),2&e&&(n=a(n,u,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},5926:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?i:n)(t)}},"59ed":function(e,t,n){var i=n("da84"),r=n("1626"),o=n("0d51"),s=i.TypeError;e.exports=function(e){if(r(e))return e;throw s(o(e)+" is not a function")}},"5a34":function(e,t,n){var i=n("da84"),r=n("44e7"),o=i.TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},"5b81":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("c65b"),s=n("e330"),a=n("1d80"),l=n("1626"),c=n("44e7"),u=n("577e"),h=n("dc4a"),d=n("ad6d"),f=n("0cb2"),p=n("b622"),g=n("c430"),m=p("replace"),v=RegExp.prototype,y=r.TypeError,b=s(d),w=s("".indexOf),x=s("".replace),_=s("".slice),T=Math.max,S=function(e,t,n){return n>e.length?-1:""===t?n:w(e,t,n)};i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,r,s,d,p,O,E,P,C=a(this),k=0,R=0,j="";if(null!=e){if(n=c(e),n&&(i=u(a("flags"in v?e.flags:b(e))),!~w(i,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(r=h(e,m),r)return o(r,e,C,t);if(g&&n)return x(u(C),e,t)}s=u(C),d=u(e),p=l(t),p||(t=u(t)),O=d.length,E=T(1,O),k=S(s,d,0);while(-1!==k)P=p?u(t(d,k,s)):f(d,s,k,[],void 0,t),j+=_(s,R,k)+P,R=k+O,k=S(s,d,k+E);return R<s.length&&(j+=_(s,R)),j}})},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5d41":function(e,t,n){var i=n("23e7"),r=n("c65b"),o=n("861d"),s=n("825a"),a=n("c60d"),l=n("06cf"),c=n("e163");function u(e,t){var n,i,h=arguments.length<3?e:arguments[2];return s(e)===h?e[t]:(n=l.f(e,t),n?a(n)?n.value:void 0===n.get?void 0:r(n.get,h):o(i=c(e))?u(i,t,h):void 0)}i({target:"Reflect",stat:!0},{get:u})},"5e77":function(e,t,n){var i=n("83ab"),r=n("1a2d"),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},6069:function(e,t){e.exports="object"==typeof window},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("c65b"),s=n("d039"),a=n("df75"),l=n("7418"),c=n("d1e7"),u=n("7b0b"),h=n("44ad"),d=Object.assign,f=Object.defineProperty,p=r([].concat);e.exports=!d||s((function(){if(i&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||a(d({},t)).join("")!=r}))?function(e,t){var n=u(e),r=arguments.length,s=1,d=l.f,f=c.f;while(r>s){var g,m=h(arguments[s++]),v=d?p(a(m),d(m)):a(m),y=v.length,b=0;while(y>b)g=v[b++],i&&!o(f,m,g)||(n[g]=m[g])}return n}:d},6547:function(e,t,n){var i=n("e330"),r=n("5926"),o=n("577e"),s=n("1d80"),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(e){return function(t,n){var i,u,h=o(s(t)),d=r(n),f=h.length;return d<0||d>=f?e?"":void 0:(i=l(h,d),i<55296||i>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?e?a(h,d):i:e?c(h,d,d+2):u-56320+(i-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),o=n("e2cc"),s=n("0366"),a=n("19aa"),l=n("2266"),c=n("7dd0"),u=n("2626"),h=n("83ab"),d=n("f183").fastKey,f=n("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){a(e,f),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=i&&l(i,e[c],{that:e,AS_ENTRIES:n})})),f=u.prototype,m=g(t),v=function(e,t,n){var i,r,o=m(e),s=y(e,t);return s?s.value=n:(o.last=s={index:r=d(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=s),i&&(i.next=s),h?o.size++:e.size++,"F"!==r&&(o.index[r]=s)),e},y=function(e,t){var n,i=m(e),r=d(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(f,{clear:function(){var e=this,t=m(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,n=m(t),i=y(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),h?n.size--:t.size--}return!!i},forEach:function(e){var t,n=m(this),i=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),o(f,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),h&&i(f,"size",{get:function(){return m(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=g(t),o=g(i);c(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"65f0":function(e,t,n){var i=n("0b42");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},"68ee":function(e,t,n){var i=n("e330"),r=n("d039"),o=n("1626"),s=n("f5df"),a=n("d066"),l=n("8925"),c=function(){},u=[],h=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=i(d.exec),p=!d.exec(c),g=function(e){if(!o(e))return!1;try{return h(c,u,e),!0}catch(t){return!1}},m=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(t){return!0}};m.sham=!0,e.exports=!h||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},"69f3":function(e,t,n){var i,r,o,s=n("7f9a"),a=n("da84"),l=n("e330"),c=n("861d"),u=n("9112"),h=n("1a2d"),d=n("c6cd"),f=n("f772"),p=n("d012"),g="Object already initialized",m=a.TypeError,v=a.WeakMap,y=function(e){return o(e)?r(e):i(e,{})},b=function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(s||d.state){var w=d.state||(d.state=new v),x=l(w.get),_=l(w.has),T=l(w.set);i=function(e,t){if(_(w,e))throw new m(g);return t.facade=e,T(w,e,t),t},r=function(e){return x(w,e)||{}},o=function(e){return _(w,e)}}else{var S=f("state");p[S]=!0,i=function(e,t){if(h(e,S))throw new m(g);return t.facade=e,u(e,S,t),t},r=function(e){return h(e,S)?e[S]:{}},o=function(e){return h(e,S)}}e.exports={set:i,get:r,has:o,enforce:y,getterFor:b}},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},"6c02":function(e,t,n){"use strict";n.d(t,"a",(function(){return Qe})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return it})),n.d(t,"d",(function(){return nt}));var i=n("7a23");n("3f4e");
/*!
  * vue-router v4.0.12
  * (c) 2021 Eduardo San Martin Morote
  * @license MIT
  */
const r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=e=>r?Symbol(e):"_vr_"+e,s=o("rvlm"),a=o("rvd"),l=o("r"),c=o("rl"),u=o("rvl"),h="undefined"!==typeof window;function d(e){return e.__esModule||r&&"Module"===e[Symbol.toStringTag]}const f=Object.assign;function p(e,t){const n={};for(const i in t){const r=t[i];n[i]=Array.isArray(r)?r.map(e):e(r)}return n}const g=()=>{};const m=/\/$/,v=e=>e.replace(m,"");function y(e,t,n="/"){let i,r={},o="",s="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(i=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),r=e(o)),l>-1&&(i=i||t.slice(0,l),s=t.slice(l,t.length)),i=E(null!=i?i:t,n),{fullPath:i+(o&&"?")+o+s,path:i,query:r,hash:s}}function b(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function w(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function x(e,t,n){const i=t.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&_(t.matched[i],n.matched[r])&&T(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function _(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function T(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!S(e[n],t[n]))return!1;return!0}function S(e,t){return Array.isArray(e)?O(e,t):Array.isArray(t)?O(t,e):e===t}function O(e,t){return Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}function E(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let r,o,s=n.length-1;for(r=0;r<i.length;r++)if(o=i[r],1!==s&&"."!==o){if(".."!==o)break;s--}return n.slice(0,s).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var P,C;(function(e){e["pop"]="pop",e["push"]="push"})(P||(P={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(C||(C={}));function k(e){if(!e)if(h){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),v(e)}const R=/^[^#]+#/;function j(e,t){return e.replace(R,"#")+t}function I(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const D=()=>({left:window.pageXOffset,top:window.pageYOffset});function L(e){let t;if("el"in e){const n=e.el,i="string"===typeof n&&n.startsWith("#");0;const r="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=I(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function F(e,t){const n=history.state?history.state.position-t:-1;return n+e}const A=new Map;function N(e,t){A.set(e,t)}function M(e){const t=A.get(e);return A.delete(e),t}let B=()=>location.protocol+"//"+location.host;function H(e,t){const{pathname:n,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let t=r.includes(e.slice(o))?e.slice(o).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),w(n,"")}const s=w(n,e);return s+i+r}function z(e,t,n,i){let r=[],o=[],s=null;const a=({state:o})=>{const a=H(e,location),l=n.value,c=t.value;let u=0;if(o){if(n.value=a,t.value=o,s&&s===l)return void(s=null);u=c?o.position-c.position:0}else i(a);r.forEach(e=>{e(n.value,l,{delta:u,type:P.pop,direction:u?u>0?C.forward:C.back:C.unknown})})};function l(){s=n.value}function c(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return o.push(t),t}function u(){const{history:e}=window;e.state&&e.replaceState(f({},e.state,{scroll:D()}),"")}function h(){for(const e of o)e();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:h}}function U(e,t,n,i=!1,r=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:r?D():null}}function V(e){const{history:t,location:n}=window,i={value:H(e,n)},r={value:t.state};function o(i,o,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:B()+e+i;try{t[s?"replaceState":"pushState"](o,"",l),r.value=o}catch(c){console.error(c),n[s?"replace":"assign"](l)}}function s(e,n){const s=f({},t.state,U(r.value.back,e,r.value.forward,!0),n,{position:r.value.position});o(e,s,!0),i.value=e}function a(e,n){const s=f({},r.value,t.state,{forward:e,scroll:D()});o(s.current,s,!0);const a=f({},U(i.value,e,null),{position:s.position+1},n);o(e,a,!1),i.value=e}return r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:r,push:a,replace:s}}function W(e){e=k(e);const t=V(e),n=z(e,t.state,t.location,t.replace);function i(e,t=!0){t||n.pauseListeners(),history.go(e)}const r=f({location:"",base:e,go:i,createHref:j.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function q(e){return"string"===typeof e||e&&"object"===typeof e}function G(e){return"string"===typeof e||"symbol"===typeof e}const $={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Z=o("nf");var X;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(X||(X={}));function Y(e,t){return f(new Error,{type:e,[Z]:!0},t)}function K(e,t){return e instanceof Error&&Z in e&&(null==t||!!(e.type&t))}const J="[^/]+?",Q={sensitive:!1,strict:!1,start:!0,end:!0},ee=/[.+*?^${}()[\]/\\]/g;function te(e,t){const n=f({},Q,t),i=[];let r=n.start?"^":"";const o=[];for(const u of e){const e=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let t=0;t<u.length;t++){const i=u[t];let s=40+(n.sensitive?.25:0);if(0===i.type)t||(r+="/"),r+=i.value.replace(ee,"\\$&"),s+=40;else if(1===i.type){const{value:e,repeatable:n,optional:a,regexp:l}=i;o.push({name:e,repeatable:n,optional:a});const h=l||J;if(h!==J){s+=10;try{new RegExp(`(${h})`)}catch(c){throw new Error(`Invalid custom RegExp for param "${e}" (${h}): `+c.message)}}let d=n?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;t||(d=a&&u.length<2?`(?:/${d})`:"/"+d),a&&(d+="?"),r+=d,s+=20,a&&(s+=-8),n&&(s+=-20),".*"===h&&(s+=-50)}e.push(s)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");function a(e){const t=e.match(s),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",r=o[i-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n}function l(t){let n="",i=!1;for(const r of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:o,repeatable:s,optional:a}=e,l=o in t?t[o]:"";if(Array.isArray(l)&&!s)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const c=Array.isArray(l)?l.join("/"):l;if(!c){if(!a)throw new Error(`Missing required param "${o}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n}return{re:s,score:i,keys:o,parse:a,stringify:l}}function ne(e,t){let n=0;while(n<e.length&&n<t.length){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const i=e.score,r=t.score;while(n<i.length&&n<r.length){const e=ne(i[n],r[n]);if(e)return e;n++}return r.length-i.length}const re={type:0,value:""},oe=/[a-zA-Z0-9_]/;function se(e){if(!e)return[[]];if("/"===e)return[[re]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,i=n;const r=[];let o;function s(){o&&r.push(o),o=[]}let a,l=0,c="",u="";function h(){c&&(0===n?o.push({type:0,value:c}):1===n||2===n||3===n?(o.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}while(l<e.length)if(a=e[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&h(),s()):":"===a?(h(),n=1):d();break;case 4:d(),n=i;break;case 1:"("===a?n=2:oe.test(a)?d():(h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:t("Unknown state");break}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),h(),s(),r}function ae(e,t,n){const i=te(se(e.path),n);const r=f(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf===!t.record.aliasOf&&t.children.push(r),r}function le(e,t){const n=[],i=new Map;function r(e){return i.get(e)}function o(e,n,i){const r=!i,a=ue(e);a.aliasOf=i&&i.record;const c=pe(t,e),u=[a];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(f({},a,{components:i?i.record.components:a.components,path:e,aliasOf:i?i.record:a}))}let h,d;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&i+u)}if(h=ae(t,n,c),i?i.alias.push(h):(d=d||h,d!==h&&d.alias.push(h),r&&e.name&&!de(h)&&s(e.name)),"children"in a){const e=a.children;for(let t=0;t<e.length;t++)o(e[t],h,i&&i.children[t])}i=i||h,l(h)}return d?()=>{s(d)}:g}function s(e){if(G(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function a(){return n}function l(e){let t=0;while(t<n.length&&ie(e,n[t])>=0)t++;n.splice(t,0,e),e.record.name&&!de(e)&&i.set(e.record.name,e)}function c(e,t){let r,o,s,a={};if("name"in e&&e.name){if(r=i.get(e.name),!r)throw Y(1,{location:e});s=r.record.name,a=f(ce(t.params,r.keys.filter(e=>!e.optional).map(e=>e.name)),e.params),o=r.stringify(a)}else if("path"in e)o=e.path,r=n.find(e=>e.re.test(o)),r&&(a=r.parse(o),s=r.record.name);else{if(r=t.name?i.get(t.name):n.find(e=>e.re.test(t.path)),!r)throw Y(1,{location:e,currentLocation:t});s=r.record.name,a=f({},t.params,e.params),o=r.stringify(a)}const l=[];let c=r;while(c)l.unshift(c.record),c=c.parent;return{name:s,path:o,params:a,matched:l,meta:fe(l)}}return t=pe({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>o(e)),{addRoute:o,resolve:c,removeRoute:s,getRoutes:a,getRecordMatcher:r}}function ce(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function ue(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:he(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function he(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="boolean"===typeof n?n:n[i];return t}function de(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fe(e){return e.reduce((e,t)=>f(e,t.meta),{})}function pe(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}const ge=/#/g,me=/&/g,ve=/\//g,ye=/=/g,be=/\?/g,we=/\+/g,xe=/%5B/g,_e=/%5D/g,Te=/%5E/g,Se=/%60/g,Oe=/%7B/g,Ee=/%7C/g,Pe=/%7D/g,Ce=/%20/g;function ke(e){return encodeURI(""+e).replace(Ee,"|").replace(xe,"[").replace(_e,"]")}function Re(e){return ke(e).replace(Oe,"{").replace(Pe,"}").replace(Te,"^")}function je(e){return ke(e).replace(we,"%2B").replace(Ce,"+").replace(ge,"%23").replace(me,"%26").replace(Se,"`").replace(Oe,"{").replace(Pe,"}").replace(Te,"^")}function Ie(e){return je(e).replace(ye,"%3D")}function De(e){return ke(e).replace(ge,"%23").replace(be,"%3F")}function Le(e){return null==e?"":De(e).replace(ve,"%2F")}function Fe(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Ae(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],i=(n?e.slice(1):e).split("&");for(let r=0;r<i.length;++r){const e=i[r].replace(we," "),n=e.indexOf("="),o=Fe(n<0?e:e.slice(0,n)),s=n<0?null:Fe(e.slice(n+1));if(o in t){let e=t[o];Array.isArray(e)||(e=t[o]=[e]),e.push(s)}else t[o]=s}return t}function Ne(e){let t="";for(let n in e){const i=e[n];if(n=Ie(n),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}const r=Array.isArray(i)?i.map(e=>e&&je(e)):[i&&je(i)];r.forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function Me(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=Array.isArray(i)?i.map(e=>null==e?null:""+e):null==i?i:""+i)}return t}function Be(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function He(e,t,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((s,a)=>{const l=e=>{!1===e?a(Y(4,{from:n,to:t})):e instanceof Error?a(e):q(e)?a(Y(2,{from:t,to:e})):(o&&i.enterCallbacks[r]===o&&"function"===typeof e&&o.push(e),s())},c=e.call(i&&i.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(e=>a(e))})}function ze(e,t,n,i){const r=[];for(const o of e)for(const e in o.components){let s=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(Ue(s)){const a=s.__vccOpts||s,l=a[t];l&&r.push(He(l,n,i,o,e))}else{let a=s();0,r.push(()=>a.then(r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${o.path}"`));const s=d(r)?r.default:r;o.components[e]=s;const a=s.__vccOpts||s,l=a[t];return l&&He(l,n,i,o,e)()}))}}return r}function Ue(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Ve(e){const t=Object(i["q"])(l),n=Object(i["q"])(c),r=Object(i["e"])(()=>t.resolve(Object(i["O"])(e.to))),o=Object(i["e"])(()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],o=n.matched;if(!i||!o.length)return-1;const s=o.findIndex(_.bind(null,i));if(s>-1)return s;const a=Ze(e[t-2]);return t>1&&Ze(i)===a&&o[o.length-1].path!==a?o.findIndex(_.bind(null,e[t-2])):s}),s=Object(i["e"])(()=>o.value>-1&&$e(n.params,r.value.params)),a=Object(i["e"])(()=>o.value>-1&&o.value===n.matched.length-1&&T(n.params,r.value.params));function u(n={}){return Ge(n)?t[Object(i["O"])(e.replace)?"replace":"push"](Object(i["O"])(e.to)).catch(g):Promise.resolve()}return{route:r,href:Object(i["e"])(()=>r.value.href),isActive:s,isExactActive:a,navigate:u}}const We=Object(i["n"])({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ve,setup(e,{slots:t}){const n=Object(i["F"])(Ve(e)),{options:r}=Object(i["q"])(l),o=Object(i["e"])(()=>({[Xe(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Xe(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:Object(i["p"])("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),qe=We;function Ge(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $e(e,t){for(const n in t){const i=t[n],r=e[n];if("string"===typeof i){if(i!==r)return!1}else if(!Array.isArray(r)||r.length!==i.length||i.some((e,t)=>e!==r[t]))return!1}return!0}function Ze(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xe=(e,t,n)=>null!=e?e:null!=t?t:n,Ye=Object(i["n"])({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const r=Object(i["q"])(u),o=Object(i["e"])(()=>e.route||r.value),l=Object(i["q"])(a,0),c=Object(i["e"])(()=>o.value.matched[l]);Object(i["D"])(a,l+1),Object(i["D"])(s,c),Object(i["D"])(u,o);const h=Object(i["H"])();return Object(i["S"])(()=>[h.value,c.value,e.name],([e,t,n],[i,r,o])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&_(t,r)&&i||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const r=o.value,s=c.value,a=s&&s.components[e.name],l=e.name;if(!a)return Ke(n.default,{Component:a,route:r});const u=s.props[e.name],d=u?!0===u?r.params:"function"===typeof u?u(r):u:null,p=e=>{e.component.isUnmounted&&(s.instances[l]=null)},g=Object(i["p"])(a,f({},d,t,{onVnodeUnmounted:p,ref:h}));return Ke(n.default,{Component:g,route:r})||g}}});function Ke(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Je=Ye;function Qe(e){const t=le(e.routes,e),n=e.parseQuery||Ae,r=e.stringifyQuery||Ne,o=e.history;const s=Be(),a=Be(),d=Be(),m=Object(i["M"])($);let v=$;h&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=p.bind(null,e=>""+e),_=p.bind(null,Le),T=p.bind(null,Fe);function S(e,n){let i,r;return G(e)?(i=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,i)}function O(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function E(){return t.getRoutes().map(e=>e.record)}function C(e){return!!t.getRecordMatcher(e)}function k(e,i){if(i=f({},i||m.value),"string"===typeof e){const r=y(n,e,i.path),s=t.resolve({path:r.path},i),a=o.createHref(r.fullPath);return f(r,s,{params:T(s.params),hash:Fe(r.hash),redirectedFrom:void 0,href:a})}let s;if("path"in e)s=f({},e,{path:y(n,e.path,i.path).path});else{const t=f({},e.params);for(const e in t)null==t[e]&&delete t[e];s=f({},e,{params:_(e.params)}),i.params=_(i.params)}const a=t.resolve(s,i),l=e.hash||"";a.params=w(T(a.params));const c=b(r,f({},e,{hash:Re(l),path:a.path})),u=o.createHref(c);return f({fullPath:c,hash:l,query:r===Ne?Me(e.query):e.query||{}},a,{redirectedFrom:void 0,href:u})}function R(e){return"string"===typeof e?y(n,e,m.value.path):f({},e)}function j(e,t){if(v!==e)return Y(8,{from:t,to:e})}function I(e){return H(e)}function A(e){return I(f(R(e),{replace:!0}))}function B(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"===typeof n?n(e):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=R(i):{path:i},i.params={}),f({query:e.query,hash:e.hash,params:e.params},i)}}function H(e,t){const n=v=k(e),i=m.value,o=e.state,s=e.force,a=!0===e.replace,l=B(n);if(l)return H(f(R(l),{state:o,force:s,replace:a}),t||n);const c=n;let u;return c.redirectedFrom=t,!s&&x(r,i,n)&&(u=Y(16,{to:c,from:i}),ie(i,i,!0,!1)),(u?Promise.resolve(u):U(c,i)).catch(e=>K(e)?e:ee(e,c,i)).then(e=>{if(e){if(K(e,2))return H(f(R(e.to),{state:o,force:s,replace:a}),t||c)}else e=W(c,i,!0,a,o);return V(c,i,e),e})}function z(e,t){const n=j(e,t);return n?Promise.reject(n):Promise.resolve()}function U(e,t){let n;const[i,r,o]=tt(e,t);n=ze(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach(i=>{n.push(He(i,e,t))});const l=z.bind(null,e,t);return n.push(l),et(n).then(()=>{n=[];for(const i of s.list())n.push(He(i,e,t));return n.push(l),et(n)}).then(()=>{n=ze(r,"beforeRouteUpdate",e,t);for(const i of r)i.updateGuards.forEach(i=>{n.push(He(i,e,t))});return n.push(l),et(n)}).then(()=>{n=[];for(const i of e.matched)if(i.beforeEnter&&!t.matched.includes(i))if(Array.isArray(i.beforeEnter))for(const r of i.beforeEnter)n.push(He(r,e,t));else n.push(He(i.beforeEnter,e,t));return n.push(l),et(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ze(o,"beforeRouteEnter",e,t),n.push(l),et(n))).then(()=>{n=[];for(const i of a.list())n.push(He(i,e,t));return n.push(l),et(n)}).catch(e=>K(e,8)?e:Promise.reject(e))}function V(e,t,n){for(const i of d.list())i(e,t,n)}function W(e,t,n,i,r){const s=j(e,t);if(s)return s;const a=t===$,l=h?history.state:{};n&&(i||a?o.replace(e.fullPath,f({scroll:a&&l&&l.scroll},r)):o.push(e.fullPath,r)),m.value=e,ie(e,t,n,a),ne()}let q;function Z(){q=o.listen((e,t,n)=>{const i=k(e),r=B(i);if(r)return void H(f(r,{replace:!0}),i).catch(g);v=i;const s=m.value;h&&N(F(s.fullPath,n.delta),D()),U(i,s).catch(e=>K(e,12)?e:K(e,2)?(H(e.to,i).then(e=>{K(e,20)&&!n.delta&&n.type===P.pop&&o.go(-1,!1)}).catch(g),Promise.reject()):(n.delta&&o.go(-n.delta,!1),ee(e,i,s))).then(e=>{e=e||W(i,s,!1),e&&(n.delta?o.go(-n.delta,!1):n.type===P.pop&&K(e,20)&&o.go(-1,!1)),V(i,s,e)}).catch(g)})}let X,J=Be(),Q=Be();function ee(e,t,n){ne(e);const i=Q.list();return i.length?i.forEach(i=>i(e,t,n)):console.error(e),Promise.reject(e)}function te(){return X&&m.value!==$?Promise.resolve():new Promise((e,t)=>{J.add([e,t])})}function ne(e){X||(X=!0,Z(),J.list().forEach(([t,n])=>e?n(e):t()),J.reset())}function ie(t,n,r,o){const{scrollBehavior:s}=e;if(!h||!s)return Promise.resolve();const a=!r&&M(F(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return Object(i["u"])().then(()=>s(t,n,a)).then(e=>e&&L(e)).catch(e=>ee(e,t,n))}const re=e=>o.go(e);let oe;const se=new Set,ae={currentRoute:m,addRoute:S,removeRoute:O,hasRoute:C,getRoutes:E,resolve:k,options:e,push:I,replace:A,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:s.add,beforeResolve:a.add,afterEach:d.add,onError:Q.add,isReady:te,install(e){const t=this;e.component("RouterLink",qe),e.component("RouterView",Je),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Object(i["O"])(m)}),h&&!oe&&m.value===$&&(oe=!0,I(o.location).catch(e=>{0}));const n={};for(const o in $)n[o]=Object(i["e"])(()=>m.value[o]);e.provide(l,t),e.provide(c,Object(i["F"])(n)),e.provide(u,m);const r=e.unmount;se.add(e),e.unmount=function(){se.delete(e),se.size<1&&(v=$,q&&q(),m.value=$,oe=!1,X=!1),r()}}};return ae}function et(e){return e.reduce((e,t)=>e.then(()=>t()),Promise.resolve())}function tt(e,t){const n=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const o=t.matched[s];o&&(e.matched.find(e=>_(e,o))?i.push(o):n.push(o));const a=e.matched[s];a&&(t.matched.find(e=>_(e,a))||r.push(a))}return[n,i,r]}function nt(){return Object(i["q"])(l)}function it(){return Object(i["q"])(c)}},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("e330"),s=n("94ca"),a=n("6eeb"),l=n("f183"),c=n("2266"),u=n("19aa"),h=n("1626"),d=n("861d"),f=n("d039"),p=n("1c7e"),g=n("d44e"),m=n("7156");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),b=v?"set":"add",w=r[e],x=w&&w.prototype,_=w,T={},S=function(e){var t=o(x[e]);a(x,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},O=s(e,!h(w)||!(y||x.forEach&&!f((function(){(new w).entries().next()}))));if(O)_=n.getConstructor(t,e,v,b),l.enable();else if(s(e,!0)){var E=new _,P=E[b](y?{}:-0,1)!=E,C=f((function(){E.has(1)})),k=p((function(e){new w(e)})),R=!y&&f((function(){var e=new w,t=5;while(t--)e[b](t,t);return!e.has(-0)}));k||(_=t((function(e,t){u(e,x);var n=m(new w,e,_);return void 0!=t&&c(t,n[b],{that:n,AS_ENTRIES:v}),n})),_.prototype=x,x.constructor=_),(C||R)&&(S("delete"),S("has"),v&&S("get")),(R||P)&&S(b),y&&x.clear&&delete x.clear}return T[e]=_,i({global:!0,forced:_!=w},T),g(_,e),y||n.setStrong(_,e,v),_}},"6eeb":function(e,t,n){var i=n("da84"),r=n("1626"),o=n("1a2d"),s=n("9112"),a=n("ce4e"),l=n("8925"),c=n("69f3"),u=n("5e77").CONFIGURABLE,h=c.get,d=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var c,h=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,m=l&&void 0!==l.name?l.name:t;r(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||u&&n.name!==m)&&s(n,"name",m),c=d(n),c.source||(c.source=f.join("string"==typeof m?m:""))),e!==i?(h?!g&&e[t]&&(p=!0):delete e[t],p?e[t]=n:s(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return r(this)&&h(this).source||l(this)}))},7156:function(e,t,n){var i=n("1626"),r=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var s,a;return o&&i(s=t.constructor)&&s!==n&&r(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),r=n("1a2d"),o=n("e538"),s=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||s(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){var i=n("cc12"),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"7a23":function(e,t,n){"use strict";n.d(t,"r",(function(){return ke})),n.d(t,"s",(function(){return Ae})),n.d(t,"t",(function(){return je})),n.d(t,"E",(function(){return Ve})),n.d(t,"F",(function(){return Te})),n.d(t,"G",(function(){return Oe})),n.d(t,"H",(function(){return Ne})),n.d(t,"M",(function(){return Me})),n.d(t,"O",(function(){return ze})),n.d(t,"v",(function(){return i["I"]})),n.d(t,"w",(function(){return i["J"]})),n.d(t,"N",(function(){return i["L"]})),n.d(t,"a",(function(){return ki})),n.d(t,"b",(function(){return Pi})),n.d(t,"c",(function(){return wi})),n.d(t,"d",(function(){return Ci})),n.d(t,"e",(function(){return Rr})),n.d(t,"g",(function(){return Bi})),n.d(t,"h",(function(){return Ji})),n.d(t,"i",(function(){return Mi})),n.d(t,"j",(function(){return qi})),n.d(t,"k",(function(){return Ki})),n.d(t,"l",(function(){return Yi})),n.d(t,"m",(function(){return Gi})),n.d(t,"n",(function(){return tn})),n.d(t,"o",(function(){return pr})),n.d(t,"p",(function(){return jr})),n.d(t,"q",(function(){return Nt})),n.d(t,"u",(function(){return ct})),n.d(t,"x",(function(){return sn})),n.d(t,"y",(function(){return an})),n.d(t,"z",(function(){return gn})),n.d(t,"A",(function(){return bn})),n.d(t,"B",(function(){return vn})),n.d(t,"C",(function(){return Di})),n.d(t,"D",(function(){return At})),n.d(t,"I",(function(){return rr})),n.d(t,"J",(function(){return or})),n.d(t,"K",(function(){return _i})),n.d(t,"L",(function(){return Si})),n.d(t,"S",(function(){return Ht})),n.d(t,"T",(function(){return Mt})),n.d(t,"U",(function(){return Pt})),n.d(t,"V",(function(){return ei})),n.d(t,"f",(function(){return zo})),n.d(t,"P",(function(){return Do})),n.d(t,"Q",(function(){return Io})),n.d(t,"R",(function(){return Ao}));var i=n("9ff4");let r;const o=[];class s{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}else 0}on(){this.active&&(o.push(this),r=this)}off(){this.active&&(o.pop(),r=o[o.length-1])}stop(e){if(this.active){if(this.effects.forEach(e=>e.stop()),this.cleanups.forEach(e=>e()),this.scopes&&this.scopes.forEach(e=>e.stop(!0)),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function a(e,t){t=t||r,t&&t.active&&t.effects.push(e)}const l=e=>{const t=new Set(e);return t.w=0,t.n=0,t},c=e=>(e.w&g)>0,u=e=>(e.n&g)>0,h=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=g},d=e=>{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i<t.length;i++){const r=t[i];c(r)&&!u(r)?r.delete(e):t[n++]=r,r.w&=~g,r.n&=~g}t.length=n}},f=new WeakMap;let p=0,g=1;const m=30,v=[];let y;const b=Symbol(""),w=Symbol("");class x{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],a(this,n)}run(){if(!this.active)return this.fn();if(!v.includes(this))try{return v.push(y=this),E(),g=1<<++p,p<=m?h(this):_(this),this.fn()}finally{p<=m&&d(this),g=1<<--p,P(),v.pop();const e=v.length;y=e>0?v[e-1]:void 0}}stop(){this.active&&(_(this),this.onStop&&this.onStop(),this.active=!1)}}function _(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let T=!0;const S=[];function O(){S.push(T),T=!1}function E(){S.push(T),T=!0}function P(){const e=S.pop();T=void 0===e||e}function C(e,t,n){if(!k())return;let i=f.get(e);i||f.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=l());const o=void 0;R(r,o)}function k(){return T&&void 0!==y}function R(e,t){let n=!1;p<=m?u(e)||(e.n|=g,n=!c(e)):n=!e.has(y),n&&(e.add(y),y.deps.push(e))}function j(e,t,n,r,o,s){const a=f.get(e);if(!a)return;let c=[];if("clear"===t)c=[...a.values()];else if("length"===n&&Object(i["o"])(e))a.forEach((e,t)=>{("length"===t||t>=r)&&c.push(e)});else switch(void 0!==n&&c.push(a.get(n)),t){case"add":Object(i["o"])(e)?Object(i["s"])(n)&&c.push(a.get("length")):(c.push(a.get(b)),Object(i["t"])(e)&&c.push(a.get(w)));break;case"delete":Object(i["o"])(e)||(c.push(a.get(b)),Object(i["t"])(e)&&c.push(a.get(w)));break;case"set":Object(i["t"])(e)&&c.push(a.get(b));break}if(1===c.length)c[0]&&I(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);I(l(e))}}function I(e,t){for(const n of Object(i["o"])(e)?e:[...e])(n!==y||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const D=Object(i["H"])("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(i["E"])),F=H(),A=H(!1,!0),N=H(!0),M=B();function B(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Re(this);for(let t=0,r=this.length;t<r;t++)C(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Re)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){O();const n=Re(this)[t].apply(this,e);return P(),n}}),e}function H(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?t?we:be:t?ye:ve).get(n))return n;const s=Object(i["o"])(n);if(!e&&s&&Object(i["k"])(M,r))return Reflect.get(M,r,o);const a=Reflect.get(n,r,o);if(Object(i["E"])(r)?L.has(r):D(r))return a;if(e||C(n,"get",r),t)return a;if(Ae(a)){const e=!s||!Object(i["s"])(r);return e?a.value:a}return Object(i["v"])(a)?e?Oe(a):Te(a):a}}const z=V(),U=V(!0);function V(e=!1){return function(t,n,r,o){let s=t[n];if(!e&&!Ce(r)&&(r=Re(r),s=Re(s),!Object(i["o"])(t)&&Ae(s)&&!Ae(r)))return s.value=r,!0;const a=Object(i["o"])(t)&&Object(i["s"])(n)?Number(n)<t.length:Object(i["k"])(t,n),l=Reflect.set(t,n,r,o);return t===Re(o)&&(a?Object(i["j"])(r,s)&&j(t,"set",n,r,s):j(t,"add",n,r)),l}}function W(e,t){const n=Object(i["k"])(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&j(e,"delete",t,void 0,r),o}function q(e,t){const n=Reflect.has(e,t);return Object(i["E"])(t)&&L.has(t)||C(e,"has",t),n}function G(e){return C(e,"iterate",Object(i["o"])(e)?"length":b),Reflect.ownKeys(e)}const $={get:F,set:z,deleteProperty:W,has:q,ownKeys:G},Z={get:N,set(e,t){return!0},deleteProperty(e,t){return!0}},X=Object(i["h"])({},$,{get:A,set:U}),Y=e=>e,K=e=>Reflect.getPrototypeOf(e);function J(e,t,n=!1,i=!1){e=e["__v_raw"];const r=Re(e),o=Re(t);t!==o&&!n&&C(r,"get",t),!n&&C(r,"get",o);const{has:s}=K(r),a=i?Y:n?De:Ie;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function Q(e,t=!1){const n=this["__v_raw"],i=Re(n),r=Re(e);return e!==r&&!t&&C(i,"has",e),!t&&C(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function ee(e,t=!1){return e=e["__v_raw"],!t&&C(Re(e),"iterate",b),Reflect.get(e,"size",e)}function te(e){e=Re(e);const t=Re(this),n=K(t),i=n.has.call(t,e);return i||(t.add(e),j(t,"add",e,e)),this}function ne(e,t){t=Re(t);const n=Re(this),{has:r,get:o}=K(n);let s=r.call(n,e);s||(e=Re(e),s=r.call(n,e));const a=o.call(n,e);return n.set(e,t),s?Object(i["j"])(t,a)&&j(n,"set",e,t,a):j(n,"add",e,t),this}function ie(e){const t=Re(this),{has:n,get:i}=K(t);let r=n.call(t,e);r||(e=Re(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&j(t,"delete",e,void 0,o),s}function re(){const e=Re(this),t=0!==e.size,n=void 0,i=e.clear();return t&&j(e,"clear",void 0,void 0,n),i}function oe(e,t){return function(n,i){const r=this,o=r["__v_raw"],s=Re(o),a=t?Y:e?De:Ie;return!e&&C(s,"iterate",b),o.forEach((e,t)=>n.call(i,a(e),a(t),r))}}function se(e,t,n){return function(...r){const o=this["__v_raw"],s=Re(o),a=Object(i["t"])(s),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=o[e](...r),h=n?Y:t?De:Ie;return!t&&C(s,"iterate",c?w:b),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function ae(e){return function(...t){return"delete"!==e&&this}}function le(){const e={get(e){return J(this,e)},get size(){return ee(this)},has:Q,add:te,set:ne,delete:ie,clear:re,forEach:oe(!1,!1)},t={get(e){return J(this,e,!1,!0)},get size(){return ee(this)},has:Q,add:te,set:ne,delete:ie,clear:re,forEach:oe(!1,!0)},n={get(e){return J(this,e,!0)},get size(){return ee(this,!0)},has(e){return Q.call(this,e,!0)},add:ae("add"),set:ae("set"),delete:ae("delete"),clear:ae("clear"),forEach:oe(!0,!1)},i={get(e){return J(this,e,!0,!0)},get size(){return ee(this,!0)},has(e){return Q.call(this,e,!0)},add:ae("add"),set:ae("set"),delete:ae("delete"),clear:ae("clear"),forEach:oe(!0,!0)},r=["keys","values","entries",Symbol.iterator];return r.forEach(r=>{e[r]=se(r,!1,!1),n[r]=se(r,!0,!1),t[r]=se(r,!1,!0),i[r]=se(r,!0,!0)}),[e,n,t,i]}const[ce,ue,he,de]=le();function fe(e,t){const n=t?e?de:he:e?ue:ce;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Object(i["k"])(n,r)&&r in t?n:t,r,o)}const pe={get:fe(!1,!1)},ge={get:fe(!1,!0)},me={get:fe(!0,!1)};const ve=new WeakMap,ye=new WeakMap,be=new WeakMap,we=new WeakMap;function xe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _e(e){return e["__v_skip"]||!Object.isExtensible(e)?0:xe(Object(i["O"])(e))}function Te(e){return e&&e["__v_isReadonly"]?e:Ee(e,!1,$,pe,ve)}function Se(e){return Ee(e,!1,X,ge,ye)}function Oe(e){return Ee(e,!0,Z,me,be)}function Ee(e,t,n,r,o){if(!Object(i["v"])(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const s=o.get(e);if(s)return s;const a=_e(e);if(0===a)return e;const l=new Proxy(e,2===a?r:n);return o.set(e,l),l}function Pe(e){return Ce(e)?Pe(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function ke(e){return Pe(e)||Ce(e)}function Re(e){const t=e&&e["__v_raw"];return t?Re(t):e}function je(e){return Object(i["g"])(e,"__v_skip",!0),e}const Ie=e=>Object(i["v"])(e)?Te(e):e,De=e=>Object(i["v"])(e)?Oe(e):e;function Le(e){k()&&(e=Re(e),e.dep||(e.dep=l()),R(e.dep))}function Fe(e,t){e=Re(e),e.dep&&I(e.dep)}function Ae(e){return Boolean(e&&!0===e.__v_isRef)}function Ne(e){return Be(e,!1)}function Me(e){return Be(e,!0)}function Be(e,t){return Ae(e)?e:new He(e,t)}class He{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Re(e),this._value=t?e:Ie(e)}get value(){return Le(this),this._value}set value(e){e=this._shallow?e:Re(e),Object(i["j"])(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Ie(e),Fe(this,e))}}function ze(e){return Ae(e)?e.value:e}const Ue={get:(e,t,n)=>ze(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ae(r)&&!Ae(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Ve(e){return Pe(e)?e:new Proxy(e,Ue)}class We{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new x(e,()=>{this._dirty||(this._dirty=!0,Fe(this))}),this.effect.active=!i,this["__v_isReadonly"]=n}get value(){const e=Re(this);return Le(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function qe(e,t,n=!1){let r,o;const s=Object(i["p"])(e);s?(r=e,o=i["d"]):(r=e.get,o=e.set);const a=new We(r,o,s||!o,n);return a}Promise.resolve();function Ge(e,t,n,i){let r;try{r=i?e(...i):e()}catch(o){Ze(o,t,n)}return r}function $e(e,t,n,r){if(Object(i["p"])(e)){const o=Ge(e,t,n,r);return o&&Object(i["y"])(o)&&o.catch(e=>{Ze(e,t,n)}),o}const o=[];for(let i=0;i<e.length;i++)o.push($e(e[i],t,n,r));return o}function Ze(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,o=n;while(i){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;i=i.parent}const s=t.appContext.config.errorHandler;if(s)return void Ge(s,null,10,[e,r,o])}Xe(e,n,r,i)}function Xe(e,t,n,i=!0){console.error(e)}let Ye=!1,Ke=!1;const Je=[];let Qe=0;const et=[];let tt=null,nt=0;const it=[];let rt=null,ot=0;const st=Promise.resolve();let at=null,lt=null;function ct(e){const t=at||st;return e?t.then(this?e.bind(this):e):t}function ut(e){let t=Qe+1,n=Je.length;while(t<n){const i=t+n>>>1,r=bt(Je[i]);r<e?t=i+1:n=i}return t}function ht(e){Je.length&&Je.includes(e,Ye&&e.allowRecurse?Qe+1:Qe)||e===lt||(null==e.id?Je.push(e):Je.splice(ut(e.id),0,e),dt())}function dt(){Ye||Ke||(Ke=!0,at=st.then(wt))}function ft(e){const t=Je.indexOf(e);t>Qe&&Je.splice(t,1)}function pt(e,t,n,r){Object(i["o"])(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),dt()}function gt(e){pt(e,tt,et,nt)}function mt(e){pt(e,rt,it,ot)}function vt(e,t=null){if(et.length){for(lt=t,tt=[...new Set(et)],et.length=0,nt=0;nt<tt.length;nt++)tt[nt]();tt=null,nt=0,lt=null,vt(e,t)}}function yt(e){if(it.length){const e=[...new Set(it)];if(it.length=0,rt)return void rt.push(...e);for(rt=e,rt.sort((e,t)=>bt(e)-bt(t)),ot=0;ot<rt.length;ot++)rt[ot]();rt=null,ot=0}}const bt=e=>null==e.id?1/0:e.id;function wt(e){Ke=!1,Ye=!0,vt(e),Je.sort((e,t)=>bt(e)-bt(t));i["d"];try{for(Qe=0;Qe<Je.length;Qe++){const e=Je[Qe];e&&!1!==e.active&&Ge(e,null,14)}}finally{Qe=0,Je.length=0,yt(e),Ye=!1,at=null,(Je.length||et.length||it.length)&&wt(e)}}new Set;new Map;function xt(e,t,...n){const r=e.vnode.props||i["b"];let o=n;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in r){const e=("modelValue"===a?"model":a)+"Modifiers",{number:t,trim:s}=r[e]||i["b"];s?o=n.map(e=>e.trim()):t&&(o=n.map(i["N"]))}let l;let c=r[l=Object(i["M"])(t)]||r[l=Object(i["M"])(Object(i["e"])(t))];!c&&s&&(c=r[l=Object(i["M"])(Object(i["l"])(t))]),c&&$e(c,e,6,o);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,$e(u,e,6,o)}}function _t(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const s=e.emits;let a={},l=!1;if(!Object(i["p"])(e)){const r=e=>{const n=_t(e,t,!0);n&&(l=!0,Object(i["h"])(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||l?(Object(i["o"])(s)?s.forEach(e=>a[e]=null):Object(i["h"])(a,s),r.set(e,a),a):(r.set(e,null),null)}function Tt(e,t){return!(!e||!Object(i["w"])(t))&&(t=t.slice(2).replace(/Once$/,""),Object(i["k"])(e,t[0].toLowerCase()+t.slice(1))||Object(i["k"])(e,Object(i["l"])(t))||Object(i["k"])(e,t))}let St=null,Ot=null;function Et(e){const t=St;return St=e,Ot=e&&e.type.__scopeId||null,t}function Pt(e,t=St,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Ai(-1);const r=Et(t),o=e(...n);return Et(r),i._d&&Ai(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function Ct(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[a],slots:l,attrs:c,emit:u,render:h,renderCache:d,data:f,setupState:p,ctx:g,inheritAttrs:m}=e;let v,y;const b=Et(e);try{if(4&n.shapeFlag){const e=o||r;v=Qi(h.call(e,e,d,s,p,f,g)),y=c}else{const e=t;0,v=Qi(e.length>1?e(s,{attrs:c,slots:l,emit:u}):e(s,null)),y=t.props?c:kt(c)}}catch(x){ji.length=0,Ze(x,e,1),v=Gi(ki)}let w=v;if(y&&!1!==m){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(a&&e.some(i["u"])&&(y=Rt(y,a)),w=Xi(w,y))}return n.dirs&&(w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),v=w,Et(b),v}const kt=e=>{let t;for(const n in e)("class"===n||"style"===n||Object(i["w"])(n))&&((t||(t={}))[n]=e[n]);return t},Rt=(e,t)=>{const n={};for(const r in e)Object(i["u"])(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function jt(e,t,n){const{props:i,children:r,component:o}=e,{props:s,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||i!==s&&(i?!s||It(i,s,c):!!s);if(1024&l)return!0;if(16&l)return i?It(i,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==i[n]&&!Tt(c,n))return!0}}return!1}function It(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(t[o]!==e[o]&&!Tt(n,o))return!0}return!1}function Dt({vnode:e,parent:t},n){while(t&&t.subTree===e)(e=t.vnode).el=n,t=t.parent}const Lt=e=>e.__isSuspense;function Ft(e,t){t&&t.pendingBranch?Object(i["o"])(e)?t.effects.push(...e):t.effects.push(e):mt(e)}function At(e,t){if(fr){let n=fr.provides;const i=fr.parent&&fr.parent.provides;i===n&&(n=fr.provides=Object.create(i)),n[e]=t}else 0}function Nt(e,t,n=!1){const r=fr||St;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Object(i["p"])(t)?t.call(r.proxy):t}else 0}function Mt(e,t){return zt(e,null,t)}const Bt={};function Ht(e,t,n){return zt(e,t,n)}function zt(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:a}=i["b"]){const l=fr;let c,u,h=!1,d=!1;if(Ae(e)?(c=()=>e.value,h=!!e._shallow):Pe(e)?(c=()=>e,r=!0):Object(i["o"])(e)?(d=!0,h=e.some(Pe),c=()=>e.map(e=>Ae(e)?e.value:Pe(e)?Wt(e):Object(i["p"])(e)?Ge(e,l,2):void 0)):c=Object(i["p"])(e)?t?()=>Ge(e,l,2):()=>{if(!l||!l.isUnmounted)return u&&u(),$e(e,l,3,[f])}:i["d"],t&&r){const e=c;c=()=>Wt(e())}let f=e=>{u=v.onStop=()=>{Ge(e,l,4)}};if(wr)return f=i["d"],t?n&&$e(t,l,3,[c(),d?[]:void 0,f]):c(),i["d"];let p=d?[]:Bt;const g=()=>{if(v.active)if(t){const e=v.run();(r||h||(d?e.some((e,t)=>Object(i["j"])(e,p[t])):Object(i["j"])(e,p)))&&(u&&u(),$e(t,l,3,[e,p===Bt?void 0:p,f]),p=e)}else v.run()};let m;g.allowRecurse=!!t,m="sync"===o?g:"post"===o?()=>ai(g,l&&l.suspense):()=>{!l||l.isMounted?gt(g):g()};const v=new x(c,m);return t?n?g():p=v.run():"post"===o?ai(v.run.bind(v),l&&l.suspense):v.run(),()=>{v.stop(),l&&l.scope&&Object(i["K"])(l.scope.effects,v)}}function Ut(e,t,n){const r=this.proxy,o=Object(i["D"])(e)?e.includes(".")?Vt(r,e):()=>r[e]:e.bind(r,r);let s;Object(i["p"])(t)?s=t:(s=t.handler,n=t);const a=fr;gr(this);const l=zt(o,s.bind(r),n);return a?gr(a):mr(),l}function Vt(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Wt(e,t){if(!Object(i["v"])(e)||e["__v_skip"])return e;if(t=t||new Set,t.has(e))return e;if(t.add(e),Ae(e))Wt(e.value,t);else if(Object(i["o"])(e))for(let n=0;n<e.length;n++)Wt(e[n],t);else if(Object(i["B"])(e)||Object(i["t"])(e))e.forEach(e=>{Wt(e,t)});else if(Object(i["x"])(e))for(const n in e)Wt(e[n],t);return e}function qt(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gn(()=>{e.isMounted=!0}),yn(()=>{e.isUnmounting=!0}),e}const Gt=[Function,Array],$t={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gt,onEnter:Gt,onAfterEnter:Gt,onEnterCancelled:Gt,onBeforeLeave:Gt,onLeave:Gt,onAfterLeave:Gt,onLeaveCancelled:Gt,onBeforeAppear:Gt,onAppear:Gt,onAfterAppear:Gt,onAppearCancelled:Gt},setup(e,{slots:t}){const n=pr(),i=qt();let r;return()=>{const o=t.default&&en(t.default(),!0);if(!o||!o.length)return;const s=Re(e),{mode:a}=s;const l=o[0];if(i.isLeaving)return Kt(l);const c=Jt(l);if(!c)return Kt(l);const u=Yt(c,s,i,n);Qt(c,u);const h=n.subTree,d=h&&Jt(h);let f=!1;const{getTransitionKey:p}=c.type;if(p){const e=p();void 0===r?r=e:e!==r&&(r=e,f=!0)}if(d&&d.type!==ki&&(!zi(c,d)||f)){const e=Yt(d,s,i,n);if(Qt(d,e),"out-in"===a)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,n.update()},Kt(l);"in-out"===a&&c.type!==ki&&(e.delayLeave=(e,t,n)=>{const r=Xt(i,d);r[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}},Zt=$t;function Xt(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function Yt(e,t,n,i){const{appear:r,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:d,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),w=Xt(n,e),x=(e,t)=>{e&&$e(e,i,9,t)},_={mode:o,persisted:s,beforeEnter(t){let i=a;if(!n.isMounted){if(!r)return;i=g||a}t._leaveCb&&t._leaveCb(!0);const o=w[b];o&&zi(e,o)&&o.el._leaveCb&&o.el._leaveCb(),x(i,[t])},enter(e){let t=l,i=c,o=u;if(!n.isMounted){if(!r)return;t=m||l,i=v||c,o=y||u}let s=!1;const a=e._enterCb=t=>{s||(s=!0,x(t?o:i,[e]),_.delayedLeave&&_.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,i){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return i();x(h,[t]);let o=!1;const s=t._leaveCb=n=>{o||(o=!0,i(),x(n?p:f,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,d?(d(t,s),d.length<=1&&s()):s()},clone(e){return Yt(e,t,n,i)}};return _}function Kt(e){if(rn(e))return e=Xi(e),e.children=null,e}function Jt(e){return rn(e)?e.children?e.children[0]:void 0:e}function Qt(e,t){6&e.shapeFlag&&e.component?Qt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function en(e,t=!1){let n=[],i=0;for(let r=0;r<e.length;r++){const o=e[r];o.type===Pi?(128&o.patchFlag&&i++,n=n.concat(en(o.children,t))):(t||o.type!==ki)&&n.push(o)}if(i>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function tn(e){return Object(i["p"])(e)?{setup:e,name:e.name}:e}const nn=e=>!!e.type.__asyncLoader;const rn=e=>e.type.__isKeepAlive;RegExp,RegExp;function on(e,t){return Object(i["o"])(e)?e.some(e=>on(e,t)):Object(i["D"])(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function sn(e,t){ln(e,"a",t)}function an(e,t){ln(e,"da",t)}function ln(e,t,n=fr){const i=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(dn(t,i,n),n){let e=n.parent;while(e&&e.parent)rn(e.parent.vnode)&&cn(i,t,n,e),e=e.parent}}function cn(e,t,n,r){const o=dn(t,e,r,!0);bn(()=>{Object(i["K"])(r[t],o)},n)}function un(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function hn(e){return 128&e.shapeFlag?e.ssContent:e}function dn(e,t,n=fr,i=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;O(),gr(n);const r=$e(t,n,e,i);return mr(),P(),r});return i?r.unshift(o):r.push(o),o}}const fn=e=>(t,n=fr)=>(!wr||"sp"===e)&&dn(e,t,n),pn=fn("bm"),gn=fn("m"),mn=fn("bu"),vn=fn("u"),yn=fn("bum"),bn=fn("um"),wn=fn("sp"),xn=fn("rtg"),_n=fn("rtc");function Tn(e,t=fr){dn("ec",e,t)}let Sn=!0;function On(e){const t=kn(e),n=e.proxy,r=e.ctx;Sn=!1,t.beforeCreate&&Pn(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:a,watch:l,provide:c,inject:u,created:h,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:m,deactivated:v,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:x,render:_,renderTracked:T,renderTriggered:S,errorCaptured:O,serverPrefetch:E,expose:P,inheritAttrs:C,components:k,directives:R,filters:j}=t,I=null;if(u&&En(u,r,I,e.appContext.config.unwrapInjectedRef),a)for(const L in a){const e=a[L];Object(i["p"])(e)&&(r[L]=e.bind(n))}if(o){0;const t=o.call(n,n);0,Object(i["v"])(t)&&(e.data=Te(t))}if(Sn=!0,s)for(const L in s){const e=s[L],t=Object(i["p"])(e)?e.bind(n,n):Object(i["p"])(e.get)?e.get.bind(n,n):i["d"];0;const o=!Object(i["p"])(e)&&Object(i["p"])(e.set)?e.set.bind(n):i["d"],a=qe({get:t,set:o});Object.defineProperty(r,L,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const i in l)Cn(l[i],r,n,i);if(c){const e=Object(i["p"])(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{At(t,e[t])})}function D(e,t){Object(i["o"])(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&Pn(h,e,"c"),D(pn,d),D(gn,f),D(mn,p),D(vn,g),D(sn,m),D(an,v),D(Tn,O),D(_n,T),D(xn,S),D(yn,b),D(bn,x),D(wn,E),Object(i["o"])(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});_&&e.render===i["d"]&&(e.render=_),null!=C&&(e.inheritAttrs=C),k&&(e.components=k),R&&(e.directives=R)}function En(e,t,n=i["d"],r=!1){Object(i["o"])(e)&&(e=Ln(e));for(const o in e){const n=e[o];let s;s=Object(i["v"])(n)?"default"in n?Nt(n.from||o,n.default,!0):Nt(n.from||o):Nt(n),Ae(s)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[o]=s}}function Pn(e,t,n){$e(Object(i["o"])(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cn(e,t,n,r){const o=r.includes(".")?Vt(n,r):()=>n[r];if(Object(i["D"])(e)){const n=t[e];Object(i["p"])(n)&&Ht(o,n)}else if(Object(i["p"])(e))Ht(o,e.bind(n));else if(Object(i["v"])(e))if(Object(i["o"])(e))e.forEach(e=>Cn(e,t,n,r));else{const r=Object(i["p"])(e.handler)?e.handler.bind(n):t[e.handler];Object(i["p"])(r)&&Ht(o,r,e)}else 0}function kn(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:r.length||n||i?(l={},r.length&&r.forEach(e=>Rn(l,e,s,!0)),Rn(l,t,s)):l=t,o.set(t,l),l}function Rn(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&Rn(e,o,n,!0),r&&r.forEach(t=>Rn(e,t,n,!0));for(const s in t)if(i&&"expose"===s);else{const i=jn[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}const jn={data:In,props:An,emits:An,methods:An,computed:An,beforeCreate:Fn,created:Fn,beforeMount:Fn,mounted:Fn,beforeUpdate:Fn,updated:Fn,beforeDestroy:Fn,beforeUnmount:Fn,destroyed:Fn,unmounted:Fn,activated:Fn,deactivated:Fn,errorCaptured:Fn,serverPrefetch:Fn,components:An,directives:An,watch:Nn,provide:In,inject:Dn};function In(e,t){return t?e?function(){return Object(i["h"])(Object(i["p"])(e)?e.call(this,this):e,Object(i["p"])(t)?t.call(this,this):t)}:t:e}function Dn(e,t){return An(Ln(e),Ln(t))}function Ln(e){if(Object(i["o"])(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fn(e,t){return e?[...new Set([].concat(e,t))]:t}function An(e,t){return e?Object(i["h"])(Object(i["h"])(Object.create(null),e),t):t}function Nn(e,t){if(!e)return t;if(!t)return e;const n=Object(i["h"])(Object.create(null),e);for(const i in t)n[i]=Fn(e[i],t[i]);return n}function Mn(e,t,n,r=!1){const o={},s={};Object(i["g"])(s,Ui,1),e.propsDefaults=Object.create(null),Hn(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Se(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Bn(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:a}}=e,l=Re(o),[c]=e.propsOptions;let u=!1;if(!(r||a>0)||16&a){let r;Hn(e,t,o,s)&&(u=!0);for(const s in l)t&&(Object(i["k"])(t,s)||(r=Object(i["l"])(s))!==s&&Object(i["k"])(t,r))||(c?!n||void 0===n[s]&&void 0===n[r]||(o[s]=zn(c,l,s,void 0,e,!0)):delete o[s]);if(s!==l)for(const e in s)t&&Object(i["k"])(t,e)||(delete s[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];const h=t[a];if(c)if(Object(i["k"])(s,a))h!==s[a]&&(s[a]=h,u=!0);else{const t=Object(i["e"])(a);o[t]=zn(c,l,t,h,e,!1)}else h!==s[a]&&(s[a]=h,u=!0)}}u&&j(e,"set","$attrs")}function Hn(e,t,n,r){const[o,s]=e.propsOptions;let a,l=!1;if(t)for(let c in t){if(Object(i["z"])(c))continue;const u=t[c];let h;o&&Object(i["k"])(o,h=Object(i["e"])(c))?s&&s.includes(h)?(a||(a={}))[h]=u:n[h]=u:Tt(e.emitsOptions,c)||c in r&&u===r[c]||(r[c]=u,l=!0)}if(s){const t=Re(n),r=a||i["b"];for(let a=0;a<s.length;a++){const l=s[a];n[l]=zn(o,t,l,r[l],e,!Object(i["k"])(r,l))}}return l}function zn(e,t,n,r,o,s){const a=e[n];if(null!=a){const e=Object(i["k"])(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&Object(i["p"])(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(gr(o),r=i[n]=e.call(null,t),mr())}else r=e}a[0]&&(s&&!e?r=!1:!a[1]||""!==r&&r!==Object(i["l"])(n)||(r=!0))}return r}function Un(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const s=e.props,a={},l=[];let c=!1;if(!Object(i["p"])(e)){const r=e=>{c=!0;const[n,r]=Un(e,t,!0);Object(i["h"])(a,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!c)return r.set(e,i["a"]),i["a"];if(Object(i["o"])(s))for(let h=0;h<s.length;h++){0;const e=Object(i["e"])(s[h]);Vn(e)&&(a[e]=i["b"])}else if(s){0;for(const e in s){const t=Object(i["e"])(e);if(Vn(t)){const n=s[e],r=a[t]=Object(i["o"])(n)||Object(i["p"])(n)?{type:n}:n;if(r){const e=Gn(Boolean,r.type),n=Gn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||Object(i["k"])(r,"default"))&&l.push(t)}}}}const u=[a,l];return r.set(e,u),u}function Vn(e){return"$"!==e[0]}function Wn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function qn(e,t){return Wn(e)===Wn(t)}function Gn(e,t){return Object(i["o"])(t)?t.findIndex(t=>qn(t,e)):Object(i["p"])(t)&&qn(t,e)?0:-1}const $n=e=>"_"===e[0]||"$stable"===e,Zn=e=>Object(i["o"])(e)?e.map(Qi):[Qi(e)],Xn=(e,t,n)=>{const i=Pt((...e)=>Zn(t(...e)),n);return i._c=!1,i},Yn=(e,t,n)=>{const r=e._ctx;for(const o in e){if($n(o))continue;const n=e[o];if(Object(i["p"])(n))t[o]=Xn(o,n,r);else if(null!=n){0;const e=Zn(n);t[o]=()=>e}}},Kn=(e,t)=>{const n=Zn(t);e.slots.default=()=>n},Jn=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Re(t),Object(i["g"])(t,"_",n)):Yn(t,e.slots={})}else e.slots={},t&&Kn(e,t);Object(i["g"])(e.slots,Ui,1)},Qn=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,a=i["b"];if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(Object(i["h"])(o,t),n||1!==e||delete o._):(s=!t.$stable,Yn(t,o)),a=t}else t&&(Kn(e,t),a={default:1});if(s)for(const i in o)$n(i)||i in a||delete o[i]};function ei(e,t){const n=St;if(null===n)return e;const r=n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[e,n,a,l=i["b"]]=t[s];Object(i["p"])(e)&&(e={mounted:e,updated:e}),e.deep&&Wt(n),o.push({dir:e,instance:r,value:n,oldValue:void 0,arg:a,modifiers:l})}return e}function ti(e,t,n,i){const r=e.dirs,o=t&&t.dirs;for(let s=0;s<r.length;s++){const a=r[s];o&&(a.oldValue=o[s].value);let l=a.dir[i];l&&(O(),$e(l,n,8,[e.el,a,e,t]),P())}}function ni(){return{app:null,config:{isNativeTag:i["c"],performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ii=0;function ri(e,t){return function(n,r=null){null==r||Object(i["v"])(r)||(r=null);const o=ni(),s=new Set;let a=!1;const l=o.app={_uid:ii++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Ir,get config(){return o.config},set config(e){0},use(e,...t){return s.has(e)||(e&&Object(i["p"])(e.install)?(s.add(e),e.install(l,...t)):Object(i["p"])(e)&&(s.add(e),e(l,...t))),l},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),l},component(e,t){return t?(o.components[e]=t,l):o.components[e]},directive(e,t){return t?(o.directives[e]=t,l):o.directives[e]},mount(i,s,c){if(!a){const u=Gi(n,r);return u.appContext=o,s&&t?t(u,i):e(u,i,c),a=!0,l._container=i,i.__vue_app__=l,Pr(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return o.provides[e]=t,l}};return l}}function oi(e,t,n,r,o=!1){if(Object(i["o"])(e))return void e.forEach((e,s)=>oi(e,t&&(Object(i["o"])(t)?t[s]:t),n,r,o));if(nn(r)&&!o)return;const s=4&r.shapeFlag?Pr(r.component)||r.component.proxy:r.el,a=o?null:s,{i:l,r:c}=e;const u=t&&t.r,h=l.refs===i["b"]?l.refs={}:l.refs,d=l.setupState;if(null!=u&&u!==c&&(Object(i["D"])(u)?(h[u]=null,Object(i["k"])(d,u)&&(d[u]=null)):Ae(u)&&(u.value=null)),Object(i["p"])(c))Ge(c,l,12,[a,h]);else{const t=Object(i["D"])(c),r=Ae(c);if(t||r){const r=()=>{if(e.f){const n=t?h[c]:c.value;o?Object(i["o"])(n)&&Object(i["K"])(n,s):Object(i["o"])(n)?n.includes(s)||n.push(s):t?h[c]=[s]:(c.value=[s],e.k&&(h[e.k]=c.value))}else t?(h[c]=a,Object(i["k"])(d,c)&&(d[c]=a)):Ae(c)&&(c.value=a,e.k&&(h[e.k]=a))};a?(r.id=-1,ai(r,n)):r()}else 0}}function si(){}const ai=Ft;function li(e){return ci(e)}function ci(e,t){si();const n=Object(i["i"])();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:a,createText:l,createComment:c,setText:u,setElementText:h,parentNode:d,nextSibling:f,setScopeId:p=i["d"],cloneNode:g,insertStaticContent:m}=e,v=(e,t,n,i=null,r=null,o=null,s=!1,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!zi(e,t)&&(i=Z(e),V(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case Ci:y(e,t,n,i);break;case ki:b(e,t,n,i);break;case Ri:null==e&&w(t,n,i,s);break;case Pi:D(e,t,n,i,r,o,s,a,l);break;default:1&h?S(e,t,n,i,r,o,s,a,l):6&h?L(e,t,n,i,r,o,s,a,l):(64&h||128&h)&&c.process(e,t,n,i,r,o,s,a,l,Y)}null!=u&&r&&oi(u,e&&e.ref,o,t||e,!t)},y=(e,t,n,i)=>{if(null==e)r(t.el=l(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},b=(e,t,n,i)=>{null==e?r(t.el=c(t.children||""),n,i):t.el=e.el},w=(e,t,n,i)=>{[e.el,e.anchor]=m(e.children,t,n,i,e.el,e.anchor)},_=({el:e,anchor:t},n,i)=>{let o;while(e&&e!==t)o=f(e),r(e,n,i),e=o;r(t,n,i)},T=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),o(e),e=n;o(t)},S=(e,t,n,i,r,o,s,a,l)=>{s=s||"svg"===t.type,null==e?E(t,n,i,r,o,s,a,l):R(e,t,r,o,s,a,l)},E=(e,t,n,o,l,c,u,d)=>{let f,p;const{type:m,props:v,shapeFlag:y,transition:b,patchFlag:w,dirs:x}=e;if(e.el&&void 0!==g&&-1===w)f=e.el=g(e.el);else{if(f=e.el=a(e.type,c,v&&v.is,v),8&y?h(f,e.children):16&y&&k(e.children,f,null,o,l,c&&"foreignObject"!==m,u,d),x&&ti(e,null,o,"created"),v){for(const t in v)"value"===t||Object(i["z"])(t)||s(f,t,null,v[t],c,e.children,o,l,$);"value"in v&&s(f,"value",null,v.value),(p=v.onVnodeBeforeMount)&&ir(p,o,e)}C(f,e,e.scopeId,u,o)}x&&ti(e,null,o,"beforeMount");const _=(!l||l&&!l.pendingBranch)&&b&&!b.persisted;_&&b.beforeEnter(f),r(f,t,n),((p=v&&v.onVnodeMounted)||_||x)&&ai(()=>{p&&ir(p,o,e),_&&b.enter(f),x&&ti(e,null,o,"mounted")},l)},C=(e,t,n,i,r)=>{if(n&&p(e,n),i)for(let o=0;o<i.length;o++)p(e,i[o]);if(r){let n=r.subTree;if(t===n){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},k=(e,t,n,i,r,o,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?er(e[c]):Qi(e[c]);v(null,l,t,n,i,r,o,s,a)}},R=(e,t,n,r,o,a,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const p=e.props||i["b"],g=t.props||i["b"];let m;n&&ui(n,!1),(m=g.onVnodeBeforeUpdate)&&ir(m,n,t,e),f&&ti(t,e,n,"beforeUpdate"),n&&ui(n,!0);const v=o&&"foreignObject"!==t.type;if(d?j(e.dynamicChildren,d,c,n,r,v,a):l||B(e,t,c,null,n,r,v,a,!1),u>0){if(16&u)I(c,t,p,g,n,r,o);else if(2&u&&p.class!==g.class&&s(c,"class",null,g.class,o),4&u&&s(c,"style",p.style,g.style,o),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const a=i[t],l=p[a],u=g[a];u===l&&"value"!==a||s(c,a,l,u,o,e.children,n,r,$)}}1&u&&e.children!==t.children&&h(c,t.children)}else l||null!=d||I(c,t,p,g,n,r,o);((m=g.onVnodeUpdated)||f)&&ai(()=>{m&&ir(m,n,t,e),f&&ti(t,e,n,"updated")},r)},j=(e,t,n,i,r,o,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===Pi||!zi(l,c)||70&l.shapeFlag)?d(l.el):n;v(l,c,u,null,i,r,o,s,!0)}},I=(e,t,n,r,o,a,l)=>{if(n!==r){for(const c in r){if(Object(i["z"])(c))continue;const u=r[c],h=n[c];u!==h&&"value"!==c&&s(e,c,h,u,l,t.children,o,a,$)}if(n!==i["b"])for(const c in n)Object(i["z"])(c)||c in r||s(e,c,n[c],null,l,t.children,o,a,$);"value"in r&&s(e,"value",n.value,r.value)}},D=(e,t,n,i,o,s,a,c,u)=>{const h=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(r(h,n,i),r(d,n,i),k(t.children,n,d,o,s,a,c,u)):f>0&&64&f&&p&&e.dynamicChildren?(j(e.dynamicChildren,p,n,o,s,a,c),(null!=t.key||o&&t===o.subTree)&&hi(e,t,!0)):B(e,t,n,d,o,s,a,c,u)},L=(e,t,n,i,r,o,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,s,l):F(t,n,i,r,o,s,l):A(e,t,l)},F=(e,t,n,i,r,o,s)=>{const a=e.component=dr(e,i,r);if(rn(e)&&(a.ctx.renderer=Y),xr(a),a.asyncDep){if(r&&r.registerDep(a,N),!e.el){const e=a.subTree=Gi(ki);b(null,e,t,n)}}else N(a,e,t,n,r,o,s)},A=(e,t,n)=>{const i=t.component=e.component;if(jt(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void M(i,t,n);i.next=t,ft(i.update),i.update()}else t.component=e.component,t.el=e.el,i.vnode=t},N=(e,t,n,r,o,s,a)=>{const l=()=>{if(e.isMounted){let t,{next:n,bu:r,u:l,parent:c,vnode:u}=e,h=n;0,ui(e,!1),n?(n.el=u.el,M(e,n,a)):n=u,r&&Object(i["n"])(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ir(t,c,n,u),ui(e,!0);const f=Ct(e);0;const p=e.subTree;e.subTree=f,v(p,f,d(p.el),Z(p),e,o,s),n.el=f.el,null===h&&Dt(e,f.el),l&&ai(l,o),(t=n.props&&n.props.onVnodeUpdated)&&ai(()=>ir(t,c,n,u),o)}else{let a;const{el:l,props:c}=t,{bm:u,m:h,parent:d}=e,f=nn(t);if(ui(e,!1),u&&Object(i["n"])(u),!f&&(a=c&&c.onVnodeBeforeMount)&&ir(a,d,t),ui(e,!0),l&&J){const n=()=>{e.subTree=Ct(e),J(l,e.subTree,e,o,null)};f?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{0;const i=e.subTree=Ct(e);0,v(null,i,n,r,e,o,s),t.el=i.el}if(h&&ai(h,o),!f&&(a=c&&c.onVnodeMounted)){const e=t;ai(()=>ir(a,d,e),o)}256&t.shapeFlag&&e.a&&ai(e.a,o),e.isMounted=!0,t=n=r=null}},c=e.effect=new x(l,()=>ht(e.update),e.scope),u=e.update=c.run.bind(c);u.id=e.uid,ui(e,!0),u()},M=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,Bn(e,t.props,i,n),Qn(e,t.children,n),O(),vt(void 0,e.update),P()},B=(e,t,n,i,r,o,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void z(c,d,n,i,r,o,s,a,l);if(256&f)return void H(c,d,n,i,r,o,s,a,l)}8&p?(16&u&&$(c,r,o),d!==c&&h(n,d)):16&u?16&p?z(c,d,n,i,r,o,s,a,l):$(c,r,o,!0):(8&u&&h(n,""),16&p&&k(d,n,i,r,o,s,a,l))},H=(e,t,n,r,o,s,a,l,c)=>{e=e||i["a"],t=t||i["a"];const u=e.length,h=t.length,d=Math.min(u,h);let f;for(f=0;f<d;f++){const i=t[f]=c?er(t[f]):Qi(t[f]);v(e[f],i,n,null,o,s,a,l,c)}u>h?$(e,o,s,!0,!1,d):k(t,n,r,o,s,a,l,c,d)},z=(e,t,n,r,o,s,a,l,c)=>{let u=0;const h=t.length;let d=e.length-1,f=h-1;while(u<=d&&u<=f){const i=e[u],r=t[u]=c?er(t[u]):Qi(t[u]);if(!zi(i,r))break;v(i,r,n,null,o,s,a,l,c),u++}while(u<=d&&u<=f){const i=e[d],r=t[f]=c?er(t[f]):Qi(t[f]);if(!zi(i,r))break;v(i,r,n,null,o,s,a,l,c),d--,f--}if(u>d){if(u<=f){const e=f+1,i=e<h?t[e].el:r;while(u<=f)v(null,t[u]=c?er(t[u]):Qi(t[u]),n,i,o,s,a,l,c),u++}}else if(u>f)while(u<=d)V(e[u],o,s,!0),u++;else{const p=u,g=u,m=new Map;for(u=g;u<=f;u++){const e=t[u]=c?er(t[u]):Qi(t[u]);null!=e.key&&m.set(e.key,u)}let y,b=0;const w=f-g+1;let x=!1,_=0;const T=new Array(w);for(u=0;u<w;u++)T[u]=0;for(u=p;u<=d;u++){const i=e[u];if(b>=w){V(i,o,s,!0);continue}let r;if(null!=i.key)r=m.get(i.key);else for(y=g;y<=f;y++)if(0===T[y-g]&&zi(i,t[y])){r=y;break}void 0===r?V(i,o,s,!0):(T[r-g]=u+1,r>=_?_=r:x=!0,v(i,t[r],n,null,o,s,a,l,c),b++)}const S=x?di(T):i["a"];for(y=S.length-1,u=w-1;u>=0;u--){const e=g+u,i=t[e],d=e+1<h?t[e+1].el:r;0===T[u]?v(null,i,n,d,o,s,a,l,c):x&&(y<0||u!==S[y]?U(i,n,d,2):y--)}}},U=(e,t,n,i,o=null)=>{const{el:s,type:a,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,n,i);if(128&u)return void e.suspense.move(t,n,i);if(64&u)return void a.move(e,t,n,Y);if(a===Pi){r(s,t,n);for(let e=0;e<c.length;e++)U(c[e],t,n,i);return void r(e.anchor,t,n)}if(a===Ri)return void _(e,t,n);const h=2!==i&&1&u&&l;if(h)if(0===i)l.beforeEnter(s),r(s,t,n),ai(()=>l.enter(s),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,a=()=>r(s,t,n),c=()=>{e(s,()=>{a(),o&&o()})};i?i(s,a,c):c()}else r(s,t,n)},V=(e,t,n,i=!1,r=!1)=>{const{type:o,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d}=e;if(null!=a&&oi(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,p=!nn(e);let g;if(p&&(g=s&&s.onVnodeBeforeUnmount)&&ir(g,t,e),6&u)G(e.component,n,i);else{if(128&u)return void e.suspense.unmount(n,i);f&&ti(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,Y,i):c&&(o!==Pi||h>0&&64&h)?$(c,t,n,!1,!0):(o===Pi&&384&h||!r&&16&u)&&$(l,t,n),i&&W(e)}(p&&(g=s&&s.onVnodeUnmounted)||f)&&ai(()=>{g&&ir(g,t,e),f&&ti(e,null,t,"unmounted")},n)},W=e=>{const{type:t,el:n,anchor:i,transition:r}=e;if(t===Pi)return void q(n,i);if(t===Ri)return void T(e);const s=()=>{o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:i}=r,o=()=>t(n,s);i?i(e.el,s,o):o()}else s()},q=(e,t)=>{let n;while(e!==t)n=f(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:r,scope:o,update:s,subTree:a,um:l}=e;r&&Object(i["n"])(r),o.stop(),s&&(s.active=!1,V(a,e,t,n)),l&&ai(l,t),ai(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},$=(e,t,n,i=!1,r=!1,o=0)=>{for(let s=o;s<e.length;s++)V(e[s],t,n,i,r)},Z=e=>6&e.shapeFlag?Z(e.component.subTree):128&e.shapeFlag?e.suspense.next():f(e.anchor||e.el),X=(e,t,n)=>{null==e?t._vnode&&V(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),yt(),t._vnode=e},Y={p:v,um:V,m:U,r:W,mt:F,mc:k,pc:B,pbc:j,n:Z,o:e};let K,J;return t&&([K,J]=t(Y)),{render:X,hydrate:K,createApp:ri(X,K)}}function ui({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hi(e,t,n=!1){const r=e.children,o=t.children;if(Object(i["o"])(r)&&Object(i["o"])(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=er(o[i]),t.el=e.el),n||hi(e,t))}}function di(e){const t=e.slice(),n=[0];let i,r,o,s,a;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(r=n[n.length-1],e[r]<l){t[i]=r,n.push(i);continue}o=0,s=n.length-1;while(o<s)a=o+s>>1,e[n[a]]<l?o=a+1:s=a;l<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,s=n[o-1];while(o-- >0)n[o]=s,s=t[s];return n}const fi=e=>e.__isTeleport,pi=e=>e&&(e.disabled||""===e.disabled),gi=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,mi=(e,t)=>{const n=e&&e.to;if(Object(i["D"])(n)){if(t){const e=t(n);return e}return null}return n},vi={__isTeleport:!0,process(e,t,n,i,r,o,s,a,l,c){const{mc:u,pc:h,pbc:d,o:{insert:f,querySelector:p,createText:g,createComment:m}}=c,v=pi(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");f(e,n,i),f(c,n,i);const h=t.target=mi(t.props,p),d=t.targetAnchor=g("");h&&(f(d,h),s=s||gi(h));const m=(e,t)=>{16&y&&u(b,e,t,r,o,s,a,l)};v?m(n,c):h&&m(h,d)}else{t.el=e.el;const i=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,g=pi(e.props),m=g?n:u,y=g?i:f;if(s=s||gi(u),w?(d(e.dynamicChildren,w,m,r,o,s,a),hi(e,t,!0)):l||h(e,t,m,y,r,o,s,a,!1),v)g||yi(t,n,i,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=mi(t.props,p);e&&yi(t,e,null,c,0)}else g&&yi(t,u,f,c,1)}},remove(e,t,n,i,{um:r,o:{remove:o}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:h,props:d}=e;if(h&&o(u),(s||!pi(d))&&(o(c),16&a))for(let f=0;f<l.length;f++){const e=l[f];r(e,t,n,!0,!!e.dynamicChildren)}},move:yi,hydrate:bi};function yi(e,t,n,{o:{insert:i},m:r},o=2){0===o&&i(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,h=2===o;if(h&&i(s,t,n),(!h||pi(u))&&16&l)for(let d=0;d<c.length;d++)r(c[d],t,n,2);h&&i(a,t,n)}function bi(e,t,n,i,r,o,{o:{nextSibling:s,parentNode:a,querySelector:l}},c){const u=t.target=mi(t.props,l);if(u){const l=u._lpa||u.firstChild;16&t.shapeFlag&&(pi(t.props)?(t.anchor=c(s(e),t,a(e),n,i,r,o),t.targetAnchor=l):(t.anchor=s(e),t.targetAnchor=c(l,t,u,n,i,r,o)),u._lpa=t.targetAnchor&&s(t.targetAnchor))}return t.anchor&&s(t.anchor)}const wi=vi,xi="components";function _i(e,t){return Oi(xi,e,!0,t)||e}const Ti=Symbol();function Si(e){return Object(i["D"])(e)?Oi(xi,e,!1)||e:e||Ti}function Oi(e,t,n=!0,r=!1){const o=St||fr;if(o){const n=o.type;if(e===xi){const e=Cr(n);if(e&&(e===t||e===Object(i["e"])(t)||e===Object(i["f"])(Object(i["e"])(t))))return n}const s=Ei(o[e]||n[e],t)||Ei(o.appContext[e],t);return!s&&r?n:s}}function Ei(e,t){return e&&(e[t]||e[Object(i["e"])(t)]||e[Object(i["f"])(Object(i["e"])(t))])}const Pi=Symbol(void 0),Ci=Symbol(void 0),ki=Symbol(void 0),Ri=Symbol(void 0),ji=[];let Ii=null;function Di(e=!1){ji.push(Ii=e?null:[])}function Li(){ji.pop(),Ii=ji[ji.length-1]||null}let Fi=1;function Ai(e){Fi+=e}function Ni(e){return e.dynamicChildren=Fi>0?Ii||i["a"]:null,Li(),Fi>0&&Ii&&Ii.push(e),e}function Mi(e,t,n,i,r,o){return Ni(qi(e,t,n,i,r,o,!0))}function Bi(e,t,n,i,r){return Ni(Gi(e,t,n,i,r,!0))}function Hi(e){return!!e&&!0===e.__v_isVNode}function zi(e,t){return e.type===t.type&&e.key===t.key}const Ui="__vInternal",Vi=({key:e})=>null!=e?e:null,Wi=({ref:e,ref_key:t,ref_for:n})=>null!=e?Object(i["D"])(e)||Ae(e)||Object(i["p"])(e)?{i:St,r:e,k:t,f:!!n}:e:null;function qi(e,t=null,n=null,r=0,o=null,s=(e===Pi?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vi(t),ref:t&&Wi(t),scopeId:Ot,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return l?(tr(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=Object(i["D"])(n)?8:16),Fi>0&&!a&&Ii&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Ii.push(c),c}const Gi=$i;function $i(e,t=null,n=null,r=0,o=null,s=!1){if(e&&e!==Ti||(e=ki),Hi(e)){const i=Xi(e,t,!0);return n&&tr(i,n),i}if(kr(e)&&(e=e.__vccOpts),t){t=Zi(t);let{class:e,style:n}=t;e&&!Object(i["D"])(e)&&(t.class=Object(i["I"])(e)),Object(i["v"])(n)&&(ke(n)&&!Object(i["o"])(n)&&(n=Object(i["h"])({},n)),t.style=Object(i["J"])(n))}const a=Object(i["D"])(e)?1:Lt(e)?128:fi(e)?64:Object(i["v"])(e)?4:Object(i["p"])(e)?2:0;return qi(e,t,n,r,o,a,s,!0)}function Zi(e){return e?ke(e)||Ui in e?Object(i["h"])({},e):e:null}function Xi(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:a}=e,l=t?nr(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Vi(l),ref:t&&t.ref?n&&o?Object(i["o"])(o)?o.concat(Wi(t)):[o,Wi(t)]:Wi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xi(e.ssContent),ssFallback:e.ssFallback&&Xi(e.ssFallback),el:e.el,anchor:e.anchor};return c}function Yi(e=" ",t=0){return Gi(Ci,null,e,t)}function Ki(e,t){const n=Gi(Ri,null,e);return n.staticCount=t,n}function Ji(e="",t=!1){return t?(Di(),Bi(ki,null,e)):Gi(ki,null,e)}function Qi(e){return null==e||"boolean"===typeof e?Gi(ki):Object(i["o"])(e)?Gi(Pi,null,e.slice()):"object"===typeof e?er(e):Gi(Ci,null,String(e))}function er(e){return null===e.el||e.memo?e:Xi(e)}function tr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(Object(i["o"])(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),tr(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||Ui in t?3===i&&St&&(1===St.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=St}}else Object(i["p"])(t)?(t={default:t,_ctx:St},n=32):(t=String(t),64&r?(n=16,t=[Yi(t)]):n=8);e.children=t,e.shapeFlag|=n}function nr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=Object(i["I"])([t.class,r.class]));else if("style"===e)t.style=Object(i["J"])([t.style,r.style]);else if(Object(i["w"])(e)){const n=t[e],o=r[e];n===o||Object(i["o"])(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}function ir(e,t,n,i=null){$e(e,t,7,[n,i])}function rr(e,t,n,r){let o;const s=n&&n[r];if(Object(i["o"])(e)||Object(i["D"])(e)){o=new Array(e.length);for(let n=0,i=e.length;n<i;n++)o[n]=t(e[n],n,void 0,s&&s[n])}else if("number"===typeof e){0,o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,s&&s[n])}else if(Object(i["v"])(e))if(e[Symbol.iterator])o=Array.from(e,(e,n)=>t(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);o=new Array(n.length);for(let i=0,r=n.length;i<r;i++){const r=n[i];o[i]=t(e[r],r,i,s&&s[i])}}else o=[];return n&&(n[r]=o),o}function or(e,t,n={},i,r){if(St.isCE)return Gi("slot","default"===t?null:{name:t},i&&i());let o=e[t];o&&o._c&&(o._d=!1),Di();const s=o&&sr(o(n)),a=Bi(Pi,{key:n.key||"_"+t},s||(i?i():[]),s&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function sr(e){return e.some(e=>!Hi(e)||e.type!==ki&&!(e.type===Pi&&!sr(e.children)))?e:null}const ar=e=>e?vr(e)?Pr(e)||e.proxy:ar(e.parent):null,lr=Object(i["h"])(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ar(e.parent),$root:e=>ar(e.root),$emit:e=>e.emit,$options:e=>kn(e),$forceUpdate:e=>()=>ht(e.update),$nextTick:e=>ct.bind(e.proxy),$watch:e=>Ut.bind(e)}),cr={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:a,type:l,appContext:c}=e;let u;if("$"!==t[0]){const l=a[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(r!==i["b"]&&Object(i["k"])(r,t))return a[t]=1,r[t];if(o!==i["b"]&&Object(i["k"])(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&Object(i["k"])(u,t))return a[t]=3,s[t];if(n!==i["b"]&&Object(i["k"])(n,t))return a[t]=4,n[t];Sn&&(a[t]=0)}}const h=lr[t];let d,f;return h?("$attrs"===t&&C(e,"get",t),h(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==i["b"]&&Object(i["k"])(n,t)?(a[t]=4,n[t]):(f=c.config.globalProperties,Object(i["k"])(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;if(o!==i["b"]&&Object(i["k"])(o,t))o[t]=n;else if(r!==i["b"]&&Object(i["k"])(r,t))r[t]=n;else if(Object(i["k"])(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},a){let l;return!!n[a]||e!==i["b"]&&Object(i["k"])(e,a)||t!==i["b"]&&Object(i["k"])(t,a)||(l=s[0])&&Object(i["k"])(l,a)||Object(i["k"])(r,a)||Object(i["k"])(lr,a)||Object(i["k"])(o.config.globalProperties,a)}};const ur=ni();let hr=0;function dr(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||ur,a={uid:hr++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new s(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Un(r,o),emitsOptions:_t(r,o),emit:null,emitted:null,propsDefaults:i["b"],inheritAttrs:r.inheritAttrs,ctx:i["b"],data:i["b"],props:i["b"],attrs:i["b"],slots:i["b"],refs:i["b"],setupState:i["b"],setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=xt.bind(null,a),e.ce&&e.ce(a),a}let fr=null;const pr=()=>fr||St,gr=e=>{fr=e,e.scope.on()},mr=()=>{fr&&fr.scope.off(),fr=null};function vr(e){return 4&e.vnode.shapeFlag}let yr,br,wr=!1;function xr(e,t=!1){wr=t;const{props:n,children:i}=e.vnode,r=vr(e);Mn(e,n,r,t),Jn(e,i);const o=r?_r(e,t):void 0;return wr=!1,o}function _r(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=je(new Proxy(e.ctx,cr));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Er(e):null;gr(e),O();const o=Ge(r,e,0,[e.props,n]);if(P(),mr(),Object(i["y"])(o)){if(o.then(mr,mr),t)return o.then(n=>{Tr(e,n,t)}).catch(t=>{Ze(t,e,0)});e.asyncDep=o}else Tr(e,o,t)}else Sr(e,t)}function Tr(e,t,n){Object(i["p"])(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Object(i["v"])(t)&&(e.setupState=Ve(t)),Sr(e,n)}function Sr(e,t,n){const r=e.type;if(!e.render){if(!t&&yr&&!r.render){const t=r.template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:a}=r,l=Object(i["h"])(Object(i["h"])({isCustomElement:n,delimiters:s},o),a);r.render=yr(t,l)}}e.render=r.render||i["d"],br&&br(e)}gr(e),O(),On(e),P(),mr()}function Or(e){return new Proxy(e.attrs,{get(t,n){return C(e,"get","$attrs"),t[n]}})}function Er(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Or(e))},slots:e.slots,emit:e.emit,expose:t}}function Pr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ve(je(e.exposed)),{get(t,n){return n in t?t[n]:n in lr?lr[n](e):void 0}}))}function Cr(e){return Object(i["p"])(e)&&e.displayName||e.name}function kr(e){return Object(i["p"])(e)&&"__vccOpts"in e}const Rr=(e,t)=>qe(e,t,wr);function jr(e,t,n){const r=arguments.length;return 2===r?Object(i["v"])(t)&&!Object(i["o"])(t)?Hi(t)?Gi(e,null,[t]):Gi(e,t):Gi(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Hi(n)&&(n=[n]),Gi(e,t,n))}Symbol("");const Ir="3.2.27",Dr="http://www.w3.org/2000/svg",Lr="undefined"!==typeof document?document:null,Fr=Lr&&Lr.createElement("template"),Ar={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t?Lr.createElementNS(Dr,e):Lr.createElement(e,n?{is:n}:void 0);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>Lr.createTextNode(e),createComment:e=>Lr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,i,r,o){const s=n?n.previousSibling:t.lastChild;if(r&&o){while(1)if(t.insertBefore(r.cloneNode(!0),n),r===o||!(r=r.nextSibling))break}else{Fr.innerHTML=i?`<svg>${e}</svg>`:e;const r=Fr.content;if(i){const e=r.firstChild;while(e.firstChild)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Nr(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Mr(e,t,n){const r=e.style,o=Object(i["D"])(n);if(n&&!o){for(const e in n)Hr(r,e,n[e]);if(t&&!Object(i["D"])(t))for(const e in t)null==n[e]&&Hr(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Br=/\s*!important$/;function Hr(e,t,n){if(Object(i["o"])(n))n.forEach(n=>Hr(e,t,n));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=Vr(e,t);Br.test(n)?e.setProperty(Object(i["l"])(r),n.replace(Br,""),"important"):e[r]=n}}const zr=["Webkit","Moz","ms"],Ur={};function Vr(e,t){const n=Ur[t];if(n)return n;let r=Object(i["e"])(t);if("filter"!==r&&r in e)return Ur[t]=r;r=Object(i["f"])(r);for(let i=0;i<zr.length;i++){const n=zr[i]+r;if(n in e)return Ur[t]=n}return t}const Wr="http://www.w3.org/1999/xlink";function qr(e,t,n,r,o){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Wr,t.slice(6,t.length)):e.setAttributeNS(Wr,t,n);else{const r=Object(i["C"])(t);null==n||r&&!Object(i["m"])(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Gr(e,t,n,r,o,s,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,o,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const i=null==n?"":n;return e.value===i&&"OPTION"!==e.tagName||(e.value=i),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if("boolean"===r)return void(e[t]=Object(i["m"])(n));if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(l){}return void e.removeAttribute(t)}}try{e[t]=n}catch(c){0}}let $r=Date.now,Zr=!1;if("undefined"!==typeof window){$r()>document.createEvent("Event").timeStamp&&($r=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Zr=!!(e&&Number(e[1])<=53)}let Xr=0;const Yr=Promise.resolve(),Kr=()=>{Xr=0},Jr=()=>Xr||(Yr.then(Kr),Xr=$r());function Qr(e,t,n,i){e.addEventListener(t,n,i)}function eo(e,t,n,i){e.removeEventListener(t,n,i)}function to(e,t,n,i,r=null){const o=e._vei||(e._vei={}),s=o[t];if(i&&s)s.value=i;else{const[n,a]=io(t);if(i){const s=o[t]=ro(i,r);Qr(e,n,s,a)}else s&&(eo(e,n,s,a),o[t]=void 0)}}const no=/(?:Once|Passive|Capture)$/;function io(e){let t;if(no.test(e)){let n;t={};while(n=e.match(no))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Object(i["l"])(e.slice(2)),t]}function ro(e,t){const n=e=>{const i=e.timeStamp||$r();(Zr||i>=n.attached-1)&&$e(oo(e,n.value),t,5,[e])};return n.value=e,n.attached=Jr(),n}function oo(e,t){if(Object(i["o"])(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}const so=/^on[a-z]/,ao=(e,t,n,r,o=!1,s,a,l,c)=>{"class"===t?Nr(e,r,o):"style"===t?Mr(e,n,r):Object(i["w"])(t)?Object(i["u"])(t)||to(e,t,n,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):lo(e,t,r,o))?Gr(e,t,r,s,a,l,c):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),qr(e,t,r,o))};function lo(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&so.test(t)&&Object(i["p"])(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!so.test(t)||!Object(i["D"])(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const co="transition",uo="animation",ho=(e,{slots:t})=>jr(Zt,mo(e),t);ho.displayName="Transition";const fo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},po=(ho.props=Object(i["h"])({},Zt.props,fo),(e,t=[])=>{Object(i["o"])(e)?e.forEach(e=>e(...t)):e&&e(...t)}),go=e=>!!e&&(Object(i["o"])(e)?e.some(e=>e.length>1):e.length>1);function mo(e){const t={};for(const i in e)i in fo||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=n+"-enter-from",enterActiveClass:a=n+"-enter-active",enterToClass:l=n+"-enter-to",appearFromClass:c=s,appearActiveClass:u=a,appearToClass:h=l,leaveFromClass:d=n+"-leave-from",leaveActiveClass:f=n+"-leave-active",leaveToClass:p=n+"-leave-to"}=e,g=vo(o),m=g&&g[0],v=g&&g[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:x,onLeaveCancelled:_,onBeforeAppear:T=y,onAppear:S=b,onAppearCancelled:O=w}=t,E=(e,t,n)=>{wo(e,t?h:l),wo(e,t?u:a),n&&n()},P=(e,t)=>{wo(e,p),wo(e,f),t&&t()},C=e=>(t,n)=>{const i=e?S:b,o=()=>E(t,e,n);po(i,[t,o]),xo(()=>{wo(t,e?c:s),bo(t,e?h:l),go(i)||To(t,r,m,o)})};return Object(i["h"])(t,{onBeforeEnter(e){po(y,[e]),bo(e,s),bo(e,a)},onBeforeAppear(e){po(T,[e]),bo(e,c),bo(e,u)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){const n=()=>P(e,t);bo(e,d),Po(),bo(e,f),xo(()=>{wo(e,d),bo(e,p),go(x)||To(e,r,v,n)}),po(x,[e,n])},onEnterCancelled(e){E(e,!1),po(w,[e])},onAppearCancelled(e){E(e,!0),po(O,[e])},onLeaveCancelled(e){P(e),po(_,[e])}})}function vo(e){if(null==e)return null;if(Object(i["v"])(e))return[yo(e.enter),yo(e.leave)];{const t=yo(e);return[t,t]}}function yo(e){const t=Object(i["N"])(e);return t}function bo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e._vtc||(e._vtc=new Set)).add(t)}function wo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function xo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let _o=0;function To(e,t,n,i){const r=e._endId=++_o,o=()=>{r===e._endId&&i()};if(n)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=So(e,t);if(!s)return i();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,d),o()},d=t=>{t.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},a+1),e.addEventListener(c,d)}function So(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),r=i(co+"Delay"),o=i(co+"Duration"),s=Oo(r,o),a=i(uo+"Delay"),l=i(uo+"Duration"),c=Oo(a,l);let u=null,h=0,d=0;t===co?s>0&&(u=co,h=s,d=o.length):t===uo?c>0&&(u=uo,h=c,d=l.length):(h=Math.max(s,c),u=h>0?s>c?co:uo:null,d=u?u===co?o.length:l.length:0);const f=u===co&&/\b(transform|all)(,|$)/.test(n[co+"Property"]);return{type:u,timeout:h,propCount:d,hasTransform:f}}function Oo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map((t,n)=>Eo(t)+Eo(e[n])))}function Eo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Po(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Co=e=>{const t=e.props["onUpdate:modelValue"];return Object(i["o"])(t)?e=>Object(i["n"])(t,e):t};function ko(e){e.target.composing=!0}function Ro(e){const t=e.target;t.composing&&(t.composing=!1,jo(t,"input"))}function jo(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const Io={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Co(o);const s=r||o.props&&"number"===o.props.type;Qr(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():s&&(r=Object(i["N"])(r)),e._assign(r)}),n&&Qr(e,"change",()=>{e.value=e.value.trim()}),t||(Qr(e,"compositionstart",ko),Qr(e,"compositionend",Ro),Qr(e,"change",Ro))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=Co(s),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&Object(i["N"])(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}};const Do={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Object(i["B"])(t);Qr(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?Object(i["N"])(Fo(e)):Fo(e));e._assign(e.multiple?o?new Set(t):t:t[0])}),e._assign=Co(r)},mounted(e,{value:t}){Lo(e,t)},beforeUpdate(e,t,n){e._assign=Co(n)},updated(e,{value:t}){Lo(e,t)}};function Lo(e,t){const n=e.multiple;if(!n||Object(i["o"])(t)||Object(i["B"])(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],s=Fo(o);if(n)Object(i["o"])(t)?o.selected=Object(i["G"])(t,s)>-1:o.selected=t.has(s);else if(Object(i["F"])(Fo(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Fo(e){return"_value"in e?e._value:e.value}const Ao={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):No(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!==!n&&(i?t?(i.beforeEnter(e),No(e,!0),i.enter(e)):i.leave(e,()=>{No(e,!1)}):No(e,t))},beforeUnmount(e,{value:t}){No(e,t)}};function No(e,t){e.style.display=t?e._vod:"none"}const Mo=Object(i["h"])({patchProp:ao},Ar);let Bo;function Ho(){return Bo||(Bo=li(Mo))}const zo=(...e)=>{const t=Ho().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Uo(e);if(!r)return;const o=t._component;Object(i["p"])(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function Uo(e){if(Object(i["D"])(e)){const t=document.querySelector(e);return t}return e}},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var i=n("da84"),r=n("1d80"),o=i.Object;e.exports=function(e){return o(r(e))}},"7c73":function(e,t,n){var i,r=n("825a"),o=n("37e8"),s=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),h=">",d="<",f="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return d+p+h+e+d+"/"+p+h},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&i?y(i):b():y(i);var e=s.length;while(e--)delete w[f][s[e]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=r(e),n=new m,m[f]=null,n[g]=e):n=w(),void 0===t?n:o.f(n,t)}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,o=n("44d2"),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("c430"),s=n("5e77"),a=n("1626"),l=n("9ed3"),c=n("e163"),u=n("d2bb"),h=n("d44e"),d=n("9112"),f=n("6eeb"),p=n("b622"),g=n("3f8c"),m=n("ae93"),v=s.PROPER,y=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=p("iterator"),_="keys",T="values",S="entries",O=function(){return this};e.exports=function(e,t,n,s,p,m,E){l(n,t,s);var P,C,k,R=function(e){if(e===p&&F)return F;if(!w&&e in D)return D[e];switch(e){case _:return function(){return new n(this,e)};case T:return function(){return new n(this,e)};case S:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",I=!1,D=e.prototype,L=D[x]||D["@@iterator"]||p&&D[p],F=!w&&L||R(p),A="Array"==t&&D.entries||L;if(A&&(P=c(A.call(new e)),P!==Object.prototype&&P.next&&(o||c(P)===b||(u?u(P,b):a(P[x])||f(P,x,O)),h(P,j,!0,!0),o&&(g[j]=O))),v&&p==T&&L&&L.name!==T&&(!o&&y?d(D,"name",T):(I=!0,F=function(){return r(L,this)})),p)if(C={values:R(T),keys:m?F:R(_),entries:R(S)},E)for(k in C)(w||I||!(k in D))&&f(D,k,C[k]);else i({target:t,proto:!0,forced:w||I},C);return o&&!E||D[x]===F||f(D,x,F,{name:p}),g[t]=F,C}},"7ed3":function(e,t,n){var i=n("23e7"),r=n("c65b"),o=n("825a"),s=n("861d"),a=n("c60d"),l=n("d039"),c=n("9bf2"),u=n("06cf"),h=n("e163"),d=n("5c6c");function f(e,t,n){var i,l,p,g=arguments.length<4?e:arguments[3],m=u.f(o(e),t);if(!m){if(s(l=h(e)))return f(l,t,n,g);m=d(0)}if(a(m)){if(!1===m.writable||!s(g))return!1;if(i=u.f(g,t)){if(i.get||i.set||!1===i.writable)return!1;i.value=n,c.f(g,t,i)}else c.f(g,t,d(0,n))}else{if(p=m.set,void 0===p)return!1;r(p,g,n)}return!0}var p=l((function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}));i({target:"Reflect",stat:!0,forced:p},{set:f})},"7f9a":function(e,t,n){var i=n("da84"),r=n("1626"),o=n("8925"),s=i.WeakMap;e.exports=r(s)&&/native code/.test(o(s))},"825a":function(e,t,n){var i=n("da84"),r=n("861d"),o=i.String,s=i.TypeError;e.exports=function(e){if(r(e))return e;throw s(o(e)+" is not an object")}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),r=n("e683");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},8418:function(e,t,n){"use strict";var i=n("a04b"),r=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var s=i(t);s in e?r.f(e,s,o(0,n)):e[s]=n}},"848b":function(e,t,n){"use strict";var i=n("4a0c"),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},s=i.version.split(".");function a(e,t){for(var n=t?t.split("."):s,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),r=i.length;while(r-- >0){var o=i[r],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}r.transitional=function(e,t,n){var r=t&&a(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(s(i," has been removed in "+t));return r&&!o[i]&&(o[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={isOlderVersion:a,assertOptions:l,validators:r}},"861d":function(e,t,n){var i=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},8925:function(e,t,n){var i=n("e330"),r=n("1626"),o=n("c6cd"),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},"8a79":function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("06cf").f,s=n("50c4"),a=n("577e"),l=n("5a34"),c=n("1d80"),u=n("ab13"),h=n("c430"),d=r("".endsWith),f=r("".slice),p=Math.min,g=u("endsWith"),m=!h&&!g&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!m&&!g},{endsWith:function(e){var t=a(c(this));l(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,r=void 0===n?i:p(s(n),i),o=a(e);return d?d(t,o,r):f(t,r-o.length,r)===o}})},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"90e3":function(e,t,n){var i=n("e330"),r=0,o=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+o,36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var i=n("c65b"),r=n("e330"),o=n("577e"),s=n("ad6d"),a=n("9f7f"),l=n("5692"),c=n("7c73"),u=n("69f3").get,h=n("fce3"),d=n("107c"),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=r("".charAt),v=r("".indexOf),y=r("".replace),b=r("".slice),w=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),x=a.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],T=w||_||x||h||d;T&&(g=function(e){var t,n,r,a,l,h,d,T=this,S=u(T),O=o(e),E=S.raw;if(E)return E.lastIndex=T.lastIndex,t=i(g,E,O),T.lastIndex=E.lastIndex,t;var P=S.groups,C=x&&T.sticky,k=i(s,T),R=T.source,j=0,I=O;if(C&&(k=y(k,"y",""),-1===v(k,"g")&&(k+="g"),I=b(O,T.lastIndex),T.lastIndex>0&&(!T.multiline||T.multiline&&"\n"!==m(O,T.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,j++),n=new RegExp("^(?:"+R+")",k)),_&&(n=new RegExp("^"+R+"$(?!\\s)",k)),w&&(r=T.lastIndex),a=i(p,C?n:T,I),C?a?(a.input=b(a.input,j),a[0]=b(a[0],j),a.index=T.lastIndex,T.lastIndex+=a[0].length):T.lastIndex=0:w&&a&&(T.lastIndex=T.global?a.index+a[0].length:r),_&&a&&a.length>1&&i(f,a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a&&P)for(a.groups=h=c(null),l=0;l<P.length;l++)d=P[l],h[d[0]]=a[d[1]];return a}),e.exports=g},"944a":function(e,t,n){var i=n("746f");i("toStringTag")},"94ca":function(e,t,n){var i=n("d039"),r=n("1626"),o=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n==u||n!=c&&(r(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},"96cf":function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),s=new k(i||[]);return o._invoke=O(e,n,s),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=c;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function y(){}var b={};l(b,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&i.call(x,o)&&(b=x);var _=y.prototype=m.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,o,s,a){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"===typeof h&&i.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(h).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var r;function o(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}this._invoke=o}function O(e,t,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return j()}n.method=r,n.arg=o;while(1){var s=n.delegate;if(s){var a=E(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=u(e,t,n);if("normal"===l.type){if(i=n.done?p:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}function E(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function n(){while(++r<e.length)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:j}}function j(){return{value:t,done:!0}}return v.prototype=y,l(_,"constructor",y),l(y,"constructor",v),v.displayName=l(y,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},T(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new S(c(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},T(_),l(_,a,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=R,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),c=i.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:R(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("d039"),s=n("e8b5"),a=n("861d"),l=n("7b0b"),c=n("07fa"),u=n("8418"),h=n("65f0"),d=n("1dde"),f=n("b622"),p=n("2d00"),g=f("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",y=r.TypeError,b=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),w=d("concat"),x=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:s(e)},_=!b||!w;i({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,i,r,o,s=l(this),a=h(s,0),d=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?s:arguments[t],x(o)){if(r=c(o),d+r>m)throw y(v);for(n=0;n<r;n++,d++)n in o&&u(a,d,o[n])}else{if(d>=m)throw y(v);u(a,d++,o)}return a.length=d,a}})},"9a0c":function(e,t,n){var i=n("342f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},"9a1f":function(e,t,n){var i=n("da84"),r=n("c65b"),o=n("59ed"),s=n("825a"),a=n("0d51"),l=n("35a1"),c=i.TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return s(r(n,e));throw c(a(e)+" is not iterable")}},"9ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));function i(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}},"9bdd":function(e,t,n){var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(s){r(e,"throw",s)}}},"9bf2":function(e,t,n){var i=n("da84"),r=n("83ab"),o=n("0cfb"),s=n("aed9"),a=n("825a"),l=n("a04b"),c=i.TypeError,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?s?function(e,t,n){if(a(e),t=l(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=h(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=l(t),a(n),o)try{return u(e,t,n)}catch(i){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),o=n("5c6c"),s=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=r(i,{next:o(+!c,n)}),s(e,u,!1,!0),a[u]=l,e}},"9f7f":function(e,t,n){var i=n("d039"),r=n("da84"),o=r.RegExp,s=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=s||i((function(){return!o("a","y").sticky})),l=s||i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:s}},"9ff4":function(e,t,n){"use strict";(function(e){function i(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return K})),n.d(t,"f",(function(){return ee})),n.d(t,"g",(function(){return re})),n.d(t,"h",(function(){return R})),n.d(t,"i",(function(){return ae})),n.d(t,"j",(function(){return ne})),n.d(t,"k",(function(){return D})),n.d(t,"l",(function(){return Q})),n.d(t,"m",(function(){return l})),n.d(t,"n",(function(){return ie})),n.d(t,"o",(function(){return L})),n.d(t,"p",(function(){return M})),n.d(t,"q",(function(){return o})),n.d(t,"r",(function(){return m})),n.d(t,"s",(function(){return $})),n.d(t,"t",(function(){return F})),n.d(t,"u",(function(){return k})),n.d(t,"v",(function(){return z})),n.d(t,"w",(function(){return C})),n.d(t,"x",(function(){return G})),n.d(t,"y",(function(){return U})),n.d(t,"z",(function(){return Z})),n.d(t,"A",(function(){return v})),n.d(t,"B",(function(){return A})),n.d(t,"C",(function(){return a})),n.d(t,"D",(function(){return B})),n.d(t,"E",(function(){return H})),n.d(t,"F",(function(){return b})),n.d(t,"G",(function(){return w})),n.d(t,"H",(function(){return i})),n.d(t,"I",(function(){return f})),n.d(t,"J",(function(){return c})),n.d(t,"K",(function(){return j})),n.d(t,"L",(function(){return x})),n.d(t,"M",(function(){return te})),n.d(t,"N",(function(){return oe})),n.d(t,"O",(function(){return q}));const r="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=i(r);const s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=i(s);function l(e){return!!e||""===e}function c(e){if(L(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=B(i)?d(i):c(i);if(r)for(const e in r)t[e]=r[e]}return t}return B(e)||z(e)?e:void 0}const u=/;(?![^(]*\))/g,h=/:(.+)/;function d(e){const t={};return e.split(u).forEach(e=>{if(e){const n=e.split(h);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function f(e){let t="";if(B(e))t=e;else if(L(e))for(let n=0;n<e.length;n++){const i=f(e[n]);i&&(t+=i+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const p="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",g="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",m=i(p),v=i(g);function y(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=b(e[i],t[i]);return n}function b(e,t){if(e===t)return!0;let n=N(e),i=N(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=L(e),i=L(t),n||i)return!(!n||!i)&&y(e,t);if(n=z(e),i=z(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const n in e){const i=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(i&&!r||!i&&r||!b(e[n],t[n]))return!1}}return String(e)===String(t)}function w(e,t){return e.findIndex(e=>b(e,t))}const x=e=>null==e?"":L(e)||z(e)&&(e.toString===V||!M(e.toString))?JSON.stringify(e,_,2):String(e),_=(e,t)=>t&&t.__v_isRef?_(e,t.value):F(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n])=>(e[t+" =>"]=n,e),{})}:A(t)?{[`Set(${t.size})`]:[...t.values()]}:!z(t)||L(t)||G(t)?t:String(t),T={},S=[],O=()=>{},E=()=>!1,P=/^on[^a-z]/,C=e=>P.test(e),k=e=>e.startsWith("onUpdate:"),R=Object.assign,j=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},I=Object.prototype.hasOwnProperty,D=(e,t)=>I.call(e,t),L=Array.isArray,F=e=>"[object Map]"===W(e),A=e=>"[object Set]"===W(e),N=e=>e instanceof Date,M=e=>"function"===typeof e,B=e=>"string"===typeof e,H=e=>"symbol"===typeof e,z=e=>null!==e&&"object"===typeof e,U=e=>z(e)&&M(e.then)&&M(e.catch),V=Object.prototype.toString,W=e=>V.call(e),q=e=>W(e).slice(8,-1),G=e=>"[object Object]"===W(e),$=e=>B(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Z=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),X=e=>{const t=Object.create(null);return n=>{const i=t[n];return i||(t[n]=e(n))}},Y=/-(\w)/g,K=X(e=>e.replace(Y,(e,t)=>t?t.toUpperCase():"")),J=/\B([A-Z])/g,Q=X(e=>e.replace(J,"-$1").toLowerCase()),ee=X(e=>e.charAt(0).toUpperCase()+e.slice(1)),te=X(e=>e?"on"+ee(e):""),ne=(e,t)=>!Object.is(e,t),ie=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},re=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},oe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let se;const ae=()=>se||(se="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{})}).call(this,n("c8ba"))},a04b:function(e,t,n){var i=n("c04e"),r=n("d9b5");e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("44ad"),s=n("fc6a"),a=n("a640"),l=r([].join),c=o!=Object,u=a("join",",");i({target:"Array",proto:!0,forced:c||!u},{join:function(e){return l(s(this),void 0===e?",":e)}})},a2bf:function(e,t,n){"use strict";var i=n("da84"),r=n("e8b5"),o=n("07fa"),s=n("0366"),a=i.TypeError,l=function(e,t,n,i,c,u,h,d){var f,p,g=c,m=0,v=!!h&&s(h,d);while(m<i){if(m in n){if(f=v?v(n[m],m,t):n[m],u>0&&r(f))p=o(f),g=l(e,t,f,p,g,u-1)-1;else{if(g>=9007199254740991)throw a("Exceed the acceptable array length");e[g]=f}g++}m++}return g};e.exports=l},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("23cb"),s=n("5926"),a=n("07fa"),l=n("7b0b"),c=n("65f0"),u=n("8418"),h=n("1dde"),d=h("splice"),f=r.TypeError,p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,i,r,h,d,y,b=l(this),w=a(b),x=o(e,w),_=arguments.length;if(0===_?n=i=0:1===_?(n=0,i=w-x):(n=_-2,i=g(p(s(t),0),w-x)),w+n-i>m)throw f(v);for(r=c(b,i),h=0;h<i;h++)d=x+h,d in b&&u(r,h,b[d]);if(r.length=i,n<i){for(h=x;h<w-i;h++)d=h+i,y=h+n,d in b?b[y]=b[d]:delete b[y];for(h=w;h>w-i+n;h--)delete b[h-1]}else if(n>i)for(h=w-i;h>x;h--)d=h+i-1,y=h+n-1,d in b?b[y]=b[d]:delete b[y];for(h=0;h<n;h++)b[h+x]=arguments[h+2];return b.length=w-i+n,r}})},a4b4:function(e,t,n){var i=n("342f");e.exports=/web0s(?!.*chrome)/i.test(i)},a4d3:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("d066"),s=n("2ba4"),a=n("c65b"),l=n("e330"),c=n("c430"),u=n("83ab"),h=n("4930"),d=n("d039"),f=n("1a2d"),p=n("e8b5"),g=n("1626"),m=n("861d"),v=n("3a9b"),y=n("d9b5"),b=n("825a"),w=n("7b0b"),x=n("fc6a"),_=n("a04b"),T=n("577e"),S=n("5c6c"),O=n("7c73"),E=n("df75"),P=n("241c"),C=n("057f"),k=n("7418"),R=n("06cf"),j=n("9bf2"),I=n("37e8"),D=n("d1e7"),L=n("f36a"),F=n("6eeb"),A=n("5692"),N=n("f772"),M=n("d012"),B=n("90e3"),H=n("b622"),z=n("e538"),U=n("746f"),V=n("d44e"),W=n("69f3"),q=n("b727").forEach,G=N("hidden"),$="Symbol",Z="prototype",X=H("toPrimitive"),Y=W.set,K=W.getterFor($),J=Object[Z],Q=r.Symbol,ee=Q&&Q[Z],te=r.TypeError,ne=r.QObject,ie=o("JSON","stringify"),re=R.f,oe=j.f,se=C.f,ae=D.f,le=l([].push),ce=A("symbols"),ue=A("op-symbols"),he=A("string-to-symbol-registry"),de=A("symbol-to-string-registry"),fe=A("wks"),pe=!ne||!ne[Z]||!ne[Z].findChild,ge=u&&d((function(){return 7!=O(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=re(J,t);i&&delete J[t],oe(e,t,n),i&&e!==J&&oe(J,t,i)}:oe,me=function(e,t){var n=ce[e]=O(ee);return Y(n,{type:$,tag:e,description:t}),u||(n.description=t),n},ve=function(e,t,n){e===J&&ve(ue,t,n),b(e);var i=_(t);return b(n),f(ce,i)?(n.enumerable?(f(e,G)&&e[G][i]&&(e[G][i]=!1),n=O(n,{enumerable:S(0,!1)})):(f(e,G)||oe(e,G,S(1,{})),e[G][i]=!0),ge(e,i,n)):oe(e,i,n)},ye=function(e,t){b(e);var n=x(t),i=E(n).concat(Te(n));return q(i,(function(t){u&&!a(we,n,t)||ve(e,t,n[t])})),e},be=function(e,t){return void 0===t?O(e):ye(O(e),t)},we=function(e){var t=_(e),n=a(ae,this,t);return!(this===J&&f(ce,t)&&!f(ue,t))&&(!(n||!f(this,t)||!f(ce,t)||f(this,G)&&this[G][t])||n)},xe=function(e,t){var n=x(e),i=_(t);if(n!==J||!f(ce,i)||f(ue,i)){var r=re(n,i);return!r||!f(ce,i)||f(n,G)&&n[G][i]||(r.enumerable=!0),r}},_e=function(e){var t=se(x(e)),n=[];return q(t,(function(e){f(ce,e)||f(M,e)||le(n,e)})),n},Te=function(e){var t=e===J,n=se(t?ue:x(e)),i=[];return q(n,(function(e){!f(ce,e)||t&&!f(J,e)||le(i,ce[e])})),i};if(h||(Q=function(){if(v(ee,this))throw te("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?T(arguments[0]):void 0,t=B(e),n=function(e){this===J&&a(n,ue,e),f(this,G)&&f(this[G],t)&&(this[G][t]=!1),ge(this,t,S(1,e))};return u&&pe&&ge(J,t,{configurable:!0,set:n}),me(t,e)},ee=Q[Z],F(ee,"toString",(function(){return K(this).tag})),F(Q,"withoutSetter",(function(e){return me(B(e),e)})),D.f=we,j.f=ve,I.f=ye,R.f=xe,P.f=C.f=_e,k.f=Te,z.f=function(e){return me(H(e),e)},u&&(oe(ee,"description",{configurable:!0,get:function(){return K(this).description}}),c||F(J,"propertyIsEnumerable",we,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Q}),q(E(fe),(function(e){U(e)})),i({target:$,stat:!0,forced:!h},{for:function(e){var t=T(e);if(f(he,t))return he[t];var n=Q(t);return he[t]=n,de[n]=t,n},keyFor:function(e){if(!y(e))throw te(e+" is not a symbol");if(f(de,e))return de[e]},useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!u},{create:be,defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:xe}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:_e,getOwnPropertySymbols:Te}),i({target:"Object",stat:!0,forced:d((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(w(e))}}),ie){var Se=!h||d((function(){var e=Q();return"[null]"!=ie([e])||"{}"!=ie({a:e})||"{}"!=ie(Object(e))}));i({target:"JSON",stat:!0,forced:Se},{stringify:function(e,t,n){var i=L(arguments),r=t;if((m(t)||void 0!==e)&&!y(e))return p(t)||(t=function(e,t){if(g(r)&&(t=a(r,this,e,t)),!y(t))return t}),i[1]=t,s(ie,null,i)}})}if(!ee[X]){var Oe=ee.valueOf;F(ee,X,(function(e){return a(Oe,this)}))}V(Q,$),M[G]=!0},a630:function(e,t,n){var i=n("23e7"),r=n("4df4"),o=n("1c7e"),s=!o((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:s},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),o=n("fea9"),s=n("d039"),a=n("d066"),l=n("1626"),c=n("4840"),u=n("cdf9"),h=n("6eeb"),d=!!o&&s((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));if(i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=c(this,a("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&l(o)){var f=a("Promise").prototype["finally"];o.prototype["finally"]!==f&&h(o.prototype,"finally",f,{unsafe:!0})}},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("e330"),s=n("94ca"),a=n("6eeb"),l=n("1a2d"),c=n("7156"),u=n("3a9b"),h=n("d9b5"),d=n("c04e"),f=n("d039"),p=n("241c").f,g=n("06cf").f,m=n("9bf2").f,v=n("408a"),y=n("58a8").trim,b="Number",w=r[b],x=w.prototype,_=r.TypeError,T=o("".slice),S=o("".charCodeAt),O=function(e){var t=d(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,n,i,r,o,s,a,l,c=d(e,"number");if(h(c))throw _("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),t=S(c,0),43===t||45===t){if(n=S(c,2),88===n||120===n)return NaN}else if(48===t){switch(S(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=T(c,2),s=o.length,a=0;a<s;a++)if(l=S(o,a),l<48||l>r)return NaN;return parseInt(o,i)}return+c};if(s(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var P,C=function(e){var t=arguments.length<1?0:w(O(e)),n=this;return u(x,n)&&f((function(){v(n)}))?c(Object(t),n,C):t},k=i?p(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),R=0;k.length>R;R++)l(w,P=k[R])&&!l(C,P)&&m(C,P,g(w,P));C.prototype=x,x.constructor=C,a(r,b,C)}},aa78:function(e,t,n){var i,r,o;//! openseadragon 4.0.0
//! Built on 2022-12-16
//! Git commit: v4.0.0-0-8e6196a
//! http://openseadragon.github.io
//! License: http://openseadragon.github.io/license/
function s(e){return new s.Viewer(e)}(function(e){e.version={versionStr:"4.0.0",major:parseInt("4",10),minor:parseInt("0",10),revision:parseInt("0",10)};var t={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"},n=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.isFunction=function(t){return"function"===e.type(t)},e.isArray=Array.isArray||function(t){return"array"===e.type(t)},e.isWindow=function(e){return e&&"object"===typeof e&&"setInterval"in e},e.type=function(e){return null===e||void 0===e?String(e):t[n.call(e)]||"object"},e.isPlainObject=function(t){if(!t||"object"!==s.type(t)||t.nodeType||e.isWindow(t))return!1;if(t.constructor&&!i.call(t,"constructor")&&!i.call(t.constructor.prototype,"isPrototypeOf"))return!1;var n;for(var r in t)n=r;return void 0===n||i.call(t,n)},e.isEmptyObject=function(e){for(var t in e)return!1;return!0},e.freezeObject=function(t){return Object.freeze?e.freezeObject=Object.freeze:e.freezeObject=function(e){return e},e.freezeObject(t)},e.supportsCanvas=function(){var t=document.createElement("canvas");return!(!e.isFunction(t.getContext)||!t.getContext("2d"))}(),e.isCanvasTainted=function(e){var t=!1;try{e.getContext("2d").getImageData(0,0,1,1)}catch(n){t=!0}return t},e.supportsAddEventListener=function(){return!(!document.documentElement.addEventListener||!document.addEventListener)}(),e.supportsRemoveEventListener=function(){return!(!document.documentElement.removeEventListener||!document.removeEventListener)}(),e.supportsEventListenerOptions=function(){var t=0;if(e.supportsAddEventListener)try{var n={get capture(){return t++,!1},get once(){return t++,!1},get passive(){return t++,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(i){t=0}return t>=3}(),e.getCurrentPixelDensityRatio=function(){if(e.supportsCanvas){var t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return Math.max(n,1)/i}return 1},e.pixelDensityRatio=e.getCurrentPixelDensityRatio()})(s),function(e){e.extend=function(){var t,n,i,r,o,a,l=arguments[0]||{},c=arguments.length,u=!1,h=1;for("boolean"===typeof l&&(u=l,l=arguments[1]||{},h=2),"object"===typeof l||s.isFunction(l)||(l={}),c===h&&(l=this,--h);h<c;h++)if(t=arguments[h],null!==t||void 0!==t)for(n in t){var d=Object.getOwnPropertyDescriptor(t,n);void 0!==d?d.get||d.set?Object.defineProperty(l,n,d):(r=d.value,l!==r&&(u&&r&&(s.isPlainObject(r)||(o=s.isArray(r)))?(i=l[n],o?(o=!1,a=i&&s.isArray(i)?i:[]):a=i&&s.isPlainObject(i)?i:{},l[n]=s.extend(u,a,r)):void 0!==r&&(l[n]=r))):e.console.warn('Could not copy inherited property "'+n+'".')}return l};var t=function(){if("object"!==typeof navigator)return!1;var e=navigator.userAgent;return"string"===typeof e&&(-1!==e.indexOf("iPhone")||-1!==e.indexOf("iPad")||-1!==e.indexOf("iPod"))};e.extend(e,{DEFAULT_SETTINGS:{xmlPath:null,tileSources:null,tileHost:null,initialPage:0,crossOriginPolicy:!1,ajaxWithCredentials:!1,loadTilesWithAjax:!1,ajaxHeaders:{},splitHashDataForPost:!1,panHorizontal:!0,panVertical:!0,constrainDuringPan:!1,wrapHorizontal:!1,wrapVertical:!1,visibilityRatio:.5,minPixelRatio:.5,defaultZoomLevel:0,minZoomLevel:null,maxZoomLevel:null,homeFillsViewer:!1,clickTimeThreshold:300,clickDistThreshold:5,dblClickTimeThreshold:300,dblClickDistThreshold:20,springStiffness:6.5,animationTime:1.2,gestureSettingsMouse:{dragToPan:!0,scrollToZoom:!0,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsTouch:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!0,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsPen:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!0,dblClickToZoom:!1,dblClickDragToZoom:!1,pinchToZoom:!1,zoomToRefPoint:!0,flickEnabled:!1,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},gestureSettingsUnknown:{dragToPan:!0,scrollToZoom:!1,clickToZoom:!1,dblClickToZoom:!0,dblClickDragToZoom:!1,pinchToZoom:!0,zoomToRefPoint:!0,flickEnabled:!0,flickMinSpeed:120,flickMomentum:.25,pinchRotate:!1},zoomPerClick:2,zoomPerScroll:1.2,zoomPerDblClickDrag:1.2,zoomPerSecond:1,blendTime:0,alwaysBlend:!1,autoHideControls:!0,immediateRender:!1,minZoomImageRatio:.9,maxZoomPixelRatio:1.1,smoothTileEdgesMinZoom:1.1,iOSDevice:t(),pixelsPerWheelLine:40,pixelsPerArrowPress:40,autoResize:!0,preserveImageSizeOnResize:!1,minScrollDeltaTime:50,rotationIncrement:90,showSequenceControl:!0,sequenceControlAnchor:null,preserveViewport:!1,preserveOverlays:!1,navPrevNextWrap:!1,showNavigationControl:!0,navigationControlAnchor:null,showZoomControl:!0,showHomeControl:!0,showFullPageControl:!0,showRotationControl:!1,showFlipControl:!1,controlsFadeDelay:2e3,controlsFadeLength:1500,mouseNavEnabled:!0,showNavigator:!1,navigatorElement:null,navigatorId:null,navigatorPosition:null,navigatorSizeRatio:.2,navigatorMaintainSizeRatio:!1,navigatorTop:null,navigatorLeft:null,navigatorHeight:null,navigatorWidth:null,navigatorAutoResize:!0,navigatorAutoFade:!0,navigatorRotate:!0,navigatorBackground:"#000",navigatorOpacity:.8,navigatorBorderColor:"#555",navigatorDisplayRegionColor:"#900",degrees:0,flipped:!1,opacity:1,preload:!1,compositeOperation:null,imageSmoothingEnabled:!0,placeholderFillStyle:null,subPixelRoundingForTransparency:null,showReferenceStrip:!1,referenceStripScroll:"horizontal",referenceStripElement:null,referenceStripHeight:null,referenceStripWidth:null,referenceStripPosition:"BOTTOM_LEFT",referenceStripSizeRatio:.2,collectionRows:3,collectionColumns:0,collectionLayout:"horizontal",collectionMode:!1,collectionTileSize:800,collectionTileMargin:80,imageLoaderLimit:0,maxImageCacheCount:200,timeout:3e4,useCanvas:!0,prefixUrl:"/images/",navImages:{zoomIn:{REST:"zoomin_rest.png",GROUP:"zoomin_grouphover.png",HOVER:"zoomin_hover.png",DOWN:"zoomin_pressed.png"},zoomOut:{REST:"zoomout_rest.png",GROUP:"zoomout_grouphover.png",HOVER:"zoomout_hover.png",DOWN:"zoomout_pressed.png"},home:{REST:"home_rest.png",GROUP:"home_grouphover.png",HOVER:"home_hover.png",DOWN:"home_pressed.png"},fullpage:{REST:"fullpage_rest.png",GROUP:"fullpage_grouphover.png",HOVER:"fullpage_hover.png",DOWN:"fullpage_pressed.png"},rotateleft:{REST:"rotateleft_rest.png",GROUP:"rotateleft_grouphover.png",HOVER:"rotateleft_hover.png",DOWN:"rotateleft_pressed.png"},rotateright:{REST:"rotateright_rest.png",GROUP:"rotateright_grouphover.png",HOVER:"rotateright_hover.png",DOWN:"rotateright_pressed.png"},flip:{REST:"flip_rest.png",GROUP:"flip_grouphover.png",HOVER:"flip_hover.png",DOWN:"flip_pressed.png"},previous:{REST:"previous_rest.png",GROUP:"previous_grouphover.png",HOVER:"previous_hover.png",DOWN:"previous_pressed.png"},next:{REST:"next_rest.png",GROUP:"next_grouphover.png",HOVER:"next_hover.png",DOWN:"next_pressed.png"}},debugMode:!1,debugGridColor:["#437AB2","#1B9E77","#D95F02","#7570B3","#E7298A","#66A61E","#E6AB02","#A6761D","#666666"],silenceMultiImageWarnings:!1},SIGNAL:"----seadragon----",delegate:function(e,t){return function(){var n=arguments;return void 0===n&&(n=[]),t.apply(e,n)}},BROWSERS:{UNKNOWN:0,IE:1,FIREFOX:2,SAFARI:3,CHROME:4,OPERA:5,EDGE:6,CHROMEEDGE:7},SUBPIXEL_ROUNDING_OCCURRENCES:{NEVER:0,ONLY_AT_REST:1,ALWAYS:2},_viewers:new Map,getViewer:function(t){return e._viewers.get(this.getElement(t))},getElement:function(e){return"string"===typeof e&&(e=document.getElementById(e)),e},getElementPosition:function(t){var n,i,r=new e.Point;t=e.getElement(t),n="fixed"===e.getElementStyle(t).position,i=o(t,n);while(i)r.x+=t.offsetLeft,r.y+=t.offsetTop,n&&(r=r.plus(e.getPageScroll())),t=i,n="fixed"===e.getElementStyle(t).position,i=o(t,n);return r},getElementOffset:function(t){t=e.getElement(t);var n,i,r=t&&t.ownerDocument,o={top:0,left:0};return r?(n=r.documentElement,"undefined"!==typeof t.getBoundingClientRect&&(o=t.getBoundingClientRect()),i=r===r.window?r:9===r.nodeType&&(r.defaultView||r.parentWindow),new e.Point(o.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0),o.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0))):new e.Point},getElementSize:function(t){return t=e.getElement(t),new e.Point(t.clientWidth,t.clientHeight)},getElementStyle:document.documentElement.currentStyle?function(t){return t=e.getElement(t),t.currentStyle}:function(t){return t=e.getElement(t),window.getComputedStyle(t,"")},getCssPropertyWithVendorPrefix:function(t){var n={};return e.getCssPropertyWithVendorPrefix=function(t){if(void 0!==n[t])return n[t];var i=document.createElement("div").style,r=null;if(void 0!==i[t])r=t;else for(var o=["Webkit","Moz","MS","O","webkit","moz","ms","o"],s=e.capitalizeFirstLetter(t),a=0;a<o.length;a++){var l=o[a]+s;if(void 0!==i[l]){r=l;break}}return n[t]=r,r},e.getCssPropertyWithVendorPrefix(t)},capitalizeFirstLetter:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},positiveModulo:function(e,t){var n=e%t;return n<0&&(n+=t),n},pointInElement:function(t,n){t=e.getElement(t);var i=e.getElementOffset(t),r=e.getElementSize(t);return n.x>=i.x&&n.x<i.x+r.x&&n.y<i.y+r.y&&n.y>=i.y},getMousePosition:function(t){if("number"===typeof t.pageX)e.getMousePosition=function(t){var n=new e.Point;return n.x=t.pageX,n.y=t.pageY,n};else{if("number"!==typeof t.clientX)throw new Error("Unknown event mouse position, no known technique.");e.getMousePosition=function(t){var n=new e.Point;return n.x=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n.y=t.clientY+document.body.scrollTop+document.documentElement.scrollTop,n}}return e.getMousePosition(t)},getPageScroll:function(){var t=document.documentElement||{},n=document.body||{};if("number"===typeof window.pageXOffset)e.getPageScroll=function(){return new e.Point(window.pageXOffset,window.pageYOffset)};else if(n.scrollLeft||n.scrollTop)e.getPageScroll=function(){return new e.Point(document.body.scrollLeft,document.body.scrollTop)};else{if(!t.scrollLeft&&!t.scrollTop)return new e.Point(0,0);e.getPageScroll=function(){return new e.Point(document.documentElement.scrollLeft,document.documentElement.scrollTop)}}return e.getPageScroll()},setPageScroll:function(t){if("undefined"!==typeof window.scrollTo)e.setPageScroll=function(e){window.scrollTo(e.x,e.y)};else{var n=e.getPageScroll();if(n.x===t.x&&n.y===t.y)return;document.body.scrollLeft=t.x,document.body.scrollTop=t.y;var i=e.getPageScroll();if(i.x!==n.x&&i.y!==n.y)return void(e.setPageScroll=function(e){document.body.scrollLeft=e.x,document.body.scrollTop=e.y});if(document.documentElement.scrollLeft=t.x,document.documentElement.scrollTop=t.y,i=e.getPageScroll(),i.x!==n.x&&i.y!==n.y)return void(e.setPageScroll=function(e){document.documentElement.scrollLeft=e.x,document.documentElement.scrollTop=e.y});e.setPageScroll=function(e){}}e.setPageScroll(t)},getWindowSize:function(){var t=document.documentElement||{},n=document.body||{};if("number"===typeof window.innerWidth)e.getWindowSize=function(){return new e.Point(window.innerWidth,window.innerHeight)};else if(t.clientWidth||t.clientHeight)e.getWindowSize=function(){return new e.Point(document.documentElement.clientWidth,document.documentElement.clientHeight)};else{if(!n.clientWidth&&!n.clientHeight)throw new Error("Unknown window size, no known technique.");e.getWindowSize=function(){return new e.Point(document.body.clientWidth,document.body.clientHeight)}}return e.getWindowSize()},makeCenteredNode:function(t){t=e.getElement(t);var n=[e.makeNeutralElement("div"),e.makeNeutralElement("div"),e.makeNeutralElement("div")];return e.extend(n[0].style,{display:"table",height:"100%",width:"100%"}),e.extend(n[1].style,{display:"table-row"}),e.extend(n[2].style,{display:"table-cell",verticalAlign:"middle",textAlign:"center"}),n[0].appendChild(n[1]),n[1].appendChild(n[2]),n[2].appendChild(t),n[0]},makeNeutralElement:function(e){var t=document.createElement(e),n=t.style;return n.background="transparent none",n.border="none",n.margin="0px",n.padding="0px",n.position="static",t},now:function(){return Date.now?e.now=Date.now:e.now=function(){return(new Date).getTime()},e.now()},makeTransparentImage:function(t){var n=e.makeNeutralElement("img");return n.src=t,n},setElementOpacity:function(t,n,i){var r,o;t=e.getElement(t),i&&!e.Browser.alpha&&(n=Math.round(n)),e.Browser.opacity?t.style.opacity=n<1?n:"":n<1?(r=Math.round(100*n),o="alpha(opacity="+r+")",t.style.filter=o):t.style.filter=""},setElementTouchActionNone:function(t){t=e.getElement(t),"undefined"!==typeof t.style.touchAction?t.style.touchAction="none":"undefined"!==typeof t.style.msTouchAction&&(t.style.msTouchAction="none")},setElementPointerEvents:function(t,n){t=e.getElement(t),"undefined"!==typeof t.style&&"undefined"!==typeof t.style.pointerEvents&&(t.style.pointerEvents=n)},setElementPointerEventsNone:function(t){e.setElementPointerEvents(t,"none")},addClass:function(t,n){t=e.getElement(t),t.className?-1===(" "+t.className+" ").indexOf(" "+n+" ")&&(t.className+=" "+n):t.className=n},indexOf:function(e,t,n){return Array.prototype.indexOf?this.indexOf=function(e,t,n){return e.indexOf(t,n)}:this.indexOf=function(e,t,n){var i,r,o=n||0;if(!e)throw new TypeError;if(r=e.length,0===r||o>=r)return-1;for(o<0&&(o=r-Math.abs(o)),i=o;i<r;i++)if(e[i]===t)return i;return-1},this.indexOf(e,t,n)},removeClass:function(t,n){var i,r,o=[];for(t=e.getElement(t),i=t.className.split(/\s+/),r=0;r<i.length;r++)i[r]&&i[r]!==n&&o.push(i[r]);t.className=o.join(" ")},normalizeEventListenerOptions:function(t){var n;return n="undefined"!==typeof t?"boolean"===typeof t?e.supportsEventListenerOptions?{capture:t}:t:e.supportsEventListenerOptions?t:"undefined"!==typeof t.capture&&t.capture:!!e.supportsEventListenerOptions&&{capture:!1},n},addEvent:function(){if(e.supportsAddEventListener)return function(t,n,i,r){r=e.normalizeEventListenerOptions(r),t=e.getElement(t),t.addEventListener(n,i,r)};if(document.documentElement.attachEvent&&document.attachEvent)return function(t,n,i){t=e.getElement(t),t.attachEvent("on"+n,i)};throw new Error("No known event model.")}(),removeEvent:function(){if(e.supportsRemoveEventListener)return function(t,n,i,r){r=e.normalizeEventListenerOptions(r),t=e.getElement(t),t.removeEventListener(n,i,r)};if(document.documentElement.detachEvent&&document.detachEvent)return function(t,n,i){t=e.getElement(t),t.detachEvent("on"+n,i)};throw new Error("No known event model.")}(),cancelEvent:function(e){e.preventDefault()},eventIsCanceled:function(e){return e.defaultPrevented},stopEvent:function(e){e.stopPropagation()},createCallback:function(e,t){var n,i=[];for(n=2;n<arguments.length;n++)i.push(arguments[n]);return function(){var n,r=i.concat([]);for(n=0;n<arguments.length;n++)r.push(arguments[n]);return t.apply(e,r)}},getUrlParameter:function(e){var t=r[e];return t||null},getUrlProtocol:function(e){var t=e.match(/^([a-z]+:)\/\//i);return null===t?window.location.protocol:t[1].toLowerCase()},createAjaxRequest:function(t){var n;try{n=!!new ActiveXObject("Microsoft.XMLHTTP")}catch(i){n=!1}if(n)window.XMLHttpRequest?e.createAjaxRequest=function(e){return e?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}:e.createAjaxRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")};else{if(!window.XMLHttpRequest)throw new Error("Browser doesn't support XMLHttpRequest.");e.createAjaxRequest=function(){return new XMLHttpRequest}}return e.createAjaxRequest(t)},makeAjaxRequest:function(t,n,i){var r,o,s,a;e.isPlainObject(t)&&(n=t.success,i=t.error,r=t.withCredentials,o=t.headers,s=t.responseType||null,a=t.postData||null,t=t.url);var l=e.getUrlProtocol(t),c=e.createAjaxRequest("file:"===l);if(!e.isFunction(n))throw new Error("makeAjaxRequest requires a success callback");c.onreadystatechange=function(){4===c.readyState&&(c.onreadystatechange=function(){},c.status>=200&&c.status<300||0===c.status&&"http:"!==l&&"https:"!==l?n(c):e.isFunction(i)?i(c):e.console.error("AJAX request returned %d: %s",c.status,t))};var u=a?"POST":"GET";try{if(c.open(u,t,!0),s&&(c.responseType=s),o)for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&o[h]&&c.setRequestHeader(h,o[h]);r&&(c.withCredentials=!0),c.send(a)}catch(d){e.console.error("%s while making AJAX request: %s",d.name,d.message),c.onreadystatechange=function(){},e.isFunction(i)&&i(c,d)}return c},jsonp:function(t){var n,i=t.url,r=document.head||document.getElementsByTagName("head")[0]||document.documentElement,o=t.callbackName||"openseadragon"+e.now(),s=window[o],a="$1"+o+"$2",l=t.param||"callback",c=t.callback;i=i.replace(/(=)\?(&|$)|\?\?/i,a),i+=(/\?/.test(i)?"&":"?")+l+"="+o,window[o]=function(t){if(s)window[o]=s;else try{delete window[o]}catch(n){}c&&e.isFunction(c)&&c(t)},n=document.createElement("script"),void 0===t.async&&!1===t.async||(n.async="async"),t.scriptCharset&&(n.charset=t.scriptCharset),n.src=i,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=void 0)},r.insertBefore(n,r.firstChild)},createFromDZI:function(){throw"OpenSeadragon.createFromDZI is deprecated, use Viewer.open."},parseXml:function(t){if(window.DOMParser)e.parseXml=function(e){var t,n=null;return t=new DOMParser,n=t.parseFromString(e,"text/xml"),n};else{if(!window.ActiveXObject)throw new Error("Browser doesn't support XML DOM.");e.parseXml=function(e){var t=null;return t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(e),t}}return e.parseXml(t)},parseJSON:function(t){return e.parseJSON=window.JSON.parse,e.parseJSON(t)},imageFormatSupported:function(e){return e=e||"",!!i[e.toLowerCase()]},setImageFormatsSupported:function(t){e.extend(i,t)}});var n=function(e){};e.console=window.console||{log:n,debug:n,info:n,warn:n,error:n,assert:n},e.Browser={vendor:e.BROWSERS.UNKNOWN,version:0,alpha:!0};var i={bmp:!1,jpeg:!0,jpg:!0,png:!0,tif:!1,wdp:!1},r={};function o(e,t){return t&&e!==document.body?document.body:e.offsetParent}(function(){var t,n=navigator.appVersion,i=navigator.userAgent;switch(navigator.appName){case"Microsoft Internet Explorer":window.attachEvent&&window.ActiveXObject&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(i.substring(i.indexOf("MSIE")+5,i.indexOf(";",i.indexOf("MSIE")))));break;case"Netscape":window.addEventListener&&(i.indexOf("Edge")>=0?(e.Browser.vendor=e.BROWSERS.EDGE,e.Browser.version=parseFloat(i.substring(i.indexOf("Edge")+5))):i.indexOf("Edg")>=0?(e.Browser.vendor=e.BROWSERS.CHROMEEDGE,e.Browser.version=parseFloat(i.substring(i.indexOf("Edg")+4))):i.indexOf("Firefox")>=0?(e.Browser.vendor=e.BROWSERS.FIREFOX,e.Browser.version=parseFloat(i.substring(i.indexOf("Firefox")+8))):i.indexOf("Safari")>=0?(e.Browser.vendor=i.indexOf("Chrome")>=0?e.BROWSERS.CHROME:e.BROWSERS.SAFARI,e.Browser.version=parseFloat(i.substring(i.substring(0,i.indexOf("Safari")).lastIndexOf("/")+1,i.indexOf("Safari")))):(t=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),null!==t.exec(i)&&(e.Browser.vendor=e.BROWSERS.IE,e.Browser.version=parseFloat(RegExp.$1))));break;case"Opera":e.Browser.vendor=e.BROWSERS.OPERA,e.Browser.version=parseFloat(n);break}var o,s,a,l=window.location.search.substring(1),c=l.split("&");for(a=0;a<c.length;a++)if(o=c[a],s=o.indexOf("="),s>0){var u=o.substring(0,s),h=o.substring(s+1);try{r[u]=decodeURIComponent(h)}catch(d){e.console.error("Ignoring malformed URL parameter: %s=%s",u,h)}}e.Browser.alpha=!(e.Browser.vendor===e.BROWSERS.CHROME&&e.Browser.version<2),e.Browser.opacity=!0,e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version<11&&e.console.error("Internet Explorer versions < 11 are not supported by OpenSeadragon")})(),function(t){var n=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame,i=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.msCancelAnimationFrame;if(n&&i)e.requestAnimationFrame=function(){return n.apply(t,arguments)},e.cancelAnimationFrame=function(){return i.apply(t,arguments)};else{var r,o=[],s=[],a=0;e.requestAnimationFrame=function(t){return o.push([++a,t]),r||(r=setInterval((function(){if(o.length){var t=e.now(),n=s;s=o,o=n;while(s.length)s.shift()[1](t)}else clearInterval(r),r=void 0}),20)),a},e.cancelAnimationFrame=function(e){var t,n;for(t=0,n=o.length;t<n;t+=1)if(o[t][0]===e)return void o.splice(t,1);for(t=0,n=s.length;t<n;t+=1)if(s[t][0]===e)return void s.splice(t,1)}}}(window)}(s),function(n,s){r=[],i=s,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)}(0,(function(){return s})),function(e){var t={supportsFullScreen:!1,isFullScreen:function(){return!1},getFullScreenElement:function(){return null},requestFullScreen:function(){},exitFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",fullScreenErrorEventName:""};document.exitFullscreen?(t.supportsFullScreen=!0,t.getFullScreenElement=function(){return document.fullscreenElement},t.requestFullScreen=function(e){return e.requestFullscreen()},t.exitFullScreen=function(){document.exitFullscreen()},t.fullScreenEventName="fullscreenchange",t.fullScreenErrorEventName="fullscreenerror"):document.msExitFullscreen?(t.supportsFullScreen=!0,t.getFullScreenElement=function(){return document.msFullscreenElement},t.requestFullScreen=function(e){return e.msRequestFullscreen()},t.exitFullScreen=function(){document.msExitFullscreen()},t.fullScreenEventName="MSFullscreenChange",t.fullScreenErrorEventName="MSFullscreenError"):document.webkitExitFullscreen?(t.supportsFullScreen=!0,t.getFullScreenElement=function(){return document.webkitFullscreenElement},t.requestFullScreen=function(e){return e.webkitRequestFullscreen()},t.exitFullScreen=function(){document.webkitExitFullscreen()},t.fullScreenEventName="webkitfullscreenchange",t.fullScreenErrorEventName="webkitfullscreenerror"):document.webkitCancelFullScreen?(t.supportsFullScreen=!0,t.getFullScreenElement=function(){return document.webkitCurrentFullScreenElement},t.requestFullScreen=function(e){return e.webkitRequestFullScreen()},t.exitFullScreen=function(){document.webkitCancelFullScreen()},t.fullScreenEventName="webkitfullscreenchange",t.fullScreenErrorEventName="webkitfullscreenerror"):document.mozCancelFullScreen&&(t.supportsFullScreen=!0,t.getFullScreenElement=function(){return document.mozFullScreenElement},t.requestFullScreen=function(e){return e.mozRequestFullScreen()},t.exitFullScreen=function(){document.mozCancelFullScreen()},t.fullScreenEventName="mozfullscreenchange",t.fullScreenErrorEventName="mozfullscreenerror"),t.isFullScreen=function(){return null!==t.getFullScreenElement()},t.cancelFullScreen=function(){e.console.error("cancelFullScreen is deprecated. Use exitFullScreen instead."),t.exitFullScreen()},e.extend(e,t)}(s),function(e){e.EventSource=function(){this.events={}},e.EventSource.prototype={addOnceHandler:function(e,t,n,i){var r=this;i=i||1;var o=0,s=function(n){o++,o===i&&r.removeHandler(e,s),t(n)};this.addHandler(e,s,n)},addHandler:function(t,n,i){var r=this.events[t];r||(this.events[t]=r=[]),n&&e.isFunction(n)&&(r[r.length]={handler:n,userData:i||null})},removeHandler:function(t,n){var i,r=this.events[t],o=[];if(r&&e.isArray(r)){for(i=0;i<r.length;i++)r[i].handler!==n&&o.push(r[i]);this.events[t]=o}},numberOfHandlers:function(e){var t=this.events[e];return t?t.length:0},removeAllHandlers:function(e){if(e)this.events[e]=[];else for(var t in this.events)this.events[t]=[]},getHandler:function(e){var t=this.events[e];return t&&t.length?(t=1===t.length?[t[0]]:Array.apply(null,t),function(e,n){var i,r=t.length;for(i=0;i<r;i++)t[i]&&(n.eventSource=e,n.userData=t[i].userData,t[i].handler(n))}):null},raiseEvent:function(e,t){var n=this.getHandler(e);n&&(t||(t={}),n(this,t))}}}(s),function(e){var t=[],n={};e.MouseTracker=function(i){t.push(this);var r=arguments;e.isPlainObject(i)||(i={element:r[0],clickTimeThreshold:r[1],clickDistThreshold:r[2]}),this.hash=Math.random(),this.element=e.getElement(i.element),this.clickTimeThreshold=i.clickTimeThreshold||e.DEFAULT_SETTINGS.clickTimeThreshold,this.clickDistThreshold=i.clickDistThreshold||e.DEFAULT_SETTINGS.clickDistThreshold,this.dblClickTimeThreshold=i.dblClickTimeThreshold||e.DEFAULT_SETTINGS.dblClickTimeThreshold,this.dblClickDistThreshold=i.dblClickDistThreshold||e.DEFAULT_SETTINGS.dblClickDistThreshold,this.userData=i.userData||null,this.stopDelay=i.stopDelay||50,this.preProcessEventHandler=i.preProcessEventHandler||null,this.contextMenuHandler=i.contextMenuHandler||null,this.enterHandler=i.enterHandler||null,this.leaveHandler=i.leaveHandler||null,this.exitHandler=i.exitHandler||null,this.overHandler=i.overHandler||null,this.outHandler=i.outHandler||null,this.pressHandler=i.pressHandler||null,this.nonPrimaryPressHandler=i.nonPrimaryPressHandler||null,this.releaseHandler=i.releaseHandler||null,this.nonPrimaryReleaseHandler=i.nonPrimaryReleaseHandler||null,this.moveHandler=i.moveHandler||null,this.scrollHandler=i.scrollHandler||null,this.clickHandler=i.clickHandler||null,this.dblClickHandler=i.dblClickHandler||null,this.dragHandler=i.dragHandler||null,this.dragEndHandler=i.dragEndHandler||null,this.pinchHandler=i.pinchHandler||null,this.stopHandler=i.stopHandler||null,this.keyDownHandler=i.keyDownHandler||null,this.keyUpHandler=i.keyUpHandler||null,this.keyHandler=i.keyHandler||null,this.focusHandler=i.focusHandler||null,this.blurHandler=i.blurHandler||null;var o=this;n[this.hash]={click:function(e){y(o,e)},dblclick:function(e){b(o,e)},keydown:function(e){w(o,e)},keyup:function(e){x(o,e)},keypress:function(e){_(o,e)},focus:function(e){T(o,e)},blur:function(e){S(o,e)},contextmenu:function(e){O(o,e)},wheel:function(e){E(o,e)},mousewheel:function(e){P(o,e)},DOMMouseScroll:function(e){P(o,e)},MozMousePixelScroll:function(e){P(o,e)},losecapture:function(e){k(o,e)},mouseenter:function(e){M(o,e)},mouseleave:function(e){B(o,e)},mouseover:function(e){H(o,e)},mouseout:function(e){z(o,e)},mousedown:function(e){U(o,e)},mouseup:function(e){V(o,e)},mousemove:function(e){G(o,e)},touchstart:function(e){R(o,e)},touchend:function(e){j(o,e)},touchmove:function(e){I(o,e)},touchcancel:function(e){D(o,e)},gesturestart:function(e){L(o,e)},gesturechange:function(e){F(o,e)},gotpointercapture:function(e){A(o,e)},lostpointercapture:function(e){N(o,e)},pointerenter:function(e){M(o,e)},pointerleave:function(e){B(o,e)},pointerover:function(e){H(o,e)},pointerout:function(e){z(o,e)},pointerdown:function(e){U(o,e)},pointerup:function(e){V(o,e)},pointermove:function(e){G(o,e)},pointercancel:function(e){X(o,e)},pointerupcaptured:function(e){W(o,e)},pointermovecaptured:function(e){$(o,e)},tracking:!1,activePointersLists:[],lastClickPos:null,dblClickTimeOut:null,pinchGPoints:[],lastPinchDist:0,currentPinchDist:0,lastPinchCenter:null,currentPinchCenter:null,sentDragEvent:!1},this.hasGestureHandlers=!!(this.pressHandler||this.nonPrimaryPressHandler||this.releaseHandler||this.nonPrimaryReleaseHandler||this.clickHandler||this.dblClickHandler||this.dragHandler||this.dragEndHandler||this.pinchHandler),this.hasScrollHandler=!!this.scrollHandler,e.MouseTracker.havePointerEvents&&e.setElementPointerEvents(this.element,"auto"),this.exitHandler&&e.console.error("MouseTracker.exitHandler is deprecated. Use MouseTracker.leaveHandler instead."),i.startDisabled||this.setTracking(!0)},e.MouseTracker.prototype={destroy:function(){var e;for(a(this),this.element=null,e=0;e<t.length;e++)if(t[e]===this){t.splice(e,1);break}n[this.hash]=null,delete n[this.hash]},isTracking:function(){return n[this.hash].tracking},setTracking:function(e){return e?s(this):a(this),this},getActivePointersListByType:function(t){var i,r,o=n[this.hash],s=o.activePointersLists.length;for(i=0;i<s;i++)if(o.activePointersLists[i].type===t)return o.activePointersLists[i];return r=new e.MouseTracker.GesturePointList(t),o.activePointersLists.push(r),r},getActivePointerCount:function(){var e,t=n[this.hash],i=t.activePointersLists.length,r=0;for(e=0;e<i;e++)r+=t.activePointersLists[e].getLength();return r},preProcessEventHandler:function(){},contextMenuHandler:function(){},enterHandler:function(){},leaveHandler:function(){},exitHandler:function(){},overHandler:function(){},outHandler:function(){},pressHandler:function(){},nonPrimaryPressHandler:function(){},releaseHandler:function(){},nonPrimaryReleaseHandler:function(){},moveHandler:function(){},scrollHandler:function(){},clickHandler:function(){},dblClickHandler:function(){},dragHandler:function(){},dragEndHandler:function(){},pinchHandler:function(){},stopHandler:function(){},keyDownHandler:function(){},keyUpHandler:function(){},keyHandler:function(){},focusHandler:function(){},blurHandler:function(){}};var i=function(){try{return window.self!==window.top}catch(e){return!0}}();function r(e){try{return e.addEventListener&&e.removeEventListener}catch(t){return!1}}function o(e){var t,i,r,o,s,a=n[e.hash],l=a.activePointersLists.length;for(t=0;t<l;t++)if(r=a.activePointersLists[t],r.getLength()>0){for(s=[],o=r.asArray(),i=0;i<o.length;i++)s.push(o[i]);for(i=0;i<s.length;i++)K(e,r,s[i])}for(t=0;t<l;t++)a.activePointersLists.pop();a.sentDragEvent=!1}function s(t){var i,r,s=n[t.hash];if(!s.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)i=e.MouseTracker.subscribeEvents[r],e.addEvent(t.element,i,s[i],i===e.MouseTracker.wheelEventName&&{passive:!1,capture:!1});o(t),s.tracking=!0}}function a(t){var i,r,s=n[t.hash];if(s.tracking){for(r=0;r<e.MouseTracker.subscribeEvents.length;r++)i=e.MouseTracker.subscribeEvents[r],e.removeEvent(t.element,i,s[i],!1);o(t),s.tracking=!1}}function l(e,t){var i=n[e.hash];if("pointerevent"===t)return{upName:"pointerup",upHandler:i.pointerupcaptured,moveName:"pointermove",moveHandler:i.pointermovecaptured};if("mouse"===t)return{upName:"pointerup",upHandler:i.pointerupcaptured,moveName:"pointermove",moveHandler:i.pointermovecaptured};if("touch"===t)return{upName:"touchend",upHandler:i.touchendcaptured,moveName:"touchmove",moveHandler:i.touchmovecaptured};throw new Error("MouseTracker.getCaptureEventParams: Unknown pointer type.")}function c(t,n){var o;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents)try{t.element.setPointerCapture(n.id)}catch(s){return void e.console.warn("setPointerCapture() called on invalid pointer ID")}else t.element.setCapture(!0);else o=l(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),i&&r(window.top)&&e.addEvent(window.top,o.upName,o.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,o.upName,o.upHandler,!0),e.addEvent(e.MouseTracker.captureElement,o.moveName,o.moveHandler,!0);ee(t,n,!0)}function u(t,n){var o,s,a;if(e.MouseTracker.havePointerCapture)if(e.MouseTracker.havePointerEvents){if(s=t.getActivePointersListByType(n.type),a=s.getById(n.id),!a||!a.captured)return;try{t.element.releasePointerCapture(n.id)}catch(c){}}else t.element.releaseCapture();else o=l(t,e.MouseTracker.havePointerEvents?"pointerevent":n.type),i&&r(window.top)&&e.removeEvent(window.top,o.upName,o.upHandler,!0),e.removeEvent(e.MouseTracker.captureElement,o.moveName,o.moveHandler,!0),e.removeEvent(e.MouseTracker.captureElement,o.upName,o.upHandler,!0);ee(t,n,!1)}function h(t){return e.MouseTracker.havePointerEvents?t.pointerId:e.MouseTracker.mousePointerId}function d(t){return e.MouseTracker.havePointerEvents?t.pointerType||(e.Browser.vendor===e.BROWSERS.IE?"mouse":""):"mouse"}function f(t){return!e.MouseTracker.havePointerEvents||t.isPrimary}function p(t){return e.getMousePosition(t)}function g(e,t){return m(p(e),t)}function m(t,n){var i=e.getElementOffset(n);return t.minus(i)}function v(t,n){return new e.Point((t.x+n.x)/2,(t.y+n.y)/2)}function y(t,n){var i={originalEvent:n,eventType:"click",pointerType:"mouse",isEmulated:!1};Q(t,i),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n),i.stopPropagation&&e.stopEvent(n)}function b(t,n){var i={originalEvent:n,eventType:"dblclick",pointerType:"mouse",isEmulated:!1};Q(t,i),i.preventDefault&&!i.defaultPrevented&&e.cancelEvent(n),i.stopPropagation&&e.stopEvent(n)}function w(t,n){var i=null,r={originalEvent:n,eventType:"keydown",pointerType:"",isEmulated:!1};Q(t,r),!t.keyDownHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyDownHandler(i)),(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function x(t,n){var i=null,r={originalEvent:n,eventType:"keyup",pointerType:"",isEmulated:!1};Q(t,r),!t.keyUpHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyUpHandler(i)),(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function _(t,n){var i=null,r={originalEvent:n,eventType:"keypress",pointerType:"",isEmulated:!1};Q(t,r),!t.keyHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,keyCode:n.keyCode?n.keyCode:n.charCode,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey,originalEvent:n,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.keyHandler(i)),(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function T(e,t){var n={originalEvent:t,eventType:"focus",pointerType:"",isEmulated:!1};Q(e,n),e.focusHandler&&!n.preventGesture&&e.focusHandler({eventSource:e,originalEvent:t,userData:e.userData})}function S(e,t){var n={originalEvent:t,eventType:"blur",pointerType:"",isEmulated:!1};Q(e,n),e.blurHandler&&!n.preventGesture&&e.blurHandler({eventSource:e,originalEvent:t,userData:e.userData})}function O(t,n){var i=null,r={originalEvent:n,eventType:"contextmenu",pointerType:"mouse",isEmulated:!1};Q(t,r),!t.contextMenuHandler||r.preventGesture||r.defaultPrevented||(i={eventSource:t,position:m(p(n),t.element),originalEvent:r.originalEvent,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.contextMenuHandler(i)),(i&&i.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function E(e,t){C(e,t,t)}function P(t,n){var i={target:n.target||n.srcElement,type:"wheel",shiftKey:n.shiftKey||!1,clientX:n.clientX,clientY:n.clientY,pageX:n.pageX?n.pageX:n.clientX,pageY:n.pageY?n.pageY:n.clientY,deltaMode:"MozMousePixelScroll"===n.type?0:1,deltaX:0,deltaZ:0};"mousewheel"===e.MouseTracker.wheelEventName?i.deltaY=-n.wheelDelta/e.DEFAULT_SETTINGS.pixelsPerWheelLine:i.deltaY=n.detail,C(t,i,n)}function C(t,n,i){var r,o=0,s=null;o=n.deltaY<0?1:-1,r={originalEvent:n,eventType:"wheel",pointerType:"mouse",isEmulated:n!==i},Q(t,r),!t.scrollHandler||r.preventGesture||r.defaultPrevented||(s={eventSource:t,pointerType:"mouse",position:g(n,t.element),scroll:o,shift:n.shiftKey,isTouchEvent:!1,originalEvent:i,preventDefault:r.preventDefault||r.defaultPrevented,userData:t.userData},t.scrollHandler(s)),r.stopPropagation&&e.stopEvent(i),(s&&s.preventDefault||r.preventDefault&&!r.defaultPrevented)&&e.cancelEvent(i)}function k(t,n){var i={id:e.MouseTracker.mousePointerId,type:"mouse"},r={originalEvent:n,eventType:"lostpointercapture",pointerType:"mouse",isEmulated:!1};Q(t,r),n.target===t.element&&ee(t,i,!1),r.stopPropagation&&e.stopEvent(n)}function R(t,n){var i,r,o,s=n.changedTouches.length,a=t.getActivePointersListByType("touch");i=e.now(),a.getLength()>n.touches.length-s&&e.console.warn("Tracked touch contact count doesn't match event.touches.length");var l={originalEvent:n,eventType:"pointerdown",pointerType:"touch",isEmulated:!1};for(Q(t,l),r=0;r<s;r++)o={id:n.changedTouches[r].identifier,type:"touch",isPrimary:0===a.getLength(),currentPos:p(n.changedTouches[r]),currentTime:i},te(t,l,o),oe(t,l,o,0),ee(t,o,!0);l.preventDefault&&!l.defaultPrevented&&e.cancelEvent(n),l.stopPropagation&&e.stopEvent(n)}function j(t,n){var i,r,o,s=n.changedTouches.length;i=e.now();var a={originalEvent:n,eventType:"pointerup",pointerType:"touch",isEmulated:!1};for(Q(t,a),r=0;r<s;r++)o={id:n.changedTouches[r].identifier,type:"touch",currentPos:p(n.changedTouches[r]),currentTime:i},se(t,a,o,0),ee(t,o,!1),ne(t,a,o);a.preventDefault&&!a.defaultPrevented&&e.cancelEvent(n),a.stopPropagation&&e.stopEvent(n)}function I(t,n){var i,r,o,s=n.changedTouches.length;i=e.now();var a={originalEvent:n,eventType:"pointermove",pointerType:"touch",isEmulated:!1};for(Q(t,a),r=0;r<s;r++)o={id:n.changedTouches[r].identifier,type:"touch",currentPos:p(n.changedTouches[r]),currentTime:i},ae(t,a,o);a.preventDefault&&!a.defaultPrevented&&e.cancelEvent(n),a.stopPropagation&&e.stopEvent(n)}function D(t,n){var i,r,o=n.changedTouches.length,s={originalEvent:n,eventType:"pointercancel",pointerType:"touch",isEmulated:!1};for(Q(t,s),i=0;i<o;i++)r={id:n.changedTouches[i].identifier,type:"touch"},le(t,s,r);s.stopPropagation&&e.stopEvent(n)}function L(t,n){return e.eventIsCanceled(n)||n.preventDefault(),!1}function F(t,n){return e.eventIsCanceled(n)||n.preventDefault(),!1}function A(t,n){var i={originalEvent:n,eventType:"gotpointercapture",pointerType:d(n),isEmulated:!1};Q(t,i),n.target===t.element&&ee(t,{id:n.pointerId,type:d(n)},!0),i.stopPropagation&&e.stopEvent(n)}function N(t,n){var i={originalEvent:n,eventType:"lostpointercapture",pointerType:d(n),isEmulated:!1};Q(t,i),n.target===t.element&&ee(t,{id:n.pointerId,type:d(n)},!1),i.stopPropagation&&e.stopEvent(n)}function M(t,n){var i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerenter",pointerType:i.type,isEmulated:!1};Q(t,r),te(t,r,i)}function B(t,n){var i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerleave",pointerType:i.type,isEmulated:!1};Q(t,r),ne(t,r,i)}function H(t,n){var i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerover",pointerType:i.type,isEmulated:!1};Q(t,r),ie(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function z(t,n){var i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointerout",pointerType:i.type,isEmulated:!1};Q(t,r),re(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function U(t,n){var i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()},r=e.MouseTracker.havePointerEvents&&"touch"===i.type&&e.Browser.vendor!==e.BROWSERS.IE,o={originalEvent:n,eventType:"pointerdown",pointerType:i.type,isEmulated:!1};Q(t,o),oe(t,o,i,n.button),o.preventDefault&&!o.defaultPrevented&&e.cancelEvent(n),o.stopPropagation&&e.stopEvent(n),o.shouldCapture&&(r?ee(t,i,!0):c(t,i))}function V(e,t){q(e,t)}function W(t,n){var i=t.getActivePointersListByType(d(n));i.getById(n.pointerId)&&q(t,n),e.stopEvent(n)}function q(t,n){var i;i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()};var r={originalEvent:n,eventType:"pointerup",pointerType:i.type,isEmulated:!1};Q(t,r),se(t,r,i,n.button),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n),r.shouldReleaseCapture&&(n.target===t.element?u(t,i):ee(t,i,!1))}function G(e,t){Z(e,t)}function $(t,n){var i=t.getActivePointersListByType(d(n));i.getById(n.pointerId)&&Z(t,n),e.stopEvent(n)}function Z(t,n){var i={id:h(n),type:d(n),isPrimary:f(n),currentPos:p(n),currentTime:e.now()},r={originalEvent:n,eventType:"pointermove",pointerType:i.type,isEmulated:!1};Q(t,r),ae(t,r,i),r.preventDefault&&!r.defaultPrevented&&e.cancelEvent(n),r.stopPropagation&&e.stopEvent(n)}function X(t,n){var i={id:n.pointerId,type:d(n)},r={originalEvent:n,eventType:"pointercancel",pointerType:i.type,isEmulated:!1};Q(t,r),le(t,r,i),r.stopPropagation&&e.stopEvent(n)}function Y(e,t){return t.speed=0,t.direction=0,t.contactPos=t.currentPos,t.contactTime=t.currentTime,t.lastPos=t.currentPos,t.lastTime=t.currentTime,e.add(t)}function K(t,n,i){var r,o=n.getById(i.id);return o?(o.captured&&(e.console.warn("stopTrackingPointer() called on captured pointer"),u(t,o)),n.removeContact(),r=n.removeById(i.id)):r=n.getLength(),r}function J(e,t){switch(t.eventType){case"pointermove":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasGestureHandlers,t.stopPropagation=!1;break;case"pointerover":case"pointerout":case"contextmenu":case"keydown":case"keyup":case"keypress":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"pointerdown":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasGestureHandlers,t.stopPropagation=!1;break;case"pointerup":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasGestureHandlers,t.stopPropagation=!1;break;case"wheel":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!1,t.preventGesture=!e.hasScrollHandler,t.stopPropagation=!1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":t.isStoppable=!0,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break;case"click":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.clickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;case"dblclick":t.isStoppable=!0,t.isCancelable=!0,t.preventDefault=!!e.dblClickHandler,t.preventGesture=!1,t.stopPropagation=!1;break;case"focus":case"blur":case"pointerenter":case"pointerleave":default:t.isStoppable=!1,t.isCancelable=!1,t.preventDefault=!1,t.preventGesture=!1,t.stopPropagation=!1;break}}function Q(t,n){n.eventSource=t,n.eventPhase=n.originalEvent&&"undefined"!==typeof n.originalEvent.eventPhase?n.originalEvent.eventPhase:0,n.defaultPrevented=e.eventIsCanceled(n.originalEvent),n.shouldCapture=!1,n.shouldReleaseCapture=!1,n.userData=t.userData,J(t,n),t.preProcessEventHandler&&t.preProcessEventHandler(n)}function ee(t,n,i){var r=t.getActivePointersListByType(n.type),o=r.getById(n.id);o?i&&!o.captured?(o.captured=!0,r.captureCount++):!i&&o.captured&&(o.captured=!1,r.captureCount--,r.captureCount<0&&(r.captureCount=0,e.console.warn("updatePointerCaptured() - pointsList.captureCount went negative"))):e.console.warn("updatePointerCaptured() called on untracked pointer")}function te(e,t,n){var i,r=e.getActivePointersListByType(n.type);i=r.getById(n.id),i?(i.insideElement=!0,i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=n.currentPos,i.currentTime=n.currentTime,n=i):(n.captured=!1,n.insideElementPressed=!1,n.insideElement=!0,Y(r,n)),e.enterHandler&&e.enterHandler({eventSource:e,pointerType:n.type,position:m(n.currentPos,e.element),buttons:r.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==r.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}function ne(e,t,n){var i,r,o=e.getActivePointersListByType(n.type);i=o.getById(n.id),i?(i.captured?(i.insideElement=!1,i.lastPos=i.currentPos,i.lastTime=i.currentTime,i.currentPos=n.currentPos,i.currentTime=n.currentTime):K(e,o,i),n=i):(n.captured=!1,n.insideElementPressed=!1),(e.leaveHandler||e.exitHandler)&&(r={eventSource:e,pointerType:n.type,position:n.currentPos&&m(n.currentPos,e.element),buttons:o.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==o.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData},e.leaveHandler&&e.leaveHandler(r),e.exitHandler&&e.exitHandler(r))}function ie(e,t,n){var i,r;i=e.getActivePointersListByType(n.type),r=i.getById(n.id),r?n=r:(n.captured=!1,n.insideElementPressed=!1),e.overHandler&&e.overHandler({eventSource:e,pointerType:n.type,position:m(n.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}function re(e,t,n){var i,r;i=e.getActivePointersListByType(n.type),r=i.getById(n.id),r?n=r:(n.captured=!1,n.insideElementPressed=!1),e.outHandler&&e.outHandler({eventSource:e,pointerType:n.type,position:n.currentPos&&m(n.currentPos,e.element),buttons:i.buttons,pointers:e.getActivePointerCount(),insideElementPressed:n.insideElementPressed,buttonDownAny:0!==i.buttons,isTouchEvent:"touch"===n.type,originalEvent:t.originalEvent,userData:e.userData})}function oe(t,i,r,o){var s,a=n[t.hash],l=t.getActivePointersListByType(r.type);if("undefined"!==typeof i.originalEvent.buttons?l.buttons=i.originalEvent.buttons:0===o?l.buttons|=1:1===o?l.buttons|=4:2===o?l.buttons|=2:3===o?l.buttons|=8:4===o?l.buttons|=16:5===o&&(l.buttons|=32),0!==o)return i.shouldCapture=!1,i.shouldReleaseCapture=!1,void(!t.nonPrimaryPressHandler||i.preventGesture||i.defaultPrevented||(i.preventDefault=!0,t.nonPrimaryPressHandler({eventSource:t,pointerType:r.type,position:m(r.currentPos,t.element),button:o,buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData})));s=l.getById(r.id),s?(s.insideElementPressed=!0,s.insideElement=!0,s.originalTarget=i.originalEvent.target,s.contactPos=r.currentPos,s.contactTime=r.currentTime,s.lastPos=s.currentPos,s.lastTime=s.currentTime,s.currentPos=r.currentPos,s.currentTime=r.currentTime,r=s):(r.captured=!1,r.insideElementPressed=!0,r.insideElement=!0,r.originalTarget=i.originalEvent.target,Y(l,r)),l.addContact(),i.preventGesture||i.defaultPrevented?(i.shouldCapture=!1,i.shouldReleaseCapture=!1):(i.shouldCapture=!0,i.shouldReleaseCapture=!1,i.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.addPoint(t,r),1===l.contacts?t.pressHandler&&!i.preventGesture&&t.pressHandler({eventSource:t,pointerType:r.type,position:m(r.contactPos,t.element),buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData}):2===l.contacts&&t.pinchHandler&&"touch"===r.type&&(a.pinchGPoints=l.asArray(),a.lastPinchDist=a.currentPinchDist=a.pinchGPoints[0].currentPos.distanceTo(a.pinchGPoints[1].currentPos),a.lastPinchCenter=a.currentPinchCenter=v(a.pinchGPoints[0].currentPos,a.pinchGPoints[1].currentPos)))}function se(t,i,r,o){var s,a,l,c,u=n[t.hash],h=t.getActivePointersListByType(r.type),d=!1;if("undefined"!==typeof i.originalEvent.buttons?h.buttons=i.originalEvent.buttons:0===o?h.buttons^=-2:1===o?h.buttons^=-5:2===o?h.buttons^=-3:3===o?h.buttons^=-9:4===o?h.buttons^=-17:5===o&&(h.buttons^=-33),i.shouldCapture=!1,0!==o)return i.shouldReleaseCapture=!1,void(!t.nonPrimaryReleaseHandler||i.preventGesture||i.defaultPrevented||(i.preventDefault=!0,t.nonPrimaryReleaseHandler({eventSource:t,pointerType:r.type,position:m(r.currentPos,t.element),button:o,buttons:h.buttons,isTouchEvent:"touch"===r.type,originalEvent:i.originalEvent,userData:t.userData})));l=h.getById(r.id),l?(h.removeContact(),l.captured&&(d=!0),l.lastPos=l.currentPos,l.lastTime=l.currentTime,l.currentPos=r.currentPos,l.currentTime=r.currentTime,l.insideElement||K(t,h,l),s=l.currentPos,a=l.currentTime):(r.captured=!1,r.insideElementPressed=!1,r.insideElement=!0,Y(h,r),l=r),i.preventGesture||i.defaultPrevented||(d?(i.shouldReleaseCapture=!0,i.preventDefault=!0,(t.dragHandler||t.dragEndHandler||t.pinchHandler)&&e.MouseTracker.gesturePointVelocityTracker.removePoint(t,l),0===h.contacts?(t.releaseHandler&&s&&t.releaseHandler({eventSource:t,pointerType:l.type,position:m(s,t.element),buttons:h.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),t.dragEndHandler&&u.sentDragEvent&&t.dragEndHandler({eventSource:t,pointerType:l.type,position:m(l.currentPos,t.element),speed:l.speed,direction:l.direction,shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),u.sentDragEvent=!1,(t.clickHandler||t.dblClickHandler)&&l.insideElement&&(c=a-l.contactTime<=t.clickTimeThreshold&&l.contactPos.distanceTo(s)<=t.clickDistThreshold,t.clickHandler&&t.clickHandler({eventSource:t,pointerType:l.type,position:m(l.currentPos,t.element),quick:c,shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,originalTarget:l.originalTarget,userData:t.userData}),t.dblClickHandler&&c&&(h.clicks++,1===h.clicks?(u.lastClickPos=s,u.dblClickTimeOut=setTimeout((function(){h.clicks=0}),t.dblClickTimeThreshold)):2===h.clicks&&(clearTimeout(u.dblClickTimeOut),h.clicks=0,u.lastClickPos.distanceTo(s)<=t.dblClickDistThreshold&&t.dblClickHandler({eventSource:t,pointerType:l.type,position:m(l.currentPos,t.element),shift:i.originalEvent.shiftKey,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),u.lastClickPos=null)))):2===h.contacts&&t.pinchHandler&&"touch"===l.type&&(u.pinchGPoints=h.asArray(),u.lastPinchDist=u.currentPinchDist=u.pinchGPoints[0].currentPos.distanceTo(u.pinchGPoints[1].currentPos),u.lastPinchCenter=u.currentPinchCenter=v(u.pinchGPoints[0].currentPos,u.pinchGPoints[1].currentPos))):(i.shouldReleaseCapture=!1,t.releaseHandler&&s&&(t.releaseHandler({eventSource:t,pointerType:l.type,position:m(s,t.element),buttons:h.buttons,insideElementPressed:l.insideElementPressed,insideElementReleased:l.insideElement,isTouchEvent:"touch"===l.type,originalEvent:i.originalEvent,userData:t.userData}),i.preventDefault=!0)))}function ae(e,t,i){var r,o,s,a=n[e.hash],l=e.getActivePointersListByType(i.type);"undefined"!==typeof t.originalEvent.buttons&&(l.buttons=t.originalEvent.buttons),r=l.getById(i.id),r&&(r.lastPos=r.currentPos,r.lastTime=r.currentTime,r.currentPos=i.currentPos,r.currentTime=i.currentTime,t.shouldCapture=!1,t.shouldReleaseCapture=!1,e.stopHandler&&"mouse"===i.type&&(clearTimeout(e.stopTimeOut),e.stopTimeOut=setTimeout((function(){ce(e,t.originalEvent,i.type)}),e.stopDelay)),0===l.contacts?e.moveHandler&&e.moveHandler({eventSource:e,pointerType:i.type,position:m(i.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===i.type,originalEvent:t.originalEvent,userData:e.userData}):1===l.contacts?(e.moveHandler&&(r=l.asArray()[0],e.moveHandler({eventSource:e,pointerType:r.type,position:m(r.currentPos,e.element),buttons:l.buttons,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData})),!e.dragHandler||t.preventGesture||t.defaultPrevented||(r=l.asArray()[0],s=r.currentPos.minus(r.lastPos),e.dragHandler({eventSource:e,pointerType:r.type,position:m(r.currentPos,e.element),buttons:l.buttons,delta:s,speed:r.speed,direction:r.direction,shift:t.originalEvent.shiftKey,isTouchEvent:"touch"===r.type,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0,a.sentDragEvent=!0)):2===l.contacts&&(e.moveHandler&&(o=l.asArray(),e.moveHandler({eventSource:e,pointerType:o[0].type,position:m(v(o[0].currentPos,o[1].currentPos),e.element),buttons:l.buttons,isTouchEvent:"touch"===o[0].type,originalEvent:t.originalEvent,userData:e.userData})),!e.pinchHandler||"touch"!==i.type||t.preventGesture||t.defaultPrevented||(s=a.pinchGPoints[0].currentPos.distanceTo(a.pinchGPoints[1].currentPos),s!==a.currentPinchDist&&(a.lastPinchDist=a.currentPinchDist,a.currentPinchDist=s,a.lastPinchCenter=a.currentPinchCenter,a.currentPinchCenter=v(a.pinchGPoints[0].currentPos,a.pinchGPoints[1].currentPos),e.pinchHandler({eventSource:e,pointerType:"touch",gesturePoints:a.pinchGPoints,lastCenter:m(a.lastPinchCenter,e.element),center:m(a.currentPinchCenter,e.element),lastDistance:a.lastPinchDist,distance:a.currentPinchDist,shift:t.originalEvent.shiftKey,originalEvent:t.originalEvent,userData:e.userData}),t.preventDefault=!0))))}function le(e,t,n){var i,r=e.getActivePointersListByType(n.type);i=r.getById(n.id),i&&K(e,r,i)}function ce(e,t,n){e.stopHandler&&e.stopHandler({eventSource:e,pointerType:n,position:g(t,e.element),buttons:e.getActivePointersListByType(n).buttons,isTouchEvent:"touch"===n,originalEvent:t,userData:e.userData})}e.MouseTracker.gesturePointVelocityTracker=function(){var t=[],n=0,i=0,r=function(e,t){return e.hash.toString()+t.type+t.id.toString()},o=function(){var n,r,o,s,a,l,c=t.length,u=e.now();for(s=u-i,i=u,n=0;n<c;n++)r=t[n],o=r.gPoint,o.direction=Math.atan2(o.currentPos.y-r.lastPos.y,o.currentPos.x-r.lastPos.x),a=r.lastPos.distanceTo(o.currentPos),r.lastPos=o.currentPos,l=1e3*a/(s+1),o.speed=.75*l+.25*o.speed},s=function(s,a){var l=r(s,a);t.push({guid:l,gPoint:a,lastPos:a.currentPos}),1===t.length&&(i=e.now(),n=window.setInterval(o,50))},a=function(e,i){var o,s=r(e,i),a=t.length;for(o=0;o<a;o++)if(t[o].guid===s){t.splice(o,1),a--,0===a&&window.clearInterval(n);break}};return{addPoint:s,removePoint:a}}(),e.MouseTracker.captureElement=document,e.MouseTracker.wheelEventName=e.Browser.vendor===e.BROWSERS.IE&&e.Browser.version>8||"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",e.MouseTracker.subscribeEvents=["click","dblclick","keydown","keyup","keypress","focus","blur","contextmenu",e.MouseTracker.wheelEventName],"DOMMouseScroll"===e.MouseTracker.wheelEventName&&e.MouseTracker.subscribeEvents.push("MozMousePixelScroll"),window.PointerEvent?(e.MouseTracker.havePointerEvents=!0,e.MouseTracker.subscribeEvents.push("pointerenter","pointerleave","pointerover","pointerout","pointerdown","pointerup","pointermove","pointercancel"),e.MouseTracker.havePointerCapture=function(){var t=document.createElement("div");return e.isFunction(t.setPointerCapture)&&e.isFunction(t.releasePointerCapture)}(),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("gotpointercapture","lostpointercapture")):(e.MouseTracker.havePointerEvents=!1,e.MouseTracker.subscribeEvents.push("mouseenter","mouseleave","mouseover","mouseout","mousedown","mouseup","mousemove"),e.MouseTracker.mousePointerId="legacy-mouse",e.MouseTracker.havePointerCapture=function(){var t=document.createElement("div");return e.isFunction(t.setCapture)&&e.isFunction(t.releaseCapture)}(),e.MouseTracker.havePointerCapture&&e.MouseTracker.subscribeEvents.push("losecapture"),"ontouchstart"in window&&e.MouseTracker.subscribeEvents.push("touchstart","touchend","touchmove","touchcancel"),"ongesturestart"in window&&e.MouseTracker.subscribeEvents.push("gesturestart","gesturechange")),e.MouseTracker.GesturePointList=function(e){this._gPoints=[],this.type=e,this.buttons=0,this.contacts=0,this.clicks=0,this.captureCount=0},e.MouseTracker.GesturePointList.prototype={getLength:function(){return this._gPoints.length},asArray:function(){return this._gPoints},add:function(e){return this._gPoints.push(e)},removeById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e){this._gPoints.splice(t,1);break}return this._gPoints.length},getByIndex:function(e){return e<this._gPoints.length?this._gPoints[e]:null},getById:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].id===e)return this._gPoints[t];return null},getPrimary:function(e){var t,n=this._gPoints.length;for(t=0;t<n;t++)if(this._gPoints[t].isPrimary)return this._gPoints[t];return null},addContact:function(){++this.contacts,this.contacts>1&&("mouse"===this.type||"pen"===this.type)&&(e.console.warn("GesturePointList.addContact() Implausible contacts value"),this.contacts=1)},removeContact:function(){--this.contacts,this.contacts<0&&(this.contacts=0)}}}(s),function(e){e.ControlAnchor={NONE:0,TOP_LEFT:1,TOP_RIGHT:2,BOTTOM_RIGHT:3,BOTTOM_LEFT:4,ABSOLUTE:5},e.Control=function(t,n,i){var r=t.parentNode;"number"===typeof n&&(e.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; please use an options object instead.  Support for this deprecated variant is scheduled for removal in December 2013"),n={anchor:n}),n.attachToViewer="undefined"===typeof n.attachToViewer||n.attachToViewer,this.autoFade="undefined"===typeof n.autoFade||n.autoFade,this.element=t,this.anchor=n.anchor,this.container=i,this.anchor===e.ControlAnchor.ABSOLUTE?(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.position="absolute",this.wrapper.style.top="number"===typeof n.top?n.top+"px":n.top,this.wrapper.style.left="number"===typeof n.left?n.left+"px":n.left,this.wrapper.style.height="number"===typeof n.height?n.height+"px":n.height,this.wrapper.style.width="number"===typeof n.width?n.width+"px":n.width,this.wrapper.style.margin="0px",this.wrapper.style.padding="0px",this.element.style.position="relative",this.element.style.top="0px",this.element.style.left="0px",this.element.style.height="100%",this.element.style.width="100%"):(this.wrapper=e.makeNeutralElement("div"),this.wrapper.style.display="inline-block",this.anchor===e.ControlAnchor.NONE&&(this.wrapper.style.width=this.wrapper.style.height="100%")),this.wrapper.appendChild(this.element),n.attachToViewer?this.anchor===e.ControlAnchor.TOP_RIGHT||this.anchor===e.ControlAnchor.BOTTOM_RIGHT?this.container.insertBefore(this.wrapper,this.container.firstChild):this.container.appendChild(this.wrapper):r.appendChild(this.wrapper)},e.Control.prototype={destroy:function(){this.wrapper.removeChild(this.element),this.anchor!==e.ControlAnchor.NONE&&this.container.removeChild(this.wrapper)},isVisible:function(){return"none"!==this.wrapper.style.display},setVisible:function(t){this.wrapper.style.display=t?this.anchor===e.ControlAnchor.ABSOLUTE?"block":"inline-block":"none"},setOpacity:function(t){this.element[e.SIGNAL]&&e.Browser.vendor===e.BROWSERS.IE?e.setElementOpacity(this.element,t,!0):e.setElementOpacity(this.wrapper,t,!0)}}}(s),function(e){function t(e,t){var n,i=e.controls;for(n=i.length-1;n>=0;n--)if(i[n].element===t)return n;return-1}e.ControlDock=function(t){var n,i,r=["topleft","topright","bottomright","bottomleft"];for(e.extend(!0,this,{id:"controldock-"+e.now()+"-"+Math.floor(1e6*Math.random()),container:e.makeNeutralElement("div"),controls:[]},t),this.container.onsubmit=function(){return!1},this.element&&(this.element=e.getElement(this.element),this.element.appendChild(this.container),this.element.style.position="relative",this.container.style.width="100%",this.container.style.height="100%"),i=0;i<r.length;i++)n=r[i],this.controls[n]=e.makeNeutralElement("div"),this.controls[n].style.position="absolute",n.match("left")&&(this.controls[n].style.left="0px"),n.match("right")&&(this.controls[n].style.right="0px"),n.match("top")&&(this.controls[n].style.top="0px"),n.match("bottom")&&(this.controls[n].style.bottom="0px");this.container.appendChild(this.controls.topleft),this.container.appendChild(this.controls.topright),this.container.appendChild(this.controls.bottomright),this.container.appendChild(this.controls.bottomleft)},e.ControlDock.prototype={addControl:function(n,i){n=e.getElement(n);var r=null;if(!(t(this,n)>=0)){switch(i.anchor){case e.ControlAnchor.TOP_RIGHT:r=this.controls.topright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.BOTTOM_RIGHT:r=this.controls.bottomright,n.style.position="relative",n.style.paddingRight="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.BOTTOM_LEFT:r=this.controls.bottomleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingBottom="0px";break;case e.ControlAnchor.TOP_LEFT:r=this.controls.topleft,n.style.position="relative",n.style.paddingLeft="0px",n.style.paddingTop="0px";break;case e.ControlAnchor.ABSOLUTE:r=this.container,n.style.margin="0px",n.style.padding="0px";break;default:case e.ControlAnchor.NONE:r=this.container,n.style.margin="0px",n.style.padding="0px";break}this.controls.push(new e.Control(n,i,r)),n.style.display="inline-block"}},removeControl:function(n){n=e.getElement(n);var i=t(this,n);return i>=0&&(this.controls[i].destroy(),this.controls.splice(i,1)),this},clearControls:function(){while(this.controls.length>0)this.controls.pop().destroy();return this},areControlsEnabled:function(){var e;for(e=this.controls.length-1;e>=0;e--)if(this.controls[e].isVisible())return!0;return!1},setControlsEnabled:function(e){var t;for(t=this.controls.length-1;t>=0;t--)this.controls[t].setVisible(e);return this}}}(s),function(e){e.Placement=e.freezeObject({CENTER:0,TOP_LEFT:1,TOP:2,TOP_RIGHT:3,RIGHT:4,BOTTOM_RIGHT:5,BOTTOM:6,BOTTOM_LEFT:7,LEFT:8,properties:{0:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1},1:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},2:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!0,isVerticallyCentered:!1,isBottom:!1},3:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!0,isVerticallyCentered:!1,isBottom:!1},4:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!0,isBottom:!1},5:{isLeft:!1,isHorizontallyCentered:!1,isRight:!0,isTop:!1,isVerticallyCentered:!1,isBottom:!0},6:{isLeft:!1,isHorizontallyCentered:!0,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},7:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!1,isBottom:!0},8:{isLeft:!0,isHorizontallyCentered:!1,isRight:!1,isTop:!1,isVerticallyCentered:!0,isBottom:!1}}})}(s),function(e){var t={},n=1;function i(t){return t=e.getElement(t),new e.Point(0===t.clientWidth?1:t.clientWidth,0===t.clientHeight?1:t.clientHeight)}function r(t,n,i,r,o){var s=t;if("string"===e.type(n))if(n.match(/^\s*<.*>\s*$/))n=e.parseXml(n);else if(n.match(/^\s*[{[].*[}\]]\s*$/))try{var a=e.parseJSON(n);n=a}catch(c){}function l(e,t){e.ready?r(e):(e.addHandler("ready",(function(){r(e)})),e.addHandler("open-failed",(function(e){o({message:e.message,source:t})})))}setTimeout((function(){if("string"===e.type(n))n=new e.TileSource({url:n,crossOriginPolicy:void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy,ajaxWithCredentials:t.ajaxWithCredentials,ajaxHeaders:i.ajaxHeaders?i.ajaxHeaders:t.ajaxHeaders,splitHashDataForPost:t.splitHashDataForPost,useCanvas:t.useCanvas,success:function(e){r(e.tileSource)}}),n.addHandler("open-failed",(function(e){o(e)}));else if(e.isPlainObject(n)||n.nodeType)if(void 0!==n.crossOriginPolicy||void 0===i.crossOriginPolicy&&void 0===t.crossOriginPolicy||(n.crossOriginPolicy=void 0!==i.crossOriginPolicy?i.crossOriginPolicy:t.crossOriginPolicy),void 0===n.ajaxWithCredentials&&(n.ajaxWithCredentials=t.ajaxWithCredentials),void 0===n.useCanvas&&(n.useCanvas=t.useCanvas),e.isFunction(n.getTileUrl)){var a=new e.TileSource(n);a.getTileUrl=n.getTileUrl,r(a)}else{var c=e.TileSource.determineType(s,n);if(!c)return void o({message:"Unable to load TileSource",source:n});var u=c.prototype.configure.apply(s,[n]);l(new c(u),n)}else l(n,n)}))}function o(t,n){if(n instanceof e.Overlay)return n;var i=null;if(n.element)i=e.getElement(n.element);else{var r=n.id?n.id:"openseadragon-overlay-"+Math.floor(1e7*Math.random());i=e.getElement(n.id),i||(i=document.createElement("a"),i.href="#/overlay/"+r),i.id=r,e.addClass(i,n.className?n.className:"openseadragon-overlay")}var o=n.location,s=n.width,a=n.height;if(!o){var l=n.x,c=n.y;if(void 0!==n.px){var u=t.viewport.imageToViewportRectangle(new e.Rect(n.px,n.py,s||0,a||0));l=u.x,c=u.y,s=void 0!==s?u.width:void 0,a=void 0!==a?u.height:void 0}o=new e.Point(l,c)}var h=n.placement;return h&&"string"===e.type(h)&&(h=e.Placement[n.placement.toUpperCase()]),new e.Overlay({element:i,location:o,placement:h,onDraw:n.onDraw,checkResize:n.checkResize,width:s,height:a,rotationMode:n.rotationMode})}function s(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].element===t)return n;return-1}function a(t,n){return e.requestAnimationFrame((function(){n(t)}))}function l(t){e.requestAnimationFrame((function(){u(t)}))}function c(t){t.autoHideControls&&(t.controlsShouldFade=!0,t.controlsFadeBeginTime=e.now()+t.controlsFadeDelay,window.setTimeout((function(){l(t)}),t.controlsFadeDelay))}function u(t){var n,i,r,o;if(t.controlsShouldFade){for(n=e.now(),i=n-t.controlsFadeBeginTime,r=1-i/t.controlsFadeLength,r=Math.min(1,r),r=Math.max(0,r),o=t.controls.length-1;o>=0;o--)t.controls[o].autoFade&&t.controls[o].setOpacity(r);r>0&&l(t)}}function h(e){var t;for(e.controlsShouldFade=!1,t=e.controls.length-1;t>=0;t--)e.controls[t].setOpacity(1)}function d(){h(this)}function f(){c(this)}function p(e){var t={tracker:e.eventSource,position:e.position,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.raiseEvent("canvas-contextmenu",t),e.preventDefault=t.preventDefault}function g(t){var n={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 38:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 40:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,this.pixelsPerArrowPress))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 37:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 39:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(this.pixelsPerArrowPress,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;default:t.preventDefault=!1;break}}function m(t){var n={originalEvent:t.originalEvent,preventDefaultAction:!1,preventVerticalPan:t.preventVerticalPan||!this.panVertical,preventHorizontalPan:t.preventHorizontalPan||!this.panHorizontal};if(this.raiseEvent("canvas-key",n),n.preventDefaultAction||t.ctrl||t.alt||t.meta)t.preventDefault=!1;else switch(t.keyCode){case 43:case 61:this.viewport.zoomBy(1.1),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 45:this.viewport.zoomBy(.9),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 48:this.viewport.goHome(),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 119:case 87:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(1.1):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,-40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 115:case 83:n.preventVerticalPan||(t.shift?this.viewport.zoomBy(.9):this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(0,40))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 97:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(-40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 100:n.preventHorizontalPan||(this.viewport.panBy(this.viewport.deltaPointsFromPixels(new e.Point(40,0))),this.viewport.applyConstraints()),t.preventDefault=!0;break;case 114:this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 82:this.viewport.flipped?this.viewport.setRotation(this.viewport.getRotation()+this.rotationIncrement):this.viewport.setRotation(this.viewport.getRotation()-this.rotationIncrement),this.viewport.applyConstraints(),t.preventDefault=!0;break;case 102:this.viewport.toggleFlip(),t.preventDefault=!0;break;case 106:this.goToPreviousPage();break;case 107:this.goToNextPage();break;default:t.preventDefault=!1;break}}function v(n){var i,r=document.activeElement===this.canvas;r||this.canvas.focus(),this.viewport.flipped&&(n.position.x=this.viewport.getContainerSize().x-n.position.x);var o={tracker:n.eventSource,position:n.position,quick:n.quick,shift:n.shift,originalEvent:n.originalEvent,originalTarget:n.originalTarget,preventDefaultAction:!1};this.raiseEvent("canvas-click",o),!o.preventDefaultAction&&this.viewport&&n.quick&&(i=this.gestureSettingsByDeviceType(n.pointerType),!0===i.clickToZoom&&(this.viewport.zoomBy(n.shift?1/this.zoomPerClick:this.zoomPerClick,i.zoomToRefPoint?this.viewport.pointFromPixel(n.position,!0):null),this.viewport.applyConstraints()),i.dblClickDragToZoom&&(!0===t[this.hash].draggingToZoom?(t[this.hash].lastClickTime=null,t[this.hash].draggingToZoom=!1):t[this.hash].lastClickTime=e.now()))}function y(e){var t,n={tracker:e.eventSource,position:e.position,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.raiseEvent("canvas-double-click",n),!n.preventDefaultAction&&this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType),t.dblClickToZoom&&(this.viewport.zoomBy(e.shift?1/this.zoomPerClick:this.zoomPerClick,t.zoomToRefPoint?this.viewport.pointFromPixel(e.position,!0):null),this.viewport.applyConstraints()))}function b(e){var n,i={tracker:e.eventSource,pointerType:e.pointerType,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag",i),n=this.gestureSettingsByDeviceType(e.pointerType),!i.preventDefaultAction&&this.viewport)if(n.dblClickDragToZoom&&t[this.hash].draggingToZoom){var r=Math.pow(this.zoomPerDblClickDrag,e.delta.y/50);this.viewport.zoomBy(r)}else if(n.dragToPan&&!t[this.hash].draggingToZoom){if(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewport.flipped&&(e.delta.x=-e.delta.x),this.constrainDuringPan){var o=this.viewport.deltaPointsFromPixels(e.delta.negate());this.viewport.centerSpringX.target.value+=o.x,this.viewport.centerSpringY.target.value+=o.y;var s=this.viewport.getConstrainedBounds();this.viewport.centerSpringX.target.value-=o.x,this.viewport.centerSpringY.target.value-=o.y,s.xConstrained&&(e.delta.x=0),s.yConstrained&&(e.delta.y=0)}this.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta.negate()),n.flickEnabled&&!this.constrainDuringPan)}}function w(n){var i,r={tracker:n.eventSource,pointerType:n.pointerType,position:n.position,speed:n.speed,direction:n.direction,shift:n.shift,originalEvent:n.originalEvent,preventDefaultAction:!1};if(this.raiseEvent("canvas-drag-end",r),i=this.gestureSettingsByDeviceType(n.pointerType),!r.preventDefaultAction&&this.viewport){if(!t[this.hash].draggingToZoom&&i.flickEnabled&&n.speed>=i.flickMinSpeed){var o=0;this.panHorizontal&&(o=i.flickMomentum*n.speed*Math.cos(n.direction));var s=0;this.panVertical&&(s=i.flickMomentum*n.speed*Math.sin(n.direction));var a=this.viewport.pixelFromPoint(this.viewport.getCenter(!0)),l=this.viewport.pointFromPixel(new e.Point(a.x-o,a.y-s));this.viewport.panTo(l,!1)}this.viewport.applyConstraints()}i.dblClickDragToZoom&&!0===t[this.hash].draggingToZoom&&(t[this.hash].draggingToZoom=!1)}function x(e){this.raiseEvent("canvas-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function _(e){this.raiseEvent("canvas-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function T(n){var i;if(this.raiseEvent("canvas-press",{tracker:n.eventSource,pointerType:n.pointerType,position:n.position,insideElementPressed:n.insideElementPressed,insideElementReleased:n.insideElementReleased,originalEvent:n.originalEvent}),i=this.gestureSettingsByDeviceType(n.pointerType),i.dblClickDragToZoom){var r=t[this.hash].lastClickTime,o=e.now();if(null===r)return;o-r<this.dblClickTimeThreshold&&(t[this.hash].draggingToZoom=!0),t[this.hash].lastClickTime=null}}function S(e){this.raiseEvent("canvas-release",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,insideElementPressed:e.insideElementPressed,insideElementReleased:e.insideElementReleased,originalEvent:e.originalEvent})}function O(e){this.raiseEvent("canvas-nonprimary-press",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function E(e){this.raiseEvent("canvas-nonprimary-release",{tracker:e.eventSource,position:e.position,pointerType:e.pointerType,button:e.button,buttons:e.buttons,originalEvent:e.originalEvent})}function P(e){var t,n,i,r,o={tracker:e.eventSource,pointerType:e.pointerType,gesturePoints:e.gesturePoints,lastCenter:e.lastCenter,center:e.center,lastDistance:e.lastDistance,distance:e.distance,shift:e.shift,originalEvent:e.originalEvent,preventDefaultPanAction:!1,preventDefaultZoomAction:!1,preventDefaultRotateAction:!1};if(this.raiseEvent("canvas-pinch",o),this.viewport&&(t=this.gestureSettingsByDeviceType(e.pointerType),!t.pinchToZoom||o.preventDefaultPanAction&&o.preventDefaultZoomAction||(n=this.viewport.pointFromPixel(e.center,!0),t.zoomToRefPoint&&!o.preventDefaultPanAction&&(i=this.viewport.pointFromPixel(e.lastCenter,!0),r=i.minus(n),this.panHorizontal||(r.x=0),this.panVertical||(r.y=0),this.viewport.panBy(r,!0)),o.preventDefaultZoomAction||this.viewport.zoomBy(e.distance/e.lastDistance,n,!0),this.viewport.applyConstraints()),t.pinchRotate&&!o.preventDefaultRotateAction)){var s=Math.atan2(e.gesturePoints[0].currentPos.y-e.gesturePoints[1].currentPos.y,e.gesturePoints[0].currentPos.x-e.gesturePoints[1].currentPos.x),a=Math.atan2(e.gesturePoints[0].lastPos.y-e.gesturePoints[1].lastPos.y,e.gesturePoints[0].lastPos.x-e.gesturePoints[1].lastPos.x);this.viewport.setRotation(this.viewport.getRotation()+(s-a)*(180/Math.PI))}}function C(t){var n,i,r,o,s;o=e.now(),s=o-this._lastScrollTime,s>this.minScrollDeltaTime?(this._lastScrollTime=o,n={tracker:t.eventSource,position:t.position,scroll:t.scroll,shift:t.shift,originalEvent:t.originalEvent,preventDefaultAction:!1,preventDefault:!0},this.raiseEvent("canvas-scroll",n),!n.preventDefaultAction&&this.viewport&&(this.viewport.flipped&&(t.position.x=this.viewport.getContainerSize().x-t.position.x),i=this.gestureSettingsByDeviceType(t.pointerType),i.scrollToZoom&&(r=Math.pow(this.zoomPerScroll,t.scroll),this.viewport.zoomBy(r,i.zoomToRefPoint?this.viewport.pointFromPixel(t.position,!0):null),this.viewport.applyConstraints())),t.preventDefault=n.preventDefault):t.preventDefault=!0}function k(e){t[this.hash].mouseInside=!0,h(this),this.raiseEvent("container-enter",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function R(e){e.pointers<1&&(t[this.hash].mouseInside=!1,t[this.hash].animating||c(this)),this.raiseEvent("container-exit",{tracker:e.eventSource,pointerType:e.pointerType,position:e.position,buttons:e.buttons,pointers:e.pointers,insideElementPressed:e.insideElementPressed,buttonDownAny:e.buttonDownAny,originalEvent:e.originalEvent})}function j(e){D(e),e.isOpen()?e._updateRequestId=a(e,j):e._updateRequestId=!1}function I(n,i){var r,o=n.viewport,s=o.getZoom(),a=o.getCenter();if(o.resize(i,n.preserveImageSizeOnResize),o.panTo(a,!0),n.preserveImageSizeOnResize)r=t[n.hash].prevContainerSize.x/i.x;else{var l=new e.Point(0,0),c=new e.Point(t[n.hash].prevContainerSize.x,t[n.hash].prevContainerSize.y).distanceTo(l),u=new e.Point(i.x,i.y).distanceTo(l);r=u/c*t[n.hash].prevContainerSize.x/i.x}o.zoomTo(s*r,null,!0),t[n.hash].prevContainerSize=i,t[n.hash].forceRedraw=!0,t[n.hash].needsResize=!1,t[n.hash].forceResize=!1}function D(e){if(!e._opening&&t[e.hash]){if(e.autoResize||t[e.hash].forceResize){var n;if(e._autoResizePolling){n=i(e.container);var r=t[e.hash].prevContainerSize;n.equals(r)||(t[e.hash].needsResize=!0)}t[e.hash].needsResize&&I(e,n||i(e.container))}var o=e.viewport.update(),s=e.world.update()||o;o&&e.raiseEvent("viewport-change"),e.referenceStrip&&(s=e.referenceStrip.update(e.viewport)||s);var a=t[e.hash].animating;!a&&s&&(e.raiseEvent("animation-start"),h(e));var l=a&&!s;l&&(t[e.hash].animating=!1),(s||l||t[e.hash].forceRedraw||e.world.needsDraw())&&(L(e),e._drawOverlays(),e.navigator&&e.navigator.update(e.viewport),t[e.hash].forceRedraw=!1,s&&e.raiseEvent("animation")),l&&(e.raiseEvent("animation-finish"),t[e.hash].mouseInside||c(e)),t[e.hash].animating=s}}function L(e){e.imageLoader.clear(),e.drawer.clear(),e.world.draw(),e.raiseEvent("update-viewport",{})}function F(e,t){return e?e+t:t}function A(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=this.zoomPerSecond,t[this.hash].zooming=!0,B(this)}function N(){t[this.hash].lastZoomTime=e.now(),t[this.hash].zoomFactor=1/this.zoomPerSecond,t[this.hash].zooming=!0,B(this)}function M(){t[this.hash].zooming=!1}function B(t){e.requestAnimationFrame(e.delegate(t,H))}function H(){var n,i,r;t[this.hash].zooming&&this.viewport&&(n=e.now(),i=n-t[this.hash].lastZoomTime,r=Math.pow(t[this.hash].zoomFactor,i/1e3),this.viewport.zoomBy(r),this.viewport.applyConstraints(),t[this.hash].lastZoomTime=n,B(this))}function z(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(this.zoomPerClick/1),this.viewport.applyConstraints())}function U(){this.viewport&&(t[this.hash].zooming=!1,this.viewport.zoomBy(1/this.zoomPerClick),this.viewport.applyConstraints())}function V(){this.buttonGroup&&(this.buttonGroup.emulateEnter(),this.buttonGroup.emulateLeave())}function W(){this.viewport&&this.viewport.goHome()}function q(){this.isFullPage()&&!e.isFullScreen()?this.setFullPage(!1):this.setFullScreen(!this.isFullPage()),this.buttonGroup&&this.buttonGroup.emulateLeave(),this.fullPageButton.element.focus(),this.viewport&&this.viewport.applyConstraints()}function G(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e+=this.rotationIncrement:e-=this.rotationIncrement,this.viewport.setRotation(e)}}function $(){if(this.viewport){var e=this.viewport.getRotation();this.viewport.flipped?e-=this.rotationIncrement:e+=this.rotationIncrement,this.viewport.setRotation(e)}}function Z(){this.viewport.toggleFlip()}e.Viewer=function(r){var o,s=arguments,l=this;if(e.isPlainObject(r)||(r={id:s[0],xmlPath:s.length>1?s[1]:void 0,prefixUrl:s.length>2?s[2]:void 0,controls:s.length>3?s[3]:void 0,overlays:s.length>4?s[4]:void 0}),r.config&&(e.extend(!0,r,r.config),delete r.config),e.extend(!0,this,{id:r.id,hash:r.hash||n++,initialPage:0,element:null,container:null,canvas:null,overlays:[],overlaysContainer:null,previousBody:[],customControls:[],source:null,drawer:null,world:null,viewport:null,navigator:null,collectionViewport:null,collectionDrawer:null,navImages:null,buttonGroup:null,profiler:null},e.DEFAULT_SETTINGS,r),"undefined"===typeof this.hash)throw new Error("A hash must be defined, either by specifying options.id or options.hash.");for("undefined"!==typeof t[this.hash]&&e.console.warn("Hash "+this.hash+" has already been used."),t[this.hash]={fsBoundsDelta:new e.Point(1,1),prevContainerSize:null,animating:!1,forceRedraw:!1,needsResize:!1,forceResize:!1,mouseInside:!1,group:null,zooming:!1,zoomFactor:null,lastZoomTime:null,fullPage:!1,onfullscreenchange:null,lastClickTime:null,draggingToZoom:!1},this._sequenceIndex=0,this._firstOpen=!0,this._updateRequestId=null,this._loadQueue=[],this.currentOverlays=[],this._updatePixelDensityRatioBind=null,this._lastScrollTime=e.now(),e.EventSource.call(this),this.addHandler("open-failed",(function(t){var n=e.getString("Errors.OpenFailed",t.eventSource,t.message);l._showMessage(n)})),e.ControlDock.call(this,r),this.xmlPath&&(this.tileSources=[this.xmlPath]),this.element=this.element||document.getElementById(this.id),this.canvas=e.makeNeutralElement("div"),this.canvas.className="openseadragon-canvas",function(e){e.width="100%",e.height="100%",e.overflow="hidden",e.position="absolute",e.top="0px",e.left="0px"}(this.canvas.style),e.setElementTouchActionNone(this.canvas),""!==r.tabIndex&&(this.canvas.tabIndex=void 0===r.tabIndex?0:r.tabIndex),this.container.className="openseadragon-container",function(e){e.width="100%",e.height="100%",e.position="relative",e.overflow="hidden",e.left="0px",e.top="0px",e.textAlign="left"}(this.container.style),e.setElementTouchActionNone(this.container),this.container.insertBefore(this.canvas,this.container.firstChild),this.element.appendChild(this.container),this.bodyWidth=document.body.style.width,this.bodyHeight=document.body.style.height,this.bodyOverflow=document.body.style.overflow,this.docOverflow=document.documentElement.style.overflow,this.innerTracker=new e.MouseTracker({userData:"Viewer.innerTracker",element:this.canvas,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,contextMenuHandler:e.delegate(this,p),keyDownHandler:e.delegate(this,g),keyHandler:e.delegate(this,m),clickHandler:e.delegate(this,v),dblClickHandler:e.delegate(this,y),dragHandler:e.delegate(this,b),dragEndHandler:e.delegate(this,w),enterHandler:e.delegate(this,x),leaveHandler:e.delegate(this,_),pressHandler:e.delegate(this,T),releaseHandler:e.delegate(this,S),nonPrimaryPressHandler:e.delegate(this,O),nonPrimaryReleaseHandler:e.delegate(this,E),scrollHandler:e.delegate(this,C),pinchHandler:e.delegate(this,P)}),this.outerTracker=new e.MouseTracker({userData:"Viewer.outerTracker",element:this.container,startDisabled:!this.mouseNavEnabled,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,dblClickTimeThreshold:this.dblClickTimeThreshold,dblClickDistThreshold:this.dblClickDistThreshold,enterHandler:e.delegate(this,k),leaveHandler:e.delegate(this,R)}),this.toolbar&&(this.toolbar=new e.ControlDock({element:this.toolbar})),this.bindStandardControls(),t[this.hash].prevContainerSize=i(this.container),window.ResizeObserver?(this._autoResizePolling=!1,this._resizeObserver=new ResizeObserver((function(){t[l.hash].needsResize=!0})),this._resizeObserver.observe(this.container,{})):this._autoResizePolling=!0,this.world=new e.World({viewer:this}),this.world.addHandler("add-item",(function(e){l.source=l.world.getItemAt(0).source,t[l.hash].forceRedraw=!0,l._updateRequestId||(l._updateRequestId=a(l,j))})),this.world.addHandler("remove-item",(function(e){l.world.getItemCount()?l.source=l.world.getItemAt(0).source:l.source=null,t[l.hash].forceRedraw=!0})),this.world.addHandler("metrics-change",(function(e){l.viewport&&l.viewport._setContentBounds(l.world.getHomeBounds(),l.world.getContentFactor())})),this.world.addHandler("item-index-change",(function(e){l.source=l.world.getItemAt(0).source})),this.viewport=new e.Viewport({containerSize:t[this.hash].prevContainerSize,springStiffness:this.springStiffness,animationTime:this.animationTime,minZoomImageRatio:this.minZoomImageRatio,maxZoomPixelRatio:this.maxZoomPixelRatio,visibilityRatio:this.visibilityRatio,wrapHorizontal:this.wrapHorizontal,wrapVertical:this.wrapVertical,defaultZoomLevel:this.defaultZoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,viewer:this,degrees:this.degrees,flipped:this.flipped,navigatorRotate:this.navigatorRotate,homeFillsViewer:this.homeFillsViewer,margins:this.viewportMargins,silenceMultiImageWarnings:this.silenceMultiImageWarnings}),this.viewport._setContentBounds(this.world.getHomeBounds(),this.world.getContentFactor()),this.imageLoader=new e.ImageLoader({jobLimit:this.imageLoaderLimit,timeout:r.timeout}),this.tileCache=new e.TileCache({maxImageCacheCount:this.maxImageCacheCount}),this.drawer=new e.Drawer({viewer:this,viewport:this.viewport,element:this.canvas,debugGridColor:this.debugGridColor}),this.overlaysContainer=e.makeNeutralElement("div"),this.canvas.appendChild(this.overlaysContainer),this.drawer.canRotate()||(this.rotateLeft&&(o=this.buttonGroup.buttons.indexOf(this.rotateLeft),this.buttonGroup.buttons.splice(o,1),this.buttonGroup.element.removeChild(this.rotateLeft.element)),this.rotateRight&&(o=this.buttonGroup.buttons.indexOf(this.rotateRight),this.buttonGroup.buttons.splice(o,1),this.buttonGroup.element.removeChild(this.rotateRight.element))),this._addUpdatePixelDensityRatioEvent(),this.showNavigator&&(this.navigator=new e.Navigator({element:this.navigatorElement,id:this.navigatorId,position:this.navigatorPosition,sizeRatio:this.navigatorSizeRatio,maintainSizeRatio:this.navigatorMaintainSizeRatio,top:this.navigatorTop,left:this.navigatorLeft,width:this.navigatorWidth,height:this.navigatorHeight,autoResize:this.navigatorAutoResize,autoFade:this.navigatorAutoFade,prefixUrl:this.prefixUrl,viewer:this,navigatorRotate:this.navigatorRotate,background:this.navigatorBackground,opacity:this.navigatorOpacity,borderColor:this.navigatorBorderColor,displayRegionColor:this.navigatorDisplayRegionColor,crossOriginPolicy:this.crossOriginPolicy,animationTime:this.animationTime})),this.sequenceMode&&this.bindSequenceControls(),this.tileSources&&this.open(this.tileSources),o=0;o<this.customControls.length;o++)this.addControl(this.customControls[o].id,{anchor:this.customControls[o].anchor});e.requestAnimationFrame((function(){c(l)})),void 0===this.imageSmoothingEnabled||this.imageSmoothingEnabled||this.drawer.setImageSmoothingEnabled(this.imageSmoothingEnabled),e._viewers.set(this.element,this)},e.extend(e.Viewer.prototype,e.EventSource.prototype,e.ControlDock.prototype,{isOpen:function(){return!!this.world.getItemCount()},openDzi:function(t){return e.console.error("[Viewer.openDzi] this function is deprecated; use Viewer.open() instead."),this.open(t)},openTileSource:function(t){return e.console.error("[Viewer.openTileSource] this function is deprecated; use Viewer.open() instead."),this.open(t)},get buttons(){return e.console.warn("Viewer.buttons is deprecated; Please use Viewer.buttonGroup"),this.buttonGroup},open:function(t,n){var i=this;if(this.close(),!t)return this;if(this.sequenceMode&&e.isArray(t))return this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),"undefined"===typeof n||isNaN(n)||(this.initialPage=n),this.tileSources=t,this._sequenceIndex=Math.max(0,Math.min(this.tileSources.length-1,this.initialPage)),this.tileSources.length&&(this.open(this.tileSources[this._sequenceIndex]),this.showReferenceStrip&&this.addReferenceStrip()),this._updateSequenceButtons(this._sequenceIndex),this;if(e.isArray(t)||(t=[t]),!t.length)return this;this._opening=!0;for(var r,s=t.length,a=0,l=0,c=function(){if(a+l===s)if(a){!i._firstOpen&&i.preserveViewport||(i.viewport.goHome(!0),i.viewport.update()),i._firstOpen=!1;var e=t[0];if(e.tileSource&&(e=e.tileSource),i.overlays&&!i.preserveOverlays)for(var n=0;n<i.overlays.length;n++)i.currentOverlays[n]=o(i,i.overlays[n]);i._drawOverlays(),i._opening=!1,i.raiseEvent("open",{source:e})}else i._opening=!1,i.raiseEvent("open-failed",r)},u=function(t){e.isPlainObject(t)&&t.tileSource||(t={tileSource:t}),void 0!==t.index&&(e.console.error("[Viewer.open] setting indexes here is not supported; use addTiledImage instead"),delete t.index),void 0===t.collectionImmediately&&(t.collectionImmediately=!0);var n=t.success;t.success=function(e){if(a++,t.tileSource.overlays)for(var r=0;r<t.tileSource.overlays.length;r++)i.addOverlay(t.tileSource.overlays[r]);n&&n(e),c()};var o=t.error;t.error=function(e){l++,r||(r=e),o&&o(e),c()},i.addTiledImage(t)},h=0;h<t.length;h++)u(t[h]);return this},close:function(){return t[this.hash]?(this._opening=!1,this.navigator&&this.navigator.close(),this.preserveOverlays||(this.clearOverlays(),this.overlaysContainer.innerHTML=""),t[this.hash].animating=!1,this.world.removeAll(),this.imageLoader.clear(),this.raiseEvent("close"),this):this},destroy:function(){if(t[this.hash]){if(this.raiseEvent("before-destroy"),this._removeUpdatePixelDensityRatioEvent(),this.close(),this.clearOverlays(),this.overlaysContainer.innerHTML="",this._resizeObserver&&this._resizeObserver.disconnect(),this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null),null!==this._updateRequestId&&(e.cancelAnimationFrame(this._updateRequestId),this._updateRequestId=null),this.drawer&&this.drawer.destroy(),this.navigator&&(this.navigator.destroy(),t[this.navigator.hash]=null,delete t[this.navigator.hash],this.navigator=null),this.buttonGroup)this.buttonGroup.destroy();else if(this.customButtons)while(this.customButtons.length)this.customButtons.pop().destroy();if(this.paging&&this.paging.destroy(),this.element)while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.container.onsubmit=null,this.clearControls(),this.innerTracker&&this.innerTracker.destroy(),this.outerTracker&&this.outerTracker.destroy(),t[this.hash]=null,delete t[this.hash],this.canvas=null,this.container=null,e._viewers.delete(this.element),this.element=null,this.raiseEvent("destroy"),this.removeAllHandlers()}},isMouseNavEnabled:function(){return this.innerTracker.isTracking()},setMouseNavEnabled:function(e){return this.innerTracker.setTracking(e),this.outerTracker.setTracking(e),this.raiseEvent("mouse-enabled",{enabled:e}),this},areControlsEnabled:function(){var e,t=this.controls.length;for(e=0;e<this.controls.length;e++)t=t&&this.controls[e].isVisible();return t},setControlsEnabled:function(e){return e?h(this):c(this),this.raiseEvent("controls-enabled",{enabled:e}),this},setDebugMode:function(e){for(var t=0;t<this.world.getItemCount();t++)this.world.getItemAt(t).debugMode=e;this.debugMode=e,this.forceRedraw()},isFullPage:function(){return t[this.hash].fullPage},setFullPage:function(n){var i,r,o=document.body,s=o.style,a=document.documentElement.style,l=this;if(n===this.isFullPage())return this;var c={fullPage:n,preventDefaultAction:!1};if(this.raiseEvent("pre-full-page",c),c.preventDefaultAction)return this;if(n){for(this.elementSize=e.getElementSize(this.element),this.pageScroll=e.getPageScroll(),this.elementMargin=this.element.style.margin,this.element.style.margin="0",this.elementPadding=this.element.style.padding,this.element.style.padding="0",this.bodyMargin=s.margin,this.docMargin=a.margin,s.margin="0",a.margin="0",this.bodyPadding=s.padding,this.docPadding=a.padding,s.padding="0",a.padding="0",this.bodyWidth=s.width,this.docWidth=a.width,s.width="100%",a.width="100%",this.bodyHeight=s.height,this.docHeight=a.height,s.height="100%",a.height="100%",this.bodyDisplay=s.display,s.display="block",this.previousBody=[],t[this.hash].prevElementParent=this.element.parentNode,t[this.hash].prevNextSibling=this.element.nextSibling,t[this.hash].prevElementWidth=this.element.style.width,t[this.hash].prevElementHeight=this.element.style.height,i=o.childNodes.length,r=0;r<i;r++)this.previousBody.push(o.childNodes[0]),o.removeChild(o.childNodes[0]);this.toolbar&&this.toolbar.element&&(this.toolbar.parentNode=this.toolbar.element.parentNode,this.toolbar.nextSibling=this.toolbar.element.nextSibling,o.appendChild(this.toolbar.element),e.addClass(this.toolbar.element,"fullpage")),e.addClass(this.element,"fullpage"),o.appendChild(this.element),this.element.style.height="100vh",this.element.style.width="100vw",this.toolbar&&this.toolbar.element&&(this.element.style.height=e.getElementSize(this.element).y-e.getElementSize(this.toolbar.element).y+"px"),t[this.hash].fullPage=!0,e.delegate(this,k)({})}else{for(this.element.style.margin=this.elementMargin,this.element.style.padding=this.elementPadding,s.margin=this.bodyMargin,a.margin=this.docMargin,s.padding=this.bodyPadding,a.padding=this.docPadding,s.width=this.bodyWidth,a.width=this.docWidth,s.height=this.bodyHeight,a.height=this.docHeight,s.display=this.bodyDisplay,o.removeChild(this.element),i=this.previousBody.length,r=0;r<i;r++)o.appendChild(this.previousBody.shift());e.removeClass(this.element,"fullpage"),t[this.hash].prevElementParent.insertBefore(this.element,t[this.hash].prevNextSibling),this.toolbar&&this.toolbar.element&&(o.removeChild(this.toolbar.element),e.removeClass(this.toolbar.element,"fullpage"),this.toolbar.parentNode.insertBefore(this.toolbar.element,this.toolbar.nextSibling),delete this.toolbar.parentNode,delete this.toolbar.nextSibling),this.element.style.width=t[this.hash].prevElementWidth,this.element.style.height=t[this.hash].prevElementHeight;var u=0,h=function(){e.setPageScroll(l.pageScroll);var t=e.getPageScroll();u++,u<10&&(t.x!==l.pageScroll.x||t.y!==l.pageScroll.y)&&e.requestAnimationFrame(h)};e.requestAnimationFrame(h),t[this.hash].fullPage=!1,e.delegate(this,R)({})}return this.navigator&&this.viewport&&this.navigator.update(this.viewport),this.raiseEvent("full-page",{fullPage:n}),this},setFullScreen:function(t){var n=this;if(!e.supportsFullScreen)return this.setFullPage(t);if(e.isFullScreen()===t)return this;var i={fullScreen:t,preventDefaultAction:!1};if(this.raiseEvent("pre-full-screen",i),i.preventDefaultAction)return this;if(t){if(this.setFullPage(!0),!this.isFullPage())return this;this.fullPageStyleWidth=this.element.style.width,this.fullPageStyleHeight=this.element.style.height,this.element.style.width="100%",this.element.style.height="100%";var r=function(){var t=e.isFullScreen();t||(e.removeEvent(document,e.fullScreenEventName,r),e.removeEvent(document,e.fullScreenErrorEventName,r),n.setFullPage(!1),n.isFullPage()&&(n.element.style.width=n.fullPageStyleWidth,n.element.style.height=n.fullPageStyleHeight)),n.navigator&&n.viewport&&setTimeout((function(){n.navigator.update(n.viewport)})),n.raiseEvent("full-screen",{fullScreen:t})};e.addEvent(document,e.fullScreenEventName,r),e.addEvent(document,e.fullScreenErrorEventName,r),e.requestFullScreen(document.body)}else e.exitFullScreen();return this},isVisible:function(){return"hidden"!==this.container.style.visibility},isFullScreen:function(){return e.isFullScreen()&&this.isFullPage()},setVisible:function(e){return this.container.style.visibility=e?"":"hidden",this.raiseEvent("visible",{visible:e}),this},addTiledImage:function(t){e.console.assert(t,"[Viewer.addTiledImage] options is required"),e.console.assert(t.tileSource,"[Viewer.addTiledImage] options.tileSource is required"),e.console.assert(!t.replace||t.index>-1&&t.index<this.world.getItemCount(),"[Viewer.addTiledImage] if options.replace is used, options.index must be a valid index in Viewer.world");var n=this;t.replace&&(t.replaceItem=n.world.getItemAt(t.index)),this._hideMessage(),void 0===t.placeholderFillStyle&&(t.placeholderFillStyle=this.placeholderFillStyle),void 0===t.opacity&&(t.opacity=this.opacity),void 0===t.preload&&(t.preload=this.preload),void 0===t.compositeOperation&&(t.compositeOperation=this.compositeOperation),void 0===t.crossOriginPolicy&&(t.crossOriginPolicy=void 0!==t.tileSource.crossOriginPolicy?t.tileSource.crossOriginPolicy:this.crossOriginPolicy),void 0===t.ajaxWithCredentials&&(t.ajaxWithCredentials=this.ajaxWithCredentials),void 0===t.loadTilesWithAjax&&(t.loadTilesWithAjax=this.loadTilesWithAjax),void 0===t.ajaxHeaders||null===t.ajaxHeaders?t.ajaxHeaders=this.ajaxHeaders:e.isPlainObject(t.ajaxHeaders)&&e.isPlainObject(this.ajaxHeaders)&&(t.ajaxHeaders=e.extend({},this.ajaxHeaders,t.ajaxHeaders));var i={options:t};function o(e){for(var r=0;r<n._loadQueue.length;r++)if(n._loadQueue[r]===i){n._loadQueue.splice(r,1);break}0===n._loadQueue.length&&s(i),n.raiseEvent("add-item-failed",e),t.error&&t.error(e)}function s(e){n.collectionMode&&(n.world.arrange({immediately:e.options.collectionImmediately,rows:n.collectionRows,columns:n.collectionColumns,layout:n.collectionLayout,tileSize:n.collectionTileSize,tileMargin:n.collectionTileMargin}),n.world.setAutoRefigureSizes(!0))}function a(){var t,i,r;while(n._loadQueue.length){if(t=n._loadQueue[0],!t.tileSource)break;if(n._loadQueue.splice(0,1),t.options.replace){var o=n.world.getIndexOfItem(t.options.replaceItem);-1!==o&&(t.options.index=o),n.world.removeItem(t.options.replaceItem)}i=new e.TiledImage({viewer:n,source:t.tileSource,viewport:n.viewport,drawer:n.drawer,tileCache:n.tileCache,imageLoader:n.imageLoader,x:t.options.x,y:t.options.y,width:t.options.width,height:t.options.height,fitBounds:t.options.fitBounds,fitBoundsPlacement:t.options.fitBoundsPlacement,clip:t.options.clip,placeholderFillStyle:t.options.placeholderFillStyle,opacity:t.options.opacity,preload:t.options.preload,degrees:t.options.degrees,flipped:t.options.flipped,compositeOperation:t.options.compositeOperation,springStiffness:n.springStiffness,animationTime:n.animationTime,minZoomImageRatio:n.minZoomImageRatio,wrapHorizontal:n.wrapHorizontal,wrapVertical:n.wrapVertical,immediateRender:n.immediateRender,blendTime:n.blendTime,alwaysBlend:n.alwaysBlend,minPixelRatio:n.minPixelRatio,smoothTileEdgesMinZoom:n.smoothTileEdgesMinZoom,iOSDevice:n.iOSDevice,crossOriginPolicy:t.options.crossOriginPolicy,ajaxWithCredentials:t.options.ajaxWithCredentials,loadTilesWithAjax:t.options.loadTilesWithAjax,ajaxHeaders:t.options.ajaxHeaders,debugMode:n.debugMode,subPixelRoundingForTransparency:n.subPixelRoundingForTransparency}),n.collectionMode&&n.world.setAutoRefigureSizes(!1),n.navigator&&(r=e.extend({},t.options,{replace:!1,originalTiledImage:i,tileSource:t.tileSource}),n.navigator.addTiledImage(r)),n.world.addItem(i,{index:t.options.index}),0===n._loadQueue.length&&s(t),1!==n.world.getItemCount()||n.preserveViewport||n.viewport.goHome(!0),t.options.success&&t.options.success({item:i})}}e.isArray(t.tileSource)?setTimeout((function(){o({message:"[Viewer.addTiledImage] Sequences can not be added; add them one at a time instead.",source:t.tileSource,options:t})})):(this._loadQueue.push(i),r(this,t.tileSource,t,(function(e){i.tileSource=e,a()}),(function(e){e.options=t,o(e),a()})))},addSimpleImage:function(t){e.console.assert(t,"[Viewer.addSimpleImage] options is required"),e.console.assert(t.url,"[Viewer.addSimpleImage] options.url is required");var n=e.extend({},t,{tileSource:{type:"image",url:t.url}});delete n.url,this.addTiledImage(n)},addLayer:function(t){var n=this;e.console.error("[Viewer.addLayer] this function is deprecated; use Viewer.addTiledImage() instead.");var i=e.extend({},t,{success:function(e){n.raiseEvent("add-layer",{options:t,drawer:e.item})},error:function(e){n.raiseEvent("add-layer-failed",e)}});return this.addTiledImage(i),this},getLayerAtLevel:function(t){return e.console.error("[Viewer.getLayerAtLevel] this function is deprecated; use World.getItemAt() instead."),this.world.getItemAt(t)},getLevelOfLayer:function(t){return e.console.error("[Viewer.getLevelOfLayer] this function is deprecated; use World.getIndexOfItem() instead."),this.world.getIndexOfItem(t)},getLayersCount:function(){return e.console.error("[Viewer.getLayersCount] this function is deprecated; use World.getItemCount() instead."),this.world.getItemCount()},setLayerLevel:function(t,n){return e.console.error("[Viewer.setLayerLevel] this function is deprecated; use World.setItemIndex() instead."),this.world.setItemIndex(t,n)},removeLayer:function(t){return e.console.error("[Viewer.removeLayer] this function is deprecated; use World.removeItem() instead."),this.world.removeItem(t)},forceRedraw:function(){return t[this.hash].forceRedraw=!0,this},forceResize:function(){t[this.hash].needsResize=!0,t[this.hash].forceResize=!0},bindSequenceControls:function(){var t=e.delegate(this,d),n=e.delegate(this,f),i=e.delegate(this,this.goToNextPage),r=e.delegate(this,this.goToPreviousPage),o=this.navImages,s=!0;return this.showSequenceControl&&((this.previousButton||this.nextButton)&&(s=!1),this.previousButton=new e.Button({element:this.previousButton?e.getElement(this.previousButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.PreviousPage"),srcRest:F(this.prefixUrl,o.previous.REST),srcGroup:F(this.prefixUrl,o.previous.GROUP),srcHover:F(this.prefixUrl,o.previous.HOVER),srcDown:F(this.prefixUrl,o.previous.DOWN),onRelease:r,onFocus:t,onBlur:n}),this.nextButton=new e.Button({element:this.nextButton?e.getElement(this.nextButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.NextPage"),srcRest:F(this.prefixUrl,o.next.REST),srcGroup:F(this.prefixUrl,o.next.GROUP),srcHover:F(this.prefixUrl,o.next.HOVER),srcDown:F(this.prefixUrl,o.next.DOWN),onRelease:i,onFocus:t,onBlur:n}),this.navPrevNextWrap||this.previousButton.disable(),this.tileSources&&this.tileSources.length||this.nextButton.disable(),s&&(this.paging=new e.ButtonGroup({buttons:[this.previousButton,this.nextButton],clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.pagingControl=this.paging.element,this.toolbar?this.toolbar.addControl(this.pagingControl,{anchor:e.ControlAnchor.BOTTOM_RIGHT}):this.addControl(this.pagingControl,{anchor:this.sequenceControlAnchor||e.ControlAnchor.TOP_LEFT}))),this},bindStandardControls:function(){var t=e.delegate(this,A),n=e.delegate(this,M),i=e.delegate(this,z),r=e.delegate(this,N),o=e.delegate(this,U),s=e.delegate(this,W),a=e.delegate(this,q),l=e.delegate(this,G),c=e.delegate(this,$),u=e.delegate(this,Z),h=e.delegate(this,d),p=e.delegate(this,f),g=this.navImages,m=[],v=!0;return this.showNavigationControl&&((this.zoomInButton||this.zoomOutButton||this.homeButton||this.fullPageButton||this.rotateLeftButton||this.rotateRightButton||this.flipButton)&&(v=!1),this.showZoomControl&&(m.push(this.zoomInButton=new e.Button({element:this.zoomInButton?e.getElement(this.zoomInButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomIn"),srcRest:F(this.prefixUrl,g.zoomIn.REST),srcGroup:F(this.prefixUrl,g.zoomIn.GROUP),srcHover:F(this.prefixUrl,g.zoomIn.HOVER),srcDown:F(this.prefixUrl,g.zoomIn.DOWN),onPress:t,onRelease:n,onClick:i,onEnter:t,onExit:n,onFocus:h,onBlur:p})),m.push(this.zoomOutButton=new e.Button({element:this.zoomOutButton?e.getElement(this.zoomOutButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.ZoomOut"),srcRest:F(this.prefixUrl,g.zoomOut.REST),srcGroup:F(this.prefixUrl,g.zoomOut.GROUP),srcHover:F(this.prefixUrl,g.zoomOut.HOVER),srcDown:F(this.prefixUrl,g.zoomOut.DOWN),onPress:r,onRelease:n,onClick:o,onEnter:r,onExit:n,onFocus:h,onBlur:p}))),this.showHomeControl&&m.push(this.homeButton=new e.Button({element:this.homeButton?e.getElement(this.homeButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Home"),srcRest:F(this.prefixUrl,g.home.REST),srcGroup:F(this.prefixUrl,g.home.GROUP),srcHover:F(this.prefixUrl,g.home.HOVER),srcDown:F(this.prefixUrl,g.home.DOWN),onRelease:s,onFocus:h,onBlur:p})),this.showFullPageControl&&m.push(this.fullPageButton=new e.Button({element:this.fullPageButton?e.getElement(this.fullPageButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.FullPage"),srcRest:F(this.prefixUrl,g.fullpage.REST),srcGroup:F(this.prefixUrl,g.fullpage.GROUP),srcHover:F(this.prefixUrl,g.fullpage.HOVER),srcDown:F(this.prefixUrl,g.fullpage.DOWN),onRelease:a,onFocus:h,onBlur:p})),this.showRotationControl&&(m.push(this.rotateLeftButton=new e.Button({element:this.rotateLeftButton?e.getElement(this.rotateLeftButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateLeft"),srcRest:F(this.prefixUrl,g.rotateleft.REST),srcGroup:F(this.prefixUrl,g.rotateleft.GROUP),srcHover:F(this.prefixUrl,g.rotateleft.HOVER),srcDown:F(this.prefixUrl,g.rotateleft.DOWN),onRelease:l,onFocus:h,onBlur:p})),m.push(this.rotateRightButton=new e.Button({element:this.rotateRightButton?e.getElement(this.rotateRightButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.RotateRight"),srcRest:F(this.prefixUrl,g.rotateright.REST),srcGroup:F(this.prefixUrl,g.rotateright.GROUP),srcHover:F(this.prefixUrl,g.rotateright.HOVER),srcDown:F(this.prefixUrl,g.rotateright.DOWN),onRelease:c,onFocus:h,onBlur:p}))),this.showFlipControl&&m.push(this.flipButton=new e.Button({element:this.flipButton?e.getElement(this.flipButton):null,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,tooltip:e.getString("Tooltips.Flip"),srcRest:F(this.prefixUrl,g.flip.REST),srcGroup:F(this.prefixUrl,g.flip.GROUP),srcHover:F(this.prefixUrl,g.flip.HOVER),srcDown:F(this.prefixUrl,g.flip.DOWN),onRelease:u,onFocus:h,onBlur:p})),v?(this.buttonGroup=new e.ButtonGroup({buttons:m,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold}),this.navControl=this.buttonGroup.element,this.addHandler("open",e.delegate(this,V)),this.toolbar?this.toolbar.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT}):this.addControl(this.navControl,{anchor:this.navigationControlAnchor||e.ControlAnchor.TOP_LEFT})):this.customButtons=m),this},currentPage:function(){return this._sequenceIndex},goToPage:function(e){return this.tileSources&&e>=0&&e<this.tileSources.length&&(this._sequenceIndex=e,this._updateSequenceButtons(e),this.open(this.tileSources[e]),this.referenceStrip&&this.referenceStrip.setFocus(e),this.raiseEvent("page",{page:e})),this},addOverlay:function(t,n,i,r){var a;if(a=e.isPlainObject(t)?t:{element:t,location:n,placement:i,onDraw:r},t=e.getElement(a.element),s(this.currentOverlays,t)>=0)return this;var l=o(this,a);return this.currentOverlays.push(l),l.drawHTML(this.overlaysContainer,this.viewport),this.raiseEvent("add-overlay",{element:t,location:a.location,placement:a.placement}),this},updateOverlay:function(n,i,r){var o;return n=e.getElement(n),o=s(this.currentOverlays,n),o>=0&&(this.currentOverlays[o].update(i,r),t[this.hash].forceRedraw=!0,this.raiseEvent("update-overlay",{element:n,location:i,placement:r})),this},removeOverlay:function(n){var i;return n=e.getElement(n),i=s(this.currentOverlays,n),i>=0&&(this.currentOverlays[i].destroy(),this.currentOverlays.splice(i,1),t[this.hash].forceRedraw=!0,this.raiseEvent("remove-overlay",{element:n})),this},clearOverlays:function(){while(this.currentOverlays.length>0)this.currentOverlays.pop().destroy();return t[this.hash].forceRedraw=!0,this.raiseEvent("clear-overlay",{}),this},getOverlayById:function(t){var n;return t=e.getElement(t),n=s(this.currentOverlays,t),n>=0?this.currentOverlays[n]:null},_updateSequenceButtons:function(e){this.nextButton&&(this.tileSources&&this.tileSources.length-1!==e?this.nextButton.enable():this.navPrevNextWrap||this.nextButton.disable()),this.previousButton&&(e>0?this.previousButton.enable():this.navPrevNextWrap||this.previousButton.disable())},_showMessage:function(t){this._hideMessage();var n=e.makeNeutralElement("div");n.appendChild(document.createTextNode(t)),this.messageDiv=e.makeCenteredNode(n),e.addClass(this.messageDiv,"openseadragon-message"),this.container.appendChild(this.messageDiv)},_hideMessage:function(){var e=this.messageDiv;e&&(e.parentNode.removeChild(e),delete this.messageDiv)},gestureSettingsByDeviceType:function(e){switch(e){case"mouse":return this.gestureSettingsMouse;case"touch":return this.gestureSettingsTouch;case"pen":return this.gestureSettingsPen;default:return this.gestureSettingsUnknown}},_drawOverlays:function(){var e,t=this.currentOverlays.length;for(e=0;e<t;e++)this.currentOverlays[e].drawHTML(this.overlaysContainer,this.viewport)},_cancelPendingImages:function(){this._loadQueue=[]},removeReferenceStrip:function(){this.showReferenceStrip=!1,this.referenceStrip&&(this.referenceStrip.destroy(),this.referenceStrip=null)},addReferenceStrip:function(){if(this.showReferenceStrip=!0,this.sequenceMode){if(this.referenceStrip)return;this.tileSources.length&&this.tileSources.length>1&&(this.referenceStrip=new e.ReferenceStrip({id:this.referenceStripElement,position:this.referenceStripPosition,sizeRatio:this.referenceStripSizeRatio,scroll:this.referenceStripScroll,height:this.referenceStripHeight,width:this.referenceStripWidth,tileSources:this.tileSources,prefixUrl:this.prefixUrl,useCanvas:this.useCanvas,viewer:this}),this.referenceStrip.setFocus(this._sequenceIndex))}else e.console.warn('Attempting to display a reference strip while "sequenceMode" is off.')},_addUpdatePixelDensityRatioEvent:function(){this._updatePixelDensityRatioBind=this._updatePixelDensityRatio.bind(this),e.addEvent(window,"resize",this._updatePixelDensityRatioBind)},_removeUpdatePixelDensityRatioEvent:function(){e.removeEvent(window,"resize",this._updatePixelDensityRatioBind)},_updatePixelDensityRatio:function(){var t=e.pixelDensityRatio,n=e.getCurrentPixelDensityRatio();t!==n&&(e.pixelDensityRatio=n,this.world.resetItems(),this.forceRedraw())},goToPreviousPage:function(){var e=this._sequenceIndex-1;this.navPrevNextWrap&&e<0&&(e+=this.tileSources.length),this.goToPage(e)},goToNextPage:function(){var e=this._sequenceIndex+1;this.navPrevNextWrap&&e>=this.tileSources.length&&(e=0),this.goToPage(e)},isAnimating:function(){return t[this.hash].animating}})}(s),function(e){function t(e){var t={tracker:e.eventSource,position:e.position,quick:e.quick,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};if(this.viewer.raiseEvent("navigator-click",t),!t.preventDefaultAction&&e.quick&&this.viewer.viewport&&(this.panVertical||this.panHorizontal)){this.viewer.viewport.flipped&&(e.position.x=this.viewport.getContainerSize().x-e.position.x);var n=this.viewport.pointFromPixel(e.position);this.panVertical?this.panHorizontal||(n.x=this.viewer.viewport.getCenter(!0).x):n.y=this.viewer.viewport.getCenter(!0).y,this.viewer.viewport.panTo(n),this.viewer.viewport.applyConstraints()}}function n(e){var t={tracker:e.eventSource,position:e.position,delta:e.delta,speed:e.speed,direction:e.direction,shift:e.shift,originalEvent:e.originalEvent,preventDefaultAction:!1};this.viewer.raiseEvent("navigator-drag",t),!t.preventDefaultAction&&this.viewer.viewport&&(this.panHorizontal||(e.delta.x=0),this.panVertical||(e.delta.y=0),this.viewer.viewport.flipped&&(e.delta.x=-e.delta.x),this.viewer.viewport.panBy(this.viewport.deltaPointsFromPixels(e.delta)),this.viewer.constrainDuringPan&&this.viewer.viewport.applyConstraints())}function i(e){e.insideElementPressed&&this.viewer.viewport&&this.viewer.viewport.applyConstraints()}function r(e){var t={tracker:e.eventSource,position:e.position,scroll:e.scroll,shift:e.shift,originalEvent:e.originalEvent,preventDefault:e.preventDefault};this.viewer.raiseEvent("navigator-scroll",t),e.preventDefault=t.preventDefault}function o(e,t){s(e,"rotate("+t+"deg)")}function s(e,t){e.style.webkitTransform=t,e.style.mozTransform=t,e.style.msTransform=t,e.style.oTransform=t,e.style.transform=t}e.Navigator=function(s){var a,l,c=s.viewer,u=this;function h(e){o(u.displayRegionContainer,e),o(u.displayRegion,-e),u.viewport.setRotation(e)}if(s.element||s.id?(s.element?(s.id&&e.console.warn("Given option.id for Navigator was ignored since option.element was provided and is being used instead."),s.element.id?s.id=s.element.id:s.id="navigator-"+e.now(),this.element=s.element):this.element=document.getElementById(s.id),s.controlOptions={anchor:e.ControlAnchor.NONE,attachToViewer:!1,autoFade:!1}):(s.id="navigator-"+e.now(),this.element=e.makeNeutralElement("div"),s.controlOptions={anchor:e.ControlAnchor.TOP_RIGHT,attachToViewer:!0,autoFade:s.autoFade},s.position&&("BOTTOM_RIGHT"===s.position?s.controlOptions.anchor=e.ControlAnchor.BOTTOM_RIGHT:"BOTTOM_LEFT"===s.position?s.controlOptions.anchor=e.ControlAnchor.BOTTOM_LEFT:"TOP_RIGHT"===s.position?s.controlOptions.anchor=e.ControlAnchor.TOP_RIGHT:"TOP_LEFT"===s.position?s.controlOptions.anchor=e.ControlAnchor.TOP_LEFT:"ABSOLUTE"===s.position&&(s.controlOptions.anchor=e.ControlAnchor.ABSOLUTE,s.controlOptions.top=s.top,s.controlOptions.left=s.left,s.controlOptions.height=s.height,s.controlOptions.width=s.width))),this.element.id=s.id,this.element.className+=" navigator",s=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.navigatorSizeRatio},s,{element:this.element,tabIndex:-1,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:s.animationTime,autoResize:!1,minZoomImageRatio:1,background:s.background,opacity:s.opacity,borderColor:s.borderColor,displayRegionColor:s.displayRegionColor}),s.minPixelRatio=this.minPixelRatio=c.minPixelRatio,e.setElementTouchActionNone(this.element),this.borderWidth=2,this.fudge=new e.Point(1,1),this.totalBorderWidths=new e.Point(2*this.borderWidth,2*this.borderWidth).minus(this.fudge),s.controlOptions.anchor!==e.ControlAnchor.NONE&&function(e,t){e.margin="0px",e.border=t+"px solid "+s.borderColor,e.padding="0px",e.background=s.background,e.opacity=s.opacity,e.overflow="hidden"}(this.element.style,this.borderWidth),this.displayRegion=e.makeNeutralElement("div"),this.displayRegion.id=this.element.id+"-displayregion",this.displayRegion.className="displayregion",function(e,t){e.position="relative",e.top="0px",e.left="0px",e.fontSize="0px",e.overflow="hidden",e.border=t+"px solid "+s.displayRegionColor,e.margin="0px",e.padding="0px",e.background="transparent",e["float"]="left",e.cssFloat="left",e.styleFloat="left",e.zIndex=999999999,e.cursor="default"}(this.displayRegion.style,this.borderWidth),e.setElementPointerEventsNone(this.displayRegion),e.setElementTouchActionNone(this.displayRegion),this.displayRegionContainer=e.makeNeutralElement("div"),this.displayRegionContainer.id=this.element.id+"-displayregioncontainer",this.displayRegionContainer.className="displayregioncontainer",this.displayRegionContainer.style.width="100%",this.displayRegionContainer.style.height="100%",e.setElementPointerEventsNone(this.displayRegionContainer),e.setElementTouchActionNone(this.displayRegionContainer),c.addControl(this.element,s.controlOptions),this._resizeWithViewer=s.controlOptions.anchor!==e.ControlAnchor.ABSOLUTE&&s.controlOptions.anchor!==e.ControlAnchor.NONE,s.width&&s.height?(this.setWidth(s.width),this.setHeight(s.height)):this._resizeWithViewer&&(a=e.getElementSize(c.element),this.element.style.height=Math.round(a.y*s.sizeRatio)+"px",this.element.style.width=Math.round(a.x*s.sizeRatio)+"px",this.oldViewerSize=a,l=e.getElementSize(this.element),this.elementArea=l.x*l.y),this.oldContainerSize=new e.Point(0,0),e.Viewer.apply(this,[s]),this.displayRegionContainer.appendChild(this.displayRegion),this.element.getElementsByTagName("div")[0].appendChild(this.displayRegionContainer),s.navigatorRotate){var d=s.viewer.viewport?s.viewer.viewport.getRotation():s.viewer.degrees||0;h(d),s.viewer.addHandler("rotate",(function(e){h(e.degrees)}))}this.innerTracker.destroy(),this.innerTracker=new e.MouseTracker({userData:"Navigator.innerTracker",element:this.element,dragHandler:e.delegate(this,n),clickHandler:e.delegate(this,t),releaseHandler:e.delegate(this,i),scrollHandler:e.delegate(this,r),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),this.outerTracker.userData="Navigator.outerTracker",e.setElementPointerEventsNone(this.canvas),e.setElementPointerEventsNone(this.container),this.addHandler("reset-size",(function(){u.viewport&&u.viewport.goHome(!0)})),c.world.addHandler("item-index-change",(function(e){window.setTimeout((function(){var t=u.world.getItemAt(e.previousIndex);u.world.setItemIndex(t,e.newIndex)}),1)})),c.world.addHandler("remove-item",(function(e){var t=e.item,n=u._getMatchingItem(t);n&&u.world.removeItem(n)})),this.update(c.viewport)},e.extend(e.Navigator.prototype,e.EventSource.prototype,e.Viewer.prototype,{updateSize:function(){if(this.viewport){var t=new e.Point(0===this.container.clientWidth?1:this.container.clientWidth,0===this.container.clientHeight?1:this.container.clientHeight);t.equals(this.oldContainerSize)||(this.viewport.resize(t,!0),this.viewport.goHome(!0),this.oldContainerSize=t,this.drawer.clear(),this.world.draw())}},setWidth:function(e){this.width=e,this.element.style.width="number"===typeof e?e+"px":e,this._resizeWithViewer=!1},setHeight:function(e){this.height=e,this.element.style.height="number"===typeof e?e+"px":e,this._resizeWithViewer=!1},setFlip:function(e){return this.viewport.setFlip(e),this.setDisplayTransform(this.viewer.viewport.getFlip()?"scale(-1,1)":"scale(1,1)"),this},setDisplayTransform:function(e){s(this.displayRegion,e),s(this.canvas,e),s(this.element,e)},update:function(t){var n,i,r,o,s,a;if(n=e.getElementSize(this.viewer.element),this._resizeWithViewer&&n.x&&n.y&&!n.equals(this.oldViewerSize)&&(this.oldViewerSize=n,this.maintainSizeRatio||!this.elementArea?(i=n.x*this.sizeRatio,r=n.y*this.sizeRatio):(i=Math.sqrt(this.elementArea*(n.x/n.y)),r=this.elementArea/i),this.element.style.width=Math.round(i)+"px",this.element.style.height=Math.round(r)+"px",this.elementArea||(this.elementArea=i*r),this.updateSize()),t&&this.viewport){o=t.getBoundsNoRotate(!0),s=this.viewport.pixelFromPointNoRotate(o.getTopLeft(),!1),a=this.viewport.pixelFromPointNoRotate(o.getBottomRight(),!1).minus(this.totalBorderWidths);var l=this.displayRegion.style;l.display=this.world.getItemCount()?"block":"none",l.top=Math.round(s.y)+"px",l.left=Math.round(s.x)+"px";var c=Math.abs(s.x-a.x),u=Math.abs(s.y-a.y);l.width=Math.round(Math.max(c,0))+"px",l.height=Math.round(Math.max(u,0))+"px"}},addTiledImage:function(t){var n=this,i=t.originalTiledImage;delete t.original;var r=e.extend({},t,{success:function(e){var t=e.item;function r(){n._matchBounds(t,i)}function o(){n._matchOpacity(t,i)}function s(){n._matchCompositeOperation(t,i)}t._originalForNavigator=i,n._matchBounds(t,i,!0),n._matchOpacity(t,i),n._matchCompositeOperation(t,i),i.addHandler("bounds-change",r),i.addHandler("clip-change",r),i.addHandler("opacity-change",o),i.addHandler("composite-operation-change",s)}});return e.Viewer.prototype.addTiledImage.apply(this,[r])},destroy:function(){return e.Viewer.prototype.destroy.apply(this)},_getMatchingItem:function(e){for(var t,n=this.world.getItemCount(),i=0;i<n;i++)if(t=this.world.getItemAt(i),t._originalForNavigator===e)return t;return null},_matchBounds:function(e,t,n){var i=t.getBoundsNoRotate();e.setPosition(i.getTopLeft(),n),e.setWidth(i.width,n),e.setRotation(t.getRotation(),n),e.setClip(t.getClip()),e.setFlip(t.getFlip())},_matchOpacity:function(e,t){e.setOpacity(t.opacity)},_matchCompositeOperation:function(e,t){e.setCompositeOperation(t.compositeOperation)}})}(s),function(e){var t={Errors:{Dzc:"Sorry, we don't support Deep Zoom Collections!",Dzi:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",Xml:"Hmm, this doesn't appear to be a valid Deep Zoom Image.",ImageFormat:"Sorry, we don't support {0}-based Deep Zoom Images.",Security:"It looks like a security restriction stopped us from loading this Deep Zoom Image.",Status:"This space unintentionally left blank ({0} {1}).",OpenFailed:"Unable to open {0}: {1}"},Tooltips:{FullPage:"Toggle full page",Home:"Go home",ZoomIn:"Zoom in",ZoomOut:"Zoom out",NextPage:"Next page",PreviousPage:"Previous page",RotateLeft:"Rotate left",RotateRight:"Rotate right",Flip:"Flip Horizontally"}};e.extend(e,{getString:function(n){var i,r=n.split("."),o=null,s=arguments,a=t;for(i=0;i<r.length-1;i++)a=a[r[i]]||{};return o=a[r[i]],"string"!==typeof o&&(e.console.error("Untranslated source string:",n),o=""),o.replace(/\{\d+\}/g,(function(e){var t=parseInt(e.match(/\d+/),10)+1;return t<s.length?s[t]:""}))},setString:function(e,n){var i,r=e.split("."),o=t;for(i=0;i<r.length-1;i++)o[r[i]]||(o[r[i]]={}),o=o[r[i]];o[r[i]]=n}})}(s),function(e){e.Point=function(e,t){this.x="number"===typeof e?e:0,this.y="number"===typeof t?t:0},e.Point.prototype={clone:function(){return new e.Point(this.x,this.y)},plus:function(t){return new e.Point(this.x+t.x,this.y+t.y)},minus:function(t){return new e.Point(this.x-t.x,this.y-t.y)},times:function(t){return new e.Point(this.x*t,this.y*t)},divide:function(t){return new e.Point(this.x/t,this.y/t)},negate:function(){return new e.Point(-this.x,-this.y)},distanceTo:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},squaredDistanceTo:function(e){return Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2)},apply:function(t){return new e.Point(t(this.x),t(this.y))},equals:function(t){return t instanceof e.Point&&this.x===t.x&&this.y===t.y},rotate:function(t,n){var i,r;if(n=n||new e.Point(0,0),t%90===0){var o=e.positiveModulo(t,360);switch(o){case 0:i=1,r=0;break;case 90:i=0,r=1;break;case 180:i=-1,r=0;break;case 270:i=0,r=-1;break}}else{var s=t*Math.PI/180;i=Math.cos(s),r=Math.sin(s)}var a=i*(this.x-n.x)-r*(this.y-n.y)+n.x,l=r*(this.x-n.x)+i*(this.y-n.y)+n.y;return new e.Point(a,l)},toString:function(){return"("+Math.round(100*this.x)/100+","+Math.round(100*this.y)/100+")"}}}(s),function(e){function t(t){var n,i,r=t.responseText,o=t.status;if(!t)throw new Error(e.getString("Errors.Security"));if(200!==t.status&&0!==t.status)throw o=t.status,n=404===o?"Not Found":t.statusText,new Error(e.getString("Errors.Status",o,n));if(r.match(/\s*<.*/))try{i=t.responseXML&&t.responseXML.documentElement?t.responseXML:e.parseXml(r)}catch(s){i=t.responseText}else if(r.match(/\s*[{[].*/))try{i=e.parseJSON(r)}catch(s){i=r}else i=r;return i}e.TileSource=function(t,n,i,r,o,s){var a,l,c=this,u=arguments;if(a=e.isPlainObject(t)?t:{width:u[0],height:u[1],tileSize:u[2],tileOverlap:u[3],minLevel:u[4],maxLevel:u[5]},e.EventSource.call(this),e.extend(!0,this,a),!this.success)for(l=0;l<arguments.length;l++)if(e.isFunction(arguments[l])){this.success=arguments[l];break}this.success&&this.addHandler("ready",(function(e){c.success(e)})),"string"===e.type(arguments[0])&&(this.url=arguments[0]),this.url?(this.aspectRatio=1,this.dimensions=new e.Point(10,10),this._tileWidth=0,this._tileHeight=0,this.tileOverlap=0,this.minLevel=0,this.maxLevel=0,this.ready=!1,this.getImageInfo(this.url)):(this.ready=!0,this.aspectRatio=a.width&&a.height?a.width/a.height:1,this.dimensions=new e.Point(a.width,a.height),this.tileSize?(this._tileWidth=this._tileHeight=this.tileSize,delete this.tileSize):(this.tileWidth?(this._tileWidth=this.tileWidth,delete this.tileWidth):this._tileWidth=0,this.tileHeight?(this._tileHeight=this.tileHeight,delete this.tileHeight):this._tileHeight=0),this.tileOverlap=a.tileOverlap?a.tileOverlap:0,this.minLevel=a.minLevel?a.minLevel:0,this.maxLevel=void 0!==a.maxLevel&&null!==a.maxLevel?a.maxLevel:a.width&&a.height?Math.ceil(Math.log(Math.max(a.width,a.height))/Math.log(2)):0,this.success&&e.isFunction(this.success)&&this.success(this))},e.TileSource.prototype={getTileSize:function(t){return e.console.error("[TileSource.getTileSize] is deprecated. Use TileSource.getTileWidth() and TileSource.getTileHeight() instead"),this._tileWidth},getTileWidth:function(e){return this._tileWidth?this._tileWidth:this.getTileSize(e)},getTileHeight:function(e){return this._tileHeight?this._tileHeight:this.getTileSize(e)},setMaxLevel:function(e){this.maxLevel=e,this._memoizeLevelScale()},getLevelScale:function(e){return this._memoizeLevelScale(),this.getLevelScale(e)},_memoizeLevelScale:function(){var e,t={};for(e=0;e<=this.maxLevel;e++)t[e]=1/Math.pow(2,this.maxLevel-e);this.getLevelScale=function(e){return t[e]}},getNumTiles:function(t){var n=this.getLevelScale(t),i=Math.ceil(n*this.dimensions.x/this.getTileWidth(t)),r=Math.ceil(n*this.dimensions.y/this.getTileHeight(t));return new e.Point(i,r)},getPixelRatio:function(t){var n=this.dimensions.times(this.getLevelScale(t)),i=1/n.x*e.pixelDensityRatio,r=1/n.y*e.pixelDensityRatio;return new e.Point(i,r)},getClosestLevel:function(){var e,t;for(e=this.minLevel+1;e<=this.maxLevel;e++)if(t=this.getNumTiles(e),t.x>1||t.y>1)break;return e-1},getTileAtPoint:function(t,n){var i=n.x>=0&&n.x<=1&&n.y>=0&&n.y<=1/this.aspectRatio;e.console.assert(i,"[TileSource.getTileAtPoint] must be called with a valid point.");var r=this.dimensions.x*this.getLevelScale(t),o=n.x*r,s=n.y*r,a=Math.floor(o/this.getTileWidth(t)),l=Math.floor(s/this.getTileHeight(t));n.x>=1&&(a=this.getNumTiles(t).x-1);var c=1e-15;return n.y>=1/this.aspectRatio-c&&(l=this.getNumTiles(t).y-1),new e.Point(a,l)},getTileBounds:function(t,n,i,r){var o=this.dimensions.times(this.getLevelScale(t)),s=this.getTileWidth(t),a=this.getTileHeight(t),l=0===n?0:s*n-this.tileOverlap,c=0===i?0:a*i-this.tileOverlap,u=s+(0===n?1:2)*this.tileOverlap,h=a+(0===i?1:2)*this.tileOverlap,d=1/o.x;return u=Math.min(u,o.x-l),h=Math.min(h,o.y-c),r?new e.Rect(0,0,u,h):new e.Rect(l*d,c*d,u*d,h*d)},getImageInfo:function(n){var i,r,o,s,a,l,c,u=this;n&&(a=n.split("/"),l=a[a.length-1],c=l.lastIndexOf("."),c>-1&&(a[a.length-1]=l.slice(0,c)));var h=null;if(this.splitHashDataForPost){var d=n.indexOf("#");-1!==d&&(h=n.substring(d+1),n=n.substr(0,d))}r=function(t){"string"===typeof t&&(t=e.parseXml(t));var i=e.TileSource.determineType(u,t,n);i?(s=i.prototype.configure.apply(u,[t,n,h]),void 0===s.ajaxWithCredentials&&(s.ajaxWithCredentials=u.ajaxWithCredentials),o=new i(s),u.ready=!0,u.raiseEvent("ready",{tileSource:o})):u.raiseEvent("open-failed",{message:"Unable to load TileSource",source:n})},n.match(/\.js$/)?(i=n.split("/").pop().replace(".js",""),e.jsonp({url:n,async:!1,callbackName:i,callback:r})):e.makeAjaxRequest({url:n,postData:h,withCredentials:this.ajaxWithCredentials,headers:this.ajaxHeaders,success:function(e){var n=t(e);r(n)},error:function(t,i){var r;try{r="HTTP "+t.status+" attempting to load TileSource: "+n}catch(s){var o;o="undefined"!==typeof i&&i.toString?i.toString():"Unknown error",r=o+" attempting to load TileSource: "+n}e.console.error(r),u.raiseEvent("open-failed",{message:r,source:n,postData:h})}})},supports:function(e,t){return!1},configure:function(e,t,n){throw new Error("Method not implemented.")},getTileUrl:function(e,t,n){throw new Error("Method not implemented.")},getTilePostData:function(e,t,n){return null},getTileAjaxHeaders:function(e,t,n){return{}},getTileHashKey:function(e,t,n,i,r,o){function s(e){return r?e+"+"+JSON.stringify(r):e}return s("string"!==typeof i?e+"/"+t+"_"+n:i)},tileExists:function(e,t,n){var i=this.getNumTiles(e);return e>=this.minLevel&&e<=this.maxLevel&&t>=0&&n>=0&&t<i.x&&n<i.y},hasTransparency:function(e,t,n,i){return!!e||t.match(".png")},downloadTileStart:function(t){var n=t.userData,i=new Image;n.image=i,n.request=null;var r=function(e){i?(i.onload=i.onerror=i.onabort=null,t.finish(e?null:i,n.request,e)):t.finish(null,n.request,"Image load failed: undefined Image instance.")};i.onload=function(){r()},i.onabort=i.onerror=function(){r("Image load aborted.")},t.loadWithAjax?n.request=e.makeAjaxRequest({url:t.src,withCredentials:t.ajaxWithCredentials,headers:t.ajaxHeaders,responseType:"arraybuffer",postData:t.postData,success:function(e){var t;try{t=new window.Blob([e.response])}catch(s){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if("TypeError"===s.name&&n){var o=new n;o.append(e.response),t=o.getBlob()}}0===t.size?r("Empty image response."):i.src=(window.URL||window.webkitURL).createObjectURL(t)},error:function(e){r("Image load aborted - XHR error")}}):(!1!==t.crossOriginPolicy&&(i.crossOrigin=t.crossOriginPolicy),i.src=t.src)},downloadTileAbort:function(e){e.userData.request&&e.userData.request.abort();var t=e.userData.image;e.userData.image&&(t.onload=t.onerror=t.onabort=null)},createTileCache:function(e,t,n){e._data=t},destroyTileCache:function(e){e._data=null,e._renderedContext=null},getTileCacheData:function(e){return e._data},getTileCacheDataAsImage:function(e){return e._data},getTileCacheDataAsContext2D:function(e){if(!e._renderedContext){var t=document.createElement("canvas");t.width=e._data.width,t.height=e._data.height,e._renderedContext=t.getContext("2d"),e._renderedContext.drawImage(e._data,0,0),e._data=null}return e._renderedContext}},e.extend(!0,e.TileSource.prototype,e.EventSource.prototype),e.TileSource.determineType=function(t,n,i){var r;for(r in s)if(r.match(/.+TileSource$/)&&e.isFunction(s[r])&&e.isFunction(s[r].prototype.supports)&&s[r].prototype.supports.call(t,n,i))return s[r];return e.console.error("No TileSource was able to open %s %s",i,n),null}}(s),function(e){function t(t,i){if(!i||!i.documentElement)throw new Error(e.getString("Errors.Xml"));var r,o,s,a,l,c=i.documentElement,u=c.localName||c.tagName,h=i.documentElement.namespaceURI,d=null,f=[];if("Image"===u)try{if(a=c.getElementsByTagName("Size")[0],void 0===a&&(a=c.getElementsByTagNameNS(h,"Size")[0]),d={Image:{xmlns:"http://schemas.microsoft.com/deepzoom/2008",Url:c.getAttribute("Url"),Format:c.getAttribute("Format"),DisplayRect:null,Overlap:parseInt(c.getAttribute("Overlap"),10),TileSize:parseInt(c.getAttribute("TileSize"),10),Size:{Height:parseInt(a.getAttribute("Height"),10),Width:parseInt(a.getAttribute("Width"),10)}}},!e.imageFormatSupported(d.Image.Format))throw new Error(e.getString("Errors.ImageFormat",d.Image.Format.toUpperCase()));for(r=c.getElementsByTagName("DisplayRect"),void 0===r&&(r=c.getElementsByTagNameNS(h,"DisplayRect")[0]),l=0;l<r.length;l++)o=r[l],s=o.getElementsByTagName("Rect")[0],void 0===s&&(s=o.getElementsByTagNameNS(h,"Rect")[0]),f.push({Rect:{X:parseInt(s.getAttribute("X"),10),Y:parseInt(s.getAttribute("Y"),10),Width:parseInt(s.getAttribute("Width"),10),Height:parseInt(s.getAttribute("Height"),10),MinLevel:parseInt(o.getAttribute("MinLevel"),10),MaxLevel:parseInt(o.getAttribute("MaxLevel"),10)}});return f.length&&(d.Image.DisplayRect=f),n(t,d)}catch(m){throw m instanceof Error?m:new Error(e.getString("Errors.Dzi"))}else{if("Collection"===u)throw new Error(e.getString("Errors.Dzc"));if("Error"===u){var p=c.getElementsByTagName("Message")[0],g=p.firstChild.nodeValue;throw new Error(g)}}throw new Error(e.getString("Errors.Dzi"))}function n(t,n){var i,r,o=n.Image,s=o.Url,a=o.Format,l=o.Size,c=o.DisplayRect||[],u=parseInt(l.Width,10),h=parseInt(l.Height,10),d=parseInt(o.TileSize,10),f=parseInt(o.Overlap,10),p=[];for(r=0;r<c.length;r++)i=c[r].Rect,p.push(new e.DisplayRect(parseInt(i.X,10),parseInt(i.Y,10),parseInt(i.Width,10),parseInt(i.Height,10),parseInt(i.MinLevel,10),parseInt(i.MaxLevel,10)));return e.extend(!0,{width:u,height:h,tileSize:d,tileOverlap:f,minLevel:null,maxLevel:null,tilesUrl:s,fileFormat:a,displayRects:p},n)}e.DziTileSource=function(t,n,i,r,o,s,a,l,c){var u,h,d,f;if(f=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4],fileFormat:arguments[5],displayRects:arguments[6],minLevel:arguments[7],maxLevel:arguments[8]},this._levelRects={},this.tilesUrl=f.tilesUrl,this.fileFormat=f.fileFormat,this.displayRects=f.displayRects,this.displayRects)for(u=this.displayRects.length-1;u>=0;u--)for(h=this.displayRects[u],d=h.minLevel;d<=h.maxLevel;d++)this._levelRects[d]||(this._levelRects[d]=[]),this._levelRects[d].push(h);e.TileSource.apply(this,[f])},e.extend(e.DziTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){var n;return e.Image?n=e.Image.xmlns:e.documentElement&&("Image"!==e.documentElement.localName&&"Image"!==e.documentElement.tagName||(n=e.documentElement.namespaceURI)),n=(n||"").toLowerCase(),-1!==n.indexOf("schemas.microsoft.com/deepzoom/2008")||-1!==n.indexOf("schemas.microsoft.com/deepzoom/2009")},configure:function(i,r,o){var s;return s=e.isPlainObject(i)?n(this,i):t(this,i),r&&!s.tilesUrl&&(s.tilesUrl=r.replace(/([^/]+?)(\.(dzi|xml|js)?(\?[^/]*)?)?\/?$/,"$1_files/"),-1!==r.search(/\.(dzi|xml|js)\?/)?s.queryParams=r.match(/\?.*/):s.queryParams=""),s},getTileUrl:function(e,t,n){return[this.tilesUrl,e,"/",t,"_",n,".",this.fileFormat,this.queryParams].join("")},tileExists:function(e,t,n){var i,r,o,s,a,l,c,u=this._levelRects[e];if(this.minLevel&&e<this.minLevel||this.maxLevel&&e>this.maxLevel)return!1;if(!u||!u.length)return!0;for(c=u.length-1;c>=0;c--)if(i=u[c],!(e<i.minLevel||e>i.maxLevel)&&(r=this.getLevelScale(e),o=i.x*r,s=i.y*r,a=o+i.width*r,l=s+i.height*r,o=Math.floor(o/this._tileWidth),s=Math.floor(s/this._tileWidth),a=Math.ceil(a/this._tileWidth),l=Math.ceil(l/this._tileWidth),o<=t&&t<a&&s<=n&&n<l))return!0;return!1}})}(s),function(e){function t(e){var t=["http://library.stanford.edu/iiif/image-api/compliance.html#level0","http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0","http://iiif.io/api/image/2/level0.json","level0","https://iiif.io/api/image/3/level0.json"],n=Array.isArray(e.profile)?e.profile[0]:e.profile,i=-1!==t.indexOf(n),r=!1;return 2===e.version&&e.profile.length>1&&e.profile[1].supports&&(r=-1!==e.profile[1].supports.indexOf("sizeByW")),3===e.version&&e.extraFeatures&&(r=-1!==e.extraFeatures.indexOf("sizeByWh")),!i||r}function n(e){for(var t=[],n=0;n<e.sizes.length;n++)t.push({url:e._id+"/full/"+e.sizes[n].width+","+(3===e.version?e.sizes[n].height:"")+"/0/default."+e.tileFormat,width:e.sizes[n].width,height:e.sizes[n].height});return t.sort((function(e,t){return e.width-t.width}))}function i(t){if(!t||!t.documentElement)throw new Error(e.getString("Errors.Xml"));var n=t.documentElement,i=n.tagName,o=null;if("info"===i)try{return o={},r(n,o),o}catch(s){throw s instanceof Error?s:new Error(e.getString("Errors.IIIF"))}throw new Error(e.getString("Errors.IIIF"))}function r(t,n,i){var o,s;if(3===t.nodeType&&i)s=t.nodeValue.trim(),s.match(/^\d*$/)&&(s=Number(s)),n[i]?(e.isArray(n[i])||(n[i]=[n[i]]),n[i].push(s)):n[i]=s;else if(1===t.nodeType)for(o=0;o<t.childNodes.length;o++)r(t.childNodes[o],n,t.nodeName)}e.IIIFTileSource=function(i){if(e.extend(!0,this,i),this._id=this["@id"]||this["id"]||this["identifier"]||null,!(this.height&&this.width&&this._id))throw new Error("IIIF required parameters (width, height, or id) not provided.");if(i.tileSizePerScaleFactor={},this.tileFormat=this.tileFormat||"jpg",this.version=i.version,this.tile_width&&this.tile_height)i.tileWidth=this.tile_width,i.tileHeight=this.tile_height;else if(this.tile_width)i.tileSize=this.tile_width;else if(this.tile_height)i.tileSize=this.tile_height;else if(this.tiles)if(1===this.tiles.length)i.tileWidth=this.tiles[0].width,i.tileHeight=this.tiles[0].height||this.tiles[0].width,this.scale_factors=this.tiles[0].scaleFactors;else{this.scale_factors=[];for(var r=0;r<this.tiles.length;r++)for(var o=0;o<this.tiles[r].scaleFactors.length;o++){var s=this.tiles[r].scaleFactors[o];this.scale_factors.push(s),i.tileSizePerScaleFactor[s]={width:this.tiles[r].width,height:this.tiles[r].height||this.tiles[r].width}}}else if(t(i)){for(var a=Math.min(this.height,this.width),l=[256,512,1024],c=[],u=0;u<l.length;u++)l[u]<=a&&c.push(l[u]);c.length>0?i.tileSize=Math.max.apply(null,c):i.tileSize=a}else this.sizes&&this.sizes.length>0?(this.emulateLegacyImagePyramid=!0,i.levels=n(this),e.extend(!0,i,{width:i.levels[i.levels.length-1].width,height:i.levels[i.levels.length-1].height,tileSize:Math.max(i.height,i.width),tileOverlap:0,minLevel:0,maxLevel:i.levels.length-1}),this.levels=i.levels):e.console.error("Nothing in the info.json to construct image pyramids from");if(!i.maxLevel&&!this.emulateLegacyImagePyramid)if(this.scale_factors){var h=Math.max.apply(null,this.scale_factors);i.maxLevel=Math.round(Math.log(h)*Math.LOG2E)}else i.maxLevel=Number(Math.round(Math.log(Math.max(this.width,this.height),2)));e.TileSource.apply(this,[i])},e.extend(e.IIIFTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return!(!e.protocol||"http://iiif.io/api/image"!==e.protocol)||(!(!e["@context"]||"http://library.stanford.edu/iiif/image-api/1.1/context.json"!==e["@context"]&&"http://iiif.io/api/image/1/context.json"!==e["@context"])||(!(!e.profile||0!==e.profile.indexOf("http://library.stanford.edu/iiif/image-api/compliance.html"))||(!!(e.identifier&&e.width&&e.height)||!(!e.documentElement||"info"!==e.documentElement.tagName||"http://library.stanford.edu/iiif/image-api/ns/"!==e.documentElement.namespaceURI))))},configure:function(t,n,r){if(e.isPlainObject(t)){if(t["@context"]){var o=t["@context"];if(Array.isArray(o))for(var a=0;a<o.length;a++)if("string"===typeof o[a]&&(/^http:\/\/iiif\.io\/api\/image\/[1-3]\/context\.json$/.test(o[a])||"http://library.stanford.edu/iiif/image-api/1.1/context.json"===o[a])){o=o[a];break}switch(o){case"http://iiif.io/api/image/1/context.json":case"http://library.stanford.edu/iiif/image-api/1.1/context.json":t.version=1;break;case"http://iiif.io/api/image/2/context.json":t.version=2;break;case"http://iiif.io/api/image/3/context.json":t.version=3;break;default:e.console.error("Data has a @context property which contains no known IIIF context URI.")}}else t["@context"]="http://iiif.io/api/image/1.0/context.json",t["@id"]=n.replace("/info.json",""),t.version=1;if(t.preferredFormats)for(var l=0;l<t.preferredFormats.length;l++)if(s.imageFormatSupported(t.preferredFormats[l])){t.tileFormat=t.preferredFormats[l];break}return t}var c=i(t);return c["@context"]="http://iiif.io/api/image/1.0/context.json",c["@id"]=n.replace("/info.xml",""),c.version=1,c},getTileWidth:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileWidth.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].width:this._tileWidth},getTileHeight:function(t){if(this.emulateLegacyImagePyramid)return e.TileSource.prototype.getTileHeight.call(this,t);var n=Math.pow(2,this.maxLevel-t);return this.tileSizePerScaleFactor&&this.tileSizePerScaleFactor[n]?this.tileSizePerScaleFactor[n].height:this._tileHeight},getLevelScale:function(t){if(this.emulateLegacyImagePyramid){var n=NaN;return this.levels.length>0&&t>=this.minLevel&&t<=this.maxLevel&&(n=this.levels[t].width/this.levels[this.maxLevel].width),n}return e.TileSource.prototype.getLevelScale.call(this,t)},getNumTiles:function(t){if(this.emulateLegacyImagePyramid){var n=this.getLevelScale(t);return n?new e.Point(1,1):new e.Point(0,0)}return e.TileSource.prototype.getNumTiles.call(this,t)},getTileAtPoint:function(t,n){return this.emulateLegacyImagePyramid?new e.Point(0,0):e.TileSource.prototype.getTileAtPoint.call(this,t,n)},getTileUrl:function(e,t,n){if(this.emulateLegacyImagePyramid){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}var r,o,s,a,l,c,u,h,d,f,p,g,m,v,y="0",b=Math.pow(.5,this.maxLevel-e),w=Math.round(this.width*b),x=Math.round(this.height*b);return r=this.getTileWidth(e),o=this.getTileHeight(e),s=Math.round(r/b),a=Math.round(o/b),m=1===this.version?"native."+this.tileFormat:"default."+this.tileFormat,w<r&&x<o?(f=2===this.version&&w===this.width?"full":3===this.version&&w===this.width&&x===this.height?"max":3===this.version?w+","+x:w+",",l="full"):(c=t*s,u=n*a,h=Math.min(s,this.width-c),d=Math.min(a,this.height-u),l=0===t&&0===n&&h===this.width&&d===this.height?"full":[c,u,h,d].join(","),p=Math.round(h*b),g=Math.round(d*b),f=2===this.version&&p===this.width?"full":3===this.version&&p===this.width&&g===this.height?"max":3===this.version?p+","+g:p+","),v=[this._id,l,f,y,m].join("/"),v},__testonly__:{canBeTiled:t,constructLevels:n}})}(s),function(e){e.OsmTileSource=function(t,n,i,r,o){var s;s=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]},s.width&&s.height||(s.width=65572864,s.height=65572864),s.tileSize||(s.tileSize=256,s.tileOverlap=0),s.tilesUrl||(s.tilesUrl="http://tile.openstreetmap.org/"),s.minLevel=8,e.TileSource.apply(this,[s])},e.extend(e.OsmTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"openstreetmaps"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){return this.tilesUrl+(e-8)+"/"+t+"/"+n+".png"}})}(s),function(e){e.TmsTileSource=function(t,n,i,r,o){var s;s=e.isPlainObject(t)?t:{width:arguments[0],height:arguments[1],tileSize:arguments[2],tileOverlap:arguments[3],tilesUrl:arguments[4]};var a,l=256*Math.ceil(s.width/256),c=256*Math.ceil(s.height/256);a=l>c?l/256:c/256,s.maxLevel=Math.ceil(Math.log(a)/Math.log(2))-1,s.tileSize=256,s.width=l,s.height=c,e.TileSource.apply(this,[s])},e.extend(e.TmsTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"tiledmapservice"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){var i=this.getNumTiles(e).y-1;return this.tilesUrl+e+"/"+t+"/"+(i-n)+".png"}})}(s),function(e){e.ZoomifyTileSource=function(e){"undefined"===typeof e.tileSize&&(e.tileSize=256),"undefined"===typeof e.fileFormat&&(e.fileFormat="jpg",this.fileFormat=e.fileFormat);var t={x:e.width,y:e.height};e.imageSizes=[{x:e.width,y:e.height}],e.gridSize=[this._getGridSize(e.width,e.height,e.tileSize)];while(parseInt(t.x,10)>e.tileSize||parseInt(t.y,10)>e.tileSize)t.x=Math.floor(t.x/2),t.y=Math.floor(t.y/2),e.imageSizes.push({x:t.x,y:t.y}),e.gridSize.push(this._getGridSize(t.x,t.y,e.tileSize));e.imageSizes.reverse(),e.gridSize.reverse(),e.minLevel=0,e.maxLevel=e.gridSize.length-1,s.TileSource.apply(this,[e])},e.extend(e.ZoomifyTileSource.prototype,e.TileSource.prototype,{_getGridSize:function(e,t,n){return{x:Math.ceil(e/n),y:Math.ceil(t/n)}},_calculateAbsoluteTileNumber:function(e,t,n){for(var i=0,r={},o=0;o<e;o++)r=this.gridSize[o],i+=r.x*r.y;return r=this.gridSize[e],i+=r.x*n+t,i},supports:function(e,t){return e.type&&"zoomifytileservice"===e.type},configure:function(e,t,n){return e},getTileUrl:function(e,t,n){var i=0,r=this._calculateAbsoluteTileNumber(e,t,n);return i=Math.floor(r/256),this.tilesUrl+"TileGroup"+i+"/"+e+"-"+t+"-"+n+"."+this.fileFormat}})}(s),function(e){function t(t){var n,i,r=[];for(i=0;i<t.length;i++)n=t[i],n.height&&n.width&&n.url?r.push({url:n.url,width:Number(n.width),height:Number(n.height)}):e.console.error("Unsupported image format: %s",n.url?n.url:"<no URL>");return r.sort((function(e,t){return e.height-t.height}))}function n(t,n){if(!n||!n.documentElement)throw new Error(e.getString("Errors.Xml"));var r,o,s=n.documentElement,a=s.tagName,l=null,c=[];if("image"===a)try{for(l={type:s.getAttribute("type"),levels:[]},c=s.getElementsByTagName("level"),o=0;o<c.length;o++)r=c[o],l.levels.push({url:r.getAttribute("url"),width:parseInt(r.getAttribute("width"),10),height:parseInt(r.getAttribute("height"),10)});return i(t,l)}catch(u){throw u instanceof Error?u:new Error("Unknown error parsing Legacy Image Pyramid XML.")}else{if("collection"===a)throw new Error("Legacy Image Pyramid Collections not yet supported.");if("error"===a)throw new Error("Error: "+n)}throw new Error("Unknown element "+a)}function i(e,t){return t.levels}e.LegacyTileSource=function(n){var i,r,o;e.isArray(n)&&(i={type:"legacy-image-pyramid",levels:n}),i.levels=t(i.levels),i.levels.length>0?(r=i.levels[i.levels.length-1].width,o=i.levels[i.levels.length-1].height):(r=0,o=0,e.console.error("No supported image formats found")),e.extend(!0,i,{width:r,height:o,tileSize:Math.max(o,r),tileOverlap:0,minLevel:0,maxLevel:i.levels.length>0?i.levels.length-1:0}),e.TileSource.apply(this,[i]),this.levels=i.levels},e.extend(e.LegacyTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"legacy-image-pyramid"===e.type||e.documentElement&&"legacy-image-pyramid"===e.documentElement.getAttribute("type")},configure:function(t,r,o){var s;return s=e.isPlainObject(t)?i(this,t):n(this,t),s},getLevelScale:function(e){var t=NaN;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){var n=this.getLevelScale(t);return n?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var i=null;return this.levels.length>0&&e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i}})}(s),function(e){e.ImageTileSource=function(t){t=e.extend({buildPyramid:!0,crossOriginPolicy:!1,ajaxWithCredentials:!1,useCanvas:!0},t),e.TileSource.apply(this,[t])},e.extend(e.ImageTileSource.prototype,e.TileSource.prototype,{supports:function(e,t){return e.type&&"image"===e.type},configure:function(e,t,n){return e},getImageInfo:function(t){var n=this._image=new Image,i=this;this.crossOriginPolicy&&(n.crossOrigin=this.crossOriginPolicy),this.ajaxWithCredentials&&(n.useCredentials=this.ajaxWithCredentials),e.addEvent(n,"load",(function(){i.width=n.naturalWidth,i.height=n.naturalHeight,i.aspectRatio=i.width/i.height,i.dimensions=new e.Point(i.width,i.height),i._tileWidth=i.width,i._tileHeight=i.height,i.tileOverlap=0,i.minLevel=0,i.levels=i._buildLevels(),i.maxLevel=i.levels.length-1,i.ready=!0,i.raiseEvent("ready",{tileSource:i})})),e.addEvent(n,"error",(function(){i.raiseEvent("open-failed",{message:"Error loading image at "+t,source:t})})),n.src=t},getLevelScale:function(e){var t=NaN;return e>=this.minLevel&&e<=this.maxLevel&&(t=this.levels[e].width/this.levels[this.maxLevel].width),t},getNumTiles:function(t){var n=this.getLevelScale(t);return n?new e.Point(1,1):new e.Point(0,0)},getTileUrl:function(e,t,n){var i=null;return e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].url),i},getContext2D:function(e,t,n){var i=null;return e>=this.minLevel&&e<=this.maxLevel&&(i=this.levels[e].context2D),i},destroy:function(){this._freeupCanvasMemory()},_buildLevels:function(){var t=[{url:this._image.src,width:this._image.naturalWidth,height:this._image.naturalHeight}];if(!this.buildPyramid||!e.supportsCanvas||!this.useCanvas)return delete this._image,t;var n=this._image.naturalWidth,i=this._image.naturalHeight,r=document.createElement("canvas"),o=r.getContext("2d");if(r.width=n,r.height=i,o.drawImage(this._image,0,0,n,i),t[0].context2D=o,delete this._image,e.isCanvasTainted(r))return t;while(n>=2&&i>=2){n=Math.floor(n/2),i=Math.floor(i/2);var s=document.createElement("canvas"),a=s.getContext("2d");s.width=n,s.height=i,a.drawImage(r,0,0,n,i),t.splice(0,0,{context2D:a,width:n,height:i}),r=s,o=a}return t},_freeupCanvasMemory:function(){for(var e=0;e<this.levels.length;e++)this.levels[e].context2D&&(this.levels[e].context2D.canvas.height=0,this.levels[e].context2D.canvas.width=0)}})}(s),function(e){e.TileSourceCollection=function(t,n,i,r){e.console.error("TileSourceCollection is deprecated; use World instead")}}(s),function(e){function t(t){e.requestAnimationFrame((function(){n(t)}))}function n(n){var i,r,o;n.shouldFade&&(i=e.now(),r=i-n.fadeBeginTime,o=1-r/n.fadeLength,o=Math.min(1,o),o=Math.max(0,o),n.imgGroup&&e.setElementOpacity(n.imgGroup,o,!0),o>0&&t(n))}function i(n){n.shouldFade=!0,n.fadeBeginTime=e.now()+n.fadeDelay,window.setTimeout((function(){t(n)}),n.fadeDelay)}function r(t){t.shouldFade=!1,t.imgGroup&&e.setElementOpacity(t.imgGroup,1,!0)}function o(t,n){t.element.disabled||(n>=e.ButtonState.GROUP&&t.currentState===e.ButtonState.REST&&(r(t),t.currentState=e.ButtonState.GROUP),n>=e.ButtonState.HOVER&&t.currentState===e.ButtonState.GROUP&&(t.imgHover&&(t.imgHover.style.visibility=""),t.currentState=e.ButtonState.HOVER),n>=e.ButtonState.DOWN&&t.currentState===e.ButtonState.HOVER&&(t.imgDown&&(t.imgDown.style.visibility=""),t.currentState=e.ButtonState.DOWN))}function s(t,n){t.element.disabled||(n<=e.ButtonState.HOVER&&t.currentState===e.ButtonState.DOWN&&(t.imgDown&&(t.imgDown.style.visibility="hidden"),t.currentState=e.ButtonState.HOVER),n<=e.ButtonState.GROUP&&t.currentState===e.ButtonState.HOVER&&(t.imgHover&&(t.imgHover.style.visibility="hidden"),t.currentState=e.ButtonState.GROUP),n<=e.ButtonState.REST&&t.currentState===e.ButtonState.GROUP&&(i(t),t.currentState=e.ButtonState.REST))}e.ButtonState={REST:0,GROUP:1,HOVER:2,DOWN:3},e.Button=function(t){var n=this;e.EventSource.call(this),e.extend(!0,this,{tooltip:null,srcRest:null,srcGroup:null,srcHover:null,srcDown:null,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,fadeDelay:0,fadeLength:2e3,onPress:null,onRelease:null,onClick:null,onEnter:null,onExit:null,onFocus:null,onBlur:null,userData:null},t),this.element=t.element||e.makeNeutralElement("div"),t.element||(this.imgRest=e.makeTransparentImage(this.srcRest),this.imgGroup=e.makeTransparentImage(this.srcGroup),this.imgHover=e.makeTransparentImage(this.srcHover),this.imgDown=e.makeTransparentImage(this.srcDown),this.imgRest.alt=this.imgGroup.alt=this.imgHover.alt=this.imgDown.alt=this.tooltip,e.setElementPointerEventsNone(this.imgRest),e.setElementPointerEventsNone(this.imgGroup),e.setElementPointerEventsNone(this.imgHover),e.setElementPointerEventsNone(this.imgDown),this.element.style.position="relative",e.setElementTouchActionNone(this.element),this.imgGroup.style.position=this.imgHover.style.position=this.imgDown.style.position="absolute",this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top="0px",this.imgGroup.style.left=this.imgHover.style.left=this.imgDown.style.left="0px",this.imgHover.style.visibility=this.imgDown.style.visibility="hidden",e.Browser.vendor===e.BROWSERS.FIREFOX&&e.Browser.version<3&&(this.imgGroup.style.top=this.imgHover.style.top=this.imgDown.style.top=""),this.element.appendChild(this.imgRest),this.element.appendChild(this.imgGroup),this.element.appendChild(this.imgHover),this.element.appendChild(this.imgDown)),this.addHandler("press",this.onPress),this.addHandler("release",this.onRelease),this.addHandler("click",this.onClick),this.addHandler("enter",this.onEnter),this.addHandler("exit",this.onExit),this.addHandler("focus",this.onFocus),this.addHandler("blur",this.onBlur),this.currentState=e.ButtonState.GROUP,this.fadeBeginTime=null,this.shouldFade=!1,this.element.style.display="inline-block",this.element.style.position="relative",this.element.title=this.tooltip,this.tracker=new e.MouseTracker({userData:"Button.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(t){t.insideElementPressed?(o(n,e.ButtonState.DOWN),n.raiseEvent("enter",{originalEvent:t.originalEvent})):t.buttonDownAny||o(n,e.ButtonState.HOVER)},focusHandler:function(e){n.tracker.enterHandler(e),n.raiseEvent("focus",{originalEvent:e.originalEvent})},leaveHandler:function(t){s(n,e.ButtonState.GROUP),t.insideElementPressed&&n.raiseEvent("exit",{originalEvent:t.originalEvent})},blurHandler:function(e){n.tracker.leaveHandler(e),n.raiseEvent("blur",{originalEvent:e.originalEvent})},pressHandler:function(t){o(n,e.ButtonState.DOWN),n.raiseEvent("press",{originalEvent:t.originalEvent})},releaseHandler:function(t){t.insideElementPressed&&t.insideElementReleased?(s(n,e.ButtonState.HOVER),n.raiseEvent("release",{originalEvent:t.originalEvent})):t.insideElementPressed?s(n,e.ButtonState.GROUP):o(n,e.ButtonState.HOVER)},clickHandler:function(e){e.quick&&n.raiseEvent("click",{originalEvent:e.originalEvent})},keyHandler:function(e){13===e.keyCode?(n.raiseEvent("click",{originalEvent:e.originalEvent}),n.raiseEvent("release",{originalEvent:e.originalEvent}),e.preventDefault=!0):e.preventDefault=!1}}),s(this,e.ButtonState.REST)},e.extend(e.Button.prototype,e.EventSource.prototype,{notifyGroupEnter:function(){o(this,e.ButtonState.GROUP)},notifyGroupExit:function(){s(this,e.ButtonState.REST)},disable:function(){this.notifyGroupExit(),this.element.disabled=!0,this.tracker.setTracking(!1),e.setElementOpacity(this.element,.2,!0)},enable:function(){this.element.disabled=!1,this.tracker.setTracking(!0),e.setElementOpacity(this.element,1,!0),this.notifyGroupEnter()},destroy:function(){this.imgRest&&(this.element.removeChild(this.imgRest),this.imgRest=null),this.imgGroup&&(this.element.removeChild(this.imgGroup),this.imgGroup=null),this.imgHover&&(this.element.removeChild(this.imgHover),this.imgHover=null),this.imgDown&&(this.element.removeChild(this.imgDown),this.imgDown=null),this.removeAllHandlers(),this.tracker.destroy(),this.element=null}})}(s),function(e){e.ButtonGroup=function(t){e.extend(!0,this,{buttons:[],clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold,clickDistThreshold:e.DEFAULT_SETTINGS.clickDistThreshold,labelText:""},t);var n,i=this.buttons.concat([]),r=this;if(this.element=t.element||e.makeNeutralElement("div"),!t.group)for(this.element.style.display="inline-block",n=0;n<i.length;n++)this.element.appendChild(i[n].element);e.setElementTouchActionNone(this.element),this.tracker=new e.MouseTracker({userData:"ButtonGroup.tracker",element:this.element,clickTimeThreshold:this.clickTimeThreshold,clickDistThreshold:this.clickDistThreshold,enterHandler:function(e){var t;for(t=0;t<r.buttons.length;t++)r.buttons[t].notifyGroupEnter()},leaveHandler:function(e){var t;if(!e.insideElementPressed)for(t=0;t<r.buttons.length;t++)r.buttons[t].notifyGroupExit()}})},e.ButtonGroup.prototype={emulateEnter:function(){this.tracker.enterHandler({eventSource:this.tracker})},emulateLeave:function(){this.tracker.leaveHandler({eventSource:this.tracker})},destroy:function(){while(this.buttons.length){var e=this.buttons.pop();this.element.removeChild(e.element),e.destroy()}this.tracker.destroy(),this.element=null}}}(s),function(e){e.Rect=function(t,n,i,r,o){var s,a;this.x="number"===typeof t?t:0,this.y="number"===typeof n?n:0,this.width="number"===typeof i?i:0,this.height="number"===typeof r?r:0,this.degrees="number"===typeof o?o:0,this.degrees=e.positiveModulo(this.degrees,360),this.degrees>=270?(s=this.getTopRight(),this.x=s.x,this.y=s.y,a=this.height,this.height=this.width,this.width=a,this.degrees-=270):this.degrees>=180?(s=this.getBottomRight(),this.x=s.x,this.y=s.y,this.degrees-=180):this.degrees>=90&&(s=this.getBottomLeft(),this.x=s.x,this.y=s.y,a=this.height,this.height=this.width,this.width=a,this.degrees-=90)},e.Rect.fromSummits=function(t,n,i){var r=t.distanceTo(n),o=t.distanceTo(i),s=n.minus(t),a=Math.atan(s.y/s.x);return s.x<0?a+=Math.PI:s.y<0&&(a+=2*Math.PI),new e.Rect(t.x,t.y,r,o,a/Math.PI*180)},e.Rect.prototype={clone:function(){return new e.Rect(this.x,this.y,this.width,this.height,this.degrees)},getAspectRatio:function(){return this.width/this.height},getTopLeft:function(){return new e.Point(this.x,this.y)},getBottomRight:function(){return new e.Point(this.x+this.width,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getTopRight:function(){return new e.Point(this.x+this.width,this.y).rotate(this.degrees,this.getTopLeft())},getBottomLeft:function(){return new e.Point(this.x,this.y+this.height).rotate(this.degrees,this.getTopLeft())},getCenter:function(){return new e.Point(this.x+this.width/2,this.y+this.height/2).rotate(this.degrees,this.getTopLeft())},getSize:function(){return new e.Point(this.width,this.height)},equals:function(t){return t instanceof e.Rect&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.degrees===t.degrees},times:function(t){return new e.Rect(this.x*t,this.y*t,this.width*t,this.height*t,this.degrees)},translate:function(t){return new e.Rect(this.x+t.x,this.y+t.y,this.width,this.height,this.degrees)},union:function(t){var n=this.getBoundingBox(),i=t.getBoundingBox(),r=Math.min(n.x,i.x),o=Math.min(n.y,i.y),s=Math.max(n.x+n.width,i.x+i.width),a=Math.max(n.y+n.height,i.y+i.height);return new e.Rect(r,o,s-r,a-o)},intersection:function(t){var n=1e-10,i=[],r=this.getTopLeft();t.containsPoint(r,n)&&i.push(r);var o=this.getTopRight();t.containsPoint(o,n)&&i.push(o);var s=this.getBottomLeft();t.containsPoint(s,n)&&i.push(s);var a=this.getBottomRight();t.containsPoint(a,n)&&i.push(a);var l=t.getTopLeft();this.containsPoint(l,n)&&i.push(l);var c=t.getTopRight();this.containsPoint(c,n)&&i.push(c);var u=t.getBottomLeft();this.containsPoint(u,n)&&i.push(u);var h=t.getBottomRight();this.containsPoint(h,n)&&i.push(h);for(var d=this._getSegments(),f=t._getSegments(),p=0;p<d.length;p++)for(var g=d[p],m=0;m<f.length;m++){var v=f[m],y=b(g[0],g[1],v[0],v[1]);y&&i.push(y)}function b(t,i,r,o){var s=i.minus(t),a=o.minus(r),l=-a.x*s.y+s.x*a.y;if(0===l)return null;var c=(s.x*(t.y-r.y)-s.y*(t.x-r.x))/l,u=(a.x*(t.y-r.y)-a.y*(t.x-r.x))/l;return-n<=c&&c<=1-n&&-n<=u&&u<=1-n?new e.Point(t.x+u*s.x,t.y+u*s.y):null}if(0===i.length)return null;for(var w=i[0].x,x=i[0].x,_=i[0].y,T=i[0].y,S=1;S<i.length;S++){var O=i[S];O.x<w&&(w=O.x),O.x>x&&(x=O.x),O.y<_&&(_=O.y),O.y>T&&(T=O.y)}return new e.Rect(w,_,x-w,T-_)},_getSegments:function(){var e=this.getTopLeft(),t=this.getTopRight(),n=this.getBottomLeft(),i=this.getBottomRight();return[[e,t],[t,i],[i,n],[n,e]]},rotate:function(t,n){if(t=e.positiveModulo(t,360),0===t)return this.clone();n=n||this.getCenter();var i=this.getTopLeft().rotate(t,n),r=this.getTopRight().rotate(t,n),o=r.minus(i);o=o.apply((function(e){var t=1e-15;return Math.abs(e)<t?0:e}));var s=Math.atan(o.y/o.x);return o.x<0?s+=Math.PI:o.y<0&&(s+=2*Math.PI),new e.Rect(i.x,i.y,this.width,this.height,s/Math.PI*180)},getBoundingBox:function(){if(0===this.degrees)return this.clone();var t=this.getTopLeft(),n=this.getTopRight(),i=this.getBottomLeft(),r=this.getBottomRight(),o=Math.min(t.x,n.x,i.x,r.x),s=Math.max(t.x,n.x,i.x,r.x),a=Math.min(t.y,n.y,i.y,r.y),l=Math.max(t.y,n.y,i.y,r.y);return new e.Rect(o,a,s-o,l-a)},getIntegerBoundingBox:function(){var t=this.getBoundingBox(),n=Math.floor(t.x),i=Math.floor(t.y),r=Math.ceil(t.width+t.x-n),o=Math.ceil(t.height+t.y-i);return new e.Rect(n,i,r,o)},containsPoint:function(e,t){t=t||0;var n=this.getTopLeft(),i=this.getTopRight(),r=this.getBottomLeft(),o=i.minus(n),s=r.minus(n);return(e.x-n.x)*o.x+(e.y-n.y)*o.y>=-t&&(e.x-i.x)*o.x+(e.y-i.y)*o.y<=t&&(e.x-n.x)*s.x+(e.y-n.y)*s.y>=-t&&(e.x-r.x)*s.x+(e.y-r.y)*s.y<=t},toString:function(){return"["+Math.round(100*this.x)/100+", "+Math.round(100*this.y)/100+", "+Math.round(100*this.width)/100+"x"+Math.round(100*this.height)/100+", "+Math.round(100*this.degrees)/100+"deg]"}}}(s),function(e){var t={};function n(e){var t;e.quick&&(t="horizontal"===this.scroll?Math.floor(e.position.x/this.panelWidth):Math.floor(e.position.y/this.panelHeight),this.viewer.goToPage(t));this.element.focus()}function i(t){if(this.dragging=!0,this.element){var n=Number(this.element.style.marginLeft.replace("px","")),i=Number(this.element.style.marginTop.replace("px","")),r=Number(this.element.style.width.replace("px","")),s=Number(this.element.style.height.replace("px","")),a=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?-t.delta.x>0?n>-(r-a.x)&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,a.x,n+2*t.delta.x)):-t.delta.x<0&&n<0&&(this.element.style.marginLeft=n+2*t.delta.x+"px",o(this,a.x,n+2*t.delta.x)):-t.delta.y>0?i>-(s-a.y)&&(this.element.style.marginTop=i+2*t.delta.y+"px",o(this,a.y,i+2*t.delta.y)):-t.delta.y<0&&i<0&&(this.element.style.marginTop=i+2*t.delta.y+"px",o(this,a.y,i+2*t.delta.y))}}function r(t){if(this.element){var n=Number(this.element.style.marginLeft.replace("px","")),i=Number(this.element.style.marginTop.replace("px","")),r=Number(this.element.style.width.replace("px","")),s=Number(this.element.style.height.replace("px","")),a=e.getElementSize(this.viewer.canvas);"horizontal"===this.scroll?t.scroll>0?n>-(r-a.x)&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,a.x,n-60*t.scroll)):t.scroll<0&&n<0&&(this.element.style.marginLeft=n-60*t.scroll+"px",o(this,a.x,n-60*t.scroll)):t.scroll<0?i>a.y-s&&(this.element.style.marginTop=i+60*t.scroll+"px",o(this,a.y,i+60*t.scroll)):t.scroll>0&&i<0&&(this.element.style.marginTop=i+60*t.scroll+"px",o(this,a.y,i+60*t.scroll)),t.preventDefault=!0}}function o(t,n,i){var r,o,s,a,l,c;for(r="horizontal"===t.scroll?t.panelWidth:t.panelHeight,o=Math.ceil(n/r)+5,s=Math.ceil((Math.abs(i)+n)/r)+1,o=s-o,o=o<0?0:o,l=o;l<s&&l<t.panels.length;l++)if(c=t.panels[l],!c.activePanel){var u,h=t.viewer.tileSources[l];u=h.referenceStripThumbnailUrl?{type:"image",url:h.referenceStripThumbnailUrl}:h,a=new e.Viewer({id:c.id,tileSources:[u],element:c,navigatorSizeRatio:t.sizeRatio,showNavigator:!1,mouseNavEnabled:!1,showNavigationControl:!1,showSequenceControl:!1,immediateRender:!0,blendTime:0,animationTime:0,loadTilesWithAjax:t.viewer.loadTilesWithAjax,ajaxHeaders:t.viewer.ajaxHeaders,useCanvas:t.useCanvas}),e.setElementPointerEventsNone(a.canvas),e.setElementPointerEventsNone(a.container),a.innerTracker.setTracking(!1),a.outerTracker.setTracking(!1),t.miniViewers[c.id]=a,c.activePanel=!0}}function s(e){var t=e.eventSource.element;"horizontal"===this.scroll?t.style.marginBottom="0px":t.style.marginLeft="0px"}function a(t){var n=t.eventSource.element;"horizontal"===this.scroll?n.style.marginBottom="-"+e.getElementSize(n).y/2+"px":n.style.marginLeft="-"+e.getElementSize(n).x/2+"px"}function l(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 38:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 40:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;case 37:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;case 39:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1;break}}function c(e){if(e.ctrl||e.alt||e.meta)e.preventDefault=!1;else switch(e.keyCode){case 61:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 45:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;case 48:case 119:case 87:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;case 115:case 83:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;case 97:r.call(this,{eventSource:this.tracker,position:null,scroll:-1,shift:null}),e.preventDefault=!0;break;case 100:r.call(this,{eventSource:this.tracker,position:null,scroll:1,shift:null}),e.preventDefault=!0;break;default:e.preventDefault=!1;break}}e.ReferenceStrip=function(u){var h,d,f,p=this,g=u.viewer,m=e.getElementSize(g.element);for(u.id||(u.id="referencestrip-"+e.now(),this.element=e.makeNeutralElement("div"),this.element.id=u.id,this.element.className="referencestrip"),u=e.extend(!0,{sizeRatio:e.DEFAULT_SETTINGS.referenceStripSizeRatio,position:e.DEFAULT_SETTINGS.referenceStripPosition,scroll:e.DEFAULT_SETTINGS.referenceStripScroll,clickTimeThreshold:e.DEFAULT_SETTINGS.clickTimeThreshold},u,{element:this.element}),e.extend(this,u),t[this.id]={animating:!1},this.minPixelRatio=this.viewer.minPixelRatio,this.element.tabIndex=0,d=this.element.style,d.marginTop="0px",d.marginRight="0px",d.marginBottom="0px",d.marginLeft="0px",d.left="0px",d.bottom="0px",d.border="0px",d.background="#000",d.position="relative",e.setElementTouchActionNone(this.element),e.setElementOpacity(this.element,.8),this.viewer=g,this.tracker=new e.MouseTracker({userData:"ReferenceStrip.tracker",element:this.element,clickHandler:e.delegate(this,n),dragHandler:e.delegate(this,i),scrollHandler:e.delegate(this,r),enterHandler:e.delegate(this,s),leaveHandler:e.delegate(this,a),keyDownHandler:e.delegate(this,l),keyHandler:e.delegate(this,c),preProcessEventHandler:function(e){"wheel"===e.eventType&&(e.preventDefault=!0)}}),u.width&&u.height?(this.element.style.width=u.width+"px",this.element.style.height=u.height+"px",g.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):"horizontal"===u.scroll?(this.element.style.width=m.x*u.sizeRatio*g.tileSources.length+12*g.tileSources.length+"px",this.element.style.height=m.y*u.sizeRatio+"px",g.addControl(this.element,{anchor:e.ControlAnchor.BOTTOM_LEFT})):(this.element.style.height=m.y*u.sizeRatio*g.tileSources.length+12*g.tileSources.length+"px",this.element.style.width=m.x*u.sizeRatio+"px",g.addControl(this.element,{anchor:e.ControlAnchor.TOP_LEFT})),this.panelWidth=m.x*this.sizeRatio+8,this.panelHeight=m.y*this.sizeRatio+8,this.panels=[],this.miniViewers={},f=0;f<g.tileSources.length;f++)h=e.makeNeutralElement("div"),h.id=this.element.id+"-"+f,h.style.width=p.panelWidth+"px",h.style.height=p.panelHeight+"px",h.style.display="inline",h.style["float"]="left",h.style.cssFloat="left",h.style.styleFloat="left",h.style.padding="2px",e.setElementTouchActionNone(h),e.setElementPointerEventsNone(h),this.element.appendChild(h),h.activePanel=!1,this.panels.push(h);o(this,"vertical"===this.scroll?m.y:m.x,0),this.setFocus(0)},e.ReferenceStrip.prototype={setFocus:function(t){var n,i=this.element.querySelector("#"+this.element.id+"-"+t),r=e.getElementSize(this.viewer.canvas),a=Number(this.element.style.width.replace("px","")),l=Number(this.element.style.height.replace("px","")),c=-Number(this.element.style.marginLeft.replace("px","")),u=-Number(this.element.style.marginTop.replace("px",""));this.currentSelected!==i&&(this.currentSelected&&(this.currentSelected.style.background="#000"),this.currentSelected=i,this.currentSelected.style.background="#999","horizontal"===this.scroll?(n=Number(t)*(this.panelWidth+3),n>c+r.x-this.panelWidth?(n=Math.min(n,a-r.x),this.element.style.marginLeft=-n+"px",o(this,r.x,-n)):n<c&&(n=Math.max(0,n-r.x/2),this.element.style.marginLeft=-n+"px",o(this,r.x,-n))):(n=Number(t)*(this.panelHeight+3),n>u+r.y-this.panelHeight?(n=Math.min(n,l-r.y),this.element.style.marginTop=-n+"px",o(this,r.y,-n)):n<u&&(n=Math.max(0,n-r.y/2),this.element.style.marginTop=-n+"px",o(this,r.y,-n))),this.currentPage=t,s.call(this,{eventSource:this.tracker}))},update:function(){return!!t[this.id].animating},destroy:function(){if(this.miniViewers)for(var e in this.miniViewers)this.miniViewers[e].destroy();this.tracker.destroy(),this.element&&this.viewer.removeControl(this.element)}}}(s),function(e){e.DisplayRect=function(t,n,i,r,o,s){e.Rect.apply(this,[t,n,i,r]),this.minLevel=o,this.maxLevel=s},e.extend(e.DisplayRect.prototype,e.Rect.prototype)}(s),function(e){function t(e,t){return(1-Math.exp(e*-t))/(1-Math.exp(-e))}e.Spring=function(t){var n=arguments;"object"!==typeof t&&(t={initial:n.length&&"number"===typeof n[0]?n[0]:void 0,springStiffness:n.length>1?n[1].springStiffness:5,animationTime:n.length>1?n[1].animationTime:1.5}),e.console.assert("number"===typeof t.springStiffness&&0!==t.springStiffness,"[OpenSeadragon.Spring] options.springStiffness must be a non-zero number"),e.console.assert("number"===typeof t.animationTime&&t.animationTime>=0,"[OpenSeadragon.Spring] options.animationTime must be a number greater than or equal to 0"),t.exponential&&(this._exponential=!0,delete t.exponential),e.extend(!0,this,t),this.current={value:"number"===typeof this.initial?this.initial:this._exponential?0:1,time:e.now()},e.console.assert(!this._exponential||0!==this.current.value,"[OpenSeadragon.Spring] value must be non-zero for exponential springs"),this.start={value:this.current.value,time:this.current.time},this.target={value:this.current.value,time:this.current.time},this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},e.Spring.prototype={resetTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.resetTo] target must be non-zero for exponential springs"),this.start.value=this.target.value=this.current.value=t,this.start.time=this.target.time=this.current.time=e.now(),this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},springTo:function(t){e.console.assert(!this._exponential||0!==t,"[OpenSeadragon.Spring.springTo] target must be non-zero for exponential springs"),this.start.value=this.current.value,this.start.time=this.current.time,this.target.value=t,this.target.time=this.start.time+1e3*this.animationTime,this._exponential&&(this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},shiftBy:function(t){this.start.value+=t,this.target.value+=t,this._exponential&&(e.console.assert(0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.shiftBy] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value))},setExponential:function(t){this._exponential=t,this._exponential&&(e.console.assert(0!==this.current.value&&0!==this.target.value&&0!==this.start.value,"[OpenSeadragon.Spring.setExponential] spring value must be non-zero for exponential springs"),this.start._logValue=Math.log(this.start.value),this.target._logValue=Math.log(this.target.value),this.current._logValue=Math.log(this.current.value))},update:function(){var n,i;this.current.time=e.now(),this._exponential?(n=this.start._logValue,i=this.target._logValue):(n=this.start.value,i=this.target.value);var r=this.current.time>=this.target.time?i:n+(i-n)*t(this.springStiffness,(this.current.time-this.start.time)/(this.target.time-this.start.time)),o=this.current.value;return this._exponential?this.current.value=Math.exp(r):this.current.value=r,o!==this.current.value},isAtTargetValue:function(){return this.current.value===this.target.value}}}(s),function(e){function t(e,t,n){var i;e.jobsInProgress--,(!e.jobLimit||e.jobsInProgress<e.jobLimit)&&e.jobQueue.length>0&&(i=e.jobQueue.shift(),i.start(),e.jobsInProgress++),n(t.data,t.errorMsg,t.request)}e.ImageJob=function(t){e.extend(!0,this,{timeout:e.DEFAULT_SETTINGS.timeout,jobId:null},t),this.data=null,this.userData={},this.errorMsg=null},e.ImageJob.prototype={start:function(){var e=this,t=this.abort;this.jobId=window.setTimeout((function(){e.finish(null,null,"Image load exceeded timeout ("+e.timeout+" ms)")}),this.timeout),this.abort=function(){e.source.downloadTileAbort(e),"function"===typeof t&&t()},this.source.downloadTileStart(this)},finish:function(e,t,n){this.data=e,this.request=t,this.errorMsg=n,this.jobId&&window.clearTimeout(this.jobId),this.callback(this)}},e.ImageLoader=function(t){e.extend(!0,this,{jobLimit:e.DEFAULT_SETTINGS.imageLoaderLimit,timeout:e.DEFAULT_SETTINGS.timeout,jobQueue:[],jobsInProgress:0},t)},e.ImageLoader.prototype={addJob:function(n){if(!n.source){e.console.error("ImageLoader.prototype.addJob() requires [options.source]. TileSource since new API defines how images are fetched. Creating a dummy TileSource.");var i=e.TileSource.prototype;n.source={downloadTileStart:i.downloadTileStart,downloadTileAbort:i.downloadTileAbort}}var r=this,o=function(e){t(r,e,n.callback)},s={src:n.src,tile:n.tile||{},source:n.source,loadWithAjax:n.loadWithAjax,ajaxHeaders:n.loadWithAjax?n.ajaxHeaders:null,crossOriginPolicy:n.crossOriginPolicy,ajaxWithCredentials:n.ajaxWithCredentials,postData:n.postData,callback:o,abort:n.abort,timeout:this.timeout},a=new e.ImageJob(s);!this.jobLimit||this.jobsInProgress<this.jobLimit?(a.start(),this.jobsInProgress++):this.jobQueue.push(a)},clear:function(){for(var e=0;e<this.jobQueue.length;e++){var t=this.jobQueue[e];"function"===typeof t.abort&&t.abort()}this.jobQueue=[]}}}(s),function(e){e.Tile=function(t,n,i,r,o,s,a,l,c,u,h,d){this.level=t,this.x=n,this.y=i,this.bounds=r,this.sourceBounds=u,this.exists=o,this._url=s,this.postData=h,this.context2D=a,this.loadWithAjax=l,this.ajaxHeaders=c,void 0===d&&(e.console.warn("Tile constructor needs 'cacheKey' variable: creation tile cache in Tile class is deprecated. TileSource.prototype.getTileHashKey will be used."),d=e.TileSource.prototype.getTileHashKey(t,n,i,s,c,h)),this.cacheKey=d,this.loaded=!1,this.loading=!1,this.element=null,this.imgElement=null,this.style=null,this.position=null,this.size=null,this.flipped=!1,this.blendStart=null,this.opacity=null,this.squaredDistance=null,this.visibility=null,this.hasTransparency=!1,this.beingDrawn=!1,this.lastTouchTime=0,this.isRightMost=!1,this.isBottomMost=!1},e.Tile.prototype={toString:function(){return this.level+"/"+this.x+"_"+this.y},_hasTransparencyChannel:function(){return console.warn("Tile.prototype._hasTransparencyChannel() has been deprecated and will be removed in the future. Use TileSource.prototype.hasTransparency() instead."),!!this.context2D||this.getUrl().match(".png")},drawHTML:function(t){if(this.cacheImageRecord)if(this.loaded){if(!this.element){var n=this.getImage();if(!n)return;this.element=e.makeNeutralElement("div"),this.imgElement=n.cloneNode(),this.imgElement.style.msInterpolationMode="nearest-neighbor",this.imgElement.style.width="100%",this.imgElement.style.height="100%",this.style=this.element.style,this.style.position="absolute"}this.element.parentNode!==t&&t.appendChild(this.element),this.imgElement.parentNode!==this.element&&this.element.appendChild(this.imgElement),this.style.top=this.position.y+"px",this.style.left=this.position.x+"px",this.style.height=this.size.y+"px",this.style.width=this.size.x+"px",this.flipped&&(this.style.transform="scaleX(-1)"),e.setElementOpacity(this.element,this.opacity)}else e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString());else e.console.warn("[Tile.drawHTML] attempting to draw tile %s when it's not cached",this.toString())},get image(){return e.console.error("[Tile.image] property has been deprecated. Use [Tile.prototype.getImage] instead."),this.getImage()},get url(){return e.console.error("[Tile.url] property has been deprecated. Use [Tile.prototype.getUrl] instead."),this.getUrl()},getImage:function(){return this.cacheImageRecord.getImage()},getUrl:function(){return"function"===typeof this._url?this._url():this._url},getCanvasContext:function(){return this.context2D||this.cacheImageRecord.getRenderedContext()},drawCanvas:function(t,n,i,r,o,s){var a,l,c,u=this.position.times(e.pixelDensityRatio),h=this.size.times(e.pixelDensityRatio);this.context2D||this.cacheImageRecord?(a=this.getCanvasContext(),this.loaded&&a?(t.save(),t.globalAlpha=this.opacity,"number"===typeof i&&1!==i&&(u=u.times(i),h=h.times(i)),r instanceof e.Point&&(u=u.plus(r)),1===t.globalAlpha&&this.hasTransparency&&(o&&(u.x=Math.round(u.x),u.y=Math.round(u.y),h.x=Math.round(h.x),h.y=Math.round(h.y)),t.clearRect(u.x,u.y,h.x,h.y)),n({context:t,tile:this,rendered:a}),this.sourceBounds?(l=Math.min(this.sourceBounds.width,a.canvas.width),c=Math.min(this.sourceBounds.height,a.canvas.height)):(l=a.canvas.width,c=a.canvas.height),t.translate(u.x+h.x/2,0),this.flipped&&t.scale(-1,1),t.drawImage(a.canvas,0,0,l,c,-h.x/2,u.y,h.x,h.y),t.restore()):e.console.warn("Attempting to draw tile %s when it's not yet loaded.",this.toString())):e.console.warn("[Tile.drawCanvas] attempting to draw tile %s when it's not cached",this.toString())},getScaleForEdgeSmoothing:function(){var t;if(this.cacheImageRecord)t=this.cacheImageRecord.getRenderedContext();else{if(!this.context2D)return e.console.warn("[Tile.drawCanvas] attempting to get tile scale %s when tile's not cached",this.toString()),1;t=this.context2D}return t.canvas.width/(this.size.x*e.pixelDensityRatio)},getTranslationForEdgeSmoothing:function(t,n,i){var r=Math.max(1,Math.ceil((i.x-n.x)/2)),o=Math.max(1,Math.ceil((i.y-n.y)/2));return new e.Point(r,o).minus(this.position.times(e.pixelDensityRatio).times(t||1).apply((function(e){return e%1})))},unload:function(){this.imgElement&&this.imgElement.parentNode&&this.imgElement.parentNode.removeChild(this.imgElement),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.imgElement=null,this.loaded=!1,this.loading=!1}}}(s),function(e){e.OverlayPlacement=e.Placement,e.OverlayRotationMode=e.freezeObject({NO_ROTATION:1,EXACT:2,BOUNDING_BOX:3}),e.Overlay=function(t,n,i){var r;r=e.isPlainObject(t)?t:{element:t,location:n,placement:i},this.element=r.element,this.style=r.element.style,this._init(r)},e.Overlay.prototype={_init:function(t){this.location=t.location,this.placement=void 0===t.placement?e.Placement.TOP_LEFT:t.placement,this.onDraw=t.onDraw,this.checkResize=void 0===t.checkResize||t.checkResize,this.width=void 0===t.width?null:t.width,this.height=void 0===t.height?null:t.height,this.rotationMode=t.rotationMode||e.OverlayRotationMode.EXACT,this.location instanceof e.Rect&&(this.width=this.location.width,this.height=this.location.height,this.location=this.location.getTopLeft(),this.placement=e.Placement.TOP_LEFT),this.scales=null!==this.width&&null!==this.height,this.bounds=new e.Rect(this.location.x,this.location.y,this.width,this.height),this.position=this.location},adjust:function(t,n){var i=e.Placement.properties[this.placement];i&&(i.isHorizontallyCentered?t.x-=n.x/2:i.isRight&&(t.x-=n.x),i.isVerticallyCentered?t.y-=n.y/2:i.isBottom&&(t.y-=n.y))},destroy:function(){var t=this.element,n=this.style;t.parentNode&&(t.parentNode.removeChild(t),t.prevElementParent&&(n.display="none",document.body.appendChild(t))),this.onDraw=null,n.top="",n.left="",n.position="",null!==this.width&&(n.width=""),null!==this.height&&(n.height="");var i=e.getCssPropertyWithVendorPrefix("transformOrigin"),r=e.getCssPropertyWithVendorPrefix("transform");i&&r&&(n[i]="",n[r]="")},drawHTML:function(t,n){var i=this.element;i.parentNode!==t&&(i.prevElementParent=i.parentNode,i.prevNextSibling=i.nextSibling,t.appendChild(i),this.style.position="absolute",this.size=e.getElementSize(i));var r=this._getOverlayPositionAndSize(n),o=r.position,s=this.size=r.size,a=r.rotate;if(this.onDraw)this.onDraw(o,s,this.element);else{var l=this.style;l.left=o.x+"px",l.top=o.y+"px",null!==this.width&&(l.width=s.x+"px"),null!==this.height&&(l.height=s.y+"px");var c=e.getCssPropertyWithVendorPrefix("transformOrigin"),u=e.getCssPropertyWithVendorPrefix("transform");c&&u&&(a?(l[c]=this._getTransformOrigin(),l[u]="rotate("+a+"deg)"):(l[c]="",l[u]="")),l.display="block"}},_getOverlayPositionAndSize:function(t){var n=t.pixelFromPoint(this.location,!0),i=this._getSizeInPixels(t);this.adjust(n,i);var r=0;if(t.getRotation(!0)&&this.rotationMode!==e.OverlayRotationMode.NO_ROTATION)if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX&&null!==this.width&&null!==this.height){var o=new e.Rect(n.x,n.y,i.x,i.y),s=this._getBoundingBox(o,t.getRotation(!0));n=s.getTopLeft(),i=s.getSize()}else r=t.getRotation(!0);return{position:n,size:i,rotate:r}},_getSizeInPixels:function(t){var n=this.size.x,i=this.size.y;if(null!==this.width||null!==this.height){var r=t.deltaPixelsFromPointsNoRotate(new e.Point(this.width||0,this.height||0),!0);null!==this.width&&(n=r.x),null!==this.height&&(i=r.y)}if(this.checkResize&&(null===this.width||null===this.height)){var o=this.size=e.getElementSize(this.element);null===this.width&&(n=o.x),null===this.height&&(i=o.y)}return new e.Point(n,i)},_getBoundingBox:function(e,t){var n=this._getPlacementPoint(e);return e.rotate(t,n).getBoundingBox()},_getPlacementPoint:function(t){var n=new e.Point(t.x,t.y),i=e.Placement.properties[this.placement];return i&&(i.isHorizontallyCentered?n.x+=t.width/2:i.isRight&&(n.x+=t.width),i.isVerticallyCentered?n.y+=t.height/2:i.isBottom&&(n.y+=t.height)),n},_getTransformOrigin:function(){var t="",n=e.Placement.properties[this.placement];return n?(n.isLeft?t="left":n.isRight&&(t="right"),n.isTop?t+=" top":n.isBottom&&(t+=" bottom"),t):t},update:function(t,n){var i=e.isPlainObject(t)?t:{location:t,placement:n};this._init({location:i.location||this.location,placement:void 0!==i.placement?i.placement:this.placement,onDraw:i.onDraw||this.onDraw,checkResize:i.checkResize||this.checkResize,width:void 0!==i.width?i.width:this.width,height:void 0!==i.height?i.height:this.height,rotationMode:i.rotationMode||this.rotationMode})},getBounds:function(t){e.console.assert(t,"A viewport must now be passed to Overlay.getBounds.");var n=this.width,i=this.height;if(null===n||null===i){var r=t.deltaPointsFromPixelsNoRotate(this.size,!0);null===n&&(n=r.x),null===i&&(i=r.y)}var o=this.location.clone();return this.adjust(o,new e.Point(n,i)),this._adjustBoundsForRotation(t,new e.Rect(o.x,o.y,n,i))},_adjustBoundsForRotation:function(t,n){if(!t||0===t.getRotation(!0)||this.rotationMode===e.OverlayRotationMode.EXACT)return n;if(this.rotationMode===e.OverlayRotationMode.BOUNDING_BOX){if(null===this.width||null===this.height)return n;var i=this._getOverlayPositionAndSize(t);return t.viewerElementToViewportRectangle(new e.Rect(i.position.x,i.position.y,i.size.x,i.size.y))}return n.rotate(-t.getRotation(!0),this._getPlacementPoint(n))}}}(s),function(e){e.Drawer=function(t){e.console.assert(t.viewer,"[Drawer] options.viewer is required");var n=arguments;if(e.isPlainObject(t)||(t={source:n[0],viewport:n[1],element:n[2]}),e.console.assert(t.viewport,"[Drawer] options.viewport is required"),e.console.assert(t.element,"[Drawer] options.element is required"),t.source&&e.console.error("[Drawer] options.source is no longer accepted; use TiledImage instead"),this.viewer=t.viewer,this.viewport=t.viewport,this.debugGridColor="string"===typeof t.debugGridColor?[t.debugGridColor]:t.debugGridColor||e.DEFAULT_SETTINGS.debugGridColor,t.opacity&&e.console.error("[Drawer] options.opacity is no longer accepted; set the opacity on the TiledImage instead"),this.useCanvas=e.supportsCanvas&&(!this.viewer||this.viewer.useCanvas),this.container=e.getElement(t.element),this.canvas=e.makeNeutralElement(this.useCanvas?"canvas":"div"),this.context=this.useCanvas?this.canvas.getContext("2d"):null,this.sketchCanvas=null,this.sketchContext=null,this.element=this.container,this.container.dir="ltr",this.useCanvas){var i=this._calculateCanvasSize();this.canvas.width=i.x,this.canvas.height=i.y}this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.position="absolute",e.setElementOpacity(this.canvas,this.opacity,!0),e.setElementPointerEventsNone(this.canvas),e.setElementTouchActionNone(this.canvas),this.container.style.textAlign="left",this.container.appendChild(this.canvas),this._imageSmoothingEnabled=!0},e.Drawer.prototype={addOverlay:function(t,n,i,r){return e.console.error("drawer.addOverlay is deprecated. Use viewer.addOverlay instead."),this.viewer.addOverlay(t,n,i,r),this},updateOverlay:function(t,n,i){return e.console.error("drawer.updateOverlay is deprecated. Use viewer.updateOverlay instead."),this.viewer.updateOverlay(t,n,i),this},removeOverlay:function(t){return e.console.error("drawer.removeOverlay is deprecated. Use viewer.removeOverlay instead."),this.viewer.removeOverlay(t),this},clearOverlays:function(){return e.console.error("drawer.clearOverlays is deprecated. Use viewer.clearOverlays instead."),this.viewer.clearOverlays(),this},viewportCoordToDrawerCoord:function(t){var n=this.viewport.pixelFromPointNoRotate(t,!0);return new e.Point(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio)},clipWithPolygons:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),e.forEach((function(e){e.forEach((function(e,t){n[0===t?"moveTo":"lineTo"](e.x,e.y)}))})),n.clip()}},setOpacity:function(t){e.console.error("drawer.setOpacity is deprecated. Use tiledImage.setOpacity instead.");for(var n=this.viewer.world,i=0;i<n.getItemCount();i++)n.getItemAt(i).setOpacity(t);return this},getOpacity:function(){e.console.error("drawer.getOpacity is deprecated. Use tiledImage.getOpacity instead.");for(var t=this.viewer.world,n=0,i=0;i<t.getItemCount();i++){var r=t.getItemAt(i).getOpacity();r>n&&(n=r)}return n},needsUpdate:function(){return e.console.error("[Drawer.needsUpdate] this function is deprecated. Use World.needsDraw instead."),this.viewer.world.needsDraw()},numTilesLoaded:function(){return e.console.error("[Drawer.numTilesLoaded] this function is deprecated. Use TileCache.numTilesLoaded instead."),this.viewer.tileCache.numTilesLoaded()},reset:function(){return e.console.error("[Drawer.reset] this function is deprecated. Use World.resetItems instead."),this.viewer.world.resetItems(),this},update:function(){return e.console.error("[Drawer.update] this function is deprecated. Use Drawer.clear and World.draw instead."),this.clear(),this.viewer.world.draw(),this},canRotate:function(){return this.useCanvas},destroy:function(){this.canvas.width=1,this.canvas.height=1,this.sketchCanvas=null,this.sketchContext=null},clear:function(){if(this.canvas.innerHTML="",this.useCanvas){var e=this._calculateCanvasSize();if((this.canvas.width!==e.x||this.canvas.height!==e.y)&&(this.canvas.width=e.x,this.canvas.height=e.y,this._updateImageSmoothingEnabled(this.context),null!==this.sketchCanvas)){var t=this._calculateSketchCanvasSize();this.sketchCanvas.width=t.x,this.sketchCanvas.height=t.y,this._updateImageSmoothingEnabled(this.sketchContext)}this._clear()}},_clear:function(e,t){if(this.useCanvas){var n=this._getContext(e);if(t)n.clearRect(t.x,t.y,t.width,t.height);else{var i=n.canvas;n.clearRect(0,0,i.width,i.height)}}},viewportToDrawerRectangle:function(t){var n=this.viewport.pixelFromPointNoRotate(t.getTopLeft(),!0),i=this.viewport.deltaPixelsFromPointsNoRotate(t.getSize(),!0);return new e.Rect(n.x*e.pixelDensityRatio,n.y*e.pixelDensityRatio,i.x*e.pixelDensityRatio,i.y*e.pixelDensityRatio)},drawTile:function(t,n,i,r,o,s,a){if(e.console.assert(t,"[Drawer.drawTile] tile is required"),e.console.assert(n,"[Drawer.drawTile] drawingHandler is required"),this.useCanvas){var l=this._getContext(i);r=r||1,t.drawCanvas(l,n,r,o,s,a)}else t.drawHTML(this.canvas)},_getContext:function(e){var t=this.context;if(e){if(null===this.sketchCanvas){this.sketchCanvas=document.createElement("canvas");var n=this._calculateSketchCanvasSize();if(this.sketchCanvas.width=n.x,this.sketchCanvas.height=n.y,this.sketchContext=this.sketchCanvas.getContext("2d"),0===this.viewport.getRotation()){var i=this;this.viewer.addHandler("rotate",(function e(){if(0!==i.viewport.getRotation()){i.viewer.removeHandler("rotate",e);var t=i._calculateSketchCanvasSize();i.sketchCanvas.width=t.x,i.sketchCanvas.height=t.y}}))}this._updateImageSmoothingEnabled(this.sketchContext)}t=this.sketchContext}return t},saveContext:function(e){this.useCanvas&&this._getContext(e).save()},restoreContext:function(e){this.useCanvas&&this._getContext(e).restore()},setClip:function(e,t){if(this.useCanvas){var n=this._getContext(t);n.beginPath(),n.rect(e.x,e.y,e.width,e.height),n.clip()}},drawRectangle:function(e,t,n){if(this.useCanvas){var i=this._getContext(n);i.save(),i.fillStyle=t,i.fillRect(e.x,e.y,e.width,e.height),i.restore()}},blendSketch:function(t,n,i,r){var o=t;if(e.isPlainObject(o)||(o={opacity:t,scale:n,translate:i,compositeOperation:r}),this.useCanvas&&this.sketchCanvas){t=o.opacity,r=o.compositeOperation;var s=o.bounds;if(this.context.save(),this.context.globalAlpha=t,r&&(this.context.globalCompositeOperation=r),s)s.x<0&&(s.width+=s.x,s.x=0),s.x+s.width>this.canvas.width&&(s.width=this.canvas.width-s.x),s.y<0&&(s.height+=s.y,s.y=0),s.y+s.height>this.canvas.height&&(s.height=this.canvas.height-s.y),this.context.drawImage(this.sketchCanvas,s.x,s.y,s.width,s.height,s.x,s.y,s.width,s.height);else{n=o.scale||1,i=o.translate;var a=i instanceof e.Point?i:new e.Point(0,0),l=0,c=0;if(i){var u=this.sketchCanvas.width-this.canvas.width,h=this.sketchCanvas.height-this.canvas.height;l=Math.round(u/2),c=Math.round(h/2)}this.context.drawImage(this.sketchCanvas,a.x-l*n,a.y-c*n,(this.canvas.width+2*l)*n,(this.canvas.height+2*c)*n,-l,-c,this.canvas.width+2*l,this.canvas.height+2*c)}this.context.restore()}},drawDebugInfo:function(t,n,i,r){if(this.useCanvas){var o=this.viewer.world.getIndexOfItem(r)%this.debugGridColor.length,s=this.context;s.save(),s.lineWidth=2*e.pixelDensityRatio,s.font="small-caps bold "+13*e.pixelDensityRatio+"px arial",s.strokeStyle=this.debugGridColor[o],s.fillStyle=this.debugGridColor[o],this.viewport.getRotation(!0)%360!==0&&this._offsetForRotation({degrees:this.viewport.getRotation(!0)}),r.getRotation(!0)%360!==0&&this._offsetForRotation({degrees:r.getRotation(!0),point:r.viewport.pixelFromPointNoRotate(r._getRotationPoint(!0),!0)}),r.viewport.getRotation(!0)%360===0&&r.getRotation(!0)%360===0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),s.strokeRect(t.position.x*e.pixelDensityRatio,t.position.y*e.pixelDensityRatio,t.size.x*e.pixelDensityRatio,t.size.y*e.pixelDensityRatio);var a=(t.position.x+t.size.x/2)*e.pixelDensityRatio,l=(t.position.y+t.size.y/2)*e.pixelDensityRatio;s.translate(a,l),s.rotate(Math.PI/180*-this.viewport.getRotation(!0)),s.translate(-a,-l),0===t.x&&0===t.y&&(s.fillText("Zoom: "+this.viewport.getZoom(),t.position.x*e.pixelDensityRatio,(t.position.y-30)*e.pixelDensityRatio),s.fillText("Pan: "+this.viewport.getBounds().toString(),t.position.x*e.pixelDensityRatio,(t.position.y-20)*e.pixelDensityRatio)),s.fillText("Level: "+t.level,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+20)*e.pixelDensityRatio),s.fillText("Column: "+t.x,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+30)*e.pixelDensityRatio),s.fillText("Row: "+t.y,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+40)*e.pixelDensityRatio),s.fillText("Order: "+i+" of "+n,(t.position.x+10)*e.pixelDensityRatio,(t.position.y+50)*e.pixelDensityRatio),s.fillText("Size: "+t.size.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+60)*e.pixelDensityRatio),s.fillText("Position: "+t.position.toString(),(t.position.x+10)*e.pixelDensityRatio,(t.position.y+70)*e.pixelDensityRatio),this.viewport.getRotation(!0)%360!==0&&this._restoreRotationChanges(),r.getRotation(!0)%360!==0&&this._restoreRotationChanges(),r.viewport.getRotation(!0)%360===0&&r.getRotation(!0)%360===0&&r._drawer.viewer.viewport.getFlip()&&r._drawer._flip(),s.restore()}},debugRect:function(t){if(this.useCanvas){var n=this.context;n.save(),n.lineWidth=2*e.pixelDensityRatio,n.strokeStyle=this.debugGridColor[0],n.fillStyle=this.debugGridColor[0],n.strokeRect(t.x*e.pixelDensityRatio,t.y*e.pixelDensityRatio,t.width*e.pixelDensityRatio,t.height*e.pixelDensityRatio),n.restore()}},setImageSmoothingEnabled:function(e){this.useCanvas&&(this._imageSmoothingEnabled=e,this._updateImageSmoothingEnabled(this.context),this.viewer.forceRedraw())},_updateImageSmoothingEnabled:function(e){e.msImageSmoothingEnabled=this._imageSmoothingEnabled,e.imageSmoothingEnabled=this._imageSmoothingEnabled},getCanvasSize:function(t){var n=this._getContext(t).canvas;return new e.Point(n.width,n.height)},getCanvasCenter:function(){return new e.Point(this.canvas.width/2,this.canvas.height/2)},_offsetForRotation:function(t){var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.save(),i.translate(n.x,n.y),this.viewer.viewport.flipped?(i.rotate(Math.PI/180*-t.degrees),i.scale(-1,1)):i.rotate(Math.PI/180*t.degrees),i.translate(-n.x,-n.y)},_flip:function(t){t=t||{};var n=t.point?t.point.times(e.pixelDensityRatio):this.getCanvasCenter(),i=this._getContext(t.useSketch);i.translate(n.x,0),i.scale(-1,1),i.translate(-n.x,0)},_restoreRotationChanges:function(e){var t=this._getContext(e);t.restore()},_calculateCanvasSize:function(){var t=e.pixelDensityRatio,n=this.viewport.getContainerSize();return{x:Math.round(n.x*t),y:Math.round(n.y*t)}},_calculateSketchCanvasSize:function(){var e=this._calculateCanvasSize();if(0===this.viewport.getRotation())return e;var t=Math.ceil(Math.sqrt(e.x*e.x+e.y*e.y));return{x:t,y:t}}}}(s),function(e){e.Viewport=function(t){var n=arguments;n.length&&n[0]instanceof e.Point&&(t={containerSize:n[0],contentSize:n[1],config:n[2]}),t.config&&(e.extend(!0,t,t.config),delete t.config),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t.margins||{}),delete t.margins,t.initialDegrees=t.degrees,delete t.degrees,e.extend(!0,this,{containerSize:null,contentSize:null,zoomPoint:null,rotationPivot:null,viewer:null,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,maxZoomPixelRatio:e.DEFAULT_SETTINGS.maxZoomPixelRatio,visibilityRatio:e.DEFAULT_SETTINGS.visibilityRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,defaultZoomLevel:e.DEFAULT_SETTINGS.defaultZoomLevel,minZoomLevel:e.DEFAULT_SETTINGS.minZoomLevel,maxZoomLevel:e.DEFAULT_SETTINGS.maxZoomLevel,initialDegrees:e.DEFAULT_SETTINGS.degrees,flipped:e.DEFAULT_SETTINGS.flipped,homeFillsViewer:e.DEFAULT_SETTINGS.homeFillsViewer,silenceMultiImageWarnings:e.DEFAULT_SETTINGS.silenceMultiImageWarnings},t),this._updateContainerInnerSize(),this.centerSpringX=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.centerSpringY=new e.Spring({initial:0,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.zoomSpring=new e.Spring({exponential:!0,initial:1,springStiffness:this.springStiffness,animationTime:this.animationTime}),this.degreesSpring=new e.Spring({initial:t.initialDegrees,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,this._setContentBounds(new e.Rect(0,0,1,1),1),this.goHome(!0),this.update()},e.Viewport.prototype={get degrees(){return e.console.warn("Accessing [Viewport.degrees] is deprecated. Use viewport.getRotation instead."),this.getRotation()},set degrees(t){e.console.warn("Setting [Viewport.degrees] is deprecated. Use viewport.rotateTo, viewport.rotateBy, or viewport.setRotation instead."),this.rotateTo(t)},resetContentSize:function(t){return e.console.assert(t,"[Viewport.resetContentSize] contentSize is required"),e.console.assert(t instanceof e.Point,"[Viewport.resetContentSize] contentSize must be an OpenSeadragon.Point"),e.console.assert(t.x>0,"[Viewport.resetContentSize] contentSize.x must be greater than 0"),e.console.assert(t.y>0,"[Viewport.resetContentSize] contentSize.y must be greater than 0"),this._setContentBounds(new e.Rect(0,0,1,t.y/t.x),t.x),this},setHomeBounds:function(t,n){e.console.error("[Viewport.setHomeBounds] this function is deprecated; The content bounds should not be set manually."),this._setContentBounds(t,n)},_setContentBounds:function(t,n){e.console.assert(t,"[Viewport._setContentBounds] bounds is required"),e.console.assert(t instanceof e.Rect,"[Viewport._setContentBounds] bounds must be an OpenSeadragon.Rect"),e.console.assert(t.width>0,"[Viewport._setContentBounds] bounds.width must be greater than 0"),e.console.assert(t.height>0,"[Viewport._setContentBounds] bounds.height must be greater than 0"),this._contentBoundsNoRotate=t.clone(),this._contentSizeNoRotate=this._contentBoundsNoRotate.getSize().times(n),this._contentBounds=t.rotate(this.getRotation()).getBoundingBox(),this._contentSize=this._contentBounds.getSize().times(n),this._contentAspectRatio=this._contentSize.x/this._contentSize.y,this.viewer&&this.viewer.raiseEvent("reset-size",{contentSize:this._contentSizeNoRotate.clone(),contentFactor:n,homeBounds:this._contentBoundsNoRotate.clone(),contentBounds:this._contentBounds.clone()})},getHomeZoom:function(){if(this.defaultZoomLevel)return this.defaultZoomLevel;var e,t=this._contentAspectRatio/this.getAspectRatio();return e=this.homeFillsViewer?t>=1?t:1:t>=1?1:t,e/this._contentBounds.width},getHomeBounds:function(){return this.getHomeBoundsNoRotate().rotate(-this.getRotation())},getHomeBoundsNoRotate:function(){var t=this._contentBounds.getCenter(),n=1/this.getHomeZoom(),i=n/this.getAspectRatio();return new e.Rect(t.x-n/2,t.y-i/2,n,i)},goHome:function(e){return this.viewer&&this.viewer.raiseEvent("home",{immediately:e}),this.fitBounds(this.getHomeBounds(),e)},getMinZoom:function(){var e=this.getHomeZoom(),t=this.minZoomLevel?this.minZoomLevel:this.minZoomImageRatio*e;return t},getMaxZoom:function(){var e=this.maxZoomLevel;return e||(e=this._contentSize.x*this.maxZoomPixelRatio/this._containerInnerSize.x,e/=this._contentBounds.width),Math.max(e,this.getHomeZoom())},getAspectRatio:function(){return this._containerInnerSize.x/this._containerInnerSize.y},getContainerSize:function(){return new e.Point(this.containerSize.x,this.containerSize.y)},getMargins:function(){return e.extend({},this._margins)},setMargins:function(t){e.console.assert("object"===e.type(t),"[Viewport.setMargins] margins must be an object"),this._margins=e.extend({left:0,top:0,right:0,bottom:0},t),this._updateContainerInnerSize(),this.viewer&&this.viewer.forceRedraw()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(-this.getRotation(e))},getBoundsNoRotate:function(t){var n=this.getCenter(t),i=1/this.getZoom(t),r=i/this.getAspectRatio();return new e.Rect(n.x-i/2,n.y-r/2,i,r)},getBoundsWithMargins:function(e){return this.getBoundsNoRotateWithMargins(e).rotate(-this.getRotation(e),this.getCenter(e))},getBoundsNoRotateWithMargins:function(e){var t=this.getBoundsNoRotate(e),n=this._containerInnerSize.x*this.getZoom(e);return t.x-=this._margins.left/n,t.y-=this._margins.top/n,t.width+=(this._margins.left+this._margins.right)/n,t.height+=(this._margins.top+this._margins.bottom)/n,t},getCenter:function(t){var n,i,r,o,s,a,l,c,u=new e.Point(this.centerSpringX.current.value,this.centerSpringY.current.value),h=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return t?u:this.zoomPoint?(n=this.pixelFromPoint(this.zoomPoint,!0),i=this.getZoom(),r=1/i,o=r/this.getAspectRatio(),s=new e.Rect(u.x-r/2,u.y-o/2,r,o),a=this._pixelFromPoint(this.zoomPoint,s),l=a.minus(n).rotate(-this.getRotation(!0)),c=l.divide(this._containerInnerSize.x*i),h.plus(c)):h},getZoom:function(e){return e?this.zoomSpring.current.value:this.zoomSpring.target.value},_applyZoomConstraints:function(e){return Math.max(Math.min(e,this.getMaxZoom()),this.getMinZoom())},_applyBoundaryConstraints:function(e){var t=this.viewportToViewerElementRectangle(e).getBoundingBox(),n=this.viewportToViewerElementRectangle(this._contentBoundsNoRotate).getBoundingBox(),i=!1,r=!1;if(this.wrapHorizontal);else{var o,s,a,l=t.x+t.width,c=n.x+n.width;o=t.width>n.width?this.visibilityRatio*n.width:this.visibilityRatio*t.width,s=n.x-l+o,a=c-t.x-o,o>n.width?(t.x+=(s+a)/2,i=!0):a<0?(t.x+=a,i=!0):s>0&&(t.x+=s,i=!0)}if(this.wrapVertical);else{var u,h,d,f=t.y+t.height,p=n.y+n.height;u=t.height>n.height?this.visibilityRatio*n.height:this.visibilityRatio*t.height,h=n.y-f+u,d=p-t.y-u,u>n.height?(t.y+=(h+d)/2,r=!0):d<0?(t.y+=d,r=!0):h>0&&(t.y+=h,r=!0)}var g=i||r,m=g?this.viewerElementToViewportRectangle(t):e.clone();return m.xConstrained=i,m.yConstrained=r,m.constraintApplied=g,m},_raiseConstraintsEvent:function(e){this.viewer&&this.viewer.raiseEvent("constrain",{immediately:e})},applyConstraints:function(e){var t=this.getZoom(),n=this._applyZoomConstraints(t);t!==n&&this.zoomTo(n,this.zoomPoint,e);var i=this.getConstrainedBounds(!1);return i.constraintApplied&&(this.fitBounds(i,e),this._raiseConstraintsEvent(e)),this},ensureVisible:function(e){return this.applyConstraints(e)},_fitBounds:function(t,n){n=n||{};var i=n.immediately||!1,r=n.constraints||!1,o=this.getAspectRatio(),s=t.getCenter(),a=new e.Rect(t.x,t.y,t.width,t.height,t.degrees+this.getRotation()).getBoundingBox();a.getAspectRatio()>=o?a.height=a.width/o:a.width=a.height*o,a.x=s.x-a.width/2,a.y=s.y-a.height/2;var l=1/a.width;if(i)return this.panTo(s,!0),this.zoomTo(l,null,!0),r&&this.applyConstraints(!0),this;var c=this.getCenter(!0),u=this.getZoom(!0);this.panTo(c,!0),this.zoomTo(u,null,!0);var h=this.getBounds(),d=this.getZoom();if(0===d||Math.abs(l/d-1)<1e-8)return this.zoomTo(l,null,!0),this.panTo(s,i),r&&this.applyConstraints(!1),this;if(r){this.panTo(s,!1),this.zoomTo(l,null,!1);var f=this.getConstrainedBounds();this.panTo(c,!0),this.zoomTo(u,null,!0),this.fitBounds(f)}else{var p=a.rotate(-this.getRotation()),g=p.getTopLeft().times(l).minus(h.getTopLeft().times(d)).divide(l-d);this.zoomTo(l,g,i)}return this},fitBounds:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!1})},fitBoundsWithConstraints:function(e,t){return this._fitBounds(e,{immediately:t,constraints:!0})},fitVertically:function(t){var n=new e.Rect(this._contentBounds.x+this._contentBounds.width/2,this._contentBounds.y,0,this._contentBounds.height);return this.fitBounds(n,t)},fitHorizontally:function(t){var n=new e.Rect(this._contentBounds.x,this._contentBounds.y+this._contentBounds.height/2,this._contentBounds.width,0);return this.fitBounds(n,t)},getConstrainedBounds:function(e){var t,n;return t=this.getBounds(e),n=this._applyBoundaryConstraints(t),n},panBy:function(t,n){var i=new e.Point(this.centerSpringX.target.value,this.centerSpringY.target.value);return this.panTo(i.plus(t),n)},panTo:function(e,t){return t?(this.centerSpringX.resetTo(e.x),this.centerSpringY.resetTo(e.y)):(this.centerSpringX.springTo(e.x),this.centerSpringY.springTo(e.y)),this.viewer&&this.viewer.raiseEvent("pan",{center:e,immediately:t}),this},zoomBy:function(e,t,n){return this.zoomTo(this.zoomSpring.target.value*e,t,n)},zoomTo:function(t,n,i){var r=this;return this.zoomPoint=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i?this._adjustCenterSpringsForZoomPoint((function(){r.zoomSpring.resetTo(t)})):this.zoomSpring.springTo(t),this.viewer&&this.viewer.raiseEvent("zoom",{zoom:t,refPoint:n,immediately:i}),this},setRotation:function(e,t){return this.rotateTo(e,null,t)},getRotation:function(e){return e?this.degreesSpring.current.value:this.degreesSpring.target.value},setRotationWithPivot:function(e,t,n){return this.rotateTo(e,t,n)},rotateTo:function(t,n,i){if(!this.viewer||!this.viewer.drawer.canRotate())return this;if(this.degreesSpring.target.value===t&&this.degreesSpring.isAtTargetValue())return this;if(this.rotationPivot=n instanceof e.Point&&!isNaN(n.x)&&!isNaN(n.y)?n:null,i)if(this.rotationPivot){var r=t-this._oldDegrees;if(!r)return this.rotationPivot=null,this;this._rotateAboutPivot(t)}else this.degreesSpring.resetTo(t);else{var o=e.positiveModulo(this.degreesSpring.current.value,360),s=e.positiveModulo(t,360),a=s-o;a>180?s-=360:a<-180&&(s+=360);var l=o-s;this.degreesSpring.resetTo(t+l),this.degreesSpring.springTo(t)}return this._setContentBounds(this.viewer.world.getHomeBounds(),this.viewer.world.getContentFactor()),this.viewer.forceRedraw(),this.viewer.raiseEvent("rotate",{degrees:t,immediately:!!i,pivot:this.rotationPivot||this.getCenter()}),this},rotateBy:function(e,t,n){return this.rotateTo(this.degreesSpring.target.value+e,t,n)},resize:function(e,t){var n,i=this.getBoundsNoRotate(),r=i;return this.containerSize.x=e.x,this.containerSize.y=e.y,this._updateContainerInnerSize(),t&&(n=e.x/this.containerSize.x,r.width=i.width*n,r.height=r.width/this.getAspectRatio()),this.viewer&&this.viewer.raiseEvent("resize",{newContainerSize:e,maintain:t}),this.fitBounds(r,!0)},_updateContainerInnerSize:function(){this._containerInnerSize=new e.Point(Math.max(1,this.containerSize.x-(this._margins.left+this._margins.right)),Math.max(1,this.containerSize.y-(this._margins.top+this._margins.bottom)))},update:function(){var e=this;this._adjustCenterSpringsForZoomPoint((function(){e.zoomSpring.update()})),this.degreesSpring.isAtTargetValue()&&(this.rotationPivot=null),this.centerSpringX.update(),this.centerSpringY.update(),this.rotationPivot?this._rotateAboutPivot(!0):this.degreesSpring.update();var t=this.centerSpringX.current.value!==this._oldCenterX||this.centerSpringY.current.value!==this._oldCenterY||this.zoomSpring.current.value!==this._oldZoom||this.degreesSpring.current.value!==this._oldDegrees;return this._oldCenterX=this.centerSpringX.current.value,this._oldCenterY=this.centerSpringY.current.value,this._oldZoom=this.zoomSpring.current.value,this._oldDegrees=this.degreesSpring.current.value,t},_rotateAboutPivot:function(e){var t=!0===e,n=this.rotationPivot.minus(this.getCenter());this.centerSpringX.shiftBy(n.x),this.centerSpringY.shiftBy(n.y),t?this.degreesSpring.update():this.degreesSpring.resetTo(e);var i=this.degreesSpring.current.value-this._oldDegrees,r=n.rotate(-1*i).times(-1);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y)},_adjustCenterSpringsForZoomPoint:function(e){if(this.zoomPoint){var t=this.pixelFromPoint(this.zoomPoint,!0);e();var n=this.pixelFromPoint(this.zoomPoint,!0),i=n.minus(t),r=this.deltaPointsFromPixels(i,!0);this.centerSpringX.shiftBy(r.x),this.centerSpringY.shiftBy(r.y),this.zoomSpring.isAtTargetValue()&&(this.zoomPoint=null)}else e()},deltaPixelsFromPointsNoRotate:function(e,t){return e.times(this._containerInnerSize.x*this.getZoom(t))},deltaPixelsFromPoints:function(e,t){return this.deltaPixelsFromPointsNoRotate(e.rotate(this.getRotation(t)),t)},deltaPointsFromPixelsNoRotate:function(e,t){return e.divide(this._containerInnerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(e,t){return this.deltaPointsFromPixelsNoRotate(e,t).rotate(-this.getRotation(t))},pixelFromPointNoRotate:function(e,t){return this._pixelFromPointNoRotate(e,this.getBoundsNoRotate(t))},pixelFromPoint:function(e,t){return this._pixelFromPoint(e,this.getBoundsNoRotate(t))},_pixelFromPointNoRotate:function(t,n){return t.minus(n.getTopLeft()).times(this._containerInnerSize.x/n.width).plus(new e.Point(this._margins.left,this._margins.top))},_pixelFromPoint:function(e,t){return this._pixelFromPointNoRotate(e.rotate(this.getRotation(!0),this.getCenter(!0)),t)},pointFromPixelNoRotate:function(t,n){var i=this.getBoundsNoRotate(n);return t.minus(new e.Point(this._margins.left,this._margins.top)).divide(this._containerInnerSize.x/i.width).plus(i.getTopLeft())},pointFromPixel:function(e,t){return this.pointFromPixelNoRotate(e,t).rotate(-this.getRotation(t),this.getCenter(t))},_viewportToImageDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t*this._contentSizeNoRotate.x/i,n*this._contentSizeNoRotate.x/i)},viewportToImageCoordinates:function(t,n){if(t instanceof e.Point)return this.viewportToImageCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageCoordinates] is not accurate with multi-image; use TiledImage.viewportToImageCoordinates instead.");else if(1===i){var r=this.viewer.world.getItemAt(0);return r.viewportToImageCoordinates(t,n,!0)}}return this._viewportToImageDelta(t-this._contentBoundsNoRotate.x,n-this._contentBoundsNoRotate.y)},_imageToViewportDelta:function(t,n){var i=this._contentBoundsNoRotate.width;return new e.Point(t/this._contentSizeNoRotate.x*i,n/this._contentSizeNoRotate.x*i)},imageToViewportCoordinates:function(t,n){if(t instanceof e.Point)return this.imageToViewportCoordinates(t.x,t.y);if(this.viewer){var i=this.viewer.world.getItemCount();if(i>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportCoordinates] is not accurate with multi-image; use TiledImage.imageToViewportCoordinates instead.");else if(1===i){var r=this.viewer.world.getItemAt(0);return r.imageToViewportCoordinates(t,n,!0)}}var o=this._imageToViewportDelta(t,n);return o.x+=this._contentBoundsNoRotate.x,o.y+=this._contentBoundsNoRotate.y,o},imageToViewportRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var s=this.viewer.world.getItemCount();if(s>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportRectangle] is not accurate with multi-image; use TiledImage.imageToViewportRectangle instead.");else if(1===s){var a=this.viewer.world.getItemAt(0);return a.imageToViewportRectangle(t,n,i,r,!0)}}var l=this.imageToViewportCoordinates(o.x,o.y),c=this._imageToViewportDelta(o.width,o.height);return new e.Rect(l.x,l.y,c.x,c.y,o.degrees)},viewportToImageRectangle:function(t,n,i,r){var o=t;if(o instanceof e.Rect||(o=new e.Rect(t,n,i,r)),this.viewer){var s=this.viewer.world.getItemCount();if(s>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageRectangle] is not accurate with multi-image; use TiledImage.viewportToImageRectangle instead.");else if(1===s){var a=this.viewer.world.getItemAt(0);return a.viewportToImageRectangle(t,n,i,r,!0)}}var l=this.viewportToImageCoordinates(o.x,o.y),c=this._viewportToImageDelta(o.width,o.height);return new e.Rect(l.x,l.y,c.x,c.y,o.degrees)},viewerElementToImageCoordinates:function(e){var t=this.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.pixelFromPoint(t,!0)},windowToImageCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToImageCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(n)},imageToWindowCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.imageToWindowCoordinates] the viewport must have a viewer.");var n=this.imageToViewerElementCoordinates(t);return n.plus(e.getElementPosition(this.viewer.element))},viewerElementToViewportCoordinates:function(e){return this.pointFromPixel(e,!0)},viewportToViewerElementCoordinates:function(e){return this.pixelFromPoint(e,!0)},viewerElementToViewportRectangle:function(t){return e.Rect.fromSummits(this.pointFromPixel(t.getTopLeft(),!0),this.pointFromPixel(t.getTopRight(),!0),this.pointFromPixel(t.getBottomLeft(),!0))},viewportToViewerElementRectangle:function(t){return e.Rect.fromSummits(this.pixelFromPoint(t.getTopLeft(),!0),this.pixelFromPoint(t.getTopRight(),!0),this.pixelFromPoint(t.getBottomLeft(),!0))},windowToViewportCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.windowToViewportCoordinates] the viewport must have a viewer.");var n=t.minus(e.getElementPosition(this.viewer.element));return this.viewerElementToViewportCoordinates(n)},viewportToWindowCoordinates:function(t){e.console.assert(this.viewer,"[Viewport.viewportToWindowCoordinates] the viewport must have a viewer.");var n=this.viewportToViewerElementCoordinates(t);return n.plus(e.getElementPosition(this.viewer.element))},viewportToImageZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.viewportToImageZoom] is not accurate with multi-image.");else if(1===n){var i=this.viewer.world.getItemAt(0);return i.viewportToImageZoom(t)}}var r=this._contentSizeNoRotate.x,o=this._containerInnerSize.x,s=this._contentBoundsNoRotate.width,a=o/r*s;return t*a},imageToViewportZoom:function(t){if(this.viewer){var n=this.viewer.world.getItemCount();if(n>1)this.silenceMultiImageWarnings||e.console.error("[Viewport.imageToViewportZoom] is not accurate with multi-image.");else if(1===n){var i=this.viewer.world.getItemAt(0);return i.imageToViewportZoom(t)}}var r=this._contentSizeNoRotate.x,o=this._containerInnerSize.x,s=this._contentBoundsNoRotate.width,a=r/o/s;return t*a},toggleFlip:function(){return this.setFlip(!this.getFlip()),this},getFlip:function(){return this.flipped},setFlip:function(e){return this.flipped===e||(this.flipped=e,this.viewer.navigator&&this.viewer.navigator.setFlip(this.getFlip()),this.viewer.forceRedraw(),this.viewer.raiseEvent("flip",{flipped:e})),this}}}(s),function(e){e.TiledImage=function(t){var n=this;e.console.assert(t.tileCache,"[TiledImage] options.tileCache is required"),e.console.assert(t.drawer,"[TiledImage] options.drawer is required"),e.console.assert(t.viewer,"[TiledImage] options.viewer is required"),e.console.assert(t.imageLoader,"[TiledImage] options.imageLoader is required"),e.console.assert(t.source,"[TiledImage] options.source is required"),e.console.assert(!t.clip||t.clip instanceof e.Rect,"[TiledImage] options.clip must be an OpenSeadragon.Rect if present"),e.EventSource.call(this),this._tileCache=t.tileCache,delete t.tileCache,this._drawer=t.drawer,delete t.drawer,this._imageLoader=t.imageLoader,delete t.imageLoader,t.clip instanceof e.Rect&&(this._clip=t.clip.clone()),delete t.clip;var i=t.x||0;delete t.x;var r=t.y||0;delete t.y,this.normHeight=t.source.dimensions.y/t.source.dimensions.x,this.contentAspectX=t.source.dimensions.x/t.source.dimensions.y;var o=1;t.width?(o=t.width,delete t.width,t.height&&(e.console.error("specifying both width and height to a tiledImage is not supported"),delete t.height)):t.height&&(o=t.height/this.normHeight,delete t.height);var a=t.fitBounds;delete t.fitBounds;var l=t.fitBoundsPlacement||s.Placement.CENTER;delete t.fitBoundsPlacement;var c=t.degrees||0;delete t.degrees,e.extend(!0,this,{viewer:null,tilesMatrix:{},coverage:{},loadingCoverage:{},lastDrawn:[],lastResetTime:0,_midDraw:!1,_needsDraw:!0,_hasOpaqueTile:!1,_tilesLoading:0,springStiffness:e.DEFAULT_SETTINGS.springStiffness,animationTime:e.DEFAULT_SETTINGS.animationTime,minZoomImageRatio:e.DEFAULT_SETTINGS.minZoomImageRatio,wrapHorizontal:e.DEFAULT_SETTINGS.wrapHorizontal,wrapVertical:e.DEFAULT_SETTINGS.wrapVertical,immediateRender:e.DEFAULT_SETTINGS.immediateRender,blendTime:e.DEFAULT_SETTINGS.blendTime,alwaysBlend:e.DEFAULT_SETTINGS.alwaysBlend,minPixelRatio:e.DEFAULT_SETTINGS.minPixelRatio,smoothTileEdgesMinZoom:e.DEFAULT_SETTINGS.smoothTileEdgesMinZoom,iOSDevice:e.DEFAULT_SETTINGS.iOSDevice,debugMode:e.DEFAULT_SETTINGS.debugMode,crossOriginPolicy:e.DEFAULT_SETTINGS.crossOriginPolicy,ajaxWithCredentials:e.DEFAULT_SETTINGS.ajaxWithCredentials,placeholderFillStyle:e.DEFAULT_SETTINGS.placeholderFillStyle,opacity:e.DEFAULT_SETTINGS.opacity,preload:e.DEFAULT_SETTINGS.preload,compositeOperation:e.DEFAULT_SETTINGS.compositeOperation,subPixelRoundingForTransparency:e.DEFAULT_SETTINGS.subPixelRoundingForTransparency},t),this._preload=this.preload,delete this.preload,this._fullyLoaded=!1,this._xSpring=new e.Spring({initial:i,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._ySpring=new e.Spring({initial:r,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._scaleSpring=new e.Spring({initial:o,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._degreesSpring=new e.Spring({initial:c,springStiffness:this.springStiffness,animationTime:this.animationTime}),this._updateForScale(),a&&this.fitBounds(a,l,!0),this._drawingHandler=function(t){n.viewer.raiseEvent("tile-drawing",e.extend({tiledImage:n},t))}},e.extend(e.TiledImage.prototype,e.EventSource.prototype,{needsDraw:function(){return this._needsDraw},getFullyLoaded:function(){return this._fullyLoaded},_setFullyLoaded:function(e){e!==this._fullyLoaded&&(this._fullyLoaded=e,this.raiseEvent("fully-loaded-change",{fullyLoaded:this._fullyLoaded}))},reset:function(){this._tileCache.clearTilesFor(this),this.lastResetTime=e.now(),this._needsDraw=!0},update:function(){var e=this._xSpring.update(),t=this._ySpring.update(),n=this._scaleSpring.update(),i=this._degreesSpring.update();return!!(e||t||n||i)&&(this._updateForScale(),this._needsDraw=!0,!0)},draw:function(){0!==this.opacity||this._preload?(this._midDraw=!0,this._updateViewport(),this._midDraw=!1):this._needsDraw=!1},destroy:function(){this.reset(),this.source.destroy&&this.source.destroy()},getBounds:function(e){return this.getBoundsNoRotate(e).rotate(this.getRotation(e),this._getRotationPoint(e))},getBoundsNoRotate:function(t){return t?new e.Rect(this._xSpring.current.value,this._ySpring.current.value,this._worldWidthCurrent,this._worldHeightCurrent):new e.Rect(this._xSpring.target.value,this._ySpring.target.value,this._worldWidthTarget,this._worldHeightTarget)},getWorldBounds:function(){return e.console.error("[TiledImage.getWorldBounds] is deprecated; use TiledImage.getBounds instead"),this.getBounds()},getClippedBounds:function(t){var n=this.getBoundsNoRotate(t);if(this._clip){var i=t?this._worldWidthCurrent:this._worldWidthTarget,r=i/this.source.dimensions.x,o=this._clip.times(r);n=new e.Rect(n.x+o.x,n.y+o.y,o.width,o.height)}return n.rotate(this.getRotation(t),this._getRotationPoint(t))},getTileBounds:function(e,t,n){var i=this.source.getNumTiles(e),r=(i.x+t%i.x)%i.x,o=(i.y+n%i.y)%i.y,s=this.source.getTileBounds(e,r,o);return this.getFlip()&&(s.x=1-s.x-s.width),s.x+=(t-r)/i.x,s.y+=this._worldHeightCurrent/this._worldWidthCurrent*((n-o)/i.y),s},getContentSize:function(){return new e.Point(this.source.dimensions.x,this.source.dimensions.y)},getSizeInWindowCoordinates:function(){var t=this.imageToWindowCoordinates(new e.Point(0,0)),n=this.imageToWindowCoordinates(this.getContentSize());return new e.Point(n.x-t.x,n.y-t.y)},_viewportToImageDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t*(this.source.dimensions.x/r),n*(this.source.dimensions.y*this.contentAspectX/r))},viewportToImageCoordinates:function(t,n,i){var r;return t instanceof e.Point?(i=n,r=t):r=new e.Point(t,n),r=r.rotate(-this.getRotation(i),this._getRotationPoint(i)),i?this._viewportToImageDelta(r.x-this._xSpring.current.value,r.y-this._ySpring.current.value):this._viewportToImageDelta(r.x-this._xSpring.target.value,r.y-this._ySpring.target.value)},_imageToViewportDelta:function(t,n,i){var r=i?this._scaleSpring.current.value:this._scaleSpring.target.value;return new e.Point(t/this.source.dimensions.x*r,n/this.source.dimensions.y/this.contentAspectX*r)},imageToViewportCoordinates:function(t,n,i){t instanceof e.Point&&(i=n,n=t.y,t=t.x);var r=this._imageToViewportDelta(t,n);return i?(r.x+=this._xSpring.current.value,r.y+=this._ySpring.current.value):(r.x+=this._xSpring.target.value,r.y+=this._ySpring.target.value),r.rotate(this.getRotation(i),this._getRotationPoint(i))},imageToViewportRectangle:function(t,n,i,r,o){var s=t;s instanceof e.Rect?o=n:s=new e.Rect(t,n,i,r);var a=this.imageToViewportCoordinates(s.getTopLeft(),o),l=this._imageToViewportDelta(s.width,s.height,o);return new e.Rect(a.x,a.y,l.x,l.y,s.degrees+this.getRotation(o))},viewportToImageRectangle:function(t,n,i,r,o){var s=t;t instanceof e.Rect?o=n:s=new e.Rect(t,n,i,r);var a=this.viewportToImageCoordinates(s.getTopLeft(),o),l=this._viewportToImageDelta(s.width,s.height,o);return new e.Rect(a.x,a.y,l.x,l.y,s.degrees-this.getRotation(o))},viewerElementToImageCoordinates:function(e){var t=this.viewport.pointFromPixel(e,!0);return this.viewportToImageCoordinates(t)},imageToViewerElementCoordinates:function(e){var t=this.imageToViewportCoordinates(e);return this.viewport.pixelFromPoint(t,!0)},windowToImageCoordinates:function(e){var t=e.minus(s.getElementPosition(this.viewer.element));return this.viewerElementToImageCoordinates(t)},imageToWindowCoordinates:function(e){var t=this.imageToViewerElementCoordinates(e);return t.plus(s.getElementPosition(this.viewer.element))},_viewportToTiledImageRectangle:function(t){var n=this._scaleSpring.current.value;return t=t.rotate(-this.getRotation(!0),this._getRotationPoint(!0)),new e.Rect((t.x-this._xSpring.current.value)/n,(t.y-this._ySpring.current.value)/n,t.width/n,t.height/n,t.degrees)},viewportToImageZoom:function(e){var t=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return t*e},imageToViewportZoom:function(e){var t=this._scaleSpring.current.value*this.viewport._containerInnerSize.x/this.source.dimensions.x;return e/t},setPosition:function(e,t){var n=this._xSpring.target.value===e.x&&this._ySpring.target.value===e.y;if(t){if(n&&this._xSpring.current.value===e.x&&this._ySpring.current.value===e.y)return;this._xSpring.resetTo(e.x),this._ySpring.resetTo(e.y),this._needsDraw=!0}else{if(n)return;this._xSpring.springTo(e.x),this._ySpring.springTo(e.y),this._needsDraw=!0}n||this._raiseBoundsChange()},setWidth:function(e,t){this._setScale(e,t)},setHeight:function(e,t){this._setScale(e/this.normHeight,t)},setCroppingPolygons:function(t){var n=function(t){return t instanceof e.Point||"number"===typeof t.x&&"number"===typeof t.y},i=function(e){return e.map((function(e){try{if(n(e))return{x:e.x,y:e.y};throw new Error}catch(t){throw new Error("A Provided cropping polygon point is not supported")}}))};try{if(!e.isArray(t))throw new Error("Provided cropping polygon is not an array");this._croppingPolygons=t.map((function(e){return i(e)}))}catch(r){e.console.error("[TiledImage.setCroppingPolygons] Cropping polygon format not supported"),e.console.error(r),this._croppingPolygons=null}},resetCroppingPolygons:function(){this._croppingPolygons=null},fitBounds:function(t,n,i){n=n||e.Placement.CENTER;var r=e.Placement.properties[n],o=this.contentAspectX,s=0,a=0,l=1,c=1;if(this._clip&&(o=this._clip.getAspectRatio(),l=this._clip.width/this.source.dimensions.x,c=this._clip.height/this.source.dimensions.y,t.getAspectRatio()>o?(s=this._clip.x/this._clip.height*t.height,a=this._clip.y/this._clip.height*t.height):(s=this._clip.x/this._clip.width*t.width,a=this._clip.y/this._clip.width*t.width)),t.getAspectRatio()>o){var u=t.height/c,h=0;r.isHorizontallyCentered?h=(t.width-t.height*o)/2:r.isRight&&(h=t.width-t.height*o),this.setPosition(new e.Point(t.x-s+h,t.y-a),i),this.setHeight(u,i)}else{var d=t.width/l,f=0;r.isVerticallyCentered?f=(t.height-t.width/o)/2:r.isBottom&&(f=t.height-t.width/o),this.setPosition(new e.Point(t.x-s,t.y-a+f),i),this.setWidth(d,i)}},getClip:function(){return this._clip?this._clip.clone():null},setClip:function(t){e.console.assert(!t||t instanceof e.Rect,"[TiledImage.setClip] newClip must be an OpenSeadragon.Rect or null"),t instanceof e.Rect?this._clip=t.clone():this._clip=null,this._needsDraw=!0,this.raiseEvent("clip-change")},getFlip:function(){return!!this.flipped},setFlip:function(e){this.flipped=!!e,this._needsDraw=!0,this._raiseBoundsChange()},getOpacity:function(){return this.opacity},setOpacity:function(e){e!==this.opacity&&(this.opacity=e,this._needsDraw=!0,this.raiseEvent("opacity-change",{opacity:this.opacity}))},getPreload:function(){return this._preload},setPreload:function(e){this._preload=!!e,this._needsDraw=!0},getRotation:function(e){return e?this._degreesSpring.current.value:this._degreesSpring.target.value},setRotation:function(e,t){this._degreesSpring.target.value===e&&this._degreesSpring.isAtTargetValue()||(t?this._degreesSpring.resetTo(e):this._degreesSpring.springTo(e),this._needsDraw=!0,this._raiseBoundsChange())},_getRotationPoint:function(e){return this.getBoundsNoRotate(e).getCenter()},getCompositeOperation:function(){return this.compositeOperation},setCompositeOperation:function(e){e!==this.compositeOperation&&(this.compositeOperation=e,this._needsDraw=!0,this.raiseEvent("composite-operation-change",{compositeOperation:this.compositeOperation}))},_setScale:function(e,t){var n=this._scaleSpring.target.value===e;if(t){if(n&&this._scaleSpring.current.value===e)return;this._scaleSpring.resetTo(e),this._updateForScale(),this._needsDraw=!0}else{if(n)return;this._scaleSpring.springTo(e),this._updateForScale(),this._needsDraw=!0}n||this._raiseBoundsChange()},_updateForScale:function(){this._worldWidthTarget=this._scaleSpring.target.value,this._worldHeightTarget=this.normHeight*this._scaleSpring.target.value,this._worldWidthCurrent=this._scaleSpring.current.value,this._worldHeightCurrent=this.normHeight*this._scaleSpring.current.value},_raiseBoundsChange:function(){this.raiseEvent("bounds-change")},_isBottomItem:function(){return this.viewer.world.getItemAt(0)===this},_getLevelsInterval:function(){var e=Math.max(this.source.minLevel,Math.floor(Math.log(this.minZoomImageRatio)/Math.log(2))),t=this.viewport.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(0),!0).x*this._scaleSpring.current.value,n=Math.min(Math.abs(this.source.maxLevel),Math.abs(Math.floor(Math.log(t/this.minPixelRatio)/Math.log(2))));return n=Math.max(n,this.source.minLevel||0),e=Math.min(e,n),{lowestLevel:e,highestLevel:n}},_updateViewport:function(){this._needsDraw=!1,this._tilesLoading=0,this.loadingCoverage={};while(this.lastDrawn.length>0){var t=this.lastDrawn.pop();t.beingDrawn=!1}var n=this.viewport,i=this._viewportToTiledImageRectangle(n.getBoundsWithMargins(!0));if(!this.wrapHorizontal&&!this.wrapVertical){var r=this._viewportToTiledImageRectangle(this.getClippedBounds(!0));if(i=i.intersection(r),null===i)return}for(var o=this._getLevelsInterval(),s=o.lowestLevel,a=o.highestLevel,l=null,c=!1,u=e.now(),h=a;h>=s;h--){var d=!1,f=n.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(h),!0).x*this._scaleSpring.current.value;if(h===s||!c&&f>=this.minPixelRatio)d=!0,c=!0;else if(!c)continue;var p=n.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(h),!1).x*this._scaleSpring.current.value,g=n.deltaPixelsFromPointsNoRotate(this.source.getPixelRatio(Math.max(this.source.getClosestLevel(),0)),!1).x*this._scaleSpring.current.value,m=this.immediateRender?1:g,v=Math.min(1,(f-.5)/.5),y=m/Math.abs(m-p);if(l=this._updateLevel(c,d,h,v,y,i,u,l),this._providesCoverage(this.coverage,h))break}this._drawTiles(this.lastDrawn),l&&!l.context2D?(this._loadTile(l,u),this._needsDraw=!0,this._setFullyLoaded(!1)):this._setFullyLoaded(0===this._tilesLoading)},_getCornerTiles:function(t,n,i){var r,o,s,a;this.wrapHorizontal?(r=e.positiveModulo(n.x,1),o=e.positiveModulo(i.x,1)):(r=Math.max(0,n.x),o=Math.min(1,i.x));var l=1/this.source.aspectRatio;this.wrapVertical?(s=e.positiveModulo(n.y,l),a=e.positiveModulo(i.y,l)):(s=Math.max(0,n.y),a=Math.min(l,i.y));var c=this.source.getTileAtPoint(t,new e.Point(r,s)),u=this.source.getTileAtPoint(t,new e.Point(o,a)),h=this.source.getNumTiles(t);return this.wrapHorizontal&&(c.x+=h.x*Math.floor(n.x),u.x+=h.x*Math.floor(i.x)),this.wrapVertical&&(c.y+=h.y*Math.floor(n.y/l),u.y+=h.y*Math.floor(i.y/l)),{topLeft:c,bottomRight:u}},_updateLevel:function(e,t,n,i,r,o,s,a){var l=o.getBoundingBox().getTopLeft(),c=o.getBoundingBox().getBottomRight();this.viewer&&this.viewer.raiseEvent("update-level",{tiledImage:this,havedrawn:e,level:n,opacity:i,visibility:r,drawArea:o,topleft:l,bottomright:c,currenttime:s,best:a}),this._resetCoverage(this.coverage,n),this._resetCoverage(this.loadingCoverage,n);var u=this._getCornerTiles(n,l,c),h=u.topLeft,d=u.bottomRight,f=this.source.getNumTiles(n),p=this.viewport.pixelFromPoint(this.viewport.getCenter());this.getFlip()&&(d.x+=1,this.wrapHorizontal||(d.x=Math.min(d.x,f.x-1)));for(var g=h.x;g<=d.x;g++)for(var m=h.y;m<=d.y;m++){var v;if(this.getFlip()){var y=(f.x+g%f.x)%f.x;v=g+f.x-y-y-1}else v=g;null!==o.intersection(this.getTileBounds(n,v,m))&&(a=this._updateTile(t,e,v,m,n,i,r,p,f,s,a))}return a},_updateTile:function(e,t,n,i,r,o,s,a,l,c,u){var h=this._getTile(n,i,r,c,l,this._worldWidthCurrent,this._worldHeightCurrent),d=t;this.viewer&&this.viewer.raiseEvent("update-tile",{tiledImage:this,tile:h}),this._setCoverage(this.coverage,r,n,i,!1);var f=h.loaded||h.loading||this._isCovered(this.loadingCoverage,r,n,i);if(this._setCoverage(this.loadingCoverage,r,n,i,f),!h.exists)return u;if(e&&!d&&(this._isCovered(this.coverage,r,n,i)?this._setCoverage(this.coverage,r,n,i,!0):d=!0),!d)return u;if(this._positionTile(h,this.source.tileOverlap,this.viewport,a,s),!h.loaded)if(h.context2D)this._setTileLoaded(h);else{var p=this._tileCache.getImageRecord(h.cacheKey);p&&this._setTileLoaded(h,p.getData())}if(h.loaded){var g=this._blendTile(h,n,i,r,o,c);g&&(this._needsDraw=!0)}else h.loading?this._tilesLoading++:f||(u=this._compareTiles(u,h));return u},_getTile:function(t,n,i,r,o,s,a){var l,c,u,h,d,f,p,g,m,v,y=this.tilesMatrix,b=this.source;return y[i]||(y[i]={}),y[i][t]||(y[i][t]={}),y[i][t][n]&&!y[i][t][n].flipped===!this.flipped||(l=(o.x+t%o.x)%o.x,c=(o.y+n%o.y)%o.y,u=this.getTileBounds(i,t,n),h=b.getTileBounds(i,l,c,!0),d=b.tileExists(i,l,c),f=b.getTileUrl(i,l,c),p=b.getTilePostData(i,l,c),this.loadTilesWithAjax?(g=b.getTileAjaxHeaders(i,l,c),e.isPlainObject(this.ajaxHeaders)&&(g=e.extend({},this.ajaxHeaders,g))):g=null,m=b.getContext2D?b.getContext2D(i,l,c):void 0,v=new e.Tile(i,t,n,u,d,f,m,this.loadTilesWithAjax,g,h,p,b.getTileHashKey(i,l,c,f,g,p)),this.getFlip()?0===l&&(v.isRightMost=!0):l===o.x-1&&(v.isRightMost=!0),c===o.y-1&&(v.isBottomMost=!0),v.flipped=this.flipped,y[i][t][n]=v),v=y[i][t][n],v.lastTouchTime=r,v},_loadTile:function(e,t){var n=this;e.loading=!0,this._imageLoader.addJob({src:e.getUrl(),tile:e,source:this.source,postData:e.postData,loadWithAjax:e.loadWithAjax,ajaxHeaders:e.ajaxHeaders,crossOriginPolicy:this.crossOriginPolicy,ajaxWithCredentials:this.ajaxWithCredentials,callback:function(i,r,o){n._onTileLoad(e,t,i,r,o)},abort:function(){e.loading=!1}})},_onTileLoad:function(t,n,i,r,o){if(!i)return e.console.error("Tile %s failed to load: %s - error: %s",t,t.getUrl(),r),this.viewer.raiseEvent("tile-load-failed",{tile:t,tiledImage:this,time:n,message:r,tileRequest:o}),t.loading=!1,void(t.exists=!1);if(n<this.lastResetTime)return e.console.warn("Ignoring tile %s loaded before reset: %s",t,t.getUrl()),void(t.loading=!1);var s=this,a=function(){var e=s.source,n=e.getClosestLevel();s._setTileLoaded(t,i,n,o)};this._midDraw?window.setTimeout(a,1):a()},_setTileLoaded:function(t,n,i,r){var o=0,s=this;function a(){return o++,l}function l(){o--,0===o&&(t.loading=!1,t.loaded=!0,t.hasTransparency=s.source.hasTransparency(t.context2D,t.getUrl(),t.ajaxHeaders,t.postData),t.context2D||s._tileCache.cacheTile({data:n,tile:t,cutoff:i,tiledImage:s}),s._needsDraw=!0)}this.viewer.raiseEvent("tile-loaded",{tile:t,tiledImage:this,tileRequest:r,get image(){return e.console.error("[tile-loaded] event 'image' has been deprecated. Use 'data' property instead."),n},data:n,getCompletionCallback:a}),a()()},_positionTile:function(t,n,i,r,o){var s=t.bounds.getTopLeft();s.x*=this._scaleSpring.current.value,s.y*=this._scaleSpring.current.value,s.x+=this._xSpring.current.value,s.y+=this._ySpring.current.value;var a=t.bounds.getSize();a.x*=this._scaleSpring.current.value,a.y*=this._scaleSpring.current.value;var l=i.pixelFromPointNoRotate(s,!0),c=i.pixelFromPointNoRotate(s,!1),u=i.deltaPixelsFromPointsNoRotate(a,!0),h=i.deltaPixelsFromPointsNoRotate(a,!1),d=c.plus(h.divide(2)),f=r.squaredDistanceTo(d);n||(u=u.plus(new e.Point(1,1))),t.isRightMost&&this.wrapHorizontal&&(u.x+=.75),t.isBottomMost&&this.wrapVertical&&(u.y+=.75),t.position=l,t.size=u,t.squaredDistance=f,t.visibility=o},_blendTile:function(e,t,n,i,r,o){var s,a,l=1e3*this.blendTime;if(e.blendStart||(e.blendStart=o),s=o-e.blendStart,a=l?Math.min(1,s/l):1,this.alwaysBlend&&(a*=r),e.opacity=a,this.lastDrawn.push(e),1===a)this._setCoverage(this.coverage,i,t,n,!0),this._hasOpaqueTile=!0;else if(s<l)return!0;return!1},_compareTiles:function(e,t){return e?t.visibility>e.visibility||t.visibility===e.visibility&&t.squaredDistance<e.squaredDistance?t:e:t},_drawTiles:function(t){if(0!==this.opacity&&(0!==t.length||this.placeholderFillStyle)){var n,i,o,s=t[0];s&&(n=this.opacity<1||this.compositeOperation&&"source-over"!==this.compositeOperation||!this._isBottomItem()&&this.source.hasTransparency(s.context2D,s.getUrl(),s.ajaxHeaders,s.postData));var a,l=this.viewport.getZoom(!0),c=this.viewportToImageZoom(l);t.length>1&&c>this.smoothTileEdgesMinZoom&&!this.iOSDevice&&this.getRotation(!0)%360===0&&e.supportsCanvas&&this.viewer.useCanvas&&(n=!0,i=s.getScaleForEdgeSmoothing(),o=s.getTranslationForEdgeSmoothing(i,this._drawer.getCanvasSize(!1),this._drawer.getCanvasSize(!0))),n&&(i||(a=this.viewport.viewportToViewerElementRectangle(this.getClippedBounds(!0)).getIntegerBoundingBox(),this._drawer.viewer.viewport.getFlip()&&(this.viewport.getRotation(!0)%360===0&&this.getRotation(!0)%360===0||(a.x=this._drawer.viewer.container.clientWidth-(a.x+a.width))),a=a.times(e.pixelDensityRatio)),this._drawer._clear(!0,a)),i||(this.viewport.getRotation(!0)%360!==0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:n}),this.getRotation(!0)%360!==0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:n}),this.viewport.getRotation(!0)%360===0&&this.getRotation(!0)%360===0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip());var u=!1;if(this._clip){this._drawer.saveContext(n);var h=this.imageToViewportRectangle(this._clip,!0);h=h.rotate(-this.getRotation(!0),this._getRotationPoint(!0));var d=this._drawer.viewportToDrawerRectangle(h);i&&(d=d.times(i)),o&&(d=d.translate(o)),this._drawer.setClip(d,n),u=!0}if(this._croppingPolygons){var f=this;this._drawer.saveContext(n);try{var p=this._croppingPolygons.map((function(e){return e.map((function(e){var t=f.imageToViewportCoordinates(e.x,e.y,!0).rotate(-f.getRotation(!0),f._getRotationPoint(!0)),n=f._drawer.viewportCoordToDrawerCoord(t);return i&&(n=n.times(i)),n}))}));this._drawer.clipWithPolygons(p,n)}catch(x){e.console.error(x)}u=!0}if(this.placeholderFillStyle&&!1===this._hasOpaqueTile){var g=this._drawer.viewportToDrawerRectangle(this.getBounds(!0));i&&(g=g.times(i)),o&&(g=g.translate(o));var m=null;m="function"===typeof this.placeholderFillStyle?this.placeholderFillStyle(this,this._drawer.context):this.placeholderFillStyle,this._drawer.drawRectangle(g,m,n)}var v=r(this.subPixelRoundingForTransparency),y=!1;if(v===e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS)y=!0;else if(v===e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST){var b=this.viewer&&this.viewer.isAnimating();y=!b}for(var w=t.length-1;w>=0;w--)s=t[w],this._drawer.drawTile(s,this._drawingHandler,n,i,o,y,this.source),s.beingDrawn=!0,this.viewer&&this.viewer.raiseEvent("tile-drawn",{tiledImage:this,tile:s});u&&this._drawer.restoreContext(n),i||(this.getRotation(!0)%360!==0&&this._drawer._restoreRotationChanges(n),this.viewport.getRotation(!0)%360!==0&&this._drawer._restoreRotationChanges(n)),n&&(i&&(this.viewport.getRotation(!0)%360!==0&&this._drawer._offsetForRotation({degrees:this.viewport.getRotation(!0),useSketch:!1}),this.getRotation(!0)%360!==0&&this._drawer._offsetForRotation({degrees:this.getRotation(!0),point:this.viewport.pixelFromPointNoRotate(this._getRotationPoint(!0),!0),useSketch:!1})),this._drawer.blendSketch({opacity:this.opacity,scale:i,translate:o,compositeOperation:this.compositeOperation,bounds:a}),i&&(this.getRotation(!0)%360!==0&&this._drawer._restoreRotationChanges(!1),this.viewport.getRotation(!0)%360!==0&&this._drawer._restoreRotationChanges(!1))),i||this.viewport.getRotation(!0)%360===0&&this.getRotation(!0)%360===0&&this._drawer.viewer.viewport.getFlip()&&this._drawer._flip(),this._drawDebugInfo(t)}},_drawDebugInfo:function(t){if(this.debugMode)for(var n=t.length-1;n>=0;n--){var i=t[n];try{this._drawer.drawDebugInfo(i,t.length,n,this)}catch(r){e.console.error(r)}}},_providesCoverage:function(e,t,n,i){var r,o,s,a;if(!e[t])return!1;if(void 0===n||void 0===i){for(s in r=e[t],r)if(Object.prototype.hasOwnProperty.call(r,s))for(a in o=r[s],o)if(Object.prototype.hasOwnProperty.call(o,a)&&!o[a])return!1;return!0}return void 0===e[t][n]||void 0===e[t][n][i]||!0===e[t][n][i]},_isCovered:function(e,t,n,i){return void 0===n||void 0===i?this._providesCoverage(e,t+1):this._providesCoverage(e,t+1,2*n,2*i)&&this._providesCoverage(e,t+1,2*n,2*i+1)&&this._providesCoverage(e,t+1,2*n+1,2*i)&&this._providesCoverage(e,t+1,2*n+1,2*i+1)},_setCoverage:function(t,n,i,r,o){t[n]?(t[n][i]||(t[n][i]={}),t[n][i][r]=o):e.console.warn("Setting coverage for a tile before its level's coverage has been reset: %s",n)},_resetCoverage:function(e,t){e[t]={}}});var t=e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER;function n(t){return t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ALWAYS&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.ONLY_AT_REST&&t!==e.SUBPIXEL_ROUNDING_OCCURRENCES.NEVER}function i(e){return n(e)?t:e}function r(r){if("number"===typeof r)return i(r);if(!r||!e.Browser)return t;var o=r[e.Browser.vendor];return n(o)&&(o=r["*"]),i(o)}}(s),function(e){var t=function(t){e.console.assert(t,"[TileCache.cacheTile] options is required"),e.console.assert(t.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(t.tiledImage,"[TileCache.cacheTile] options.tiledImage is required"),this.tile=t.tile,this.tiledImage=t.tiledImage},n=function(t){e.console.assert(t,"[ImageRecord] options is required"),e.console.assert(t.data,"[ImageRecord] options.data is required"),this._tiles=[],t.create.apply(null,[this,t.data,t.ownerTile]),this._destroyImplementation=t.destroy.bind(null,this),this.getImage=t.getImage.bind(null,this),this.getData=t.getData.bind(null,this),this.getRenderedContext=t.getRenderedContext.bind(null,this)};n.prototype={destroy:function(){this._destroyImplementation(),this._tiles=null},addTile:function(t){e.console.assert(t,"[ImageRecord.addTile] tile is required"),this._tiles.push(t)},removeTile:function(t){for(var n=0;n<this._tiles.length;n++)if(this._tiles[n]===t)return void this._tiles.splice(n,1);e.console.warn("[ImageRecord.removeTile] trying to remove unknown tile",t)},getTileCount:function(){return this._tiles.length}},e.TileCache=function(t){t=t||{},this._maxImageCacheCount=t.maxImageCacheCount||e.DEFAULT_SETTINGS.maxImageCacheCount,this._tilesLoaded=[],this._imagesLoaded=[],this._imagesLoadedCount=0},e.TileCache.prototype={numTilesLoaded:function(){return this._tilesLoaded.length},cacheTile:function(i){e.console.assert(i,"[TileCache.cacheTile] options is required"),e.console.assert(i.tile,"[TileCache.cacheTile] options.tile is required"),e.console.assert(i.tile.cacheKey,"[TileCache.cacheTile] options.tile.cacheKey is required"),e.console.assert(i.tiledImage,"[TileCache.cacheTile] options.tiledImage is required");var r=i.cutoff||0,o=this._tilesLoaded.length,s=this._imagesLoaded[i.tile.cacheKey];if(s||(i.data||(e.console.error("[TileCache.cacheTile] options.image was renamed to options.data. '.image' attribute has been deprecated and will be removed in the future."),i.data=i.image),e.console.assert(i.data,"[TileCache.cacheTile] options.data is required to create an ImageRecord"),s=this._imagesLoaded[i.tile.cacheKey]=new n({data:i.data,ownerTile:i.tile,create:i.tiledImage.source.createTileCache,destroy:i.tiledImage.source.destroyTileCache,getImage:i.tiledImage.source.getTileCacheDataAsImage,getData:i.tiledImage.source.getTileCacheData,getRenderedContext:i.tiledImage.source.getTileCacheDataAsContext2D}),this._imagesLoadedCount++),s.addTile(i.tile),i.tile.cacheImageRecord=s,this._imagesLoadedCount>this._maxImageCacheCount){for(var a,l,c,u,h,d,f=null,p=-1,g=null,m=this._tilesLoaded.length-1;m>=0;m--)d=this._tilesLoaded[m],a=d.tile,a.level<=r||a.beingDrawn||(f?(u=a.lastTouchTime,l=f.lastTouchTime,h=a.level,c=f.level,(u<l||u===l&&h>c)&&(f=a,p=m,g=d)):(f=a,p=m,g=d));f&&p>=0&&(this._unloadTile(g),o=p)}this._tilesLoaded[o]=new t({tile:i.tile,tiledImage:i.tiledImage})},clearTilesFor:function(t){var n;e.console.assert(t,"[TileCache.clearTilesFor] tiledImage is required");for(var i=0;i<this._tilesLoaded.length;++i)n=this._tilesLoaded[i],n.tiledImage===t&&(this._unloadTile(n),this._tilesLoaded.splice(i,1),i--)},getImageRecord:function(t){return e.console.assert(t,"[TileCache.getImageRecord] cacheKey is required"),this._imagesLoaded[t]},_unloadTile:function(t){e.console.assert(t,"[TileCache._unloadTile] tileRecord is required");var n=t.tile,i=t.tiledImage;n.unload(),n.cacheImageRecord=null;var r=this._imagesLoaded[n.cacheKey];r.removeTile(n),r.getTileCount()||(r.destroy(),delete this._imagesLoaded[n.cacheKey],this._imagesLoadedCount--),i.viewer.raiseEvent("tile-unloaded",{tile:n,tiledImage:i})}}}(s),function(e){e.World=function(t){var n=this;e.console.assert(t.viewer,"[World] options.viewer is required"),e.EventSource.call(this),this.viewer=t.viewer,this._items=[],this._needsDraw=!1,this._autoRefigureSizes=!0,this._needsSizesFigured=!1,this._delegatedFigureSizes=function(e){n._autoRefigureSizes?n._figureSizes():n._needsSizesFigured=!0},this._figureSizes()},e.extend(e.World.prototype,e.EventSource.prototype,{addItem:function(t,n){if(e.console.assert(t,"[World.addItem] item is required"),e.console.assert(t instanceof e.TiledImage,"[World.addItem] only TiledImages supported at this time"),n=n||{},void 0!==n.index){var i=Math.max(0,Math.min(this._items.length,n.index));this._items.splice(i,0,t)}else this._items.push(t);this._autoRefigureSizes?this._figureSizes():this._needsSizesFigured=!0,this._needsDraw=!0,t.addHandler("bounds-change",this._delegatedFigureSizes),t.addHandler("clip-change",this._delegatedFigureSizes),this.raiseEvent("add-item",{item:t})},getItemAt:function(t){return e.console.assert(void 0!==t,"[World.getItemAt] index is required"),this._items[t]},getIndexOfItem:function(t){return e.console.assert(t,"[World.getIndexOfItem] item is required"),e.indexOf(this._items,t)},getItemCount:function(){return this._items.length},setItemIndex:function(t,n){e.console.assert(t,"[World.setItemIndex] item is required"),e.console.assert(void 0!==n,"[World.setItemIndex] index is required");var i=this.getIndexOfItem(t);if(n>=this._items.length)throw new Error("Index bigger than number of layers.");n!==i&&-1!==i&&(this._items.splice(i,1),this._items.splice(n,0,t),this._needsDraw=!0,this.raiseEvent("item-index-change",{item:t,previousIndex:i,newIndex:n}))},removeItem:function(t){e.console.assert(t,"[World.removeItem] item is required");var n=e.indexOf(this._items,t);-1!==n&&(t.removeHandler("bounds-change",this._delegatedFigureSizes),t.removeHandler("clip-change",this._delegatedFigureSizes),t.destroy(),this._items.splice(n,1),this._figureSizes(),this._needsDraw=!0,this._raiseRemoveItem(t))},removeAll:function(){var e,t;for(this.viewer._cancelPendingImages(),t=0;t<this._items.length;t++)e=this._items[t],e.removeHandler("bounds-change",this._delegatedFigureSizes),e.removeHandler("clip-change",this._delegatedFigureSizes),e.destroy();var n=this._items;for(this._items=[],this._figureSizes(),this._needsDraw=!0,t=0;t<n.length;t++)e=n[t],this._raiseRemoveItem(e)},resetItems:function(){for(var e=0;e<this._items.length;e++)this._items[e].reset()},update:function(){for(var e=!1,t=0;t<this._items.length;t++)e=this._items[t].update()||e;return e},draw:function(){for(var e=0;e<this._items.length;e++)this._items[e].draw();this._needsDraw=!1},needsDraw:function(){for(var e=0;e<this._items.length;e++)if(this._items[e].needsDraw())return!0;return this._needsDraw},getHomeBounds:function(){return this._homeBounds.clone()},getContentFactor:function(){return this._contentFactor},setAutoRefigureSizes:function(e){this._autoRefigureSizes=e,e&this._needsSizesFigured&&(this._figureSizes(),this._needsSizesFigured=!1)},arrange:function(t){t=t||{};var n,i=t.immediately||!1,r=t.layout||e.DEFAULT_SETTINGS.collectionLayout,o=t.rows||e.DEFAULT_SETTINGS.collectionRows,s=t.columns||e.DEFAULT_SETTINGS.collectionColumns,a=t.tileSize||e.DEFAULT_SETTINGS.collectionTileSize,l=t.tileMargin||e.DEFAULT_SETTINGS.collectionTileMargin,c=a+l;n=!t.rows&&s?s:Math.ceil(this._items.length/o);var u,h,d,f,p,g=0,m=0;this.setAutoRefigureSizes(!1);for(var v=0;v<this._items.length;v++)v&&v%n===0&&("horizontal"===r?(m+=c,g=0):(g+=c,m=0)),u=this._items[v],h=u.getBounds(),d=h.width>h.height?a:a*(h.width/h.height),f=d*(h.height/h.width),p=new e.Point(g+(a-d)/2,m+(a-f)/2),u.setPosition(p,i),u.setWidth(d,i),"horizontal"===r?g+=c:m+=c;this.setAutoRefigureSizes(!0)},_figureSizes:function(){var t=this._homeBounds?this._homeBounds.clone():null,n=this._contentSize?this._contentSize.clone():null,i=this._contentFactor||0;if(this._items.length){var r=this._items[0],o=r.getBounds();this._contentFactor=r.getContentSize().x/o.width;for(var s=r.getClippedBounds().getBoundingBox(),a=s.x,l=s.y,c=s.x+s.width,u=s.y+s.height,h=1;h<this._items.length;h++)r=this._items[h],o=r.getBounds(),this._contentFactor=Math.max(this._contentFactor,r.getContentSize().x/o.width),s=r.getClippedBounds().getBoundingBox(),a=Math.min(a,s.x),l=Math.min(l,s.y),c=Math.max(c,s.x+s.width),u=Math.max(u,s.y+s.height);this._homeBounds=new e.Rect(a,l,c-a,u-l),this._contentSize=new e.Point(this._homeBounds.width*this._contentFactor,this._homeBounds.height*this._contentFactor)}else this._homeBounds=new e.Rect(0,0,1,1),this._contentSize=new e.Point(1,1),this._contentFactor=1;this._contentFactor===i&&this._homeBounds.equals(t)&&this._contentSize.equals(n)||this.raiseEvent("metrics-change",{})},_raiseRemoveItem:function(e){this.raiseEvent("remove-item",{item:e})}})}(s)},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ab36:function(e,t,n){var i=n("861d"),r=n("9112");e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},abc5:function(e,t,n){"use strict";(function(e){function i(){return r().__VUE_DEVTOOLS_GLOBAL_HOOK__}function r(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof e?e:{}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));const o="function"===typeof Proxy}).call(this,n("c8ba"))},ac16:function(e,t,n){var i=n("23e7"),r=n("825a"),o=n("06cf").f;i({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}))},ae93:function(e,t,n){"use strict";var i,r,o,s=n("d039"),a=n("1626"),l=n("7c73"),c=n("e163"),u=n("6eeb"),h=n("b622"),d=n("c430"),f=h("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(r=c(c(o)),r!==Object.prototype&&(i=r)):p=!0);var g=void 0==i||s((function(){var e={};return i[f].call(e)!==e}));g?i={}:d&&(i=l(i)),a(i[f])||u(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},aed9:function(e,t,n){var i=n("83ab"),r=n("d039");e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(e,t,n){var i=n("83ab"),r=n("5e77").EXISTS,o=n("e330"),s=n("9bf2").f,a=Function.prototype,l=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec),h="name";i&&!r&&s(a,h,{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),s=n("30b5"),a=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");e.exports=function(e){return new Promise((function(t,n){var h=e.data,d=e.headers,f=e.responseType;i.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+m)}var v=a(e.baseURL,e.url);function y(){if(p){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=f&&"text"!==f&&"json"!==f?p.response:p.responseText,s={data:o,status:p.status,statusText:p.statusText,headers:i,config:e,request:p};r(t,n,s),p=null}}if(p.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&i.forEach(d,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),h||(h=null),p.send(h)}))}},b575:function(e,t,n){var i,r,o,s,a,l,c,u,h=n("da84"),d=n("0366"),f=n("06cf").f,p=n("2cf4").set,g=n("1cdc"),m=n("d4c3"),v=n("a4b4"),y=n("605d"),b=h.MutationObserver||h.WebKitMutationObserver,w=h.document,x=h.process,_=h.Promise,T=f(h,"queueMicrotask"),S=T&&T.value;S||(i=function(){var e,t;y&&(e=x.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?s():o=void 0,n}}o=void 0,e&&e.enter()},g||y||v||!b||!w?!m&&_&&_.resolve?(c=_.resolve(void 0),c.constructor=_,u=d(c.then,c),s=function(){u(i)}):y?s=function(){x.nextTick(i)}:(p=d(p,h),s=function(){p(i)}):(a=!0,l=w.createTextNode(""),new b(i).observe(l,{characterData:!0}),s=function(){l.data=a=!a})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,s()),o=t}},b622:function(e,t,n){var i=n("da84"),r=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("4930"),l=n("fdbf"),c=r("wks"),u=i.Symbol,h=u&&u["for"],d=l?u:u&&u.withoutSetter||s;e.exports=function(e){if(!o(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&o(u,e)?c[e]=u[e]:c[e]=l&&h?h(t):d(t)}return c[e]}},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),o=n("df75"),s=n("d039"),a=s((function(){o(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return o(r(e))}})},b727:function(e,t,n){var i=n("0366"),r=n("e330"),o=n("44ad"),s=n("7b0b"),a=n("07fa"),l=n("65f0"),c=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,h=6==e,d=7==e,f=5==e||h;return function(p,g,m,v){for(var y,b,w=s(p),x=o(w),_=i(g,m),T=a(x),S=0,O=v||l,E=t?O(p,T):n||d?O(p,0):void 0;T>S;S++)if((f||S in x)&&(y=x[S],b=_(y,S,w),e))if(t)E[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:c(E,y)}else switch(e){case 4:return!1;case 7:c(E,y)}return h?-1:r||u?u:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b980:function(e,t,n){var i=n("d039"),r=n("5c6c");e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(e,t,n){e.exports=n("cee4")},bee2:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"a",(function(){return r}))},c04e:function(e,t,n){var i=n("da84"),r=n("c65b"),o=n("861d"),s=n("d9b5"),a=n("dc4a"),l=n("485a"),c=n("b622"),u=i.TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var n,i=a(e,h);if(i){if(void 0===t&&(t="default"),n=r(i,e,t),!o(n)||s(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},c345:function(e,t,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c401:function(e,t,n){"use strict";var i=n("c532"),r=n("2444");e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},c430:function(e,t){e.exports=!1},c532:function(e,t,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(e){return"[object Array]"===r.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function h(e){return"string"===typeof e}function d(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===r.call(e)}function m(e){return"[object File]"===r.call(e)}function v(e){return"[object Blob]"===r.call(e)}function y(e){return"[object Function]"===r.call(e)}function b(e){return f(e)&&y(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function T(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)T(arguments[n],t);return e}function O(e,t,n){return T(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function E(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:h,isNumber:d,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:v,isFunction:y,isStream:b,isURLSearchParams:w,isStandardBrowserEnv:_,forEach:T,merge:S,extend:O,trim:x,stripBOM:E}},c607:function(e,t,n){var i=n("da84"),r=n("83ab"),o=n("fce3"),s=n("c6b6"),a=n("9bf2").f,l=n("69f3").get,c=RegExp.prototype,u=i.TypeError;r&&o&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===s(this))return!!l(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},c60d:function(e,t,n){var i=n("1a2d");e.exports=function(e){return void 0!==e&&(i(e,"value")||i(e,"writable"))}},c65b:function(e,t,n){var i=n("40d5"),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(e,t,n){var i=n("e330"),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",s=i[o]||r(o,{});e.exports=s},c740:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,o=n("44d2"),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},c770:function(e,t,n){var i=n("e330"),r=i("".replace),o=function(e){return String(Error(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,a=s.test(o);e.exports=function(e,t){if(a&&"string"==typeof e)while(t--)e=r(e,s,"");return e}},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var i=n("e330"),r=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=o(e),c=0,u=[];for(n in i)!r(a,n)&&r(i,n)&&l(u,n);while(t.length>c)r(i,n=t[c++])&&(~s(u,n)||l(u,n));return u}},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,o=n("44d2");i({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),o=i.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),o=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},ce1f:function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return C}));var i=n("7a23");
/**
  * vue-class-component v8.0.0-rc.1
  * (c) 2015-present Evan You
  * @license MIT
  */function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?p(e):t}function m(e){var t=f();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return g(this,n)}}function v(e){return y(e)||b(e)||w(e)||_()}function y(e){if(Array.isArray(e))return x(e)}function b(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function w(e,t){if(e){if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1,configurable:!0})}function S(e,t,n){Object.defineProperty(e,t,{get:function(){return n[t].value},set:function(e){n[t].value=e},enumerable:!0,configurable:!0})}function O(e){var t=Object.getPrototypeOf(e.prototype);if(t)return t.constructor}function E(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var P=function(){function e(t,n){var i=this;r(this,e),T(this,"$props",(function(){return t})),T(this,"$attrs",(function(){return n.attrs})),T(this,"$slots",(function(){return n.slots})),T(this,"$emit",(function(){return n.emit})),Object.keys(t).forEach((function(e){Object.defineProperty(i,e,{enumerable:!1,configurable:!0,writable:!0,value:t[e]})}))}return s(e,null,[{key:"registerHooks",value:function(e){var t;(t=this.__h).push.apply(t,v(e))}},{key:"with",value:function(e){var t=new e,n={};Object.keys(t).forEach((function(e){var i=t[e];n[e]=null!==i&&void 0!==i?i:null}));var i=function(e){u(n,e);var t=m(n);function n(){return r(this,n),t.apply(this,arguments)}return n}(this);return i.__b={props:n},i}},{key:"__vccOpts",get:function(){if(this===C)return{};var e=this,t=E(e,"__c");if(t)return t;var n=c({},E(e,"__o"));e.__c=n;var r=O(e);r&&(n["extends"]=r.__vccOpts);var o=E(e,"__b");o&&(n.mixins=n.mixins||[],n.mixins.unshift(o)),n.methods=c({},n.methods),n.computed=c({},n.computed);var s=e.prototype;Object.getOwnPropertyNames(s).forEach((function(t){if("constructor"!==t)if(e.__h.indexOf(t)>-1)n[t]=s[t];else{var i=Object.getOwnPropertyDescriptor(s,t);"function"!==typeof i.value?(i.get||i.set)&&(n.computed[t]={get:i.get,set:i.set}):n.methods[t]=i.value}})),n.setup=function(t,n){var r,o=new e(t,n),s=Object.keys(o),a={},l=null;return s.forEach((function(e){void 0===o[e]||o[e]&&o[e].__s||(a[e]=Object(i["H"])(o[e]),S(o,e,a))})),s.forEach((function(e){if(o[e]&&o[e].__s){var t=o[e].__s();t instanceof Promise?(l||(l=Promise.resolve(a)),l=l.then((function(){return t.then((function(t){return a[e]=Object(i["E"])(t),a}))}))):a[e]=Object(i["E"])(t)}})),null!==(r=l)&&void 0!==r?r:a};var a=E(e,"__d");a&&a.forEach((function(e){return e(n)}));var l=["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"];return l.forEach((function(t){e[t]&&(n[t]=e[t])})),n}}]),e}();P.__h=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var C=P;function k(e){return function(t){return t.__o=e,t}}},ce4e:function(e,t,n){var i=n("da84"),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},cee4:function(e,t,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n}var c=l(a);c.Axios=o,c.create=function(e){return l(s(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),r=n("1626"),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("e330"),r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),r=n("6eeb"),o=n("b041");i||r(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var i=n("9bf2").f,r=n("1a2d"),o=n("b622"),s=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,s)&&i(e,s,{configurable:!0,value:t})}},d4c3:function(e,t,n){var i=n("342f"),r=n("da84");e.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},d4ec:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d9e2");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},d784:function(e,t,n){"use strict";n("ac1f");var i=n("e330"),r=n("6eeb"),o=n("9263"),s=n("d039"),a=n("b622"),l=n("9112"),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,h){var d=a(e),f=!s((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!p||n){var g=i(/./[d]),m=t(d,""[e],(function(e,t,n,r,s){var a=i(e),l=t.exec;return l===o||l===u.exec?f&&!s?{done:!0,value:g(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(u,d,m[1])}h&&l(u[d],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),s=o("map");i({target:"Array",proto:!0,forced:!s},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n}},d9b5:function(e,t,n){var i=n("da84"),r=n("d066"),o=n("1626"),s=n("3a9b"),a=n("fdbf"),l=i.Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&s(t.prototype,l(e))}},d9e2:function(e,t,n){var i=n("23e7"),r=n("da84"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",l=r[a],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=s(e,t,c),i({global:!0,forced:c},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,c),i({target:a,stat:!0,forced:c},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),o=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=s(e),r=a.f,c=o(i),u={},h=0;while(c.length>h)n=r(i,t=c[h++]),void 0!==n&&l(u,t,n);return u}})},dc4a:function(e,t,n){var i=n("59ed");e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},dca8:function(e,t,n){var i=n("23e7"),r=n("bb2f"),o=n("d039"),s=n("861d"),a=n("f183").onFreeze,l=Object.freeze,c=o((function(){l(1)}));i({target:"Object",stat:!0,forced:c,sham:!r},{freeze:function(e){return l&&s(e)?l(a(e)):e}})},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("785a"),s=n("e260"),a=n("9112"),l=n("b622"),c=l("iterator"),u=l("toStringTag"),h=s.values,d=function(e,t){if(e){if(e[c]!==h)try{a(e,c,h)}catch(i){e[c]=h}if(e[u]||a(e,u,t),r[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(i){e[n]=s[n]}}};for(var f in r)d(i[f]&&i[f].prototype,f);d(o,"DOMTokenList")},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),o=i(n.split("/")),s=Math.min(r.length,o.length),a=s,l=0;l<s;l++)if(r[l]!==o[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(r=!1,i=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("da84"),s=n("e330"),a=n("1a2d"),l=n("1626"),c=n("3a9b"),u=n("577e"),h=n("9bf2").f,d=n("e893"),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};d(m,f),m.prototype=p,p.constructor=m;var v="Symbol(test)"==String(f("test")),y=s(p.toString),b=s(p.valueOf),w=/^Symbol\((.*)\)[^)]+$/,x=s("".replace),_=s("".slice);h(p,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(a(g,e))return"";var n=v?_(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:m})}},e163:function(e,t,n){var i=n("da84"),r=n("1a2d"),o=n("1626"),s=n("7b0b"),a=n("f772"),l=n("e177"),c=a("IE_PROTO"),u=i.Object,h=u.prototype;e.exports=l?u.getPrototypeOf:function(e){var t=s(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?h:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),o=n("3f8c"),s=n("69f3"),a=n("9bf2").f,l=n("7dd0"),c=n("c430"),u=n("83ab"),h="Array Iterator",d=s.set,f=s.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");var p=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!c&&u&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(g){}},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e330:function(e,t,n){var i=n("40d5"),r=Function.prototype,o=r.bind,s=r.call,a=i&&o.bind(s,s);e.exports=i?function(e){return e&&a(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},e391:function(e,t,n){var i=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),o=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=r((function(){s(1)})),c=!a||l;i({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(o(e),t)}})},e538:function(e,t,n){var i=n("b622");t.f=i},e5cb:function(e,t,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),l=n("e893"),c=n("7156"),u=n("e391"),h=n("ab36"),d=n("c770"),f=n("b980"),p=n("c430");e.exports=function(e,t,n,g){var m=g?2:1,v=e.split("."),y=v[v.length-1],b=i.apply(null,v);if(b){var w=b.prototype;if(!p&&r(w,"cause")&&delete w.cause,!n)return b;var x=i("Error"),_=t((function(e,t){var n=u(g?t:e,void 0),i=g?new b(e):new b;return void 0!==n&&o(i,"message",n),f&&o(i,"stack",d(i.stack,2)),this&&s(w,this)&&c(i,this,_),arguments.length>m&&h(i,arguments[m]),i}));if(_.prototype=w,"Error"!==y&&(a?a(_,x):l(_,x,{name:!0})),l(_,b),!p)try{w.name!==y&&o(w,"name",y),w.constructor=_}catch(T){}return _}}},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var i,r,o,s,a=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),h=n("c65b"),d=n("fea9"),f=n("6eeb"),p=n("e2cc"),g=n("d2bb"),m=n("d44e"),v=n("2626"),y=n("59ed"),b=n("1626"),w=n("861d"),x=n("19aa"),_=n("8925"),T=n("2266"),S=n("1c7e"),O=n("4840"),E=n("2cf4").set,P=n("b575"),C=n("cdf9"),k=n("44de"),R=n("f069"),j=n("e667"),I=n("01b4"),D=n("69f3"),L=n("94ca"),F=n("b622"),A=n("6069"),N=n("605d"),M=n("2d00"),B=F("species"),H="Promise",z=D.getterFor(H),U=D.set,V=D.getterFor(H),W=d&&d.prototype,q=d,G=W,$=c.TypeError,Z=c.document,X=c.process,Y=R.f,K=Y,J=!!(Z&&Z.createEvent&&c.dispatchEvent),Q=b(c.PromiseRejectionEvent),ee="unhandledrejection",te="rejectionhandled",ne=0,ie=1,re=2,oe=1,se=2,ae=!1,le=L(H,(function(){var e=_(q),t=e!==String(q);if(!t&&66===M)return!0;if(l&&!G["finally"])return!0;if(M>=51&&/native code/.test(e))return!1;var n=new q((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))},r=n.constructor={};return r[B]=i,ae=n.then((function(){}))instanceof i,!ae||!t&&A&&!Q})),ce=le||!S((function(e){q.all(e)["catch"]((function(){}))})),ue=function(e){var t;return!(!w(e)||!b(t=e.then))&&t},he=function(e,t){var n,i,r,o=t.value,s=t.state==ie,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(t.rejection===se&&me(t),t.rejection=oe),!0===a?n=o:(u&&u.enter(),n=a(o),u&&(u.exit(),r=!0)),n===e.promise?c($("Promise-chain cycle")):(i=ue(n))?h(i,n,l,c):l(n)):c(o)}catch(d){u&&!r&&u.exit(),c(d)}},de=function(e,t){e.notified||(e.notified=!0,P((function(){var n,i=e.reactions;while(n=i.get())he(n,e);e.notified=!1,t&&!e.rejection&&pe(e)})))},fe=function(e,t,n){var i,r;J?(i=Z.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!Q&&(r=c["on"+e])?r(i):e===ee&&k("Unhandled promise rejection",n)},pe=function(e){h(E,c,(function(){var t,n=e.facade,i=e.value,r=ge(e);if(r&&(t=j((function(){N?X.emit("unhandledRejection",i,n):fe(ee,n,i)})),e.rejection=N||ge(e)?se:oe,t.error))throw t.value}))},ge=function(e){return e.rejection!==oe&&!e.parent},me=function(e){h(E,c,(function(){var t=e.facade;N?X.emit("rejectionHandled",t):fe(te,t,e.value)}))},ve=function(e,t,n){return function(i){e(t,i,n)}},ye=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=re,de(e,!0))},be=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $("Promise can't be resolved itself");var i=ue(t);i?P((function(){var n={done:!1};try{h(i,t,ve(be,n,e),ve(ye,n,e))}catch(r){ye(n,r,e)}})):(e.value=t,e.state=ie,de(e,!1))}catch(r){ye({done:!1},r,e)}}};if(le&&(q=function(e){x(this,G),y(e),h(i,this);var t=z(this);try{e(ve(be,t),ve(ye,t))}catch(n){ye(t,n)}},G=q.prototype,i=function(e){U(this,{type:H,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:ne,value:void 0})},i.prototype=p(G,{then:function(e,t){var n=V(this),i=Y(O(this,q));return n.parent=!0,i.ok=!b(e)||e,i.fail=b(t)&&t,i.domain=N?X.domain:void 0,n.state==ne?n.reactions.add(i):P((function(){he(i,n)})),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=z(e);this.promise=e,this.resolve=ve(be,t),this.reject=ve(ye,t)},R.f=Y=function(e){return e===q||e===o?new r(e):K(e)},!l&&b(d)&&W!==Object.prototype)){s=W.then,ae||(f(W,"then",(function(e,t){var n=this;return new q((function(e,t){h(s,n,e,t)})).then(e,t)}),{unsafe:!0}),f(W,"catch",G["catch"],{unsafe:!0}));try{delete W.constructor}catch(we){}g&&g(W,G)}a({global:!0,wrap:!0,forced:le},{Promise:q}),m(q,H,!1,!0),v(H),o=u(H),a({target:H,stat:!0,forced:le},{reject:function(e){var t=Y(this);return h(t.reject,void 0,e),t.promise}}),a({target:H,stat:!0,forced:l||le},{resolve:function(e){return C(l&&this===o?q:this,e)}}),a({target:H,stat:!0,forced:ce},{all:function(e){var t=this,n=Y(t),i=n.resolve,r=n.reject,o=j((function(){var n=y(t.resolve),o=[],s=0,a=1;T(e,(function(e){var l=s++,c=!1;a++,h(n,t,e).then((function(e){c||(c=!0,o[l]=e,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=Y(t),i=n.reject,r=j((function(){var r=y(t.resolve);T(e,(function(e){h(r,t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},e893:function(e,t,n){var i=n("1a2d"),r=n("56ef"),o=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var a=r(t),l=s.f,c=o.f,u=0;u<a.length;u++){var h=a[u];i(e,h)||n&&i(n,h)||l(e,h,c(t,h))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),o=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[o]===e)}},e9c4:function(e,t,n){var i=n("23e7"),r=n("da84"),o=n("d066"),s=n("2ba4"),a=n("e330"),l=n("d039"),c=r.Array,u=o("JSON","stringify"),h=a(/./.exec),d=a("".charAt),f=a("".charCodeAt),p=a("".replace),g=a(1..toString),m=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,b=function(e,t,n){var i=d(n,t-1),r=d(n,t+1);return h(v,e)&&!h(y,r)||h(y,e)&&!h(v,i)?"\\u"+g(f(e,0),16):e},w=l((function(){return'"\\udf06\\ud834"'!==u("\udf06\ud834")||'"\\udead"'!==u("\udead")}));u&&i({target:"JSON",stat:!0,forced:w},{stringify:function(e,t,n){for(var i=0,r=arguments.length,o=c(r);i<r;i++)o[i]=arguments[i];var a=s(u,null,o);return"string"==typeof a?p(a,m,b):a}})},f069:function(e,t,n){"use strict";var i=n("59ed"),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},f183:function(e,t,n){var i=n("23e7"),r=n("e330"),o=n("d012"),s=n("861d"),a=n("1a2d"),l=n("9bf2").f,c=n("241c"),u=n("057f"),h=n("4fad"),d=n("90e3"),f=n("bb2f"),p=!1,g=d("meta"),m=0,v=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,g)){if(!h(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},b=function(e,t){if(!a(e,g)){if(!h(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},w=function(e){return f&&p&&h(e)&&!a(e,g)&&v(e),e},x=function(){_.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===g){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},_=e.exports={enable:x,fastKey:y,getWeakData:b,onFreeze:w};o[g]=!0},f36a:function(e,t,n){var i=n("e330");e.exports=i([].slice)},f5df:function(e,t,n){var i=n("da84"),r=n("00ee"),o=n("1626"),s=n("c6b6"),a=n("b622"),l=a("toStringTag"),c=i.Object,u="Arguments"==s(function(){return arguments}()),h=function(e,t){try{return e[t]}catch(n){}};e.exports=r?s:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=h(t=c(e),l))?n:u?s(t):"Object"==(i=s(t))&&o(t.callee)?"Arguments":i}},f6b4:function(e,t,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},f83d:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return T})),n.d(t,"j",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"l",(function(){return x})),n.d(t,"m",(function(){return c})),n.d(t,"n",(function(){return S})),n.d(t,"o",(function(){return P})),n.d(t,"p",(function(){return h})),n.d(t,"q",(function(){return _})),n.d(t,"r",(function(){return s})),n.d(t,"s",(function(){return C})),n.d(t,"t",(function(){return f}));const i=/\{([0-9a-zA-Z]+)\}/g;function r(e,...t){return 1===t.length&&S(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(i,(e,n)=>t.hasOwnProperty(n)?t[n]:"")}const o="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,s=e=>o?Symbol(e):e,a=(e,t,n)=>l({l:e,k:t,s:n}),l=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),c=e=>"number"===typeof e&&isFinite(e),u=e=>"[object Date]"===E(e),h=e=>"[object RegExp]"===E(e),d=e=>P(e)&&0===Object.keys(e).length;function f(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const p=Object.assign;let g;const m=()=>g||(g="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{});function v(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}const w=Array.isArray,x=e=>"function"===typeof e,_=e=>"string"===typeof e,T=e=>"boolean"===typeof e,S=e=>null!==e&&"object"===typeof e,O=Object.prototype.toString,E=e=>O.call(e),P=e=>"[object Object]"===E(e),C=e=>null==e?"":w(e)||P(e)&&e.toString===O?JSON.stringify(e,null,2):String(e);function k(){const e=new Map,t={events:e,on(t,n){const i=e.get(t),r=i&&i.push(n);r||e.set(t,[n])},off(t,n){const i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get("*")||[]).slice().map(e=>e(t,n))}};return t}}).call(this,n("c8ba"))},f8c9:function(e,t,n){var i=n("23e7"),r=n("da84"),o=n("d44e");i({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("e8b5"),s=n("68ee"),a=n("861d"),l=n("23cb"),c=n("07fa"),u=n("fc6a"),h=n("8418"),d=n("b622"),f=n("1dde"),p=n("f36a"),g=f("slice"),m=d("species"),v=r.Array,y=Math.max;i({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,i,r,d=u(this),f=c(d),g=l(e,f),b=l(void 0===t?f:t,f);if(o(d)&&(n=d.constructor,s(n)&&(n===v||o(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===v||void 0===n))return p(d,g,b);for(i=new(void 0===n?v:n)(y(b-g,0)),r=0;g<b;g++,r++)g in d&&h(i,r,d[g]);return i.length=r,i}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fce3:function(e,t,n){var i=n("d039"),r=n("da84"),o=r.RegExp;e.exports=i((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise}}]);
//# sourceMappingURL=chunk-vendors.71e77ae9.js.map