PageSourceSearch

https://www.dfrobot.com/_nuxt/app.90dd07f.js

js dfrobot.com collected 2026-09-24 08:36:57 UTC 1,488,858 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[10],[function(e,t,n){"use strict";n.d(t,"k",(function(){return _})),n.d(t,"m",(function(){return y})),n.d(t,"l",(function(){return w})),n.d(t,"e",(function(){return x})),n.d(t,"b",(function(){return S})),n.d(t,"s",(function(){return T})),n.d(t,"g",(function(){return E})),n.d(t,"h",(function(){return M})),n.d(t,"d",(function(){return A})),n.d(t,"r",(function(){return C})),n.d(t,"j",(function(){return R})),n.d(t,"t",(function(){return O})),n.d(t,"o",(function(){return L})),n.d(t,"q",(function(){return I})),n.d(t,"f",(function(){return N})),n.d(t,"c",(function(){return D})),n.d(t,"i",(function(){return U})),n.d(t,"p",(function(){return F})),n.d(t,"a",(function(){return G})),n.d(t,"n",(function(){return X}));n(35),n(68),n(77),n(24),n(34),n(28),n(67),n(46),n(159),n(85),n(37),n(125),n(61),n(18),n(50),n(51),n(36),n(14),n(160),n(21),n(22),n(272),n(52),n(60),n(127),n(58),n(323),n(53),n(70),n(29),n(62);var r=n(12),o=n(27),c=(n(26),n(2)),l=n(8),h=n(1);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(Object(source),!0).forEach((function(t){Object(l.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function m(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(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,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _(e){h.a.config.errorHandler&&h.a.config.errorHandler(e)}function y(e){return e.then((function(e){return e.default||e}))}function w(e){return e.$options&&"function"==typeof e.$options.fetch&&!e.$options.fetch.length}function x(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.$children||[],o=m(r);try{for(o.s();!(t=o.n()).done;){var c=t.value;c.$fetch?n.push(c):c.$children&&x(c,n)}}catch(e){o.e(e)}finally{o.f()}return n}function S(e,t){if(t||!e.options.__hasNuxtData){var n=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=n,e.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),d(d({},data),t)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function T(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=h.a.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],e.matched.map((function(e,r){return Object.keys(e[n]).map((function(o){return t&&t.push(r),e[n][o]}))})))}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return E(e,t,"instances")}function A(e,t){return Array.prototype.concat.apply([],e.matched.map((function(e,n){return Object.keys(e.components).reduce((function(r,o){return e.components[o]?r.push(t(e.components[o],e.instances[o],e,o,n)):delete e.components[o],r}),[])})))}function C(e,t){return Promise.all(A(e,function(){var e=Object(c.a)(regeneratorRuntime.mark((function e(n,r,o,c){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n||n.options){e.next=4;break}return e.next=3,n();case 3:n=e.sent;case 4:return o.components[c]=n=T(n),e.abrupt("return","function"==typeof t?t(n,r,o,c):n);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}()))}function R(e){return k.apply(this,arguments)}function k(){return(k=Object(c.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,C(t);case 4:return e.abrupt("return",d(d({},t),{},{meta:E(t).map((function(e,n){return d(d({},e.options.meta),(t.matched[n]||{}).meta)}))}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return P.apply(this,arguments)}function P(){return(P=Object(c.a)(regeneratorRuntime.mark((function e(t,n){var c,l,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.context||(t.context={isStatic:!1,isDev:!1,isHMR:!1,app:t,store:t.store,payload:n.payload,error:n.error,base:"/",env:{NODE_ENV:"production",mobileview:!0,platform:"dfrobot",canonical:"https://www.dfrobot.com",imgdomain:"https://dfimg.dfrobot.com/",cmsimgdomain:"https://img.dfrobot.com.cn/",shopdomaindev:"https://test.dfrobot.com",shopdomain:"https://www.dfrobot.com",domain_u
2c:"https://api.dfrobot.com",domain_shop_new:"https://www.dfrobot.com",domain_shop_local:"http://svc-shop-en-api.df.svc.cluster.local",domain_cms:"https://cms.dfrobot.com",domain_cms_local:"http://svc-cms-api-go.df.svc.cluster.local",domain_wiki:"https://wiki-manage.dfrobot.com"}},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),n.ssrContext&&(t.context.ssrContext=n.ssrContext),t.context.redirect=function(e,path,n){if(e){t.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof e||"undefined"!==r&&"object"!==r||(n=path||{},path=e,r=Object(o.a)(path),e=302),"object"===r&&(path=t.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=W(path,n),window.location.replace(path),new Error("ERR_REDIRECT");t.context.next({path:path,query:n,status:e})}},t.context.nuxtState=window.__NUXT__),e.next=3,Promise.all([R(n.route),R(n.from)]);case 3:c=e.sent,l=Object(r.a)(c,2),h=l[0],f=l[1],n.route&&(t.context.route=h),n.from&&(t.context.from=f),t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!1,t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{};case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e,t){return!e.length||t._redirected||t._errored?Promise.resolve():I(e[0],t).then((function(){return L(e.slice(1),t)}))}function I(e,t){var n;return(n=2===e.length?new Promise((function(n){e(t,(function(e,data){e&&t.error(e),n(data=data||{})}))})):e(t))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function N(base,e){var path=decodeURI(window.location.pathname);return"hash"===e?window.location.hash.replace(/^#\//,""):(base&&(path.endsWith("/")?path:path+"/").startsWith(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function D(e,t){return function(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===Object(o.a)(e[i])&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",j(t)));return function(t,r){for(var path="",data=t||{},o=(r||{}).pretty?z:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!=typeof l){var h=data[l.name||"pathMatch"],f=void 0;if(null==h){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Array.isArray(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(f=o(h[d]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");path+=(0===d?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?z(h,!0):o(h),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');path+=l.prefix+f}}else path+=l}return path}}(function(e,t){var n,r=[],o=0,c=0,path="",l=t&&t.delimiter||"/";for(;null!=(n=B.exec(e));){var h=n[0],f=n[1],d=n.index;if(path+=e.slice(c,d),c=d+h.length,f)path+=f[1];else{var m=e[c],v=n[2],_=n[3],y=n[4],w=n[5],x=n[6],S=n[7];path&&(r.push(path),path="");var T=null!=v&&null!=m&&m!==v,E="+"===x||"*"===x,M="?"===x||"*"===x,A=n[2]||l,pattern=y||w;r.push({name:_||o++,prefix:v||"",delimiter:A,optional:M,repeat:E,partial:T,asterisk:Boolean(S),pattern:pattern?V(pattern):S?".*":"[^"+H(A)+"]+?"})}}c<e.length&&(path+=e.substr(c));path&&r.push(path);return r}(e,t),t)}function U(e,t){var n={},r=d(d({},e),t);for(var o in r)String(e[o])!==String(t[o])&&(n[o]=!0);return n}function F(e){var t;if(e.message||"string"==typeof e)t=e.message||e;else try{t=JSON.stringify(e,null,2)}catch(n){t="[".concat(e.constructor.name,"]")}return d(d({},e),{},{message:t,statusCode:e.statusCode||e.status||e.response&&e.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(e){window.onNuxtReadyCbs.push(e)};var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function z(e,t){var n=t?/[?#]/g:/[/?#]/g;return encodeURI(e).replace(n,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function H(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function V(e){return e.replace(/([=!:$/()])/g,"\\$1")}function j(e){return e&&e.sensitive?"":"i"}function W(e,t){var n,o=e.indexOf("://");-1!==o?(n=e.substring(0,o),e=e.substring(o+3)):e.startsWith("//")&&(e=e.substring(2));var c,l=e.split("/"),h=(n?n+"://":"//")+l.shift(),path=l.join("/");if(""===path&&1===l.length&&(h+="/"),2===(l=path.split("#")).length){var f=l,d=Object(r.a)(f,2);path=d[0],c=d[1]}return h+=path?"/"+path:"",t&&"{}"!==JSON.stringify(t)&&(h+=(2===e.split("?").length?"&":"?")+function(e){return Object.keys(e).sort().map((function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map((function(e){return[t,"=",e].join("")})).join("&"):t+"="+n}
2)).filter(Boolean).join("&")}(t)),h+=c?"#"+c:""}function G(e,t,n){e.$options[t]||(e.$options[t]=[]),e.$options[t].includes(n)||e.$options[t].push(n)}function $(path){return path.replace(/\/+$/,"")||"/"}function X(e,t){return $(e)===$(t)}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"n",(function(){return _})),n.d(t,"h",(function(){return y})),n.d(t,"d",(function(){return w})),n.d(t,"o",(function(){return x})),n.d(t,"p",(function(){return T})),n.d(t,"t",(function(){return E})),n.d(t,"q",(function(){return M})),n.d(t,"a",(function(){return C})),n.d(t,"v",(function(){return R})),n.d(t,"w",(function(){return k})),n.d(t,"m",(function(){return O})),n.d(t,"u",(function(){return P})),n.d(t,"l",(function(){return L})),n.d(t,"c",(function(){return I})),n.d(t,"s",(function(){return N})),n.d(t,"b",(function(){return D})),n.d(t,"r",(function(){return U}));n(35),n(24),n(239),n(273),n(34),n(28),n(67),n(159),n(37),n(125),n(61),n(124),n(18),n(122),n(200),n(242),n(50),n(51),n(36),n(14),n(21),n(22),n(60),n(127),n(58),n(53),n(70),n(69),n(29),n(59),n(12);var r=n(27),o=(n(8),n(1));function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return o.a.extend({name:n||e.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:t}},render:function(t,n){var data=n.data,r=n.props,o=n.children;return data.staticClass="".concat(e," ").concat(data.staticClass||"").trim(),t(r.tag,data,o)}})}try{if("undefined"!=typeof window){var l=Object.defineProperty({},"passive",{get:function(){!0}});window.addEventListener("testListener",l,l),window.removeEventListener("testListener",l,l)}}catch(e){}function h(e,path,t){var n=path.length-1;if(n<0)return void 0===e?t:e;for(var i=0;i<n;i++){if(null==e)return t;e=e[path[i]]}return null==e||void 0===e[path[n]]?t:e[path[n]]}function f(a,b){if(a===b)return!0;if(a instanceof Date&&b instanceof Date&&a.getTime()!==b.getTime())return!1;if(a!==Object(a)||b!==Object(b))return!1;var e=Object.keys(a);return e.length===Object.keys(b).length&&e.every((function(p){return f(a[p],b[p])}))}function d(e,path,t){return null!=e&&path&&"string"==typeof path?void 0!==e[path]?e[path]:h(e,(path=(path=path.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),t):t}function m(e,t,n){if(null==t)return void 0===e?n:e;if(e!==Object(e))return void 0===n?e:n;if("string"==typeof t)return d(e,t,n);if(Array.isArray(t))return h(e,t,n);if("function"!=typeof t)return n;var r=t(e,n);return void 0===r?n:r}function v(e){return Array.from({length:e},(function(e,t){return t}))}function _(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return 0;var t=+window.getComputedStyle(e).getPropertyValue("z-index");return t||_(e.parentNode)}function y(e,t){for(var n={},i=0;i<t.length;i++){var r=t[i];void 0!==e[r]&&(n[r]=e[r])}return n}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return null==e||""===e?void 0:isNaN(+e)?String(e):"".concat(Number(e)).concat(t)}function x(e){return(e||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function S(e){return null!==e&&"object"===Object(r.a)(e)}var T=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function E(e,t){var component=e.$vuetify.icons.component;if(t.startsWith("$")){var n=d(e,"$vuetify.icons.values.".concat(t.split("$").pop().split(".").pop()),t);if("string"!=typeof n)return n;t=n}return null==component?t:{component:component,props:{icon:t}}}function M(e){return Object.keys(e)}var A=/-(\w)/g,C=function(e){return e.replace(A,(function(e,t){return t?t.toUpperCase():""}))};function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}function k(e){return null!=e?Array.isArray(e)?e:[e]:[]}function O(e,t,n){return e.$slots.hasOwnProperty(t)&&e.$scopedSlots.hasOwnProperty(t)&&e.$scopedSlots[t].name?n?"v-slot":"scoped":e.$slots.hasOwnProperty(t)?"normal":e.$scopedSlots.hasOwnProperty(t)?"scoped":void 0}function P(e,t){var n=!1;return function(){if(!n)return n=!0,setTimeout((function(){return n=!1}),t),e.apply(void 0,arguments)}}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",data=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=x(t);return e.$scopedSlots.hasOwnProperty(t)?e.$scopedSlots[t](data instanceof Function?data():data):e.$scopedSlots.hasOwnProperty(r)?e.$scopedSlots[r](data instanceof Function?data():data):!e.$slots.hasOwnProperty(t)||data&&!n?!e.$slots.hasOwnProperty(r)||data&&!n?void 0:e.$slots[r]:e.$
2slots[t]}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function D(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=0;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function U(){var source=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var t in e){var n=source[t],r=e[t];S(n)&&S(r)?source[t]=U(n,r):source[t]=r}return source}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return f}));n(24),n(46),n(85),n(37),n(18),n(21),n(52),n(86),n(127),n(58);var r=n(120);function o(e,t,n){if(!r.a.config.silent){if(n&&(t={_isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return"[Vuetify] ".concat(e)+(t?function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,i){return"".concat(0===i?"---\x3e ":" ".repeat(5+2*i)).concat(Array.isArray(e)?"".concat(m(e[0]),"... (").concat(e[1]," recursive calls)"):m(e))})).join("\n")}return"\n\n(found in ".concat(m(e),")")}(t):"")}}function c(e,t,n){o(e,t,n)}function l(e,t,n){o(e,t,n)}function h(e,t,n,r){l("[BREAKING] '".concat(e,"' has been removed, use '").concat(t,"' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide"),n,r)}function f(e,t,n){c("[REMOVED] '".concat(e,"' has been removed. You can safely omit it."),t,n)}var d=/(?:^|[-_])(\w)/g;function m(e,t){if(e.$root===e)return"<Root>";var n="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,o=n.__file;if(!r&&o){var c=o.match(/([^/\\]+)\.vue$/);r=c&&c[1]}return(r?"<".concat(r.replace(d,(function(e){return e.toUpperCase()})).replace(/[-_]/g,""),">"):"<Anonymous>")+(o&&!1!==t?" at ".concat(o):"")}},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",i="second",s="minute",u="hour",a="day",r="week",o="month",c="quarter",l="year",h="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,o),s=n-i<0,u=t.clone().add(r+(s?-1:1),o);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:o,y:l,w:r,d:a,D:h,h:u,m:s,s:i,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},g="en",w={};w[g]=v;var p="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[p])},S=function e(t,n,r){var i;if(!t)return g;if("string"==typeof t){var s=t.toLowerCase();w[s]&&(i=s),n&&(w[s]=n,i=s);var u=t.split("-");if(!i&&u.length>1)return e(u[0])}else{var a=t.name;w[a]=t,i=a}return!r&&i&&(g=i),i||!r&&g},T=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},b=y;b.l=S,b.i=x,b.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function v(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[p]=!0}var _=v.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return b},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return T(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<T(e)},_.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,c=!!b.u(t)||t,f=b.p(e),d=function(e,t){var i=b.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?i:i.endOf(a)},m=function(e,t){return b.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,_=this.$M,y=this.$D,w="set"+(this.$u?"UTC":"");switch(f){case l:return c?d(1,0):d(31,11);case o:return c?d(1,_):d(0,_+1);case r:var g=this.$locale().weekStart||0,x=(v<g?v+7:v)-g;return d(c?y-x:y+(6-x),_);case a:case h:return m(w+"Hours",0);case u:return m(w+"Minutes",1);case s:return m(w+"Seconds",2);case i:return m(w+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var r,c=b.p(e),f="set"+(this.$u?"UTC":""),d=(r={},r[a]=f+"Date",r[h]=f+"Date",r[o]=f+"Month",r[l]=f+"FullYear",r[u]=f+"Hours",r[s]=f+"Minutes",r[i]=f+"Seconds",r[n]=f+"Milliseconds",r)[c],m=c===a?this.$D+(t-this.$W):t;if(c===o||c===l){var v=this.clone().set(h,1);
2v.$d[d](m),v.init(),this.$d=v.set(h,Math.min(this.$D,v.daysInMonth())).$d}else d&&this.$d[d](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[b.p(e)]()},_.add=function(n,c){var h,f=this;n=Number(n);var d=b.p(c),m=function(e){var t=T(f);return b.w(t.date(t.date()+Math.round(e*n)),f)};if(d===o)return this.set(o,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return m(1);if(d===r)return m(7);var v=(h={},h[s]=e,h[u]=t,h[i]=1e3,h)[d]||1,_=this.$d.getTime()+n*v;return b.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,l=n.meridiem,h=function(e,n,i,s){return e&&(e[n]||e(t,r))||i[n].slice(0,s)},d=function(e){return b.s(s%12||12,e,"0")},v=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,o,2);case"ddd":return h(n.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return v(s,u,!0);case"A":return v(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(n,h,f){var d,m=this,v=b.p(h),_=T(n),y=(_.utcOffset()-this.utcOffset())*e,g=this-_,w=function(){return b.m(m,_)};switch(v){case l:d=w()/12;break;case o:d=w();break;case c:d=w()/3;break;case r:d=(g-y)/6048e5;break;case a:d=(g-y)/864e5;break;case u:d=g/t;break;case s:d=g/e;break;case i:d=g/1e3;break;default:d=g}return f?d:b.a(d)},_.daysInMonth=function(){return this.endOf(o).$D},_.$locale=function(){return w[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return b.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},v}(),M=E.prototype;return T.prototype=M,[["$ms",n],["$s",i],["$m",s],["$H",u],["$W",a],["$M",o],["$y",l],["$D",h]].forEach((function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||(e(t,E,T),e.$i=!0),T},T.locale=S,T.isDayjs=x,T.unix=function(e){return T(1e3*e)},T.en=w[g],T.Ls=w,T.p={},T}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c}));var r="GLOBAL",o="USA-1",c=[{id:o,icon:"/dfrobotshop/images/svg/usa-warehouse.svg",iconW:"/dfrobotshop/images/svg/usa-warehouse-white.svg",text:"USA Site",desc:"USA Site",tip:"Exclusive Local Delivery",select:!1,indexOrderKey:"us_warehouse_quantity"},{id:r,icon:"/dfrobotshop/images/svg/global-warehouse.svg",iconW:"/dfrobotshop/images/svg/global-warehouse-white.svg",text:"Global Site",desc:"Global Site",tip:"",select:!1,indexOrderKey:""}]},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(25),o=n(49),c=function(){function e(){Object(r.a)(this,e),this.framework={}}return Object(o.a)(e,[{key:"init",value:function(e,t){}}]),e}()},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return h}));n(35),n(24),n(34),n(28),n(85),n(37),n(61),n(18),n(50),n(51),n(36),n(14),n(202),n(21),n(22),n(86),n(127),n(58),n(53),n(70),n(69),n(29),n(8),n(12);var r=n(30);n(9),n(75);function o(e){return!!e&&!!e.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function c(e){var t;if("number"==typeof e)t=e;else{if("string"!=typeof e)throw new TypeError("Colors can only be numbers or strings, recieved ".concat(null==e?e:e.constructor.name," instead"));
2var n="#"===e[0]?e.substring(1):e;3===n.length&&(n=n.split("").map((function(e){return e+e})).join("")),6!==n.length&&Object(r.c)("'".concat(e,"' is not a valid rgb color")),t=parseInt(n,16)}return t<0?(Object(r.c)("Colors cannot be negative: '".concat(e,"'")),t=0):(t>16777215||isNaN(t))&&(Object(r.c)("'".concat(e,"' is not a valid rgb color")),t=16777215),t}function l(e){var t=e.toString(16);return t.length<6&&(t="0".repeat(6-t.length)+t),"#"+t}function h(e){return l(c(e))}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return Op})),n.d(t,"a",(function(){return F}));n(35),n(34),n(28),n(37),n(18),n(50),n(51),n(36),n(14),n(29),n(26);var r=n(2),o=n(8),c=n(1),l=n(258),h=n(192),f=n.n(h),d=n(97),m=n.n(d),v=n(121),_=n(0);n(239),n(124);"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual",window.addEventListener("beforeunload",(function(){window.history.scrollRestoration="auto"})),window.addEventListener("load",(function(){window.history.scrollRestoration="manual"})));var y=function(){return Object(_.m)(n.e(30).then(n.bind(null,769)))},w=function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(8),n.e(32)]).then(n.bind(null,771)))},x=function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(29)]).then(n.bind(null,766)))},S=function(){return Object(_.m)(Promise.all([n.e(0),n.e(34)]).then(n.bind(null,811)))},T=function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(4),n.e(1),n.e(60)]).then(n.bind(null,764)))},E=function(){return Object(_.m)(n.e(65).then(n.bind(null,815)))},M=function(){},A=v.a.prototype.push;v.a.prototype.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M,n=arguments.length>2?arguments[2]:void 0;return A.call(this,e,t,n)},c.a.use(v.a);var C={mode:"history",base:decodeURI("/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(e,t,n){var r=!1,o=Object(_.g)(e);(o.length<2&&o.every((function(e){return!1!==e.options.scrollToTop}))||o.some((function(e){return e.options.scrollToTop})))&&(r={x:0,y:0}),n&&(r=n);var c=window.$nuxt;return e.path===t.path&&e.hash!==t.hash&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(t){c.$once("triggerScroll",(function(){if(e.hash){var n=e.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(e){}}t(r)}))}))},routes:[{path:"/account",component:function(){return Object(_.m)(Promise.all([n.e(6),n.e(16)]).then(n.bind(null,767)))},name:"account"},{path:"/addon_items",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(28)]).then(n.bind(null,768)))},name:"addon_items"},{path:"/blog",component:y,name:"blogsindex"},{path:"/cart",component:function(){return Object(_.m)(n.e(31).then(n.bind(null,770)))},name:"cart"},{path:"/category-:id.html",component:w,name:"category"},{path:"/checkout",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(5),n.e(4),n.e(33)]).then(n.bind(null,772)))},name:"checkout"},{path:"/express-return",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(5),n.e(4),n.e(38)]).then(n.bind(null,773)))},name:"express-return"},{path:"/huskylens",component:function(){return Object(_.m)(n.e(41).then(n.bind(null,774)))},name:"huskylens"},{path:"/login",component:function(){return Object(_.m)(n.e(59).then(n.bind(null,775)))},name:"login"},{path:"/quickorder",component:function(){return Object(_.m)(n.e(61).then(n.bind(null,776)))},name:"quickorder"},{path:"/search-:keyword.html",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(8),n.e(62)]).then(n.bind(null,777)))},name:"search"},{path:"/special.html",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(63)]).then(n.bind(null,778)))},name:"special"},{path:"/account/address",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(5),n.e(4),n.e(12)]).then(n.bind(null,779)))},name:"account-address"},{path:"/account/affiliateCommission",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(13)]).then(n.bind(null,780)))},name:"account-affiliateCommission"},{path:"/account/affiliates",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(5),n.e(14)]).then(n.bind(null,781)))},name:"account-affiliates"},{path:"/account/coupon",component:function(){return Object(_.m)(n.e(15).then(n.bind(null,782)))},name:"account-coupon"},{path:"/account/invite",component:function(){return Object(_.m)(n.e(17).then(n.bind(null,783)))},name:"account-invite"},{path:"/account/loyaltyProgram",component:function(){return Object(_.m)(Promise.all([n.e(7),n.e(18)]).then(n.bind(null,784)))},name:"account-loyaltyProgram"},{path:"/account/manage",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(3),n.e(5),n.e(4),n.e(19)]).then(n.bind(null,763)))},name:"account-manage"},{path:"/account/myReward",component:function(){return Object(_.m)(n.e(20).then(n.bind(null,785)))},name:"account-myReward"},{path:"/account/order",component:function(){return Object(_.m)(Promise.all([n.e(6),n.e(23)]).then(n.bind(null,786)))},name:"account-order"},{path:"/account/review",component:function(){return Object(_.m)(n.e(24).then(n.bind(null,787)))},name:"account-review"},{path:"/account/reward",component:function(){return Object(_.m)(n.e(25).then(n.bind(null,788)))},name:"account-reward"},{path:"/account/vip",component:function(){return Object(_.m)(Promise.all([n.e(7),n.e(26)]).then(n.bind(null,789)))},name:"account-vip"},{path:"/account/wishlist",component:function(){return Object(_.m)(n.e(27).then(n.bind(null,790)))},name:"account-wishlist"},{path:"/huskylens/huskylens",component:function(){return Object(_.m)(n.e(39).then(n.bind(null,791)))},name:"huskylens-huskylens"},{path:"/huskylens/huskylens2",component:function(){return Object(_.m)(n.e(40).then(n.bind(null,792)))},name:"huskylens-huskylens2"},{path:"/about-us",component:function(){return Object(_.m)(n.e(43).then(n.bind(null,765)))},name:"information-aboutUs"},{path:"/contact-us",component:function(){return Object(_.m)(n.e(44).then(n.bind(null,793)))},name:"information-contactUs"},{path:"/distributor",component:function(){return Object(_.m)(n.e(45).then(n.bind(null,794)))},name:"information-distributor"},{path:"/mediapartner",component:function(){return Object(_.m)(n.e(46).then(n.bind(null,795)))},name:"information-mediapartner"},{path:"/site-map",component:function(){return Object(_.m)(n.e(47).then(n.bind(null,796)))},name:"information-siteMap"},{path:"/bluno",component:function(){return Object(_.m)(n.e(48).then(n.bind(null,797)))},name:"landingpage-bluno"},{path:"/boson",component:function(){return Object(_.m)(n.e(49).then(n.bind(null,798)))},name:"landingpage-boson"},{path:"/education",component:function(){return Object(_.m)(n.e(51).then(n.bind(null,799)))},name:"landingpage-education"},{path:"/gravity",component:function(){return Object(_.m)(n.e(52).then(n.bind(null,800)))},name:"landingpage-gravity"},{path:"/huskylens",component:function(){return Object(_.m)(n.e(53).then(n.bind(null,801)))},name:"landingpage-huskylens"},{path:"/recommendation",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(54)]).then(n.bind(null,802)))},name:"landingpage-recommendation"},{path:"/romeo",component:function(){return Object(_.m)(n.e(55).then(n.bind(null,803)))},name:"landingpage-romeo"},{path:"/seemote",component:function(){return Object(_.m)(n.e(58).then(n.bind(null,804)))},name:"landingpage-seemote"}
2,{path:"/blackfriday/2025",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(37)]).then(n.bind(null,805)))},name:"event-blackfriday-2025"},{path:"/seemote/cap",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(9),n.e(56)]).then(n.bind(null,806)))},name:"landingpage-seemote-cap"},{path:"/seemote/cube",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(9),n.e(57)]).then(n.bind(null,807)))},name:"landingpage-seemote-cube"},{path:"/account/order/:id",component:function(){return Object(_.m)(n.e(21).then(n.bind(null,808)))},name:"account-order-id"},{path:"/education/:id",component:function(){return Object(_.m)(n.e(50).then(n.bind(null,809)))},name:"landingpage-education-id"},{path:"/account/order/:id/invoice",component:function(){return Object(_.m)(n.e(22).then(n.bind(null,810)))},name:"account-order-id-invoice"},{path:"/blog/:id",component:x,name:"blog-id"},{path:"/confirm/:id?",component:S,name:"confirm-id"},{path:"/coupon-:id.html",component:function(){return Object(_.m)(n.e(35).then(n.bind(null,812)))},name:"coupon-id"},{path:"/product-:id.html",component:T,name:"product-id"},{path:"/save-:id.html",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(36)]).then(n.bind(null,813)))},name:"coupon-id-save"},{path:"/",component:function(){return Object(_.m)(Promise.all([n.e(0),n.e(1),n.e(2),n.e(42)]).then(n.bind(null,814)))},name:"index"},{path:"/privacy-policy",component:E,name:"information-3"},{path:"/warranty",component:E,name:"information-5"},{path:"/shipping",component:E,name:"information-6"},{path:"/payment",component:E,name:"information-8"},{path:"/faq",component:E,name:"information-18"},{path:"/coupon",component:E,name:"information-20"},{path:"/affiliates",component:E,name:"information-21"},{path:"/topic-:id.html",component:w,name:"topic"},{path:"/all-products.html",component:w,name:"allproducts"},{path:"/new-products.html",component:w,name:"newproducts"},{path:"/new-products",component:w,name:"newproductsold"},{path:"/kit-:id.html",component:T,name:"kit"},{path:"/blog-page-:page.html",component:y,name:"blogspage"},{path:"/blog-category-:category.html",component:y,name:"blogscategory"},{path:"/blog-tag-:tag.html",component:y,name:"blogstag"},{path:"/blog-:blogId.html",component:x,name:"blogs"},{path:"/confirm/:type/:id",component:S,name:"confirmSorting "}],fallback:!1};function R(){return new v.a(C)}var k={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(e,t){var n=t.parent,data=t.data,r=t.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,h=n.$nuxt.nuxt.defaultTransition,f=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&f++,n=n.$parent;data.nuxtChildDepth=f;var d=l[f]||h,m={};O.forEach((function(e){void 0!==d[e]&&(m[e]=d[e])}));var v={};P.forEach((function(e){"function"==typeof d[e]&&(v[e]=d[e].bind(c))}));var _=v.beforeEnter;if(v.beforeEnter=function(e){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),_)return _.call(c,e)},!1===d.css){var y=v.leave;(!y||y.length<2)&&(v.leave=function(e,t){y&&y.call(c,e),c.$nextTick(t)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:m,on:v},[w])}},O=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],P=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],L=n(406),I=n(405),N={props:{error:{type:Object,default:function(){}}},data:function(){return{currency:"",haedEvent:{name:"",options:""}}},computed:{viewType:function(){return this.$getVT()},size:function(){return this.$vuetify.breakpoint.name},title:function(){return 404===this.error.statusCode?"Not Found - DFRobot":"Error - DFRobot"}},mounted:function(){},methods:{},head:function(){return{title:this.title,meta:[{hid:"robots",name:"robots",content:"noindex, nofollow"},{hid:"keywords",name:"keywords",content:"Arduino,LattePanda,Raspberry Pi,micro:bit,Gravity,Robotics,Internet of Things - IoT,FireBeetle,Artificial Intelligence,Fermion,STEM Education,Boson,esp8266 &amp; esp32,jeston nano"},{hid:"description",name:"description",content:"DFRobot provides open-source hardware, kits and robotics dedicated to bringing innovative electronics."}]}}}
2,D=(n(332),n(5)),U=Object(D.a)(N,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-error",attrs:{"data-theme":e.viewType}},["pc"===e.viewType?[n("Head",{attrs:{event:e.haedEvent},model:{value:e.currency,callback:function(t){e.currency=t},expression:"currency"}}),e._v(" "),n("div",{staticClass:"df-container",class:e.size},[404===e.error.statusCode?n("div",{staticClass:"error"},[n("img",{attrs:{src:"/dfrobotshop/images/pc/404bg.jpg",alt:"404"}}),e._v(" "),e._m(0)]):n("div",{staticClass:"error"},[n("div",{staticClass:"resolve"},[n("p",[e._v(e._s(e.error.statusCode))]),e._v(" "),n("p",[e._v(e._s(e.error.message))])])])]),e._v(" "),n("Foot")]:e._e(),e._v(" "),"mobile"===e.viewType?[n("Head",{attrs:{event:e.haedEvent},model:{value:e.currency,callback:function(t){e.currency=t},expression:"currency"}}),e._v(" "),n(I.a,[n(L.a,[n("div",{staticClass:"df-container"},[404===e.error.statusCode?n("div",{staticClass:"error"},[n("img",{attrs:{src:"/dfrobotshop/images/mobile/notfound.png",alt:"404"}}),e._v(" "),n("div",{staticClass:"resolve"},[n("p",[e._v("Sorry,this page cannot be found.")]),e._v(" "),n("p",[e._v("\n                How about back to\n                "),n("a",{attrs:{href:"/"}},[e._v("home")]),e._v("\n                page or\n                "),n("a",{attrs:{href:"/contact-us"}},[e._v("contact us")])])])]):n("div",{staticClass:"error"},[n("div",{staticClass:"resolve"},[n("p",[e._v(e._s(e.error.statusCode))]),e._v(" "),n("p",[e._v(e._s(e.error.message))])])])])])],1),e._v(" "),n("Foot")]:e._e()],2)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"resolve"},[t("p",[this._v("Sorry,this page cannot be found.")]),this._v(" "),t("p",[this._v("\n            How about back to\n            "),t("a",{attrs:{href:"/"}},[this._v("home")]),this._v("\n            page or\n            "),t("a",{attrs:{href:"/contact-us"}},[this._v("contact us")])])])}],!1,null,"7ca84fae",null),F=U.exports;installComponents(U,{Head:n(269).default,Foot:n(270).default});n(21),n(22),n(58);var B=n(12),z={name:"Nuxt",components:{NuxtChild:k,NuxtError:F},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(e){this.displayingNuxtError&&(this.errorFromNuxtError=e,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(_.c)(this.$route.matched[0].path)(this.$route.params);var e=Object(B.a)(this.$route.matched,1)[0];if(!e)return this.$route.path;var t=e.components.default;if(t&&t.options){var n=t.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(e){var t=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return t.errorFromNuxtError=!1})),e("div",{},[e("h2","An error occurred while showing the error page"),e("p","Unfortunately an error occurred and while showing the error page another error occurred"),e("p","Error details: ".concat(this.errorFromNuxtError.toString())),e("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return t.displayingNuxtError=!1})),e(F,{props:{error:this.nuxt.err}})):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}},H=(n(68),n(77),n(67),n(61),n(60),n(62),n(350),n(351),{head:function(){return{title:"DFRobot.com",link:[{rel:"stylesheet",href:"/blackfriday/fonts/iconfont.css"}],script:[{src:"../loadingpage/md5.min.js",ssr:!0}]}}}),V=Object(D.a)(H,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{"overflow-x":"hidden"}},[t("Nuxt")],1)}),[],!1,null,null,null).exports,j={head:function(){return{link:[{rel:"stylesheet",href:"/blogassets/css/blog.css"}],script:[{src:"/dfrobotshop/lib/md5.min.js",ssr:!0}
2,{src:"https://www.googletagmanager.com/gtag/js?id=G-19SV1YQYG0",ssr:!1,async:!0},{type:"application/ld+json",json:{"@context":"https://schema.org","@type":"Organization",name:"dfrobot.com",url:"https://www.dfrobot.com",description:"DFRobot provides open-source hardware, kits and robotics dedicated to bringing innovative electronics.",image:"https://www.dfrobot.com/dfrobotshop/images/pc/logo.png",logo:"https://www.dfrobot.com/dfrobotshop/images/pc/logo.png",contactPoint:{"@type":"ContactPoint",contactType:"Customer Support",telephone:"+86-21-61620183",email:"[email protected]"},sameAs:["https://www.facebook.com/DFrobot","https://twitter.com/dfrobotcn","https://www.youtube.com/user/DFROBOTCN","https://www.linkedin.com/company/dfrobot","https://discord.com/invite/wr4szfVUZ7"]}},{type:"application/ld+json",json:{"@context":"https://schema.org","@type":"WebSite",name:"dfrobot.com",url:"https://www.dfrobot.com",description:"DFRobot provides open-source hardware, kits and robotics dedicated to bringing innovative electronics.",potentialAction:{"@type":"SearchAction","query-input":"required name=query",target:"https://www.dfrobot.com/search-{query}.html"}}}],noscript:[{hid:"facebook-no-script",innerHTML:'<img height="1" width="1" style="display: none;" src="https://www.facebook.com/tr?id=517401871764527&ev=PageView&noscript=1" />'}],__dangerouslyDisableSanitizersByTagID:{"facebook-no-script":["innerHTML"]}}}},W=Object(D.a)(j,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("Nuxt")],1)}),[],!1,null,null,null).exports;n(24);window.facebookInit=function(){var e,b,t,n,r,s;e=window,b=document,t="script",e.fbq||(n=e.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)},e._fbq||(e._fbq=n),n.push=n,n.loaded=!0,n.version="2.0",n.queue=[],(r=b.createElement(t)).async=!0,r.src="https://connect.facebook.net/en_US/fbevents.js",(s=b.getElementsByTagName(t)[0]).parentNode.insertBefore(r,s)),window.fbq&&window.fbq("init","517401871764527"),window.fbq&&window.fbq("track","PageView")},facebookInit(),window.facebookEvent=function(code){for(var e,t=arguments.length,data=new Array(t>1?t-1:0),n=1;n<t;n++)data[n-1]=arguments[n];window.fbq&&(e=window).fbq.apply(e,[code].concat(data))};var G=function(){};window.googleTagInit=function(){window.dataLayer=window.dataLayer||[],(G=function(){window.dataLayer.push(arguments)})("js",new Date),G("config","G-19SV1YQYG0")},googleTagInit(),window.gogleTag=function(code,data){G("event",code,data)};var X={head:function(){return{script:[{src:"https://www.googletagmanager.com/gtag/js?id=G-19SV1YQYG0",ssr:!1,async:!0},{type:"application/ld+json",json:{"@context":"https://schema.org","@type":"Organization",name:"dfrobot.com",url:"https://www.dfrobot.com",description:"DFRobot provides open-source hardware, kits and robotics dedicated to bringing innovative electronics.",image:"https://www.dfrobot.com/dfrobotshop/images/pc/logo.png",logo:"https://www.dfrobot.com/dfrobotshop/images/pc/logo.png",contactPoint:{"@type":"ContactPoint",contactType:"Customer Support",telephone:"+86-21-61620183",email:"[email protected]"},sameAs:["https://www.facebook.com/DFrobot","https://twitter.com/dfrobotcn","https://www.youtube.com/user/DFROBOTCN","https://www.linkedin.com/company/dfrobot","https://discord.com/invite/wr4szfVUZ7"]}},{type:"application/ld+json",json:{"@context":"https://schema.org","@type":"WebSite",name:"dfrobot.com",url:"https://www.dfrobot.com",description:"DFRobot provides open-source hardware, kits and robotics dedicated to bringing innovative electronics.",potentialAction:{"@type":"SearchAction","query-input":"required name=query",target:"https://www.dfrobot.com/search-{query}.html"}}}],noscript:[{hid:"facebook-no-script",innerHTML:'<img height="1" width="1" style="display: none;" src="https://www.facebook.com/tr?id=517401871764527&ev=PageView&noscript=1" />'}],__dangerouslyDisableSanitizersByTagID:{"facebook-no-script":["innerHTML"]}}}},Y=Object(D.a)(X,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("Nuxt")],1)}),[],!1,null,null,null).exports,Z={head:function(){return{title:"未来课程设计 国际高峰论坛",meta:[{name:"viewport",content:'content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"'},{hid:"keywords",name:"keywords",content:"创客嘉年华,创客文化,创客运动,科技聚会,上海创客嘉年华,造物节,创客游行"},{hid:"description",name:"description",content:"创客嘉年华是中国创客的大party,一次灵感和手工的盛宴,一个接触科技的游乐场。通过亲身体验参与、动手制作激发大家的创新潜能和源动力!创客嘉年华来自民间,在草根中发酵而生,逐渐成长壮大,如今已在北京、上海、深圳等多地举办,并以开源联合的互联网方式,在全国各地陆续展开。"}
2],script:[{src:"/lib/mobileRem.js"}]}}},K=Object(D.a)(Z,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("Nuxt")],1)}),[],!1,null,null,null).exports,J=Object(D.a)({},(function(){var e=this.$createElement;return(this._self._c||e)("Nuxt")}),[],!1,null,null,null).exports;function Q(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}(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,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var te={_blackfriday:Object(_.s)(V),_blog:Object(_.s)(W),_dfrobotshop:Object(_.s)(Y),_wlkc_mobile:Object(_.s)(K),_default:Object(_.s)(J)},ne={render:function(e,t){var n=e(this.layout||"nuxt"),r=e("div",{domProps:{id:"__layout"},key:this.layoutName},[n]),o=e("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(e){window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}}},[r]);return e("div",{domProps:{id:"__nuxt"}},[o])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){c.a.prototype.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Object(_.h)(e.$route)).length){t.next=3;break}return t.abrupt("return");case 3:return r=n.map((function(t){var p=[];if(t.$options.fetch&&t.$options.fetch.length&&p.push(Object(_.q)(t.$options.fetch,e.context)),t.$fetch)p.push(t.$fetch());else{var n,r=Q(Object(_.e)(t.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(e){r.e(e)}finally{r.f()}}return t.$options.asyncData&&p.push(Object(_.q)(t.$options.asyncData,e.context).then((function(e){for(var n in e)c.a.set(t.$data,n,e[n])}))),Promise.all(p)})),t.prev=4,t.next=7,Promise.all(r);case 7:t.next=13;break;case 9:t.prev=9,t.t0=t.catch(4),Object(_.k)(t.t0),e.error(t.t0);case 13:case"end":return t.stop()}}),t,null,[[4,9]])})))()},setLayout:function(e){return e&&te["_"+e]||(e="default"),this.layoutName=e,this.layout=te["_"+e],this.layout},loadLayout:function(e){return e&&te["_"+e]||(e="default"),Promise.resolve(te["_"+e])}}},re=n(193);c.a.use(re.a);var ie={};(ie=function(e,t){if((e=e.default||e).commit)throw new Error("[nuxt] ".concat(t," should export a method that returns a Vuex instance."));return"function"!=typeof e&&(e=Object.assign({},e)),function(e,t){if(e.state&&"function"!=typeof e.state){var n=Object.assign({},e.state);e=Object.assign({},e,{state:function(){return n}})}return e}(e)}(n(352),"store/index.js")).modules=ie.modules||{};var ae=ie instanceof Function?ie:function(){return new re.a.Store(Object.assign({strict:!1},ie))};var se={};for(var oe in se)c.a.component(oe,se[oe]);var ce=n(120),le={breakpoint:{thresholds:{xs:499,sm:1279,md:1919,lg:2359},mobileBreakpoint:499}};c.a.use(ce.a,{});var ue=function(e){var t="function"==typeof le?le(e):le,n=new ce.a(t);e.app.vuetify=n,e.$vuetify=n.framework},he=n(76),fe=n.n(he),de=n(262),pe=n.n(de);function me(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(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,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}for(var ve={setBaseURL:function(e){this.defaults.baseURL=e},setHeader:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=me(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!t)return void delete this.defaults.headers[c][e];this.defaults.headers[c][e]=t}}catch(e){o.e(e)}finally{o.f()}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",r,n)},onRequest:function(e){this.interceptors.request.use((function(t){return e(t)||t}))},onResponse:function(e){this.interceptors.response.use((function(t){return e(t)||t}))},onRequestError:function(e){this.interceptors.request.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onResponseError:function(e){this.interceptors.response.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onError:function(e){this.onRequestError(e),this.onResponseError(e)},create:function(e){return we(pe()(e,this.defaults))}},_e=function(){var e=be[ye];ve["$"+e]=function(){return this[e].apply(this,arguments).then((function(e){return e&&e.data}))}},ye=0,be=["request","delete","get","head","options","post","put","patch"];ye<be.length;ye++)_e();var we=function(e){var t=fe.a.create(e);return t.CancelToken=fe.a.CancelToken,t.isCancel=fe.a.isCancel,function(e){for(var t in ve)e[t]=ve[t].bind(e)}(t),xe(t),t},xe=function(e){var t={finish:function(){},start:function(){},fail:function(){},set:function(){}},n=function(){var e="undefined"!=typeof window&&window.$nuxt;return e&&e.$loading&&e.$loading.set?e.$loading:t},r=0;e.onRequest((function(e){e&&!1===e.progress||r++})),e.onResponse((function(e){e&&e.config&&!1===e.config.progress||--r<=0&&(r=0,n().finish())})),e.onError((function(e){e&&e.config&&!1===e.config.progress||(r--,fe.a.isCancel(e)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))}));var o=function(e){if(r){var progress=100*e.loaded/(e.total*r);n().set(Math.min(100,progress))}};e.defaults.onUploadProgress=o,e.defaults.onDownloadProgress=o},Se=function(e,t){var n=e.$config&&e.$config.axios||{},r=n.browserBaseURL||n.baseURL||"";var o=we({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{},"content-type":"application/x-www-form-urlencoded"}});e.$axios=o,t("axios",o)},Te=(n(98),n(46),n(159),n(85),n(122),n(200),n(160),n(369),n(52),n(86),n(53),n(70),n(69),n(31)),Ee=n.n(Te),Me=n(201),Ae={DHL:"https://www.dhl.com",FEDEX:"https://www.fedex.com",EMS:"https://www.17track.net/en",UPS:"https://www.ups.com/us/en/Home.page",HKBRAM:"https://www.hongkongpost.hk/en/mail_tracking/index.html",SWBRAM:"http://www.swisspost.com/"},Ce=n(32),Re=n(256),ke=n(126);function Oe(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Pe(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?Oe(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Oe(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Le(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,t)}(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,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var Ne=function(e,t){t("getViewType",(function(e){return function(e){if(!e)return"pc";var t=!e.match(/(iPad).*OS\s([\d_]+)/)&&e.match(/(iPhone\sOS)\s([\d_]+)/),n=e.match(/(Android)\s+([\d.]+)/),r=t||n;r=null===r?"pc":"mobile";return r}(e?e.headers["user-agent"]:navigator.userAgent||"")})),t("getWebp",(function(e){var t="";try{var n=(t=e.match(/\.([^./]+)$/))?t[1]:"";if(e.includes("https://dfimg.dfrobot.com/")&&/jpg$|png$|jpeg$/i.test(n))new RegExp("_\\d+x\\d+.".concat(n,"$"),"i").test(e.trim())?e+=".webp":e=e.replace(new RegExp(".".concat(n,"$")),"_0x0.".concat(n,".webp"))}catch(e){}return e})),t("getHead",(function(t,n,r){var o="/dfrobotshop/images/pc/nologinhead.png",c="";if(!t)return o;if(t.includes("http")&&!t.includes("https://dfimg.dfrobot.com/"))return o;try{var l=t.split("."),h="_"+n+"x"+r,f=l.length;l[2].includes("_")&&(l[2]=l[2].split("_")[0]),l[f-2]=l[f-2]+h,c=l.join(".")}catch(e){c=t}return e.$getWebp(c)})),t("getImg",(function(t,n,r){var o="";if(!t)return"https://dfimg.dfrobot.com//basethumb";var c,source={};try{source=function(e){var t=/\.([^./]+)$/,n=e.match(t),r=n?n[1]:"";return{filename:e.replace(t,""),type:r}}(t)}catch(e){source={filename:t}}return o=(c=source.filename,/\d+x\d+/.test(c))?t:source.type?source.filename+"_"+n+"x"+r+"."+source.type:source.filename+"_"+n+"x"+r,e.$getWebp(o)})),t("priceFormat",(function(e){var t=e+"",a="",b="";try{t.includes(".")?(a=t.split(".")[0],b=t.split(".")[1],(b=parseInt(b))<10?b+="0":b>100&&(b=Math.round(b/100))):(a=t,b="00"),(t=a+"."+b).includes("$")||(t="$"+t)}catch(e){}return t})),t("cleanObj",(function(e){for(var t in e)Object.hasOwnProperty.call(e,t)&&(void 0!==e[t]&&null!==e[t]&&""!==e[t]||delete e[t]);return e})),t("cleanArr",(function(e){var t=[];return e.forEach((function(element){element&&t.push(element)})),t})),t("getUCPostdata",(function(e){var t=(new Date).getTime(),n="";e.myfile&&(n=e.myfile,delete e.myfile);var p=JSON.stringify(e),r="app_auth_token=&app_id=432809143856280&biz_content="+p+"&sign_type=md5&timestamp="+t+"&version=1UIb4ljO5xK0CECtIl70NOOWeXzYTCg43C",o={app_auth_token:"",app_id:432809143856280,biz_content:p,sign_type:"md5",timestamp:t,version:1,sign:window.md5(r)};n&&(o.myfile=n);var c=new FormData;for(var l in o)c.append(l,o[l]);return c})),t("htmlDecode",(function(e){if(!e)return e;return 0===e.length||"number"==typeof e?e:e.replace(/&quot;/g,'"').replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&nbsp;/g," ")})),t("cmsGetList",function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){var r,source;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.$get(n);case 2:if(0!==(r=t.sent).error_code){t.next=15;break}if(t.prev=4,!((source=r.data.list).length>0)){t.next=8;break}return t.abrupt("return",source.map((function(e){return e.content_data})));case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(4);case 13:t.next=16;break;case 15:case 16:return t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e){return t.apply(this,arguments)}}()),t("dateFormat",(function(e,t){if("string"!=typeof e)return e;var n=e.split("-").join("/");switch(t){case 1:n=new Date(n).toDateString().substring(4)}return n})),t("isValidEmail",(function(e){return/^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(e)})),t("serverConsole",(function(e,t){try{JSON.stringify(t)}catch(e){t+""}})),t("hasBusEvent",(function(e){var t=!1,n=window.$nuxt.$bus._events;for(var r in n)r===e&&(t=!0);return t})),t("to404",(function(e){location.href="/404.html"})),t("getUserinfo",(function(){var t=!1;return(t=e.store.state.authUser&&e.store.state.authUser.headers?e.store.state.authUser.data:e.store.state.authUser)||(t={identity:"unset"}),t})),t("getVT",(function(){return e.store.state.viewtype&&e.store.state.viewtype.headers?e.store.state.viewtype.data:e.store.state.viewtype})),t("getSiteInfo",(function(){return e.store.state.setting&&e.store.state.setting.headers?e.store.state.setting.data:e.store.state.setting})),t("getBaseSeo",(function(){var t={title:"DFRobot Open-Source Hardware Electronics and Kits",keyword:"Arduino,LattePanda,Raspberry Pi,micro:bit,Gravity,Robotics,Internet of Things - IoT,FireBeetle,Artificial Intelligence,Fermion,STEM Education,Boson,esp8266 &amp; esp32,jeston nano",description:"DFRobot provides open-source hardware, kits and robotics dedicated to bringing innovative electronics."};return(t=e.store.state.setting&&e.store.state.setting.headers?e.store.state.setting.data:e.store.state.setting).seoTitle&&(t.title=t.seoTitle),t.seoDesc&&(t.description=t.seoDesc),t.seoKeyword&&(t.keyword=t.seoKeyword),t})),t("getSeoSchemas",(function(e){var t=[];try{var n,r=Le(e);try{for(r.s();!(n=r.n()).done;){var o=n.value,c=o.type,data=o.data,content={};switch(c){case"BreadcrumbList":content.itemListElement=data.map((function(e,t){return{"@type":"ListItem",position:t+1,name:"Store"===e.name?"Home":e.name,item:e.item}}))}var l={type:"application/ld+json",json:Pe({"@context":"https://schema.org","@type":c},content)};t.push(l)}}catch(e){r.e(e)}finally{r.f()}}catch(e){}return t})),t("formatDate",(function(e,t){if((e+="").length<13){for(var n=13-e.length,i=0;i<n;i++)e+="0";e=parseInt(e)}var r=new Date(e),o=r.getFullYear(),c=r.getMonth(),l=r.getDate();return(c+=1)>12&&(c=1),l<10&&(l="0"+l),c<10&&(c="0"+c),c+"/"+l+"/"+o})),t("getCurrencyList",(function(){return e.store.state.currencys&&e.store.state.currencys.headers?e.store.state.currencys.data:e.store.state.currencys})),t("setCurrency",(function(code){localStorage.setItem("nowCurrency",code)})),t("getCurrency",(function(){var t=!1;try{t=localStorage.getItem("nowCurrency")}catch(e){}return t||(t=e.$getDefaultCurrency()),t})),t("getDefaultCurrency",(function(){var t=e.$getCurrencyList(),n="";for(var r in t){var o=t[r];1===o.rate&&(n=o.code)}return n})),t("setChoose",(function(e){e=JSON.stringify(e),localStorage.setItem("cartChoose",e)})),t("getChoose",(function(){var e=localStorage.getItem("cartChoose");try{e=JSON.parse(e)}catch(t){e=!1}return e||(e=!1),e})),t("exchangePrice",(function(t,n,r){isNaN(t)&&(t=0);var o=e.$decimal,code=e.$getCurrency();code||(code=e.$getDefaultCurrency());var c=e.$getCurrencyList()[code],l=new o(t),h=new o(c.rate),f=l.times(h);n||(f=f.toFixed(2)),r&&(f=Number(f));var d=c.name.split(code);return d.map((function(e,t){e||(d[t]=f)})),f=d.join("")})),t("exchangePriceWithFormat",(function(t){isNaN(t)&&(t=0);var n=e.$decimal,r=e.$decimalFormat,code=e.$getCurrency();code||(code=e.$getDefaultCurrency());
2var o=e.$getCurrencyList()[code],c=new n(t),l=new n(o.rate),h=c.times(l);h=r(h).toFormat(2);var f=o.name.split(code);return f.map((function(e,t){e||(f[t]=h)})),h=f.join("")})),t("mathSubTotal",(function(t,n,r){var o=e.$decimal,c=e.$exchangePrice(t,r),l=new o(n),h=(c=new o(c=e.$removeCurrency(c))).times(l);return r||(h=h.toFixed(2)),h})),t("removeCurrency",(function(e){return e.replace(/[£€$]/g,"")})),t("addCurrency",(function(t,n){var r=new(0,e.$decimal)(t),code=e.$getCurrency(),o=e.$getCurrencyList()[code].name.split(code);return n||(r=r.toFixed(2)),o.map((function(e,t){e||(o[t]=r)})),r=o.join("")})),t("selectedCurToTargetCur",(function(t,n){var r=e.$decimal,code=e.$getCurrency(),o=e.$getCurrencyList(),c=new r(o[code].rate),l=new r(t).div(c),h=new r(o[n].rate);return Number(l.times(h).toFixed(2,r.ROUND_DOWN))})),t("mathPlus",(function(t,n){var r=e.$decimal,o=new r(0);return t.map((function(e){void 0===e&&(e=0),e=new r(e),o=o.plus(e)})),n||(o=o.toFixed(2)),o=Number(o)})),t("mathMinus",(function(t,n){var r=e.$decimal,o=new r(0);return t.map((function(e,t){void 0===e&&(e=0),e=new r(e),o=0===t?e:o.minus(e)})),n||(o=o.toFixed(2)),o=Number(o)})),t("mathDiv",(function(a,b,t){var n=e.$decimal,r=new n(0);return a=new n(a),b=new n(b),r=a.div(b),t||(r=r.toFixed(2)),r=Number(r)})),t("fixedTwo",(function(t,n){var r=new(0,e.$decimal)(t);return n||(r=r.toFixed(2)),r})),t("formatOrder",function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){var r,o,c,l,h,f,d,i,m,v,_,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.$getUserinfo(),"Shipped"!==n.stock_name&&"Complete"!==n.stock_name){t.next=7;break}return o=n.order_product_list.map((function(e){return e.product_id.toString()})),t.next=5,e.$axios.post("actOrder",{product_ids:o},{plus:"/".concat(n.order_id,"/review-status")});case 5:0===(c=t.sent).code&&(n.reviewed_product_ids=c.data,n.not_reviewed_product_num=n.order_product_list.length-n.reviewed_product_ids.length);case 7:l=n.stock_name,h=!1,f=[],t.t0=n.stock_name,t.next="Waiting for TT"===t.t0?13:"Payment Received"===t.t0||"Pre-Order"===t.t0||"Partially Shipped"===t.t0||"Processing-Back ordered"===t.t0?17:"Processing-(Packing)"===t.t0||"Transfer"===t.t0?20:"Shipped"===t.t0||"Complete"===t.t0?22:"Canceled"===t.t0?26:"Refunded"===t.t0?28:30;break;case 13:return l="Waiting for T/T",h=!0,f=["Cancel","Invoice"],t.abrupt("break",31);case 17:return h=!0,f=["Invoice"],t.abrupt("break",31);case 20:return f=["Invoice"],t.abrupt("break",31);case 22:return f=["Reorder","Invoice","Leave a Review","Reward"],n.reviewed_product_ids&&n.reviewed_product_ids.length===n.order_product_list.length&&(f=["Reorder","Invoice","View My Review"]),r&&"distributor"===r.identity&&(f=f.filter((function(e){return"Leave a Review"!==e&&"Reward"!==e&&"View My Review"!==e}))),t.abrupt("break",31);case 26:return f=["Reorder","Invoice"],t.abrupt("break",31);case 28:return f=["Invoice"],t.abrupt("break",31);case 30:return t.abrupt("break",31);case 31:n.order_status=l,n.order_status_lightened=h,n.order_actions=f,n.order_currency_value=n.currency_value,n.order_currency_code=n.currency_code,d={noLogistic:[]},i=0;case 38:if(!(i<n.order_product_list.length)){t.next=49;break}if(m=n.order_product_list[i],v=m.order_logistics_id){t.next=44;break}return d.noLogistic.push(m),t.abrupt("continue",46);case 44:Object.keys(d).includes(v)||(d[v]=[]),d[v].push(m);case 46:i++,t.next=38;break;case 49:n.order_product_list_by_warehouse=[],n.warehouseCount=0,_=function(e){if(Object.hasOwnProperty.call(d,e)){var t=d[e];if(0===t.length)return"continue";n.warehouseCount++;var r=n.order_logistics&&n.order_logistics.find((function(t){return t.ID===e})),o=r&&r.TrackingNo?"Here is your tracking number ".concat(r.TrackingNo,' via <a href="').concat(Ae[r.TrackingType],'" target="_blank" style="color:#178ca4;">').concat(Ae[r.TrackingType],"</a>"):"",c=r&&r.WarehouseAbbr?"".concat(r.WarehouseAbbr," Warehouse"):"";n.order_product_list_by_warehouse.push({trackingText:o,warehouse:c,order_product_list:t,index:n.warehouseCount})}},t.t1=regeneratorRuntime.keys(d);case 53:if((t.t2=t.t1()).done){t.next=60;break}if(y=t.t2.value,"continue"!==_(y)){t.next=58;break}return t.abrupt("continue",53);case 58:t.next=53;break;case 60:t.t3=n.currency_code,t.next="USD"===t.t3?63:"GBP"===t.t3?65:"EUR"===t.t3?67:69;break;case 63:return n.invoice_total_price="$".concat(n.total.toFixed(2)),t.abrupt("break",70);case 65:return n.invoice_total_price="£".concat(n.total.toFixed(2)),t.abrupt("break",70);case 67:return n.invoice_total_price="".concat(n.total.toFixed(2),"€"),t.abrupt("break",70);case 69:n.invoice_total_price="";case 70:return t.abrupt("return",n);case 71:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t("getDisplayStock",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ce.a,n=e.product_type||e.type,r="",o="",c="",l="",h="",f="",d="";if(t===Ce.a){var m=e.stock_name_status||e.stock_status;"package"===n?(r="View Product",o="",c="viewPackageDetail",l="normal"):"Discontinued"===m?(r="DISCONTINUED",o="DISCONTINUED",c="none",l="discontinued"):"Inquiry Only"===m?(r="",o="",c="none",l=""):"None"!==e.quantity_status?(r="Add to Cart",o='<i class="iconfont icon-gouwuche1"></i>',c="addCart",l="normal"):"Coming Soon"===m?(r="COMING SOON",o="COMING SOON",c="comingSoon",l="normal"):"Notify Me"===m?(r="Notify Me",o="Notify Me",c="viewProductDetail",l="normal"):"Pre-Order"===m?(r="Pre Order",o="Pre Order",c="addCart",l="normal"):"Out Of Stock"!==m&&"In Stock"!==m&&"2 - 3 Days"!==m&&"7 - 14 Days"!==m||(r="Back Order",o="Back Order",c="addCart",l="normal"),"Discontinued"===m?(h="Discontinued",f="OutOfStock",d="discontinued"):"Inquiry Only"===m?(h="Inquiry Only",f="OutOfStock",d="inquiryonly"):"package"===n||"InStock"===e.quantity_status?(h="In Stock",f="InStock",d="addtocart-instock-shopnow"):"Only"===e.quantity_status&&e.quantity?(h="Only ".concat(e.quantity," Left"),f="InStock",d="addtocart-onlyleft-shopnow"):"None"===e.quantity_status&&(h=m,f="InStock","Out Of Stock"===m&&(d="backorder-outofstock-subscribe"),"2 - 3 Days"===m&&(d="backorder-23days-subscribe"),"7 - 14 Days"===m&&(d="backorder-714days-subscribe"),"Pre-Order"===m&&(d="preorder-preorder-subscribe"),"Notify Me"===m&&(d="notifyme-outofstock-subscribe",f="OutOfStock"),"Coming Soon"===m&&(d="c
2omingsoon-comingsoon-subscribe",f="OutOfStock"))}if(t===Ce.b){var v=e.stock_name_status||e.stock_status;"package"===n?(r="View Product",c="viewPackageDetail",l="normal"):"Discontinued"===v?(r="DISCONTINUED",o="DISCONTINUED",c="none",l="discontinued"):"Inquiry Only"===v?(r="",o="",c="none",l=""):"None"!==e.quantity_status_USA_1?(r="Add to Cart",o='<i class="iconfont icon-gouwuche1"></i>',c="addCart",l="normal"):"None"!==e.quantity_status?(r="Pre-Order",o='<i class="iconfont icon-gouwuche1"></i>',c="addCart",l="normal"):"Coming Soon"===v?(r="COMING SOON",o="COMING SOON",c="comingSoon",l="normal"):"Notify Me"===v?(r="Notify Me",o="Notify Me",c="viewProductDetail",l="normal"):"Pre-Order"===v?(r="Pre Order",o="Pre Order",c="addCart",l="normal"):"Out Of Stock"!==v&&"In Stock"!==v&&"2 - 3 Days"!==v&&"7 - 14 Days"!==v||(r="Back Order",o="Back Order",c="addCart",l="normal"),"Discontinued"===v?(h="Discontinued",f="OutOfStock",d="discontinued"):"Inquiry Only"===v?(h="Inquiry Only",f="OutOfStock",d="inquiryonly"):"package"===n||"InStock"===e.quantity_status_USA_1?(h="In Stock",f="InStock",d="addtocart-instock-shopnow"):"Only"===e.quantity_status_USA_1&&e.quantity_USA_1?(h="Only ".concat(e.quantity_USA_1," Left"),f="InStock",d="addtocart-onlyleft-shopnow"):"None"===e.quantity_status_USA_1&&("InStock"===e.quantity_status||"Only"===e.quantity_status?(h="Pre-Order",f="InStock",d="addtocart-defaultwarehouse-instock-shopnow"):"None"===e.quantity_status&&(h=v,f="InStock","Out Of Stock"===v&&(d="backorder-outofstock-subscribe"),"2 - 3 Days"===v&&(d="backorder-23days-subscribe"),"7 - 14 Days"===v&&(d="backorder-714days-subscribe"),"Pre-Order"===v&&(d="preorder-preorder-subscribe"),"Notify Me"===v&&(d="notifyme-outofstock-subscribe",f="OutOfStock"),"Coming Soon"===v&&(d="comingsoon-comingsoon-subscribe",f="OutOfStock")))}return{addCartBtnText:r,addCartBtnHtml:o,addCartBtnActionType:c,addCartClass:l,stockText:h,stockTextSeo:f,cartbarStatus:d}})),t("formatProduct",(function(t,n){try{var r=e.$getUserinfo(),o=t.product_type||t.type,c=Date.now()-parseInt(t.create_time+"000")-7776e6<0,l=e.$getDisplayStock(t,r.warehouse),h=l.addCartBtnText,f=l.addCartBtnHtml,d=l.addCartBtnActionType,m=l.addCartClass,v=l.stockText,_={};if("package"===o){var y=t.original_price||t.package_original_price_range||"",w=t.display_price||t.package_price_range||"",x=/\d+(?:\.\d+)?/,S=y.split("~"),T=Object(B.a)(S,2),E=T[0],M=T[1],A=E.match(x)&&Number(E.match(x)[0])||0,C=M&&M.match(x)&&Number(M.match(x)[0])||0,R=w.split("~"),k=Object(B.a)(R,2),O=k[0],P=k[1],L=O.match(x)&&Number(O.match(x)[0])||0,I=P&&P.match(x)&&Number(P.match(x)[0])||0;_.packageOriginPriceLow=A,_.packageOriginPriceHigh=C,_.packagePriceLow=L,_.packagePriceHigh=I}var N={};if(n?(N={id:t.product_id,productType:o||"",sku:t.sku,thumb:t.image,video:t.video,title:t.name,url:e.$getProductUrl(o,t.product_id),rewardPoints:t.terminal_reward,originPrice:n.origin_price,price:n.item_total_price,add_on_deal_sub_average_price:n.add_on_deal_sub_average_price,tieredDiscount:n.tiered_sub_average_price,packageDiscount:n.package_sub_average_price,vipDiscount:n.vip_sub_average_price,specialDiscount:n.special_sub_average_price,distributorDiscount:n.distributor_discount_sub_average_price,packagePrices:_,specialEnd:t.special_end,sales:t.sales,checkoutPrice:n.item_subtotal_price,weight:t.weight,tag:t.category,showTag:!1,min:t.terminal_minimum,max:t.terminal_maximum,attribute:t.cdy_type,isNew:c,isEvent:Object(ke.c)(t,r),addCartBtnText:h,addCartBtnHtml:f,addCartBtnActionType:d,addCartClass:m,stockText:v,vipIcon:r&&"user"===r.identity&&r.level>1&&0!==n.vip_quantity},n.anniversary_discounted_sub_average_price&&(N.anniversary_discounted_sub_average_price=n.anniversary_discounted_sub_average_price)):N={id:t.product_id,name:t.product_name,thumb:t.image,sku:t.model,stockText:v},r&&"distributor"===r.identity&&(N.rewardPoints=t.distributor_reward),N.tag){N.showTag={};var D=Object(Me.c)(N.tag,0),U=0,F={};D.map((function(e){if(0===e.topic){var t=function e(data){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!data.children||0===data.children.length)return{data:data,depth:t};var n={data:data,depth:0};
2return data.children.forEach((function(r){var o=e(r,t+1);n.depth<o.depth&&(n=o)})),n}(e);t.depth>U&&(U=t.depth,F=t.data)}})),N.showTag=e.$formatTag(F)}return N}catch(e){}})),t("formatProductCom",(function(t){var n=t.product.type,r={};if("package"===n){var o=t.product.package_price_range.split("~"),c=Object(B.a)(o,2),l=c[0],h=c[1],f=t.product.package_price_range.split("~"),d=Object(B.a)(f,2),m=d[0],v=d[1];r.packageOriginPriceLow=Number(l)||0,r.packageOriginPriceHigh=Number(h)||0,r.packagePriceLow=Number(m)||0,r.packagePriceHigh=Number(v)||0}return{title:t.name,thumb:t.product.image,productType:t.product.type,url:e.$getProductUrl(n,t.product_id),price:t.price_info.item_total_price,originPrice:t.price_info.origin_price,packagePrices:r,status:t.product.status}})),t("splitProductInCheckout",(function(e,t){var data={},source=JSON.parse(JSON.stringify(e)),n={},r=[];return source.map((function(e){data[e.cart.id]=e})),t.map((function(e){var t="";try{t=e.OrderLogisticsID.split("-")[1]}catch(e){}if(t){r.includes(t)||(r.push(t),n[t]={indexStr:"",leg:"",list:[]});var o=JSON.parse(JSON.stringify(data[e.ProductID])),c=r.indexOf(t);n[t].indexStr="0"+(c+1),n[t].leg="0"+r.length,o.cart.quantity=e.Quantity,n[t].list.push(o)}})),n})),t("formatTag",(function(e){var t={},n="category";return e.topic&&(n="topic"),t.name=e.category_name,t.url="/"+n+"-"+e.category_id+".html",t})),t("mathPrice",(function(t){var n=[t.originPrice,t.tieredDiscount,t.packageDiscount,t.vipDiscount,t.specialDiscount,t.distributorDiscount],r=[];return n.map((function(t){var n=e.$exchangePrice(t);n=e.$removeCurrency(n),r.push(n)})),e.$mathMinus(r)})),t("formatPcbOptions",(function(e){return{unroll:!1,list:[{name:"Layers",value:e.layers},{name:"PCB Dimtension ",value:e.dimension_width+"mm*"+e.dimension_length+"mm"},{name:"PCB Qty",value:e.qty},{name:"Different Design(s)",value:e.different_design},{name:"PCB Thickness",value:e.thickness},{name:"PCB Color",value:e.color},{name:"Surface Finish",value:e.surface_finish},{name:"Copper Weight",value:e.copper_weight},{name:"Production Time",value:e.product_time}]}})),t("formatPackage",(function(e){var t={unroll:!1,list:[]};return e.map((function(p){var e={name:p.product.name,quantity:"1",thumb:p.product.image};t.list.push(e)})),t})),t("addToCart",function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n,r){var o,c,l,h,f,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}return t.abrupt("return",!1);case 2:return o=[],c=e.$getChoose(),l={product_id:parseInt(n),quantity:1},r&&(r.quantity&&(l.quantity=parseInt(r.quantity)),r.options&&(l.option=r.options),r.package&&(l.package=r.package),r.bundle&&(l=r.bundle)),h=!1,f=Array.isArray(l)?l:[l],t.next=10,e.$axios.post("cart",f);case 10:return 0===(d=t.sent).code?(d.data.map((function(e){o.push(e.id)})),c&&o.length>0&&(o.map((function(e){c.includes(e)||c.push(e)})),e.$setChoose(c)),h=!0,"buyitnow"===r.type&&(window.location.href="/cart")):h=d.message,t.abrupt("return",h);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()),t("mathCartChooseTotal",(function(t,n){var r=e.$decimal,o=new r(0),c=new r(0),l=0,h=new r(0),f=new r(0),d=new r(0),m=new r(0),v=new r(0),_=new r(0),y=new r(0),w=new r(0),x={num:0,weight:0,total:0,originTotal:0,tieredDiscount:0,packageDiscount:0,vipDiscount:0,specialDiscount:0,distributorDiscount:0,exchangeDiscount:0};return t.map((function(t){if(t.choose){var x=e.$mathSubTotal(t.info.price,t.cart.quantity,n),sub=new r(x),S=e.$mathSubTotal(t.info.originPrice,t.cart.quantity),T=new r(S),E=new r(t.info.weight).times(new r(t.cart.quantity)),M=e.$mathSubTotal(t.info.tieredDiscount,t.cart.quantity,n),A=e.$mathSubTotal(t.info.packageDiscount,t.cart.quantity,n),C=e.$mathSubTotal(t.info.vipDiscount,t.cart.quantity,n),R=e.$mathSubTotal(t.info.specialDiscount,t.cart.quantity,n),k=e.$mathSubTotal(t.info.distributorDiscount,t.cart.quantity,n),O=e.$mathSubTotal(t.info.anniversary_discounted_sub_average_price,t.cart.quantity,n),P=e.$mathSubTotal(t.info.add_on_deal_sub_average_price,t.cart.quantity,n);c=c.plus(sub),o=o.plus(T),f=f.plus(M),d=d.plus(A),m=m.plus(C),v=v.plus(R),_=_.plus(k),y=y.plus(O),w=w.plus(P),l+=t.cart.quantity,h=h.plus(E)}})),n||(c=c.toFixed(2),o=o.toFixed(2),f=f.toFixed(2),d=d.toFixed(2),m=m.toFixed(2),v=v.toFixed(2),_=_.toFixed(2),y=y.toFixed(2),w=w.toFixed(2)),h=h.toFixed(2),x.num=l,x.weight=h,x.total=c,x.originTotal=o,x.tieredDiscount=f,x.packageDiscount=d,x.vipDiscount=m,x.specialDiscount=v,x.distributorDiscount=_,x.anniversaryDiscount=y,x.exchangeDiscount=w,x})),t("formatCoupon",(function(t){var n={id:t.coupon.history_id,code:t.coupon.code,type:"",st:e.$formatDate(t.coupon.coupon_date_start),et:e.$formatDate(t.coupon.coupon_date_end),reduce:0,ratio:"",threshold:t.coupon.coupon_sub_over};return 2===t.coupon.coupon_type&&(n.type="discount",n.discount=t.coupon.coupon_sub_save),3===t.coupon.coupon_type&&(n.type="ratio",n.ratio=t.coupon.coupon_sub_save+"%"),n.discount=t.sub_price,n})),t("formatShippingCoupon",(function(t){var n={id:t.history_id,st:e.$formatDate(t.coupon_date_start),et:e.$formatDate(t.coupon_date_end),discount:t.coupon_shipping_price,free:!1};return 1===t.coupon_type&&(n.free=!0),n})),t("serverErrorLog",(function(e){var t=e.key,n=e.msg,r=e.route;try{n=JSON.stringify(n)}catch(e){n+=""}try{r=JSON.stringify(r)}catch(e){r=""}})),t("encodeURIComponent_dfseo",(function(e){return encodeURIComponent(e).replace(/(%20)|(%3A)/g,"-")})),t("decodeURIComponent_dfseo",(function(e){return decodeURIComponent(e.replace(/-/g," "))})),t("getVipDiscountPercent",(function(e){var t=0;switch(e){case 2:t=3;break;case 3:t=5;break;case 4:t=8;break;case 5:t=12;break;case 6:t=15}return t})),t("extractTextFromHTML",(function(e){return e.replace(/<[^>]*>/g,"")})),t("navigateToHash",(function(e){if(window){e="#"+e.split(" ").join("-");var t=document.querySelector(e),head=document.querySelector(".headFrame"),menu=document.querySelector(".product-introduction-menu"),n=(t&&t.getBoundingClientRect().top||0)-(head&&head.getBoundingClientRect().height||0)-(menu&&menu.getBoundingClientRect().height||0);window.scrollBy({top:n,behavior:"smooth"})}})),t("accountSetting",function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){var r,c,l,h,f,d,data,i,m,v,p,_,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(f in"",l=[],r={level:"member_credit_level",discount:"member_credit_rule_vip_discount",gift:"member_credit_rule_upgrade_gift",coupon:"member_credit_rule_shipping_coupon"},Object(o.a)(r,"gift","member_credit_rule_upgrade_gift"),Object(o.a)(r,"free","member_credit_rule_free_shipping_coupon"),Object(o.a)(r,"interest","member_credit_interest_tag"),Object(o.a)(r,"purpose","member_credit_purchase_purpose"),Object(o.a)(r,"occupation","affiliate_occupation_list"),Object(o.a)(r,"promotion","affiliate_promotion_list"),n||(n=[]),h=r)l.push(h[f]);return c=l.join(","),t.next=8,e.$axios("accountSetting",{plus:"/"+c});case 8:if(d=t.sent,data={},0===d.code)for(i in d.data)m=d.data[i],data[i]=m;for(p in v={},h)v[p]=data[h[p]];return n.length>0&&(_={},y=!1,n.map((function(e){v[e]&&(_[e]=v[e],y=!0)})),y&&(v=_)),t.abrupt("return",v);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t("getVipUpInfo",Object(r.a)(regeneratorRuntime.mark((function t(){var n,source,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.get("getMyVip");case 2:return n=t.sent,t.next=5,e.$accountSetting(["discount","coupon","gift"]);case 5:return source=t.sent,r={level:"",reward:0,safePoint:0,upPoint:0,begin:0,end:0,next:"",prev:"",text:"",html:"",date:"",expireDateStr:"",benefits:{}},0===n.code&&(n=n.data,r.level=n.vip_level,r.reward=n.reward_points,r.next=n.next_level,r.prev=n.previous_level,r.date=new Date(1e3*n.vip_expire_date),r.expireDateStr=Ee()(r.date).format("MMM DD, YYYY"),r.begin=n.previous_level_max_points,r.end=n.next_level_min_points,r.
2yearPoint=n.level_validity_period_points,r.upPoint=n.next_level_min_points-n.reward_points,r.safePoint=r.yearPoint-n.reward_points,r.yearPoint<0?(r.text="Maintain your "+r.level+" status with "+r.safePoint+" more points.",r.html="Maintain your "+r.level+" status with <span>"+r.safePoint+'</span> more points. <a href="/">Upgrade Now ></a>'):"VIP6"===n.vip_level?(r.text="Max Level",r.html="Max Level"):(r.text="Upgrade to "+r.next+" with "+r.upPoint+" more points.",r.html="Upgrade to "+r.next+" with <span>"+r.upPoint+'</span> more points. <a href="/">Upgrade Now ></a>')),source.discount&&source.discount.map((function(e,i){var t={text:e.level,discount:Math.floor(100*Number(e.discount)),coupon:"",free:"",reward:{title:"Birthday Gift",text:"Double",desc:"Reward Points"},server:!1};if("VIP5"!==e.level&&"VIP6"!==e.level||(t.server=!0),source.coupon[i].shipping){var n=source.coupon[i].shipping.split("*$"),o={num:n[0],price:n[1]};t.coupon=o}source.gift[i].upgrade&&(t.free=source.gift[i].upgrade),r.benefits[e.level]=t})),t.abrupt("return",r);case 10:case"end":return t.stop()}}),t)})))),t("removeStyle",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t)return"";var r=[/&nbsp;/gi,/height="[\d]*"/gi,/width="[\d]*"/gi];r.forEach((function(e){t=t.replaceAll(e,"")}));var o=/style="([^"]*)"/gi;Array.isArray(n)&&(t=t.replace(o,(function(e,t){var r,o="",c=new Set(n.map((function(e){return e.toLowerCase()}))),l=Le(t.split(";").map((function(e){return e.trim()})));try{for(l.s();!(r=l.n()).done;){var h=r.value;if(h){var f=h.split(":").map((function(e){return e.trim()})),d=Object(B.a)(f,2),m=d[0],v=d[1];c.has(m.toLowerCase())&&(o+="".concat(m,": ").concat(v,";"))}}}catch(e){l.e(e)}finally{l.f()}return o?'style="'.concat(o,'"'):""})));var c=/<img[^>]*src="([^"]+)"[^>]*>/g;return t=t.replace(c,(function(t,n){return t.replace(n,e.$getWebp(n))}))})),t("historyback",(function(){window&&(window.history.length>1?window.history.go(-1):window.location.href="/account")})),t("getProductUrl",(function(e,t){switch(e){case"package":return"/kit-".concat(Re.b[t],".html");default:return"/product-".concat(t,".html")}})),t("authLogin",(function(t){if(t||(t=e.$route.path),window)return"guest"!==e.$getUserinfo().identity||(window.location.href="/login?backurl="+encodeURIComponent(t),!1)})),t("orderByWarehouse",(function(t){var n=e.$getUserinfo(),r="",o=[],c=[];try{Ce.c.map((function(e){n.warehouse===e.id&&(r=e.indexOrderKey)})),r?(t.map((function(e){e.product[r]>0?o.push(e):c.push(e)})),c=o.concat(c)):c=t}catch(e){c=t}return c})),t("isChinaIp",(function(){return!1})),t("formatVideoUrl",(function(e){return e?(e.startsWith("http://")&&(e=e.replace("http://","https://")),e):e}))},De=n(264),Ue=n.n(De),Fe=function(e,t){t("getApiUrl",(function(e){var t={};h({key:"loginbyuc",type:"usercenter",url:"/user/login"}),h({key:"getUCToken",type:"usercenter",url:"/user/login/get_app_auth_token_v"}),h({key:"uploadFile",type:"usercenter",url:"/upload/aws_s3"}),h({key:"getNewShopToken",type:"shopnew",url:"/api/main/login"}),h({key:"getMeInfo",type:"shopnew",url:"/api/main/me"}),h({key:"accountSetting",type:"shopnew",url:"/api/main/setting"}),h({key:"updateAccountOther",type:"shopnew",url:"/api/main/me/update-info"}),h({key:"getMeStoreCredit",type:"shopnew",url:"/api/main/me/store-credit"}),h({key:"getMePopup",type:"shopnew",url:"/api/main/me/popup"}),h({key:"queryPopup",type:"shopnew",url:"/api/main/me/query-popup"}),h({key:"recordPopup",type:"shopnew",url:"/api/main/me/record-popup"}),h({key:"getOther",type:"shopnew",url:"/api/main/batch-call-api"}),h({key:"wishlist",type:"shopnew",url:"/api/main/me/wishlist"}),h({key:"getWishlist",type:"shopnew",url:"/api/main/me/get-wishlist"}),h({key:"guestToken",type:"shopnew",url:"/api/main/temporary_login"}),h({key:"getCurrencys",type:"shopnew",url:"/api/main/currency"}),h({key:"cart",type:"shopnew",url:"/api/main/cart"}),h({key:"emptycart",type:"shopnew",url:"/api/main/cart/empty"}),h({key:"checkoutcart",type:"shopnew",url:"/api/main/cart/get-my-cart-items"}),h({key:"cartDelete",type:"shopnew",url:"/api/main/cart/delete"}),h({key:"cartUpdateQuantity",type:"shopnew",url:"/api/main/cart/update-quantity"}),h({key:"paypalexpress",type:"shopnew",url:"/api/main/checkout/no-login-express-checkout"}
2),h({key:"getpaypalexpressinfo",type:"shopnew",url:"/api/main/checkout/get-express-checkout-details"}),h({key:"confirmpaypalexpress",type:"shopnew",url:"/api/main/checkout/paypal-confirm"}),h({key:"freeShippingDisparity",type:"shopnew",url:"/api/main/checkout/get-shipping-final-price"}),h({key:"myAddress",type:"shopnew",url:"/api/main/me/address"}),h({key:"country",type:"shopnew",url:"/api/main/country"}),h({key:"shippingMethods",type:"shopnew",url:"/api/main/checkout/get-shipping-methods"}),h({key:"collectDelivery",type:"shopnew",url:"/api/main/checkout/save-collect-delivery"}),h({key:"paymentMethods",type:"shopnew",url:"/api/main/checkout/get-payment-methods"}),h({key:"confirmOrder",type:"shopnew",url:"/api/main/checkout/confirm"}),h({key:"getOrder",type:"shopnew",url:"/api/main/checkout/order"}),h({key:"getMyCoupons",type:"shopnew",url:"/api/main/me/coupon"}),h({key:"getMyShippingCoupons",type:"shopnew",url:"/api/main/me/shipping_coupon"}),h({key:"getCodeCoupon",type:"shopnew",url:"/api/main/me/get-coupon-code-price"}),h({key:"getCouponBy",type:"shopnew",url:"/api/main/me/get-coupon"}),h({key:"getCoupon",type:"shopnew",url:"/api/main/coupon"}),h({key:"getCouponList",type:"shopnew",url:"/api/main/me/get-coupon-list"}),h({key:"getCategory",type:"shopnew",url:"/api/main/category/top"}),h({key:"getCategoryPageInfo",type:"shopnew",url:"/api/main/category"}),h({key:"getPmTags",type:"shopnew",url:"/api/main/category/pm-tags"}),h({key:"searchProduct",type:"shopnew",url:"/api/main/product/search"}),h({key:"product",type:"shopnew",url:"/api/main/product"}),h({key:"productNotify",type:"shopnew",url:"/api/main/product/notify-me"}),h({key:"productReview",type:"shopnew",url:"/api/main/product/get-review-list"}),h({key:"indexProduct",type:"shopnew",url:"/api/main/product/get-cms-product"}),h({key:"indexDiscover",type:"shopnew",url:"/api/main/product/discover-now"}),h({key:"productPrice",type:"shopnew",url:"/api/main/price"}),h({key:"information",type:"shopnew",url:"/api/main/information"}),h({key:"hitmarketing",type:"shopnew",url:"/api/main/hit-marketing"}),h({key:"reviewNum",type:"shopnew",url:"/api/main/me/red-dot"}),h({key:"review",type:"shopnew",url:"/api/main/me/order/review"}),h({key:"getOrderList",type:"shopnew",url:"/api/main/me/get-order-list"}),h({key:"getUnreviewedOrderIds",type:"shopnew",url:"/api/main/me/get-order-ids"}),h({key:"getUnreviewedProducts",type:"shopnew",url:"/api/main/me/get-uncommented-products"}),h({key:"actOrder",type:"shopnew",url:"/api/main/me/order"}),h({key:"getStorelist",type:"shopnew",url:"/api/main/me/get-store-list"}),h({key:"getMyVip",type:"shopnew",url:"/api/main/me/vip-info"}),h({key:"getMyTask",type:"shopnew",url:"/api/main/me/all-task"}),h({key:"getMyReward",type:"shopnew",url:"/api/main/me/get-reward-list"}),h({key:"joinAffiliate",type:"shopnew",url:"/api/main/me/affiliate/add"}),h({key:"getAffiliateInfo",type:"shopnew",url:"/api/main/me/affiliate-info"}),h({key:"requestAffiliatePayout",type:"shopnew",url:"/api/main/me/affiliate/request-payout"}),h({key:"getAffiliatePayoutList",type:"shopnew",url:"/api/main/me/affiliate/payout-list"}),h({key:"getAffiliateTransactions",type:"shopnew",url:"/api/main/me/get-withdrawal-list"}),h({key:"customerTag",type:"shopnew",url:"/api/main/me/customer-tag"}),h({key:"getExchangeSetting",type:"shopnew",url:"/api/main/setting/AddOnDeal,shipping_method_rules_express_setting,shipping_method_rules_dhl_setting"}),h({key:"getGiftInfo",type:"shopnew",url:"/api/main/checkout/old-customer-gift-eligibility"}),h({key:"logAdd",type:"cms",url:"/api/log/add"}),h({key:"logAddV2",type:"cms",url:"/api/v2/log/add"}),h({key:"searchMaterialList",type:"cms",url:"/api/material_list/search"}),h({key:"getMaterialList",type:"cms",url:"/api/material_list/get"}),h({key:"findMaterialList",type:"cms",url:"/api/material_list/find"}),h({key:"addMaterial",type:"cms",url:"/api/material_list/add"}),h({key:"findProjectList",type:"cms",url:"/api/project/find"}),h({key:"getBlogTag",type:"cms",url:"/api/category/get"}),h({key:"getTagInfo",type:"cms",url:"/api/category/find"}),h({key:"searchWiki",type:"wiki",url:"/main/api/material-list/search"}),h({key:"nuxtapiUpdateUser",type:"nuxtapi",url:"/nuxtapi/updateuser"}),h({key:"nuxtapiLogerror",type:"nuxtapi",url:"/nuxtapi/logerror"}),h({key:"otherGetIp",type:"other",url:"http://ip-api.com/json/"});var n,r,o,c=!1,l="";try{l={usercenter:"https://api.dfrobot.com",shopnew:"https://www.dfrobot.com",cms:"https://cms.dfrobot.com",wiki:"https://wiki-manage.dfrobot.com",nuxtapi:""}[(c=t[e]).type]}catch(e){}return c&&("usercenter"===c.type?c.url=l+(n=c.url,r=(new Date).getTime(),o="app_auth_token=&app_id=432809143856280&biz_content=&sign_type=md5&timestamp="+r+"&version=1UIb4ljO5xK0CECtIl70NOOWeXzYTCg43C",n=n+"?app_auth_token=&app_id=432809143856280&biz_content=&sign_type=md5&sign="+Ue()(o)+"&timestamp="+r+"&version=1"):c.url=l+c.url),c;function h(e){t[e.key]||(t[e.key]=e)}}))},Be=function(e,t){var n=e.$axios,r=e.store,o=(e.redirect,e.$getApiUrl),c=e.$getUserinfo,l={};n.onRequest((function(e){var t="",n="";if(l=o(e.url)){if(e.url=l.url,e.apiType=l.type,e.headers["Content-Type"]&&(e.headers["content-type"]=e.headers["Content-Type"],delete e.headers["Content-Type"]),"usercenter"===l.type&&"post"===e.method)try{e.url=e.url.split("?")[0]}catch(e){}if("cms"===l.type){var c="";try{c=r.state.authUser.headers?r.state.authUser.data.ucToken:r.state.authUser.ucToken}catch(e){}e.headers["app-auth-token"]=c||""}if("shopnew"===l.type){"put"!==e.method&&"delete"!==e.method&&"get"!==e.method&&"post"!==e.method||e.plus&&(e.url=l.url+e.plus);try{r.state.authUser.headers?(t=r.state.authUser.data.newShopToken,r.state.authUser.data.identity,n=r.state.authUser.data.warehouse||Ce.a):(t=r.state.authUser.newShopToken,r.state.authUser.identity,n=r.state.authUser.warehouse||Ce.a)}catch(e){}e.Authorization?e.headers.Authorization=e.Authorization:e.headers.Authorization=t,e.headers.warehouse=n,e.warehouse&&(e.headers.warehouse=e.warehouse,delete e.warehouse)}if("shopold"===l.type&&(e.plus&&(e.url=l.url+e.plus),e.headers["content-type"]="application/x-www-form-urlencoded","post"===e.method)){var h="",f=[];for(var d in e.data)h=d+"="+e.data[d],f.push(h);h=f.join("&"),e.data=h}if("cms"===l.type&&(e.plus&&(e.url=l.url+e.plus),"post"===e.method&&"application/json"!==e.headers["content-type"])){var m="",v=[];for(var _ in e.data)m=_+"="+e.data[_],v.push(m);m=v.join("&"),e.data=m}if("wiki"===l.type&&(e.plus&&(e.url=l.url+e.plus),"post"===e.method&&"application/json"!==e.headers["content-type"])){var y="",w=[];for(var x in e.data)y=x+"="+e.data[x],w.push(y);y=w.join("&"),e.data=y}return"nuxtapi"===l.type&&(e.headers["content-type"]="application/json;charset=UTF-8"),e,e}})),n.onResponse((function(e){var t=e.data;return t.headers&&(t=t.data),t})),n.onError((function(e){var t={message:e.message,status:e.response&&e.response.status,statusText:e.response&&e.response.statusText,method:e.config&&e.config.method,url:e.config&&e.config.url,params:e.config&&e.config.params,data:e.config&&e.config.data,responseData:e.response&&e.response.data,responseHeaders:e.response&&e.response.headers,requestHeaders:e.config&&e.config.headers,completeError:e};"ECONNABORTED"!==e.code&&n.post("nuxtapiLogerror",{from:"$axios.onError client",config:JSON.stringify({user:c(),error:t})})}))},ze=n(194),He=n.n(ze),Ve=n(265),je=n.n(Ve),We=function(e,t){e.app;var n=je()(He.a);t("decimal",He.a),t("decimalFormat",n)},Ge={install:function(e){e.prototype.$bus=new e}};c.a.use(Ge);var $e={version:"0.18.5"},Xe=1200,qe=1252,Ye=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Ze={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Ke=function(e){-1!=Ye.indexOf(e)&&(qe=Ze[0]=e)};var Je=function(e){Xe=e,Ke(e)};function Qe(){Je(1200),Ke(1252)}function et(data){for(var e=[],i=0,t=data.length;i<t;++i)e[i]=data.charCodeAt(i);return e}function tt(data){for(var e=[],i=0;i<data.length>>1;++i)e[i]=String.fromCharCode(data.charCodeAt(2*i+1)+(data.charCodeAt(2*i)<<8));return e.join("")}
2var nt,it=function(data){var e=data.charCodeAt(0),t=data.charCodeAt(1);return 255==e&&254==t?function(data){for(var e=[],i=0;i<data.length>>1;++i)e[i]=String.fromCharCode(data.charCodeAt(2*i)+(data.charCodeAt(2*i+1)<<8));return e.join("")}(data.slice(2)):254==e&&255==t?tt(data.slice(2)):65279==e?data.slice(1):data},at=function(e){return String.fromCharCode(e)},st=function(e){return String.fromCharCode(e)};var ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ct(input){for(var e="",t=0,n=0,r=0,o=0,c=0,l=0,h=0,i=0;i<input.length;)o=(t=input.charCodeAt(i++))>>2,c=(3&t)<<4|(n=input.charCodeAt(i++))>>4,l=(15&n)<<2|(r=input.charCodeAt(i++))>>6,h=63&r,isNaN(n)?l=h=64:isNaN(r)&&(h=64),e+=ot.charAt(o)+ot.charAt(c)+ot.charAt(l)+ot.charAt(h);return e}function lt(input){var e="",t=0,n=0,r=0,o=0,c=0,l=0;input=input.replace(/[^\w\+\/\=]/g,"");for(var i=0;i<input.length;)t=ot.indexOf(input.charAt(i++))<<2|(o=ot.indexOf(input.charAt(i++)))>>4,e+=String.fromCharCode(t),n=(15&o)<<4|(c=ot.indexOf(input.charAt(i++)))>>2,64!==c&&(e+=String.fromCharCode(n)),r=(3&c)<<6|(l=ot.indexOf(input.charAt(i++))),64!==l&&(e+=String.fromCharCode(r));return e}var ut=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),ht=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function ft(e){return ut?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function pt(e){return ut?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var mt=function(s){return ut?ht(s,"binary"):s.split("").map((function(e){return 255&e.charCodeAt(0)}))};function gt(s){if("undefined"==typeof ArrayBuffer)return mt(s);for(var e=new ArrayBuffer(s.length),view=new Uint8Array(e),i=0;i!=s.length;++i)view[i]=255&s.charCodeAt(i);return e}function vt(data){if(Array.isArray(data))return data.map((function(e){return String.fromCharCode(e)})).join("");for(var e=[],i=0;i<data.length;++i)e[i]=String.fromCharCode(data[i]);return e.join("")}function _t(data){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(data instanceof ArrayBuffer)return _t(new Uint8Array(data));for(var e=new Array(data.length),i=0;i<data.length;++i)e[i]=data[i];return e}var yt=ut?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:ht(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var i=0,t=0;for(i=0;i<e.length;++i)t+=e[i].length;var n=new Uint8Array(t),r=0;for(i=0,t=0;i<e.length;t+=r,++i)if(r=e[i].length,e[i]instanceof Uint8Array)n.set(e[i],t);else{if("string"==typeof e[i])throw"wtf";n.set(new Uint8Array(e[i]),t)}return n}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))};var bt=/\u0000/g,wt=/[\u0001-\u0006]/g;function xt(e){for(var t="",i=e.length-1;i>=0;)t+=e.charAt(i--);return t}function St(e,t){var n=""+e;return n.length>=t?n:Dn("0",t-n.length)+n}function Tt(e,t){var n=""+e;return n.length>=t?n:Dn(" ",t-n.length)+n}function Et(e,t){var n=""+e;return n.length>=t?n:n+Dn(" ",t-n.length)}var Mt=Math.pow(2,32);function At(e,t){return e>Mt||e<-Mt?function(e,t){var n=""+Math.round(e);return n.length>=t?n:Dn("0",t-n.length)+n}(e,t):function(e,t){var n=""+e;return n.length>=t?n:Dn("0",t-n.length)+n}(Math.round(e),t)}function Ct(s,i){return i=i||0,s.length>=7+i&&103==(32|s.charCodeAt(i))&&101==(32|s.charCodeAt(i+1))&&110==(32|s.charCodeAt(i+2))&&101==(32|s.charCodeAt(i+3))&&114==(32|s.charCodeAt(i+4))&&97==(32|s.charCodeAt(i+5))&&108==(32|s.charCodeAt(i+6))}var Rt=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],kt=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var Ot={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Pt={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:4
vendor: 21,236 bytes, line 2
26,81:47,82:0},Lt={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function It(e,t,n){for(var r=e<0?-1:1,o=e*r,c=0,l=1,h=0,f=1,d=0,m=0,v=Math.floor(o);d<t&&(h=(v=Math.floor(o))*l+c,m=v*d+f,!(o-v<5e-8));)o=1/(o-v),c=l,l=h,f=d,d=m;if(m>t&&(d>t?(m=f,h=c):(m=d,h=l)),!n)return[0,r*h,m];var q=Math.floor(r*h/m);return[q,r*h-q*m,m]}function Nt(e,t,n){if(e>2958465||e<0)return null;var r=0|e,time=Math.floor(86400*(e-r)),o=0,c=[],l={D:r,T:time,u:86400*(e-r)-time,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(l.u)<1e-6&&(l.u=0),t&&t.date1904&&(r+=1462),l.u>.9999&&(l.u=0,86400==++time&&(l.T=time=0,++r,++l.D)),60===r)c=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)c=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var h=new Date(1900,0,1);h.setDate(h.getDate()+r-1),c=[h.getFullYear(),h.getMonth()+1,h.getDate()],o=h.getDay(),r<60&&(o=(o+6)%7),n&&(o=function(e,t){t[0]-=581;var n=e.getDay();e<60&&(n=(n+6)%7);return n}(h,c))}return l.y=c[0],l.m=c[1],l.d=c[2],l.S=time%60,time=Math.floor(time/60),l.M=time%60,time=Math.floor(time/60),l.H=time,l.q=o,l}var Dt=new Date(1899,11,31,0,0,0),Ut=Dt.getTime(),Ft=new Date(1900,2,1,0,0,0);function Bt(e,t){var n=e.getTime();return t?n-=1262304e5:e>=Ft&&(n+=864e5),(n-(Ut+6e4*(e.getTimezoneOffset()-Dt.getTimezoneOffset())))/864e5}function zt(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ht(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?function(e){var t=e<0?12:11,n=zt(e.toFixed(12));return n.length<=t||(n=e.toPrecision(10)).length<=t?n:e.toExponential(5)}(e):10===n?e.toFixed(10).substr(0,12):function(e){var t=zt(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),zt(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function Vt(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Ht(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return cn(14,Bt(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function jt(e,t,n,r){var o,c="",l=0,h=0,f=n.y,d=0;switch(e){case 98:f=n.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,d=2;break;default:o=f%1e4,d=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,d=t.length;break;case 3:return kt[n.m-1][1];case 5:return kt[n.m-1][0];default:return kt[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,d=t.length;break;case 3:return Rt[n.q][0];default:return Rt[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,d=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(h=r>=2?3===r?1e3:100:1===r?10:1,(l=Math.round(h*(n.S+n.u)))>=60*h&&(l=0),"s"===t?0===l?"0":""+l/h:(c=St(l,2+r),"ss"===t?c.substr(0,2):"."+c.substr(2,t.length-1))):St(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}d=3===t.length?1:2;break;case 101:o=f,d=1}return d>0?St(o,d):""}function Wt(s){if(s.length<=3)return s;for(var e=s.length%3,t=s.substr(0,e);e!=s.length;e+=3)t+=(t.length>0?",":"")+s.substr(e,3);return t}var Gt=/%/g;var $t=/# (\?+)( ?)\/( ?)(\d+)/;var Xt=/^#*0*\.([0#]+)/,qt=/\).*[0#]/,Yt=/\(###\) ###\\?-####/;function Zt(e){for(var t,n="",i=0;i!=e.length;++i)switch(t=e.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function Kt(e,t){var dd=Math.pow(10,t);return""+Math.round(e*dd)/dd}function Jt(e,t){var n=e-Math.floor(e),dd=Math.pow(10,t);return t<(""+Math.round(n*dd)).length?0:Math.round(n*dd)}function Qt(e,t,n){if(40===e.charCodeAt(0)&&!t.match(qt)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Qt("n",r,n):"("+Qt("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return tn(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Gt,""),o=t.length-r.length;return tn(e,r,n*Math.pow(10,2*o))+Dn("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return function e(t,n){var r,o=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var c=t.indexOf(".");-1===c&&(c=t.indexOf("E"));var l=Math.floor(Math.log(n)*Math.LOG10E)%c;if(l<0&&(l+=c),-1===(r=(n/Math.pow(10,l)).toPrecision(o+1+(c+l)%c)).indexOf("e")){var h=Math.floor(Math.log(n)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(h-r.length+l):r+="E+"+(h-l);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,c)+"."+r.substr(2+c)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(c+l)%c)+"."+r.substr(l)+"E"}))}else r=n.toExponential(o);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(t,n);if(36===t.charCodeAt(0))return"$"+Qt(e,t.substr(" "==t.charAt(1)?2:1),n);var o,c,l,h,f=Math.abs(n),d=n<0?"-":"";if(t.match(/^00+$/))return d+At(f,t.length);if(t.match(/^[#?]+$/))return"0"===(o=At(n,0))&&(o=""),o.length>t.length?o:Zt(t.substr(0,t.length-o.length))+o;if(c=t.match($t))return function(e,t,n){var r=parseInt(e[4],10),o=Math.round(t*r),base=Math.floor(o/r),c=o-base*r,l=r;return n+(0===base?"":""+base)+" "+(0===c?Dn(" ",e[1].length+1+e[4].length):Tt(c,e[1].length)+e[2]+"/"+e[3]+St(l,e[4].length))}(c,f,d);if(t.match(/^#+0+$/))return d+At(f,t.length-t.indexOf("0"));if(c=t.match(Xt))return o=Kt(n,c[1].length).replace(/^([^\.]+)$/,"$1."+Zt(c[1])).replace(/\.$/,"."+Zt(c[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Dn("0",Zt(c[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),c=t.match(/^(0*)\.(#*)$/))return d+Kt(f,c[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,c[1].length?"0.":".");if(c=t.match(/^#{1,3},##0(\.?)$/))return d+Wt(At(f,0));if(c=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Qt(e,t,-n):Wt(""+(Math.floor(n)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(n,c[1].length)))+"."+St(Jt(n,c[1].length),c[1].length);if(c=t.match(/^#,#*,#0/))return Qt(e,t.replace(/^#,#*,/,""),n);if(c=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=xt(Qt(e,t.replace(/[\\-]/g,""),n)),l=0,xt(xt(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return l<o.length?o.charAt(l++):"0"===e?"0":""})));if(t.match(Yt))return"("+(o=Qt(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var m="";if(c=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(c[4].length,7),h=It(f,Math.pow(10,l)-1,!1),o=""+d," "==(m=tn("n",c[1],h[1])).charAt(m.length-1)&&(m=m.substr(0,m.length-1)+"0"),o+=m+c[2]+"/"+c[3],(m=Et(h[2],l)).length<c[4].length&&(m=Zt(c[4].substr(c[4].length-m.length))+m),o+=m;if(c=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(Math.max(c[1].length,c[4].length),7),d+((h=It(f,Math.pow(10,l)-1,!0))[0]||(h[1]?"":"0"))+" "+(h[1]?Tt(h[1],l)+c[2]+"/"+c[3]+Et(h[2],l):Dn(" ",2*l+1+c[2].length+c[3].length));if(c=t.match(/^[#0?]+$/))return o=At(n,0),t.length<=o.length?o:Zt(t.substr(0,t.length-o.length))+o;if(c=t.match(/^([#0?]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(c[2].length,10)).replace(/([^0])0+$/,"$1"),l=o.indexOf(".");var v=t.indexOf(".")-l,_=t.length-o.length-v;return Zt(t.substr(0,v)+o+t.substr(t.length-_))}if(c=t.match(/^00,000\.([#0]*0)$/))return l=Jt(n,c[1].length),n<0?"-"+Qt(e,t,-n):Wt(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?St(0,3-e.length):"")+e}))+"."+St(l,c[1].length);switch(t){case"###,##0.00":return Qt(e,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var y=Wt(At(f,0));return"0"!==y?d+y:"";case"###,###.00":return Qt(e,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return Qt(e,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function en(e,t,n){if(40===e.charCodeAt(0)&&!t.match(qt)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?en("n",r,n):"("+en("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return tn(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(e,t,n);if(-1!==t.indexOf("%"))return function(e,t,n){var r=t.replace(Gt,""),o=t.length-r.length;return tn(e,r,n*Math.pow(10,2*o))+Dn("%",o)}(e,t,n);if(-1!==t.indexOf("E"))return function e(t,n){var r,o=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var c=t.indexOf(".");-1===c&&(c=t.indexOf("E"));var l=Math.floor(Math.log(n)*Math.LOG10E)%c;if(l<0&&(l+=c),!(r=(n/Math.pow(10,l)).toPrecision(o+1+(c+l)%c)).match(/[Ee]/)){var h=Math.floor(Math.log(n)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(h-r.length+l):r+="E+"+(h-l),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(c+l)%c)+"."+r.substr(l)+"E"}))}else r=n.toExponential(o);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(t,n);if(36===t.charCodeAt(0))return"$"+en(e,t.substr(" "==t.charAt(1)?2:1),n);var o,c,l,h,f=Math.abs(n),d=n<0?"-":"";if(t.match(/^00+$/))return d+St(f,t.length);if(t.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>t.length?o:Zt(t.substr(0,t.length-o.length))+o;if(c=t.match($t))return function(e,t,n){return n+(0===t?"":""+t)+Dn(" ",e[1].length+2+e[4].length)}(c,f,d);if(t.match(/^#+0+$/))return d+St(f,t.length-t.indexOf("0"));if(c=t.match(Xt))return o=(o=(""+n).replace(/^([^\.]+)$/,"$1."+Zt(c[1])).replace(/\.$/,"."+Zt(c[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Dn("0",Zt(c[1]).length-t.length)})),-1!==t.indexOf("0.")?o:o.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),c=t.match(/^(0*)\.(#*)$/))return d+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,c[1].length?"0.":".");if(c=t.match(/^#{1,3},##0(\.?)$/))return d+Wt(""+f);if(c=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+en(e,t,-n):Wt(""+n)+"."+Dn("0",c[1].length);if(c=t.match(/^#,#*,#0/))return en(e,t.replace(/^#,#*,/,""),n);if(c=t.match(/^([0#]+)(\\?-([0#]+))+$/))return o=xt(en(e,t.replace(/[\\-]/g,""),n)),l=0,xt(xt(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return l<o.length?o.charAt(l++):"0"===e?"0":""})));if(t.match(Yt))return"("+(o=en(e,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var m="";if(c=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(c[4].length,7),h=It(f,Math.pow(10,l)-1,!1),o=""+d," "==(m=tn("n",c[1],h[1])).charAt(m.length-1)&&(m=m.substr(0,m.length-1)+"0"),o+=m+c[2]+"/"+c[3],(m=Et(h[2],l)).length<c[4].length&&(m=Zt(c[4].substr(c[4].length-m.length))+m),o+=m;if(c=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return l=Math.min(Math.max(c[1].length,c[4].length),7),d+((h=It(f,Math.pow(10,l)-1,!0))[0]||(h[1]?"":"0"))+" "+(h[1]?Tt(h[1],l)+c[2]+"/"+c[3]+Et(h[2],l):Dn(" ",2*l+1+c[2].length+c[3].length));if(c=t.match(/^[#0?]+$/))return o=""+n,t.length<=o.length?o:Zt(t.substr(0,t.length-o.length))+o;if(c=t.match(/^([#0]+)\.([#0]+)$/)){o=""+n.toFixed(Math.min(c[2].length,10)).replace(/([^0])0+$/,"$1"),l=o.indexOf(".");var v=t.indexOf(".")-l,_=t.length-o.length-v;return Zt(t.substr(0,v)+o+t.substr(t.length-_))}if(c=t.match(/^00,000\.([#0]*0)$/))return n<0?"-"+en(e,t,-n):Wt(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?St(0,3-e.length):"")+e}))+"."+St(0,c[1].length);switch(t){case"###,###":case"##,###":case"#,###":var y=Wt(""+f);return"0"!==y?d+y:"";default:if(t.match(/\.[0#?]*$/))return en(e,t.slice(0,t.lastIndexOf(".")),n)+Zt(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function tn(e,t,n){return(0|n)===n?en(e,t,n):Qt(e,t,n)}var nn=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function rn(e){for(var i=0,t="",n="";i<e.length;)switch(t=e.charAt(i)){case"G":Ct(e,i)&&(i+=6),i++;break;case'"':for(;34!==e.charCodeAt(++i)&&i<e.length;);++i;break;case"\\":case"_":i+=2;break;case"@":++i;break;case"B":case"b":if("1"===e.charAt(i+1)||"2"===e.charAt(i+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(i,3).toUpperCase())return!0;if("AM/PM"===e.substr(i,5).toUpperCase())return!0;if("上午/下午"===e.substr(i,5).toUpperCase())return!0;++i;break;case"[":for(n=t;"]"!==e.charAt(i++)&&i<e.length;)n+=e.charAt(i);if(n.match(nn))return!0;break;case".":case"0":case"#":for(;i<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++i))>-1||"\\"==t&&"-"==e.charAt(i+1)&&"0#".indexOf(e.charAt(i+2))>-1););break;case"?":for(;e.charAt(++i)===t;);break;case"*":++i," "!=e.charAt(i)&&"*"!=e.charAt(i)||++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;);break;case" ":default:++i}return!1}var an=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function sn(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e<n)return!0;break;case"<>":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function on(e,t){var n=function(e){for(var t=[],n=!1,i=0,r=0;i<e.length;++i)switch(e.charCodeAt(i)){case 34:n=!n;break;case 95:case 42:case 92:++i;break;case 59:t[t.length]=e.substr(r,i-r),r=i+1}if(t[t.length]=e.substr(r),!0===n)throw new Error("Format |"+e+"| unterminated string ");return t}(e),r=n.length,o=n[r-1].indexOf("@");if(r<4&&o>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||o>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=o>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=o>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=o>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var c=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,c];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var l=n[0].match(an),h=n[1].match(an);return sn(t,l)?[r,n[0]]:sn(t,h)?[r,n[1]]:[r,n[null!=l&&null!=h?2:1]]}return[r,c]}function cn(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:Ot)[e])&&(r=n.table&&n.table[Pt[e]]||Ot[Pt[e]]),null==r&&(r=Lt[e]||"General")}if(Ct(r,0))return Vt(t,n);t instanceof Date&&(t=Bt(t,n.date1904));var o=on(r,t);if(Ct(o[1]))return Vt(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,n,r){for(var dt,o,c,l=[],h="",i=0,f="",d="t",hr="H";i<e.length;)switch(f=e.charAt(i)){case"G":if(!Ct(e,i))throw new Error("unrecognized character "+f+" in "+e);l[l.length]={t:"G",v:"General"},i+=7;break;case'"':for(h="";34!==(c=e.charCodeAt(++i))&&i<e.length;)h+=String.fromCharCode(c);l[l.length]={t:"t",v:h},++i;break;case"\\":var m=e.charAt(++i),v="("===m||")"===m?m:"t";l[l.length]={t:v,v:m},++i;break;case"_":l[l.length]={t:"t",v:" "},i+=2;break;case"@":l[l.length]={t:"T",v:t},++i;break;case"B":case"b":if("1"===e.charAt(i+1)||"2"===e.charAt(i+1)){if(null==dt&&null==(dt=Nt(t,n,"2"===e.charAt(i+1))))return"";l[l.length]={t:"X",v:e.substr(i,2)},d=f,i+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==dt&&null==(dt=Nt(t,n)))return"";for(h=f;++i<e.length&&e.charAt(i).toLowerCase()===f;)h+=f;"m"===f&&"h"===d.toLowerCase()&&(f="M"),"h"===f&&(f=hr),l[l.length]={t:f,v:h},d=f;break;case"A":case"a":case"上":var q={t:f,v:f};if(null==dt&&(dt=Nt(t,n)),"A/P"===e.substr(i,3).toUpperCase()?(null!=dt&&(q.v=dt.H>=12?"P":"A"),q.t="T",hr="h",i+=3):"AM/PM"===e.substr(i,5).toUpperCase()?(null!=dt&&(q.v=dt.H>=12?"PM":"AM"),q.t="T",i+=5,hr="h"):"上午/下午"===e.substr(i,5).toUpperCase()?(null!=dt&&(q.v=dt.H>=12?"下午":"上午"),q.t="T",i+=5,hr="h"):(q.t="t",++i),null==dt&&"T"===q.t)return"";l[l.length]=q,d=f;break;case"[":for(h=f;"]"!==e.charAt(i++)&&i<e.length;)h+=e.charAt(i);if("]"!==h.slice(-1))throw'unterminated "[" block: |'+h+"|";if(h.match(nn)){if(null==dt&&null==(dt=Nt(t,n)))return"";l[l.length]={t:"Z",v:h.toLowerCase()},d=h.charAt(1)}else h.indexOf("$")>-1&&(h=(h.match(/\$([^-\[\]]*)/)||[])[1]||"$",rn(e)||(l[l.length]={t:"t",v:h}));break;case".":if(null!=dt){for(h=f;++i<e.length&&"0"===(f=e.charAt(i));)h+=f;l[l.length]={t:"s",v:h};break}case"0":case"#":for(h=f;++i<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(i))>-1;)h+=f;l[l.length]={t:"n",v:h};break;case"?":for(h=f;e.charAt(++i)===f;)h+=f;l[l.length]={t:f,v:h},d=f;break;case"*":++i," "!=e.charAt(i)&&"*"!=e.charAt(i)||++i;break;case"(":case")":l[l.length]={t:1===r?"t":f,v:f},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(h=f;i<e.length&&"0123456789".indexOf(e.charAt(++i))>-1;)h+=e.charAt(i);l[l.length]={t:"D",v:h};break;case" ":l[l.length]={t:f,v:f},++i;break;case"$":l[l.length]={t:"t",v:"$"},++i;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);l[l.length]={t:"t",v:f},++i}var _,y=0,w=0;for(i=l.length-1,d="t";i>=0;--i)switch(l[i].t){case"h":case"H":l[i].t=hr,d="h",y<1&&(y=1);break;case"s":(_=l[i].v.match(/\.0+$/))&&(w=Math.max(w,_[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":d=l[i].t;break;case"m":"s"===d&&(l[i].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&l[i].v.match(/[Hh]/)&&(y=1),y<2&&l[i].v.match(/[Mm]/)&&(y=2),y<3&&l[i].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:dt.u>=.5&&(dt.u=0,++dt.S),dt.S>=60&&(dt.S=0,++dt.M),dt.M>=60&&(dt.M=0,++dt.H);break;case 2:dt.u>=.5&&(dt.u=0,++dt.S),dt.S>=60&&(dt.S=0,++dt.M)}var x,S="";for(i=0;i<l.length;++i)switch(l[i].t){case"t":case"T":case" ":case"D":break;case"X":l[i].v="",l[i].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":l[i].v=jt(l[i].t.charCodeAt(0),l[i].v,dt,w),l[i].t="t";break;case"n":case"?":for(x=i+1;null!=l[x]&&("?"===(f=l[x].t)||"D"===f||(" "===f||"t"===f)&&null!=l[x+1]&&("?"===l[x+1].t||"t"===l[x+1].t&&"/"===l[x+1].v)||"("===l[i].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===l[x].v||" "===l[x].v&&null!=l[x+1]&&"?"==l[x+1].t));)l[i].v+=l[x].v,l[x]={v:"",t:";"},++x;S+=l[i].v,i=x-1;break;case"G":l[i].t="t",l[i].v=Vt(t,n)}var T,E,M="";if(S.length>0){40==S.charCodeAt(0)?(T=t<0&&45===S.charCodeAt(0)?-t:t,E=tn("n",S,T)):(E=tn("n",S,T=t<0&&r>1?-t:t),T<0&&l[0]&&"t"==l[0].t&&(E=E.substr(1),l[0].v="-"+l[0].v)),x=E.length-1;var A=l.length;for(i=0;i<l.length;++i)if(null!=l[i]&&"t"!=l[i].t&&l[i].v.indexOf(".")>-1){A=i;break}var C=l.length;if(A===l.length&&-1===E.indexOf("E")){for(i=l.length-1;i>=0;--i)null!=l[i]&&-1!=="n?".indexOf(l[i].t)&&(x>=l[i].v.length-1?(x-=l[i].v.length,l[i].v=E.substr(x+1,l[i].v.length)):x<0?l[i].v="":(l[i].v=E.substr(0,x+1),x=-1),l[i].t="t",C=i);x>=0&&C<l.length&&(l[C].v=E.substr(0,x+1)+l[C].v)}else if(A!==l.length&&-1===E.indexOf("E")){for(x=E.indexOf(".")-1,i=A;i>=0;--i)if(null!=l[i]&&-1!=="n?".indexOf(l[i].t)){for(o=l[i].v.indexOf(".")>-1&&i===A?l[i].v.indexOf(".")-1:l[i].v.length-1,M=l[i].v.substr(o+1);o>=0;--o)x>=0&&("0"===l[i].v.charAt(o)||"#"===l[i].v.charAt(o))&&(M=E.charAt(x--)+M);l[i].v=M,l[i].t="t",C=i}for(x>=0&&C<l.length&&(l[C].v=E.substr(0,x+1)+l[C].v),x=E.indexOf(".")+1,i=A;i<l.length;++i)if(null!=l[i]&&(-1!=="n?(".indexOf(l[i].t)||i===A)){for(o=l[i].v.indexOf(".")>-1&&i===A?l[i].v.indexOf(".")+1:0,M=l[i].v.substr(0,o);o<l[i].v.length;++o)x<E.length&&(M+=E.charAt(x++));l[i].v=M,l[i].t="t",C=i}}}for(i=0;i<l.length;++i)null!=l[i]&&"n?".indexOf(l[i].t)>-1&&(T=r>1&&t<0&&i>0&&"-"===l[i-1].v?-t:t,l[i].v=tn(l[i].t,l[i].v,T),l[i].t="t");var R="";for(i=0;i!==l.length;++i)null!=l[i]&&(R+=l[i].v);return R}(o[1],t,n,o[0])}function ln(e,t){if("number"!=typeof t){t=+t||-1;for(var i=0;i<392;
2++i)if(null!=Ot[i]){if(Ot[i]==e){t=i;break}}else t<0&&(t=i);t<0&&(t=391)}return Ot[t]=e,t}function un(e){for(var i=0;392!=i;++i)void 0!==e[i]&&ln(e[i],i)}function hn(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',Ot=e}var fn={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},dn=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var pn=function(){var e={};e.version="1.2.0";var t=function(){for(var e=0,table=new Array(256),t=0;256!=t;++t)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=t)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,table[t]=e;return"undefined"!=typeof Int32Array?new Int32Array(table):table}();var n=function(e){var t=0,n=0,r=0,table="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)table[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=table[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!=typeof Int32Array?table.subarray(256*r,256*r+256):table.slice(256*r,256*r+256);return o}(t),r=n[0],o=n[1],c=n[2],l=n[3],h=n[4],f=n[5],d=n[6],m=n[7],v=n[8],_=n[9],y=n[10],w=n[11],x=n[12],S=n[13],T=n[14];return e.table=t,e.bstr=function(e,n){for(var r=-1^n,i=0,o=e.length;i<o;)r=r>>>8^t[255&(r^e.charCodeAt(i++))];return~r},e.buf=function(e,n){for(var E=-1^n,M=e.length-15,i=0;i<M;)E=T[e[i++]^255&E]^S[e[i++]^E>>8&255]^x[e[i++]^E>>16&255]^w[e[i++]^E>>>24]^y[e[i++]]^_[e[i++]]^v[e[i++]]^m[e[i++]]^d[e[i++]]^f[e[i++]]^h[e[i++]]^l[e[i++]]^c[e[i++]]^o[e[i++]]^r[e[i++]]^t[e[i++]];for(M+=15;i<M;)E=E>>>8^t[255&(E^e[i++])];return~E},e.str=function(e,n){for(var r=-1^n,i=0,o=e.length,c=0,l=0;i<o;)(c=e.charCodeAt(i++))<128?r=r>>>8^t[255&(r^c)]:c<2048?r=(r=r>>>8^t[255&(r^(192|c>>6&31))])>>>8^t[255&(r^(128|63&c))]:c>=55296&&c<57344?(c=64+(1023&c),l=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^t[255&(r^(240|c>>8&7))])>>>8^t[255&(r^(128|c>>2&63))])>>>8^t[255&(r^(128|l>>6&15|(3&c)<<4))])>>>8^t[255&(r^(128|63&l))]):r=(r=(r=r>>>8^t[255&(r^(224|c>>12&15))])>>>8^t[255&(r^(128|c>>6&63))])>>>8^t[255&(r^(128|63&c))];return~r},e}(),mn=function(){var e,t={};function n(p){if("/"==p.charAt(p.length-1))return-1===p.slice(0,-1).indexOf("/")?p:n(p.slice(0,-1));var e=p.lastIndexOf("/");return-1===e?p:p.slice(0,e+1)}function r(p){if("/"==p.charAt(p.length-1))return r(p.slice(0,-1));var e=p.lastIndexOf("/");return-1===e?p:p.slice(e+1)}function o(e,t){"string"==typeof t&&(t=new Date(t));var n=t.getHours();n=(n=n<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=(r=r<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,r)}function c(e){Bi(e,0);for(var t={},n=0;e.l<=e.length-4;
vendor: 8,079 bytes, line 2
2){var r=e.read_shift(2),o=e.read_shift(2),c=e.l+o,p={};switch(r){case 21589:1&(n=e.read_shift(1))&&(p.mtime=e.read_shift(4)),o>5&&(2&n&&(p.atime=e.read_shift(4)),4&n&&(p.ctime=e.read_shift(4))),p.mtime&&(p.mt=new Date(1e3*p.mtime))}e.l=c,t[r]=p}return t}function l(){return e||(e={})}function h(e,t){if(80==e[0]&&75==e[1])return ce(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=C(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=t&&t.root||"",data=(ut&&Buffer.isBuffer(e)?e.toString("binary"):C(e)).split("\r\n"),r=0,o="";for(r=0;r<data.length;++r)if(o=data[r],/^Content-Location:/i.test(o)&&(o=o.slice(o.indexOf("file")),n||(n=o.slice(0,o.lastIndexOf("/")+1)),o.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),o.slice(0,n.length)!=n););var c=(data[1]||"").match(/boundary="(.*?)"/);if(!c)throw new Error("MAD cannot find boundary");var l="--"+(c[1]||""),h={FileIndex:[],FullPaths:[]};v(h);var f,d=0;for(r=0;r<data.length;++r){var line=data[r];line!==l&&line!==l+"--"||(d++&&pe(h,data.slice(f,r),n),f=r)}return h}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n,r,o,c,l,h,_=512,y=[],w=e.slice(0,512);Bi(w,0);var x=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(T,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(w);switch(n=x[0]){case 3:_=512;break;case 4:_=4096;break;case 0:if(0==x[1])return ce(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==_&&Bi(w=e.slice(0,_),28);var header=e.slice(0,_);!function(e,t){var n;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(w,n);var E=w.read_shift(4,"i");if(3===n&&0!==E)throw new Error("# Directory Sectors: Expected 0 saw "+E);w.l+=4,c=w.read_shift(4,"i"),w.l+=4,w.chk("00100000","Mini Stream Cutoff Size: "),l=w.read_shift(4,"i"),r=w.read_shift(4,"i"),h=w.read_shift(4,"i"),o=w.read_shift(4,"i");for(var q=-1,M=0;M<109&&!((q=w.read_shift(4,"i"))<0);++M)y[M]=q;var A=function(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i<n;++i)r[i-1]=e.slice(i*t,(i+1)*t);return r[n-1]=e.slice(n*t),r}(e,_);!function e(t,n,r,o,c){var q=S;if(t===S){if(0!==n)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var l=r[t],h=(o>>>2)-1;if(!l)return;for(var i=0;i<h&&(q=Li(l,4*i))!==S;++i)c.push(q);e(Li(l,o-4),n-1,r,o,c)}}(h,o,A,_,y);var R=function(e,t,n,r){var o=e.length,c=[],l=[],h=[],f=[],d=r-1,i=0,m=0,v=0,_=0;for(i=0;i<o;++i)if(h=[],(v=i+t)>=o&&(v-=o),!l[v]){f=[];var y=[];for(m=v;m>=0;){y[m]=!0,l[m]=!0,h[h.length]=m,f.push(e[m]);var w=n[Math.floor(4*m/r)];if(r<4+(_=4*m&d))throw new Error("FAT boundary crossed: "+m+" 4 "+r);if(!e[w])break;if(m=Li(e[w],_),y[m])break}c[v]={nodes:h,data:oi([f])}}return c}(A,c,y,_);R[c].name="!Directory",r>0&&l!==S&&(R[l].name="!MiniFAT"),R[y[0]].name="!FAT",R.fat_addrs=y,R.ssz=_;var k=[],O=[],P=[];!function(e,t,n,r,o,c,l,h){for(var v,_=0,y=r.length?2:0,w=t[e].data,i=0,x=0;i<w.length;i+=128){var T=w.slice(i,i+128);Bi(T,64),x=T.read_shift(2),v=ui(T,0,x-y),r.push(v);var E={name:v,type:T.read_shift(1),color:T.read_shift(1),L:T.read_shift(4,"i"),R:T.read_shift(4,"i"),C:T.read_shift(4,"i"),clsid:T.read_shift(16),state:T.read_shift(4,"i"),start:0,size:0};0!==T.read_shift(2)+T.read_shift(2)+T.read_shift(2)+T.read_shift(2)&&(E.ct=m(T,T.l-8)),0!==T.read_shift(2)+T.read_shift(2)+T.read_shift(2)+T.read_shift(2)&&(E.mt=m(T,T.l-8)),E.start=T.read_shift(4,"i"),E.size=T.read_shift(4,"i"),E.size<0&&E.start<0&&(E.size=E.type=0,E.start=S,E.name=""),5===E.type?(_=E.start,o>0&&_!==S&&(t[_].name="!StreamData")):E.size>=4096?(E.storage="fat",void 0===t[E.start]&&(t[E.start]=d(n,E.start,t.fat_addrs,t.ssz)),t[E.start].name=E.name,E.content=t[E.start].data.slice(0,E.size)):(E.storage="minifat",E.size<0?E.size=0:_!==S&&E.start!==S&&t[_]&&(E.content=f(E,t[_].data,(t[h]||{}).data))),E.content&&Bi(E.content,0),c[v]=E,l.push(E)}}(c,R,A,k,r,{},O,l),function(e,t,n){for(var i=0,r=0,o=0,c=0,l=0,h=n.length,f=[],q=[];i<h;++i)f[i]=q[i]=i,t[i]=n[i];for(;l<q.length;++l)i=q[l],r=e[i].L,o=e[i].R,c=e[i].C,f[i]===i&&(-1!==r&&f[r]!==r&&(f[i]=f[r]),-1!==o&&f[o]!==o&&(f[i]=f[o])),-1!==c&&(f[c]=i),-1!==r&&i!=f[i]&&(f[r]=f[i],q.lastIndexOf(r)<l&&q.push(r)),-1!==o&&i!=f[i]&&(f[o]=f[i],q.lastIndexOf(o)<l&&q.push(o));for(i=1;i<h;++i)f[i]===i&&(-1!==o&&f[o]!==o?f[i]=f[o]:-1!==r&&f[r]!==r&&(f[i]=f[r]));for(i=1;i<h;++i)if(0!==e[i].type){if((l=i)!=f[l])do{l=f[l],t[i]=t[l]+"/"+t[i]}while(0!==l&&-1!==f[l]&&l!=f[l]);f[i]=-1}for(t[0]+="/",i=1;i<h;++i)2!==e[i].type&&(t[i]+="/")}(O,P,k),k.shift();var L={FileIndex:O,FullPaths:P};return t&&t.raw&&(L.raw={header:header,sectors:A}),L}function f(e,t,n){for(var r=e.start,o=e.size,c=[],l=r;n&&o>0&&l>=0;)c.push(t.slice(l*x,l*x+x)),o-=x,l=Li(n,4*l);return 0===c.length?Hi(0):yt(c).slice(0,e.size)}function d(e,t,n,r,o){var c=[],l=[];o||(o=[]);var h=r-1,f=0,d=0;for(f=t;f>=0;){o[f]=!0,c[c.length]=f,l.push(e[f]);var m=n[Math.floor(4*f/r)];if(r<4+(d=4*f&h))throw new Error("FAT boundary crossed: "+f+" 4 "+r);if(!e[m])break;f=Li(e[m],d)}return{nodes:c,data:oi([l])}}function m(e,t){return new Date(1e3*(Pi(e,t+4)/1e7*Math.pow(2,32)+Pi(e,t)/1e7-11644473600))}function v(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),function(e){var t="�Sh33tJ5";if(mn.find(e,"/"+t))return;var p=Hi(4);p[0]=55,p[1]=p[3]=50,p[2]=54,e.FileIndex.push({name:t,type:2,content:p,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),_(e)}(e)}function _(e,t){v(e);for(var o=!1,s=!1,i=e.FullPaths.length-1;i>=0;--i){var c=e.FileIndex[i];switch(c.type){case 0:s?o=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:s=!0,isNaN(c.R*c.L*c.C)&&(o=!0),c.R>-1&&c.L>-1&&c.R==c.L&&(o=!0);break;default:o=!0}}if(o||t){var l=new Date(1987,1,19),h=0,f=Object.create?Object.create(null):{},data=[];for(i=0;i<e.FullPaths.length;++i)f[e.FullPaths[i]]=!0,0!==e.FileIndex[i].type&&data.push([e.FullPaths[i],e.FileIndex[i]]);for(i=0;i<data.length;++i){var d=n(data[i][0]);(s=f[d])||(data.push([d,{name:r(d).replace("/",""),type:1,clsid:M,ct:l,mt:l,content:null}]),f[d]=!0)}for(data.sort((function(e,t){return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,c=Math.min(n.length,r.length);i<c;++i){if(o=n[i].length-r[i].length)return o;if(n[i]!=r[i])return n[i]<r[i]?-1:1}return n.length-r.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],i=0;i<data.length;++i)e.FullPaths[i]=data[i][0],e.FileIndex[i]=data[i][1];for(i=0;i<data.length;++i){var m=e.FileIndex[i],_=e.FullPaths[i];if(m.name=r(_).replace("/",""),m.L=m.R=m.C=-(m.color=1),m.size=m.content?m.content.length:0,m.start=0,m.clsid=m.clsid||M,0===i)m.C=data.length>1?1:-1,m.size=0,m.type=5;else if("/"==_.slice(-1)){for(h=i+1;h<data.length&&n(e.FullPaths[h])!=_;++h);for(m.C=h>=data.length?-1:h,h=i+1;h<data.length&&n(e.FullPaths[h])!=n(_);++h);m.R=h>=data.length?-1:h,m.type=1}else n(e.FullPaths[i+1]||"")==n(_)&&(m.R=i+1),m.type=2}}}function y(e,t){var n=t||{};if("mad"==n.fileType)return function(e,t){for(var n=t||{},r=n.boundary||"SheetJS",o=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(r="------="+r).slice(2)+'"',"","",""],c=e.FullPaths[0],l=c,h=e.FileIndex[0],i=1;i<e.FullPaths.length;++i)if(l=e.FullPaths[i].slice(c.length),(h=e.FileIndex[i]).size&&h.content&&"�Sh33tJ5"!=l){l=l.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(u){return"_u"+u.charCodeAt(0).toString(16)+"_"}));for(var f=h.content,d=ut&&Buffer.isBuffer(f)?f.toString("binary"):C(f),m=0,v=
2Math.min(1024,d.length),_=0,y=0;y<=v;++y)(_=d.charCodeAt(y))>=32&&_<128&&++m;var w=m>=4*v/5;o.push(r),o.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+l),o.push("Content-Transfer-Encoding: "+(w?"quoted-printable":"base64")),o.push("Content-Type: "+he(h,l)),o.push(""),o.push(w?de(d):fe(d))}return o.push(r+"--\r\n"),o.join("\r\n")}(e,n);switch(_(e),n.fileType){case"zip":return function(e,t){var n=t||{},r=[],c=[],l=Hi(1),h=n.compression?8:0,f=0;0;var i=0,d=0,m=0,v=0,_=e.FullPaths[0],y=_,x=e.FileIndex[0],S=[],T=0;for(i=1;i<e.FullPaths.length;++i)if(y=e.FullPaths[i].slice(_.length),(x=e.FileIndex[i]).size&&x.content&&"�Sh33tJ5"!=y){var E=m,M=Hi(y.length);for(d=0;d<y.length;++d)M.write_shift(1,127&y.charCodeAt(d));M=M.slice(0,M.l),S[v]=pn.buf(x.content,0);var A=x.content;8==h&&(C=A,A=w?w.deflateRawSync(C):Q(C)),(l=Hi(30)).write_shift(4,67324752),l.write_shift(2,20),l.write_shift(2,f),l.write_shift(2,h),x.mt?o(l,x.mt):l.write_shift(4,0),l.write_shift(-4,8&f?0:S[v]),l.write_shift(4,8&f?0:A.length),l.write_shift(4,8&f?0:x.content.length),l.write_shift(2,M.length),l.write_shift(2,0),m+=l.length,r.push(l),m+=M.length,r.push(M),m+=A.length,r.push(A),8&f&&((l=Hi(12)).write_shift(-4,S[v]),l.write_shift(4,A.length),l.write_shift(4,x.content.length),m+=l.l,r.push(l)),(l=Hi(46)).write_shift(4,33639248),l.write_shift(2,0),l.write_shift(2,20),l.write_shift(2,f),l.write_shift(2,h),l.write_shift(4,0),l.write_shift(-4,S[v]),l.write_shift(4,A.length),l.write_shift(4,x.content.length),l.write_shift(2,M.length),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(4,0),l.write_shift(4,E),T+=l.l,c.push(l),T+=M.length,c.push(M),++v}var C;return(l=Hi(22)).write_shift(4,101010256),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,v),l.write_shift(2,v),l.write_shift(4,T),l.write_shift(4,m),l.write_shift(2,0),yt([yt(r),yt(c),l])}(e,n)}var r=function(e){for(var t=0,n=0,i=0;i<e.FileIndex.length;++i){var r=e.FileIndex[i];if(r.content){var o=r.content.length;o>0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}for(var c=e.FullPaths.length+3>>2,l=t+127>>7,h=(t+7>>3)+n+c+l,f=h+127>>7,d=f<=109?0:Math.ceil((f-109)/127);h+f+d+127>>7>f;)d=++f<=109?0:Math.ceil((f-109)/127);var m=[1,d,f,l,c,n,t,0];return e.FileIndex[0].size=t<<6,m[7]=(e.FileIndex[0].start=m[0]+m[1]+m[2]+m[3]+m[4]+m[5])+(m[6]+7>>3),m}(e),c=Hi(r[7]<<9),i=0,l=0;for(i=0;i<8;++i)c.write_shift(1,E[i]);for(i=0;i<8;++i)c.write_shift(2,0);for(c.write_shift(2,62),c.write_shift(2,3),c.write_shift(2,65534),c.write_shift(2,9),c.write_shift(2,6),i=0;i<3;++i)c.write_shift(2,0);for(c.write_shift(4,0),c.write_shift(4,r[2]),c.write_shift(4,r[0]+r[1]+r[2]+r[3]-1),c.write_shift(4,0),c.write_shift(4,4096),c.write_shift(4,r[3]?r[0]+r[1]+r[2]-1:S),c.write_shift(4,r[3]),c.write_shift(-4,r[1]?r[0]-1:S),c.write_shift(4,r[1]),i=0;i<109;++i)c.write_shift(-4,i<r[2]?r[1]+i:-1);if(r[1])for(l=0;l<r[1];++l){for(;i<236+127*l;++i)c.write_shift(-4,i<r[2]?r[1]+i:-1);c.write_shift(-4,l===r[1]-1?S:l+1)}var h=function(e){for(l+=e;i<l-1;++i)c.write_shift(-4,i+1);e&&(++i,c.write_shift(-4,S))};for(l=i=0,l+=r[1];i<l;++i)c.write_shift(-4,A.DIFSECT);for(l+=r[2];i<l;++i)c.write_shift(-4,A.FATSECT);h(r[3]),h(r[4]);for(var f=0,d=0,m=e.FileIndex[0];f<e.FileIndex.length;++f)(m=e.FileIndex[f]).content&&((d=m.content.length)<4096||(m.start=l,h(d+511>>9)));for(h(r[6]+7>>3);511&c.l;)c.write_shift(-4,A.ENDOFCHAIN);for(l=i=0,f=0;f<e.FileIndex.length;++f)(m=e.FileIndex[f]).content&&(!(d=m.content.length)||d>=4096||(m.start=l,h(d+63>>6)));for(;511&c.l;)c.write_shift(-4,A.ENDOFCHAIN);for(i=0;i<r[4]<<2;++i){var v=e.FullPaths[i];if(v&&0!==v.length){m=e.FileIndex[i],0===i&&(m.start=m.size?m.start-1:S);var y=0===i&&n.root||m.name;if(d=2*(y.length+1),c.write_shift(64,y,"utf16le"),c.write_shift(2,d),c.write_shift(1,m.type),c.write_shift(1,m.color),c.write_shift(-4,m.L),c.write_shift(-4,m.R),c.write_shift(-4,m.C),m.clsid)c.write_shift(16,m.clsid,"hex");else for(f=0;f<4;++f)c.write_shift(4,0);c.write_shift(4,m.state||0),c.write_shift(4,0),c.write_shift(4,0),c.write_shift(4,0),c.write_shift(4,0),c.write_shift(4,m.start),c.write_shift(4,m.size),c.write_shift(4,0)}else{for(f=0;f<17;++f)c.write_shift(4,0);for(f=0;f<3;++f)c.write_shift(4,-1);for(f=0;f<12;++f)c.write_shift(4,0)}}for(i=1;i<e.FileIndex.length;++i)if((m=e.FileIndex[i]).size>=4096)if(c.l=m.start+1<<9,ut&&Buffer.isBuffer(m.content))m.content.copy(c,c.l,0,m.size),c.l+=m.size+511&-512;else{for(f=0;f<m.size;++f)c.write_shift(1,m.content[f]);for(;511&f;++f)c.write_shift(1,0)}for(i=1;i<e.FileIndex.length;++i)if((m=e.FileIndex[i]).size>0&&m.size<4096)if(ut&&Buffer.isBuffer(m.content))m.content.copy(c,c.l,0,m.size),c.l+=m.size+63&-64;else{for(f=0;f<m.size;++f)c.write_shift(1,m.content[f]);for(;63&f;++f)c.write_shift(1,0)}if(ut)c.l=c.length;else for(;c.l<c.length;)c.write_shift(1,0);return c}t.version="1.2.1";
2var w,x=64,S=-2,T="d0cf11e0a1b11ae1",E=[208,207,17,224,161,177,26,225],M="00000000000000000000000000000000",A={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:S,FREESECT:-1,HEADER_SIGNATURE:T,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:M,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function C(e){for(var t=new Array(e.length),i=0;i<e.length;++i)t[i]=String.fromCharCode(e[i]);return t.join("")}var R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],O=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];for(var P,L,I="undefined"!=typeof Uint8Array,N=I?new Uint8Array(256):[],q=0;q<256;++q)N[q]=(L=void 0,255&((L=139536&((P=q)<<1|P<<11)|558144&(P<<5|P<<15))>>16|L>>8|L));function D(e,b){var t=N[255&e];return b<=8?t>>>8-b:(t=t<<8|N[e>>8&255],b<=16?t>>>16-b:(t=t<<8|N[e>>16&255])>>>24-b)}function U(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function F(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function B(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function z(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function H(e,t,n){var r=7&t,o=t>>>3,c=(1<<n)-1,l=e[o]>>>r;return n<8-r?l&c:(l|=e[o+1]<<8-r,n<16-r?l&c:(l|=e[o+2]<<16-r,n<24-r?l&c:(l|=e[o+3]<<24-r)&c))}function V(e,t,n){var r=7&t,o=t>>>3;return r<=5?e[o]|=(7&n)<<r:(e[o]|=n<<r&255,e[o+1]=(7&n)>>8-r),t+3}function j(e,t,n){return n=(1&n)<<(7&t),e[t>>>3]|=n,t+1}function W(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=n,t+8}function G(e,t,n){var r=t>>>3;return n<<=7&t,e[r]|=255&n,n>>>=8,e[r+1]=255&n,e[r+2]=n>>>8,t+16}function $(b,e){var t=b.length,n=2*t>e?2*t:e+5,i=0;if(t>=e)return b;if(ut){var r=pt(n);if(b.copy)b.copy(r);else for(;i<b.length;++i)r[i]=b[i];return r}if(I){var a=new Uint8Array(n);if(a.set)a.set(b);else for(;i<t;++i)a[i]=b[i];return a}return b.length=n,b}function X(e){for(var t=new Array(e),i=0;i<e;++i)t[i]=0;return t}function Y(e,t,n){var r=1,o=0,i=0,c=0,l=0,h=e.length,f=I?new Uint16Array(32):X(32);for(i=0;i<32;++i)f[i]=0;for(i=h;i<n;++i)e[i]=0;h=e.length;var d=I?new Uint16Array(h):X(h);for(i=0;i<h;++i)f[o=e[i]]++,r<o&&(r=o),d[i]=0;for(f[0]=0,i=1;i<=r;++i)f[i+16]=l=l+f[i-1]<<1;for(i=0;i<h;++i)0!=(l=e[i])&&(d[i]=f[l+16]++);var m=0;for(i=0;i<h;++i)if(0!=(m=e[i]))for(l=D(d[i],r)>>r-m,c=(1<<r+4-m)-1;c>=0;--c)t[l|c<<m]=15&m|i<<4;return r}var Z=I?new Uint16Array(512):X(512),K=I?new Uint16Array(32):X(32);if(!I){for(var i=0;i<512;++i)Z[i]=0;for(i=0;i<32;++i)K[i]=0}!function(){for(var e=[],i=0;i<32;i++)e.push(5);Y(e,K,32);var t=[];for(i=0;i<=143;i++)t.push(8);for(;i<=255;i++)t.push(9);for(;i<=279;i++)t.push(7);for(;i<=287;i++)t.push(8);Y(t,Z,288)}();var J=function(){for(var e=I?new Uint8Array(32768):[],t=0,n=0;t<O.length-1;++t)for(;n<O[t+1];++n)e[n]=t;for(;n<32768;++n)e[n]=29;var r=I?new Uint8Array(259):[];for(t=0,n=0;t<k.length-1;++t)for(;n<k[t+1];++n)r[n]=t;return function(data,t){return data.length<8?function(data,e){for(var t=0;t<data.length;){var n=Math.min(65535,data.length-t),r=t+n==data.length;for(e.write_shift(1,+r),e.write_shift(2,n),e.write_shift(2,65535&~n);n-- >0;)e[e.l++]=data[t++]}return e.l}(data,t):function(data,t){for(var n=0,o=0,c=I?new Uint16Array(32768):[];o<data.length;){var l=Math.min(65535,data.length-o);if(l<10){for(7&(n=V(t,n,+!(o+l!=data.length)))&&(n+=8-(7&n)),t.l=n/8|0,t.write_shift(2,l),t.write_shift(2,65535&~l);l-- >0;)t[t.l++]=data[o++];n=8*t.l}else{n=V(t,n,+!(o+l!=data.length)+2);for(var h=0;l-- >0;){var f=data[o],d=-1,m=0;if((d=c[h=32767&(h<<5^f)])&&((d|=-32768&o)>o&&(d-=32768),d<o))for(;data[d+m]==data[o+m]&&m<250;)++m;if(m>2){(f=r[m])<=22?n=W(t,n,N[f+1]>>1)-1:(W(t,n,3),W(t,n+=5,N[f-23]>>5),n+=3);var v=f<8?0:f-4>>2;v>0&&(G(t,n,m-k[f]),n+=v),f=e[o-d],n=W(t,n,N[f]>>3),n-=3;var _=f<4?0:f-2>>1;_>0&&(G(t,n,o-d-O[f]),n+=_);for(var q=0;q<m;++q)c[h]=32767&o,h=32767&(h<<5^data[o]),++o;l-=m-1}else f<=143?f+=48:n=j(t,n,1),n=W(t,n,N[f]),c[h]=32767&o,++o}n=W(t,n,0)-1}}
2return t.l=(n+7)/8|0,t.l}(data,t)}}();function Q(data){var e=Hi(50+Math.floor(1.1*data.length)),t=J(data,e);return e.slice(0,t)}var ee=I?new Uint16Array(32768):X(32768),te=I?new Uint16Array(32768):X(32768),ne=I?new Uint16Array(128):X(128),re=1,ie=1;function ae(data,e){var t=B(data,e)+257,n=B(data,e+=5)+1,r=function(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}(data,e+=5)+4;e+=4;for(var o=0,c=I?new Uint8Array(19):X(19),l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=1,f=I?new Uint8Array(8):X(8),d=I?new Uint8Array(8):X(8),m=c.length,i=0;i<r;++i)c[R[i]]=o=F(data,e),h<o&&(h=o),f[o]++,e+=3;var v=0;for(f[0]=0,i=1;i<=h;++i)d[i]=v=v+f[i-1]<<1;for(i=0;i<m;++i)0!=(v=c[i])&&(l[i]=d[v]++);var _=0;for(i=0;i<m;++i)if(0!=(_=c[i])){v=N[l[i]]>>8-_;for(var y=(1<<7-_)-1;y>=0;--y)ne[v|y<<_]=7&_|i<<3}var w=[];for(h=1;w.length<t+n;)switch(e+=7&(v=ne[z(data,e)]),v>>>=3){case 16:for(o=3+U(data,e),e+=2,v=w[w.length-1];o-- >0;)w.push(v);break;case 17:for(o=3+F(data,e),e+=3;o-- >0;)w.push(0);break;case 18:for(o=11+z(data,e),e+=7;o-- >0;)w.push(0);break;default:w.push(v),h<v&&(h=v)}var h1=w.slice(0,t),h2=w.slice(t);for(i=t;i<286;++i)h1[i]=0;for(i=n;i<30;++i)h2[i]=0;return re=Y(h1,ee,286),ie=Y(h2,te,30),e}function se(e,t){var n=function(data,e){if(3==data[0]&&!(3&data[1]))return[ft(e),2];for(var t=0,header=0,n=pt(e||1<<18),r=0,o=n.length>>>0,c=0,l=0;0==(1&header);)if(header=F(data,t),t+=3,header>>>1!=0)for(header>>1==1?(c=9,l=5):(t=ae(data,t),c=re,l=ie);;){!e&&o<r+32767&&(o=(n=$(n,r+32767)).length);var h=H(data,t,c),code=header>>>1==1?Z[h]:ee[h];if(t+=15&code,0==((code>>>=4)>>>8&255))n[r++]=code;else{if(256==code)break;var f=(code-=257)<8?0:code-4>>2;f>5&&(f=0);var d=r+k[code];f>0&&(d+=H(data,t,f),t+=f),h=H(data,t,l),t+=15&(code=header>>>1==1?K[h]:te[h]);var m=(code>>>=4)<4?0:code-2>>1,v=O[code];for(m>0&&(v+=H(data,t,m),t+=m),!e&&o<d&&(o=(n=$(n,d+100)).length);r<d;)n[r]=n[r-v],++r}}else{7&t&&(t+=8-(7&t));var _=data[t>>>3]|data[1+(t>>>3)]<<8;if(t+=32,_>0)for(!e&&o<r+_&&(o=(n=$(n,r+_)).length);_-- >0;)n[r++]=data[t>>>3],t+=8}return e?[n,t+7>>>3]:[n.slice(0,r),t+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function oe(e,t){if(!e)throw new Error(t)}function ce(e,t){var n=e;Bi(n,0);var r={FileIndex:[],FullPaths:[]};v(r,{root:t.root});for(var i=n.length-4;(80!=n[i]||75!=n[i+1]||5!=n[i+2]||6!=n[i+3])&&i>=0;)--i;n.l=i+4,n.l+=4;var o=n.read_shift(2);n.l+=6;var l=n.read_shift(4);for(n.l=l,i=0;i<o;++i){n.l+=20;var h=n.read_shift(4),f=n.read_shift(4),d=n.read_shift(2),m=n.read_shift(2),_=n.read_shift(2);n.l+=8;var y=n.read_shift(4),w=c(n.slice(n.l+d,n.l+d+m));n.l+=d+m+_;var x=n.l;n.l=y+4,le(n,h,f,r,w),n.l=x}return r}function le(e,t,n,r,o){e.l+=2;var l=e.read_shift(2),h=e.read_shift(2),f=function(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,o=31&n,c=15&(n>>>=5);n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(c-1),r.setDate(o);var l=31&t,h=63&(t>>>=5);return t>>>=6,r.setHours(t),r.setMinutes(h),r.setSeconds(l<<1),r}(e);if(8257&l)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var d=e.read_shift(4),m=e.read_shift(4),v=e.read_shift(2),_=e.read_shift(2),y="",i=0;i<v;++i)y+=String.fromCharCode(e[e.l++]);if(_){var x=c(e.slice(e.l,e.l+_));(x[21589]||{}).mt&&(f=x[21589].mt),((o||{})[21589]||{}).mt&&(f=o[21589].mt)}e.l+=_;var data=e.slice(e.l,e.l+d);switch(h){case 8:data=function(e,t){if(!w)return se(e,t);var n=new(0,w.InflateRaw),r=n._processChunk(e.slice(e.l),n._finishFlushFlag);return e.l+=n.bytesRead,r}(e,m);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+h)}var S=!1;8&l&&(134695760==e.read_shift(4)&&(e.read_shift(4),S=!0),d=e.read_shift(4),m=e.read_shift(4)),d!=t&&oe(S,"Bad compressed size: "+t+" != "+d),m!=n&&oe(S,"Bad uncompressed size: "+n+" != "+m),me(r,y,data,{unsafe:!0,mt:f})}var ue={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function he(e,t){if(e.ctype)return e.ctype;var n=e.name||"",r=n.match(/\.([^\.]+)$/);return r&&ue[r[1]]||t&&(r=(n=t).match(/[\.\\]([^\.\\])+$/))&&ue[r[1]]?ue[r[1]]:"application/octet-stream"}function fe(e){for(var data=ct(e),t=[],i=0;i<data.length;i+=76)t.push(data.slice(i,i+76));return t.join("\r\n")+"\r\n"}function de(text){var e=text.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(e="=0D"+e.slice(1));for(var t=[],n=(e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),r=0;r<n.length;++r){var o=n[r];if(0!=o.length)for(var i=0;i<o.length;){var c=76,l=o.slice(i,i+c);"="==l.charAt(c-1)?c--:"="==l.charAt(c-2)?c-=2:"="==l.charAt(c-3)&&(c-=3),l=o.slice(i,i+c),(i+=c)<o.length&&(l+="="),t.push(l)}else t.push("")}return t.join("\r\n")}function pe(e,data,t){for(var n,r="",o="",c="",l=0;l<10;++l){var line=data[l];if(!line||line.match(/^\s*$/))break;var h=line.match(/^(.*?):\s*([^\s].*)$/);if(h)switch(h[1].toLowerCase()){case"content-location":r=h[2].trim();break;case"content-type":c=h[2].trim();break;case"content-transfer-encoding":o=h[2].trim()}}switch(++l,o.toLowerCase()){case"base64":n=mt(lt(data.slice(l).join("")));break;case"quoted-printable":n=function(data){for(var e=[],t=0;t<data.length;++t){for(var line=data[t];t<=data.length&&"="==line.charAt(line.length-1);)line=line.slice(0,line.length-1)+data[++t];e.push(line)}for(var n=0;n<e.length;++n)e[n]=e[n].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return mt(e.join("\r\n"))}(data.slice(l));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+o)}var f=me(e,r.slice(t.length),n,{unsafe:!0});c&&(f.ctype=c)}function me(e,t,content,n){var o=n&&n.unsafe;o||v(e);var c=!o&&mn.find(e,t);if(!c){var l=e.FullPaths[0];t.slice(0,l.length)==l?l=t:("/"!=l.slice(-1)&&(l+="/"),l=(l+t).replace("//","/")),c={name:r(t),type:2},e.FileIndex.push(c),e.FullPaths.push(l),o||mn.utils.cfb_gc(e)}
vendor: 5,681 bytes, line 2
2return c.content=content,c.size=content?content.length:0,n&&(n.CLSID&&(c.clsid=n.CLSID),n.mt&&(c.mt=n.mt),n.ct&&(c.ct=n.ct)),c}return t.find=function(e,path){var t=e.FullPaths.map((function(e){return e.toUpperCase()})),n=t.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),r=!1;47===path.charCodeAt(0)?(r=!0,path=t[0].slice(0,-1)+path):r=-1!==path.indexOf("/");var o=path.toUpperCase(),c=!0===r?t.indexOf(o):n.indexOf(o);if(-1!==c)return e.FileIndex[c];var l=!o.match(wt);for(o=o.replace(bt,""),l&&(o=o.replace(wt,"!")),c=0;c<t.length;++c){if((l?t[c].replace(wt,"!"):t[c]).replace(bt,"")==o)return e.FileIndex[c];if((l?n[c].replace(wt,"!"):n[c]).replace(bt,"")==o)return e.FileIndex[c]}return null},t.read=function(t,n){var r=n&&n.type;switch(r||ut&&Buffer.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return function(t,n){return l(),h(e.readFileSync(t),n)}(t,n);case"base64":return h(mt(lt(t)),n);case"binary":return h(mt(t),n)}return h(t,n)},t.parse=h,t.write=function(t,n){var r=y(t,n);switch(n&&n.type||"buffer"){case"file":return l(),e.writeFileSync(n.filename,r),r;case"binary":return"string"==typeof r?r:C(r);case"base64":return ct("string"==typeof r?r:C(r));case"buffer":if(ut)return Buffer.isBuffer(r)?r:ht(r);case"array":return"string"==typeof r?mt(r):r}return r},t.writeFile=function(t,n,r){l();var o=y(t,r);e.writeFileSync(n,o)},t.utils={cfb_new:function(e){var t={};return v(t,e),t},cfb_add:me,cfb_del:function(e,t){v(e);var n=mn.find(e,t);if(n)for(var r=0;r<e.FileIndex.length;++r)if(e.FileIndex[r]==n)return e.FileIndex.splice(r,1),e.FullPaths.splice(r,1),!0;return!1},cfb_mov:function(e,t,n){v(e);var o=mn.find(e,t);if(o)for(var c=0;c<e.FileIndex.length;++c)if(e.FileIndex[c]==o)return e.FileIndex[c].name=r(n),e.FullPaths[c]=n,!0;return!1},cfb_gc:function(e){_(e,!0)},ReadShift:Ni,CheckField:Fi,prep_blob:Bi,bconcat:yt,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");w=e}catch(e){}},_deflateRaw:Q,_inflateRaw:se,consts:A},t}();let gn=void 0;function vn(data){return"string"==typeof data?gt(data):Array.isArray(data)?function(data){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(data)}(data):data}function _n(e,t,n){if(void 0!==gn&&gn.writeFileSync)return n?gn.writeFileSync(e,t,n):gn.writeFileSync(e,t);if("undefined"!=typeof Deno){if(n&&"string"==typeof t)switch(n){case"utf8":t=new TextEncoder(n).encode(t);break;case"binary":t=gt(t);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(e,t)}var data="utf8"==n?Er(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(data,e);if("undefined"!=typeof Blob){var r=new Blob([vn(data)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(r,e);if("undefined"!=typeof saveAs)return saveAs(r,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(o)}),6e4),o}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var c=File(e);return c.open("w"),c.encoding="binary",Array.isArray(t)&&(t=vt(t)),c.write(t),c.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function yn(e){for(var t=Object.keys(e),n=[],i=0;i<t.length;++i)Object.prototype.hasOwnProperty.call(e,t[i])&&n.push(t[i]);return n}function bn(e,t){for(var n=[],r=yn(e),i=0;i!==r.length;++i)null==n[e[r[i]][t]]&&(n[e[r[i]][t]]=r[i]);return n}function wn(e){for(var t=[],n=yn(e),i=0;i!==n.length;++i)t[e[n[i]]]=n[i];return t}function xn(e){for(var t=[],n=yn(e),i=0;i!==n.length;++i)t[e[n[i]]]=parseInt(n[i],10);return t}var Sn=new Date(1899,11,30,0,0,0);function Tn(e,t){var n=e.getTime();return t&&(n-=1263168e5),(n-(Sn.getTime()+6e4*(e.getTimezoneOffset()-Sn.getTimezoneOffset())))/864e5}var En=new Date,Mn=Sn.getTime()+6e4*(En.getTimezoneOffset()-Sn.getTimezoneOffset()),An=En.getTimezoneOffset();function Cn(e){var t=new Date;return t.setTime(24*e*60*60*1e3+Mn),t.getTimezoneOffset()!==An&&t.setTime(t.getTime()+6e4*(t.getTimezoneOffset()-An)),t}function Rn(s){var e=0,t=0,time=!1,n=s.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+s+"| is not an ISO8601 Duration");for(var i=1;i!=n.length;++i)if(n[i]){switch(t=1,i>3&&(time=!0),n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!time)throw new Error("Unsupported ISO Duration Field: M");t*=60}e+=t*parseInt(n[i],10)}return e}var kn=new Date("2017-02-19T19:06:09.000Z"),On=isNaN(kn.getFullYear())?new Date("2/19/17"):kn,Pn=2017==On.getFullYear();function Ln(e,t){var n=new Date(e);if(Pn)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==On.getFullYear()&&!isNaN(n.getFullYear())){var s=n.getFullYear();return e.indexOf(""+s)>-1||n.setFullYear(n.getFullYear()+100),n}
2var r=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function In(e,t){if(ut&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Er(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Er(tt(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Er(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Er(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return n[e]||e}))}catch(e){}for(var r=[],i=0;i!=e.length;++i)r.push(String.fromCharCode(e[i]));return r.join("")}function Nn(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Nn(e[n]));return t}function Dn(e,t){for(var n="";n.length<t;)n+=e;return n}function Un(s){var e=Number(s);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(s))return e;var t=1,n=s.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return t*=100,""}));return isNaN(e=Number(n))?(n=n.replace(/[(](.*)[)]/,(function(e,n){return t=-t,n})),isNaN(e=Number(n))?e:e/t):e/t}var Fn=["january","february","march","april","may","june","july","august","september","october","november","december"];function Bn(s){var e=new Date(s),t=new Date(NaN),n=e.getYear(),r=e.getMonth(),o=e.getDate();if(isNaN(o))return t;var c=s.toLowerCase();if(c.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((c=c.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Fn.indexOf(c))return t}else if(c.match(/[a-z]/))return t;return n<0||n>8099?t:(r>0||o>1)&&101!=n?e:s.match(/[^-0-9:,\/\\]/)?t:e}var zn=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var p=t.split(n),o=[p[0]],i=1;i<p.length;++i)o.push(r),o.push(p[i]);return o}}();function Hn(data){return data?data.content&&data.type?In(data.content,!0):data.data?it(data.data):data.asNodeBuffer&&ut?it(data.asNodeBuffer().toString("binary")):data.asBinary?it(data.asBinary()):data._data&&data._data.getContent?it(In(Array.prototype.slice.call(data._data.getContent(),0))):null:null}function Vn(data){if(!data)return null;if(data.data)return et(data.data);if(data.asNodeBuffer&&ut)return data.asNodeBuffer();if(data._data&&data._data.getContent){var e=data._data.getContent();return"string"==typeof e?et(e):Array.prototype.slice.call(e)}return data.content&&data.type?data.content:null}function jn(e,t){for(var n=e.FullPaths||yn(e.files),r=t.toLowerCase().replace(/[\/]/g,"\\"),g=r.replace(/\\/g,"/"),i=0;i<n.length;++i){var o=n[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(r==o||g==o)return e.files?e.files[n[i]]:e.FileIndex[i]}return null}function Wn(e,t){var n=jn(e,t);if(null==n)throw new Error("Cannot find file "+t+" in zip");return n}function Gn(e,t,n){if(!n)return(data=Wn(e,t))&&".bin"===data.name.slice(-4)?Vn(data):Hn(data);var data;if(!t)return null;try{return Gn(e,t)}catch(e){return null}}function $n(e,t,n){if(!n)return Hn(Wn(e,t));if(!t)return null;try{return $n(e,t)}catch(e){return null}}function Xn(e){for(var t=e.FullPaths||yn(e.files),n=[],i=0;i<t.length;++i)"/"!=t[i].slice(-1)&&n.push(t[i].replace(/^Root Entry[\/]/,""));return n.sort()}function qn(e,path,content){if(e.FullPaths){var t;if("string"==typeof content)return t=ut?ht(content):function(content){for(var e=[],t=0,n=content.length+250,r=ft(content.length+255),o=0;o<content.length;++o){var c=content.charCodeAt(o);if(c<128)r[t++]=c;
2else if(c<2048)r[t++]=192|c>>6&31,r[t++]=128|63&c;else if(c>=55296&&c<57344){c=64+(1023&c);var l=1023&content.charCodeAt(++o);r[t++]=240|c>>8&7,r[t++]=128|c>>2&63,r[t++]=128|l>>6&15|(3&c)<<4,r[t++]=128|63&l}else r[t++]=224|c>>12&15,r[t++]=128|c>>6&63,r[t++]=128|63&c;t>n&&(e.push(r.slice(0,t)),t=0,r=ft(65535),n=65530)}return e.push(r.slice(0,t)),yt(e)}(content),mn.utils.cfb_add(e,path,t);mn.utils.cfb_add(e,path,content)}else e.file(path,content)}function Yn(){return mn.utils.cfb_new()}function Zn(e,t){switch(t.type){case"base64":return mn.read(e,{type:"base64"});case"binary":return mn.read(e,{type:"binary"});case"buffer":case"array":return mn.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function Kn(path,base){if("/"==path.charAt(0))return path.slice(1);var e=base.split("/");"/"!=base.slice(-1)&&e.pop();for(var t=path.split("/");0!==t.length;){var n=t.shift();".."===n?e.pop():"."!==n&&e.push(n)}return e.join("/")}var Jn='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Qn=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,er=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,nr=Jn.match(er)?er:/<[^>]*>/g,rr=/<\w*:/,ir=/<(\/?)\w+:/;function ar(e,t,n){for(var r={},o=0,c=0;o!==e.length&&(32!==(c=e.charCodeAt(o))&&10!==c&&13!==c);++o);if(t||(r[0]=e.slice(0,o)),o===e.length)return r;var l=e.match(Qn),h=0,f="",i=0,q="",d="",m=1;if(l)for(i=0;i!=l.length;++i){for(d=l[i],c=0;c!=d.length&&61!==d.charCodeAt(c);++c);for(q=d.slice(0,c).trim();32==d.charCodeAt(c+1);)++c;for(m=34==(o=d.charCodeAt(c+1))||39==o?1:0,f=d.slice(c+1+m,d.length-m),h=0;h!=q.length&&58!==q.charCodeAt(h);++h);if(h===q.length)q.indexOf("_")>0&&(q=q.slice(0,q.indexOf("_"))),r[q]=f,n||(r[q.toLowerCase()]=f);else{var v=(5===h&&"xmlns"===q.slice(0,5)?"xmlns":"")+q.slice(h+1);if(r[v]&&"ext"==q.slice(h-3,h))continue;r[v]=f,n||(r[v.toLowerCase()]=f)}}return r}function sr(e){return e.replace(ir,"<$1")}var or={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},cr=wn(or),lr=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(text){var s=text+"",i=s.indexOf("<![CDATA[");if(-1==i)return s.replace(e,(function(e,t){return or[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var r=s.indexOf("]]>");return n(s.slice(0,i))+s.slice(i+9,r)+n(s.slice(r+3))}}(),ur=/[&<>'"]/g,fr=/[\u0000-\u0008\u000b-\u001f]/g;function dr(text){return(text+"").replace(ur,(function(e){return cr[e]})).replace(fr,(function(s){return"_x"+("000"+s.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function pr(text){return dr(text).replace(/ /g,"_x0020_")}var mr=/[\u0000-\u001f]/g;function gr(text){return(text+"").replace(ur,(function(e){return cr[e]})).replace(/\n/g,"<br/>").replace(mr,(function(s){return"&#x"+("000"+s.charCodeAt(0).toString(16)).slice(-4)+";"}))}var vr=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function _r(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function yr(e){for(var t="",i=0,n=0,r=0,o=0,c=0,l=0;i<e.length;)(n=e.charCodeAt(i++))<128?t+=String.fromCharCode(n):(r=e.charCodeAt(i++),n>191&&n<224?(c=(31&n)<<6,c|=63&r,t+=String.fromCharCode(c)):(o=e.charCodeAt(i++),n<240?t+=String.fromCharCode((15&n)<<12|(63&r)<<6|63&o):(l=((7&n)<<18|(63&r)<<12|(63&o)<<6|63&(c=e.charCodeAt(i++)))-65536,t+=String.fromCharCode(55296+(l>>>10&1023)),t+=String.fromCharCode(56320+(1023&l)))));return t}function wr(data){var e,i,t,n=ft(2*data.length),r=1,o=0,c=0;for(i=0;i<data.length;i+=r)r=1,(t=data.charCodeAt(i))<128?e=t:t<224?(e=64*(31&t)+(63&data.charCodeAt(i+1)),r=2):t<240?(e=4096*(15&t)+64*(63&data.charCodeAt(i+1))+(63&data.charCodeAt(i+2)),r=3):(r=4,e=262144*(7&t)+4096*(63&data.charCodeAt(i+1))+64*(63&data.charCodeAt(i+2))+(63&data.charCodeAt(i+3)),c=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==c&&(n[o++]=255&c,n[o++]=c>>>8,c=0),n[o++]=e%256,n[o++]=e>>>8;return n.slice(0,o).toString("ucs2")}function xr(data){return ht(data,"binary").toString("utf8")}var Sr="foo bar baz☃🍣",Tr=ut&&(xr(Sr)==yr(Sr)&&xr||wr(Sr)==yr(Sr)&&wr)||yr,Er=ut?function(data){return ht(data,"utf8").toString("binary")}:function(e){for(var t=[],i=0,n=0,r=0;i<e.length;)switch(n=e.charCodeAt(i++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,r=e.charCodeAt(i++)-56320+(n<<10),t.push(String.fromCharCode(240+(r>>18&7))),t.push(String.fromCharCode(144+(r>>12&63))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)))}return t.join("")},Mr=function(){var e={};return function(t,g){var n=t+"|"+(g||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",g||"")}}(),Ar=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),Cr=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Rr=/<\/?(?:vt:)?variant>/g,kr=/<(?:vt:)([^>]*)>([\s\S]*)</;function Or(data,e){var t=ar(data),n=data.match(Cr(t.baseType))||[],r=[];if(n.length!=t.size){if(e.WTF)throw new Error("unexpected vector length "+n.length+" != "+t.size);return r}
vendor: 7,593 bytes, line 2
2return n.forEach((function(e){var t=e.replace(Rr,"").match(kr);t&&r.push({v:Tr(t[2]),t:t[1]})})),r}var Pr=/(^\s|\s$|\n)/;function Lr(e,g){return"<"+e+(g.match(Pr)?' xml:space="preserve"':"")+">"+g+"</"+e+">"}function Ir(e){return yn(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Nr(e,g,t){return"<"+e+(null!=t?Ir(t):"")+(null!=g?(g.match(Pr)?' xml:space="preserve"':"")+">"+g+"</"+e:"/")+">"}function Dr(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}function Ur(e){if(ut&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return Tr(vt(_t(e)));throw new Error("Bad input format: expected Buffer or string")}var Fr=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,Br="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",zr="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Hr="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Vr="http://schemas.openxmlformats.org/package/2006/content-types",jr="http://schemas.openxmlformats.org/package/2006/relationships",Wr="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",Gr="http://purl.org/dc/elements/1.1/",$r="http://purl.org/dc/terms/",Xr="http://purl.org/dc/dcmitype/",qr="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Yr="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Zr="http://www.w3.org/2001/XMLSchema-instance",Kr="http://www.w3.org/2001/XMLSchema",Jr=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Qr="urn:schemas-microsoft-com:office:office",ei="urn:schemas-microsoft-com:office:excel",ti="urn:schemas-microsoft-com:office:spreadsheet",ni="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",ri="http://macVmlSchemaUri",ii="urn:schemas-microsoft-com:vml",ai="http://www.w3.org/TR/REC-html40";var si=function(e){for(var t=[],i=0;i<e[0].length;++i)if(e[0][i])for(var n=0,r=e[0][i].length;n<r;n+=10240)t.push.apply(t,e[0][i].slice(n,n+10240));return t},oi=ut?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:ht(e)}))):si(e)}:si,ci=function(b,s,e){for(var t=[],i=s;i<e;i+=2)t.push(String.fromCharCode(ki(b,i)));return t.join("").replace(bt,"")},ui=ut?function(b,s,e){return Buffer.isBuffer(b)?b.toString("utf16le",s,e).replace(bt,""):ci(b,s,e)}:ci,hi=function(b,s,e){for(var t=[],i=s;i<s+e;++i)t.push(("0"+b[i].toString(16)).slice(-2));return t.join("")},fi=ut?function(b,s,e){return Buffer.isBuffer(b)?b.toString("hex",s,s+e):hi(b,s,e)}:hi,di=function(b,s,e){for(var t=[],i=s;i<e;i++)t.push(String.fromCharCode(Ri(b,i)));return t.join("")},pi=ut?function(b,s,e){return Buffer.isBuffer(b)?b.toString("utf8",s,e):di(b,s,e)}:di,mi=function(b,i){var e=Pi(b,i);return e>0?pi(b,i+4,i+4+e-1):""},gi=mi,vi=function(b,i){var e=Pi(b,i);return e>0?pi(b,i+4,i+4+e-1):""},_i=vi,yi=function(b,i){var e=2*Pi(b,i);return e>0?pi(b,i+4,i+4+e-1):""},bi=yi,wi=function(b,i){var e=Pi(b,i);return e>0?ui(b,i+4,i+4+e):""},xi=wi,Si=function(b,i){var e=Pi(b,i);return e>0?pi(b,i+4,i+4+e):""},Ti=Si,Ei=function(b,e){return function(b,e){for(var s=1-2*(b[e+7]>>>7),t=((127&b[e+7])<<4)+(b[e+6]>>>4&15),n=15&b[e+6],i=5;i>=0;--i)n=256*n+b[e+i];return 2047==t?0==n?s*(1/0):NaN:(0==t?t=-1022:(t-=1023,n+=Math.pow(2,52)),s*Math.pow(2,t-52)*n)}(b,e)},Mi=Ei,Ai=function(a){return Array.isArray(a)||"undefined"!=typeof Uint8Array&&a instanceof Uint8Array};function Ci(){ui=function(b,s,e){return nt.utils.decode(1200,b.slice(s,e)).replace(bt,"")},pi=function(b,s,e){return nt.utils.decode(65001,b.slice(s,e))},gi=function(b,i){var e=Pi(b,i);return e>0?nt.utils.decode(qe,b.slice(i+4,i+4+e-1)):""},_i=function(b,i){var e=Pi(b,i);return e>0?nt.utils.decode(Xe,b.slice(i+4,i+4+e-1)):""},bi=function(b,i){var e=2*Pi(b,i);return e>0?nt.utils.decode(1200,b.slice(i+4,i+4+e-1)):""},xi=function(b,i){var e=Pi(b,i);return e>0?nt.utils.decode(1200,b.slice(i+4,i+4+e)):""},Ti=function(b,i){var e=Pi(b,i);return e>0?nt.utils.decode(65001,b.slice(i+4,i+4+e)):""}}ut&&(gi=function(b,i){if(!Buffer.isBuffer(b))return mi(b,i);var e=b.readUInt32LE(i);return e>0?b.toString("utf8",i+4,i+4+e-1):""},_i=function(b,i){if(!Buffer.isBuffer(b))return vi(b,i);var e=b.readUInt32LE(i);return e>0?b.toString("utf8",i+4,i+4+e-1):""},bi=function(b,i){if(!Buffer.isBuffer(b))return yi(b,i);var e=2*b.readUInt32LE(i);return b.toString("utf16le",i+4,i+4+e-1)},xi=function(b,i){if(!Buffer.isBuffer(b))return wi(b,i);var e=b.readUInt32LE(i);return b.toString("utf16le",i+4,i+4+e)},Ti=function(b,i){if(!Buffer.isBuffer(b))return Si(b,i);var e=b.readUInt32LE(i);return b.toString("utf8",i+4,i+4+e)},Mi=function(b,i){return Buffer.isBuffer(b)?b.readDoubleLE(i):Ei(b,i)},Ai=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||"undefined"!=typeof Uint8Array&&a instanceof Uint8Array}),void 0!==nt&&Ci();var Ri=function(b,e){return b[e]},ki=function(b,e){return 256*b[e+1]+b[e]},Oi=function(b,e){var u=256*b[e+1]+b[e];return u<32768?u:-1*(65535-u+1)},Pi=function(b,e){return b[e+3]*(1<<24)+(b[e+2]<<16)+(b[e+1]<<8)+b[e]},Li=function(b,e){return b[e+3]<<24|b[e+2]<<16|b[e+1]<<8|b[e]},Ii=function(b,e){return b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3]};function Ni(e,t){var n,r,o,c,i,l,h="",f=[];switch(t){case"dbcs":if(l=this.l,ut&&Buffer.isBuffer(this))h=this.slice(this.l,this.l+2*e).toString("utf16le");else for(i=0;i<e;++i)h+=String.fromCharCode(ki(this,l)),l+=2;e*=2;break;case"utf8":h=pi(this,this.l,this.l+e);break;case"utf16le":e*=2,h=ui(this,this.l,this.l+e);break;case"wstr":if(void 0===nt)return Ni.call(this,e,"dbcs");h=nt.utils.decode(Xe,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":h=gi(this,this.l),e=4+Pi(this,this.l);break;case"lpstr-cp":h=_i(this,this.l),e=4+Pi(this,this.l);break;case"lpwstr":h=bi(this,this.l),e=4+2*Pi(this,this.l);break;case"lpp4":e=4+Pi(this,this.l),h=xi(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Pi(this,this.l),h=Ti(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,h="";0!==(o=Ri(this,this.l+e++));)f.push(at(o));h=f.join("");break;case"_wstr":for(e=0,h="";0!==(o=ki(this,this.l+e));)f.push(at(o)),e+=2;e+=2,h=f.join("");break;case"dbcs-cont":for(h="",l=this.l,i=0;i<e;++i){if(this.lens&&-1!==this.lens.indexOf(l))return o=Ri(this,l),this.l=l+1,c=Ni.call(this,e-i,o?"dbcs-cont":"sbcs-cont"),f.join("")+c;f.push(at(ki(this,l))),l+=2}h=f.join(""),e*=2;break;case"cpstr":if(void 0!==nt){h=nt.utils.decode(Xe,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(h="",l=this.l,i=0;i!=e;++i){if(this.lens&&-1!==this.lens.indexOf(l))return o=Ri(this,l),this.l=l+1,c=Ni.call(this,e-i,o?"dbcs-cont":"sbcs-cont"),f.join("")+c;f.push(at(Ri(this,l))),l+=1}h=f.join("");break;default:switch(e){case 1:return n=Ri(this,this.l),this.l++,n;case 2:return n=("i"===t?Oi:ki)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===t||0==(128&this[this.l+3])?(n=(e>0?Li:Ii)(this,this.l),this.l+=4,n):(r=Pi(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return r=8==e?Mi(this,this.l):Mi([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,r;e=8;case 16:h=fi(this,this.l,e)}}return this.l+=e,h}var Di=function(b,e,t){b[t]=255&e,b[t+1]=e>>>8&255};function Ui(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Di(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}
2else if("sbcs"===n){if(void 0!==nt&&874==qe)for(i=0;i!=t.length;++i){var o=nt.utils.encode(qe,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===n){var c=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var l=t.charCodeAt(i);this[this.l++]=255&l,this[this.l++]=l>>8}for(;this.l<c;)this[this.l++]=0;return this}switch(e){case 1:r=1,this[this.l]=255&t;break;case 2:r=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,function(b,e,t){b[t]=255&e,b[t+1]=e>>>8&255,b[t+2]=e>>>16&255,b[t+3]=e>>>24&255}(this,t,this.l);break;case 8:if(r=8,"f"===n){!function(b,e,t){var n=(e<0||1/e==-1/0?1:0)<<7,r=0,o=0,c=n?-e:e;isFinite(c)?0==c?r=o=0:(r=Math.floor(Math.log(c)/Math.LN2),o=c*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?r=-1022:(o-=Math.pow(2,52),r+=1023)):(r=2047,o=isNaN(e)?26985:0);for(var i=0;i<=5;++i,o/=256)b[t+i]=255&o;b[t+6]=(15&r)<<4|15&o,b[t+7]=r>>4|n}(this,t,this.l);break}case 16:break;case-4:r=4,function(b,e,t){b[t]=255&e,b[t+1]=e>>8&255,b[t+2]=e>>16&255,b[t+3]=e>>24&255}(this,t,this.l)}}return this.l+=r,this}function Fi(e,t){var n=fi(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Bi(e,t){e.l=t,e.read_shift=Ni,e.chk=Fi,e.write_shift=Ui}function zi(e,t){e.l+=t}function Hi(e){var t=ft(e);return Bi(t,0),t}function Vi(data,e,t){if(data){var n,r,o;Bi(data,data.l||0);for(var c=data.length,l=0,h=0;data.l<c;){128&(l=data.read_shift(1))&&(l=(127&l)+((127&data.read_shift(1))<<7));var f=Yh[l]||Yh[65535];for(o=127&(n=data.read_shift(1)),r=1;r<4&&128&n;++r)o+=(127&(n=data.read_shift(1)))<<7*r;h=data.l+o;var d=f.f&&f.f(data,o,t);if(data.l=h,e(d,f,l))return}}}function ji(){var e=[],t=ut?256:2048,n=function(e){var t=Hi(e);return Bi(t,0),t},r=n(t),o=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&e.push(r),r=null)},c=function(e){return r&&e<r.length-r.l?r:(o(),r=n(Math.max(e+1,t)))};return{next:c,push:function(e){o(),null==(r=e).l&&(r.l=r.length),c(t)},end:function(){return o(),yt(e)},_bufs:e}}function Wi(e,t,n,r){var o,c=+t;if(!isNaN(c)){r||(r=Yh[c].p||(n||[]).length||0),o=1+(c>=128?1:0)+1,r>=128&&++o,r>=16384&&++o,r>=2097152&&++o;var l=e.next(o);c<=127?l.write_shift(1,c):(l.write_shift(1,128+(127&c)),l.write_shift(1,c>>7));for(var i=0;4!=i;++i){if(!(r>=128)){l.write_shift(1,r);break}l.write_shift(1,128+(127&r)),r>>=7}r>0&&Ai(n)&&e.push(n)}}function Gi(e,t,n){var r=Nn(e);if(t.s?(r.cRel&&(r.c+=t.s.c),r.rRel&&(r.r+=t.s.r)):(r.cRel&&(r.c+=t.c),r.rRel&&(r.r+=t.r)),!n||n.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function $i(e,t,n){var r=Nn(e);return r.s=Gi(r.s,t.s,n),r.e=Gi(r.e,t.s,n),r}function Xi(e,t){if(e.cRel&&e.c<0)for(e=Nn(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Nn(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var s=ea(e);return e.cRel||null==e.cRel||(s=s.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(s=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(s)),s}function qi(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Xi(e.s,t.biff)+":"+Xi(e.e,t.biff):(e.s.rRel?"":"$")+Zi(e.s.r)+":"+(e.e.rRel?"":"$")+Zi(e.e.r):(e.s.cRel?"":"$")+Ji(e.s.c)+":"+(e.e.cRel?"":"$")+Ji(e.e.c)}function Yi(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Zi(e){return""+(e+1)}function Ki(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,i=0;i!==t.length;++i)n=26*n+t.charCodeAt(i)-64;return n-1}function Ji(col){if(col<0)throw new Error("invalid column "+col);var s="";for(++col;col;col=Math.floor((col-1)/26))s=String.fromCharCode((col-1)%26+65)+s;return s}function Qi(e){for(var t=0,n=0,i=0;i<e.length;++i){var r=e.charCodeAt(i);r>=48&&r<=57?t=10*t+(r-48):r>=65&&r<=90&&(n=26*n+(r-64))}return{c:n-1,r:t-1}}function ea(e){for(var col=e.c+1,s="";col;col=(col-1)/26|0)s=String.fromCharCode((col-1)%26+65)+s;return s+(e.r+1)}function ta(e){var t=e.indexOf(":");return-1==t?{s:Qi(e),e:Qi(e)}:{s:Qi(e.slice(0,t)),e:Qi(e.slice(t+1))}}function na(e,t){return void 0===t||"number"==typeof t?na(e.s,e.e):("string"!=typeof e&&(e=ea(e)),"string"!=typeof t&&(t=ea(t)),e==t?e:e+":"+t)}
2function ra(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,i=0,r=0,o=e.length;for(n=0;i<o&&!((r=e.charCodeAt(i)-64)<1||r>26);++i)n=26*n+r;for(t.s.c=--n,n=0;i<o&&!((r=e.charCodeAt(i)-48)<0||r>9);++i)n=10*n+r;if(t.s.r=--n,i===o||10!=r)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++i,n=0;i!=o&&!((r=e.charCodeAt(i)-64)<1||r>26);++i)n=26*n+r;for(t.e.c=--n,n=0;i!=o&&!((r=e.charCodeAt(i)-48)<0||r>9);++i)n=10*n+r;return t.e.r=--n,t}function ia(e,t){var q="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=cn(e.z,q?Tn(t):t)}catch(e){}try{return e.w=cn((e.XF||{}).numFmtId||(q?14:0),q?Tn(t):t)}catch(e){return""+t}}function aa(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?Wa[e.v]||e.v:ia(e,null==t?e.v:t))}function sa(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function oa(e,data,t){var n=t||{},r=e?Array.isArray(e):n.dense;var o=e||(r?[]:{}),c=0,l=0;if(o&&null!=n.origin){if("number"==typeof n.origin)c=n.origin;else{var h="string"==typeof n.origin?Qi(n.origin):n.origin;c=h.r,l=h.c}o["!ref"]||(o["!ref"]="A1:A1")}var f={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var d=ra(o["!ref"]);f.s.c=d.s.c,f.s.r=d.s.r,f.e.c=Math.max(f.e.c,d.e.c),f.e.r=Math.max(f.e.r,d.e.r),-1==c&&(f.e.r=c=d.e.r+1)}for(var m=0;m!=data.length;++m)if(data[m]){if(!Array.isArray(data[m]))throw new Error("aoa_to_sheet expects an array of arrays");for(var v=0;v!=data[m].length;++v)if(void 0!==data[m][v]){var _={v:data[m][v]},y=c+m,w=l+v;if(f.s.r>y&&(f.s.r=y),f.s.c>w&&(f.s.c=w),f.e.r<y&&(f.e.r=y),f.e.c<w&&(f.e.c=w),!data[m][v]||"object"!=typeof data[m][v]||Array.isArray(data[m][v])||data[m][v]instanceof Date)if(Array.isArray(_.v)&&(_.f=data[m][v][1],_.v=_.v[0]),null===_.v)if(_.f)_.t="n";else if(n.nullError)_.t="e",_.v=0;else{if(!n.sheetStubs)continue;_.t="z"}else"number"==typeof _.v?_.t="n":"boolean"==typeof _.v?_.t="b":_.v instanceof Date?(_.z=n.dateNF||Ot[14],n.cellDates?(_.t="d",_.w=cn(_.z,Tn(_.v))):(_.t="n",_.v=Tn(_.v),_.w=cn(_.z,_.v))):_.t="s";else _=data[m][v];if(r)o[y]||(o[y]=[]),o[y][w]&&o[y][w].z&&(_.z=o[y][w].z),o[y][w]=_;else{var x=ea({c:w,r:y});o[x]&&o[x].z&&(_.z=o[x].z),o[x]=_}}}return f.s.c<1e7&&(o["!ref"]=na(f)),o}function ca(data,e){return oa(null,data,e)}function la(e,t){return t||(t=Hi(4)),t.write_shift(4,e),t}function ua(data){var e=data.read_shift(4);return 0===e?"":data.read_shift(e,"dbcs")}function ha(data,e){var t=!1;return null==e&&(t=!0,e=Hi(4+2*data.length)),e.write_shift(4,data.length),data.length>0&&e.write_shift(0,data,"dbcs"),t?e.slice(0,e.l):e}function fa(data){return{ich:data.read_shift(2),ifnt:data.read_shift(2)}}function da(data,e){var t=data.l,n=data.read_shift(1),r=ua(data),o=[],c={t:r,h:r};if(0!=(1&n)){for(var l=data.read_shift(4),i=0;i!=l;++i)o.push(fa(data));c.r=o}else c.r=[{ich:0,ifnt:0}];return data.l=t+e,c}var pa=da;function ma(e,t){var n=!1;return null==t&&(n=!0,t=Hi(23+4*e.t.length)),t.write_shift(1,1),ha(e.t,t),t.write_shift(4,1),function(e,t){t||(t=Hi(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function va(data){var col=data.read_shift(4),e=data.read_shift(2);return e+=data.read_shift(1)<<16,data.l++,{c:col,iStyleRef:e}}function _a(e,t){return null==t&&(t=Hi(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function ya(data){var e=data.read_shift(2);return e+=data.read_shift(1)<<16,data.l++,{c:-1,iStyleRef:e}}function ba(e,t){return null==t&&(t=Hi(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var wa=ua,xa=ha;function Sa(data){var e=data.read_shift(4);return 0===e||4294967295===e?"":data.read_shift(e,"dbcs")}function Ta(data,e){var t=!1;return null==e&&(t=!0,e=Hi(127)),e.write_shift(4,data.length>0?data.length:4294967295),data.length>0&&e.write_shift(0,data,"dbcs"),t?e.slice(0,e.l):e}var Ea=ua,Ma=Sa,Aa=Ta;function Ca(data){var b=data.slice(data.l,data.l+4),e=1&b[0],t=2&b[0];data.l+=4;var n=0===t?Mi([0,0,0,0,252&b[0],b[1],b[2],b[3]],0):Li(b,0)>>2;return e?n/100:n}function Ra(data,e){null==e&&(e=Hi(4));var t=0,n=0,r=100*data;if(data==(0|data)&&data>=-(1<<29)&&data<1<<29?n=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(n=1,t=1),!n)throw new Error("unsupported RkNumber "+data);e.write_shift(-4,((t?r:data)<<2)+(t+2))}function ka(data){var e={s:{},e:{}};return e.s.r=data.read_shift(4),e.e.r=data.read_shift(4),e.s.c=data.read_shift(4),e.e.c=data.read_shift(4),e}var Oa=ka,Pa=function(e,t){return t||(t=Hi(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function La(data){if(data.length-data.l<8)throw"XLS Xnum Buffer underflow";return data.read_shift(8,"f")}function Ia(data,e){return(e||Hi(8)).write_shift(8,data,"f")}function Na(e,t){if(t||(t=Hi(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var r=e.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),t.write_shift(1,parseInt(r.slice(0,2),16)),t.write_shift(1,parseInt(r.slice(2,4),16)),t.write_shift(1,parseInt(r.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function Da(e,t){var n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var Ua=[80,81],Fa={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Ba={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80}
2,10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},za={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Ha=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Va(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var ja=Nn(Va([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Wa={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Ga={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},$a={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Xa={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"}
vendor: 1,532 bytes, line 2
2,comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function qa(e,t){var n,r=function(e){for(var t=[],n=yn(e),i=0;i!==n.length;++i)null==t[e[n[i]]]&&(t[e[n[i]]]=[]),t[e[n[i]]].push(n[i]);return t}($a),o=[];o[o.length]=Jn,o[o.length]=Nr("Types",null,{xmlns:Vr,"xmlns:xsd":Kr,"xmlns:xsi":Zr}),o=o.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["t
2if","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Nr("Default",null,{Extension:e[0],ContentType:e[1]})})));var c=function(r){e[r]&&e[r].length>0&&(n=e[r][0],o[o.length]=Nr("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Xa[r][t.bookType]||Xa[r].xlsx}))},l=function(n){(e[n]||[]).forEach((function(e){o[o.length]=Nr("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Xa[n][t.bookType]||Xa[n].xlsx})}))},h=function(t){(e[t]||[]).forEach((function(e){o[o.length]=Nr("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:r[t][0]})}))};return c("workbooks"),l("sheets"),l("charts"),h("themes"),["strs","styles"].forEach(c),["coreprops","extprops","custprops"].forEach(h),h("vba"),h("comments"),h("threadedcomments"),h("drawings"),l("metadata"),h("people"),o.length>2&&(o[o.length]="</Types>",o[1]=o[1].replace("/>",">")),o.join("")}var Y
vendor: 2,482 bytes, line 2
2a={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function 
2Za(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Ka(data,e){var t={"!id":{}};if(!data)return t;"/"!==e.charAt(0)&&(e="/"+e);var n={};return(data.match(nr)||[]).forEach((function(r){var o=ar(r);if("<Relationship"===o[0]){var c={};c.Type=o.Type,c.Target=o.Target,c.Id=o.Id,o.TargetMode&&(c.TargetMode=o.TargetMode);var l="External"===o.TargetMode?o.Target:Kn(o.Target,e);t[l]=c,n[o.Id]=c}})),t["!id"]=n,t}function Ja(e){var t=[Jn,Nr("Relationships",null,{xmlns:jr})];return yn(e["!id"]).forEach((function(n){t[t.length]=Nr("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Qa(e,t,n,r,o,c){if(o||(o={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,o.Id="rId"+t,o.Type=r,o.Target=n,c?o.TargetMode=c:[Ya.HLINK,Ya.XPATH,Ya.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),e["!id"][o.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][o.Id]=o,e[("/"+o.Target).replace("//","/")]=o,t}
2function es(e,t,n){return['  <rdf:Description rdf:about="'+e+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+t+'"/>\n',"  </rdf:Description>\n"].join("")}function ts(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+$e.version+"</meta:generator></office:meta></office:document-meta>"}var ns=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],rs=function(){for(var e=new Array(ns.length),i=0;i<ns.length;++i){var t=ns[i],g="(?:"+t[0].slice(0,t[0].indexOf(":"))+":)"+t[0].slice(t[0].indexOf(":")+1);e[i]=new RegExp("<"+g+"[^>]*>([\\s\\S]*?)</"+g+">")}return e}();function is(data){var p={};data=Tr(data);for(var i=0;i<ns.length;++i){var e=ns[i],t=data.match(rs[i]);null!=t&&t.length>0&&(p[e[1]]=lr(t[1])),"date"===e[2]&&p[e[1]]&&(p[e[1]]=Ln(p[e[1]]))}return p}function as(e,g,t,n,p){null==p[e]&&null!=g&&""!==g&&(p[e]=g,g=dr(g),n[n.length]=t?Nr(e,g,t):Lr(e,g))}function ss(e,t){var n=t||{},r=[Jn,Nr("cp:coreProperties",null,{"xmlns:cp":Br,"xmlns:dc":Gr,"xmlns:dcterms":$r,"xmlns:dcmitype":Xr,"xmlns:xsi":Zr})],p={};if(!e&&!n.Props)return r.join("");e&&(null!=e.CreatedDate&&as("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:Dr(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,p),null!=e.ModifiedDate&&as("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:Dr(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},r,p));for(var i=0;i!=ns.length;++i){var o=ns[i],c=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:e?e[o[1]]:null;!0===c?c="1":!1===c?c="0":"number"==typeof c&&(c=String(c)),null!=c&&as(o[0],c,null,r,p)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var os=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],cs=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ls(e,t,n,r){var o=[];if("string"==typeof e)o=Or(e,r);else for(var c=0;c<e.length;++c)o=o.concat(e[c].map((function(e){return{v:e}})));var l="string"==typeof t?Or(t,r).map((function(e){return e.v})):t,h=0,f=0;if(l.length>0)for(var i=0;i!==o.length;i+=2){switch(f=+o[i+1].v,o[i].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=f,n.SheetNames=l.slice(h,h+f);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=f,n.DefinedNames=l.slice(h,h+f);break;case"Charts":case"Diagramme":n.Chartsheets=f,n.ChartNames=l.slice(h,h+f)}h+=f}}function us(e){var t=[],n=Nr;return e||(e={}),e.Application="SheetJS",t[t.length]=Jn,t[t.length]=Nr("Properties",null,{xmlns:Hr,"xmlns:vt":Yr}),os.forEach((function(r){if(void 0!==e[r[1]]){var o;switch(r[2]){case"string":o=dr(String(e[r[1]]));break;case"bool":o=e[r[1]]?"true":"false"}void 0!==o&&(t[t.length]=n(r[0],o))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>
2Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(s){return"<vt:lpstr>"+dr(s)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var hs=/<[^>]+>[^<]*/g;function fs(e){var t=[Jn,Nr("Properties",null,{xmlns:zr,"xmlns:vt":Yr})];if(!e)return t.join("");var n=1;return yn(e).forEach((function(r){++n,t[t.length]=Nr("property",function(s,e){switch(typeof s){case"string":var t=Nr("vt:lpwstr",dr(s));return e&&(t=t.replace(/&quot;/g,"_x0022_")),t;case"number":return Nr((0|s)==s?"vt:i4":"vt:r8",dr(String(s)));case"boolean":return Nr("vt:bool",s?"true":"false")}if(s instanceof Date)return Nr("vt:filetime",Dr(s));throw new Error("Unable to serialize "+s)}(e[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:dr(r)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var ds,ps={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function ms(e,t,n){ds||(ds=wn(ps)),e[t=ds[t]||t]=n}function gs(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function vs(e,t,n){var r=e.l,o=e.read_shift(0,"lpstr-cp");if(n)for(;e.l-r&3;)++e.l;return o}
2function _s(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function ys(e,t,n){return 31===t?_s(e):vs(e,0,n)}function bs(e,t,n){return ys(e,t,!1===n?0:4)}function ws(e){var t=e.l,n=Ts(e,81);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[n,Ts(e,3)]}function xs(e,t){for(var n=e.read_shift(4),r={},o=0;o!=n;++o){var c=e.read_shift(4),l=e.read_shift(4);r[c]=e.read_shift(l,1200===t?"utf16le":"utf8").replace(bt,"").replace(wt,"!"),1200===t&&l%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),r}function Ss(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function Ts(e,t,n){var r,o=e.read_shift(2),c=n||{};if(e.l+=2,12!==t&&o!==t&&-1===Ua.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&o)))throw new Error("Expected type "+t+" saw "+o);switch(12===t?o:t){case 2:return r=e.read_shift(2,"i"),c.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4);case 30:return vs(e,0,4).replace(bt,"");case 31:return _s(e);case 64:return gs(e);case 65:return Ss(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return bs(e,o,!c.raw).replace(bt,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return ys(e,t,0)}(e,o).replace(bt,"");case 4108:return function(e){for(var t=e.read_shift(4),n=[],i=0;i<t/2;++i)n.push(ws(e));return n}(e);case 4126:case 4127:return 4127==o?function(e){for(var t=e.read_shift(4),n=[],i=0;i!=t;++i){var r=e.l;n[i]=e.read_shift(0,"lpwstr").replace(bt,""),e.l-r&2&&(e.l+=2)}return n}(e):function(e){for(var t=e.read_shift(4),n=[],i=0;i!=t;++i)n[i]=e.read_shift(0,"lpstr-cp").replace(bt,"");return n}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+o)}}function Es(e,t){var n=Hi(4),p=Hi(4);switch(n.write_shift(4,80==e?31:e),e){case 3:p.write_shift(-4,t);break;case 5:(p=Hi(8)).write_shift(8,t,"f");break;case 11:p.write_shift(4,t?1:0);break;case 64:p=function(time){var e=("string"==typeof time?new Date(Date.parse(time)):time).getTime()/1e3+11644473600,t=e%Math.pow(2,32),n=(e-t)/Math.pow(2,32);n*=1e7;var r=(t*=1e7)/Math.pow(2,32)|0;r>0&&(t%=Math.pow(2,32),n+=r);var o=Hi(8);return o.write_shift(4,t),o.write_shift(4,n),o}(t);break;case 31:case 80:for((p=Hi(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),p.write_shift(0,t,"dbcs");p.l!=p.length;)p.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return yt([n,p])}function Ms(e,t){var n=e.l,r=e.read_shift(4),o=e.read_shift(4),c=[],i=0,l=0,h=-1,f={};for(i=0;i!=o;++i){var d=e.read_shift(4),m=e.read_shift(4);c[i]=[d,m+n]}c.sort((function(e,t){return e[1]-t[1]}));var v={};for(i=0;i!=o;++i){if(e.l!==c[i][1]){var _=!0;if(i>0&&t)switch(t[c[i-1][0]].t){case 2:e.l+2===c[i][1]&&(e.l+=2,_=!1);break;case 80:case 4108:e.l<=c[i][1]&&(e.l=c[i][1],_=!1)}if((!t||0==i)&&e.l<=c[i][1]&&(_=!1,e.l=c[i][1]),_)throw new Error("Read Error: Expected address "+c[i][1]+" at "+e.l+" :"+i)}if(t){var y=t[c[i][0]];if(v[y.n]=Ts(e,y.t,{raw:!0}),"version"===y.p&&(v[y.n]=String(v[y.n]>>16)+"."+("0000"+String(65535&v[y.n])).slice(-4)),"CodePage"==y.n)switch(v[y.n]){case 0:v[y.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Je(l=v[y.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+v[y.n])}}else if(1===c[i][0]){if(l=v.CodePage=Ts(e,2),Je(l),-1!==h){var w=e.l;e.l=c[h][1],f=xs(e,l),e.l=w}}else if(0===c[i][0]){if(0===l){h=i,e.l=c[i+1][1];continue}f=xs(e,l)}else{var x,S=f[c[i][0]];switch(e[e.l]){case 65:e.l+=4,x=Ss(e);break;case 30:case 31:e.l+=4,x=bs(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,x=e.read_shift(4,"i");break;case 19:e.l+=4,x=e.read_shift(4);break;case 5:e.l+=4,x=e.read_shift(8,"f");break;case 11:e.l+=4,x=Ls(e,4);break;case 64:e.l+=4,x=Ln(gs(e));break;default:throw new Error("unparsed value: "+e[e.l])}v[S]=x}}return e.l=n+r,v}var As=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Cs(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Rs(e,t,n){var r=Hi(8),o=[],c=[],l=8,i=0,h=Hi(8),f=Hi(8);if(h.write_shift(4,2),h.write_shift(4,1200),f.write_shift(4,1),c.push(h),o.push(f),l+=8+h.length,!t){(f=Hi(8)).write_shift(4,0),o.unshift(f);var d=[Hi(4)];for(d[0].write_shift(4,e.length),i=0;i<e.length;++i){var m=e[i][0];for((h=Hi(8+2*(m.length+1)+(m.length%2?0:2))).write_shift(4,i+2),h.write_shift(4,m.length+1),h.write_shift(0,m,"dbcs");h.l!=h.length;)h.write_shift(1,0);d.push(h)}h=yt(d),c.unshift(h),l+=8+h.length}for(i=0;i<e.length;++i)if((!t||t[e[i][0]])&&!(As.indexOf(e[i][0])>
2-1||cs.indexOf(e[i][0])>-1)&&null!=e[i][1]){var v=e[i][1],_=0;if(t){var y=n[_=+t[e[i][0]]];if("version"==y.p&&"string"==typeof v){var w=v.split(".");v=(+w[0]<<16)+(+w[1]||0)}h=Es(y.t,v)}else{var x=Cs(v);-1==x&&(x=31,v=String(v)),h=Es(x,v)}c.push(h),(f=Hi(8)).write_shift(4,t?_:2+i),o.push(f),l+=8+h.length}var S=8*(c.length+1);for(i=0;i<c.length;++i)o[i].write_shift(4,S),S+=c[i].length;return r.write_shift(4,l),r.write_shift(4,c.length),yt([r].concat(o).concat(c))}function ks(e,t,n){var r=e.content;if(!r)return{};Bi(r,0);var o,c,l,h,f=0;r.chk("feff","Byte Order: "),r.read_shift(2);var d=r.read_shift(4),m=r.read_shift(16);if(m!==mn.utils.consts.HEADER_CLSID&&m!==n)throw new Error("Bad PropertySet CLSID "+m);if(1!==(o=r.read_shift(4))&&2!==o)throw new Error("Unrecognized #Sets: "+o);if(c=r.read_shift(16),h=r.read_shift(4),1===o&&h!==r.l)throw new Error("Length mismatch: "+h+" !== "+r.l);2===o&&(l=r.read_shift(16),f=r.read_shift(4));var v,_=Ms(r,t),y={SystemIdentifier:d};for(var w in _)y[w]=_[w];if(y.FMTID=c,1===o)return y;if(f-r.l==2&&(r.l+=2),r.l!==f)throw new Error("Length mismatch 2: "+r.l+" !== "+f);try{v=Ms(r,null)}catch(e){}for(w in v)y[w]=v[w];return y.FMTID=[c,l],y}function Os(e,t,n,r,o,c){var l=Hi(o?68:48),h=[l];l.write_shift(2,65534),l.write_shift(2,0),l.write_shift(4,842412599),l.write_shift(16,mn.utils.consts.HEADER_CLSID,"hex"),l.write_shift(4,o?2:1),l.write_shift(16,t,"hex"),l.write_shift(4,o?68:48);var f=Rs(e,n,r);if(h.push(f),o){var d=Rs(o,null,null);l.write_shift(16,c,"hex"),l.write_shift(4,68+f.length),h.push(d)}return yt(h)}function Ps(e,t){return e.read_shift(t),null}function Ls(e,t){return 1===e.read_shift(t)}function Is(e,t){return t||(t=Hi(2)),t.write_shift(2,+!!e),t}function Ns(e){return e.read_shift(2,"u")}function Ds(e,t){return t||(t=Hi(2)),t.write_shift(2,e),t}function Us(e,t){return function(e,t,n){for(var r=[],o=e.l+t;e.l<o;)r.push(n(e,o-e.l));if(o!==e.l)throw new Error("Slurp error");return r}(e,t,Ns)}function Fs(e,t,n){return n||(n=Hi(2)),n.write_shift(1,"e"==t?+e:+!!e),n.write_shift(1,"e"==t?1:0),n}function Bs(e,t,n){var r=e.read_shift(n&&n.biff>=12?2:1),o="sbcs-cont",c=Xe;(n&&n.biff>=8&&(Xe=1200),n&&8!=n.biff)?12==n.biff&&(o="wstr"):e.read_shift(1)&&(o="dbcs-cont");n.biff>=2&&n.biff<=5&&(o="cpstr");var l=r?e.read_shift(r,o):"";return Xe=c,l}function zs(e){var t=Xe;Xe=1200;var n,r=e.read_shift(2),o=e.read_shift(1),c=4&o,l=8&o,h=1+(1&o),f=0,d={};l&&(f=e.read_shift(2)),c&&(n=e.read_shift(4));var m=2==h?"dbcs-cont":"sbcs-cont",v=0===r?"":e.read_shift(r,m);return l&&(e.l+=4*f),c&&(e.l+=n),d.t=v,l||(d.raw="<t>"+d.t+"</t>",d.r=d.t),Xe=t,d}function Hs(e){var t=e.t||"",n=Hi(3);n.write_shift(2,t.length),n.write_shift(1,1);var r=Hi(2*t.length);return r.write_shift(2*t.length,t,"utf16le"),yt([n,r])}function Vs(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function js(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):Vs(e,r,n)}function Ws(e,t,n){if(n.biff>5)return js(e,0,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Gs(e,t,n){return n||(n=Hi(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function $s(e,t){var n=e.read_shift(16);switch(16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var o=e.read_shift((r?t-24:t)>>1,"utf16le").replace(bt,"");return r&&(e.l+=24),o}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),n="";t-- >0;)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return n+e.read_shift(o>>1,"utf16le").replace(bt,"")}(e);default:throw new Error("Unsupported Moniker "+n)}}function Xs(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(bt,""):""}function qs(e,t){t||(t=Hi(6+2*e.length)),t.write_shift(4,1+e.length);for(var i=0;i<e.length;++i)t.write_shift(2,e.charCodeAt(i));return t.write_shift(2,0),t}function Ys(e){var t=Hi(512),i=0,n=e.Target;"file://"==n.slice(0,7)&&(n=n.slice(7));var r=n.indexOf("#"),o=r>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}t.write_shift(4,2),t.write_shift(4,o);var data=[8,6815827,6619237,4849780,83];for(i=0;i<data.length;++i)t.write_shift(4,data[i]);if(28==o)qs(n=n.slice(1),t);else if(2&o){for(data="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<data.length;++i)t.write_shift(1,parseInt(data[i],16));var c=r>-1?n.slice(0,r):n;for(t.write_shift(4,2*(c.length+1)),i=0;i<c.length;
2++i)t.write_shift(2,c.charCodeAt(i));t.write_shift(2,0),8&o&&qs(r>-1?n.slice(r+1):"",t)}else{for(data="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),i=0;i<data.length;++i)t.write_shift(1,parseInt(data[i],16));for(var l=0;"../"==n.slice(3*l,3*l+3)||"..\\"==n.slice(3*l,3*l+3);)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),i=0;i<n.length-3*l;++i)t.write_shift(1,255&n.charCodeAt(i+3*l));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),i=0;i<6;++i)t.write_shift(4,0)}return t.slice(0,t.l)}function Zs(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function Ks(e,t){var n=Zs(e);return n[3]=0,n}function Js(e){return{r:e.read_shift(2),c:e.read_shift(2),ixfe:e.read_shift(2)}}function Qs(e,t,n,r){return r||(r=Hi(6)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,n||0),r}function eo(e,t,n){var r=n.biff>8?4:2;return[e.read_shift(r),e.read_shift(r,"i"),e.read_shift(r,"i")]}function to(e){return[e.read_shift(2),Ca(e)]}function no(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function ro(e,t){return t||(t=Hi(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function io(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r:n}}}var ao=io;function so(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function oo(e){e.l+=2,e.l+=e.read_shift(2)}var co={0:oo,4:oo,5:oo,6:oo,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:oo,9:oo,10:oo,11:oo,12:oo,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:oo,15:oo,16:oo,17:oo,18:oo,19:oo,20:oo,21:so};function lo(e,t){var n={BIFFVer:0,dt:0};switch(n.BIFFVer=e.read_shift(2),(t-=2)>=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function uo(e,t,n){var r=1536,o=16;switch(n.bookType){case"biff8":break;case"biff5":r=1280,o=8;break;case"biff4":r=4,o=6;break;case"biff3":r=3,o=6;break;case"biff2":r=2,o=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var c=Hi(o);return c.write_shift(2,r),c.write_shift(2,t),o>4&&c.write_shift(2,29282),o>6&&c.write_shift(2,1997),o>8&&(c.write_shift(2,49161),c.write_shift(2,1),c.write_shift(2,1798),c.write_shift(2,0)),c}function ho(data,e){var t=!e||e.biff>=8?2:1,n=Hi(8+t*data.name.length);n.write_shift(4,data.pos),n.write_shift(1,data.hs||0),n.write_shift(1,data.dt),n.write_shift(1,data.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(t*data.name.length,data.name,e.biff<8?"sbcs":"utf16le");var r=n.slice(0,n.l);return r.l=n.l,r}function fo(e,t,n){var r=0;n&&2==n.biff||(r=e.read_shift(2));var o=e.read_shift(2);return n&&2==n.biff&&(r=1-(o>>15),o&=32767),[{Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3},o]}function po(i,e,t,n){var r=t&&5==t.biff;n||(n=Hi(r?3+e.length:5+2*e.length)),n.write_shift(2,i),n.write_shift(r?1:2,e.length),r||n.write_shift(1,1),n.write_shift((r?1:2)*e.length,e,r?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return null==o.l&&(o.l=o.length),o}var mo=Ws;function go(e,t,n){var r=e.l+t,o=8!=n.biff&&n.biff?2:4,c=e.read_shift(o),l=e.read_shift(o),h=e.read_shift(2),f=e.read_shift(2);return e.l=r,{s:{r:c,c:h},e:{r:l,c:f}}}function vo(data,e,t,n){var r=t&&5==t.biff;n||(n=Hi(r?16:20)),n.write_shift(2,0),data.style?(n.write_shift(2,data.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,data.numFmtId||0),n.write_shift(2,e<<4));var o=0;return data.numFmtId>0&&r&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),r||n.write_shift(4,0),n.write_shift(2,0),n}function _o(e,t,n){var r=Js(e);2!=n.biff&&9!=t||++e.l;var o=function(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}(e);return r.val=o,r.t=!0===o||!1===o?"b":"e",r}var yo=function(e,t,n){return 0===t?"":Ws(e,0,n)};function bo(e,t,n){var body,r=e.read_shift(2),o={fBuiltIn:1&r,fWantAdvise:r>>>1&1,fWantPict:r>>>2&1,fOle:r>>>3&1,fOleLink:r>>>4&1,cf:r>>>5&1023,fIcon:r>>>15&1};return 14849===n.sbcch&&(body=function(e,t,n){e.l+=4,t-=4;var r=e.l+t,o=Bs(e,0,n),c=e.read_shift(2);if(c!==(r-=e.l))throw new Error("Malformed AddinUdf: padding = "+r+" != "+c);return e.l+=c,o}(e,t-2,n)),o.body=body||e.read_shift(t-2),"string"==typeof body&&(o.Name=body),o}var wo=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];
vendor: 14,754 bytes, line 2
2function xo(e,t,n){var r=e.l+t,o=e.read_shift(2),c=e.read_shift(1),l=e.read_shift(1),h=e.read_shift(n&&2==n.biff?1:2),f=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),f=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var d=Vs(e,l,n);32&o&&(d=wo[d.charCodeAt(0)]);var m=r-e.l;return n&&2==n.biff&&--m,{chKey:c,Name:d,itab:f,rgce:r!=e.l&&0!==h&&m>0?function(e,t,n,r){var o,c=e.l+t,l=Fl(e,r,n);c!==e.l&&(o=Ul(e,c-e.l,l,n));return[l,o]}(e,m,n,h):[]}}function So(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Bs(e,0,n);return 3==r.charCodeAt(0)?r.slice(1):r}(e,0,n);for(var r=[],o=e.l+t,c=e.read_shift(n.biff>8?4:2);0!=c--;)r.push(eo(e,n.biff,n));if(e.l!=o)throw new Error("Bad ExternSheet: "+e.l+" != "+o);return r}function To(e,t,n){var r=ao(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Wl(e,t,n)]}var Eo={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var o=e.read_shift(1);return e.l+=o,e.l=n,{fmt:r}}};function Mo(e){var t=Hi(24),n=Qi(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(r[i],16));return yt([t,Ys(e[1])])}function Ao(e){var t=e[1].Tooltip,n=Hi(10+2*(t.length+1));n.write_shift(2,2048);var r=Qi(e[0]);n.write_shift(2,r.r),n.write_shift(2,r.r),n.write_shift(2,r.c),n.write_shift(2,r.c);for(var i=0;i<t.length;++i)n.write_shift(2,t.charCodeAt(i));return n.write_shift(2,0),n}function Co(e,t,n){if(!n.cellStyles)return zi(e,t);var r=n&&n.biff>=12?4:2,o=e.read_shift(r),c=e.read_shift(r),l=e.read_shift(r),h=e.read_shift(r),f=e.read_shift(2);2==r&&(e.l+=2);var d={s:o,e:c,w:l,ixfe:h,flags:f};return(n.biff>=5||!n.biff)&&(d.level=f>>8&7),d}var Ro=Js,ko=Us,Oo=js;var Po=[2,3,48,49,131,139,140,245],Lo=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=wn({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=n||{};r.dateNF||(r.dateNF="yyyymmdd");var o=ca(function(t,n){var r=[],o=ft(1);switch(n.type){case"base64":o=mt(lt(t));break;case"binary":o=mt(t);break;case"buffer":case"array":o=t}Bi(o,0);var c=o.read_shift(1),l=!!(136&c),h=!1,f=!1;switch(c){case 2:case 3:break;case 48:case 49:h=!0,l=!0;break;case 131:case 139:break;case 140:f=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+c.toString(16))}var d=0,m=521;2==c&&(d=o.read_shift(2)),o.l+=3,2!=c&&(d=o.read_shift(4)),d>1048576&&(d=1e6),2!=c&&(m=o.read_shift(2));var v=o.read_shift(2),_=n.codepage||1252;2!=c&&(o.l+=16,o.read_shift(1),0!==o[o.l]&&(_=e[o[o.l]]),o.l+=1,o.l+=2),f&&(o.l+=36);for(var y=[],w={},x=Math.min(o.length,2==c?521:m-10-(h?264:0)),S=f?32:11;o.l<x&&13!=o[o.l];)switch((w={}).name=nt.utils.decode(_,o.slice(o.l,o.l+S)).replace(/[\u0000\r\n].*$/g,""),o.l+=S,w.type=String.fromCharCode(o.read_shift(1)),2==c||f||(w.offset=o.read_shift(4)),w.len=o.read_shift(1),2==c&&(w.offset=o.read_shift(2)),w.dec=o.read_shift(1),w.name.length&&y.push(w),2!=c&&(o.l+=f?13:14),w.type){case"B":(!h||8!=w.len)&&n.WTF;break;case"G":case"P":n.WTF;break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+w.type)}if(13!==o[o.l]&&(o.l=m-1),13!==o.read_shift(1))throw new Error("DBF Terminator not found "+o.l+" "+o[o.l]);o.l=m;var T=0,E=0;for(r[0]=[],E=0;E!=y.length;++E)r[0][E]=y[E].name;for(;d-- >0;)if(42!==o[o.l])for(++o.l,r[++T]=[],E=0,E=0;E!=y.length;++E){var dd=o.slice(o.l,o.l+y[E].len);o.l+=y[E].len,Bi(dd,0);var s=nt.utils.decode(_,dd);switch(y[E].type){case"C":s.trim().length&&(r[T][E]=s.replace(/\s+$/,""));break;case"D":8===s.length?r[T][E]=new Date(+s.slice(0,4),+s.slice(4,6)-1,+s.slice(6,8)):r[T][E]=s;break;case"F":r[T][E]=parseFloat(s.trim());break;case"+":case"I":r[T][E]=f?2147483648^dd.read_shift(-4,"i"):dd.read_shift(4,"i");break;case"L":switch(s.trim().toUpperCase()){case"Y":case"T":r[T][E]=!0;break;case"N":case"F":r[T][E]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+s+"|")}break;case"M":if(!l)throw new Error("DBF Unexpected MEMO for type "+c.toString(16));r[T][E]="##MEMO##"+(f?parseInt(s.trim(),10):dd.read_shift(4));break;case"N":(s=s.replace(/\u0000/g,"").trim())&&"."!=s&&(r[T][E]=+s||0);break;case"@":r[T][E]=new Date(dd.read_shift(-8,"f")-621356832e5);break;case"T":r[T][E]=new Date(864e5*(dd.read_shift(4)-2440588)+dd.read_shift(4));break;case"Y":r[T][E]=dd.read_shift(4,"i")/1e4+dd.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[T][E]=-dd.read_shift(-8,"f");break;case"B":if(h&&8==y[E].len){r[T][E]=dd.read_shift(8,"f");break}case"G":case"P":dd.l+=y[E].len;break;case"0":if("_NullFlags"===y[E].name)break;default:throw new Error("DBF Unsupported data type "+y[E].type)}}else o.l+=v;if(2!=c&&o.l<o.length&&26!=o[o.l++])throw new Error("DBF EOF Marker missing "+(o.l-1)+" of "+o.length+" "+o[o.l-1].toString(16));return n&&n.sheetRows&&(r=r.slice(0,n.sheetRows)),n.DBF=y,r}(t,r),r);return o["!cols"]=r.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete r.DBF,o}var r={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{return sa(n(e,t),t)}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(e,n){var o=n||{};if(+o.codepage>=0&&Je(+o.codepage),"string"==o.type)throw new Error("Cannot write DBF to JS string");var c=ji(),l=vd(e,{header:1,raw:!0,cellDates:!0}),h=l[0],data=l.slice(1),f=e["!cols"]||[],i=0,d=0,m=0,v=1;for(i=0;i<h.length;++i)if(((f[i]||{}).DBF||{}).name)h[i]=f[i].DBF.name,++m;else if(null!=h[i]){if(++m,"number"==typeof h[i]&&(h[i]=h[i].toString(10)),"string"!=typeof h[i])throw new Error("DBF Invalid column name "+h[i]+" |"+typeof h[i]+"|");if(h.indexOf(h[i])!==i)for(d=0;d<1024;++d)if(-1==h.indexOf(h[i]+"_"+d)){h[i]+="_"+d;break}}var _=ra(e["!ref"]),y=[],w=[],x=[];for(i=0;i<=_.e.c-_.s.c;++i){var S="",T="",E=0,col=[];for(d=0;d<data.length;++d)null!=data[d][i]&&col.push(data[d][i]);if(0!=col.length&&null!=h[i]){for(d=0;d<col.length;++d){switch(typeof col[d]){case"number":T="B";break;case"string":T="C";break;case"boolean":T="L";break;case"object":T=col[d]instanceof Date?"D":"C";break;default:T="C"}E=Math.max(E,String(col[d]).length),S=S&&S!=T?"C":T}E>250&&(E=250),"C"==(T=((f[i]||{}).DBF||{}).type)&&f[i].DBF.len>E&&(E=f[i].DBF.len),"B"==S&&"N"==T&&(S="N",x[i]=f[i].DBF.dec,E=f[i].DBF.len),w[i]="C"==S||"N"==T?E:r[S]||0,v+=w[i],y[i]=S}else y[i]="?"}var M=c.next(32);for(M.write_shift(4,318902576),M.write_shift(4,data.length),M.write_shift(2,296+32*m),M.write_shift(2,v),i=0;i<4;++i)M.write_shift(4,0);for(M.write_shift(4,0|(+t[qe]||3)<<8),i=0,d=0;i<h.length;++i)if(null!=h[i]){var A=c.next(32),C=(h[i].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);A.write_shift(1,C,"sbcs"),A.write_shift(1,"?"==y[i]?"C":y[i],"sbcs"),A.write_shift(4,d),A.write_shift(1,w[i]||r[y[i]]||0),A.write_shift(1,x[i]||0),A.write_shift(1,2),A.write_shift(4,0),A.write_shift(1,0),A.write_shift(4,0),A.write_shift(4,0),d+=w[i]||r[y[i]]||0}var R=c.next(264);for(R.write_shift(4,13),i=0;i<65;++i)R.write_shift(4,0);for(i=0;i<data.length;++i){var k=c.next(v);for(k.write_shift(1,0),d=0;d<h.length;++d)if(null!=h[d])switch(y[d]){case"L":k.write_shift(1,null==data[i][d]?63:data[i][d]?84:70);break;case"B":k.write_shift(8,data[i][d]||0,"f");break;case"N":var O="0";for("number"==typeof data[i][d]&&(O=data[i][d].toFixed(x[d]||0)),m=0;m<w[d]-O.length;++m)k.write_shift(1,32);k.write_shift(1,O,"sbcs");break;case"D":data[i][d]?(k.write_shift(4,("0000"+data[i][d].getFullYear()).slice(-4),"sbcs"),k.write_shift(2,("00"+(data[i][d].getMonth()+1)).slice(-2),"sbcs"),k.write_shift(2,("00"+data[i][d].getDate()).slice(-2),"sbcs")):k.write_shift(8,"00000000","sbcs");break;case"C":var P=String(null!=data[i][d]?data[i][d]:"").slice(0,w[d]);for(k.write_shift(1,P,"sbcs"),m=0;m<w[d]-P.length;++m)k.write_shift(1,32)}}return c.next(1).write_shift(1,26),c.end()}}}(),Io=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("�N("+yn(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var r=e[n];return"number"==typeof r?st(r):r},r=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:st(r)};function o(e,o){var c,l=e.split(/[\n\r]+/),h=-1,f=-1,d=0,m=0,v=[],_=[],y=null,w={},x=[],S=[],T=[],E=0;for(+o.codepage>=0&&Je(+o.codepage);d!==l.length;++d){E=0;var M,A=l[d].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(t,n),C=A.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),R=C[0];if(A.length>0)switch(R){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==C[1].charAt(0)&&_.push(A.slice(3).replace(/;;/g,";"));break;case"C":var k=!1,O=!1,P=!1,L=!1,I=-1,N=-1;for(m=1;m<C.length;++m)switch(C[m].charAt(0)){case"A":break;case"X":f=parseInt(C[m].slice(1))-1,O=!0;break;case"Y":for(h=parseInt(C[m].slice(1))-1,O||(f=0),c=v.length;c<=h;++c)v[c]=[];break;case"K":'"'===(M=C[m].slice(1)).charAt(0)?M=M.slice(1,M.length-1):"TRUE"===M?M=!0:"FALSE"===M?M=!1:isNaN(Un(M))?isNaN(Bn(M).getDate())||(M=Ln(M)):(M=Un(M),null!==y&&rn(y)&&(M=Cn(M))),void 0!==nt&&"string"==typeof M&&"string"!=(o||{}).type&&(o||{}).codepage&&(M=nt.utils.decode(o.codepage,M)),k=!0;break;case"E":L=!0;var D=hl(C[m].slice(1),{r:h,c:f});v[h][f]=[v[h][f],D];break;case"S":P=!0,v[h][f]=[v[h][f],"S5S"];break;case"G":break;case"R":I=parseInt(C[m].slice(1))-1;break;case"C":N=parseInt(C[m].slice(1))-1;break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+A)}if(k&&(v[h][f]&&2==v[h][f].length?v[h][f][0]=M:v[h][f]=M,y=null),P){if(L)throw new Error("SYLK shared formula cannot have own formula");var U=I>-1&&v[I][N];if(!U||!U[1])throw new Error("SYLK shared formula cannot find base");v[h][f][1]=ml(U[1],{r:h-I,c:f-N})}break;case"F":var F=0;for(m=1;m<C.length;++m)switch(C[m].charAt(0)){case"X":f=parseInt(C[m].slice(1))-1,++F;break;case"Y":for(h=parseInt(C[m].slice(1))-1,c=v.length;c<=h;++c)v[c]=[];break;case"M":E=parseInt(C[m].slice(1))/20;break;case"F":case"G":break;case"P":y=_[parseInt(C[m].slice(1))];break;case"S":case"D":case"N":break;case"W":for(T=C[m].slice(1).split(" "),c=parseInt(T[0],10);c<=parseInt(T[1],10);++c)E=parseInt(T[2],10),S[c-1]=0===E?{hidden:!0}:{wch:E},bc(S[c-1]);break;case"C":S[f=parseInt(C[m].slice(1))-1]||(S[f]={});break;case"R":x[h=parseInt(C[m].slice(1))-1]||(x[h]={}),E>0?(x[h].hpt=E,x[h].hpx=xc(E)):0===E&&(x[h].hidden=!0);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+A)}F<1&&(y=null);break;default:if(o&&o.WTF)throw new Error("SYLK bad record "+A)}}return x.length>0&&(w["!rows"]=x),S.length>0&&(w["!cols"]=S),o&&o.sheetRows&&(v=v.slice(0,o.sheetRows)),[v,w]}function c(e,t){var n=function(e,t){switch(t.type){case"base64":return o(lt(e),t);case"binary":return o(e,t);case"buffer":return o(ut&&Buffer.isBuffer(e)?e.toString("binary"):vt(e),t);case"array":return o(In(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),r=n[0],c=n[1],l=ca(r,t);return yn(c).forEach((function(e){l[e]=c[e]})),l}function l(e,t,n,r){var o="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":o+=e.v||0,e.f&&!e.F&&(o+=";E"+pl(e.f,{r:n,c:r}));break;case"b":o+=e.v?"TRUE":"FALSE";break;case"e":o+=e.w||e.v;break;case"d":o+='"'+(e.w||e.v)+'"';break;case"s":o+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return o}return e["|"]=254,{to_workbook:function(e,t){return sa(c(e,t),t)},to_sheet:c,from_sheet:function(e,t){var n,r,o=["ID;PWXL;N;E"],c=[],h=ra(e["!ref"]),f=Array.isArray(e),d="\r\n";o.push("P;PGeneral"),o.push("F;P0;DG0G8;M255"),e["!cols"]&&(r=o,e["!cols"].forEach((function(col,i){var e="F;W"+(i+1)+" "+(i+1)+" ";col.hidden?e+="0":("number"!=typeof col.width||col.wpx||(col.wpx=mc(col.width)),"number"!=typeof col.wpx||col.wch||(col.wch=gc(col.wpx)),"number"==typeof col.wch&&(e+=Math.round(col.wch)))," "!=e.charAt(e.length-1)&&r.push(e)}))),e["!rows"]&&function(e,t){t.forEach((function(t,i){var n="F;";t.hidden?n+="M0;":t.hpt?n+="M"+20*t.hpt+";":t.hpx&&(n+="M"+20*wc(t.hpx)+";"),n.length>2&&e.push(n+"R"+(i+1))}))}(o,e["!rows"]),o.push("B;Y"+(h.e.r-h.s.r+1)+";X"+(h.e.c-h.s.c+1)+";D"+[h.s.c,h.s.r,h.e.c,h.e.r].join(" "));for(var m=h.s.r;m<=h.e.r;++m)for(var v=h.s.c;v<=h.e.c;++v){var _=ea({r:m,c:v});(n=f?(e[m]||[])[v]:e[_])&&(null!=n.v||n.f&&!n.F)&&c.push(l(n,0,m,v))}return o.join(d)+d+c.join(d)+d+"E"+d}}}(),No=function(){function e(e,t){for(var n=e.split("\n"),r=-1,o=-1,c=0,l=[];c!==n.length;++c)if("BOT"!==n[c].trim()){if(!(r<0)){for(var h=n[c].trim().split(","),f=h[0],d=h[1],data=n[++c]||"";1&(data.match(/["]/g)||[]).length&&c<n.length-1;)data+="\n"+n[++c];switch(data=data.trim(),+f){case-1:if("BOT"===data){l[++r]=[],o=0;continue}if("EOD"!==data)throw new Error("Unrecognized DIF special command "+data);break;case 0:"TRUE"===data?l[r][o]=!0:"FALSE"===data?l[r][o]=!1:isNaN(Un(d))?isNaN(Bn(d).getDate())?l[r][o]=d:l[r][o]=Ln(d):l[r][o]=Un(d),++o;break;case 1:(data=(data=data.slice(1,data.length-1)).replace(/""/g,'"'))&&data.match(/^=".*"$/)&&(data=data.slice(2,-1)),l[r][o++]=""!==data?data:null}if("EOD"===data)break}}else l[++r]=[],o=0;return t&&t.sheetRows&&(l=l.slice(0,t.sheetRows)),l}function t(t,n){return ca(function(t,n){switch(n.type){case"base64":return e(lt(t),n);case"binary":return e(t,n);case"buffer":return e(ut&&Buffer.isBuffer(t)?t.toString("binary"):vt(t),n);case"array":return e(In(t),n)}throw new Error("Unrecognized type "+n.type)}(t,n),n)}return{to_workbook:function(e,n){return sa(t(e,n),n)}
2,to_sheet:t,from_sheet:function(){var e=function(e,t,n,r,s){e.push(t),e.push(n+","+r),e.push('"'+s.replace(/"/g,'""')+'"')},t=function(e,t,n,s){e.push(t+","+n),e.push(1==t?'"'+s.replace(/"/g,'""')+'"':s)};return function(n){var r,o=[],c=ra(n["!ref"]),l=Array.isArray(n);e(o,"TABLE",0,1,"sheetjs"),e(o,"VECTORS",0,c.e.r-c.s.r+1,""),e(o,"TUPLES",0,c.e.c-c.s.c+1,""),e(o,"DATA",0,0,"");for(var h=c.s.r;h<=c.e.r;++h){t(o,-1,0,"BOT");for(var f=c.s.c;f<=c.e.c;++f){var d=ea({r:h,c:f});if(r=l?(n[h]||[])[f]:n[d])switch(r.t){case"n":var m=r.w;m||null==r.v||(m=r.v),null==m?r.f&&!r.F?t(o,1,0,"="+r.f):t(o,1,0,""):t(o,0,m,"V");break;case"b":t(o,0,r.v?1:0,r.v?"TRUE":"FALSE");break;case"s":t(o,1,0,isNaN(r.v)?r.v:'="'+r.v+'"');break;case"d":r.w||(r.w=cn(r.z||Ot[14],Tn(Ln(r.v)))),t(o,0,r.w,"V");break;default:t(o,1,0,"")}else t(o,1,0,"")}}t(o,-1,0,"EOD");return o.join("\r\n")}}()}}(),Do=function(){function e(s){return s.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return ca(function(e,t){for(var n=e.split("\n"),r=-1,o=-1,c=0,l=[];c!==n.length;++c){var h=n[c].trim().split(":");if("cell"===h[0]){var f=Qi(h[1]);if(l.length<=f.r)for(r=l.length;r<=f.r;++r)l[r]||(l[r]=[]);switch(r=f.r,o=f.c,h[2]){case"t":l[r][o]=h[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n
2/g,"\n");break;case"v":l[r][o]=+h[3];break;case"vtf":var d=h[h.length-1];case"vtc":switch(h[3]){case"nl":l[r][o]=!!+h[4];break;default:l[r][o]=+h[4]}"vtf"==h[2]&&(l[r][o]=[l[r][o],d])}}}return t&&t.sheetRows&&(l=l.slice(0,t.sheetRows)),l}(e,t),t)}var header=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),n=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",meta=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),r="--SocialCalcSpreadsheetControlSave--";function o(t){if(!t||!t["!ref"])return"";for(var n,r=[],o=[],c="",l=ta(t["!ref"]),h=Array.isArray(t),f=l.s.r;f<=l.e.r;++f)for(var d=l.s.c;d<=l.e.c;++d)if(c=ea({r:f,c:d}),(n=h?(t[f]||[])[d]:t[c])&&null!=n.v&&"z"!==n.t){switch(o=["cell",c,"t"],n.t){case"s":case"str":o.push(e(n.v));break;case"n":n.f?(o[2]="vtf",o[3]="n",o[4]=n.v,o[5]=e(n.f)):(o[2]="v",o[3]=n.v);break;case"b":o[2]="vt"+(n.f?"f":"c"),o[3]="nl",o[4]=n.v?"1":"0",o[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var m=Tn(Ln(n.v));o[2]="vtc",o[3]="nd",o[4]=""+m,o[5]=n.w||cn(n.z||Ot[14],m);break;case"e":continue}r.push(o.join(":"))}return r.push("sheet:c:"+(l.e.c-l.s.c+1)+":r:"+(l.e.r-l.s.r+1)+":tvf:1"),r.push("valueformat:1:text-wiki"),r.join("\n")}return{to_workbook:function(e,n){return sa(t(e,n),n)},to_sheet:t,from_sheet:function(e){return[header,n,meta,n,o(e),r].join("\n")}}}(),Uo=function(){function e(data,e,t,n,r){r.raw?e[t][n]=data:""===data||("TRUE"===data?e[t][n]=!0:"FALSE"===data?e[t][n]=!1:isNaN(Un(data))?isNaN(Bn(data).getDate())?e[t][n]=data:e[t][n]=Ln(data):e[t][n]=Un(data))}var t={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function r(e){for(var r={},o=!1,c=0,l=0;c<e.length;++c)34==(l=e.charCodeAt(c))?o=!o:!o&&l in t&&(r[l]=(r[l]||0)+1);for(c in l=[],r)Object.prototype.hasOwnProperty.call(r,c)&&l.push([r[c],c]);if(!l.length)for(c in r=n)Object.prototype.hasOwnProperty.call(r,c)&&l.push([r[c],c]);return l.sort((function(a,b){return a[0]-b[0]||n[a[1]]-n[b[1]]})),t[l.pop()[1]]||44}function o(e,t){var n=t||{},o="";var c=n.dense?[]:{},l={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(o=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(o=e.charAt(4),e=e.slice(6)):o=r(e.slice(0,1024)):o=n&&n.FS?n.FS:r(e.slice(0,1024));var h=0,f=0,d=0,m=0,v=0,_=o.charCodeAt(0),y=!1,w=0,x=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");var S,T,E=null!=n.dateNF?(S=n.dateNF,T=(T="number"==typeof S?Ot[S]:S).replace(dn,"(\\d+)"),new RegExp("^"+T+"$")):null;function M(){var s=e.slice(m,v),t={};if('"'==s.charAt(0)&&'"'==s.charAt(s.length-1)&&(s=s.slice(1,-1).replace(/""/g,'"')),0===s.length)t.t="z";else if(n.raw)t.t="s",t.v=s;else if(0===s.trim().length)t.t="s",t.v=s;else if(61==s.charCodeAt(0))34==s.charCodeAt(1)&&34==s.charCodeAt(s.length-1)?(t.t="s",t.v=s.slice(2,-1).replace(/""/g,'"')):1!=s.length?(t.t="n",t.f=s.slice(1)):(t.t="s",t.v=s);else if("TRUE"==s)t.t="b",t.v=!0;else if("FALSE"==s)t.t="b",t.v=!1;else if(isNaN(d=Un(s)))if(!isNaN(Bn(s).getDate())||E&&s.match(E)){t.z=n.dateNF||Ot[14];var r=0;E&&s.match(E)&&(s=function(e,t,n){var r=-1,o=-1,c=-1,l=-1,h=-1,f=-1;(t.match(dn)||[]).forEach((function(e,i){var t=parseInt(n[i+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=t;break;case"d":c=t;break;case"h":l=t;break;case"s":f=t;break;case"m":l>=0?h=t:o=t}})),f>=0&&-1==h&&o>=0&&(h=o,o=-1);var d=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(c>=1?c:1)).slice(-2);7==d.length&&(d="0"+d),8==d.length&&(d="20"+d);var m=("00"+(l>=0?l:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return-1==l&&-1==h&&-1==f?d:-1==r&&-1==o&&-1==c?m:d+"T"+m}(0,n.dateNF,s.match(E)||[]),r=1),n.cellDates?(t.t="d",t.v=Ln(s,r)):(t.t="n",t.v=Tn(Ln(s,r))),!1!==n.cellText&&(t.w=cn(t.z,t.v instanceof Date?Tn(t.v):t.v)),n.cellNF||delete t.z}else t.t="s",t.v=s;else t.t="n",!1!==n.cellText&&(t.w=s),t.v=d;if("z"==t.t||(n.dense?(c[h]||(c[h]=[]),c[h][f]=t):c[ea({c:f,r:h})]=t),m=v+1,x=e.charCodeAt(m),l.e.c<f&&(l.e.c=f),l.e.r<h&&(l.e.r=h),w==_)++f;else if(f=0,++h,n.sheetRows&&n.sheetRows<=h)return!0}e:for(;v<e.length;++v)switch(w=e.charCodeAt(v)){case 34:34===x&&(y=!y);break;case _:case 10:case 13:if(!y&&M())break e}return v-m>0&&M(),c["!ref"]=na(l),c}function c(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?o(t,n):ca(function(t,n){var r=n||{},o=[];if(!t||0===t.length)return o;for(var c=t.split(/[\r\n]/),l=c.length-1;l>=0&&0===c[l].length;)--l;for(var h=10,f=0,d=0;d<=l;++d)-1==(f=c[d].indexOf(" "))?f=c[d].length:f++,h=Math.max(h,f);for(d=0;d<=l;++d){o[d]=[];var m=0;for(e(c[d].slice(0,h).trim(),o,d,m,r),m=1;m<=(c[d].length-h)/10+1;++m)e(c[d].slice(h+10*(m-1),h+10*m).trim(),o,d,m,r)}return r.sheetRows&&(o=o.slice(0,r.sheetRows)),o}(t,n),n):o(t,n)}function l(e,t){var n="",r="string"==t.type?[0,0,0,0]:sd(e,t);switch(t.type){case"base64":n=lt(e);break;case"binary":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&void 0!==nt?nt.utils.decode(t.codepage,e):ut&&Buffer.isBuffer(e)?e.toString("binary"):vt(e);break;case"array":n=In(e);break;case"string":n=e;break;default:throw new Error("Unrecognized type "+t.type)}return 239==r[0]&&187==r[1]&&191==r[2]?n=Tr(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=Tr(n):"binary"==t.type&&void 0!==nt&&t.codepage&&(n=nt.utils.decode(t.codepage,nt.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?Do.to_sheet("string"==t.type?n:Tr(n),t):c(n,t)}return{to_workbook:function(e,t){return sa(l(e,t),t)},to_sheet:l,from_sheet:function(e){for(var t,n=[],r=ra(e["!ref"]),o=Array.isArray(e),c=r.s.r;c<=r.e.r;++c){for(var l=[],h=r.s.c;h<=r.e.c;++h){var f=ea({r:c,c:h});if((t=o?(e[c]||[])[h]:e[f])&&null!=t.v){for(var d=(t.w||(aa(t),t.w)||"").slice(0,10);d.length<10;)d+=" ";l.push(d+(0===h?" ":""))}else l.push("          ")}n.push(l.join(""))}return n.join("\n")}}}();var Fo=function(){function e(data,e,t){if(data){Bi(data,data.l||0);for(var n=t.Enum||T;data.l<data.length;){var r=data.read_shift(2),o=n[r]||n[65535],c=data.read_shift(2),l=data.l+c,h=o.f&&o.f(data,c,t);if(data.l=l,e(h,o,r))return}}}function t(t,n){if(!t)return t;var r=n||{};var s=r.dense?[]:{},o="Sheet1",c="",l=0,h={},f=[],d=[],m={s:{r:0,c:0},e:{r:0,c:0}},v=r.sheetRows||0;if(0==t[2]&&(8==t[3]||9==t[3])&&t.length>=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=T,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:m=e;break;case 204:e&&(c=e);break;case 222:c=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||Ot[14],r.cellDates&&(e[1].t="d",e[1].v=Cn(e[1].v))),r.qpro&&e[3]>l&&(s["!ref"]=na(m),h[o]=s,f.push(o),s=r.dense?[]:{},m={s:{r:0,c:0},e:{r:0,c:0}},l=e[3],o=c||"Sheet"+(l+1),c="");var d=r.dense?(s[e[0].r]||[])[e[0].c]:s[ea(e[0])];if(d){d.t=e[1].t,d.v=e[1].v,null!=e[1].z&&(d.z=e[1].z),null!=e[1].f&&(d.f=e[1].f);break}r.dense?(s[e[0].r]||(s[e[0].r]=[]),s[e[0].r][e[0].c]=e[1]):s[ea(e[0])]=e[1]}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=E,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>l&&(s["!ref"]=na(m),h[o]=s,f.push(o),s=r.dense?[]:{},m={s:{r:0,c:0},e:{r:0,c:0}},l=e[3],o="Sheet"+(l+1)),v>0&&e[0].r>=v)break;r.dense?(s[e[0].r]||(s[e[0].r]=[]),s[e[0].r][e[0].c]=e[1]):s[ea(e[0])]=e[1],m.e.c<e[0].c&&(m.e.c=e[0].c),m.e.r<e[0].r&&(m.e.r=e[0].r);break;case 27:e[14e3]&&(d[e[14e3][0]]=e[14e3][1]);break;case 1537:d[e[0]]=e[1],e[0]==l&&(o=e[1])}}),r)}if(s["!ref"]=na(m),h[c||o]=s,f.push(c||o),!d.length)return{SheetNames:f,Sheets:h};for(var _={},y=[],i=0;i<d.length;++i)h[f[i]]?(y.push(d[i]||f[i]),_[d[i]]=h[d[i]]||h[f[i]]):(y.push(d[i]),_[d[i]]={"!ref":"A1"});return{SheetNames:y,Sheets:_}}function n(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function r(e,t,r){var o=e.l+t,c=n(e,0,r);if(c[1].t="s",20768==r.vers){e.l++;var l=e.read_shift(1);return c[1].v=e.read_shift(l,"utf8"),c}return r.qpro&&e.l++,c[1].v=e.read_shift(o-e.l,"cstr"),c}function o(e,t,s){var n=Hi(7+s.length);n.write_shift(1,255),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(1,39);for(var i=0;i<n.length;++i){var r=s.charCodeAt(i);n.write_shift(1,r>=128?95:r)}return n.write_shift(1,0),n}
2function c(e,t,n){var r=Hi(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function l(e,t,n){var r=Hi(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function h(e,t,col){var n=32768&t;return t=(n?e:0)+((t&=-32769)>=8192?t-16384:t),(n?"":"$")+(col?Ji(t):Zi(t))}var f={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},d=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function m(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function v(e,t,n,s){var r=Hi(6+s.length);r.write_shift(2,e),r.write_shift(1,n),r.write_shift(1,t),r.write_shift(1,39);for(var i=0;i<s.length;++i){var o=s.charCodeAt(i);r.write_shift(1,o>=128?95:o)}return r.write_shift(1,0),r}function _(e,t){var n=m(e),r=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(2);if(65535==c)return 0===r&&3221225472===o?(n[1].t="e",n[1].v=15):0===r&&3489660928===o?(n[1].t="e",n[1].v=42):n[1].v=0,n;var s=32768&c;return c=(32767&c)-16446,n[1].v=(1-2*s)*(o*Math.pow(2,c+32)+r*Math.pow(2,c)),n}function y(e,t,n,r){var o=Hi(14);if(o.write_shift(2,e),o.write_shift(1,n),o.write_shift(1,t),0==r)return o.write_shift(4,0),o.write_shift(4,0),o.write_shift(2,65535),o;var c,s=0,l=0,h=0;return r<0&&(s=1,r=-r),l=0|Math.log2(r),0==(2147483648&(h=(r/=Math.pow(2,l-31))>>>0))&&(++l,h=(r/=2)>>>0),r-=h,h|=2147483648,h>>>=0,c=(r*=Math.pow(2,32))>>>
20,o.write_shift(4,c),o.write_shift(4,h),l+=16383+(s?32768:0),o.write_shift(2,l),o}function w(e,t){var n=m(e),r=e.read_shift(8,"f");return n[1].v=r,n}function x(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function S(e,t){var n=Hi(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var i=0;i<e.length;++i){var r=e.charCodeAt(i);n[n.l++]=r>127?95:r}return n[n.l++]=0,n}var T={0:{n:"BOF",f:Ns},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(2,"i"),o}},14:{n:"NUMBER",f:function(e,t,r){var o=n(e,0,r);return o[1].v=e.read_shift(8,"f"),o}},15:{n:"LABEL",f:r},16:{n:"FORMULA",f:function(e,t,r){var o=e.l+t,c=n(e,0,r);if(c[1].v=e.read_shift(8,"f"),r.qpro)e.l=o;else{var l=e.read_shift(2);!function(e,t){Bi(e,0);var n=[],r=0,o="",c="",l="",m="";for(;e.l<e.length;){var v=e[e.l++];switch(v){case 0:n.push(e.read_shift(8,"f"));break;case 1:c=h(t[0].c,e.read_shift(2),!0),o=h(t[0].r,e.read_shift(2),!1),n.push(c+o);break;case 2:var _=h(t[0].c,e.read_shift(2),!0),y=h(t[0].r,e.read_shift(2),!1);c=h(t[0].c,e.read_shift(2),!0),o=h(t[0].r,e.read_shift(2),!1),n.push(_+y+":"+c+o);break;case 3:if(e.l<e.length)return;break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(e.read_shift(2));break;case 6:for(var w="";v=e[e.l++];)w+=String.fromCharCode(v);n.push('"'+w.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:m=n.pop(),l=n.pop(),n.push(["AND","OR"][v-20]+"("+l+","+m+")");break;default:if(v<32&&d[v])m=n.pop(),l=n.pop(),n.push(l+d[v]+m);else{if(!f[v])return;if(69==(r=f[v][1])&&(r=e[e.l++]),r>n.length)return;var x=n.slice(-r);n.length-=r,n.push(f[v][0]+"("+x.join(",")+")")}}}1==n.length&&(t[1].f=""+n[0])}(e.slice(e.l,e.l+l),c),e.l+=l}return c}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:r},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:x},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var r="";r.length<n;)r+=String.fromCharCode(e[e.l++]);return r}},65535:{n:""}},E={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(e,t){var n=m(e);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}},23:{n:"NUMBER17",f:_},24:{n:"NUMBER18",f:function(e,t){var n=m(e);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64}return n[1].v=r,n}},25:{n:"FORMULA19",f:function(e,t){var n=_(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},r=e.l+t;e.l<r;){var dt=e.read_shift(2);if(14e3==dt){for(n[dt]=[0,""],n[dt][0]=e.read_shift(2);e[e.l];)n[dt][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"}
2,37:{n:"NUMBER25",f:function(e,t){var n=m(e),r=e.read_shift(4);return n[1].v=r>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:w},40:{n:"FORMULA28",f:function(e,t){var n=w(e);return e.l+=t-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:x},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(e,t,n){if(n.qpro&&!(t<21)){var r=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[r,e.read_shift(t-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&Je(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r,h,f=ji(),d=ra(e["!ref"]),m=Array.isArray(e),v=[];Kh(f,0,(r=1030,(h=Hi(2)).write_shift(2,r),h)),Kh(f,6,function(e){var t=Hi(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(d));for(var _=Math.min(d.e.r,8191),y=d.s.r;y<=_;++y)for(var w=Zi(y),x=d.s.c;x<=d.e.c;++x){y===d.s.r&&(v[x]=Ji(x));var S=v[x]+w,T=m?(e[y]||[])[x]:e[S];if(T&&"z"!=T.t)if("n"==T.t)(0|T.v)==T.v&&T.v>=-32768&&T.v<=32767?Kh(f,13,c(y,x,T.v)):Kh(f,14,l(y,x,T.v));else Kh(f,15,o(y,x,aa(T).slice(0,239)))}return Kh(f,1),f.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&Je(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=ji();Kh(r,0,function(e){var t=Hi(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,r=0,o=0,i=0;i<e.SheetNames.length;++i){var c=e.SheetNames[i],l=e.Sheets[c];if(l&&l["!ref"]){++o;var h=ta(l["!ref"]);n<h.e.r&&(n=h.e.r),r<h.e.c&&(r=h.e.c)}}n>8191&&(n=8191);return t.write_shift(2,n),t.write_shift(1,o),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var i=0,o=0;i<e.SheetNames.length;++i)(e.Sheets[e.SheetNames[i]]||{})["!ref"]&&Kh(r,27,S(e.SheetNames[i],o++));var c=0;for(i=0;i<e.SheetNames.length;++i){var l=e.Sheets[e.SheetNames[i]];if(l&&l["!ref"]){for(var h=ra(l["!ref"]),f=Array.isArray(l),d=[],m=Math.min(h.e.r,8191),_=h.s.r;_<=m;++_)for(var w=Zi(_),x=h.s.c;x<=h.e.c;++x){_===h.s.r&&(d[x]=Ji(x));var T=d[x]+w,E=f?(l[_]||[])[x]:l[T];if(E&&"z"!=E.t)if("n"==E.t)Kh(r,23,y(_,x,c,E.v));else Kh(r,22,v(_,x,c,aa(E).slice(0,239)))}++c}}return Kh(r,1),r.end()},to_workbook:function(e,n){switch(n.type){case"base64":return t(mt(lt(e)),n);case"binary":return t(mt(e),n);case"buffer":case"array":return t(e,n)}throw"Unsupported type "+n.type}}}();var Bo=function(){var e=Mr("t"),t=Mr("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var o={t:"s",v:lr(r[1])},c=n.match(t);return c&&(o.s=function(e){var t={},n=e.match(nr),i=0,r=!1;if(n)for(;i!=n.length;++i){var o=ar(n[i]);switch(o[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!o.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==o.val)break;t.cp=Ze[parseInt(o.val,10)];break;case"<outline":if(!o.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=o.val;break;case"<sz":t.sz=o.val;break;case"<strike":if(!o.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!o.val)break;switch(o.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==o.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==o.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":o.rgb&&(t.color=o.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=o.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=o.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":r=!0;break;case"</ext>":r=!1;break;
2default:if(47!==o[0].charCodeAt(1)&&!r)throw new Error("Unrecognized rich format "+o[0])}}return t}(c[1])),o}var r=/<(?:\w+:)?r>/g,o=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(o).map(n).filter((function(e){return e.v}))}}(),zo=function(){var e=/(\r\n|\n)/g;function t(t){var n=[[],t.v,[]];return t.v?(t.s&&function(e,t,n){var style=[];e.u&&style.push("text-decoration: underline;"),e.uval&&style.push("text-underline-style:"+e.uval+";"),e.sz&&style.push("font-size:"+e.sz+"pt;"),e.outline&&style.push("text-effect: outline;"),e.shadow&&style.push("text-shadow: auto;"),t.push('<span style="'+style.join("")+'">'),e.b&&(t.push("<b>"),n.push("</b>")),e.i&&(t.push("<i>"),n.push("</i>")),e.strike&&(t.push("<s>"),n.push("</s>"));var r=e.valign||"";"superscript"==r||"super"==r?r="sup":"subscript"==r&&(r="sub"),""!=r&&(t.push("<"+r+">"),n.push("</"+r+">")),n.push("</span>")}(t.s,n[0],n[2]),n[0].join("")+n[1].replace(e,"<br/>")+n[2].join("")):""}return function(e){return e.map(t).join("")}}(),Ho=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Vo=/<(?:\w+:)?r>/,jo=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Wo(e,t){var html=!t||t.cellHTML,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=lr(Tr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Tr(e),html&&(n.h=gr(n.t))):e.match(Vo)&&(n.r=Tr(e),n.t=lr(Tr((e.replace(jo,"").match(Ho)||[]).join("").replace(nr,""))),html&&(n.h=zo(Bo(n.r)))),n):{t:""}}var Go=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,$o=/<(?:\w+:)?(?:si|sstItem)>/g,Xo=/<\/(?:\w+:)?(?:si|sstItem)>/;var qo=/^\s|\s$|[\t\n\r]/;function Yo(e,t){if(!t.bookSST)return"";var n=[Jn];n[n.length]=Nr("sst",null,{xmlns:Jr[0],count:e.Count,uniqueCount:e.Unique});for(var i=0;i!=e.length;++i)if(null!=e[i]){var s=e[i],r="<si>";s.r?r+=s.r:(r+="<t",s.t||(s.t=""),s.t.match(qo)&&(r+=' xml:space="preserve"'),r+=">"+dr(s.t)+"</t>"),r+="</si>",n[n.length]=r}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Zo=function(e,t){var n=!1;return null==t&&(n=!0,t=Hi(15+4*e.t.length)),t.write_shift(1,0),ha(e.t,t),n?t.slice(0,t.l):t};function Ko(e){var t=ji();Wi(t,159,function(e,t){return t||(t=Hi(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var i=0;i<e.length;++i)Wi(t,19,Zo(e[i]));return Wi(t,160),t.end()}function Jo(e){if(void 0!==nt)return nt.utils.encode(qe,e);for(var t=[],n=e.split(""),i=0;i<n.length;++i)t[i]=n[i].charCodeAt(0);return t}function Qo(e,t){var n={};return n.Major=e.read_shift(2),n.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),n}function ec(e){for(var t=e.read_shift(4),n=e.l+t-4,r={},o=e.read_shift(4),c=[];o-- >0;)c.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=c,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function tc(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Qo(e,4),t.U=Qo(e,4),t.W=Qo(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function nc(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var o=!1;switch(r.AlgID){case 26126:case 26127:case 26128:o=36==r.Flags;break;case 26625:o=4==r.Flags;break;case 0:o=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!o)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function rc(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function ic(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:nc(e,t),v:rc(e,e.length-e.l)}}function ac(){throw new Error("File is password-protected: ECMA-376 Extensible")}function sc(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(nr,(function(e){var n=ar(e);switch(sr(n[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach((function(e){r[e]=n[e]}));break;case"<dataIntegrity":r.encryptedHmacKey=n.encryptedHmacKey,r.encryptedHmacValue=n.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":r.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":r.uri=n.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":r.encs.push(n);break;default:throw n[0]}})),r}function oc(e){var t,i,n=0,r=Jo(e),o=r.length+1;for((t=ft(o))[0]=r.length,i=1;i!=o;++i)t[i]=r[i-1];for(i=o-1;i>=0;--i)n=((0==(16384&n)?0:1)|n<<1&32767)^t[i];return 52811^n}var cc=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,354
20,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e,t){return 255&((n=e^t)/2|128*n);var n};return function(o){for(var c,l,h,f=Jo(o),d=function(e){for(var r=t[e.length-1],o=104,i=e.length-1;i>=0;--i)for(var c=e[i],l=0;7!=l;++l)64&c&&(r^=n[o]),c*=2,--o;return r}(f),m=f.length,v=ft(16),i=0;16!=i;++i)v[i]=0;for(1==(1&m)&&(c=d>>8,v[m]=r(e[0],c),--m,c=255&d,l=f[f.length-1],v[m]=r(l,c));m>0;)c=d>>8,v[--m]=r(f[m],c),c=255&d,v[--m]=r(f[m],c);for(m=15,h=15-f.length;h>0;)c=d>>8,v[m]=r(e[h],c),--h,c=255&d,v[--m]=r(f[m],c),--m,--h;return v}}(),lc=function(e){var t=0,n=cc(e);return function(e){var r=function(e,t,n,r,o){var c,l;for(o||(o=t),r||(r=cc(e)),c=0;c!=t.length;++c)l=t[c],l=255&((l^=r[n])>>5|l<<3),o[c]=l,++n;return[o,n,r]}("",e,t,n);return t=r[1],r[0]}};function uc(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=function(e){var t={},n=t.EncryptionVersionInfo=Qo(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):r.Data=function(e,t){var n={},r=n.EncryptionVersionInfo=Qo(e,4);if(t-=4,2!=r.Minor)throw new Error("unrecognized minor version code: "+r.Minor);if(r.Major>4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var o=e.read_shift(4);return t-=4,n.EncryptionHeader=nc(e,o),t-=o,n.EncryptionVerifier=rc(e,t),n}(e,t),r}var hc=function(){function e(e,n){switch(n.type){case"base64":return t(lt(e),n);case"binary":return t(e,n);case"buffer":return t(ut&&Buffer.isBuffer(e)?e.toString("binary"):vt(e),n);case"array":return t(In(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},r=e.match(/\\trowd.*?\\row\b/g);if(!r.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:r.length-1}};return r.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var r,c=/\\\w+\b/g,l=0,h=-1;r=c.exec(e);){switch(r[0]){case"\\cell":var data=e.slice(l,c.lastIndex-r[0].length);if(" "==data[0]&&(data=data.slice(1)),++h,data.length){var f={v:data,t:"s"};Array.isArray(n)?n[t][h]=f:n[ea({r:t,c:h})]=f}}l=c.lastIndex}h>o.e.c&&(o.e.c=h)})),n["!ref"]=na(o),n}return{to_workbook:function(t,n){return sa(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],r=ra(e["!ref"]),o=Array.isArray(e),c=r.s.r;c<=r.e.r;++c){n.push("\\trowd\\trautofit1");for(var l=r.s.c;l<=r.e.c;++l)n.push("\\cellx"+(l+1));for(n.push("\\pard\\intbl"),l=r.s.c;l<=r.e.c;++l){var h=ea({r:c,c:l});(t=o?(e[c]||[])[l]:e[h])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(aa(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function fc(e){for(var i=0,t=1;3!=i;++i)t=256*t+(e[i]>255?255:e[i]<0?0:e[i]);return t.toString(16).toUpperCase().slice(1)}function dc(e,t){if(0===t)return e;var n,r,o=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(t,n,r),c=Math.min(t,n,r),l=o-c;if(0===l)return[0,0,t];var h,f=0,d=o+c;switch(h=l/(d>1?2-d:d),o){case t:f=((n-r)/l+6)%6;break;case n:f=(r-t)/l+2;break;case r:f=(t-n)/l+4}return[f/6,h,d/2]}((r=(n=e).slice("#"===n[0]?1:0).slice(0,6),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]));return o[2]=t<0?o[2]*(1+t):1-(1-o[2])*(1-t),fc(function(e){var t,n=e[0],r=e[1],o=e[2],c=2*r*(o<.5?o:1-o),l=o-c/2,h=[l,l,l],h6=6*n;if(0!==r)switch(0|h6){case 0:case 6:t=c*h6,h[0]+=c,h[1]+=t;break;case 1:t=c*(2-h6),h[0]+=t,h[1]+=c;break;case 2:t=c*(h6-2),h[1]+=c,h[2]+=t;break;case 3:t=c*(4-h6),h[1]+=t,h[2]+=c;break;case 4:t=c*(h6-4),h[2]+=c,h[0]+=t;break;case 5:t=c*(6-h6),h[2]+=t,h[0]+=c}for(var i=0;3!=i;++i)h[i]=Math.round(255*h[i]);return h}(o))}var pc=6;function mc(e){return Math.floor((e+Math.round(128/pc)/256)*pc)}function gc(e){return Math.floor((e-5)/pc*100+.5)/100}function vc(e){return Math.round((e*pc+5)/pc*256)/256}
2function _c(e){return vc(gc(mc(e)))}function yc(e){var t=Math.abs(e-_c(e)),n=pc;if(t>.005)for(pc=1;pc<15;++pc)Math.abs(e-_c(e))<=t&&(t=Math.abs(e-_c(e)),n=pc);pc=n}function bc(e){e.width?(e.wpx=mc(e.width),e.wch=gc(e.wpx),e.MDW=pc):e.wpx?(e.wch=gc(e.wpx),e.width=vc(e.wch),e.MDW=pc):"number"==typeof e.wch&&(e.width=vc(e.wch),e.wpx=mc(e.width),e.MDW=pc),e.customWidth&&delete e.customWidth}function wc(e){return 96*e/96}function xc(e){return 96*e/96}var Sc={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};var Tc=["numFmtId","fillId","fontId","borderId","xfId"],Ec=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];var Mc=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,o=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(data,c,l){var h,f={};return data?((h=(data=data.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,n){t.NumberFmt=[];for(var r=yn(Ot),i=0;i<r.length;++i)t.NumberFmt[r[i]]=Ot[r[i]];var o=e[0].match(nr);if(o)for(i=0;i<o.length;++i){var c=ar(o[i]);switch(sr(c[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":var l=lr(Tr(c.formatCode)),h=parseInt(c.numFmtId,10);if(t.NumberFmt[h]=l,h>0){if(h>392){for(h=392;h>60&&null!=t.NumberFmt[h];--h);t.NumberFmt[h]=l}ln(l,h)}break;case"</numFmt>":break;default:if(n.WTF)throw new Error("unrecognized "+c[0]+" in numFmts")}}}(h,f,l),(h=data.match(r))&&function(e,t,n,r){t.Fonts=[];var o={},c=!1;(e[0].match(nr)||[]).forEach((function(e){var l=ar(e);switch(sr(l[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(o),o={};break;case"<name":l.val&&(o.name=Tr(l.val));break;case"<name/>":case"</name>":break;case"<b":o.bold=l.val?_r(l.val):1;break;case"<b/>":o.bold=1;break;case"<i":o.italic=l.val?_r(l.val):1;break;case"<i/>":o.italic=1;break;case"<u":switch(l.val){case"none":o.underline=0;break;case"single":o.underline=1;break;case"double":o.underline=2;break;case"singleAccounting":o.underline=33;break;case"doubleAccounting":o.underline=34}break;case"<u/>":o.underline=1;break;case"<strike":o.strike=l.val?_r(l.val):1;break;case"<strike/>":o.strike=1;break;case"<outline":o.outline=l.val?_r(l.val):1;break;case"<outline/>":o.outline=1;break;case"<shadow":o.shadow=l.val?_r(l.val):1;break;case"<shadow/>":o.shadow=1;break;case"<condense":o.condense=l.val?_r(l.val):1;break;case"<condense/>":o.condense=1;break;case"<extend":o.extend=l.val?_r(l.val):1;break;case"<extend/>":o.extend=1;break;case"<sz":l.val&&(o.sz=+l.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":l.val&&(o.vertAlign=l.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":l.val&&(o.family=parseInt(l.val,10));break;case"<family/>":case"</family>":break;case"<scheme":l.val&&(o.scheme=l.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if("1"==l.val)break;l.codepage=Ze[parseInt(l.val,10)];break;case"<color":if(o.color||(o.color={}),l.auto&&(o.color.auto=_r(l.auto)),l.rgb)o.color.rgb=l.rgb.slice(-6);else if(l.indexed){o.color.index=parseInt(l.indexed,10);var h=ja[o.color.index];81==o.color.index&&(h=ja[1]),h||(h=ja[1]),o.color.rgb=h[0].toString(16)+h[1].toString(16)+h[2].toString(16)}else l.theme&&(o.color.theme=parseInt(l.theme,10),l.tint&&(o.color.tint=parseFloat(l.tint)),l.theme&&n.themeElements&&n.themeElements.clrScheme&&(o.color.rgb=dc(n.themeElements.clrScheme[o.color.theme].rgb,o.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":c=!0;break;case"</AlternateContent>":c=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;default:if(r&&r.WTF&&!c)throw new Error("unrecognized "+l[0]+" in fonts")}}))}(h,f,c,l),(h=data.match(n))&&function(e,t,n,r){t.Fills=[];var o={},c=!1;
2(e[0].match(nr)||[]).forEach((function(e){var n=ar(e);switch(sr(n[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":o={},t.Fills.push(o);break;case"</fill>":case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(o),o={};break;case"<patternFill":case"<patternFill>":n.patternType&&(o.patternType=n.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":o.bgColor||(o.bgColor={}),n.indexed&&(o.bgColor.indexed=parseInt(n.indexed,10)),n.theme&&(o.bgColor.theme=parseInt(n.theme,10)),n.tint&&(o.bgColor.tint=parseFloat(n.tint)),n.rgb&&(o.bgColor.rgb=n.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":o.fgColor||(o.fgColor={}),n.theme&&(o.fgColor.theme=parseInt(n.theme,10)),n.tint&&(o.fgColor.tint=parseFloat(n.tint)),null!=n.rgb&&(o.fgColor.rgb=n.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":case"</stop>":break;case"<color":case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;default:if(r&&r.WTF&&!c)throw new Error("unrecognized "+n[0]+" in fills")}}))}(h,f,0,l),(h=data.match(o))&&function(e,t,n,r){t.Borders=[];var o={},c=!1;(e[0].match(nr)||[]).forEach((function(e){var n=ar(e);switch(sr(n[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":o={},n.diagonalUp&&(o.diagonalUp=_r(n.diagonalUp)),n.diagonalDown&&(o.diagonalDown=_r(n.diagonalDown)),t.Borders.push(o);break;case"</border>":case"<left/>":break;case"<left":case"<left>":case"</left>":case"<right/>":break;case"<right":case"<right>":case"</right>":case"<top/>":break;case"<top":case"<top>":case"</top>":case"<bottom/>":break;case"<bottom":case"<bottom>":case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":break;case"<start":case"<start>":case"<start/>":case"</start>":break;case"<end":case"<end>":case"<end/>":case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":c=!0;break;case"</ext>":c=!1;break;default:if(r&&r.WTF&&!c)throw new Error("unrecognized "+n[0]+" in borders")}}))}(h,f,0,l),(h=data.match(t))&&function(e,t,n){var r;t.CellXf=[];var o=!1;(e[0].match(nr)||[]).forEach((function(e){var c=ar(e),i=0;switch(sr(c[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(delete(r=c)[0],i=0;i<Tc.length;++i)r[Tc[i]]&&(r[Tc[i]]=parseInt(r[Tc[i]],10));for(i=0;i<Ec.length;++i)r[Ec[i]]&&(r[Ec[i]]=_r(r[Ec[i]]));if(t.NumberFmt&&r.numFmtId>392)for(i=392;i>60;--i)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[i]){r.numFmtId=i;break}t.CellXf.push(r);break;case"</xf>":break;case"<alignment":case"<alignment/>":var l={};c.vertical&&(l.vertical=c.vertical),c.horizontal&&(l.horizontal=c.horizontal),null!=c.textRotation&&(l.textRotation=c.textRotation),c.indent&&(l.indent=c.indent),c.wrapText&&(l.wrapText=_r(c.wrapText)),r.alignment=l;break;case"</alignment>":case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":o=!0;break;case"</AlternateContent>":o=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;default:if(n&&n.WTF&&!o)throw new Error("unrecognized "+c[0]+" in cellXfs")}}))}(h,f,l),f):f}}();function Ac(e,t){var n,r=[Jn,Nr("styleSheet",null,{xmlns:Jr[0],"xmlns:vt":Yr})];return e.SSF&&null!=(n=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var i=n[0];i<=n[1];++i)null!=e[i]&&(t[t.length]=Nr("numFmt",null,{numFmtId:i,formatCode:dr(e[i])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Nr("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(e){var t=[];return t[t.length]=Nr("cellXfs",null),e.forEach((function(e){t[t.length]=Nr("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Nr("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function Cc(i,e,t){t||(t=Hi(6+4*e.length)),t.write_shift(2,i),ha(e,t);var n=t.length>t.l?t.slice(0,t.l):t;return null==t.l&&(t.l=t.length),n}function Rc(e,t){t||(t=Hi(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Hi(2));var n=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Na(e.color,t);var r=0;return"major"==e.scheme&&(r=1),"minor"==e.scheme&&(r=2),t.write_shift(1,r),ha(e.name,t),t.length>t.l?t.slice(0,t.l):t}var kc,Oc=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","dar
2kVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Pc=zi;function Lc(e,t){t||(t=Hi(84)),kc||(kc=wn(Oc));var n=kc[e.patternType];null==n&&(n=40),t.write_shift(4,n);var r=0;if(40!=n)for(Na({auto:1},t),Na({auto:1},t);r<12;++r)t.write_shift(4,0);else{for(;r<4;++r)t.write_shift(4,0);for(;r<12;++r)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Ic(data,e,t){t||(t=Hi(16)),t.write_shift(2,e||0),t.write_shift(2,data.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Nc(data,e){return e||(e=Hi(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var Dc=zi;function Uc(e){var t;Wi(e,613,la(1)),Wi(e,46,(t||(t=Hi(51)),t.write_shift(1,0),Nc(0,t),Nc(0,t),Nc(0,t),Nc(0,t),Nc(0,t),t.length>t.l?t.slice(0,t.l):t)),Wi(e,614)}function Fc(e){Wi(e,619,la(1)),Wi(e,48,function(style,e){return e||(e=Hi(52)),e.write_shift(4,style.xfId),e.write_shift(2,1),e.write_shift(1,+style.builtinId),e.write_shift(1,0),Ta(style.name||"",e),e.length>e.l?e.slice(0,e.l):e}({xfId:0,builtinId:0,name:"Normal"})),Wi(e,620)}function Bc(e){Wi(e,508,function(e,t,n){var r=Hi(2052);return r.write_shift(4,e),Ta(t,r),Ta(n,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),Wi(e,509)}function zc(e,t){var n=ji();return Wi(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var i=e[0];i<=e[1];++i)null!=t[i]&&++n})),0!=n&&(Wi(e,615,la(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var i=n[0];i<=n[1];++i)null!=t[i]&&Wi(e,44,Cc(i,t[i]))})),Wi(e,616))}}(n,e.SSF),function(e){Wi(e,611,la(1)),Wi(e,43,Rc({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Wi(e,612)}(n),function(e){Wi(e,603,la(2)),Wi(e,45,Lc({patternType:"none"})),Wi(e,45,Lc({patternType:"gray125"})),Wi(e,604)}(n),Uc(n),function(e){Wi(e,626,la(1)),Wi(e,47,Ic({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Wi(e,627)}(n),function(e,data){Wi(e,617,la(data.length)),data.forEach((function(t){Wi(e,47,Ic(t,0))})),Wi(e,618)}(n,t.cellXfs),Fc(n),function(e){Wi(e,505,la(0)),Wi(e,506)}(n),Bc(n),Wi(n,279),n.end()}var Hc=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function Vc(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(nr)||[]).forEach((function(e){var o=ar(e);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":r.rgb=o.val;break;case"<a:sysClr":r.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":"/"===o[0].charAt(1)?(t.themeElements.clrScheme[Hc.indexOf(o[0])]=r,r={}):r.name=o[0].slice(3,o[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}}))}function jc(){}function Wc(){}var Gc=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,$c=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Xc=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;var qc=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Yc(data,e){var t;data&&0!==data.length||(data=Zc());var n={};if(!(t=data.match(qc)))throw new Error("themeElements not found in theme");return function(data,e,t){var n;e.themeElements={},[["clrScheme",Gc,Vc],["fontScheme",$c,jc],["fmtScheme",Xc,Wc]].forEach((function(r){if(!(n=data.match(r[1])))throw new Error(r[0]+" not found in themeElements");r[2](n,e,t)}))}(t[0],n,e),n.raw=data,n}function Zc(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Jn];
2return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
2',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>
2',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function Kc(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=function(e,t){return zi(e,t)}(e,4);break;case 2:t.xclrValue=Zs(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e);break;case 4:e.l+=4}return e.l+=8,t}function Jc(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=Kc(e);break;case 6:r[1]=function(e,t){return zi(e,t)}(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Qc(){var data,e,t=ji();return Wi(t,332),Wi(t,334,la(1)),Wi(t,335,((e=Hi(12+2*(data={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,data.flags),e.write_shift(4,data.version),ha(data.name,e),e.slice(0,e.l))),Wi(t,336),Wi(t,339,function(e,t){var n=Hi(8+2*t.length);return n.write_shift(4,e),ha(t,n),n.slice(0,n.l)}(1,"XLDAPR")),Wi(t,52),Wi(t,35,la(514)),Wi(t,4096,la(0)),Wi(t,4097,Ds(1)),Wi(t,36),Wi(t,53),Wi(t,340),Wi(t,337,function(e,t){var n=Hi(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}(1,!0)),Wi(t,51,function(e){var t=Hi(4+8*e.length);t.write_shift(4,e.length);for(var i=0;i<e.length;++i)t.write_shift(4,e[i][0]),t.write_shift(4,e[i][1]);return t}([[1,0]])),Wi(t,338),Wi(t,333),t.end()}function el(){var e=[Jn];return e.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),e.join("")}var tl=1024;function nl(e,t){for(var n=[21600,21600],r=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),o=[Nr("xml",null,{"xmlns:v":ii,"xmlns:o":Qr,"xmlns:x":ei,"xmlns:mv":ri}).replace(/\/>/,">"),Nr("o:shapelayout",Nr("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Nr("v:shapetype",[Nr("v:stroke",null,{joinstyle:"miter"}),Nr("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:r})];tl<1e3*e;)tl+=1e3;return t.forEach((function(e){var t=Qi(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Nr("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Nr("v:fill",r,n);++tl,o=o.concat(["<v:shape"+Ir({id:"_x0000_s"+tl,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,Nr("v:shadow",null,{on:"t",obscured:"t"}),Nr("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Lr("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Lr("x:AutoFill","False"),Lr("x:Row",String(t.r)),Lr("x:Column",String(t.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),o.push("</xml>"),o.join("")}function rl(e,t,n,r){var o,c=Array.isArray(e);t.forEach((function(t){var l=Qi(t.ref);if(c?(e[l.r]||(e[l.r]=[]),o=e[l.r][l.c]):o=e[t.ref],!o){o={t:"z"},c?e[l.r][l.c]=o:e[t.ref]=o;var h=ra(e["!ref"]||"BDWGO1000001:A1");h.s.r>l.r&&(h.s.r=l.r),h.e.r<l.r&&(h.e.r=l.r),h.s.c>l.c&&(h.s.c=l.c),h.e.c<l.c&&(h.e.c=l.c);var f=na(h);f!==e["!ref"]&&(e["!ref"]=f)}o.c||(o.c=[]);var d={a:t.author,t:t.t,r:t.r,T:n};t.h&&(d.h=t.h);for(var i=o.c.length-1;i>=0;--i){if(!n&&o.c[i].T)return;n&&!o.c[i].T&&o.c.splice(i,1)}if(n&&r)for(i=0;i<r.length;++i)if(d.a==r[i].id){d.a=r[i].name||d.a;break}o.c.push(d)}))}function il(data){var e=[Jn,Nr("comments",null,{xmlns:Jr[0]})],t=[];return e.push("<authors>
2"),data.forEach((function(n){n[1].forEach((function(n){var a=dr(n.a);-1==t.indexOf(a)&&(t.push(a),e.push("<author>"+a+"</author>")),n.T&&n.ID&&-1==t.indexOf("tc="+n.ID)&&(t.push("tc="+n.ID),e.push("<author>tc="+n.ID+"</author>"))}))})),0==t.length&&(t.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),data.forEach((function(n){var r=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?r=t.indexOf("tc="+n[1][0].ID):n[1].forEach((function(e){e.a&&(r=t.indexOf(dr(e.a))),o.push(e.t||"")})),e.push('<comment ref="'+n[0]+'" authorId="'+r+'"><text>'),o.length<=1)e.push(Lr("t",dr(o[0]||"")));else{for(var c="Comment:\n    "+o[0]+"\n",i=1;i<o.length;++i)c+="Reply:\n    "+o[i]+"\n";e.push(Lr("t",dr(c)))}e.push("</text></comment>")})),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function al(e,t,n){var r=[Jn,Nr("ThreadedComments",null,{xmlns:Wr}).replace(/[\/]>/,">")];return e.forEach((function(e){var o="";(e[1]||[]).forEach((function(c,l){if(c.T){c.a&&-1==t.indexOf(c.a)&&t.push(c.a);var h={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==l?o=h.id:h.parentId=o,c.ID=h.id,c.a&&(h.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(c.a)).slice(-12)+"}"),r.push(Nr("threadedComment",Lr("text",c.t||""),h))}else delete c.ID}))})),r.push("</ThreadedComments>"),r.join("")}var sl=ua;function cl(data){var e=ji(),t=[];return Wi(e,628),Wi(e,630),data.forEach((function(n){n[1].forEach((function(n){t.indexOf(n.a)>-1||(t.push(n.a.slice(0,54)),Wi(e,632,function(data){return ha(data.slice(0,54))}(n.a)))}))})),Wi(e,631),Wi(e,633),data.forEach((function(n){n[1].forEach((function(r){r.iauthor=t.indexOf(r.a);var o={s:Qi(n[0]),e:Qi(n[0])};Wi(e,635,function(data,e){return null==e&&(e=Hi(36)),e.write_shift(4,data[1].iauthor),Pa(data[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}([o,r])),r.t&&r.t.length>0&&Wi(e,637,ma(r)),Wi(e,636),delete r.iauthor}))})),Wi(e,634),Wi(e,629),e.end()}var ll=["xlsb","xlsm","xlam","biff8","xla"];var hl=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,o){var c=!1,l=!1;0==r.length?l=!0:"["==r.charAt(0)&&(l=!0,r=r.slice(1,-1)),0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1));var h=r.length>0?0|parseInt(r,10):0,f=o.length>0?0|parseInt(o,10):0;return c?f+=t.c:--f,l?h+=t.r:--h,n+(c?"":"$")+Ji(f)+(l?"":"$")+Zi(h)}return function(r,base){return t=base,r.replace(e,n)}}(),fl=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,pl=function(){return function(e,base){return e.replace(fl,(function(e,t,n,r,o,c){var l=Ki(r)-(n?0:base.c),h=Yi(c)-(o?0:base.r);return t+"R"+(0==h?"":o?h+1:"["+h+"]")+"C"+(0==l?"":n?l+1:"["+l+"]")}))}}();function ml(e,t){return e.replace(fl,(function(e,n,r,o,c,l){return n+("$"==r?r+o:Ji(Ki(o)+t.c))+("$"==c?c+l:Zi(Yi(l)+t.r))}))}function gl(e,t,n){var s=ta(t).s,r=Qi(n);return ml(e,{r:r.r-s.r,c:r.c-s.c})}function vl(e){return e.replace(/_xlfn\./g,"")}function _l(e){e.l+=1}function yl(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function bl(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return wl(e);12==n.biff&&(r=4)}var o=e.read_shift(r),c=e.read_shift(r),l=yl(e,2),h=yl(e,2);return{s:{r:o,c:l[0],cRel:l[1],rRel:l[2]},e:{r:c,c:h[0],cRel:h[1],rRel:h[2]}}}function wl(e){var t=yl(e,2),n=yl(e,2),r=e.read_shift(1),o=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:o,cRel:n[1],rRel:n[2]}}}function xl(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=yl(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var r=e.read_shift(n&&12==n.biff?4:2),o=yl(e,2);return{r:r,c:o[0],cRel:o[1],rRel:o[2]}}function Sl(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function Tl(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function El(e){return[e.read_shift(1),e.read_shift(1)]}function Ml(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=Ls(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Wa[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=La(e);break;case 2:n[1]=Ws(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Al(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),o=[],i=0;i!=r;++i)o.push((12==n.biff?Oa:no)(e,8));return o}function Cl(e,t,n){var r=0,o=0;12==n.biff?(r=e.read_shift(4),o=e.read_shift(4)):(o=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--o&&(o=256));for(var i=0,c=[];i!=r&&(c[i]=[]);++i)for(var l=0;l!=o;++l)c[i][l]=Ml(e,n.biff);return c}function Rl(e,t,n){return e.l+=2,[Sl(e)]}function kl(e){return e.l+=6,[]}function Ol(e){return e.l+=2,[Ns(e),1&e.read_shift(2)]}var Pl=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var Ll={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:zi},3:{n:"PtgAdd",f:_l},4:{n:"PtgSub",f:_l},5:{n:"PtgMul",f:_l},6:{n:"PtgDiv",f:_l},7:{n:"PtgPower",f:_l},8:{n:"PtgConcat",f:_l},9:{n:"PtgLt",f:_l},10:{n:"PtgLe",f:_l},11:{n:"PtgEq",f:_l},12:{n:"PtgGe",f:_l},13:{n:"PtgGt",f:_l},14:{n:"PtgNe",f:_l},15:{n:"PtgIsect",f:_l},16:{n:"PtgUnion",f:_l},17:{n:"PtgRange",f:_l},18:{n:"PtgUplus",f:_l},19:{n:"PtgUminus",f:_l},20:{n:"PtgPercent",f:_l},21:{n:"PtgParen",f:_l},22:{n:"PtgMissArg",f:_l},23:{n:"PtgStr",f:function(e,t,n){return e.l++,Bs(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Wa[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,La(e)}},32:{n:"PtgArray",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}}
vendor: 6,980 bytes, line 2
2,33:{n:"PtgFunc",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(n&&n.biff<=3?1:2);return[tu[o],eu[o],r]}},34:{n:"PtgFuncVar",f:function(e,t,n){var r=e[e.l++],o=e.read_shift(1),c=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[o,(0===c[0]?eu:Ql)[c[1]]]}},35:{n:"PtgName",f:function(e,t,n){var r=e.read_shift(1)>>>5&3,o=!n||n.biff>=8?4:2,c=e.read_shift(o);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[r,0,c]}},36:{n:"PtgRef",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,xl(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,bl(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[r,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:zi},40:{n:"PtgMemNoMem",f:zi},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}},43:{n:"PtgAreaErr",f:function(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function(e,t,n){var r=(96&e[e.l])>>5;return e.l+=1,[r,function(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,o=(16384&t)>>14;t&=16383,1==r&&t>=8192&&(t-=16384);1==o&&n>=128&&(n-=256);return{r:t,c:n,cRel:o,rRel:r}}(e);var o=e.read_shift(r>=12?4:2),c=e.read_shift(2),l=(16384&c)>>14,h=(32768&c)>>15;if(c&=16383,1==h)for(;o>524287;)o-=1048576;if(1==l)for(;c>8191;)c-=16384;return{r:o,c:c,cRel:l,rRel:h}}(e,0,n)]}},45:{n:"PtgAreaN",f:function(e,t,n){return[(96&e[e.l++])>>5,function(e,t,n){if(n.biff<8)return wl(e);var r=e.read_shift(12==n.biff?4:2),o=e.read_shift(12==n.biff?4:2),c=yl(e,2),l=yl(e,2);return{s:{r:r,c:c[0],cRel:c[1],rRel:c[2]},e:{r:o,c:l[0],cRel:l[1],rRel:l[2]}}}(e,0,n)]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var o=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[r,o,xl(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2,"i");if(n)switch(n.biff){case 5:e.l+=12,6;break;case 12:12}return[r,o,bl(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),c=4;if(n)switch(n.biff){case 5:c=15;break;case 12:c=6}return e.l+=c,[r,o]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var r=(96&e[e.l++])>>5,o=e.read_shift(2),c=8;if(n)switch(n.biff){case 5:e.l+=12,c=6;break;case 12:c=12}return e.l+=c,[r,o]}},255:{}},Il={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Nl={1:{n:"PtgElfLel",f:Ol},2:{n:"PtgElfRw",f:Rl},3:{n:"PtgElfCol",f:Rl},6:{n:"PtgElfRwV",f:Rl},7:{n:"PtgElfColV",f:Rl},10:{n:"PtgElfRadical",f:Rl},11:{n:"PtgElfRadicalS",f:kl},13:{n:"PtgElfColS",f:kl},15:{n:"PtgElfColSV",f:kl},16:{n:"PtgElfRadicalLel",f:Ol},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o=e.read_shift(2),c=e.read_shift(2);return{ixti:t,coltype:3&n,rt:Pl[n>>2&31],idx:r,c:o,C:c}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},Dl={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),o=[],i=0;i<=r;++i)o.push(e.read_shift(n&&2==n.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Tl},33:{n:"PtgAttrBaxcel",f:Tl},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),El(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),El(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function Ul(e,t,n,r){if(r.biff<8)return zi(e,t);for(var o=e.l+t,c=[],i=0;i!==n.length;++i)switch(n[i][0]){case"PtgArray":n[i][1]=Cl(e,0,r),c.push(n[i][1]);break;case"PtgMemArea":n[i][2]=Al(e,n[i][1],r),c.push(n[i][2]);break;case"PtgExp":r&&12==r.biff&&(n[i][1][1]=e.read_shift(4),c.push(n[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[i][0]}return 0!==(t=o-e.l)&&c.push(zi(e,t)),c}function Fl(e,t,n){for(var r,o,c=e.l+t,l=[];c!=e.l;)t=c-e.l,o=e[e.l],r=Ll[o]||Ll[Il[o]],24!==o&&25!==o||(r=(24===o?Nl:Dl)[e[e.l+1]]),r&&r.f?l.push([r.n,r.f(e,t,n)]):zi(e,t);return l}function Bl(e){for(var t=[],i=0;i<e.length;++i){for(var n=e[i],r=[],o=0;o<n.length;++o){var c=n[o];if(c)switch(c[0]){case 2:r.push('"'+c[1].replace(/"/g,'""')+'"');break;default:r.push(c[1])}else r.push("")}t.push(r.join(","))}return t.join(";")}var zl={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Hl(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var o="";if(n.biff>8)switch(e[r[0]][0]){case 357:return o=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return o=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?o:o+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(o=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?o:o+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Vl(e,t,n){var r=Hl(e,t,n);return"#REF"==r?r:function(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}(r,n)}function jl(e,t,n,r,o){var c,l,h,f,d=o&&o.biff||8,m={s:{c:0,r:0},e:{c:0,r:0}},v=[],_=0,y=0,w="";if(!e[0]||!e[0][0])return"";for(var x=-1,S="",T=0,E=e[0].length;T<E;++T){var M=e[0][T];switch(M[0]){case"PtgUminus":v.push("-"+v.pop());break;
2case"PtgUplus":v.push("+"+v.pop());break;case"PtgPercent":v.push(v.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(c=v.pop(),l=v.pop(),x>=0){switch(e[0][x][1][0]){case 0:S=Dn(" ",e[0][x][1][1]);break;case 1:S=Dn("\r",e[0][x][1][1]);break;default:if(S="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}l+=S,x=-1}v.push(l+zl[M[0]]+c);break;case"PtgIsect":c=v.pop(),l=v.pop(),v.push(l+" "+c);break;case"PtgUnion":c=v.pop(),l=v.pop(),v.push(l+","+c);break;case"PtgRange":c=v.pop(),l=v.pop(),v.push(l+":"+c);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":h=Gi(M[1][1],m,o),v.push(Xi(h,d));break;case"PtgRefN":h=n?Gi(M[1][1],n,o):M[1][1],v.push(Xi(h,d));break;case"PtgRef3d":_=M[1][1],h=Gi(M[1][2],m,o);w=Vl(r,_,o);v.push(w+"!"+Xi(h,d));break;case"PtgFunc":case"PtgFuncVar":var A=M[1][0],C=M[1][1];A||(A=0);var R=0==(A&=127)?[]:v.slice(-A);v.length-=A,"User"===C&&(C=R.shift()),v.push(C+"("+R.join(",")+")");break;case"PtgBool":v.push(M[1]?"TRUE":"FALSE");break;case"PtgInt":v.push(M[1]);break;case"PtgNum":v.push(String(M[1]));break;case"PtgStr":v.push('"'+M[1].replace(/"/g,'""')+'"');break;case"PtgErr":v.push(M[1]);break;case"PtgAreaN":f=$i(M[1][1],n?{s:n}:m,o),v.push(qi(f,o));break;case"PtgArea":f=$i(M[1][1],m,o),v.push(qi(f,o));break;case"PtgArea3d":_=M[1][1],f=M[1][2],w=Vl(r,_,o),v.push(w+"!"+qi(f,o));break;case"PtgAttrSum":v.push("SUM("+v.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":y=M[1][2];var k=(r.names||[])[y-1]||(r[0]||[])[y],O=k?k.Name:"SH33TJSNAME"+String(y);O&&"_xlfn."==O.slice(0,6)&&!o.xlfn&&(O=O.slice(6)),v.push(O);break;case"PtgNameX":var P,L=M[1][1];if(y=M[1][2],!(o.biff<=5)){var I="";if(14849==((r[L]||[])[0]||[])[0]||(1025==((r[L]||[])[0]||[])[0]?r[L][y]&&r[L][y].itab>0&&(I=r.SheetNames[r[L][y].itab-1]+"!"):I=r.SheetNames[y-1]+"!"),r[L]&&r[L][y])I+=r[L][y].Name;else if(r[0]&&r[0][y])I+=r[0][y].Name;else{var N=(Hl(r,L,o)||"").split(";;");N[y-1]?I=N[y-1]:I+="SH33TJSERRX"}v.push(I);break}L<0&&(L=-L),r[L]&&(P=r[L][y]),P||(P={Name:"SH33TJSERRY"}),v.push(P.Name);break;case"PtgParen":var D="(",rp=")";if(x>=0){switch(S="",e[0][x][1][0]){case 2:D=Dn(" ",e[0][x][1][1])+D;break;case 3:D=Dn("\r",e[0][x][1][1])+D;break;case 4:rp=Dn(" ",e[0][x][1][1])+rp;break;case 5:rp=Dn("\r",e[0][x][1][1])+rp;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}x=-1}v.push(D+v.pop()+rp);break;case"PtgRefErr":case"PtgRefErr3d":v.push("#REF!");break;case"PtgExp":h={c:M[1][1],r:M[1][0]};var q={c:n.c,r:n.r};if(r.sharedf[ea(h)]){var U=r.sharedf[ea(h)];v.push(jl(U,m,q,r,o))}else{var F=!1;for(c=0;c!=r.arrayf.length;++c)if(l=r.arrayf[c],!(h.c<l[0].s.c||h.c>l[0].e.c||h.r<l[0].s.r||h.r>l[0].e.r)){v.push(jl(l[1],m,q,r,o)),F=!0;break}F||v.push(M[1])}break;case"PtgArray":v.push("{"+Bl(M[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":x=T;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":v.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":v.push("#REF!");break;case"PtgList":v.push("Table"+M[1].idx+"[#"+M[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":default:throw new Error("Unrecognized Formula Token: "+String(M))}if(3!=o.biff&&x>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][T][0])){var B=!0;switch((M=e[0][x])[1][0]){case 4:B=!1;case 0:S=Dn(" ",M[1][1]);break;case 5:B=!1;case 1:S=Dn("\r",M[1][1]);break;default:if(S="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+M[1][0])}v.push((B?S:"")+v.pop()+(B?"":S)),x=-1}}if(v.length>1&&o.WTF)throw new Error("bad formula stack");return v[0]}function Wl(e,t,n){var r,o=e.l+t,c=2==n.biff?1:2,l=e.read_shift(c);if(65535==l)return[[],zi(e,t-2)];var h=Fl(e,l,n);return t!==l+c&&(r=Ul(e,t-l-c,h,n)),e.l=o,[h,r]}function Gl(e,t,n){var r,o=e.l+t,c=e.read_shift(2),l=Fl(e,c,n);return 65535==c?[[],zi(e,t-2)]:(t!==c+2&&(r=Ul(e,o-c-2,l,n)),[l,r])}function $l(e,t,n){var r=e.l+t,o=Js(e);2==n.biff&&++e.l;var c=function(e){var b;if(65535!==ki(e,e.l+6))return[La(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return b=1===e[e.l+2],e.l+=8,[b,"b"];case 2:return b=e[e.l+2],e.l+=8,[b,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),l=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var h=function(e,t,n){var r,o=e.l+t,c=2==n.biff?1:2,l=e.read_shift(c);if(65535==l)return[[],zi(e,t-2)];var h=Fl(e,l,n);return t!==l+c&&(r=Ul(e,t-l-c,h,n)),e.l=o,[h,r]}(e,r-e.l,n);return{cell:o,val:c[0],formula:h,shared:l>>3&1,tt:c[1]}}function Xl(e,t,n,r,o){var c=Qs(t,n,o),l=function(e){if(null==e){var t=Hi(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Ia("number"==typeof e?e:0)}(e.v),h=Hi(6);h.write_shift(2,33),h.write_shift(4,0);for(var f=Hi(e.bf.length),i=0;i<e.bf.length;++i)f[i]=e.bf[i];return yt([c,l,h,f])}function ql(data,e,t){var n=data.read_shift(4),r=Fl(data,n,t),o=data.read_shift(4);return[r,o>0?Ul(data,o,r,t):null]}var Yl=ql,Zl=ql,Kl=ql,Jl=ql,Ql
vendor: 7,370 bytes, line 2
2={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},
2eu={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERA
2NKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},tu={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function nu(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCo
2deAt(0)&&(e=e.slice(1)),(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function ru(e){var a=e.split(":");return[a[0].split(".")[0],a[0].split(".")[1]+(a.length>1?":"+(a[1].split(".")[1]||a[1].split(".")[0]):"")]}var iu={},au={},su="undefined"!=typeof Map;function ou(e,t,n){var i=0,r=e.length;if(n){if(su?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var o=su?n.get(t):n[t];i<o.length;++i)if(e[o[i]].t===t)return e.Count++,o[i]}else for(;i<r;++i)if(e[i].t===t)return e.Count++,i;return e[r]={t:t},e.Count++,e.Unique++,n&&(su?(n.has(t)||n.set(t,[]),n.get(t).push(r)):(Object.prototype.hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(r))),r}function cu(e,col){var p={min:e+1,max:e+1},t=-1;return col.MDW&&(pc=col.MDW),null!=col.width?p.customWidth=1:null!=col.wpx?t=gc(col.wpx):null!=col.wch&&(t=col.wch),t>-1?(p.width=vc(t),p.customWidth=1):null!=col.width&&(p.width=col.width),col.hidden&&(p.hidden=!0),null!=col.level&&(p.outlineLevel=p.level=col.level),p}function lu(e,t){if(e){var defs=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(defs=[1,1,1,1,.5,.5]),null==e.left&&(e.left=defs[0]),null==e.right&&(e.right=defs[1]),null==e.top&&(e.top=defs[2]),null==e.bottom&&(e.bottom=defs[3]),null==e.header&&(e.header=defs[4]),null==e.footer&&(e.footer=defs[5])}}function uu(e,t,n){var r=n.revssf[null!=t.z?t.z:"General"],i=60,o=e.length;if(null==r&&n.ssf)for(;i<392;++i)if(null==n.ssf[i]){ln(t.z,i),n.ssf[i]=t.z,n.revssf[t.z]=r=i;break}for(i=0;i!=o;++i)if(e[i].numFmtId===r)return i;return e[o]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function hu(p,e,t,n,r,o){try{n.cellNF&&(p.z=Ot[e])}catch(e){if(n.WTF)throw e}if("z"!==p.t||n.cellStyles){if("d"===p.t&&"string"==typeof p.v&&(p.v=Ln(p.v)),(!n||!1!==n.cellText)&&"z"!==p.t)try{if(null==Ot[e]&&ln(fn[e]||"General",e),"e"===p.t)p.w=p.w||Wa[p.v];else if(0===e)if("n"===p.t)(0|p.v)===p.v?p.w=p.v.toString(10):p.w=Ht(p.v);else if("d"===p.t){var dd=Tn(p.v);p.w=(0|dd)===dd?dd.toString(10):Ht(dd)}else{if(void 0===p.v)return"";p.w=Vt(p.v,au)}else"d"===p.t?p.w=cn(e,Tn(p.v),au):p.w=cn(e,p.v,au)}catch(e){if(n.WTF)throw e}if(n.cellStyles&&null!=t)try{p.s=o.Fills[t],p.s.fgColor&&p.s.fgColor.theme&&!p.s.fgColor.rgb&&(p.s.fgColor.rgb=dc(r.themeElements.clrScheme[p.s.fgColor.theme].rgb,p.s.fgColor.tint||0),n.WTF&&(p.s.fgColor.raw_rgb=r.themeElements.clrScheme[p.s.fgColor.theme].rgb)),p.s.bgColor&&p.s.bgColor.theme&&(p.s.bgColor.rgb=dc(r.themeElements.clrScheme[p.s.bgColor.theme].rgb,p.s.bgColor.tint||0),n.WTF&&(p.s.bgColor.raw_rgb=r.themeElements.clrScheme[p.s.bgColor.theme].rgb))}catch(e){if(n.WTF&&o.Fills)throw e}}}function fu(e,t,i){if(e&&e["!ref"]){var n=ra(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+i+"): "+e["!ref"])}}var du=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,pu=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,mu=/<(?:\w:)?hyperlink [^>]*>/gm,gu=/"(\w*:\w*)"/,vu=/<(?:\w:)?col\b[^>]*[\/]?>/g,_u=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,yu=/<(?:\w:)?pageMargins[^>]*\/>/g,bu=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,wu=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,xu=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Su(data,e,t,n,r,o,c){if(!data)return data;n||(n={"!id":{}});var s=e.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},h="",f="",d=data.match(pu);d?(h=data.slice(0,d.index),f=data.slice(d.index+d[0].length)):h=f=data;var m=h.match(bu);m?Tu(m[0],s,r,t):(m=h.match(wu))&&function(e,body,s,t,n){Tu(e.slice(0,e.indexOf(">")),s,t,n)}(m[0],m[1],s,r,t);var v=(h.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(v>0){var _=h.slice(v,v+50).match(gu);_&&function(e,s){var t=ra(s);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(e["!ref"]=na(t))}(s,_[1])}var y=h.match(xu);y&&y[1]&&function(data,e){e.Views||(e.Views=[{}]);(data.match(Au)||[]).forEach((function(t,i){var n=ar(t);e.Views[i]||(e.Views[i]={}),+n.zoomScale&&(e.Views[i].zoom=+n.zoomScale),_r(n.rightToLeft)&&(e.Views[i].RTL=!0)}))}(y[1],r);var w=[];if(e.cellStyles){var x=h.match(vu);x&&function(e,t){for(var n=!1,r=0;r!=t.length;++r){var o=ar(t[r],!0);o.hidden&&(o.hidden=_r(o.hidden));var c=parseInt(o.min,10)-1,l=parseInt(o.max,10)-1;for(o.outlineLevel&&(o.level=+o.outlineLevel||0),delete o.min,delete o.max,o.width=+o.width,!n&&o.width&&(n=!0,yc(o.width)),bc(o);c<=l;)e[c++]=Nn(o)}}(w,x)}d&&Ru(d[1],s,e,l,o,c);var S=f.match(_u);S&&(s["!autofilter"]=function(data){return{ref:(data.match(/ref="([^"]*)"/)||[])[1]}}(S[0]));var T=[],E=f.match(du);
vendor: 4,249 bytes, line 2
2if(E)for(v=0;v!=E.length;++v)T[v]=ra(E[v].slice(E[v].indexOf('"')+1));var M=f.match(mu);M&&function(s,data,e){for(var t=Array.isArray(s),i=0;i!=data.length;++i){var n=ar(Tr(data[i]),!0);if(!n.ref)return;var r=((e||{})["!id"]||[])[n.id];r?(n.Target=r.Target,n.location&&(n.Target+="#"+lr(n.location))):(n.Target="#"+lr(n.location),r={Target:n.Target,TargetMode:"Internal"}),n.Rel=r,n.tooltip&&(n.Tooltip=n.tooltip,delete n.tooltip);for(var o=ra(n.ref),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l){var h=ea({c:l,r:c});t?(s[c]||(s[c]=[]),s[c][l]||(s[c][l]={t:"z",v:void 0}),s[c][l].l=n):(s[h]||(s[h]={t:"z",v:void 0}),s[h].l=n)}}}(s,M,n);var A,C,R=f.match(yu);if(R&&(s["!margins"]=(A=ar(R[0]),C={},["left","right","top","bottom","header","footer"].forEach((function(e){A[e]&&(C[e]=parseFloat(A[e]))})),C)),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=na(l)),e.sheetRows>0&&s["!ref"]){var k=ra(s["!ref"]);e.sheetRows<=+k.e.r&&(k.e.r=e.sheetRows-1,k.e.r>l.e.r&&(k.e.r=l.e.r),k.e.r<k.s.r&&(k.s.r=k.e.r),k.e.c>l.e.c&&(k.e.c=l.e.c),k.e.c<k.s.c&&(k.s.c=k.e.c),s["!fullref"]=s["!ref"],s["!ref"]=na(k))}return w.length>0&&(s["!cols"]=w),T.length>0&&(s["!merges"]=T),s}function Tu(e,s,t,n){var data=ar(e);t.Sheets[n]||(t.Sheets[n]={}),data.codeName&&(t.Sheets[n].CodeName=lr(Tr(data.codeName)))}var Eu=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Mu=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];var Au=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Cu(e,t,n,r){if(e.c&&n["!comments"].push([t,e.c]),void 0===e.v&&"string"!=typeof e.f||"z"===e.t&&!e.f)return"";var o="",c=e.t,l=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":o=""+e.v;break;case"e":o=Wa[e.v];break;case"d":r&&r.cellDates?o=Ln(e.v,-1).toISOString():((e=Nn(e)).t="n",o=""+(e.v=Tn(Ln(e.v)))),void 0===e.z&&(e.z=Ot[14]);break;default:o=e.v}var h=Lr("v",dr(o)),f={r:t},d=uu(r.cellXfs,e,r);switch(0!==d&&(f.s=d),e.t){case"n":break;case"d":f.t="d";break;case"b":f.t="b";break;case"e":f.t="e";break;case"z":break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){h=Lr("v",""+ou(r.Strings,e.v,r.revStrings)),f.t="s";break}f.t="str"}if(e.t!=c&&(e.t=c,e.v=l),"string"==typeof e.f&&e.f){var m=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;h=Nr("f",dr(e.f),m)+(null!=e.v?h:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(f.cm=1),Nr("c",h,f)}var Ru=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,o=/ref=["']([^"']*)["']/,c=Mr("v"),l=Mr("f");return function(h,s,f,d,m,v){for(var p,_,y,w,x,S=0,T="",E=[],M=[],A=0,i=0,C=0,R="",k=0,O=0,P=0,L=0,I=Array.isArray(v.CellXf),N=[],D=[],U=Array.isArray(s),F=[],B={},z=!1,H=!!f.sheetStubs,V=h.split(t),j=0,W=V.length;j!=W;++j){var G=(T=V[j].trim()).length;if(0!==G){var $=0;e:for(S=0;S<G;++S)switch(T[S]){case">":if("/"!=T[S-1]){++S;break e}if(f&&f.cellStyles){if(k=null!=(_=ar(T.slice($,S),!0)).r?parseInt(_.r,10):k+1,O=-1,f.sheetRows&&f.sheetRows<k)continue;B={},z=!1,_.ht&&(z=!0,B.hpt=parseFloat(_.ht),B.hpx=xc(B.hpt)),"1"==_.hidden&&(z=!0,B.hidden=!0),null!=_.outlineLevel&&(z=!0,B.level=+_.outlineLevel),z&&(F[k-1]=B)}break;case"<":$=S}if($>=S)break;if(k=null!=(_=ar(T.slice($,S),!0)).r?parseInt(_.r,10):k+1,O=-1,!(f.sheetRows&&f.sheetRows<k)){d.s.r>k-1&&(d.s.r=k-1),d.e.r<k-1&&(d.e.r=k-1),f&&f.cellStyles&&(B={},z=!1,_.ht&&(z=!0,B.hpt=parseFloat(_.ht),B.hpx=xc(B.hpt)),"1"==_.hidden&&(z=!0,B.hidden=!0),null!=_.outlineLevel&&(z=!0,B.level=+_.outlineLevel),z&&(F[k-1]=B)),E=T.slice(S).split(e);for(var X=0;X!=E.length&&"<"==E[X].trim().charAt(0);++X);for(E=E.slice(X),S=0;S!=E.length;++S)if(0!==(T=E[S].trim()).length){if(M=T.match(n),A=S,i=0,C=0,T="<c "+("<"==T.slice(0,1)?">":"")+T,null!=M&&2===M.length){for(A=0,R=M[1],i=0;i!=R.length&&!((C=R.charCodeAt(i)-64)<1||C>26);++i)A=26*A+C;O=--A}else++O;for(i=0;i!=T.length&&62!==T.charCodeAt(i);++i);if(++i,(_=ar(T.slice(0,i),!0)).r||(_.r=ea({r:k-1,c:O})),p={t:""},null!=(M=(R=T.slice(i)).match(c))&&""!==M[1]&&(p.v=lr(M[1])),f.cellFormula){if(null!=(M=R.match(l))&&""!==M[1]){if
2(p.f=lr(Tr(M[1])).replace(/\r\n/g,"\n"),f.xlfn||(p.f=vl(p.f)),M[0].indexOf('t="array"')>-1)p.F=(R.match(o)||[])[1],p.F.indexOf(":")>-1&&N.push([ra(p.F),p.F]);else if(M[0].indexOf('t="shared"')>-1){w=ar(M[0]);var Y=lr(Tr(M[1]));f.xlfn||(Y=vl(Y)),D[parseInt(w.si,10)]=[w,Y,_.r]}}else(M=R.match(/<f[^>]*\/>/))&&D[(w=ar(M[0])).si]&&(p.f=gl(D[w.si][1],D[w.si][2],_.r));var Z=Qi(_.r);for(i=0;i<N.length;++i)Z.r>=N[i][0].s.r&&Z.r<=N[i][0].e.r&&Z.c>=N[i][0].s.c&&Z.c<=N[i][0].e.c&&(p.F=N[i][1])}if(null==_.t&&void 0===p.v)if(p.f||p.F)p.v=0,p.t="n";else{if(!H)continue;p.t="z"}else p.t=_.t||"n";switch(d.s.c>O&&(d.s.c=O),d.e.c<O&&(d.e.c=O),p.t){case"n":if(""==p.v||null==p.v){if(!H)continue;p.t="z"}else p.v=parseFloat(p.v);break;case"s":if(void 0===p.v){if(!H)continue;p.t="z"}else y=iu[parseInt(p.v,10)],p.v=y.t,p.r=y.r,f.cellHTML&&(p.h=y.h);break;case"str":p.t="s",p.v=null!=p.v?Tr(p.v):"",f.cellHTML&&(p.h=gr(p.v));break;case"inlineStr":M=R.match(r),p.t="s",null!=M&&(y=Wo(M[1]))?(p.v=y.t,f.cellHTML&&(p.h=y.h)):p.v="";break;case"b":p.v=_r(p.v);break;case"d":f.cellDates?p.v=Ln(p.v,1):(p.v=Tn(Ln(p.v,1)),p.t="n");break;case"e":f&&!1===f.cellText||(p.w=p.v),p.v=Ga[p.v]}if(P=L=0,x=null,I&&void 0!==_.s&&null!=(x=v.CellXf[_.s])&&(null!=x.numFmtId&&(P=x.numFmtId),f.cellStyles&&null!=x.fillId&&(L=x.fillId)),hu(p,P,L,f,m,v),f.cellDates&&I&&"n"==p.t&&rn(Ot[P])&&(p.t="d",p.v=Cn(p.v)),_.cm&&f.xlmeta){var K=(f.xlmeta.Cell||[])[+_.cm-1];K&&"XLDAPR"==K.type&&(p.D=!0)}if(U){var J=Qi(_.r);s[J.r]||(s[J.r]=[]),s[J.r][J.c]=p}else s[_.r]=p}}}}F.length>0&&(s["!rows"]=F)}}();function ku(e,t,n,r){var o,c=[Jn,Nr("worksheet",null,{xmlns:Jr[0],"xmlns:r":qr})],s=n.SheetNames[e],l="",h=n.Sheets[s];null==h&&(h={});var f=h["!ref"]||"A1",d=ra(f);if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+f+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),f=na(d)}r||(r={}),h["!comments"]=[];var m=[];!function(e,t,n,r,o){var c=!1,l={},h=null;if("xlsx"!==r.bookType&&t.vbaraw){var f=t.SheetNames[n];try{t.Workbook&&(f=t.Workbook.Sheets[n].CodeName||f)}catch(e){}c=!0,l.codeName=Er(dr(f))}if(e&&e["!outline"]){var d={summaryBelow:1,summaryRight:1};e["!outline"].above&&(d.summaryBelow=0),e["!outline"].left&&(d.summaryRight=0),h=(h||"")+Nr("outlinePr",null,d)}(c||h)&&(o[o.length]=Nr("sheetPr",h,l))}(h,n,e,t,c),c[c.length]=Nr("dimension",null,{ref:f}),c[c.length]=function(e,t,n,r){var o={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),Nr("sheetViews",Nr("sheetView",null,o),{})}(0,0,0,n),t.sheetFormat&&(c[c.length]=Nr("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=h["!cols"]&&h["!cols"].length>0&&(c[c.length]=function(e,t){for(var col,n=["<cols>"],i=0;i!=t.length;++i)(col=t[i])&&(n[n.length]=Nr("col",null,cu(i,col)));return n[n.length]="</cols>",n.join("")}(0,h["!cols"])),c[o=c.length]="<sheetData/>",h["!links"]=[],null!=h["!ref"]&&(l=function(e,t,n,r){var o,c,l=[],h=[],f=ra(e["!ref"]),d="",m="",v=[],_=0,y=0,w=e["!rows"],x=Array.isArray(e),S={r:m},T=-1;for(y=f.s.c;y<=f.e.c;++y)v[y]=Ji(y);for(_=f.s.r;_<=f.e.r;++_){for(h=[],m=Zi(_),y=f.s.c;y<=f.e.c;++y){o=v[y]+m;var E=x?(e[_]||[])[y]:e[o];void 0!==E&&(null!=(d=Cu(E,o,e,t))&&h.push(d))}(h.length>0||w&&w[_])&&(S={r:m},w&&w[_]&&((c=w[_]).hidden&&(S.hidden=1),T=-1,c.hpx?T=wc(c.hpx):c.hpt&&(T=c.hpt),T>-1&&(S.ht=T,S.customHeight=1),c.level&&(S.outlineLevel=c.level)),l[l.length]=Nr("row",h.join(""),S))}if(w)for(;_<w.length;++_)w&&w[_]&&(S={r:_+1},(c=w[_]).hidden&&(S.hidden=1),T=-1,c.hpx?T=wc(c.hpx):c.hpt&&(T=c.hpt),T>-1&&(S.ht=T,S.customHeight=1),c.level&&(S.outlineLevel=c.level),l[l.length]=Nr("row","",S));return l.join("")}(h,t,0,0)).length>0&&(c[c.length]=l),c.length>o+1&&(c[c.length]="</sheetData>",c[o]=c[o].replace("/>",">")),h["!protect"]&&(c[c.length]=function(e){var t={sheet:1};return Eu.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),Mu.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=oc(e.password).toString(16).toUpperCase()),Nr("sheetProtection",null,t)}(h["!protect"])),null!=h["!autofilter"]&&(c[c.length]=function(data,e,t,n){var r="string"==typeof data.ref?data.ref:na(data.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var o=t.Workbook.Names,c=ta(r);c.s.r==c.e.r&&(c.e.r=ta(e["!ref"]).e.r,r=na(c));for(var i=0;i<o.length;++i){var l=o[i];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==n){l.Ref="'"+t.SheetNames[n]+"'!"+r;break}}return i==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+r}),Nr("autoFilter",null,{ref:r})}(h["!autofilter"],h,n,e)),null!=h["!merges"]&&h["!merges"].length>0&&(c[c.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',i=0;i!=e.length;++i)t+='<mergeCell ref="'+na(e[i])+'"/>';
2return t+"</mergeCells>"}(h["!merges"]));var v,_,y=-1,w=-1;return h["!links"].length>0&&(c[c.length]="<hyperlinks>",h["!links"].forEach((function(e){e[1].Target&&(v={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(w=Qa(r,-1,dr(e[1].Target).replace(/#.*$/,""),Ya.HLINK),v["r:id"]="rId"+w),(y=e[1].Target.indexOf("#"))>-1&&(v.location=dr(e[1].Target.slice(y+1))),e[1].Tooltip&&(v.tooltip=dr(e[1].Tooltip)),c[c.length]=Nr("hyperlink",null,v))})),c[c.length]="</hyperlinks>"),delete h["!links"],null!=h["!margins"]&&(c[c.length]=(lu(_=h["!margins"]),Nr("pageMargins",null,_))),t&&!t.ignoreEC&&null!=t.ignoreEC||(c[c.length]=Lr("ignoredErrors",Nr("ignoredError",null,{numberStoredAsText:1,sqref:f}))),m.length>0&&(w=Qa(r,-1,"../drawings/drawing"+(e+1)+".xml",Ya.DRAW),c[c.length]=Nr("drawing",null,{"r:id":"rId"+w}),h["!drawing"]=m),h["!comments"].length>0&&(w=Qa(r,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Ya.VML),c[c.length]=Nr("legacyDrawing",null,{"r:id":"rId"+w}),h["!legacy"]=w),c.length>1&&(c[c.length]="</worksheet>",c[1]=c[1].replace("/>",">")),c.join("")}function Ou(e,t,n,r){var o=function(e,t,n){var r=Hi(145),o=(n["!rows"]||[])[e]||{};r.write_shift(4,e),r.write_shift(4,0);var c=320;o.hpx?c=20*wc(o.hpx):o.hpt&&(c=20*o.hpt),r.write_shift(2,c),r.write_shift(1,0);var l=0;o.level&&(l|=o.level),o.hidden&&(l|=16),(o.hpx||o.hpt)&&(l|=32),r.write_shift(1,l),r.write_shift(1,0);var h=0,f=r.l;r.l+=4;for(var d={r:e,c:0},i=0;i<16;++i)if(!(t.s.c>i+1<<10||t.e.c<i<<10)){for(var m=-1,v=-1,_=i<<10;_<i+1<<10;++_){d.c=_,(Array.isArray(n)?(n[d.r]||[])[d.c]:n[ea(d)])&&(m<0&&(m=_),v=_)}m<0||(++h,r.write_shift(4,m),r.write_shift(4,v))}var y=r.l;return r.l=f,r.write_shift(4,h),r.l=y,r.length>r.l?r.slice(0,r.l):r}(r,n,t);(o.length>17||(t["!rows"]||[])[r])&&Wi(e,0,o)}var Pu=Oa,Lu=Pa;function Iu(data){return[ya(data),La(data),"n"]}var Nu=Oa,Du=Pa;var Uu=["left","right","top","bottom","header","footer"];function Fu(e,t,n,r,o,c,l){if(void 0===t.v)return!1;var h="";switch(t.t){case"b":h=t.v?"1":"0";break;case"d":(t=Nn(t)).z=t.z||Ot[14],t.v=Tn(Ln(t.v)),t.t="n";break;case"n":case"e":h=""+t.v;break;default:h=t.v}var f={r:n,c:r};switch(f.s=uu(o.cellXfs,t,o),t.l&&c["!links"].push([ea(f),t.l]),t.c&&c["!comments"].push([ea(f),t.c]),t.t){case"s":case"str":return o.bookSST?(h=ou(o.Strings,t.v,o.revStrings),f.t="s",f.v=h,l?Wi(e,18,function(e,t,n){return null==n&&(n=Hi(8)),ba(t,n),n.write_shift(4,t.v),n}(0,f)):Wi(e,7,function(e,t,n){return null==n&&(n=Hi(12)),_a(t,n),n.write_shift(4,t.v),n}(0,f))):(f.t="str",l?Wi(e,17,function(e,t,n){return null==n&&(n=Hi(8+4*e.v.length)),ba(t,n),ha(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,f)):Wi(e,6,function(e,t,n){return null==n&&(n=Hi(12+4*e.v.length)),_a(t,n),ha(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,f))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?l?Wi(e,13,function(e,t,n){return null==n&&(n=Hi(8)),ba(t,n),Ra(e.v,n),n}(t,f)):Wi(e,2,function(e,t,n){return null==n&&(n=Hi(12)),_a(t,n),Ra(e.v,n),n}(t,f)):l?Wi(e,16,function(e,t,n){return null==n&&(n=Hi(12)),ba(t,n),Ia(e.v,n),n}(t,f)):Wi(e,5,function(e,t,n){return null==n&&(n=Hi(16)),_a(t,n),Ia(e.v,n),n}(t,f)),!0;case"b":return f.t="b",l?Wi(e,15,function(e,t,n){return null==n&&(n=Hi(5)),ba(t,n),n.write_shift(1,e.v?1:0),n}(t,f)):Wi(e,4,function(e,t,n){return null==n&&(n=Hi(9)),_a(t,n),n.write_shift(1,e.v?1:0),n}(t,f)),!0;case"e":return f.t="e",l?Wi(e,14,function(e,t,n){return null==n&&(n=Hi(8)),ba(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,f)):Wi(e,3,function(e,t,n){return null==n&&(n=Hi(9)),_a(t,n),n.write_shift(1,e.v),n}(t,f)),!0}return l?Wi(e,12,function(e,t,n){return null==n&&(n=Hi(4)),ba(t,n)}(0,f)):Wi(e,1,function(e,t,n){return null==n&&(n=Hi(8)),_a(t,n)}(0,f)),!0}function Bu(e,t){var n,r;t&&t["!merges"]&&(Wi(e,177,(n=t["!merges"].length,null==r&&(r=Hi(4)),r.write_shift(4,n),r)),t["!merges"].forEach((function(t){Wi(e,176,Du(t))})),Wi(e,178))}function zu(e,t){t&&t["!cols"]&&(Wi(e,390),t["!cols"].forEach((function(t,i){t&&Wi(e,60,function(e,col,t){null==t&&(t=Hi(18));var p=cu(e,col);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,256*(p.width||10)),t.write_shift(4,0);var n=0;return col.hidden&&(n|=1),"number"==typeof p.width&&(n|=2),col.level&&(n|=col.level<<8),t.write_shift(2,n),t}(i,t))})),Wi(e,391))}function Hu(e,t){var n,r;t&&t["!ref"]&&(Wi(e,648),Wi(e,649,(n=ra(t["!ref"]),(r=Hi(24)).write_shift(4,4),r.write_shift(4,1),Pa(n,r),r)),Wi(e,650))}function Vu(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var r=Qa(n,-1,t[1].Target.replace(/#.*$/,""),Ya.HLINK);Wi(e,494,function(e,t){var n=Hi(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Pa({s:Qi(e[0]),e:Qi(e[0])},n),Aa("rId"+t,n);var r=e[1].Target.indexOf("#");return ha((-1==r?"":e[1].Target.slice(r+1))||"",n),ha(e[1].Tooltip||"",n),ha("",n),n.slice(0,n.l)}(t,r))}})),delete t["!links"]}function ju(e,t,n){Wi(e,133),Wi(e,137,function(e,t,n){null==n&&(n=Hi(30)
vendor: 5,024 bytes, line 2
2);var r=924;return(((t||{}).Views||[])[0]||{}).RTL&&(r|=32),n.write_shift(2,r),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Wi(e,138),Wi(e,134)}function Wu(e,t){var n,r;t["!protect"]&&Wi(e,535,(n=t["!protect"],null==r&&(r=Hi(66)),r.write_shift(2,n.password?oc(n.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(e){e[1]?r.write_shift(4,null==n[e[0]]||n[e[0]]?0:1):r.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)})),r))}function Gu(e,t,n,r){var o=ji(),s=n.SheetNames[e],c=n.Sheets[s]||{},l=s;try{n&&n.Workbook&&(l=n.Workbook.Sheets[e].CodeName||l)}catch(e){}var h,f,d=ra(c["!ref"]||"A1");if(d.e.c>16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return c["!links"]=[],c["!comments"]=[],Wi(o,129),(n.vbaraw||c["!outline"])&&Wi(o,147,function(e,t,n){null==n&&(n=Hi(84+4*e.length));var r=192;t&&(t.above&&(r&=-65),t.left&&(r&=-129)),n.write_shift(1,r);for(var i=1;i<3;++i)n.write_shift(1,0);return Na({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),xa(e,n),n.slice(0,n.l)}(l,c["!outline"])),Wi(o,148,Lu(d)),ju(o,0,n.Workbook),zu(o,c),function(e,t,n,r){var o,c=ra(t["!ref"]||"A1"),l="",h=[];Wi(e,145);var f=Array.isArray(t),d=c.e.r;t["!rows"]&&(d=Math.max(c.e.r,t["!rows"].length-1));for(var m=c.s.r;m<=d;++m){l=Zi(m),Ou(e,t,c,m);var v=!1;if(m<=c.e.r)for(var _=c.s.c;_<=c.e.c;++_){m===c.s.r&&(h[_]=Ji(_)),o=h[_]+l;var y=f?(t[m]||[])[_]:t[o];y?v=Fu(e,y,m,_,r,t,v):v=!1}}Wi(e,146)}(o,c,0,t),Wu(o,c),function(e,t,n,r){if(t["!autofilter"]){var data=t["!autofilter"],o="string"==typeof data.ref?data.ref:na(data.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var c=n.Workbook.Names,l=ta(o);l.s.r==l.e.r&&(l.e.r=ta(t["!ref"]).e.r,o=na(l));for(var i=0;i<c.length;++i){var h=c[i];if("_xlnm._FilterDatabase"==h.Name&&h.Sheet==r){h.Ref="'"+n.SheetNames[r]+"'!"+o;break}}i==c.length&&c.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+n.SheetNames[r]+"'!"+o}),Wi(e,161,Pa(ra(o))),Wi(e,162)}}(o,c,n,e),Bu(o,c),Vu(o,c,r),c["!margins"]&&Wi(o,476,(h=c["!margins"],null==f&&(f=Hi(48)),lu(h),Uu.forEach((function(e){Ia(h[e],f)})),f)),t&&!t.ignoreEC&&null!=t.ignoreEC||Hu(o,c),function(e,t,n,r){if(t["!comments"].length>0){var o=Qa(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Ya.VML);Wi(e,551,Aa("rId"+o)),t["!legacy"]=o}}(o,c,e,r),Wi(o,130),o.end()}function $u(data,e,t,n,r,o){var c=o||{"!type":"chart"};if(!data)return o;var l=0,h=0,col="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(data.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(data){var e,col=[],t=data.match(/^<c:numCache>/);(data.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var q=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);q&&(col[+q[1]]=t?+q[2]:q[2])}));var n=lr((data.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(data.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(t){e=t.replace(/<.*?>/g,"")})),[col,n,e]}(e);f.s.r=f.s.c=0,f.e.c=l,col=Ji(l),t[0].forEach((function(e,i){c[col+Zi(i)]={t:"n",v:e,z:t[1]},h=i})),f.e.r<h&&(f.e.r=h),++l})),l>0&&(c["!ref"]=na(f)),c}var Xu=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],qu=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Yu=[],Zu=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Ku(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=_r(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10))}}}function Ju(e,t){for(var i=0;i!=t.length;++i){var n=t[i];
2if(null==e[n[0]])e[n[0]]=n[1];else switch(n[2]){case"bool":"string"==typeof e[n[0]]&&(e[n[0]]=_r(e[n[0]]));break;case"int":"string"==typeof e[n[0]]&&(e[n[0]]=parseInt(e[n[0]],10))}}}function Qu(e){Ju(e.WBProps,Xu),Ju(e.CalcPr,Zu),Ku(e.WBView,qu),Ku(e.Sheets,Yu),au.date1904=_r(e.WBProps.date1904)}var eh="][*?/\\".split("");function nh(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return eh.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function rh(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,r,o=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=o,r=!!e.vbaraw,t.forEach((function(e,i){nh(e);for(var o=0;o<i;++o)if(e==t[o])throw new Error("Duplicate Sheet Name: "+e);if(r){var c=n&&n[i]&&n[i].CodeName||e;if(95==c.charCodeAt(0)&&c.length>22)throw new Error("Bad Code Name: Worksheet"+c)}}));for(var i=0;i<e.SheetNames.length;++i)fu(e.Sheets[e.SheetNames[i]],e.SheetNames[i],i)}var ih=/<\w+:workbook/;function ah(e){var t=[Jn];t[t.length]=Nr("workbook",null,{xmlns:Jr[0],"xmlns:r":qr});var n=e.Workbook&&(e.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Xu.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(r[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(r.codeName=e.Workbook.WBProps.CodeName,delete r.CodeName)),t[t.length]=Nr("workbookPr",null,r);var o=e.Workbook&&e.Workbook.Sheets||[],i=0;if(o&&o[0]&&o[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&o[i]&&o[i].Hidden;++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var c={name:dr(e.SheetNames[i].slice(0,31))};if(c.sheetId=""+(i+1),c["r:id"]="rId"+(i+1),o[i])switch(o[i].Hidden){case 1:c.state="hidden";break;case 2:c.state="veryHidden"}t[t.length]=Nr("sheet",null,c)}return t[t.length]="</sheets>",n&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Nr("definedName",dr(e.Ref),n))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function sh(data,e){var t={};return data.read_shift(4),t.ArchID=data.read_shift(4),data.l+=e-8,t}function oh(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,r,o=t.Workbook.Sheets,i=0,c=-1,l=-1;i<o.length;++i)!o[i]||!o[i].Hidden&&-1==c?c=i:1==o[i].Hidden&&-1==l&&(l=i);if(!(l>c))Wi(e,135),Wi(e,158,(n=c,r||(r=Hi(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,n),r.write_shift(4,n),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r)),Wi(e,136)}}function ch(e,t){var n=ji();return Wi(n,131),Wi(n,128,function(data,e){e||(e=Hi(127));for(var i=0;4!=i;++i)e.write_shift(4,0);return ha("SheetJS",e),ha($e.version,e),ha($e.version,e),ha("7262",e),e.length>e.l?e.slice(0,e.l):e}()),Wi(n,153,function(data,e){e||(e=Hi(72));var t=0;return data&&data.filterPrivacy&&(t|=8),e.write_shift(4,t),e.write_shift(4,0),xa(data&&data.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}(e.Workbook&&e.Workbook.WBProps||null)),oh(n,e),function(e,t){Wi(e,143);for(var n=0;n!=t.SheetNames.length;++n){var r={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]};Wi(e,156,(data=r,(o=void 0)||(o=Hi(127)),o.write_shift(4,data.Hidden),o.write_shift(4,data.iTabID),Aa(data.strRelID,o),ha(data.name.slice(0,31),o),o.length>o.l?o.slice(0,o.l):o))}var data,o;Wi(e,144)}(n,e),Wi(n,132),n.end()}function lh(data,e,t){return".bin"===e.slice(-4)?function(data,e){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],r=!1;e||(e={}),e.biff=12;var o=[],c=[[]];return c.SheetNames=[],c.XTI=[],Yh[16]={n:"BrtFRTArchID$",f:sh},Vi(data,(function(l,h,f){switch(f){case 156:c.SheetNames.push(l.name),t.Sheets.push(l);break;case 153:t.WBProps=l;break;case 39:null!=l.Sheet&&(e.SID=l.Sheet),l.Ref=jl(l.Ptg,0,null,c,e),delete e.SID,delete l.Ptg,o.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:c[0].length?c.push([f,l]):c[0]=[f,l],c[c.length-1].XTI=[];break;case 362:0===c.length&&(c[0]=[],c[0].XTI=[]),c[c.length-1].XTI=c[c.length-1].XTI.concat(l),c.XTI=c.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(f),r=!0;break;case 36:n.pop(),r=!1;break;case 37:n.push(f),r=!0;break;case 38:n.pop(),r=!1;break;case 16:break;default:if(h.T);else if(!r||e.WTF&&37!=n[n.length-1]&&35!=n[n.length-1])throw new Error("Unexpected record 0x"+f.toString(16))}}
vendor: 10,022 bytes, line 2
2),e),Qu(t),t.Names=o,t.supbooks=c,t}(data,t):function(data,e){if(!data)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,r="xmlns",o={},c=0;if(data.replace(nr,(function(l,h){var f=ar(l);switch(sr(f[0])){case"<?xml":break;case"<workbook":l.match(ih)&&(r="xmlns"+l.match(/<(\w+):/)[1]),t.xmlns=f[r];break;case"</workbook>":break;case"<fileVersion":delete f[0],t.AppVersion=f;break;case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Xu.forEach((function(e){if(null!=f[e[0]])switch(e[2]){case"bool":t.WBProps[e[0]]=_r(f[e[0]]);break;case"int":t.WBProps[e[0]]=parseInt(f[e[0]],10);break;default:t.WBProps[e[0]]=f[e[0]]}})),f.codeName&&(t.WBProps.CodeName=Tr(f.codeName));break;case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete f[0],t.WBView.push(f);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(f.state){case"hidden":f.Hidden=1;break;case"veryHidden":f.Hidden=2;break;default:f.Hidden=0}delete f.state,f.name=lr(Tr(f.name)),delete f[0],t.Sheets.push(f);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":(o={}).Name=Tr(f.name),f.comment&&(o.Comment=f.comment),f.localSheetId&&(o.Sheet=+f.localSheetId),_r(f.hidden||"0")&&(o.Hidden=!0),c=h+l.length;break;case"</definedName>":o.Ref=lr(Tr(data.slice(c,h))),t.Names.push(o);break;case"<definedName/>":break;case"<calcPr":case"<calcPr/>":delete f[0],t.CalcPr=f;break;case"</calcPr>":case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&e.WTF)throw new Error("unrecognized "+f[0]+" in workbook")}return l})),-1===Jr.indexOf(t.xmlns))throw new Error("Unknown Namespace: "+t.xmlns);return Qu(t),t}(data,t)}function uh(data,e,t,n,r,o,c,l){return".bin"===e.slice(-4)?function(data,e,t,n,r,o,c){if(!data)return data;var l=e||{};n||(n={"!id":{}});var h,f,p,d,m,v,_,y,w,x,s=l.dense?[]:{},S={s:{r:2e6,c:2e6},e:{r:0,c:0}},T=[],E=!1,M=!1,A=[];l.biff=12,l["!row"]=0;var C=0,R=!1,k=[],O={},P=l.supbooks||r.supbooks||[[]];if(P.sharedf=O,P.arrayf=k,P.SheetNames=r.SheetNames||r.Sheets.map((function(e){return e.name})),!l.supbooks&&(l.supbooks=P,r.Names))for(var i=0;i<r.Names.length;++i)P[0][i+1]=r.Names[i];var L,I,N=[],D=[],U=!1;if(Yh[16]={n:"BrtShortReal",f:Iu},Vi(data,(function(e,F,B){if(!M)switch(B){case 148:h=e;break;case 0:f=e,l.sheetRows&&l.sheetRows<=f.r&&(M=!0),w=Zi(m=f.r),l["!row"]=f.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=xc(e.hpt)),D[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(p={t:e[2]},e[2]){case"n":p.v=e[1];break;case"s":y=iu[e[1]],p.v=y.t,p.r=y.r;break;case"b":p.v=!!e[1];break;case"e":p.v=e[1],!1!==l.cellText&&(p.w=Wa[p.v]);break;case"str":p.t="s",p.v=e[1];break;case"is":p.t="s",p.v=e[1].t}if((d=c.CellXf[e[0].iStyleRef])&&hu(p,d.numFmtId,null,l,o,c),v=-1==e[0].c?v+1:e[0].c,l.dense?(s[m]||(s[m]=[]),s[m][v]=p):s[Ji(v)+w]=p,l.cellFormula){for(R=!1,C=0;C<k.length;++C){var z=k[C];f.r>=z[0].s.r&&f.r<=z[0].e.r&&v>=z[0].s.c&&v<=z[0].e.c&&(p.F=na(z[0]),R=!0)}!R&&e.length>3&&(p.f=e[3])}if(S.s.r>f.r&&(S.s.r=f.r),S.s.c>v&&(S.s.c=v),S.e.r<f.r&&(S.e.r=f.r),S.e.c<v&&(S.e.c=v),l.cellDates&&d&&"n"==p.t&&rn(Ot[d.numFmtId])){var H=Nt(p.v);H&&(p.t="d",p.v=new Date(H.y,H.m-1,H.d,H.H,H.M,H.S,H.u))}L&&("XLDAPR"==L.type&&(p.D=!0),L=void 0),I&&(I=void 0);break;case 1:case 12:if(!l.sheetStubs||E)break;p={t:"z",v:void 0},v=-1==e[0].c?v+1:e[0].c,l.dense?(s[m]||(s[m]=[]),s[m][v]=p):s[Ji(v)+w]=p,S.s.r>f.r&&(S.s.r=f.r),S.s.c>v&&(S.s.c=v),S.e.r<f.r&&(S.e.r=f.r),S.e.c<v&&(S.e.c=v),L&&("XLDAPR"==L.type&&(p.D=!0),L=void 0),I&&(I=void 0);break;case 176:A.push(e);break;case 49:L=((l.xlmeta||{}).Cell||[])[e-1];break;case 494:var V=n["!id"][e.relId];for(V?(e.Target=V.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=V):""==e.relId&&(e.Target="#"+e.loc),m=e.rfx.s.r;m<=e.rfx.e.r;++m)for(v=e.rfx.s.c;v<=e.rfx.e.c;++v)l.dense?(s[m]||(s[m]=[]),s[m][v]||(s[m][v]={t:"z",v:void 0}),s[m][v].l=e):(_=ea({c:v,r:m}),s[_]||(s[_]={t:"z",v:void 0}),s[_].l=e);break;case 426:if(!l.cellFormula)break;k.push(e),(x=l.dense?s[m][v]:s[Ji(v)+w]).f=jl(e[1],0,{r:f.r,c:v},P,l),x.F=na(e[0]);break;case 427:if(!l.cellFormula)break;O[ea(e[0].s)]=e[1],(x=l.dense?s[m][v]:s[Ji(v)+w]).f=jl(e[1],0,{r:f.r,c:v},P,l);break;case 60:if(!l.cellStyles)break;for(;e.e>=e.s;)N[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},U||(U=!0,yc(e.w/256)),bc(N[e.e+1]);break;case 161:s["!autofilter"]={ref:na(e)};break;case 476:s["!margins"]=e;break;case 147:r.Sheets[t]||(r.Sheets[t]={}),e.name&&(r.Sheets[t].CodeName=e.name),(e.above||e.left)&&(s["!outline"]={above:e.above,left:e.left});break;case 137:r.Views||(r.Views=[{}]),r.Views[0]||(r.Views[0]={}),e.RTL&&(r.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:E=!0;break;case 36:E=!1;break;case 37:T.push(B),E=!0;break;case 38:T.pop(),E=!1;break;default:if(F.T);else if(!E||l.WTF)throw new Error("Unexpected record 0x"+B.toString(16))}}),l),delete l.supbooks,delete l["!row"],!s["!ref"]&&(S.s.r<2e6||h&&(h.e.r>0||h.e.c>0||h.s.r>0||h.s.c>0))&&(s["!ref"]=na(h||S)),l.sheetRows&&s["!ref"]){var F=ra(s["!ref"]);l.sheetRows<=+F.e.r&&(F.e.r=l.sheetRows-1,F.e.r>S.e.r&&(F.e.r=S.e.r),F.e.r<F.s.r&&(F.s.r=F.e.r),F.e.c>S.e.c&&(F.e.c=S.e.c),F.e.c<F.s.c&&(F.s.c=F.e.c),s["!fullref"]=s["!ref"],s["!ref"]=na(F))}return A.length>0&&(s["!merges"]=A),N.length>0&&(s["!cols"]=N),D.length>0&&(s["!rows"]=D),s}(data,n,t,r,o,c,l):Su(data,n,t,r,o,c,l)}function hh(data,e,t,n,r,o,c,l){return".bin"===e.slice(-4)?function(data,e,t,n,r){if(!data)return data;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=[],c=!1;return Vi(data,(function(n,l,h){switch(h){case 550:s["!rel"]=n;break;case 651:r.Sheets[t]||(r.Sheets[t]={}),n.name&&(r.Sheets[t].CodeName=n.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:o.push(h);break;case 38:o.pop();break;default:if(l.T>0)o.push(h);else if(l.T<0)o.pop();else if(!c||e.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}),e),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}(data,n,t,r,o):function(data,e,t,n,r){if(!data)return data;n||(n={"!id":{}});var o,s={"!type":"chart","!drawel":null,"!rel":""},c=data.match(bu);return c&&Tu(c[0],0,r,t),(o=data.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=o[1]),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}(data,0,t,r,o)}function fh(data,e,t,n){return".bin"===e.slice(-4)?function(data,e,t){var n={NumberFmt:[]};for(var r in Ot)n.NumberFmt[r]=Ot[r];n.CellXf=[],n.Fonts=[];var o=[],c=!1;return Vi(data,(function(r,l,h){switch(h){case 44:n.NumberFmt[r[0]]=r[1],ln(r[1],r[0]);break;case 43:n.Fonts.push(r),null!=r.color.theme&&e&&e.themeElements&&e.themeElements.clrScheme&&(r.color.rgb=dc(e.themeElements.clrScheme[r.color.theme].rgb,r.color.tint||0));break;case 1025:case 45:case 46:break;case 47:617==o[o.length-1]&&n.CellXf.push(r);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:o.push(h),c=!0;break;case 38:o.pop(),c=!1;break;default:if(l.T>0)o.push(h);else if(l.T<0)o.pop();else if(!c||t.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+h.toString(16))}})),n}(data,t,n):Mc(data,t,n)}function dh(data,e,t){return".bin"===e.slice(-4)?function(data,e){var s=[],t=!1;return Vi(data,(function(n,r,o){switch(o){case 159:s.Count=n[0],s.Unique=n[1];break;case 19:s.push(n);break;case 160:return!0;case 35:t=!0;break;case 36:t=!1;break;default:if(r.T,!t||e.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),s}(data,t):function(data,e){var s=[],t="";if(!data)return s;var n=data.match(Go);if(n){t=n[2].replace($o,"").split(Xo);for(var i=0;i!=t.length;++i){var r=Wo(t[i].trim(),e);null!=r&&(s[s.length]=r)}n=ar(n[1]),s.Count=n.count,s.Unique=n.uniqueCount}return s}(data,t)}function ph(data,e,t){return".bin"===e.slice(-4)?function(data,e){var t=[],n=[],r={},o=!1;return Vi(data,(function(c,l,h){switch(h){case 632:n.push(c);break;case 635:r=c;break;case 637:r.t=c.t,r.h=c.h,r.r=c.r;break;case 636:if(r.author=n[r.iauthor],delete r.iauthor,e.sheetRows&&r.rfx&&e.sheetRows<=r.rfx.r)break;
2r.t||(r.t=""),delete r.rfx,t.push(r);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:case 38:break;default:if(l.T);else if(!o||e.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}})),t}(data,t):function(data,e){if(data.match(/<(?:\w+:)?comments *\/>/))return[];var t=[],n=[],r=data.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);r&&r[1]&&r[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var a=e.match(/<(?:\w+:)?author[^>]*>(.*)/);a&&t.push(a[1])}}));var o=data.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(r){if(""!==r&&""!==r.trim()){var o=r.match(/<(?:\w+:)?comment[^>]*>/);if(o){var c=ar(o[0]),l={author:c.authorId&&t[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},h=Qi(c.ref);if(!(e.sheetRows&&e.sheetRows<=h.r)){var f=r.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),rt=!!f&&!!f[1]&&Wo(f[1])||{r:"",t:"",h:""};l.r=rt.r,"<t></t>"==rt.r&&(rt.t=rt.h=""),l.t=(rt.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.cellHTML&&(l.h=rt.h),n.push(l)}}}})),n}(data,t)}function mh(data,e,t){return".bin"===e.slice(-4)?function(data,e,t){var n=[];return Vi(data,(function(e,t,r){switch(r){case 63:n.push(e);break;default:if(!t.T)throw new Error("Unexpected record 0x"+r.toString(16))}})),n}(data):function(data){var e=[];if(!data)return e;var i=1;return(data.match(nr)||[]).forEach((function(t){var n=ar(t);switch(n[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?i=n.i:n.i=i,e.push(n)}})),e}(data)}function gh(data,e,t,n){if(".bin"===t.slice(-4))return function(data,e,t,n){if(!data)return data;var r=n||{},o=!1;Vi(data,(function(e,t,n){switch(n){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:o=!0;break;case 36:o=!1;break;default:if(t.T);else if(!o||r.WTF)throw new Error("Unexpected record 0x"+n.toString(16))}}),r)}(data,0,0,n)}function vh(data,e,t){return".bin"===e.slice(-4)?function(data,e,t){var n={Types:[],Cell:[],Value:[]},r=t||{},o=[],c=!1,l=2;return Vi(data,(function(e,t,h){switch(h){case 335:n.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==l?n.Cell.push({type:n.Types[e[0]-1].name,index:e[1]}):0==l&&n.Value.push({type:n.Types[e[0]-1].name,index:e[1]})}));break;case 337:l=e?1:0;break;case 338:l=2;break;case 35:o.push(h),c=!0;break;case 36:o.pop(),c=!1;break;default:if(t.T);else if(!c||r.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+h.toString(16))}})),n}(data,0,t):function(data,e,t){var n={Types:[],Cell:[],Value:[]};if(!data)return n;var r,o=!1,c=2;return data.replace(nr,(function(e){var l=ar(e);switch(sr(l[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:l.name});break;case"</metadataType>":break;case"<futureMetadata":for(var h=0;h<n.Types.length;++h)n.Types[h].name==l.name&&(r=n.Types[h]);break;case"</futureMetadata>":case"<bk>":case"</bk>":break;case"<rc":1==c?n.Cell.push({type:n.Types[l.t-1].name,index:+l.v}):0==c&&n.Value.push({type:n.Types[l.t-1].name,index:+l.v});break;case"</rc>":break;case"<cellMetadata":c=1;break;case"</cellMetadata>":c=2;break;case"<valueMetadata":c=0;break;case"</valueMetadata>":c=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":o=!0;break;case"</ext>":o=!1;break;case"<rvb":if(!r)break;r.offsets||(r.offsets=[]),r.offsets.push(+l.i);break;default:if(!o&&t.WTF)throw new Error("unrecognized "+l[0]+" in metadata")}return e})),n}(data,0,t)}function _h(data,e,t,n,r){return(".bin"===e.slice(-4)?Gu:ku)(data,t,n,r)}function yh(data,e,t){return(".bin"===e.slice(-4)?cl:il)(data,t)}var bh,wh=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,xh=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Sh(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var o,c,i,l=e.match(wh);if(l)for(i=0;i!=l.length;++i)-1===(c=(o=l[i].match(xh))[1].indexOf(":"))?r[o[1]]=o[2].slice(1,o[2].length-1):r["xmlns:"===o[1].slice(0,6)?"xmlns"+o[1].slice(6):o[1].slice(c+1)]=o[2].slice(1,o[2].length-1);return r}function Th(e){var t={};if(1===e.split(/\s+/).length)return t;var n,r,i,o=e.match(wh);if(o)for(i=0;i!=o.length;++i)-1===(r=(n=o[i].match(xh))[1].indexOf(":"))?t[n[1]]=n[2].slice(1,n[2].length-1):t["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(r+1)]=n[2].slice(1,n[2].length-1);return t}function Eh(e,t,n,r){var o=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":o=_r(r);break;case"i2":case"int":o=parseInt(r,10);break;case"r4":case"float":o=parseFloat(r);break;case"date":case"dateTime.tz":o=Ln(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[lr(t)]=o}function Mh(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||Wa[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=Ht(e.v):e.w=Vt(e.v):e.w=(r=t||"General",o=e.v,"General"===(c=bh[r]||lr(r))?Vt(o):cn(c,o))}catch(e){if(n.WTF)throw e}var r,o,c;try{var l=bh[t]||t||"General";if(n.cellNF&&(e.z=l),n.cellDates&&"n"==e.t&&rn(l)){var h=Nt(e.v);h&&(e.t="d",e.v=new Date(h.y,h.m-1,h.d,h.H,h.M,h.S,h.u))}}catch(e){if(n.WTF)throw e}}}function Ah(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Sc[r.Pattern]||r.Pattern)}e[t.ID]=t}function Ch(e,t,data,n,base,r,o,c,l,h){var f="General",d=n.StyleID,m={};h=h||{};var v=[],i=0;for(void 0===d&&c&&(d=c.StyleID),void 0===d&&o&&(d=o.StyleID);void 0!==r[d]&&(r[d].nf&&(f=r[d].nf),r[d].Interior&&v.push(r[d].Interior),r[d].Parent);)d=r[d].Parent;switch(data.Type){case"Boolean":n.t="b",n.v=_r(e);break;case"String":n.t="s",n.r=vr(lr(e)),n.v=e.indexOf("<")>-1?lr(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),n.v=(Ln(e)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=lr(e):n.v<60&&(n.v=n.v-1),f&&"General"!=f||(f="yyyy-mm-dd");case"Number":void 0===n.v&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=Ga[e],!1!==h.cellText&&(n.w=e);break;default:""==e&&""==t?n.t="z":(n.t="s",n.v=vr(t||e))}if(Mh(n,f,h),!1!==h.cellFormula)if(n.Formula){var _=lr(n.Formula);61==_.charCodeAt(0)&&(_=_.slice(1)),n.f=hl(_,base),delete n.Formula,"RC"==n.ArrayRange?n.F=hl("RC:RC",base):n.ArrayRange&&(n.F=hl(n.ArrayRange,base),l.push([ra(n.F),n.F]))}else for(i=0;i<l.length;++i)base.r>=l[i][0].s.r&&base.r<=l[i][0].e.r&&base.c>
vendor: 13,821 bytes, line 2
2=l[i][0].s.c&&base.c<=l[i][0].e.c&&(n.F=l[i][1]);h.cellStyles&&(v.forEach((function(e){!m.patternType&&e.patternType&&(m.patternType=e.patternType)})),n.s=m),void 0!==n.StyleID&&(n.ixfe=n.StyleID)}function Rh(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function kh(e,t){var n=t||{};hn();var r=it(Ur(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r=void 0!==nt?nt.utils.decode(65001,et(r)):Tr(r));var o,c=r.slice(0,1024).toLowerCase(),l=!1;if((1023&(c=c.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&c.indexOf(","),1023&c.indexOf(";"))){var h=Nn(n);return h.type="string",Uo.to_workbook(r,h)}if(-1==c.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){c.indexOf("<"+e)>=0&&(l=!0)})),l)return function(e,t){var n=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find <table>");if(1==n.length)return sa(cf(n[0],t),t);var r={SheetNames:[],Sheets:{}};return n.forEach((function(s,e){Ed(r,cf(s,t),"Sheet"+(e+1))})),r}(r,n);bh={"General Number":"General","General Date":Ot[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ot[15],"Short Date":Ot[14],"Long Time":Ot[19],"Medium Time":Ot[18],"Short Time":Ot[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ot[2],Standard:Ot[4],Percent:Ot[10],Scientific:Ot[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var f,d=[];var m,v={},_=[],y=n.dense?[]:{},w="",x={},S={},T=Sh('<Data ss:Type="String">'),E=0,M=0,A=0,C={s:{r:2e6,c:2e6},e:{r:0,c:0}},R={},k={},O="",P=0,L=[],I={},N={},D=0,U=[],F=[],B={},z=[],H=!1,V=[],j=[],W={},G=0,$=0,X={Sheets:[],WBProps:{date1904:!1}},Y={};Fr.lastIndex=0,r=r.replace(/<!--([\s\S]*?)-->/gm,"");for(var Z="";o=Fr.exec(r);)switch(o[3]=(Z=o[3]).toLowerCase()){case"data":if("data"==Z){if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&d.push([o[3],!0]);break}if(d[d.length-1][1])break;"/"===o[1]?Ch(r.slice(E,o.index),O,T,"comment"==d[d.length-1][0]?B:x,{c:M,r:A},R,z[M],S,V,n):(O="",T=Sh(o[0]),E=o.index+o[0].length);break;case"cell":if("/"===o[1])if(F.length>0&&(x.c=F),(!n.sheetRows||n.sheetRows>A)&&void 0!==x.v&&(n.dense?(y[A]||(y[A]=[]),y[A][M]=x):y[Ji(M)+Zi(A)]=x),x.HRef&&(x.l={Target:lr(x.HRef)},x.HRefScreenTip&&(x.l.Tooltip=x.HRefScreenTip),delete x.HRef,delete x.HRefScreenTip),(x.MergeAcross||x.MergeDown)&&(G=M+(0|parseInt(x.MergeAcross,10)),$=A+(0|parseInt(x.MergeDown,10)),L.push({s:{c:M,r:A},e:{c:G,r:$}})),n.sheetStubs)if(x.MergeAcross||x.MergeDown){for(var K=M;K<=G;++K)for(var J=A;J<=$;++J)(K>M||J>A)&&(n.dense?(y[J]||(y[J]=[]),y[J][K]={t:"z"}):y[Ji(K)+Zi(J)]={t:"z"});M=G+1}else++M;else x.MergeAcross?M=G+1:++M;else(x=Th(o[0])).Index&&(M=+x.Index-1),M<C.s.c&&(C.s.c=M),M>C.e.c&&(C.e.c=M),"/>"===o[0].slice(-2)&&++M,F=[];break;case"row":"/"===o[1]||"/>"===o[0].slice(-2)?(A<C.s.r&&(C.s.r=A),A>C.e.r&&(C.e.r=A),"/>"===o[0].slice(-2)&&(S=Sh(o[0])).Index&&(A=+S.Index-1),M=0,++A):((S=Sh(o[0])).Index&&(A=+S.Index-1),W={},("0"==S.AutoFitHeight||S.Height)&&(W.hpx=parseInt(S.Height,10),W.hpt=wc(W.hpx),j[A]=W),"1"==S.Hidden&&(W.hidden=!0,j[A]=W));break;case"worksheet":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"));_.push(w),C.s.r<=C.e.r&&C.s.c<=C.e.c&&(y["!ref"]=na(C),n.sheetRows&&n.sheetRows<=C.e.r&&(y["!fullref"]=y["!ref"],C.e.r=n.sheetRows-1,y["!ref"]=na(C))),L.length&&(y["!merges"]=L),z.length>0&&(y["!cols"]=z),j.length>0&&(y["!rows"]=j),v[w]=y}else C={s:{r:2e6,c:2e6},e:{r:0,c:0}},A=M=0,d.push([o[3],!1]),f=Sh(o[0]),w=lr(f.Name),y=n.dense?[]:{},L=[],V=[],j=[],Y={name:w,Hidden:0},X.Sheets.push(Y);break;case"table":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else{if("/>"==o[0].slice(-2))break;d.push([o[3],!1]),z=[],H=!1}break;case"style":"/"===o[1]?Ah(R,k,n):k=Sh(o[0]);break;case"numberformat":k.nf=lr(Sh(o[0]).Format||"General"),bh[k.nf]&&(k.nf=bh[k.nf]);for(var Q=0;392!=Q&&Ot[Q]!=k.nf;++Q);if(392==Q)for(Q=57;392!=Q;++Q)if(null==Ot[Q]){ln(k.nf,Q);break}break;case"column":if("table"!==d[d.length-1][0])break;if((m=Sh(o[0])).Hidden&&(m.hidden=!0,delete m.Hidden),m.Width&&(m.wpx=parseInt(m.Width,10)),!H&&m.wpx>10){H=!0,pc=6;for(var ee=0;ee<z.length;++ee)z[ee]&&bc(z[ee])}H&&bc(m),z[m.Index-1||z.length]=m;for(var i=0;i<+m.Span;++i)z[z.length]=Nn(m);break;case"namedrange":if("/"===o[1])break;X.Names||(X.Names=[]);var te=ar(o[0]),ne={Name:te.Name,Ref:hl(te.RefersTo.slice(1),{r:0,c:0})};X.Sheets.length>0&&(ne.Sheet=X.Sheets.length-1),X.Names.push(ne);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":break;case"font":if("/>"===o[0].slice(-2))break;"/"===o[1]?O+=r.slice(P,o.index):P=o.index+o[0].length;break;case"interior":if(!n.cellStyles)break;k.Interior=Sh(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===o[0].slice(-2))break;"/"===o[1]?ms(I,Z,r.slice(D,o.index)):D=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else d.push([o[3],!1]);break;case"comment":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"));Rh(B),F.push(B)}else d.push([o[3],!1]),B={a:(f=Sh(o[0])).Author};break;case"autofilter":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else if("/"!==o[0].charAt(o[0].length-2)){var re=Sh(o[0]);y["!autofilter"]={ref:hl(re.Range).replace(/\$/g,"")},d.push([o[3],!0])}break;case"name":break;case"datavalidation":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&d.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===o[1]){if((f=d.pop())[0]!==o[3])throw new Error("Bad state: "+f.join("|"))}else"/"!==o[0].charAt(o[0].length-2)&&d.push([o[3],!0]);break;case"null":break;default:if(0==d.length&&"document"==o[3])return yf(r,n);if(0==d.length&&"uof"==o[3])return yf(r,n);var ie=!0;switch(d[d.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:ie=!1}break;case"componentoptions":switch(o[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:ie=!1}break;case"excelworkbook":switch(o[3]){case"date1904":X.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:ie=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":case"height":case"width":break;default:ie=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if("/>"===o[0].slice(-2));else if("/"===o[1])switch(r.slice(D,o.index)){case"SheetHidden":Y.Hidden=1;break;case"SheetVeryHidden":Y.Hidden=2}else D=o.index+o[0].length;break;case"header":y["!margins"]||lu(y["!margins"]={},"xlml"),isNaN(+ar(o[0]).Margin)||(y["!margins"].header=+ar(o[0]).Margin);break;case"footer":y["!margins"]||lu(y["!margins"]={},"xlml"),isNaN(+ar(o[0]).Margin)||(y["!margins"].footer=+ar(o[0]).Margin);break;case"pagemargins":var ae=ar(o[0]);y["!margins"]||lu(y["!margins"]={},"xlml"),isNaN(+ae.Top)||(y["!margins"].top=+ae.Top),isNaN(+ae.Left)||(y["!margins"].left=+ae.Left),isNaN(+ae.Right)||(y["!margins"].right=+ae.Right),isNaN(+ae.Bottom)||(y["!margins"].bottom=+ae.Bottom);break;case"displayrighttoleft":X.Views||(X.Views=[]),X.Views[0]||(X.Views[0]={}),X.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":break;case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":break;case"nosummaryrowsbelowdetail":y["!outline"]||(y["!outline"]={}),y["!outline"].above=!0;break;case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":y["!outline"]||(y["!outline"]={}),y["!outline"].left=!0;break;case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;default:ie=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:ie=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:ie=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:ie=!1}break;case"querytable":switch(o[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:ie=!1}break;case"datavalidation":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:ie=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:ie=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:ie=!1}break;case"smarttags":break;default:ie=!1}if(ie)break;if(o[3].match(/!\[CDATA/))break;if(!d[d.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+d.join("|");
2if("customdocumentproperties"===d[d.length-1][0]){if("/>"===o[0].slice(-2))break;"/"===o[1]?Eh(N,Z,U,r.slice(D,o.index)):(U=o,D=o.index+o[0].length);break}if(n.WTF)throw"Unrecognized tag: "+o[3]+"|"+d.join("|")}var se={};return n.bookSheets||n.bookProps||(se.Sheets=v),se.SheetNames=_,se.Workbook=X,se.SSF=Nn(Ot),se.Props=I,se.Custprops=N,se}function Oh(data,e){switch(Kf(e=e||{}),e.type||"base64"){case"base64":return kh(lt(data),e);case"binary":case"buffer":case"file":return kh(data,e);case"array":return kh(vt(data),e)}}function Ph(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return yn(ps).map((function(e){for(var i=0;i<ns.length;++i)if(ns[i][1]==e)return ns[i];for(i=0;i<os.length;++i)if(os[i][1]==e)return os[i];throw e})).forEach((function(p){if(null!=e[p[1]]){var r=t&&t.Props&&null!=t.Props[p[1]]?t.Props[p[1]]:e[p[1]];switch(p[2]){case"date":r=new Date(r).toISOString().replace(/\.\d*Z/,"Z")}"number"==typeof r?r=String(r):!0===r||!1===r?r=r?"1":"0":r instanceof Date&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"")),n.push(Lr(ps[p[1]]||p[1],r))}})),Nr("DocumentProperties",n.join(""),{xmlns:Qr})}(e.Props,t)),e.Custprops&&n.push(function(e,t){var n=["Worksheets","SheetNames"],r="CustomDocumentProperties",o=[];return e&&yn(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var i=0;i<ns.length;++i)if(t==ns[i][1])return;for(i=0;i<os.length;++i)if(t==os[i][1])return;for(i=0;i<n.length;++i)if(t==n[i])return;var r=e[t],c="string";"number"==typeof r?(c="float",r=String(r)):!0===r||!1===r?(c="boolean",r=r?"1":"0"):r=String(r),o.push(Nr(pr(t),r,{"dt:dt":c}))}})),t&&yn(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)&&(!e||!Object.prototype.hasOwnProperty.call(e,n))){var r=t[n],c="string";"number"==typeof r?(c="float",r=String(r)):!0===r||!1===r?(c="boolean",r=r?"1":"0"):r instanceof Date?(c="dateTime.tz",r=r.toISOString()):r=String(r),o.push(Nr(pr(n),r,{"dt:dt":c}))}})),"<"+r+' xmlns="'+Qr+'">'+o.join("")+"</"+r+">"}(e.Props,e.Custprops)),n.join("")}function Lh(e){return Nr("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+pl(e.Ref,{r:0,c:0})})}function Ih(e,t,n,r,o,c,l){if(!e||null==e.v&&null==e.f)return"";var h={};if(e.f&&(h["ss:Formula"]="="+dr(pl(e.f,l))),e.F&&e.F.slice(0,t.length)==t){var f=Qi(e.F.slice(t.length+1));h["ss:ArrayRange"]="RC:R"+(f.r==l.r?"":"["+(f.r-l.r)+"]")+"C"+(f.c==l.c?"":"["+(f.c-l.c)+"]")}if(e.l&&e.l.Target&&(h["ss:HRef"]=dr(e.l.Target),e.l.Tooltip&&(h["x:HRefScreenTip"]=dr(e.l.Tooltip))),n["!merges"])for(var d=n["!merges"],m=0;m!=d.length;++m)d[m].s.c==l.c&&d[m].s.r==l.r&&(d[m].e.c>d[m].s.c&&(h["ss:MergeAcross"]=d[m].e.c-d[m].s.c),d[m].e.r>d[m].s.r&&(h["ss:MergeDown"]=d[m].e.r-d[m].s.r));var v="",p="";switch(e.t){case"z":if(!r.sheetStubs)return"";break;case"n":v="Number",p=String(e.v);break;case"b":v="Boolean",p=e.v?"1":"0";break;case"e":v="Error",p=Wa[e.v];break;case"d":v="DateTime",p=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||Ot[14]);break;case"s":v="String",p=((e.v||"")+"").replace(ur,(function(e){return cr[e]})).replace(mr,(function(s){return"&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"}))}var _=uu(r.cellXfs,e,r);h["ss:StyleID"]="s"+(21+_),h["ss:Index"]=l.c+1;var y=null!=e.v?p:"",w="z"==e.t?"":'<Data ss:Type="'+v+'">'+y+"</Data>";return(e.c||[]).length>0&&(w+=e.c.map((function(e){var t=Nr("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return Nr("Comment",t,{"ss:Author":e.a})})).join("")),Nr("Cell",w,h)}function Nh(e,t){var n='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=xc(t.hpt)),t.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Dh(e,t,n){var r=[],s=n.SheetNames[e],o=n.Sheets[s],c=o?function(e,t,n,r){if(!e)return"";if(!((r||{}).Workbook||{}).Names)return"";for(var o=r.Workbook.Names,c=[],i=0;i<o.length;++i){var l=o[i];l.Sheet==n&&(l.Name.match(/^_xlfn\./)||c.push(Lh(l)))}return c.join("")}(o,0,e,n):"";return c.length>0&&r.push("<Names>"+c+"</Names>"),(c=o?function(e,t,n,r){if(!e["!ref"])return"";var o=ra(e["!ref"]),c=e["!merges"]||[],l=0,h=[];e["!cols"]&&e["!cols"].forEach((function(e,i){bc(e);var t=!!e.width,p=cu(i,e),n={"ss:Index":i+1};
2t&&(n["ss:Width"]=mc(p.width)),e.hidden&&(n["ss:Hidden"]="1"),h.push(Nr("Column",null,n))}));for(var f=Array.isArray(e),d=o.s.r;d<=o.e.r;++d){for(var m=[Nh(d,(e["!rows"]||[])[d])],v=o.s.c;v<=o.e.c;++v){var _=!1;for(l=0;l!=c.length;++l)if(!(c[l].s.c>v||c[l].s.r>d||c[l].e.c<v||c[l].e.r<d)){c[l].s.c==v&&c[l].s.r==d||(_=!0);break}if(!_){var y={r:d,c:v},w=ea(y),x=f?(e[d]||[])[v]:e[w];m.push(Ih(x,w,e,t,0,0,y))}}m.push("</Row>"),m.length>2&&h.push(m.join(""))}return h.join("")}(o,t):"").length>0&&r.push("<Table>"+c+"</Table>"),r.push(function(e,t,n,r){if(!e)return"";var o=[];if(e["!margins"]&&(o.push("<PageSetup>"),e["!margins"].header&&o.push(Nr("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&o.push(Nr("Footer",null,{"x:Margin":e["!margins"].footer})),o.push(Nr("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),o.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[n])if(r.Workbook.Sheets[n].Hidden)o.push(Nr("Visible",1==r.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!r.Workbook.Sheets[i]||r.Workbook.Sheets[i].Hidden);++i);i==n&&o.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),e["!protect"]&&(o.push(Lr("ProtectContents","True")),e["!protect"].objects&&o.push(Lr("ProtectObjects","True")),e["!protect"].scenarios&&o.push(Lr("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||o.push(Lr("EnableSelection","UnlockedCells")):o.push(Lr("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&o.push("<"+t[1]+"/>")}))),0==o.length?"":Nr("WorksheetOptions",o.join(""),{xmlns:ei})}(o,0,e,n)),r.join("")}function Uh(e,t){t||(t={}),e.SSF||(e.SSF=Nn(Ot)),e.SSF&&(hn(),un(e.SSF),t.revssf=xn(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],uu(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(Ph(e,t)),n.push(""),n.push(""),n.push("");for(var i=0;i<e.SheetNames.length;++i)n.push(Nr("Worksheet",Dh(i,t,e),{"ss:Name":dr(e.SheetNames[i])}));return n[2]=function(e,t){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var r=[];r.push(Nr("NumberFormat",null,{"ss:Format":dr(Ot[e.numFmtId])}));var o={"ss:ID":"s"+(21+t)};n.push(Nr("Style",r.join(""),o))})),Nr("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],i=0;i<t.length;++i){var r=t[i];null==r.Sheet&&(r.Name.match(/^_xlfn\./)||n.push(Lh(r)))}return Nr("Names",n.join(""))}(e),Jn+Nr("Workbook",n.join(""),{xmlns:ti,"xmlns:o":Qr,"xmlns:x":ei,"xmlns:ss":ti,"xmlns:dt":ni,"xmlns:html":ai})}function Fh(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Da(e,1)}(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4||1907505652!==(r=n.read_shift(4))?t:(t.UnicodeClipboardFormat=function(e){return Da(e,2)}(n),0==(r=n.read_shift(4))||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr")))))}var Bh=[60,1084,2066,2165,2175];function zh(e,t,n,r,o){var c=r,l=[],h=n.slice(n.l,n.l+c);if(o&&o.enc&&o.enc.insitu&&h.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:o.enc.insitu(h)}l.push(h),n.l+=c;for(var f=ki(n,n.l),d=Zh[f],m=0;null!=d&&Bh.indexOf(f)>-1;)c=ki(n,n.l+2),m=n.l+4,2066==f?m+=4:2165!=f&&2175!=f||(m+=12),h=n.slice(m,n.l+4+c),l.push(h),n.l+=4+c,d=Zh[f=ki(n,n.l)];var b=yt(l);Bi(b,0);var v=0;b.lens=[];for(var _=0;_<l.length;++_)b.lens.push(v),v+=l[_].length;if(b.length<r)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+b.length+" < "+r;return t.f(b,b.length,o)}function Hh(p,e,t){if("z"!==p.t&&p.XF){var n=0;try{n=p.z||p.XF.numFmtId||0,e.cellNF&&(p.z=Ot[n])}catch(t){if(e.WTF)throw t}if(!e||!1!==e.cellText)try{"e"===p.t?p.w=p.w||Wa[p.v]:0===n||"General"==n?"n"===p.t?(0|p.v)===p.v?p.w=p.v.toString(10):p.w=Ht(p.v):p.w=Vt(p.v):p.w=cn(n,p.v,{date1904:!!t,dateNF:e&&e.dateNF})}catch(t){if(e.WTF)throw t}if(e.cellDates&&n&&"n"==p.t&&rn(Ot[n]||String(n))){var r=Nt(p.v);r&&(p.t="d",p.v=new Date(r.y,r.m-1,r.d,r.H,r.M,r.S,r.u))}}}
2function Vh(e,t,n){return{v:e,ixfe:t,t:n}}function jh(e,t){var n={opts:{}},r={};var o,c,l,h,f,d,m,v,_=t.dense?[]:{},y={},w={},x=null,S=[],T="",E={},M="",A={},C=[],R=[],k=[],O={Sheets:[],WBProps:{date1904:!1},Views:[{}]},P={},L=function(e){return e<8?ja[e]:e<64&&k[e-8]||ja[e]},I=function(e,line,t){if(!(W>1||t.sheetRows&&e.r>=t.sheetRows)){if(t.cellStyles&&line.XF&&line.XF.data&&function(e,line,t){var n,r=line.XF.data;r&&r.patternType&&t&&t.cellStyles&&(line.s={},line.s.patternType=r.patternType,(n=fc(L(r.icvFore)))&&(line.s.fgColor={rgb:n}),(n=fc(L(r.icvBack)))&&(line.s.bgColor={rgb:n}))}(0,line,t),delete line.ixfe,delete line.XF,o=e,M=ea(e),w&&w.s&&w.e||(w={s:{r:0,c:0},e:{r:0,c:0}}),e.r<w.s.r&&(w.s.r=e.r),e.c<w.s.c&&(w.s.c=e.c),e.r+1>w.e.r&&(w.e.r=e.r+1),e.c+1>w.e.c&&(w.e.c=e.c+1),t.cellFormula&&line.f)for(var n=0;n<C.length;++n)if(!(C[n][0].s.c>e.c||C[n][0].s.r>e.r||C[n][0].e.c<e.c||C[n][0].e.r<e.r)){line.F=na(C[n][0]),C[n][0].s.c==e.c&&C[n][0].s.r==e.r||delete line.f,line.f&&(line.f=""+jl(C[n][1],0,e,H,N));break}t.dense?(_[e.r]||(_[e.r]=[]),_[e.r][e.c]=line):_[M]=line}},N={enc:!1,sbcch:0,snames:[],sharedf:A,arrayf:C,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(N.password=t.password);var D=[],U=[],F=[],B=[],z=!1,H=[];H.SheetNames=N.snames,H.sharedf=N.sharedf,H.arrayf=N.arrayf,H.names=[],H.XTI=[];var V,j=0,W=0,G=0,$=[],X=[];N.codepage=1200,Je(1200);for(var Y=!1;e.l<e.length-1;){var s=e.l,Z=e.read_shift(2);if(0===Z&&10===j)break;var K=e.l===e.length?0:e.read_shift(2),J=Zh[Z];if(J&&J.f){if(t.bookSheets&&133===j&&133!==Z)break;if(j=Z,2===J.r||12==J.r){var rt=e.read_shift(2);if(K-=2,!N.enc&&rt!==Z&&((255&rt)<<8|rt>>8)!==Z)throw new Error("rt mismatch: "+rt+"!="+Z);12==J.r&&(e.l+=10,K-=10)}var Q={};if(Q=10===Z?J.f(e,K,N):zh(Z,J,e,K,N),0==W&&-1===[9,521,1033,2057].indexOf(j))continue;switch(Z){case 34:n.opts.Date1904=O.WBProps.date1904=Q;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(N.enc||(e.l=0),N.enc=Q,!t.password)throw new Error("File is password-protected");if(null==Q.valid)throw new Error("Encryption scheme unsupported");if(!Q.valid)throw new Error("Password is incorrect");break;case 92:N.lastuser=Q;break;case 66:var ee=Number(Q);switch(ee){case 21010:ee=1200;break;case 32768:ee=1e4;break;case 32769:ee=1252}Je(N.codepage=ee),Y=!0;break;case 317:N.rrtabid=Q;break;case 25:N.winlocked=Q;break;case 439:n.opts.RefreshAll=Q;break;case 12:n.opts.CalcCount=Q;break;case 16:n.opts.CalcDelta=Q;break;case 17:n.opts.CalcIter=Q;break;case 13:n.opts.CalcMode=Q;break;case 14:n.opts.CalcPrecision=Q;break;case 95:n.opts.CalcSaveRecalc=Q;break;case 15:N.CalcRefMode=Q;break;case 2211:n.opts.FullCalc=Q;break;case 129:Q.fDialog&&(_["!type"]="dialog"),Q.fBelow||((_["!outline"]||(_["!outline"]={})).above=!0),Q.fRight||((_["!outline"]||(_["!outline"]={})).left=!0);break;case 224:R.push(Q);break;case 430:H.push([Q]),H[H.length-1].XTI=[];break;case 35:case 547:H[H.length-1].push(Q);break;case 24:case 536:V={Name:Q.Name,Ref:jl(Q.rgce,0,null,H,N)},Q.itab>0&&(V.Sheet=Q.itab-1),H.names.push(V),H[0]||(H[0]=[],H[0].XTI=[]),H[H.length-1].push(Q),"_xlnm._FilterDatabase"==Q.Name&&Q.itab>0&&Q.rgce&&Q.rgce[0]&&Q.rgce[0][0]&&"PtgArea3d"==Q.rgce[0][0][0]&&(X[Q.itab-1]={ref:na(Q.rgce[0][0][1][2])});break;case 22:N.ExternCount=Q;break;case 23:0==H.length&&(H[0]=[],H[0].XTI=[]),H[H.length-1].XTI=H[H.length-1].XTI.concat(Q),H.XTI=H.XTI.concat(Q);break;case 2196:if(N.biff<8)break;null!=V&&(V.Comment=Q[1]);break;case 18:_["!protect"]=Q;break;case 19:0!==Q&&N.WTF;break;case 133:y[Q.pos]=Q,N.snames.push(Q.name);break;case 10:if(--W)break;if(w.e){if(w.e.r>0&&w.e.c>0){if(w.e.r--,w.e.c--,_["!ref"]=na(w),t.sheetRows&&t.sheetRows<=w.e.r){var te=w.e.r;w.e.r=t.sheetRows-1,_["!fullref"]=_["!ref"],_["!ref"]=na(w),w.e.r=te}w.e.r++,w.e.c++}D.length>0&&(_["!merges"]=D),U.length>0&&(_["!objects"]=U),F.length>0&&(_["!cols"]=F),B.length>0&&(_["!rows"]=B),O.Sheets.push(P)}""===T?E=_:r[T]=_,_=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===N.biff&&(N.biff={9:2,521:3,1033:4}[Z]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Q.BIFFVer]||8),N.biffguess=0==Q.BIFFVer,0==Q.BIFFVer&&4096==Q.dt&&(N.biff=5,Y=!0,Je(N.codepage=28591)),8==N.biff&&0==Q.BIFFVer&&16==Q.dt&&(N.biff=2),W++)break;if(_=t.dense?[]:{},N.biff<8&&!Y&&(Y=!0,Je(N.codepage=t.codepage||1252)),N.biff<5||0==Q.BIFFVer&&4096==Q.dt){""===T&&(T="Sheet1"),w={s:{r:0,c:0},e:{r:0,c:0}};var ne={pos:e.l-K,name:T};y[ne.pos]=ne,N.snames.push(T)}else T=(y[s]||{name:""}).name;32==Q.dt&&(_["!type"]="chart"),64==Q.dt&&(_["!type"]="macro"),D=[],U=[],N.arrayf=C=[],F=[],B=[],z=!1,P={Hidden:(y[s]||{hs:0}).hs,name:T};break;case 515:case 3:case 2:"chart"==_["!type"]&&(t.dense?(_[Q.r]||[])[Q.c]:_[ea({c:Q.c,r
2:Q.r})])&&++Q.c,d={ixfe:Q.ixfe,XF:R[Q.ixfe]||{},v:Q.val,t:"n"},G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:Q.c,r:Q.r},d,t);break;case 5:case 517:d={ixfe:Q.ixfe,XF:R[Q.ixfe],v:Q.val,t:Q.t},G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:Q.c,r:Q.r},d,t);break;case 638:d={ixfe:Q.ixfe,XF:R[Q.ixfe],v:Q.rknum,t:"n"},G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:Q.c,r:Q.r},d,t);break;case 189:for(var re=Q.c;re<=Q.C;++re){var ie=Q.rkrec[re-Q.c][0];d={ixfe:ie,XF:R[ie],v:Q.rkrec[re-Q.c][1],t:"n"},G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:re,r:Q.r},d,t)}break;case 6:case 518:case 1030:if("String"==Q.val){x=Q;break}if((d=Vh(Q.val,Q.cell.ixfe,Q.tt)).XF=R[d.ixfe],t.cellFormula){var ae=Q.formula;if(ae&&ae[0]&&ae[0][0]&&"PtgExp"==ae[0][0][0]){var se=ae[0][0][1][0],oe=ae[0][0][1][1],ce=ea({r:se,c:oe});A[ce]?d.f=""+jl(Q.formula,0,Q.cell,H,N):d.F=((t.dense?(_[se]||[])[oe]:_[ce])||{}).F}else d.f=""+jl(Q.formula,0,Q.cell,H,N)}G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I(Q.cell,d,t),x=Q;break;case 7:case 519:if(!x)throw new Error("String record expects Formula");x.val=Q,(d=Vh(Q,x.cell.ixfe,"s")).XF=R[d.ixfe],t.cellFormula&&(d.f=""+jl(x.formula,0,x.cell,H,N)),G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I(x.cell,d,t),x=null;break;case 33:case 545:C.push(Q);var le=ea(Q[0].s);if(c=t.dense?(_[Q[0].s.r]||[])[Q[0].s.c]:_[le],t.cellFormula&&c){if(!x)break;if(!le||!c)break;c.f=""+jl(Q[1],0,Q[0],H,N),c.F=na(Q[0])}break;case 1212:if(!t.cellFormula)break;if(M){if(!x)break;A[ea(x.cell)]=Q[0],((c=t.dense?(_[x.cell.r]||[])[x.cell.c]:_[ea(x.cell)])||{}).f=""+jl(Q[0],0,o,H,N)}break;case 253:d=Vh(S[Q.isst].t,Q.ixfe,"s"),S[Q.isst].h&&(d.h=S[Q.isst].h),d.XF=R[d.ixfe],G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:Q.c,r:Q.r},d,t);break;case 513:t.sheetStubs&&(d={ixfe:Q.ixfe,XF:R[Q.ixfe],t:"z"},G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:Q.c,r:Q.r},d,t));break;case 190:if(t.sheetStubs)for(var ue=Q.c;ue<=Q.C;++ue){var he=Q.ixfe[ue-Q.c];d={ixfe:he,XF:R[he],t:"z"},G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:ue,r:Q.r},d,t)}break;case 214:case 516:case 4:(d=Vh(Q.val,Q.ixfe,"s")).XF=R[d.ixfe],G>0&&(d.z=$[d.ixfe>>8&63]),Hh(d,t,n.opts.Date1904),I({c:Q.c,r:Q.r},d,t);break;case 0:case 512:1===W&&(w=Q);break;case 252:S=Q;break;case 1054:if(4==N.biff){$[G++]=Q[1];for(var fe=0;fe<G+163&&Ot[fe]!=Q[1];++fe);fe>=163&&ln(Q[1],G+163)}else ln(Q[1],Q[0]);break;case 30:$[G++]=Q;for(var de=0;de<G+163&&Ot[de]!=Q;++de);de>=163&&ln(Q,G+163);break;case 229:D=D.concat(Q);break;case 93:U[Q.cmo[0]]=N.lastobj=Q;break;case 438:N.lastobj.TxO=Q;break;case 127:N.lastobj.ImData=Q;break;case 440:for(f=Q[0].s.r;f<=Q[0].e.r;++f)for(h=Q[0].s.c;h<=Q[0].e.c;++h)(c=t.dense?(_[f]||[])[h]:_[ea({c:h,r:f})])&&(c.l=Q[1]);break;case 2048:for(f=Q[0].s.r;f<=Q[0].e.r;++f)for(h=Q[0].s.c;h<=Q[0].e.c;++h)(c=t.dense?(_[f]||[])[h]:_[ea({c:h,r:f})])&&c.l&&(c.l.Tooltip=Q[1]);break;case 28:if(N.biff<=5&&N.biff>=2)break;c=t.dense?(_[Q[0].r]||[])[Q[0].c]:_[ea(Q[0])];var pe=U[Q[2]];c||(t.dense?(_[Q[0].r]||(_[Q[0].r]=[]),c=_[Q[0].r][Q[0].c]={t:"z"}):c=_[ea(Q[0])]={t:"z"},w.e.r=Math.max(w.e.r,Q[0].r),w.s.r=Math.min(w.s.r,Q[0].r),w.e.c=Math.max(w.e.c,Q[0].c),w.s.c=Math.min(w.s.c,Q[0].c)),c.c||(c.c=[]),l={a:Q[1],t:pe.TxO.t},c.c.push(l);break;case 2173:R[Q.ixfe],Q.ext.forEach((function(e){e[0]}));break;case 125:if(!N.cellStyles)break;for(;Q.e>=Q.s;)F[Q.e--]={width:Q.w/256,level:Q.level||0,hidden:!!(1&Q.flags)},z||(z=!0,yc(Q.w/256)),bc(F[Q.e+1]);break;case 520:var me={};null!=Q.level&&(B[Q.r]=me,me.level=Q.level),Q.hidden&&(B[Q.r]=me,me.hidden=!0),Q.hpt&&(B[Q.r]=me,me.hpt=Q.hpt,me.hpx=xc(Q.hpt));break;case 38:case 39:case 40:case 41:_["!margins"]||lu(_["!margins"]={}),_["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Z]]=Q;break;case 161:_["!margins"]||lu(_["!margins"]={}),_["!margins"].header=Q.header,_["!margins"].footer=Q.footer;break;case 574:Q.RTL&&(O.Views[0].RTL=!0);break;case 146:k=Q;break;case 2198:v=Q;break;case 140:m=Q;break;case 442:T?P.CodeName=Q||P.name:O.WBProps.CodeName=Q||"ThisWorkbook"}}else e.l+=K}return n.SheetNames=yn(y).sort((function(a,b){return Number(a)-Number(b)}
2)).map((function(e){return y[e].name})),t.bookSheets||(n.Sheets=r),!n.SheetNames.length&&E["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets.Sheet1=E)):n.Preamble=E,n.Sheets&&X.forEach((function(e,i){n.Sheets[n.SheetNames[i]]["!autofilter"]=e})),n.Strings=S,n.SSF=Nn(Ot),N.enc&&(n.Encryption=N.enc),v&&(n.Themes=v),n.Metadata={},void 0!==m&&(n.Metadata.Country=m),H.names.length>0&&(O.Names=H.names),n.Workbook=O,n}var Wh="e0859ff2f94f6810ab9108002b27b3d9",Gh="02d5cdd59c2e1b10939708002b2cf9ae",$h="05d5cdd59c2e1b10939708002b2cf9ae";function Xh(e,t){var n,r,o,c;if(t||(t={}),Kf(t),Qe(),t.codepage&&Ke(t.codepage),e.FullPaths){if(mn.find(e,"/encryption"))throw new Error("File is password-protected");n=mn.find(e,"!CompObj"),r=mn.find(e,"/Workbook")||mn.find(e,"/Book")}else{switch(t.type){case"base64":e=mt(lt(e));break;case"binary":e=mt(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}Bi(e,0),r={content:e}}if(n&&Fh(n),t.bookProps&&!t.bookSheets)o={};else{var l=ut?"buffer":"array";if(r&&r.content)o=jh(r.content,t);else if((c=mn.find(e,"PerfectOffice_MAIN"))&&c.content)o=Fo.to_workbook(c.content,(t.type=l,t));else{if(!(c=mn.find(e,"NativeContent_MAIN"))||!c.content)throw(c=mn.find(e,"MN0"))&&c.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");o=Fo.to_workbook(c.content,(t.type=l,t))}t.bookVBA&&e.FullPaths&&mn.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(o.vbaraw=function(e){var t=mn.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(p,i){if("/"!==p.slice(-1)&&p.match(/_VBA_PROJECT_CUR/)){var n=p.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");mn.utils.cfb_add(t,n,e.FileIndex[i].content)}})),mn.write(t)}(e))}var h={};return e.FullPaths&&function(e,t,n){var r=mn.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var o=ks(r,Fa,Gh);for(var c in o)t[c]=o[c]}catch(e){if(n.WTF)throw e}var l=mn.find(e,"/!SummaryInformation");if(l&&l.size>0)try{var h=ks(l,Ba,Wh);for(var s in h)null==t[s]&&(t[s]=h[s])}catch(e){if(n.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(ls(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,h,t),o.Props=o.Custprops=h,t.bookFiles&&(o.cfb=e),o}function qh(e,t){var n=t||{},r=mn.utils.cfb_new({root:"R"}),o="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":o="/Workbook",n.biff=8;break;case"biff5":o="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return mn.utils.cfb_add(r,o,of(e,n)),8==n.biff&&(e.Props||e.Custprops)&&function(e,t){var n,r=[],o=[],c=[],i=0,l=bn(Fa,"n"),h=bn(Ba,"n");if(e.Props)for(n=yn(e.Props),i=0;i<n.length;++i)(Object.prototype.hasOwnProperty.call(l,n[i])?r:Object.prototype.hasOwnProperty.call(h,n[i])?o:c).push([n[i],e.Props[n[i]]]);if(e.Custprops)for(n=yn(e.Custprops),i=0;i<n.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},n[i])||(Object.prototype.hasOwnProperty.call(l,n[i])?r:Object.prototype.hasOwnProperty.call(h,n[i])?o:c).push([n[i],e.Custprops[n[i]]]);var f=[];for(i=0;i<c.length;++i)As.indexOf(c[i][0])>-1||cs.indexOf(c[i][0])>-1||null!=c[i][1]&&f.push(c[i]);o.length&&mn.utils.cfb_add(t,"/�SummaryInformation",Os(o,Wh,h,Ba)),(r.length||f.length)&&mn.utils.cfb_add(t,"/�DocumentSummaryInformation",Os(r,Gh,l,Fa,f.length?f:null,$h))}(e,r),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(p,i){if(0!=i){var n=p.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==n.slice(-1)&&mn.utils.cfb_add(e,n,t.FileIndex[i].content)}}))}(r,mn.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),r}var Yh={0:{f:function(data,e){var t={},n=data.l+e;t.r=data.read_shift(4),data.l+=4;var r=data.read_shift(2);data.l+=1;var o=data.read_shift(1);return data.l=n,7&o&&(t.level=7&o),16&o&&(t.hidden=!0),32&o&&(t.hpt=r/20),t}},1:{f:function(data){return[va(data)]}},2:{f:function(data){return[va(data),Ca(data),"n"]}},3:{f:function(data){return[va(data),data.read_shift(1),"e"]}},4:{f:function(data){return[va(data),data.read_shift(1),"b"]}},5:{f:function(data){return[va(data),La(data),"n"]}},6:{f:function(data){return[va(data),ua(data),"str"]}},7:{f:function(data){return[va(data),data.read_shift(4),"s"]}},8:{f:function(data,e,t){var n=data.l+e,r=va(data);r.r=t["!row"];var o=[r,ua(data),"str"];if(t.cellFormula){data.l+=2;var c=Zl(data,n-data.l,t);o[3]=jl(c,0,r,t.supbooks,t)}else data.l=n;return o}},9:{f:function(data,e,t){var n=data.l+e,r=va(data);r.r=t["!row"];var o=[r,La(data),"n"];
2if(t.cellFormula){data.l+=2;var c=Zl(data,n-data.l,t);o[3]=jl(c,0,r,t.supbooks,t)}else data.l=n;return o}},10:{f:function(data,e,t){var n=data.l+e,r=va(data);r.r=t["!row"];var o=[r,data.read_shift(1),"b"];if(t.cellFormula){data.l+=2;var c=Zl(data,n-data.l,t);o[3]=jl(c,0,r,t.supbooks,t)}else data.l=n;return o}},11:{f:function(data,e,t){var n=data.l+e,r=va(data);r.r=t["!row"];var o=[r,data.read_shift(1),"e"];if(t.cellFormula){data.l+=2;var c=Zl(data,n-data.l,t);o[3]=jl(c,0,r,t.supbooks,t)}else data.l=n;return o}},12:{f:function(data){return[ya(data)]}},13:{f:function(data){return[ya(data),Ca(data),"n"]}},14:{f:function(data){return[ya(data),data.read_shift(1),"e"]}},15:{f:function(data){return[ya(data),data.read_shift(1),"b"]}},16:{f:Iu},17:{f:function(data){return[ya(data),ua(data),"str"]}},18:{f:function(data){return[ya(data),data.read_shift(4),"s"]}},19:{f:da},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(data,e,t){var n=data.l+e;data.l+=4,data.l+=1;var r=data.read_shift(4),o=Ea(data),c=Kl(data,0,t),l=Sa(data);data.l=n;var h={Name:o,Ptg:c};return r<268435455&&(h.Sheet=r),l&&(h.Comment=l),h}},40:{},42:{},43:{f:function(data,e,t){var n={};n.sz=data.read_shift(2)/20;var r=function(data){var e=data.read_shift(1);return data.l++,{fBold:1&e,fItalic:2&e,fUnderline:4&e,fStrikeout:8&e,fOutline:16&e,fShadow:32&e,fCondense:64&e,fExtend:128&e}}(data);switch(r.fItalic&&(n.italic=1),r.fCondense&&(n.condense=1),r.fExtend&&(n.extend=1),r.fShadow&&(n.shadow=1),r.fOutline&&(n.outline=1),r.fStrikeout&&(n.strike=1),700===data.read_shift(2)&&(n.bold=1),data.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var o=data.read_shift(1);0!=o&&(n.underline=o);var c=data.read_shift(1);c>0&&(n.family=c);var l=data.read_shift(1);switch(l>0&&(n.charset=l),data.l++,n.color=function(data){var e={},t=data.read_shift(1)>>>1,n=data.read_shift(1),r=data.read_shift(2,"i"),o=data.read_shift(1),c=data.read_shift(1),l=data.read_shift(1);switch(data.l++,t){case 0:e.auto=1;break;case 1:e.index=n;var h=ja[n];h&&(e.rgb=fc(h));break;case 2:e.rgb=fc([o,c,l]);break;case 3:e.theme=n}return 0!=r&&(e.tint=r>0?r/32767:r/32768),e}(data),data.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=ua(data),n}},44:{f:function(data,e){return[data.read_shift(2),ua(data)]}},45:{f:Pc},46:{f:Dc},47:{f:function(data,e){var t=data.l+e,n=data.read_shift(2),r=data.read_shift(2);return data.l=t,{ixfe:n,numFmtId:r}}},48:{},49:{f:function(data){return data.read_shift(4,"i")}},50:{},51:{f:function(data){for(var e=[],t=data.read_shift(4);t-- >0;)e.push([data.read_shift(4),data.read_shift(4)]);return e}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Co},62:{f:function(data){return[va(data),da(data),"is"]}}
vendor: 10,074 bytes, line 2
2,63:{f:function(data){var e={};e.i=data.read_shift(4);var t={};t.r=data.read_shift(4),t.c=data.read_shift(4),e.r=ea(t);var n=data.read_shift(1);return 2&n&&(e.l="1"),8&n&&(e.a="1"),e}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:zi,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(data){var e=data.read_shift(2);return data.l+=28,{RTL:32&e}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(data,e){var t={},n=data[data.l];return++data.l,t.above=!(64&n),t.left=!(128&n),data.l+=18,t.name=wa(data,e-19),t}},148:{f:Pu,p:16},151:{f:function(){}},152:{},153:{f:function(data,e){var t={},n=data.read_shift(4);t.defaultThemeVersion=data.read_shift(4);var r=e>8?ua(data):"";return r.length>0&&(t.CodeName=r),t.autoCompressPictures=!!(65536&n),t.backupFile=!!(64&n),t.checkCompatibility=!!(4096&n),t.date1904=!!(1&n),t.filterPrivacy=!!(8&n),t.hidePivotFieldList=!!(1024&n),t.promptedSolutions=!!(16&n),t.publishItems=!!(2048&n),t.refreshAllConnections=!!(262144&n),t.saveExternalLinkValues=!!(128&n),t.showBorderUnselectedTables=!!(4&n),t.showInkAnnotation=!!(32&n),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(32768&n),t.updateLinks=["userSet","never","always"][n>>8&3],t}},154:{},155:{},156:{f:function(data,e){var t={};return t.Hidden=data.read_shift(4),t.iTabID=data.read_shift(4),t.strRelID=Ma(data,e-8),t.name=ua(data),t}},157:{},158:{},159:{T:1,f:function(data){return[data.read_shift(4),data.read_shift(4)]}},160:{T:-1},161:{T:1,f:Oa},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Nu},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(data,e){return{flags:data.read_shift(4),version:data.read_shift(4),name:ua(data)}}},336:{T:-1},337:{f:function(data){return data.l+=4,0!=data.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Ma},357:{},358:{},359:{},360:{T:1},361:{},362:{f:So},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(data,e,t){var n=data.l+e,r=ka(data),o=data.read_shift(1),c=[r];if(c[2]=o,t.cellFormula){var l=Yl(data,n-data.l,t);c[1]=l}else data.l=n;return c}},427:{f:function(data,e,t){var n=data.l+e,r=[Oa(data,16)];if(t.cellFormula){var o=Jl(data,n-data.l,t);r[1]=o,data.l=n}else data.l=n;return r}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(data){var e={};return Uu.forEach((function(t){e[t]=La(data)})),e}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(data,e){var t=data.l+e,n=Oa(data,16),r=Sa(data),o=ua(data),c=ua(data),l=ua(data);data.l=t;var h={rfx:n,relId:r,loc:o,display:l};return c&&(h.Tooltip=c),h}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Ma},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:sl},633:{T:1},634:{T:-1},635:{T:1,f:function(data){var e={};e.iauthor=data.read_shift(4);var t=Oa(data,16);return e.rfx=t.s,e.ref=ea(t.s),data.l+=16,e}},636:{T:-1},637:{f:pa},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(data,e){return data.l+=10,{name:ua(data)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Zh={6:{f:$l},10:{f:Ps},12:{f:Ns}
2,13:{f:Ns},14:{f:Ls},15:{f:Ls},16:{f:La},17:{f:Ls},18:{f:Ls},19:{f:Ns},20:{f:yo},21:{f:yo},23:{f:So},24:{f:xo},25:{f:Ls},26:{},27:{},28:{f:function(e,t,n){return function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),col=e.read_shift(2),o=e.read_shift(2),c=e.read_shift(2),l=Ws(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:col},l,c,o]}}(e,0,n)}},29:{},34:{f:Ls},35:{f:bo},38:{f:La},39:{f:La},40:{f:La},41:{f:La},42:{f:Ls},43:{f:Ls},47:{f:function(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?uc(e,t-2,r):function(e,t,n,r){var o={key:Ns(e),verificationBytes:Ns(e)};n.password&&(o.verifier=oc(n.password)),r.valid=o.verificationBytes===o.verifier,r.valid&&(r.insitu=lc(n.password))}(e,n.biff,n,r),r}},49:{f:function(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return r.name=Bs(e,0,n),r}},51:{f:Ns},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:Ls},65:{f:function(){}},66:{f:Ns},77:{},80:{},81:{},82:{},85:{f:Ns},89:{},90:{},91:{},92:{f:function(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,o=Ws(e,0,n);return e.read_shift(t+r-e.l),o}},93:{f:function(e,t,n){if(n&&n.biff<8)return function(e,t,n){e.l+=4;var r=e.read_shift(2),o=e.read_shift(2),c=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var l=[];return l.push((Eo[r]||zi)(e,t,n)),{cmo:[o,r,c],ft:l}}(e,t,n);var r=so(e);return{cmo:r,ft:function(e,t){for(var n=e.l+t,r=[];e.l<n;){var o=e.read_shift(2);e.l-=2;try{r.push(co[o](e,n-e.l))}catch(t){return e.l=n,r}}return e.l!=n&&(e.l=n),r}(e,t-22,r[1])}}},94:{},95:{f:Ls},96:{},97:{},99:{f:Ls},125:{f:Co},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}},130:{f:Ns},131:{f:Ls},132:{f:Ls},133:{f:function(e,t,n){var r=e.read_shift(4),o=3&e.read_shift(1),dt=e.read_shift(1);switch(dt){case 0:dt="Worksheet";break;case 1:dt="Macrosheet";break;case 2:dt="Chartsheet";break;case 6:dt="VBAModule"}var c=Bs(e,0,n);return 0===c.length&&(c="Sheet1"),{pos:r,hs:o,dt:dt,name:c}}},134:{},140:{f:function(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=za[t]||t,t=e.read_shift(2),n[1]=za[t]||t,n}},141:{f:Ns},144:{},146:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Ks(e));return n}},151:{},152:{},153:{},154:{},155:{},156:{f:Ns},157:{},158:{},160:{f:ko},161:{f:function(e,t){var n={};return t<32||(e.l+=16,n.header=La(e),n.footer=La(e),e.l+=2),n}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),col=e.read_shift(2),o=[];e.l<n;)o.push(to(e));if(e.l!==n)throw new Error("MulRK read error");var c=e.read_shift(2);if(o.length!=c-col+1)throw new Error("MulRK length mismatch");return{r:r,c:col,C:c,rkrec:o}}},190:{f:function(e,t){for(var n=e.l+t-2,r=e.read_shift(2),col=e.read_shift(2),o=[];e.l<n;)o.push(e.read_shift(2));if(e.l!==n)throw new Error("MulBlank read error");var c=e.read_shift(2);if(o.length!=c-col+1)throw new Error("MulBlank length mismatch");return{r:r,c:col,C:c,ixfe:o}}},193:{f:Ps},197:{},198:{},199:{},200:{},201:{},202:{f:Ls},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Ns},220:{},221:{f:Ls},222:{},224:{f:function(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,6,r.data=function(e,t,style,n){var r={},a=e.read_shift(4),b=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(2);return r.patternType=Ha[o>>26],n.cellStyles?(r.alc=7&a,r.fWrap=a>>3&1,r.alcV=a>>4&7,r.fJustLast=a>>7&1,r.trot=a>>8&255,r.cIndent=a>>16&15,r.fShrinkToFit=a>>20&1,r.iReadOrder=a>>22&2,r.fAtrNum=a>>26&1,r.fAtrFnt=a>>27&1,r.fAtrAlc=a>>28&1,r.fAtrBdr=a>>29&1,r.fAtrPat=a>>30&1,r.fAtrProt=a>>31&1,r.dgLeft=15&b,r.dgRight=b>>4&15,r.dgTop=b>>8&15,r.dgBottom=b>>12&15,r.icvLeft=b>>16&127,r.icvRight=b>>23&127,r.grbitDiag=b>>30&3,r.icvTop=127&o,r.icvBottom=o>>7&127,r.icvDiag=o>>14&127,r.dgDiag=o>>21&15,r.icvFore=127&c,r.icvBack=c>>7&127,r.fsxButton=c>>14&1,r):r}(e,0,r.fStyle,n),r}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:Ps},227:{},229:{f:function(e,t){for(var n=[],r=e.read_shift(2);r--;)n.push(no(e));return n}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var n=e.l+t,r=e.read_shift(4),o=e.read_shift(4),c=[],i=0;i!=o&&e.l<n;++i)c.push(zs(e));return c.Count=r,c.Unique=o,c}},253:{f:function(e){var t=Js(e);return t.isst=e.read_shift(4),t}},255:{f:function(e,t){var n={};return n.dsst=e.read_shift(2),e.l+=t-2,n}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Us},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Ls},353:{f:Ps},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,n){var r=e.l+t,o=e.read_shift(2),c=e.read_shift(2);
2if(n.sbcch=c,1025==c||14849==c)return[c,o];if(c<1||c>255)throw new Error("Unexpected SupBook type: "+c);for(var l=Vs(e,c),h=[];r>e.l;)h.push(js(e));return[c,o,l,h]}},431:{f:Ls},432:{},433:{},434:{},437:{},438:{f:function(e,t,n){var s=e.l,r="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}(e);var c=e.read_shift(2);e.read_shift(2),Ns(e);var l=e.read_shift(2);e.l+=l;for(var i=1;i<e.lens.length-1;++i){if(e.l-s!=e.lens[i])throw new Error("TxO: bad continue record");var h=e[e.l];if((r+=Vs(e,e.lens[i+1]-e.lens[i]-1)).length>=(h?c:2*c))break}if(r.length!==c&&r.length!==2*c)throw new Error("cchText: "+c+" != "+r.length);return e.l=s+t,{t:r}}catch(n){return e.l=s+t,{t:r}}}},439:{f:Ls},440:{f:function(e,t){var n=no(e);return e.l+=16,[n,function(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var o=e.read_shift(2);e.l+=2;var c,l,h,f,d,m,v="";16&o&&(c=Xs(e,e.l)),128&o&&(l=Xs(e,e.l)),257==(257&o)&&(h=Xs(e,e.l)),1==(257&o)&&(f=$s(e,e.l)),8&o&&(v=Xs(e,e.l)),32&o&&(d=e.read_shift(16)),64&o&&(m=gs(e)),e.l=n;var _=l||h||f||"";_&&v&&(_+="#"+v),_||(_="#"+v),2&o&&"/"==_.charAt(0)&&"/"!=_.charAt(1)&&(_="file://"+_);var y={Target:_};return d&&(y.guid=d),m&&(y.time=m),c&&(y.Tooltip=c),y}(e,t-24)]}},441:{},442:{f:js},443:{},444:{f:Ns},445:{},446:{},448:{f:Ps},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:Ps},512:{f:go},513:{f:Ro},515:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=Js(e),o=La(e);return r.val=o,r}},516:{f:function(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5),e.l;var r=Js(e);2==n.biff&&e.l++;var o=js(e,e.l,n);return r.val=o,r}},517:{f:_o},519:{f:Oo},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var n=e.read_shift(2);e.l+=4;var r=e.read_shift(1);return e.l+=3,7&r&&(t.level=7&r),32&r&&(t.hidden=!0),64&r&&(t.hpt=n/20),t}},523:{},545:{f:To},549:{f:fo},566:{},574:{f:function(e,t,n){return n&&n.biff>=2&&n.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),col=e.read_shift(2),n=to(e);return{r:t,c:col,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(e,t,n){return[e.read_shift(2),Ws(e,0,n)]}},1084:{},1212:{f:function(e,t,n){var r=io(e);e.l++;var o=e.read_shift(1);return[Gl(e,t-=8,n),o,r]}},2048:{f:function(e,t){e.read_shift(2);var n=no(e),r=e.read_shift((t-10)/2,"dbcs-cont");return[n,r=r.replace(bt,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:lo},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ps},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var n=e.read_shift(2);e.l+=2;for(var r=e.read_shift(2),o=[];r-- >0;)o.push(Jc(e,e.l));return{ixfe:n,ext:o}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Ls,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),o=e.read_shift(2);return[Vs(e,r,n),Vs(e,o,n)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,n){var r=e.l+t;if(124226!==e.read_shift(4))if(n.cellStyles){var o,data=e.slice(e.l);e.l=r;try{o=Zn(data,{type:"array"})}catch(e){return}var c=$n(o,"theme/theme/theme1.xml",!0);if(c)return Yc(c,n)}else e.l=r},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:Ps},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var header=function(e){var rt=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:rt,flags:t}}(e);if(2211!=header.type)throw new Error("Invalid Future Record "+header.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Ns},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var o=e.read_shift(1);return e.l+=3,16&o&&(r.area=!0),r}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),n=[];t-- >0;)n.push(Ks(e));return n}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{}
2,0:{f:go},1:{},2:{f:function(e){var t=Js(e);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}},3:{f:function(e){var t=Js(e);++e.l;var n=La(e);return t.t="n",t.val=n,t}},4:{f:function(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=Js(e);++e.l;var o=Ws(e,0,n);return r.t="str",r.val=o,r}},5:{f:_o},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:lo},11:{},22:{f:Ns},30:{f:mo},31:{},32:{},33:{f:To},36:{},37:{f:fo},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{},68:{f:Ns},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),o={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,o}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,n){var r=e.l+t,o=Js(e),c=e.read_shift(2),l=Vs(e,c,n);return e.l=r,o.t="str",o.val=l,o}},223:{},234:{},354:{},421:{},518:{f:$l},521:{f:lo},536:{f:xo},547:{f:bo},561:{},579:{},1030:{f:$l},1033:{f:lo},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Kh(e,t,n,r){var o=t;if(!isNaN(o)){var c=r||(n||[]).length||0,l=e.next(4);l.write_shift(2,o),l.write_shift(2,c),c>0&&Ai(n)&&e.push(n)}}function Jh(e,t,n){return e||(e=Hi(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function Qh(e,t,n,r){if(null!=t.v)switch(t.t){case"d":case"n":var o="d"==t.t?Tn(Ln(t.v)):t.v;return void(o==(0|o)&&o>=0&&o<65536?Kh(e,2,(c=n,l=r,h=o,f=Hi(9),Jh(f,c,l),f.write_shift(2,h),f)):Kh(e,3,function(e,t,n){var r=Hi(15);return Jh(r,e,t),r.write_shift(8,n,"f"),r}(n,r,o)));case"b":case"e":return void Kh(e,5,function(e,t,n,r){var o=Hi(9);return Jh(o,e,t),Fs(n,r||"b",o),o}(n,r,t.v,t.t));case"s":case"str":return void Kh(e,4,function(e,t,n){var r=Hi(8+2*n.length);return Jh(r,e,t),r.write_shift(1,n.length),r.write_shift(n.length,n,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(n,r,(t.v||"").slice(0,255)))}var c,l,h,f;Kh(e,1,Jh(null,n,r))}function ef(e,t){var n=t||{};for(var r=ji(),o=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==n.sheet&&(o=i);if(0==o&&n.sheet&&e.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return Kh(r,4==n.biff?1033:3==n.biff?521:9,uo(0,16,n)),function(e,t,n,r){var o,c=Array.isArray(t),l=ra(t["!ref"]||"A1"),h="",f=[];if(l.e.c>255||l.e.r>16383){if(r.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");l.e.c=Math.min(l.e.c,255),l.e.r=Math.min(l.e.c,16383),o=na(l)}for(var d=l.s.r;d<=l.e.r;++d){h=Zi(d);for(var m=l.s.c;m<=l.e.c;++m){d===l.s.r&&(f[m]=Ji(m)),o=f[m]+h;var v=c?(t[d]||[])[m]:t[o];v&&Qh(e,v,d,m)}}}(r,e.Sheets[e.SheetNames[o]],0,n),Kh(r,10),r.end()}function tf(e,data,t){Kh(e,49,function(data,e){var t=data.name||"Arial",n=e&&5==e.biff,r=Hi(n?15+t.length:16+2*t.length);return r.write_shift(2,20*(data.sz||12)),r.write_shift(4,0),r.write_shift(2,400),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(1,t.length),n||r.write_shift(1,1),r.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),r}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}function nf(e,t){if(t){var n=0;
2t.forEach((function(col,t){++n<=256&&col&&Kh(e,125,function(col,e){var t=Hi(12);t.write_shift(2,e),t.write_shift(2,e),t.write_shift(2,256*col.width),t.write_shift(2,0);var n=0;return col.hidden&&(n|=1),t.write_shift(1,n),n=col.level||0,t.write_shift(1,n),t.write_shift(2,0),t}(cu(t,col),t))}))}}function rf(e,t,n,r,o){var c=16+uu(o.cellXfs,t,o);if(null!=t.v||t.bf)if(t.bf)Kh(e,6,Xl(t,n,r,0,c));else switch(t.t){case"d":case"n":Kh(e,515,function(e,t,n,r){var o=Hi(14);return Qs(e,t,r,o),Ia(n,o),o}(n,r,"d"==t.t?Tn(Ln(t.v)):t.v,c));break;case"b":case"e":Kh(e,517,function(e,t,n,r,o,c){var l=Hi(8);return Qs(e,t,r,l),Fs(n,c,l),l}(n,r,t.v,c,0,t.t));break;case"s":case"str":if(o.bookSST)Kh(e,253,function(e,t,n,r){var o=Hi(10);return Qs(e,t,r,o),o.write_shift(4,n),o}(n,r,ou(o.Strings,t.v,o.revStrings),c));else Kh(e,516,function(e,t,n,r,o){var c=!o||8==o.biff,l=Hi(+c+8+(1+c)*n.length);return Qs(e,t,r,l),l.write_shift(2,n.length),c&&l.write_shift(1,1),l.write_shift((1+c)*n.length,n,c?"utf16le":"sbcs"),l}(n,r,(t.v||"").slice(0,255),c,o));break;default:Kh(e,513,Qs(n,r,c))}else Kh(e,513,Qs(n,r,c))}function af(e,t,n){var r,o,c,l=ji(),s=n.SheetNames[e],h=n.Sheets[s]||{},f=(n||{}).Workbook||{},d=(f.Sheets||[])[e]||{},m=Array.isArray(h),v=8==t.biff,_="",y=[],w=ra(h["!ref"]||"A1"),x=v?65536:16384;if(w.e.c>255||w.e.r>=x){if(t.WTF)throw new Error("Range "+(h["!ref"]||"A1")+" exceeds format limit A1:IV16384");w.e.c=Math.min(w.e.c,255),w.e.r=Math.min(w.e.c,x-1)}Kh(l,2057,uo(0,16,t)),Kh(l,13,Ds(1)),Kh(l,12,Ds(100)),Kh(l,15,Is(!0)),Kh(l,17,Is(!1)),Kh(l,16,Ia(.001)),Kh(l,95,Is(!0)),Kh(l,42,Is(!1)),Kh(l,43,Is(!1)),Kh(l,130,Ds(1)),Kh(l,128,(o=[0,0],(c=Hi(8)).write_shift(4,0),c.write_shift(2,o[0]?o[0]+1:0),c.write_shift(2,o[1]?o[1]+1:0),c)),Kh(l,131,Is(!1)),Kh(l,132,Is(!1)),v&&nf(l,h["!cols"]),Kh(l,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,r=Hi(2*n+6);return r.write_shift(n,e.s.r),r.write_shift(n,e.e.r+1),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c+1),r.write_shift(2,0),r}(w,t)),v&&(h["!links"]=[]);for(var S=w.s.r;S<=w.e.r;++S){_=Zi(S);for(var T=w.s.c;T<=w.e.c;++T){S===w.s.r&&(y[T]=Ji(T)),r=y[T]+_;var E=m?(h[S]||[])[T]:h[r];E&&(rf(l,E,S,T,t),v&&E.l&&h["!links"].push([r,E.l]))}}var M=d.CodeName||d.name||s;return v&&Kh(l,574,function(view){var e=Hi(18),t=1718;return view&&view.RTL&&(t|=64),e.write_shift(2,t),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}((f.Views||[])[0])),v&&(h["!merges"]||[]).length&&Kh(l,229,function(e){var t=Hi(2+8*e.length);t.write_shift(2,e.length);for(var i=0;i<e.length;++i)ro(e[i],t);return t}(h["!merges"])),v&&function(e,t){for(var n=0;n<t["!links"].length;++n){var r=t["!links"][n];Kh(e,440,Mo(r)),r[1].Tooltip&&Kh(e,2048,Ao(r))}delete t["!links"]}(l,h),Kh(l,442,Gs(M)),v&&function(e,t){var n=Hi(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),Kh(e,2151,n),(n=Hi(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),ro(ra(t["!ref"]||"A1"),n),n.write_shift(4,4),Kh(e,2152,n)}(l,h),Kh(l,10),l.end()}function sf(e,t,n){var r,o=ji(),c=(e||{}).Workbook||{},l=c.Sheets||[],h=c.WBProps||{},f=8==n.biff,d=5==n.biff;(Kh(o,2057,uo(0,5,n)),"xla"==n.bookType&&Kh(o,135),Kh(o,225,f?Ds(1200):null),Kh(o,193,function(e,t){t||(t=Hi(e));for(var n=0;n<e;++n)t.write_shift(1,0);return t}(2)),d&&Kh(o,191),d&&Kh(o,192),Kh(o,226),Kh(o,92,function(s,e){var t=!e||8==e.biff,n=Hi(t?112:54);for(n.write_shift(8==e.biff?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}(0,n)),Kh(o,66,Ds(f?1200:1252)),f&&Kh(o,353,Ds(0)),f&&Kh(o,448),Kh(o,317,function(e){for(var t=Hi(2*e),i=0;i<e;++i)t.write_shift(2,i+1);return t}(e.SheetNames.length)),f&&e.vbaraw&&Kh(o,211),f&&e.vbaraw)&&Kh(o,442,Gs(h.CodeName||"ThisWorkbook"));Kh(o,156,Ds(17)),Kh(o,25,Is(!1)),Kh(o,18,Is(!1)),Kh(o,19,Ds(0)),f&&Kh(o,431,Is(!1)),f&&Kh(o,444,Ds(0)),Kh(o,61,((r=Hi(18)).write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r)),Kh(o,64,Is(!1)),Kh(o,141,Ds(0)),Kh(o,34,Is("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&_r(e.Workbook.WBProps.date1904)?"true":"false"}(e))),Kh(o,14,Is(!0)),f&&Kh(o,439,Is(!1)),Kh(o,218,Ds(0)),tf(o,0,n),function(e,t,n){t&&[[5,8],[23,26],[41,44],[50,392]].forEac
2h((function(r){for(var i=r[0];i<=r[1];++i)null!=t[i]&&Kh(e,1054,po(i,t[i],n))}))}(o,e.SSF,n),function(e,t){for(var i=0;i<16;++i)Kh(e,224,vo({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(n){Kh(e,224,vo(n,0,t))}))}(o,n),f&&Kh(o,352,Is(!1));var a=o.end(),m=ji();f&&Kh(m,140,function(e){return e||(e=Hi(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),f&&n.Strings&&function(e,t,n,r){var o=r||(n||[]).length||0;if(o<=8224)return Kh(e,t,n,o);var c=t;if(!isNaN(c)){for(var l=n.parts||[],h=0,i=0,f=0;f+(l[h]||8224)<=8224;)f+=l[h]||8224,h++;var d=e.next(4);for(d.write_shift(2,c),d.write_shift(2,f),e.push(n.slice(i,i+f)),i+=f;i<o;){for((d=e.next(4)).write_shift(2,60),f=0;f+(l[h]||8224)<=8224;)f+=l[h]||8224,h++;d.write_shift(2,f),e.push(n.slice(i,i+f)),i+=f}}}(m,252,function(e,t){var header=Hi(8);header.write_shift(4,e.Count),header.write_shift(4,e.Unique);for(var n=[],r=0;r<e.length;++r)n[r]=Hs(e[r]);var o=yt([header].concat(n));return o.parts=[header.length].concat(n.map((function(e){return e.length}))),o}(n.Strings)),Kh(m,10);var v=m.end(),_=ji(),y=0,w=0;for(w=0;w<e.SheetNames.length;++w)y+=(f?12:11)+(f?2:1)*e.SheetNames[w].length;var x=a.length+y+v.length;for(w=0;w<e.SheetNames.length;++w){Kh(_,133,ho({pos:x,hs:(l[w]||{}).Hidden||0,dt:0,name:e.SheetNames[w]},n)),x+=t[w].length}var b=_.end();if(y!=b.length)throw new Error("BS8 "+y+" != "+b.length);var S=[];return a.length&&S.push(a),b.length&&S.push(b),v.length&&S.push(v),yt(S)}function of(e,t){for(var i=0;i<=e.SheetNames.length;++i){var n=e.Sheets[e.SheetNames[i]];if(n&&n["!ref"])ta(n["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error}var r=t||{};switch(r.biff||2){case 8:case 5:return function(e,t){var n=t||{},r=[];e&&!e.SSF&&(e.SSF=Nn(Ot)),e&&e.SSF&&(hn(),un(e.SSF),n.revssf=xn(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Jf(n),n.cellXfs=[],uu(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)r[r.length]=af(i,n,e);return r.unshift(sf(e,r,n)),yt(r)}(e,t);case 4:case 3:case 2:return ef(e,t)}throw new Error("invalid type "+r.bookType+" for BIFF")}function cf(e,t){var n=t||{};var r=n.dense?[]:{},o=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!o)throw new Error("Invalid HTML: could not find <table>");var c=e.match(/<\/table/i),i=o.index,l=c&&c.index||e.length,h=zn(e.slice(i,l),/(:?<tr[^>]*>)/i,"<tr>"),f=-1,d=0,m=0,v=0,_={s:{r:1e7,c:1e7},e:{r:0,c:0}},y=[];for(i=0;i<h.length;++i){var w=h[i].trim(),x=w.slice(0,3).toLowerCase();if("<tr"!=x){if("<td"==x||"<th"==x){var S=w.split(/<\/t[dh]>/i);for(l=0;l<S.length;++l){var T=S[l].trim();if(T.match(/<t[dh]/i)){for(var E=T,M=0;"<"==E.charAt(0)&&(M=E.indexOf(">"))>-1;)E=E.slice(M+1);for(var A=0;A<y.length;++A){var C=y[A];C.s.c==d&&C.s.r<f&&f<=C.e.r&&(d=C.e.c+1,A=-1)}var R=ar(T.slice(0,T.indexOf(">")));v=R.colspan?+R.colspan:1,((m=+R.rowspan)>1||v>1)&&y.push({s:{r:f,c:d},e:{r:f+(m||1)-1,c:d+v-1}});var k=R.t||R["data-t"]||"";if(E.length)if(E=Ar(E),_.s.r>f&&(_.s.r=f),_.e.r<f&&(_.e.r=f),_.s.c>d&&(_.s.c=d),_.e.c<d&&(_.e.c=d),E.length){var O={t:"s",v:E};n.raw||!E.trim().length||"s"==k||("TRUE"===E?O={t:"b",v:!0}:"FALSE"===E?O={t:"b",v:!1}:isNaN(Un(E))?isNaN(Bn(E).getDate())||(O={t:"d",v:Ln(E)},n.cellDates||(O={t:"n",v:Tn(O.v)}),O.z=n.dateNF||Ot[14]):O={t:"n",v:Un(E)}),n.dense?(r[f]||(r[f]=[]),r[f][d]=O):r[ea({r:f,c:d})]=O,d+=v}else d+=v;else d+=v}}}}else{if(++f,n.sheetRows&&n.sheetRows<=f){--f;break}d=0}}return r["!ref"]=na(_),y.length&&(r["!merges"]=y),r}function lf(e,t,n,r){for(var o=e["!merges"]||[],c=[],l=t.s.c;l<=t.e.c;++l){for(var h=0,f=0,d=0;d<o.length;++d)if(!(o[d].s.r>n||o[d].s.c>l||o[d].e.r<n||o[d].e.c<l)){if(o[d].s.r<n||o[d].s.c<l){h=-1;break}h=o[d].e.r-o[d].s.r+1,f=o[d].e.c-o[d].s.c+1;break}if(!(h<0)){var m=ea({r:n,c:l}),v=r.dense?(e[n]||[])[l]:e[m],_=v&&null!=v.v&&(v.h||gr(v.w||(aa(v),v.w)||""))||"",y={};h>1&&(y.rowspan=h),f>1&&(y.colspan=f),r.editable?_='<span contenteditable="true">'+_+"</span>":v&&(y["data-t"]=v&&v.t||"z",null!=v.v&&(y["data-v"]=v.v),null!=v.z&&(y["data-z"]=v.z),v.l&&"#"!=(v.l.Target||"#").charAt(0)&&(_='<a href="'+v.l.Target+'">'+_+"</a>")),y.id=(r.id||"sjs")+"-"+m,c.push(Nr("td",_,y))}}return"<tr>"+c.join("")+"</tr>"}var uf='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';function hf(e,t,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function ff(e,t){var n=t||{},header=null!=n.header?n.header:uf,footer=null!=n.footer?n.footer:"</body></html>",r=[header],o=ta(e["!ref"]);n.dense=Array.isArray(e),r.push(hf(0,0,n));for(var c=o.s.r;c<=o.e.r;++c)r.push(lf(e,o,c,n));return r.push("</table>"+footer),r.join("")}function df(e,table,t){var n=t||{};var r=0,o=0;if(null!=n.origin)if("number"==typeof n.origin)r=n.origin;else{var c="string"==typeof n.origin?Qi(n.origin):n.origin;r=c.r,o=c.c}var l=table.getElementsByTagName("tr"),h=Math.min(n.sheetRows||1e7,l.length),f={s:{r:0,c:0},e:{r:r,c:o}};if(e["!ref"]){var d=ta(e["!ref"]);f.s.r=Math.min(f.s.r,d.s.r),f.s.c=Math.min(f.s.c,d.s.c),f.e.r=Math.max(f.e.r,d.e.r),f.e.c=Math.max(f.e.c,d.e.c),-1==r&&(f.e.r=r=d.e.r+1)}var m=[],v=0,_=e["!rows"]||(e["!rows"]=[]),y=0,w=0,x=0,S=0,T=0,E=0;for(e["!cols"]||(e["!cols"]=[]);y<l.length&&w<h;++y){var M=l[y];if(mf(M)){if(n.display)continue;_[w]={hidden:!0}}var A=M.children;for(x=S=0;x<A.length;++x){var C=A[x];if(!n.display||!mf(C)){var R=C.hasAttribute("data-v")?C.getAttribute("data-v"):C.hasAttribute("v")?C.getAttribute("v"):Ar(C.innerHTML),k=C.getAttribute("data-z")||C.getAttribute("z");for(v=0;v<m.length;++v){var O=m[v];O.s.c==S+o&&O.s.r<w+r&&w+r<=O.e.r&&(S=O.e.c+1-o,v=-1)}E=+C.getAttribute("colspan")||1,((T=+C.getAttribute("rowspan")||1)>1||E>1)&&m.push({s:{r:w+r,c:S+o},e:{r:w+r+(T||1)-1,c:S+o+(E||1)-1}});var P={t:"s",v:R},L=C.getAttribute("data-t")||C.getAttribute("t")||"";null!=R&&(0==R.length?P.t=L||"z":n.raw||0==R.trim().length||"s"==L||("TRUE"===R?P={t:"b",v:!0}:"FALSE"===R?P={t:"b",v:!1}:isNaN(Un(R))?isNaN(Bn(R).getDate())||(P={t:"d",v:Ln(R)},n.cellDates||(P={t:"n",v:Tn(P.v)}),P.z=n.dateNF||Ot[14]):P={t:"n",v:Un(R)})),void 0===P.z&&null!=k&&(P.z=k);var I="",N=C.getElementsByTagName("A");if(N&&N.length)for(var D=0;D<N.length&&(!N[D].hasAttribute("href")||"#"==(I=N[D].getAttribute("href")).charAt(0));++D);I&&"#"!=I.charAt(0)&&(P.l={Target:I}),n.dense?(e[w+r]||(e[w+r]=[]),e[w+r][S+o]=P):e[ea({c:S+o,r:w+r})]=P,f.e.c<S+o&&(f.e.c=S+o),S+=E}}++w}return m.length&&(e["!merges"]=(e["!merges"]||[]).concat(m)),f.e.r=Math.max(f.e.r,w-1+r),e["!ref"]=na(f),w>=h&&(e["!fullref"]=na((f.e.r=l.length-y+w-1+r,f))),e}function pf(table,e){return df((e||{}).dense?[]:{},table,e)}function mf(element){var e="",t=function(element){return element.ownerDocument.defaultView&&"function"==typeof element.ownerDocument.defaultView.getComputedStyle?element.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(element);return t&&(e=t(element).getPropertyValue("display")),e||(e=element.style&&element.style.display),"none"===e}var gf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function vf(e,t){var n=t||{};var r,o,c,l,h,q,text,f,d=Ur(e),m=[],v={name:""},_="",y=0,w={},x=[],S=n.dense?[]:{},T={value:""},E="",M=0,A=[],C=-1,R=-1,k={s:{r:1e6,c:1e7},e:{r:0,c:0}},O=0,P={},L=[],I={},N=[],D=1,U=1,F=[],B={Names:[]},z={},H=["",""],V=[],j={},W="",G=0,$=!1,X=!1,i=0;for(Fr.lastIndex=0,d=d.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");h=Fr.exec(d);)switch(h[3]=h[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===h[1]?(k.e.c>=k.s.c&&k.e.r>=k.s.r?S["!ref"]=na(k):S["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=k.e.r&&(S["!fullref"]=S["!ref"],k.e.r=n.sheetRows-1,S["!ref"]=na(k)),L.length&&(S["!merges"]=L),N.length&&(S["!rows"]=N),c.name=c["名称"]||c.name,"undefined"!=typeof JSON&&JSON.stringify(c),x.push(c.name),w[c.name]=S,X=!1):"/"!==h[
vendor: 6,485 bytes, line 2
20].charAt(h[0].length-2)&&(c=ar(h[0],!1),C=R=-1,k.s.r=k.s.c=1e7,k.e.r=k.e.c=0,S=n.dense?[]:{},L=[],N=[],X=!0);break;case"table-row-group":"/"===h[1]?--O:++O;break;case"table-row":case"行":if("/"===h[1]){C+=D,D=1;break}if((l=ar(h[0],!1))["行号"]?C=l["行号"]-1:-1==C&&(C=0),(D=+l["number-rows-repeated"]||1)<10)for(i=0;i<D;++i)O>0&&(N[C+i]={level:O});R=-1;break;case"covered-table-cell":"/"!==h[1]&&++R,n.sheetStubs&&(n.dense?(S[C]||(S[C]=[]),S[C][R]={t:"z"}):S[ea({r:C,c:R})]={t:"z"}),E="",A=[];break;case"table-cell":case"数据":if("/"===h[0].charAt(h[0].length-2))++R,T=ar(h[0],!1),U=parseInt(T["number-columns-repeated"]||"1",10),q={t:"z",v:null},T.formula&&0!=n.cellFormula&&(q.f=nu(lr(T.formula))),"string"==(T["数据类型"]||T["value-type"])&&(q.t="s",q.v=lr(T["string-value"]||""),n.dense?(S[C]||(S[C]=[]),S[C][R]=q):S[ea({r:C,c:R})]=q),R+=U-1;else if("/"!==h[1]){E="",M=0,A=[],U=1;var Y=D?C+D-1:C;if(++R>k.e.c&&(k.e.c=R),R<k.s.c&&(k.s.c=R),C<k.s.r&&(k.s.r=C),Y>k.e.r&&(k.e.r=Y),V=[],j={},q={t:(T=ar(h[0],!1))["数据类型"]||T["value-type"],v:null},n.cellFormula)if(T.formula&&(T.formula=lr(T.formula)),T["number-matrix-columns-spanned"]&&T["number-matrix-rows-spanned"]&&(I={s:{r:C,c:R},e:{r:C+(parseInt(T["number-matrix-rows-spanned"],10)||0)-1,c:R+(parseInt(T["number-matrix-columns-spanned"],10)||0)-1}},q.F=na(I),F.push([I,q.F])),T.formula)q.f=nu(T.formula);else for(i=0;i<F.length;++i)C>=F[i][0].s.r&&C<=F[i][0].e.r&&R>=F[i][0].s.c&&R<=F[i][0].e.c&&(q.F=F[i][1]);switch((T["number-columns-spanned"]||T["number-rows-spanned"])&&(I={s:{r:C,c:R},e:{r:C+(parseInt(T["number-rows-spanned"],10)||0)-1,c:R+(parseInt(T["number-columns-spanned"],10)||0)-1}},L.push(I)),T["number-columns-repeated"]&&(U=parseInt(T["number-columns-repeated"],10)),q.t){case"boolean":q.t="b",q.v=_r(T["boolean-value"]);break;case"float":case"percentage":case"currency":q.t="n",q.v=parseFloat(T.value);break;case"date":q.t="d",q.v=Ln(T["date-value"]),n.cellDates||(q.t="n",q.v=Tn(q.v)),q.z="m/d/yy";break;case"time":q.t="n",q.v=Rn(T["time-value"])/86400,n.cellDates&&(q.t="d",q.v=Cn(q.v)),q.z="HH:MM:SS";break;case"number":q.t="n",q.v=parseFloat(T["数据数值"]);break;default:if("string"!==q.t&&"text"!==q.t&&q.t)throw new Error("Unsupported value type "+q.t);q.t="s",null!=T["string-value"]&&(E=lr(T["string-value"]),A=[])}}else{if($=!1,"s"===q.t&&(q.v=E||"",A.length&&(q.R=A),$=0==M),z.Target&&(q.l=z),V.length>0&&(q.c=V,V=[]),E&&!1!==n.cellText&&(q.w=E),$&&(q.t="z",delete q.v),(!$||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=C))for(var Z=0;Z<D;++Z){if(U=parseInt(T["number-columns-repeated"]||"1",10),n.dense)for(S[C+Z]||(S[C+Z]=[]),S[C+Z][R]=0==Z?q:Nn(q);--U>0;)S[C+Z][R+U]=Nn(q);else for(S[ea({r:C+Z,c:R})]=q;--U>0;)S[ea({r:C+Z,c:R+U})]=Nn(q);k.e.c<=R&&(k.e.c=R)}R+=(U=parseInt(T["number-columns-repeated"]||"1",10))-1,U=0,q={},E="",A=[]}z={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===h[1]){if((r=m.pop())[0]!==h[3])throw"Bad state: "+r}else"/"!==h[0].charAt(h[0].length-2)&&m.push([h[3],!0]);break;case"annotation":if("/"===h[1]){if((r=m.pop())[0]!==h[3])throw"Bad state: "+r;j.t=E,A.length&&(j.R=A),j.a=W,V.push(j)}else"/"!==h[0].charAt(h[0].length-2)&&m.push([h[3],!1]);W="",G=0,E="",M=0,A=[];break;case"creator":"/"===h[1]?W=d.slice(G,h.index):G=h.index+h[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===h[1]){if((r=m.pop())[0]!==h[3])throw"Bad state: "+r}else"/"!==h[0].charAt(h[0].length-2)&&m.push([h[3],!1]);E="",M=0,A=[];break;case"scientific-number":case"currency-symbol":case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===h[1]){if(P[v.name]=_,(r=m.pop())[0]!==h[3])throw"Bad state: "+r}else"/"!==h[0].charAt(h[0].length-2)&&(_="",v=ar(h[0],!1),m.push([h[3],!0]));break;case"script":case"libraries":case"automatic-styles":break;case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":break;case"number":switch(m[m.length-1][0]){case"time-style":case"date-style":o=ar(h[0],!1),_+=gf[h[3]]["long"===o.style?1:0]}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(m[m.length-1][0]){case"time-style":case"date-style":o=ar(h[0],!1),_+=gf[h[3]]["long"===o.style?1:0]}break;case"boolean-style":case"boolean":case"text-style":break;case"text":if("/>"===h[0].slice(-2))break;if("/"===h[1])switch(m[m.length-1][0]){case"number-style":case"date-style":case"time-style":_+=d.slice(y,h.index)}else y=h.index+h[0].length;break;case"named-range":H=ru((o=ar(h[0],!1))["cell-range-address"]);var K={Name:o.name,Ref:H[0]+"!"+H[1]};X&&(K.Sheet=x.length),B.Names.push(K);break;case"text-content":case"text-properties":case"embedded-text":break;case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(m[m.length-1][0])>-1)break;if("/"!==h[1]||T&&T["string-value"])ar(h[0],!1),M=h.index+h[0].length;else{var J=(text=d.slice(M,h.index),f=void 0,f=text.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),[lr(f.replace(/<[^>]*>/g,""))]);E=(E.length>0?E+"\n":"")+J[0]}break;case"s":break;case"database-range":if("/"===h[1])break;try{w[(H=ru(ar(h[0])["target-range-address"]))[0]]["!autofilter"]={ref:H[1]}}catch(e){}break;case"date":case"object":break;case"title":case"标题":case"desc":case"binary-data":case"table-source":case"sce
2nario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":break;case"a":if("/"!==h[1]){if(!(z=ar(h[0],!1)).href)break;z.Target=lr(z.href),delete z.href,"#"==z.Target.charAt(0)&&z.Target.indexOf(".")>-1?(H=ru(z.Target.slice(1)),z.Target="#"+H[0]+"!"+H[1]):z.Target.match(/^\.\.[\\\/]/)&&(z.Target=z.Target.slice(3))}break;case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;default:switch(h[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(n.WTF)throw new Error(h)}}var Q={Sheets:w,SheetNames:x,Workbook:B};return n.bookSheets&&delete Q.Sheets,Q}function _f(e,t){t=t||{},jn(e,"META-INF/manifest.xml")&&function(e,t){for(var n,r,o=Ur(e);n=Fr.exec(o);)switch(n[3]){case"manifest":break;case"file-entry":if("/"==(r=ar(n[0],!1)).path&&"application/vnd.oasis.opendocument.spreadsheet"!==r.type)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}(Gn(e,"META-INF/manifest.xml"),t);var content=$n(e,"content.xml");if(!content)throw new Error("Missing content.xml in ODS / UOF file");var n=vf(Tr(content),t);return jn(e,"meta.xml")&&(n.Props=is(Gn(e,"meta.xml"))),n}function yf(data,e){return vf(data,e)}var bf=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ir({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Jn+t}}(),wf=function(){var e="          <table:table-cell />\n",t=function(t,n,i){var r=[];r.push('      <table:table table:name="'+dr(n.SheetNames[i])+'" table:style-name="ta1">\n');var o=0,c=0,l=ta(t["!ref"]||"A1"),h=t["!merges"]||[],f=0,d=Array.isArray(t);if(t["!cols"])for(c=0;c<=l.e.c;++c)r.push("        <table:table-column"+(t["!cols"][c]?' table:style-name="co'+t["!cols"][c].ods+'"':"")+"></table:table-column>\n");var m="",v=t["!rows"]||[];for(o=0;o<l.s.r;++o)m=v[o]?' table:style-name="ro'+v[o].ods+'"':"",r.push("        <table:table-row"+m+"></table:table-row>\n");for(;o<=l.e.r;++o){for(m=v[o]?' table:style-name="ro'+v[o].ods+'"':"",r.push("        <table:table-row"+m+">\n"),c=0;c<l.s.c;++c)r.push(e);for(;c<=l.e.c;++c){var _=!1,y={},w="";for(f=0;f!=h.length;++f)if(!(h[f].s.c>c||h[f].s.r>o||h[f].e.c<c||h[f].e.r<o)){h[f].s.c==c&&h[f].s.r==o||(_=!0),y["table:number-columns-spanned"]=h[f].e.c-h[f].s.c+1,y["table:number-rows-spanned"]=h[f].e.r-h[f].s.r+1;break}if(_)r.push("          <table:covered-table-cell/>\n");
2else{var x=ea({r:o,c:c}),S=d?(t[o]||[])[c]:t[x];if(S&&S.f&&(y["table:formula"]=dr(("of:="+S.f.replace(fl,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),S.F&&S.F.slice(0,x.length)==x)){var T=ta(S.F);y["table:number-matrix-columns-spanned"]=T.e.c-T.s.c+1,y["table:number-matrix-rows-spanned"]=T.e.r-T.s.r+1}if(S){switch(S.t){case"b":w=S.v?"TRUE":"FALSE",y["office:value-type"]="boolean",y["office:boolean-value"]=S.v?"true":"false";break;case"n":w=S.w||String(S.v||0),y["office:value-type"]="float",y["office:value"]=S.v||0;break;case"s":case"str":w=null==S.v?"":S.v,y["office:value-type"]="string";break;case"d":w=S.w||Ln(S.v).toISOString(),y["office:value-type"]="date",y["office:date-value"]=Ln(S.v).toISOString(),y["table:style-name"]="ce1";break;default:r.push(e);continue}var E=dr(w).replace(/  +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(S.l&&S.l.Target){var M=S.l.Target;
2"#"==(M="#"==M.charAt(0)?"#"+M.slice(1).replace(/\./,"!"):M).charAt(0)||M.match(/^\w+:/)||(M="../"+M),E=Nr("text:a",E,{"xlink:href":M.replace(/&/g,"&amp;")})}r.push("          "+Nr("table:table-cell",Nr("text:p",E,{}),y)+"\n")}else r.push(e)}}r.push("        </table:table-row>\n")}return r.push("      </table:table>\n"),r.join("")};return function(e,n){var r=[Jn],o=Ir({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=Ir({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(r.push("<office:document"+o+c+">\n"),r.push(ts().replace(/office:document-meta/g,"office:meta"))):r.push("<office:document-content"+o+">\n"),function(e,t){e.push(" <office:automatic-styles>\n"),e.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push('   <number:month number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push('   <number:day number:style="long"/>\n'),e.push("   <number:text>/</number:text>\n"),e.push("   <number:year/>\n"),e.push("  </number:date-style>\n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var r=0;r<t["!cols"].length;++r)if(t["!cols"][r]){var o=t["!cols"][r];if(null==o.width&&null==o.wpx&&null==o.wch)continue;bc(o),o.ods=n;var c=t["!cols"][r].wpx+"px";e.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),e.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+c+'"/>\n'),e.push("  </style:style>\n"),++n}}));var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n<t["!rows"].length;++n)if(t["!rows"][n]){t["!rows"][n].ods=r;var o=t["!rows"][n].hpx+"px";e.push('  <style:style style:name="ro'+r+'" style:family="table-row">\n'),e.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+o+'"/>\n'),e.push("  </style:style>\n"),++r}})),e.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push("  </style:style>\n"),e.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),e.push(" </office:automatic-styles>\n")}(r,e),r.push("  <office:body>\n"),r.push("    <office:spreadsheet>\n");for(var i=0;i!=e.SheetNames.length;++i)r.push(t(e.Sheets[e.SheetNames[i]],e,i));return r.push("    </office:spreadsheet>\n"),r.push("  </office:body>\n"),"fods"==n.bookType?r.push("</office:document>"):r.push("</office:document-content>"),r.join("")}}();function xf(e,t){if("fods"==t.bookType)return wf(e,t);var n=Yn(),r="",o=[],c=[];return qn(n,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),qn(n,r="content.xml",wf(e,t)),o.push([r,"text/xml"]),c.push([r,"ContentFile"]),qn(n,r="styles.xml",bf(e,t)),o.push([r,"text/xml"]),c.push([r,"StylesFile"]),qn(n,r="meta.xml",Jn+ts()),o.push([r,"text/xml"]),c.push([r,"MetadataFile"]),qn(n,r="manifest.rdf",function(e){var base,t,n=[Jn];n.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var i=0;i!=e.length;
2++i)n.push(es(e[i][0],e[i][1])),n.push((base="",t=e[i][0],['  <rdf:Description rdf:about="'+base+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+'"/>\n',"  </rdf:Description>\n"].join("")));return n.push(es("","Document","pkg")),n.push("</rdf:RDF>"),n.join("")}(c)),o.push([r,"application/rdf+xml"]),qn(n,r="META-INF/manifest.xml",function(e){var t=[Jn];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var i=0;i<e.length;++i)t.push('  <manifest:file-entry manifest:full-path="'+e[i][0]+'" manifest:media-type="'+e[i][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(o)),n}function Sf(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Tf(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Tr(vt(e))}function Ef(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):mt(Er(e))}function Mf(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Af(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function Cf(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Rf(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function kf(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Of(e){for(var t=[],n=[0];n[0]<e.length;){var r,o=n[0],c=Cf(e,n),l=7&c,h=0;if(0==(c=Math.floor(c/8)))break;switch(l){case 0:for(var f=n[0];e[n[0]++]>=128;);r=e.slice(f,n[0]);break;case 5:h=4,r=e.slice(n[0],n[0]+h),n[0]+=h;break;case 1:h=8,r=e.slice(n[0],n[0]+h),n[0]+=h;break;case 2:h=Cf(e,n),r=e.slice(n[0],n[0]+h),n[0]+=h;break;case 3:case 4:default:throw new Error("PB Type ".concat(l," for Field ").concat(c," at offset ").concat(o))}var d={data:r,type:l};null==t[c]?t[c]=[d]:t[c].push(d)}return t}function Pf(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(Rf(8*n+e.type)),2==e.type&&t.push(Rf(e.data.length)),t.push(e.data))}))})),Mf(t)}function Lf(data,e){return(null==data?void 0:data.map((function(t){return e(t.data)})))||[]}function If(e){for(var t,n=[],r=[0];r[0]<e.length;){var o=Cf(e,r),c=Of(e.slice(r[0],r[0]+o));r[0]+=o;var l={id:kf(c[1][0].data),messages:[]};c[2].forEach((function(b){var t=Of(b.data),n=kf(t[3][0].data);l.messages.push({meta:t,data:e.slice(r[0],r[0]+n)}),r[0]+=n})),(null==(t=c[3])?void 0:t[0])&&(l.merge=kf(c[3][0].data)>>>0>0),n.push(l)}return n}function Nf(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:Rf(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:Rf(+!!e.merge),type:0}]);var r=[];e.messages.forEach((function(e){r.push(e.data),e.meta[3]=[{type:0,data:Rf(e.data.length)}],n[2].push({data:Pf(e.meta),type:2})}));var o=Pf(n);t.push(Rf(o.length)),t.push(o),r.forEach((function(e){return t.push(e)}))})),Mf(t)}function Df(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],r=Cf(t,n),o=[];n[0]<t.length;){var c=3&t[n[0]];if(0!=c){var l=0,h=0;if(1==c?(h=4+(t[n[0]]>>2&7),l=(224&t[n[0]++])<<3,l|=t[n[0]++]):(h=1+(t[n[0]++]>>2),2==c?(l=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(l=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),o=[Mf(o)],0==l)throw new Error("Invalid offset 0");if(l>o[0].length)throw new Error("Invalid offset beyond length");if(h>=l)for(o.push(o[0].slice(-l)),h-=l;h>=o[o.length-1].length;)o.push(o[o.length-1]),h-=o[o.length-1].length;o.push(o[0].slice(-l,-l+h))}else{var f=t[n[0]++]>>2;if(f<60)++f;else{var d=f-59;f=t[n[0]],d>1&&(f|=t[n[0]+1]<<8),d>2&&(f|=t[n[0]+2]<<16),d>3&&(f|=t[n[0]+3]<<24),f>>>=0,f++,n[0]+=d}o.push(t.slice(n[0],n[0]+f)),n[0]+=f}}var m=Mf(o);if(m.length!=r)throw new Error("Unexpected length: ".concat(m.length," != ").concat(r));return m}function Uf(e){for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n]|e[n+1]<<8|e[n+2]<<16;n+=3,t.push(Df(r,e.slice(n,n+o))),n+=o}if(n!==e.length)throw new Error("data is not a valid framed stream!");return Mf(t)}function Ff(e){for(var t=[],n=0;n<e.length;){var r=Math.min(e.length-n,268435455),o=new Uint8Array(4);t.push(o);var c=Rf(r),l=c.length;t.push(c),r<=60?(l++,t.push(new Uint8Array([r-1<<2]))):r<=256?(l+=2,t.push(new Uint8Array([240,r-1&255]))):r<=65536?(l+=3,t.push(new Uint8Array([244,r-1&255,r-1>
2>8&255]))):r<=16777216?(l+=4,t.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(l+=5,t.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),t.push(e.slice(n,n+r)),l+=r,o[0]=0,o[1]=255&l,o[2]=l>>8&255,o[3]=l>>16&255,n+=r}return Mf(t)}function Bf(e,t,n){var r,o=Sf(e),c=o.getUint32(8,!0),l=12,h=-1,f=-1,d=NaN,m=NaN,dt=new Date(2001,0,1);switch(1&c&&(d=function(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],o=t+13;o>=t;--o)r=256*r+e[o];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}(e,l),l+=16),2&c&&(m=o.getFloat64(l,!0),l+=8),4&c&&(dt.setTime(dt.getTime()+1e3*o.getFloat64(l,!0)),l+=8),8&c&&(f=o.getUint32(l,!0),l+=4),16&c&&(h=o.getUint32(l,!0),l+=4),e[1]){case 0:break;case 2:r={t:"n",v:d};break;case 3:r={t:"s",v:t[f]};break;case 5:r={t:"d",v:dt};break;case 6:r={t:"b",v:m>0};break;case 7:r={t:"n",v:m/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(h>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&c," : ").concat(e.slice(0,4)));r={t:"s",v:n[h]};break;case 10:r={t:"n",v:d};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&c," : ").concat(e.slice(0,4)))}return r}function zf(e,t){var n=new Uint8Array(32),r=Sf(n),o=12,c=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var r=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,o=n/Math.pow(10,r-6176);e[t+15]|=r>>7,e[t+14]|=(127&r)<<1;for(var i=0;o>=1;++i,o/=256)e[t+i]=255&o;e[t+15]|=n>=0?0:128}(n,o,e.v),c|=1,o+=16;break;case"b":n[1]=6,r.setFloat64(o,e.v?1:0,!0),c|=2,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,r.setUint32(o,t.indexOf(e.v),!0),c|=8,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(8,c,!0),n.slice(0,o)}function Hf(e,t){var n=new Uint8Array(32),r=Sf(n),o=12,c=0;switch(n[0]=3,e.t){case"n":n[2]=2,r.setFloat64(o,e.v,!0),c|=32,o+=8;break;case"b":n[2]=6,r.setFloat64(o,e.v?1:0,!0),c|=32,o+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,r.setUint32(o,t.indexOf(e.v),!0),c|=16,o+=4;break;default:throw"unsupported cell type "+e.t}return r.setUint32(4,c,!0),n.slice(0,o)}function Vf(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return function(e,t,n,r){var o,c=Sf(e),l=c.getUint32(4,!0),h=(r>1?12:8)+4*Af(l&(r>1?3470:398)),f=-1,d=-1,m=NaN,dt=new Date(2001,0,1);switch(512&l&&(f=c.getUint32(h,!0),h+=4),h+=4*Af(l&(r>1?12288:4096)),16&l&&(d=c.getUint32(h,!0),h+=4),32&l&&(m=c.getFloat64(h,!0),h+=8),64&l&&(dt.setTime(dt.getTime()+1e3*c.getFloat64(h,!0)),h+=8),e[2]){case 0:break;case 2:o={t:"n",v:m};break;case 3:o={t:"s",v:t[d]};break;case 5:o={t:"d",v:dt};break;case 6:o={t:"b",v:m>0};break;case 7:o={t:"n",v:m/86400};break;case 8:o={t:"e",v:0};break;case 9:if(f>-1)o={t:"s",v:n[f]};else if(d>-1)o={t:"s",v:t[d]};else{if(isNaN(m))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));o={t:"n",v:m}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return o}(e,t,n,e[0]);case 5:return Bf(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function jf(e){return Cf(Of(e)[1][0].data)}function Wf(e,t){var n=Of(t.data),r=kf(n[1][0].data),o=n[3],data=[];return(o||[]).forEach((function(t){var n=Of(t.data),o=kf(n[1][0].data)>>>0;switch(r){case 1:data[o]=Tf(n[3][0].data);break;case 8:var c=Of(e[jf(n[9][0].data)][0].data),l=e[jf(c[1][0].data)][0],h=kf(l.meta[1][0].data);if(2001!=h)throw new Error("2000 unexpected reference to ".concat(h));var f=Of(l.data);data[o]=f[3].map((function(e){return Tf(e.data)})).join("")}})),data}function Gf(e,t){var n,r=Of(t.data),o=(null==(n=null==r?void 0:r[7])?void 0:n[0])?kf(r[7][0].data)>>>0>0?1:0:-1,c=Lf(r[5],(function(e){return function(e,t){var n,r,o,c,l,h,f,d,m,v,_,y,w,x,S,T,E=Of(e),M=kf(E[1][0].data)>>>0,A=kf(E[2][0].data)>>>0,C=(null==(r=null==(n=E[8])?void 0:n[0])?void 0:r.data)&&kf(E[8][0].data)>0||!1;if((null==(c=null==(o=E[7])?void 0:o[0])?void 0:c.data)&&0!=t)S=null==(h=null==(l=E[7])?void 0:l[0])?void 0:h.data,T=null==(d=null==(f=E[6])?void 0:f[0])?void 0:d.data;else{if(!(null==(v=null==(m=E[4])?void 0:m[0])?void 0:v.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");S=null==(y=null==(_=E[4])?void 0:_[0])?void 0:y.data,T=null==(x=null==(w=E[3])?void 0:w[0])?void 0:x.data}for(var R=C?4:1,k=Sf(S),O=[],P=0;P<S.length/2;++P){var L=k.getUint16(2*P,!0);L<65535&&O.push([P,L])}if(O.length!=A)throw"Expected ".concat(A," cells, found ").concat(O.length);var I=[];for(P=0;P<O.length-1;++P)I[O[P][0]]=T.subarray(O[P][1]*R,O[P+1][1]*R);return O.length>=1&&(I[O[O.length-1][0]]=T.subarray(O[O.length-1][1]*R)),{R:M,cells:I}}(e,o)}));return{nrows:kf(r[4][0].data)>>>0,data:c.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEac
2h((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function $f(e,t){var n={"!ref":"A1"},r=e[jf(Of(t.data)[2][0].data)],o=kf(r[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return function(e,t,n){var r,o=Of(t.data),c={s:{r:0,c:0},e:{r:0,c:0}};if(c.e.r=(kf(o[6][0].data)>>>0)-1,c.e.r<0)throw new Error("Invalid row varint ".concat(o[6][0].data));if(c.e.c=(kf(o[7][0].data)>>>0)-1,c.e.c<0)throw new Error("Invalid col varint ".concat(o[7][0].data));n["!ref"]=na(c);var l=Of(o[4][0].data),h=Wf(e,e[jf(l[4][0].data)][0]),f=(null==(r=l[17])?void 0:r[0])?Wf(e,e[jf(l[17][0].data)][0]):[],d=Of(l[3][0].data),m=0;d[1].forEach((function(t){var r=Of(t.data),o=e[jf(r[2][0].data)][0],c=kf(o.meta[1][0].data);if(6002!=c)throw new Error("6001 unexpected reference to ".concat(c));var l=Gf(0,o);l.data.forEach((function(e,t){e.forEach((function(e,r){var o=ea({r:m+t,c:r}),c=Vf(e,h,f);c&&(n[o]=c)}))})),m+=l.nrows}))}(e,r[0],n),n}function Xf(e,t){var n={SheetNames:[],Sheets:{}};if(Lf(Of(t.data)[1],jf).forEach((function(t){e[t].forEach((function(t){if(2==kf(t.meta[1][0].data)){var r=function(e,t){var n,r=Of(t.data),o={name:(null==(n=r[1])?void 0:n[0])?Tf(r[1][0].data):"",sheets:[]};return Lf(r[2],jf).forEach((function(t){e[t].forEach((function(t){6e3==kf(t.meta[1][0].data)&&o.sheets.push($f(e,t))}))})),o}(e,t);r.sheets.forEach((function(e,t){Ed(n,e,0==t?r.name:r.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function qf(e){var t,n,r,o,c={},l=[];
2if(e.FullPaths.forEach((function(p){if(p.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(s){if(s.name.match(/\.iwa$/)){var e,t;try{e=Uf(s.content)}catch(e){return}try{t=If(e)}catch(e){return}t.forEach((function(e){c[e.id]=e.messages,l.push(e.id)}))}})),!l.length)throw new Error("File has no messages");var h=(null==(o=null==(r=null==(n=null==(t=null==c?void 0:c[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:o[0].data)&&1==kf(c[1][0].meta[1][0].data)&&c[1][0];if(h||l.forEach((function(e){c[e].forEach((function(e){if(1==kf(e.meta[1][0].data)>>>0){if(h)throw new Error("Document has multiple roots");h=e}}))})),!h)throw new Error("Cannot find Document root");return Xf(c,h)}function Yf(e,data,t){var n,r,o,c;if(!(null==(n=e[6])?void 0:n[0])||!(null==(r=e[7])?void 0:r[0]))throw"Mutation only works on post-BNC storages!";if((null==(c=null==(o=e[8])?void 0:o[0])?void 0:c.data)&&kf(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var l=0,h=Sf(e[7][0].data),f=0,d=[],m=Sf(e[4][0].data),v=0,_=[],y=0;y<data.length;++y)if(null!=data[y]){var w,x;switch(h.setUint16(2*y,f,!0),m.setUint16(2*y,v,!0),typeof data[y]){case"string":w=zf({t:"s",v:data[y]},t),x=Hf({t:"s",v:data[y]},t);break;case"number":w=zf({t:"n",v:data[y]},t),x=Hf({t:"n",v:data[y]},t);break;case"boolean":w=zf({t:"b",v:data[y]},t),x=Hf({t:"b",v:data[y]},t);break;default:throw new Error("Unsupported value "+data[y])}d.push(w),f+=w.length,_.push(x),v+=x.length,++l}else h.setUint16(2*y,65535,!0),m.setUint16(2*y,65535);for(e[2][0].data=Rf(l);y<e[7][0].data.length/2;++y)h.setUint16(2*y,65535,!0),m.setUint16(2*y,65535,!0);return e[6][0].data=Mf(d),e[3][0].data=Mf(_),l}function Zf(e){return function(t){for(var i=0;i!=e.length;++i){var n=e[i];void 0===t[n[0]]&&(t[n[0]]=n[1]),"n"===n[2]&&(t[n[0]]=Number(t[n[0]]))}}}function Kf(e){Zf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Jf(e){Zf([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Qf(e,path,t,n,r,o,c,l,h,f,d,m){try{o[n]=Ka($n(e,t,!0),path);var v,data=Gn(e,path);switch(l){case"sheet":v=uh(data,path,r,h,o[n],f,d,m);break;case"chart":if(!(v=hh(data,path,r,h,o[n],f))||!v["!drawel"])break;var _=Kn(v["!drawel"].Target,path),y=Za(_),w=Kn(function(data,e){if(!data)return"??";var t=(data.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return e["!id"][t].Target}($n(e,_,!0),Ka($n(e,y,!0),_)),_),x=Za(w);v=$u($n(e,w,!0),0,0,Ka($n(e,x,!0),w),0,v);break;case"macro":T=path,o[n],T.slice(-4),v={"!type":"macro"};break;case"dialog":v=function(data,e,t,n,r,o,c,l){return e.slice(-4),{"!type":"dialog"}}(0,path,0,0,o[n]);break;default:throw new Error("Unrecognized sheet type "+l)}c[n]=v;var S=[];o&&o[n]&&yn(o[n]).forEach((function(t){var r="";if(o[n][t].Type==Ya.CMNT){r=Kn(o[n][t].Target,path);var c=ph(Gn(e,r,!0),r,h);if(!c||!c.length)return;rl(v,c,!1)}o[n][t].Type==Ya.TCMNT&&(r=Kn(o[n][t].Target,path),S=S.concat(function(data,e){var t=[],n=!1,r={},o=0;return data.replace(nr,(function(c,l){var h=ar(c);switch(sr(h[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":break;case"<threadedComment":r={author:h.personId,guid:h.id,ref:h.ref,T:1};break;case"</threadedComment>":null!=r.t&&t.push(r);break;case"<text>":case"<text":o=l+c.length;break;case"</text>":r.t=data.slice(o,l).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+h[0]+" in threaded comments")}return c})),t}(Gn(e,r,!0),h)))})),S&&S.length&&rl(v,S,!0,h.people||[])}catch(e){if(h.WTF)throw e}var T}function ed(e){return"/"==e.charAt(0)?e.slice(1):e}function nd(e,t){if(hn(),Kf(t=t||{}),jn(e,"META-INF/manifest.xml"))return _f(e,t);if(jn(e,"objectdata.xml"))return _f(e,t);if(jn(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array supp
2ort");if(void 0!==qf){if(e.FileIndex)return qf(e);var n=mn.utils.cfb_new();return Xn(e).forEach((function(t){qn(n,t,function e(t,n,r){if(!r)return Vn(Wn(t,n));if(!n)return null;try{return e(t,n)}catch(e){return null}}(e,t))})),qf(n)}throw new Error("Unsupported NUMBERS file")}if(!jn(e,"[Content_Types].xml")){if(jn(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(jn(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,o,c=Xn(e),l=function(data){var e={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!data||!data.match)return e;var t={};if((data.match(nr)||[]).forEach((function(n){var r=ar(n);switch(r[0].replace(rr,"<")){case"<?xml":break;case"<Types":e.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":t[r.Extension]=r.ContentType;break;case"<Override":void 0!==e[$a[r.ContentType]]&&e[$a[r.ContentType]].push(r.PartName)}})),e.xmlns!==Vr)throw new Error("Unknown Namespace: "+e.xmlns);return e.calcchain=e.calcchains.length>0?e.calcchains[0]:"",e.sst=e.strs.length>0?e.strs[0]:"",e.style=e.styles.length>0?e.styles[0]:"",e.defaults=t,delete e.calcchains,e}($n(e,"[Content_Types].xml")),h=!1;if(0===l.workbooks.length&&Gn(e,o="xl/workbook.xml",!0)&&l.workbooks.push(o),0===l.workbooks.length){if(!Gn(e,o="xl/workbook.bin",!0))throw new Error("Could not find workbook");l.workbooks.push(o),h=!0}"bin"==l.workbooks[0].slice(-3)&&(h=!0);var f={},d={};if(!t.bookSheets&&!t.bookProps){if(iu=[],l.sst)try{iu=dh(Gn(e,ed(l.sst)),l.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&l.themes.length&&(f=function(data,e,t){return Yc(data,t)}($n(e,l.themes[0].replace(/^\//,""),!0)||"",l.themes[0],t)),l.style&&(d=fh(Gn(e,ed(l.style)),l.style,f,t))}l.links.map((function(link){try{Ka($n(e,Za(ed(link))),link);return gh(Gn(e,ed(link)),0,link,t)}catch(e){}}));var m=lh(Gn(e,ed(l.workbooks[0])),l.workbooks[0],t),v={},_="";l.coreprops.length&&((_=Gn(e,ed(l.coreprops[0]),!0))&&(v=is(_)),0!==l.extprops.length&&(_=Gn(e,ed(l.extprops[0]),!0))&&function(data,p,e){var q={};p||(p={}),data=Tr(data),os.forEach((function(e){var t=(data.match(Mr(e[0]))||[])[1];switch(e[2]){case"string":t&&(p[e[1]]=lr(t));break;case"bool":p[e[1]]="true"===t;break;case"raw":var n=data.match(new RegExp("<"+e[0]+"[^>]*>([\\s\\S]*?)</"+e[0]+">"));n&&n.length>0&&(q[e[1]]=n[1])}})),q.HeadingPairs&&q.TitlesOfParts&&ls(q.HeadingPairs,q.TitlesOfParts,p,e)}(_,v,t));var y={};t.bookSheets&&!t.bookProps||0!==l.custprops.length&&(_=$n(e,ed(l.custprops[0]),!0))&&(y=function(data,e){var p={},t="",n=data.match(hs);if(n)for(var i=0;i!=n.length;++i){var r=n[i],o=ar(r);switch(o[0]){case"<?xml":case"<Properties":break;case"<property":t=lr(o.name);break;case"</property>":t=null;break;default:if(0===r.indexOf("<vt:")){var c=r.split(">"),l=c[0].slice(4),text=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":p[t]=lr(text);break;case"bool":p[t]=_r(text);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":p[t]=parseInt(text,10);break;case"r4":case"r8":case"decimal":p[t]=parseFloat(text);break;case"filetime":case"date":p[t]=Ln(text);break;case"cy":case"error":p[t]=lr(text);break;default:if("/"==l.slice(-1))break;e.WTF}}else if("</"===r.slice(0,2));else if(e.WTF)throw new Error(r)}}return p}(_,t));var w={};if((t.bookSheets||t.bookProps)&&(m.Sheets?r=m.Sheets.map((function(e){return e.name})):v.Worksheets&&v.SheetNames.length>0&&(r=v.SheetNames),t.bookProps&&(w.Props=v,w.Custprops=y),t.bookSheets&&void 0!==r&&(w.SheetNames=r),t.bookSheets?w.SheetNames:t.bookProps))return w;r={};var x={};t.bookDeps&&l.calcchain&&(x=mh(Gn(e,ed(l.calcchain)),l.calcchain));var path,S,i=0,T={},E=m.Sheets;v.Worksheets=E.length,v.SheetNames=[];for(var M=0;M!=E.length;++M)v.SheetNames[M]=E[M].name;var A=h?"bin":"xml",C=l.workbooks[0].lastIndexOf("/"),R=(l.workbooks[0].slice(0,C+1)+"_rels/"+l.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");jn(e,R)||(R="xl/_rels/workbook."+A+".rels");var k=Ka($n(e,R,!0),R.replace(/_rels.*/,"s5s"));(l.metadata||[]).length>=1&&(t.xlmeta=vh(Gn(e,ed(l.metadata[0])),l.metadata[0],t)),(l.people||[]).length>=1&&(t.people=function(data,e){var t=[],n=!1;return data.replace(nr,(function(r){var o=ar(r);switch(sr(o[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":t.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return r})),t}(Gn(e,ed(l.people[0])),t)),k&&(k=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(n=e["!id"][t.id].Type,Ya.WS.indexOf(n)>-1?"sheet":Ya.CS&&n==Ya.CS?"chart":Ya.DS&&n==Ya.DS?"dialog":Ya.MS&&n==Ya.MS?"macro":n&&n.length?n:"sheet")];var n}))}catch(e){return null}return e&&0!==e.length?e:null}(k,m.Sheets));var O=Gn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(i=0;i!=v.Worksheets;++i){var P="sheet";if(k&&k[i]?(path="xl/"+k[i][1].replace(/[\/]?xl\//,""),jn(e,path)||(path=k[i][1]),jn(e,path)||(path=R.replace(/_rels\/.*$/,"")+k[i][1]),P=k[i][2]):path=(path="xl/worksheets/sheet"+(i+1-O)+"."+A).replace(/sheet0\./,"sheet."),S=path.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(i!=t.sheets)continue e;break;case"string":if(v.SheetNames[i].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var L=!1,I=0;I!=t.sheets.length;++I)"number"==typeof t.sheets[I]&&t.sheets[I]==i&&(L=1),"string"==typeof t.sheets[I]&&t.sheets[I].toLowerCase()==v.SheetNames[i].toLowerCase()&&(L=1);if(!L)continue e}}Qf(e,path,S,v.SheetNames[i],i,T,r,P,t,m,f,d)}return w={Directory:l,Workbook:m,Props:v,Custprops:y,Deps:x,Sheets:r,SheetNames:v.SheetNames,Strings:iu,Styles:d,Themes:f,SSF:Nn(Ot)},t&&t.bookFiles&&(e.files?(w.keys=c,w.files=e.files):(w.keys=[],w.files={},e.FullPaths.forEach((function(p,t){p=p.replace(/^Root Entry[\/]/,""),w.keys.push(p),w.files[p]=e.FileIndex[t]})))),t&&t.bookVBA&&(l.vba.length>0?w.vbaraw=Gn(e,ed(l.vba[0]),!0):l.defaults&&"application/vnd.ms-office.vbaProject"===l.defaults.bin&&(w.vbaraw=Gn(e,"xl/vbaProject.bin",!0))),w}function rd(e,t){var n,r,o=t||{},c="Workbook",data=mn.find(e,c);try{if(c="/!DataSpaces/Version",!(data=mn.find(e,c))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(n=data.content,(r={}
2).id=n.read_shift(0,"lpp4"),r.R=Qo(n,4),r.U=Qo(n,4),r.W=Qo(n,4),c="/!DataSpaces/DataSpaceMap",!(data=mn.find(e,c))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+c);var l=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(ec(e));return t}(data.content);if(1!==l.length||1!==l[0].comps.length||0!==l[0].comps[0].t||"StrongEncryptionDataSpace"!==l[0].name||"EncryptedPackage"!==l[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(data=mn.find(e,c))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+c);var h=function(e){var t=[];e.l+=4;for(var n=e.read_shift(4);n-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(data.content);if(1!=h.length||"StrongEncryptionTransform"!=h[0])throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(data=mn.find(e,c))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+c);tc(data.content)}catch(e){}if(c="/EncryptionInfo",!(data=mn.find(e,c))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+c);var f=function(e){var t=Qo(e);switch(t.Minor){case 2:return[t.Minor,ic(e)];case 3:return[t.Minor,ac()];case 4:return[t.Minor,sc(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(data.content);if(c="/EncryptedPackage",!(data=mn.find(e,c))||!data.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(4==f[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(f[1],data.content,o.password||"",o);if(2==f[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(f[1],data.content,o.password||"",o);throw new Error("File is password-protected")}function id(e,t){return"ods"==t.bookType?xf(e,t):"numbers"==t.bookType?function(e,t){if(!t||!t.numbers)throw new Error("Mu
2st pass a `numbers` option -- check the README");var n=e.Sheets[e.SheetNames[0]];e.SheetNames.length;var r=ta(n["!ref"]);r.s.r=r.s.c=0,r.e.c>9&&(!0,r.e.c=9),r.e.r>49&&(!0,r.e.r=49);var data=vd(n,{range:r,header:1}),o=["~Sh33tJ5~"];data.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&o.push(e)}))}));var c={},l=[],h=mn.read(t.numbers,{type:"base64"});h.FileIndex.map((function(e,t){return[e,h.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&(t.name.match(/\.iwa/)&&If(Uf(t.content)).forEach((function(e){l.push(e.id),c[e.id]={deps:[],location:n,type:kf(e.messages[0].meta[1][0].data)}})))})),l.sort((function(e,t){return e-t}));var f=l.filter((function(e){return e>1})).map((function(e){return[e,Rf(e)]}));h.FileIndex.map((function(e,t){return[e,h.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1];t.name.match(/\.iwa/)&&If(Uf(t.content)).forEach((function(e){e.messages.forEach((function(t){f.forEach((function(t){e.messages.some((function(e){return 11006!=kf(e.meta[1][0].data)&&function(body,e){e:for(var t=0;t<=body.length-e.length;++t){for(var n=0;n<e.length;++n)if(body[t+n]!=e[n])continue e;return!0}return!1}(e.data,t[1])}))&&c[t[0]].deps.push(e.id)}))}))}))}));for(var d,m=mn.find(h,c[1].location),v=If(Uf(m.content)),_=0;_<v.length;++_){var y=v[_];1==y.id&&(d=y)}var w=jf(Of(d.messages[0].data)[1][0].data);for(v=If(Uf((m=mn.find(h,c[w].location)).content)),_=0;_<v.length;++_)(y=v[_]).id==w&&(d=y);for(w=jf(Of(d.messages[0].data)[2][0].data),v=If(Uf((m=mn.find(h,c[w].location)).content)),_=0;_<v.length;++_)(y=v[_]).id==w&&(d=y);for(w=jf(Of(d.messages[0].data)[2][0].data),v=If(Uf((m=mn.find(h,c[w].location)).content)),_=0;_<v.length;++_)(y=v[_]).id==w&&(d=y);var x=Of(d.messages[0].data);x[6][0].data=Rf(r.e.r+1),x[7][0].data=Rf(r.e.c+1);for(var S=jf(x[46][0].data),T=mn.find(h,c[S].location),E=If(Uf(T.content)),M=0;M<E.length&&E[M].id!=S;++M);if(E[M].id!=S)throw"Bad ColumnRowUIDMapArchive";var A=Of(E[M].messages[0].data);A[1]=[],A[2]=[],A[3]=[];for(var C=0;C<=r.e.c;++C){var R=[];R[1]=R[2]=[{type:0,data:Rf(C+420690)}],A[1].push({type:2,data:Pf(R)}),A[2].push({type:0,data:Rf(C)}),A[3].push({type:0,data:Rf(C)})}A[4]=[],A[5]=[],A[6]=[];for(var k=0;k<=r.e.r;++k)(R=[])[1]=R[2]=[{type:0,data:Rf(k+726270)}],A[4].push({type:2,data:Pf(R)}),A[5].push({type:0,data:Rf(k)}),A[6].push({type:0,data:Rf(k)});E[M].messages[0].data=Pf(A),T.content=Ff(Nf(E)),T.size=T.content.length,delete x[46];var O=Of(x[4][0].data);O[7][0].data=Rf(r.e.r+1);var P=jf(Of(O[1][0].data)[2][0].data);if((E=If(Uf((T=mn.find(h,c[P].location)).content)))[0].id!=P)throw"Bad HeaderStorageBucket";var L=Of(E[0].messages[0].data);for(k=0;k<data.length;++k){var I=Of(L[2][0].data);I[1][0].data=Rf(k),I[4][0].data=Rf(data[k].length),L[2][k]={type:L[2][0].type,data:Pf(I)}}E[0].messages[0].data=Pf(L),T.content=Ff(Nf(E)),T.size=T.content.length;var N=jf(O[2][0].data);if((E=If(Uf((T=mn.find(h,c[N].location)).content)))[0].id!=N)throw"Bad HeaderStorageBucket";for(L=Of(E[0].messages[0].data),C=0;C<=r.e.c;++C)(I=Of(L[2][0].data))[1][0].data=Rf(C),I[4][0].data=Rf(r.e.r+1),L[2][C]={type:L[2][0].type,data:Pf(I)};E[0].messages[0].data=Pf(L),T.content=Ff(Nf(E)),T.size=T.content.length;var D=jf(O[4][0].data);!function(){for(var e,t=mn.find(h,c[D].location),n=If(Uf(t.content)),r=0;r<n.length;++r){var l=n[r];l.id==D&&(e=l)}var f=Of(e.messages[0].data);f[3]=[];var d=[];o.forEach((function(e,i){d[1]=[{type:0,data:Rf(i)}],d[2]=[{type:0,data:Rf(1)}],d[3]=[{type:2,data:Ef(e)}],f[3].push({type:2,data:Pf(d)})})),e.messages[0].data=Pf(f);var m=Ff(Nf(n));t.content=m,t.size=t.content.length}();var U=Of(O[3][0].data),F=U[1][0];delete U[2];var B=Of(F.data),z=jf(B[2][0].data);!function(){for(var e,t=mn.find(h,c[z].location),n=If(Uf(t.content)),l=0;l<n.length;++l){var f=n[l];f.id==z&&(e=f)}var d=Of(e.messages[0].data);delete d[6],delete U[7];var m=new Uint8Array(d[5][0].data);d[5]=[];for(var v=0,_=0;_<=r.e.r;++_){var y=Of(m);v+=Yf(y,data[_],o),y[1][0].data=Rf(_),d[5].push({data:Pf(y),type:2})}d[1]=[{type:0,data:Rf(r.e.c+1)}],d[2]=[{type:0,data:Rf(r.e.r+1)}],d[3]=[{type:0,data:Rf(v)}],d[4]=[{type:0,data:Rf(r.e.r+1)}],e.messages[0].data=Pf(d);
2var w=Ff(Nf(n));t.content=w,t.size=t.content.length}(),F.data=Pf(B),O[3][0].data=Pf(U),x[4][0].data=Pf(O),d.messages[0].data=Pf(x);var H=Ff(Nf(v));return m.content=H,m.size=m.content.length,h}(e,t):"xlsb"==t.bookType?function(e,t){tl=1024,e&&!e.SSF&&(e.SSF=Nn(Ot));e&&e.SSF&&(hn(),un(e.SSF),t.revssf=xn(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF);t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,su?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xlsb"==t.bookType?"bin":"xml",r=ll.indexOf(t.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Jf(t=t||{});var c=Yn(),l="",h=0;t.cellXfs=[],uu(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(qn(c,l="docProps/core.xml",ss(e.Props,t)),o.coreprops.push(l),Qa(t.rels,2,l,Ya.CORE_PROPS),l="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var f=[],d=0;d<e.SheetNames.length;++d)2!=(e.Workbook.Sheets[d]||{}).Hidden&&f.push(e.SheetNames[d]);e.Props.SheetNames=f}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,qn(c,l,us(e.Props)),o.extprops.push(l),Qa(t.rels,3,l,Ya.EXT_PROPS),e.Custprops!==e.Props&&yn(e.Custprops||{}).length>0&&(qn(c,l="docProps/custom.xml",fs(e.Custprops)),o.custprops.push(l),Qa(t.rels,4,l,Ya.CUST_PROPS));for(h=1;h<=e.SheetNames.length;++h){var m={"!id":{}},v=e.Sheets[e.SheetNames[h-1]];switch((v||{})["!type"]||"sheet"){case"chart":default:qn(c,l="xl/worksheets/sheet"+h+"."+n,_h(h-1,l,t,e,m)),o.sheets.push(l),Qa(t.wbrels,-1,"worksheets/sheet"+h+"."+n,Ya.WS[0])}if(v){var _=v["!comments"],y=!1,w="";_&&_.length>0&&(qn(c,w="xl/comments"+h+"."+n,yh(_,w,t)),o.comments.push(w),Qa(m,-1,"../comments"+h+"."+n,Ya.CMNT),y=!0),v["!legacy"]&&y&&qn(c,"xl/drawings/vmlDrawing"+h+".vml",nl(h,v["!comments"])),delete v["!comments"],delete v["!legacy"]}m["!id"].rId1&&qn(c,Za(l),Ja(m))}null!=t.Strings&&t.Strings.length>0&&(qn(c,l="xl/sharedStrings."+n,function(data,e,t){return(".bin"===e.slice(-4)?Ko:Yo)(data,t)}(t.Strings,l,t)),o.strs.push(l),Qa(t.wbrels,-1,"sharedStrings."+n,Ya.SST));qn(c,l="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?ch:ah)(e,n)}(e,l,t)),o.workbooks.push(l),Qa(t.rels,1,l,Ya.WB),qn(c,l="xl/theme/theme1.xml",Zc(e.Themes,t)),o.themes.push(l),Qa(t.wbrels,-1,"theme/theme1.xml",Ya.THEME),qn(c,l="xl/styles."+n,function(data,e,t){return(".bin"===e.slice(-4)?zc:Ac)(data,t)}(e,l,t)),o.styles.push(l),Qa(t.wbrels,-1,"styles."+n,Ya.STY),e.vbaraw&&r&&(qn(c,l="xl/vbaProject.bin",e.vbaraw),o.vba.push(l),Qa(t.wbrels,-1,"vbaProject.bin",Ya.VBA));return qn(c,l="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?Qc:el)()}(l)),o.metadata.push(l),Qa(t.wbrels,-1,"metadata."+n,Ya.XLMETA),qn(c,"[Content_Types].xml",qa(o,t)),qn(c,"_rels/.rels",Ja(t.rels)),qn(c,"xl/_rels/workbook."+n+".rels",Ja(t.wbrels)),delete t.revssf,delete t.ssf,c}(e,t):ad(e,t)}function ad(e,t){tl=1024,e&&!e.SSF&&(e.SSF=Nn(Ot)),e&&e.SSF&&(hn(),un(e.SSF),t.revssf=xn(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,su?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n=ll.indexOf(t.bookType)>-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Jf(t=t||{});var o=Yn(),c="",l=0;if(t.cellXfs=[],uu(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),qn(o,c="docProps/core.xml",ss(e.Props,t)),r.coreprops.push(c),Qa(t.rels,2,c,Ya.CORE_PROPS),c="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var h=[],f=0;f<e.SheetNames.length;++f)2!=(e.Workbook.Sheets[f]||{}).Hidden&&h.push(e.SheetNames[f]);e.Props.SheetNames=h}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,qn(o,c,us(e.Props)),r.extprops.push(c),Qa(t.rels,3,c,Ya.EXT_PROPS),e.Custprops!==e.Props&&yn(e.Custprops||{}).length>
20&&(qn(o,c="docProps/custom.xml",fs(e.Custprops)),r.custprops.push(c),Qa(t.rels,4,c,Ya.CUST_PROPS));var d=["SheetJ5"];for(t.tcid=0,l=1;l<=e.SheetNames.length;++l){var m={"!id":{}},v=e.Sheets[e.SheetNames[l-1]];switch((v||{})["!type"]||"sheet"){case"chart":default:qn(o,c="xl/worksheets/sheet"+l+".xml",ku(l-1,t,e,m)),r.sheets.push(c),Qa(t.wbrels,-1,"worksheets/sheet"+l+".xml",Ya.WS[0])}if(v){var _=v["!comments"],y=!1,w="";if(_&&_.length>0){var x=!1;_.forEach((function(e){e[1].forEach((function(e){1==e.T&&(x=!0)}))})),x&&(qn(o,w="xl/threadedComments/threadedComment"+l+".xml",al(_,d,t)),r.threadedcomments.push(w),Qa(m,-1,"../threadedComments/threadedComment"+l+".xml",Ya.TCMNT)),qn(o,w="xl/comments"+l+".xml",il(_)),r.comments.push(w),Qa(m,-1,"../comments"+l+".xml",Ya.CMNT),y=!0}v["!legacy"]&&y&&qn(o,"xl/drawings/vmlDrawing"+l+".vml",nl(l,v["!comments"])),delete v["!comments"],delete v["!legacy"]}m["!id"].rId1&&qn(o,Za(c),Ja(m))}return null!=t.Strings&&t.Strings.length>0&&(qn(o,c="xl/sharedStrings.xml",Yo(t.Strings,t)),r.strs.push(c),Qa(t.wbrels,-1,"sharedStrings.xml",Ya.SST)),qn(o,c="xl/workbook.xml",ah(e)),r.workbooks.push(c),Qa(t.rels,1,c,Ya.WB),qn(o,c="xl/theme/theme1.xml",Zc(e.Themes,t)),r.themes.push(c),Qa(t.wbrels,-1,"theme/theme1.xml",Ya.THEME),qn(o,c="xl/styles.xml",Ac(e,t)),r.styles.push(c),Qa(t.wbrels,-1,"styles.xml",Ya.STY),e.vbaraw&&n&&(qn(o,c="xl/vbaProject.bin",e.vbaraw),r.vba.push(c),Qa(t.wbrels,-1,"vbaProject.bin",Ya.VBA)),qn(o,c="xl/metadata.xml",el()),r.metadata.push(c),Qa(t.wbrels,-1,"metadata.xml",Ya.XLMETA),d.length>
vendor: 8,007 bytes, line 2
21&&(qn(o,c="xl/persons/person.xml",function(e){var t=[Jn,Nr("personList",null,{xmlns:Wr,"xmlns:x":Jr[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Nr("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}(d)),r.people.push(c),Qa(t.wbrels,-1,"persons/person.xml",Ya.PEOPLE)),qn(o,"[Content_Types].xml",qa(r,t)),qn(o,"_rels/.rels",Ja(t.rels)),qn(o,"xl/_rels/workbook.xml.rels",Ja(t.wbrels)),delete t.revssf,delete t.ssf,o}function sd(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=lt(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function od(data,e){var i=0;e:for(;i<data.length;)switch(data.charCodeAt(i)){case 10:case 13:case 32:++i;break;case 60:return Oh(data.slice(i),e);default:break e}return Uo.to_workbook(data,e)}function cd(data,e,t,n){return n?(t.type="string",Uo.to_workbook(data,t)):Uo.to_workbook(e,t)}function ld(data,e){Qe();var t=e||{};if("undefined"!=typeof ArrayBuffer&&data instanceof ArrayBuffer)return ld(new Uint8Array(data),((t=Nn(t)).type="array",t));"undefined"!=typeof Uint8Array&&data instanceof Uint8Array&&!t.type&&(t.type="undefined"!=typeof Deno?"buffer":"array");var n,r=data,o=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),au={},t.dateNF&&(au.dateNF=t.dateNF),t.type||(t.type=ut&&Buffer.isBuffer(data)?"buffer":"base64"),"file"==t.type&&(t.type=ut?"buffer":"binary",r=function(path){if(void 0!==gn)return gn.readFileSync(path);if("undefined"!=typeof Deno)return Deno.readFileSync(path);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var e=File(path);e.open("r"),e.encoding="binary";var data=e.read();return e.close(),data}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+path)}(data),"undefined"==typeof Uint8Array||ut||(t.type="array")),"string"==t.type&&(o=!0,t.type="binary",t.codepage=65001,r=function(data){return data.match(/[^\x00-\x7F]/)?Er(data):data}(data)),"array"==t.type&&"undefined"!=typeof Uint8Array&&data instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var c=new ArrayBuffer(3),l=new Uint8Array(c);if(l.foo="bar",!l.foo)return(t=Nn(t)).type="array",ld(_t(r),t)}switch((n=sd(r,t))[0]){case 208:if(207===n[1]&&17===n[2]&&224===n[3]&&161===n[4]&&177===n[5]&&26===n[6]&&225===n[7])return function(e,t){return mn.find(e,"EncryptedPackage")?rd(e,t):Xh(e,t)}(mn.read(r,t),t);break;case 9:if(n[1]<=8)return Xh(r,t);break;case 60:return Oh(r,t);case 73:if(73===n[1]&&42===n[2]&&0===n[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===n[1])return function(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var o=Io.to_workbook(e,n);return n.WTF=r,o}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return Uo.to_workbook(e,t)}}(r,t);break;case 84:if(65===n[1]&&66===n[2]&&76===n[3])return No.to_workbook(r,t);break;case 80:return 75===n[1]&&n[2]<9&&n[3]<9?function(data,e){var t=data,n=e||{};return n.type||(n.type=ut&&Buffer.isBuffer(data)?"buffer":"base64"),nd(Zn(t,n),n)}(r,t):cd(data,r,t,o);case 239:return 60===n[3]?Oh(r,t):cd(data,r,t,o);case 255:if(254===n[1])return function(data,e){var t=data;return"base64"==e.type&&(t=lt(t)),t=nt.utils.decode(1200,t.slice(2),"str"),e.type="binary",od(t,e)}(r,t);if(0===n[1]&&2===n[2]&&0===n[3])return Fo.to_workbook(r,t);break;case 0:if(0===n[1]){if(n[2]>=2&&0===n[3])return Fo.to_workbook(r,t);if(0===n[2]&&(8===n[3]||9===n[3]))return Fo.to_workbook(r,t)}break;case 3:case 131:case 139:case 140:return Lo.to_workbook(r,t);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return hc.to_workbook(r,t);break;case 10:case 13:case 32:return function(data,e){var t="",n=sd(data,e);switch(e.type){case"base64":t=lt(data);break;case"binary":t=data;break;case"buffer":t=data.toString("binary");break;case"array":t=In(data);break;default:throw new Error("Unrecognized type "+e.type)}return 239==n[0]&&187==n[1]&&191==n[2]&&(t=Tr(t)),e.type="binary",od(t,e)}(r,t);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet")}return Po.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?Lo.to_workbook(r,t):cd(data,r,t,o)}function ud(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return _n(t.file,mn.write(e,{type:ut?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return mn.write(e,t)}function hd(e,t){var n={},r=ut?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=r;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=r;break;default:throw new Error("Unrecognized type "+t.type)}var o=e.FullPaths?mn.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!=typeof Deno&&"string"==typeof o){if("binary"==t.type||"base64"==t.type)return o;o=new Uint8Array(gt(o))}return t.password&&"undefined"!=typeof encrypt_agile?ud(encrypt_agile(o,t.password),t):"file"===t.type?_n(t.file,o):"string"==t.type?Tr(o):o}function fd(e,t,n){n||(n="");var r=n+e;switch(t.type){case"base64":return ct(Er(r));case"binary":return Er(r);case"string":return e;case"file":return _n(t.file,r,"utf8");case"buffer":return ut?ht(r,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(r):fd(r,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function pd(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",i=0;i<e.length;++i)n+=String.fromCharCode(e[i]);return"base64"==t.type?ct(n):"string"==t.type?Tr(n):n;case"file":return _n(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function md(e,t){Qe(),rh(e);var n=Nn(t||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var r=md(e,n);return n.type="array",gt(r)}var o=0;if(n.sheet&&(o="number"==typeof n.sheet?n.sheet:e.SheetNames.indexOf(n.sheet),!e.SheetNames[o]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return fd(Uh(e,n),n);case"slk":case"sylk":return fd(Io.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"htm":case"html":return fd(ff(e.Sheets[e.SheetNames[o]],n),n);case"txt":return function(e,t){switch(t.type){case"base64":return ct(e);case"binary":case"string":return e;case"file":return _n(t.file,e,"binary");case"buffer":return ut?ht(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(wd(e.Sheets[e.SheetNames[o]],n),n);case"csv":return fd(bd(e.Sheets[e.SheetNames[o]],n),n,"\ufeff");case"dif":return fd(No.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"dbf":return pd(Lo.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"prn":return fd(Uo.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"rtf":return fd(hc.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"eth":return fd(Do.from_sheet(e.Sheets[e.SheetNames[o]],n),n);case"fods":return fd(xf(e,n),n);case"wk1":return pd(Fo.sheet_to_wk1(e.Sheets[e.SheetNames[o]],n),n);case"wk3":return pd(Fo.book_to_wk3(e,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),pd(of(e,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(e,t){var n=t||{};return ud(qh(e,n),n)}
2(e,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var n=Nn(t||{});return hd(id(e,n),n)}(e,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function gd(e,t,n,r,header,o,c,l){var h=Zi(n),f=l.defval,d=l.raw||!Object.prototype.hasOwnProperty.call(l,"raw"),m=!0,v=1===header?[]:{};if(1!==header)if(Object.defineProperty)try{Object.defineProperty(v,"__rowNum__",{value:n,enumerable:!1})}catch(e){v.__rowNum__=n}else v.__rowNum__=n;if(!c||e[n])for(var _=t.s.c;_<=t.e.c;++_){var y=c?e[n][_]:e[r[_]+h];if(void 0!==y&&void 0!==y.t){var w=y.v;switch(y.t){case"z":if(null==w)break;continue;case"e":w=0==w?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+y.t)}if(null!=o[_]){if(null==w)if("e"==y.t&&null===w)v[o[_]]=null;else if(void 0!==f)v[o[_]]=f;else{if(!d||null!==w)continue;v[o[_]]=null}else v[o[_]]=d&&("n"!==y.t||"n"===y.t&&!1!==l.rawNumbers)?w:aa(y,w,l);null!=w&&(m=!1)}}else{if(void 0===f)continue;null!=o[_]&&(v[o[_]]=f)}}return{row:v,isempty:m}}function vd(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},header=0,r=1,o=[],c=0,l="",h={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},d=null!=f.range?f.range:e["!ref"];switch(1===f.header?header=1:"A"===f.header?header=2:Array.isArray(f.header)?header=3:null==f.header&&(header=0),typeof d){case"string":h=ra(d);break;case"number":(h=ra(e["!ref"])).s.r=d;break;default:h=d}header>0&&(r=0);var m=Zi(h.s.r),v=[],_=[],y=0,w=0,x=Array.isArray(e),S=h.s.r,T=0,E={};x&&!e[S]&&(e[S]=[]);var M=f.skipHidden&&e["!cols"]||[],A=f.skipHidden&&e["!rows"]||[];for(T=h.s.c;T<=h.e.c;++T)if(!(M[T]||{}).hidden)switch(v[T]=Ji(T),n=x?e[S][T]:e[v[T]+m],header){case 1:o[T]=T-h.s.c;break;case 2:o[T]=v[T];break;case 3:o[T]=f.header[T-h.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),l=c=aa(n,null,f),w=E[c]||0){do{l=c+"_"+w++}while(E[l]);E[c]=w,E[l]=1}else E[c]=1;o[T]=l}for(S=h.s.r+r;S<=h.e.r;++S)if(!(A[S]||{}).hidden){var C=gd(e,h,S,v,header,o,x,f);(!1===C.isempty||(1===header?!1!==f.blankrows:f.blankrows))&&(_[y++]=C.row)}return _.length=y,_}var _d=/"/g;function yd(e,t,n,r,o,c,l,h){for(var f=!0,d=[],m="",v=Zi(n),_=t.s.c;_<=t.e.c;++_)if(r[_]){var y=h.dense?(e[n]||[])[_]:e[r[_]+v];if(null==y)m="";else if(null!=y.v){f=!1,m=""+(h.rawNumbers&&"n"==y.t?y.v:aa(y,null,h));for(var i=0,w=0;i!==m.length;++i)if((w=m.charCodeAt(i))===o||w===c||34===w||h.forceQuotes){m='"'+m.replace(_d,'""')+'"';break}"ID"==m&&(m='"ID"')}else null==y.f||y.F?m="":(f=!1,(m="="+y.f).indexOf(",")>=0&&(m='"'+m.replace(_d,'""')+'"'));d.push(m)}return!1===h.blankrows&&f?null:d.join(l)}function bd(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var o=ra(e["!ref"]),c=void 0!==r.FS?r.FS:",",l=c.charCodeAt(0),h=void 0!==r.RS?r.RS:"\n",f=h.charCodeAt(0),d=new RegExp(("|"==c?"\\|":c)+"+$"),m="",v=[];r.dense=Array.isArray(e);for(var _=r.skipHidden&&e["!cols"]||[],y=r.skipHidden&&e["!rows"]||[],w=o.s.c;w<=o.e.c;++w)(_[w]||{}).hidden||(v[w]=Ji(w));for(var x=0,S=o.s.r;S<=o.e.r;++S)(y[S]||{}).hidden||null!=(m=yd(e,o,S,v,l,f,c,r))&&(r.strip&&(m=m.replace(d,"")),(m||!1!==r.blankrows)&&n.push((x++?h:"")+m));return delete r.dense,n.join("")}function wd(e,t){t||(t={}),t.FS="\t",t.RS="\n";var s=bd(e,t);if(void 0===nt||"string"==t.type)return s;var n=nt.utils.encode(1200,s,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function xd(e,t,n){var r,o=n||{},c=+!o.skipHeader,l=e||{},h=0,f=0;if(l&&null!=o.origin)if("number"==typeof o.origin)h=o.origin;else{var d="string"==typeof o.origin?Qi(o.origin):o.origin;h=d.r,f=d.c}var m={s:{c:0,r:0},e:{c:f,r:h+t.length-1+c}};if(l["!ref"]){var v=ra(l["!ref"]);m.e.c=Math.max(m.e.c,v.e.c),m.e.r=Math.max(m.e.r,v.e.r),-1==h&&(h=v.e.r+1,m.e.r=h+t.length-1+c)}else-1==h&&(h=0,m.e.r=t.length-1+c);var _=o.header||[],y=0;t.forEach((function(e,t){yn(e).forEach((function(n){-1==(y=_.indexOf(n))&&(_[y=_.length]=n);var d=e[n],m="z",v="",w=ea({c:f+y,r:h+t+c});r=Sd(l,w),!d||"object"!=typeof d||d instanceof Date?("number"==typeof d?m="n":"boolean"==typeof d?m="b":"string"==typeof d?m="s":d instanceof Date?(m="d",o.cellDates||(m="n",d=Tn(d)),v=o.dateNF||Ot[14]):null===d&&o.nullError&&(m="e",d=0),r?(r.t=m,r.v=d,delete r.w,delete r.R,v&&(r.z=v)):l[w]=r={t:m,v:d},v&&(r.z=v)):l[w]=d}))})),m.e.c=Math.max(m.e.c,f+_.length-1);var w=Zi(h);if(c)for(y=0;y<_.length;++y)l[Ji(y+f)+w]={t:"s",v:_[y]};return l["!ref"]=na(m),l}function Sd(e,t,n){if("string"==typeof t){if(Array.isArray(e)){var r=Qi(t);return e[r.r]||(e[r.r]=[]),e[r.r][r.c]||(e[r.r][r.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Sd(e,ea("number"!=typeof t?t:{r:t,c:n||0}))}function Td(){return{SheetNames:[],Sheets:{}}}function Ed(e,t,n,r){var i=1;if(!n)for(;i<=65535&&-1!=e.SheetNames.indexOf(n="Sheet"+i);++i,n=void 0);if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var c=o&&o[1]||n;for(++i;i<=65535&&-1!=e.SheetNames.indexOf(n=c+i);++i);}if(nh(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}
2function Md(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var Ad={encode_col:Ji,encode_row:Zi,encode_cell:ea,encode_range:na,decode_col:Ki,decode_row:Yi,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Qi,decode_range:ta,format_cell:aa,sheet_add_aoa:oa,sheet_add_json:xd,sheet_add_dom:df,aoa_to_sheet:ca,json_to_sheet:function(e,t){return xd(null,e,t)},table_to_sheet:pf,table_to_book:function(table,e){return sa(pf(table,e),e)},sheet_to_csv:bd,sheet_to_txt:wd,sheet_to_json:vd,sheet_to_html:ff,sheet_to_formulae:function(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var o,c=ra(e["!ref"]),l="",h=[],f=[],d=Array.isArray(e);for(o=c.s.c;o<=c.e.c;++o)h[o]=Ji(o);for(var m=c.s.r;m<=c.e.r;++m)for(l=Zi(m),o=c.s.c;o<=c.e.c;++o)if(n=h[o]+l,r="",void 0!==(t=d?(e[m]||[])[o]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}f[f.length]=n+"="+r}return f},sheet_to_row_object_array:vd,sheet_get_cell:Sd,book_new:Td,book_append_sheet:Ed,book_set_sheet_visibility:function(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Md,cell_set_internal_link:function(e,t,n){return Md(e,"#"+t,n)},cell_add_comment:function(e,text,t){e.c||(e.c=[]),e.c.push({t:text,a:t||"SheetJS"})},sheet_set_array_formula:function(e,t,n,r){for(var o="string"!=typeof t?t:ra(t),c="string"==typeof t?t:na(t),l=o.s.r;l<=o.e.r;++l)for(var h=o.s.c;h<=o.e.c;++h){var f=Sd(e,l,h);f.t="n",f.F=c,delete f.v,l==o.s.r&&h==o.s.c&&(f.f=n,r&&(f.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};$e.version;var Cd=n(266),Rd=n.n(Cd),kd=function(e,t){e.app;t("xlsx",{createWorkbook:function(data){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sheet1",t=Ad.book_new(),n=Ad.json_to_sheet(data);return Ad.book_append_sheet(t,n,e),t},saveWorkbook:function(e,t){var n=md(e,{bookType:"xlsx",type:"array"});Rd.a.saveAs(new Blob([n],{type:"application/octet-stream"}),t)}}),t("readExcel",(function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(e){var n=ld(e.target.result,{type:"binary"}),r=n.SheetNames[0],o=n.Sheets[r],c=Ad.sheet_to_json(o);t(c)},r.onerror=function(e){n(e)},r.readAsBinaryString(e)}))})),t("exportExcel",(function(e){var t=Ad.book_new(),n=e,r=Ad.aoa_to_sheet(n);Ad.book_append_sheet(t,r,"Sheet1");var o=md(t,{bookType:"xlsx",type:"array"}),data=new Blob([o],{type:"application/xlsx;charset=utf-8"});saveAs(data,"example.xlsx")}))},Od=function(e){var t=e.app,n=e.store,o=e.req,c=e.$axios,l=(e.redirect,e.route,e.$getViewType);t.router.beforeEach(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t,r,h){var f,d,m,v,_,y,w;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(function(e){var t={id:e.category_id,name:e.name,url:e.href,type:"",children:[],recommand:[]};return e.href.includes("topic")?t.type="topic":t.type="category",e.recommand_product&&(t.recommand=e.recommand_product),t}),e.next=27;break;case 8:return e.next=10,c.post("getOther",[{platform:"cms",url:"api/material_list/get?material_id=120&cache=1",name:"setting",expiration:1800},{platform:"cms",url:"api/material_list/get?material_id=129&cache=1",name:"topBanner",expiration:60},{platform:"cms",url:"api/material_list/get?material_id=114&cache=1",name:"store",expiration:1800}]);case 10:return f=e.sent,d={},m=[],v={},0===f.code&&((f=f.data).map((function(e){var t=JSON.parse(e.response);"setting"===e.name&&0===t.error_code&&t.data.list.length>0&&(d=t.data.list[0].content_data),"topBanner"===e.name&&0===t.error_code&&t.data.list.length>0&&t.data.list.map((function(e){var t=e.content_data.warehouse+"";0===parseInt(t)&&(t="GLOBAL"),v[t]||(v[t]=e.content_data)})),"store"===e.name&&0===t.error_code&&t.data.list.map((function(s){var e=s.content_data;m.push(e)}))})),d.topBanner=v,d.store=m),e.next=17,n.dispatch("setsetting",d);case 17:return e.next=19,c.get("getCurrencys");case 19:return _=e.sent,y={},_.data.map((function(e){var t={symbol:"",code:"",name:"",rate:1};e.symbol_left&&(t.symbol=e.symbol_left,t.name=t.symbol+e.code),e.symbol_right&&(t.symbol=e.symbol_right,t.name=e.code+t.symbol),t.code=e.code,t.rate=e.value,y[e.code]=t}
2)),e.next=24,n.dispatch("setcurrencys",y);case 24:return w=l(o),e.next=27,n.dispatch("setviewtype",w);case 27:h();case 28:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}())},Pd=n(267),Ld=n.n(Pd),Id=function(e){e.app.hammer=function(element,e){return new Ld.a(element,e)}},Nd=(n(197),n(59),{install:function(e){e.prototype.fishtools={FISHTOOLS:function(){var e=[],t=[],n=0;self.setInterval((function(){n+=1;for(var i=0;i<t.length;i++)t[i]()}),100),this.trim=function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},this.getStrLength=function(e){return e.replace(/[\u0391-\uFFE5]/g,"aa").length},this.getParameUrl=function(e,t){var n,r="",o=e;for(var i in void 0===o&&(o=window.location.href),n=o.split("?")[0].split("/"),r=n[n.length-1]+"?",t)r=r+"&"+i+"="+t[i];return r},this.getHartNum=function(){return n},this.addKeepRunFun=function(n,r){e.includes(n)||(e.push(n),t.push(r))},this.removeKeepRunFun=function(n){var r=function(t){for(var n,i=0;i<e.length;i++)t===e[i]&&(n=i);return n}(n);e.splice(r,1),t.splice(r,1)}}}}});c.a.use(Nd);var Dd="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},Ud=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fd=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Bd=function(e){return null==e||"function"!=typeof e&&"object"!==(void 0===e?"undefined":Dd(e))},zd=Object.prototype.toString,Hd=function(e){var t=void 0===e?"undefined":Dd(e);return"undefined"===t?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":"[object RegExp]"===(t=zd.call(e))?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":"[object Promise]"===t?"promise":function(e){return e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Map Iterator]"===t?"mapiterator":"[object Set Iterator]"===t?"setiterator":"[object String Iterator]"===t?"stringiterator":"[object Array Iterator]"===t?"arrayiterator":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"};function Vd(e){e=e||{};var t=arguments.length,i=0;if(1===t)return e;for(;++i<t;){var n=arguments[i];Bd(e)&&(e=n),Wd(n)&&jd(e,n)}return e}function jd(e,t){for(var n in function(e,t){if(null==e)throw new TypeError("expected first argument to be an object.");if(void 0===t||"undefined"==typeof Symbol)return e;if("function"!=typeof Object.getOwnPropertySymbols)return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i<o;)for(var c=Object(arguments[i]),l=Object.getOwnPropertySymbols(c),h=0;h<l.length;h++){var f=l[h];n.call(c,f)&&(r[f]=c[f])}}(e,t),t)if("__proto__"!==n&&Gd(t,n)){var r=t[n];Wd(r)?("undefined"===Hd(e[n])&&"function"===Hd(r)&&(e[n]=r),e[n]=Vd(e[n]||{},r)):e[n]=r}return e}function Wd(e){return"object"===Hd(e)||"function"===Hd(e)}function Gd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $d=Vd,Xd="undefined"!=typeof window,qd=function(){if(Xd&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return"isIntersecting"in window.IntersectionObserverEntry.prototype||Ob
2ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0;return!1}();var Yd="event",Zd="observer",Kd=function(){if(Xd)return"function"==typeof window.CustomEvent?window.CustomEvent:(e.prototype=window.Event.prototype,e);function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}();function Jd(e,t){if(e.length){var n=e.indexOf(t);return n>-1?e.splice(n,1):void 0}}function Qd(e,t){if("IMG"===e.tagName&&e.getAttribute("data-srcset")){var n=e.getAttribute("data-srcset"),r=[],o=e.parentNode.offsetWidth*t,c=void 0,l=void 0,h=void 0;(n=n.trim().split(",")).map((function(e){e=e.trim(),-1===(c=e.lastIndexOf(" "))?(l=e,h=999998):(l=e.substr(0,c),h=parseInt(e.substr(c+1,e.length-c-2),10)),r.push([h,l])})),r.sort((function(a,b){if(a[0]<b[0])return 1;if(a[0]>b[0])return-1;if(a[0]===b[0]){if(-1!==b[1].indexOf(".webp",b[1].length-5))return 1;if(-1!==a[1].indexOf(".webp",a[1].length-5))return-1}return 0}));for(var f="",d=void 0,i=0;i<r.length;i++){f=(d=r[i])[1];var m=r[i+1];if(m&&m[0]<o){f=d[1];break}if(!m){f=d[1];break}}return f}}function ep(e,t){for(var n=void 0,i=0,r=e.length;i<r;i++)if(t(e[i])){n=e[i];break}return n}var tp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Xd&&window.devicePixelRatio||e};function np(){if(!Xd)return!1;var e=!0,t=document;try{var n=t.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",t.body.appendChild(n),e=!n.offsetWidth,t.body.removeChild(n)}catch(t){e=!1}return e}var ip=function(){if(Xd){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}}(),ap={on:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];ip?e.addEventListener(t,n,{capture:r,passive:!0}):e.addEventListener(t,n,r)},off:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}},sp=function(e,t,n){var image=new Image;if(!e||!e.src){var r=new Error("image src is required");return n(r)}image.src=e.src,image.onload=function(){t({naturalHeight:image.naturalHeight,naturalWidth:image.naturalWidth,src:image.src})},image.onerror=function(e){n(e)}},style=function(e,t){return"undefined"!=typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},op=function(e){return style(e,"overflow")+style(e,"overflow-y")+style(e,"overflow-x")};function cp(){}var lp=function(){function e(t){var n=t.max;Ud(this,e),this.options={max:n||100},this._caches=[]}return Fd(e,[{key:"has",value:function(e){return this._caches.indexOf(e)>-1}},{key:"add",value:function(e){this.has(e)||(this._caches.push(e),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),e}(),up=function(){function e(t){var n=t.el,r=t.src,o=t.error,c=t.loading,l=t.bindType,h=t.$parent,f=t.options,d=t.elRenderer,m=t.imageCache;Ud(this,e),this.el=n,this.src=r,this.error=o,this.loading=c,this.bindType=l,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=f,this.rect=null,this.$parent=h,this.elRenderer=d,this._imageCache=m,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return Fd(e,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(e){this.performanceData[e]=Date.now()}},{key:"update",value:function(e){var t=e.src,n=e.loading,r=e.error,o=this.src;this.src=t,this.loading=n,this.error=r,this.filter(),o!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var e=this;(function(e){if(!(e instanceof Object))return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t})(this.options.filter).map((function(t){e.options.filter[t](e,e.options)}))}},{key:"renderLoading",value:function(e){var t=this;this.state.loading=!0,sp({src:this.loading},(function(data){t.render("loading",!1),t.state.loading=!1,e()}),(function(){e(),t.state.loading=!1,t.options.silent}))}},{key:"load",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cp;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent,void t()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,t()):void this.renderLoading((function(){e.attempt++,e.options.adapter.beforeLoad&&e.options.adapter.beforeLoad(e,e.options),e.record("loadStart"),sp({src:e.src}
2,(function(data){e.naturalHeight=data.naturalHeight,e.naturalWidth=data.naturalWidth,e.state.loaded=!0,e.state.error=!1,e.record("loadEnd"),e.render("loaded",!1),e.state.rendered=!0,e._imageCache.add(e.src),t()}),(function(t){e.options.silent,e.state.error=!0,e.state.loaded=!1,e.render("error",!1)}))}))}},{key:"render",value:function(e,t){this.elRenderer(this,e,t)}},{key:"performance",value:function(){var e="loading",time=0;return this.state.loaded&&(e="loaded",time=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:time}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),e}(),hp="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",fp=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],dp={rootMargin:"0px",threshold:0},pp=function(e){return function(){function t(e){var n,r,o,c,l=e.preLoad,h=e.error,f=e.throttleWait,d=e.preLoadTop,m=e.dispatchEvent,v=e.loading,_=e.attempt,y=e.silent,w=void 0===y||y,x=e.scale,S=e.listenEvents,filter=(e.hasbind,e.filter),T=e.adapter,E=e.observer,M=e.observerOptions;Ud(this,t),this.version="1.3.3",this.mode=Yd,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:w,dispatchEvent:!!m,throttleWait:f||200,preLoad:l||1.3,preLoadTop:d||0,error:h||hp,loading:v||hp,attempt:_||3,scale:x||tp(x),ListenEvents:S||fp,hasbind:!1,supportWebp:np(),filter:filter||{},adapter:T||{},observer:!!E,observerOptions:M||dp},this._initEvent(),this._imageCache=new lp({max:200}),this.lazyLoadHandler=(n=this._lazyLoadHandler.bind(this),r=this.options.throttleWait,o=null,c=0,function(){if(!o){var e=Date.now()-c,t=this,l=arguments,h=function(){c=Date.now(),o=!1,n.apply(t,l)};e>=r?h():o=setTimeout(h,r)}}),this.setMode(this.options.observer?Zd:Yd)}return Fd(t,[{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$d(this.options,e)}},{key:"performance",value:function(){var e=[];return this.ListenerQueue.map((function(t){e.push(t.performance())})),e}},{key:"addLazyBox",value:function(e){this.ListenerQueue.push(e),Xd&&(this._addListenerTarget(window),this._observer&&this._observer.observe(e.el),e.$el&&e.$el.parentNode&&this._addListenerTarget(e.$el.parentNode))}},{key:"add",value:function(t,n,r){var o=this;if(function(e,t){for(var n=!1,i=0,r=e.length;i<r;i++)if(t(e[i])){n=!0;break}return n}(this.ListenerQueue,(function(e){return e.el===t})))return this.update(t,n),e.nextTick(this.lazyLoadHandler);var c=this._valueFormatter(n.value),l=c.src,h=c.loading,f=c.error;e.nextTick((function(){l=Qd(t,o.options.scale)||l,o._observer&&o._observer.observe(t);var c=Object.keys(n.modifiers)[0],d=void 0;c&&(d=(d=r.context.$refs[c])?d.$el||d:document.getElementById(c)),d||(d=function(e){if(Xd){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(op(t)))return t;t=t.parentNode}return window}}(t));var m=new up({bindType:n.arg,$parent:d,el:t,loading:h,error:f,src:l,elRenderer:o._elRenderer.bind(o),options:o.options,imageCache:o._imageCache});o.ListenerQueue.push(m),Xd&&(o._addListenerTarget(window),o._addListenerTarget(d)),o.lazyLoadHandler(),e.nextTick((function(){return o.lazyLoadHandler()}))}))}},{key:"update",value:function(t,n,r){var o=this,c=this._valueFormatter(n.value),l=c.src,h=c.loading,f=c.error;l=Qd(t,this.options.scale)||l;var d=ep(this.ListenerQueue,(function(e){return e.el===t}));d?d.update({src:l,loading:h,error:f}):this.add(t,n,r),this._observer&&(this._observer.unobserve(t),this._observer.observe(t)),this.lazyLoadHandler(),e.nextTick((function(){return o.lazyLoadHandler()}))}},{key:"remove",value:function(e){if(e){this._observer&&this._observer.unobserve(e);var t=ep(this.ListenerQueue,(function(t){return t.el===e}));t&&(this._removeListenerTarget(t.$parent),this._removeListenerTarget(window),Jd(this.ListenerQueue,t),t.$destroy())}}},{key:"removeComponent",value:function(e){e&&(Jd(this.ListenerQueue,e),this._observer&&this._observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this._removeListenerTarget(e.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(e){var t=this;qd||e!==Zd||(e=Yd),this.mode=e,e===Yd?(this._observer&&(this.ListenerQueue.forEach((function(e){t._observer.unobserve(e.el)})),this._observer=null),this.TargetQueue.forEach((function(e){t._initListen(e.el,!0)}))):(this.TargetQueue.forEach((function(e){t._initListen(e.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(e){if(e){var t=ep(this.TargetQueue,(function(t){return t.el===e}));return t?t.childrenCount++:(t={el:e,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===Yd&&this._initListen(t.el,!0),this.TargetQueue.push(t)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(e){var t=this;this.TargetQueue.forEach((function(n,r){n.el===e&&(n.childrenCount--,n.childrenCount||(t._initListen(n.el,!1),t.TargetQueue.splice(r,1),n=null))}))}},{key:"_initListen",value:function(e,t){var n=this;
2this.options.ListenEvents.forEach((function(r){return ap[t?"on":"off"](e,r,n.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var e=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(t,n){e.Event.listeners[t]||(e.Event.listeners[t]=[]),e.Event.listeners[t].push(n)},this.$once=function(t,n){var r=e;e.$on(t,(function e(){r.$off(t,e),n.apply(r,arguments)}))},this.$off=function(t,n){if(n)Jd(e.Event.listeners[t],n);else{if(!e.Event.listeners[t])return;e.Event.listeners[t].length=0}},this.$emit=function(t,n,r){e.Event.listeners[t]&&e.Event.listeners[t].forEach((function(e){return e(n,r)}))}}},{key:"_lazyLoadHandler",value:function(){var e=this,t=[];this.ListenerQueue.forEach((function(e,n){e.el&&e.el.parentNode||t.push(e),e.checkInView()&&e.load()})),t.forEach((function(t){Jd(e.ListenerQueue,t),t.$destroy()}))}},{key:"_initIntersectionObserver",value:function(){var e=this;qd&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(t){e._observer.observe(t.el)})))}},{key:"_observerHandler",value:function(e,t){var n=this;e.forEach((function(e){e.isIntersecting&&n.ListenerQueue.forEach((function(t){if(t.el===e.target){if(t.state.loaded)return n._observer.unobserve(t.el);t.load()}}))}))}},{key:"_elRenderer",value:function(e,t,n){if(e.el){var r=e.el,o=e.bindType,c=void 0;switch(t){case"loading":c=e.loading;break;case"error":c=e.error;break;default:c=e.src}if(o?r.style[o]='url("'+c+'")':r.getAttribute("src")!==c&&r.setAttribute("src",c),r.setAttribute("lazy",t),this.$emit(t,e,n),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){var l=new Kd(t,{detail:e});r.dispatchEvent(l)}}}},{key:"_valueFormatter",value:function(e){var t,n=e,r=this.options.loading,o=this.options.error;return null!==(t=e)&&"object"===(void 0===t?"undefined":Dd(t))&&(!e.src&&this.options.silent,n=e.src,r=e.loading||this.options.loading,o=e.error||this.options.error),{src:n,loading:r,error:o}}}]),t}()},mp=function(e){return{props:{tag:{type:String,default:"div"}},render:function(e){return!1===this.show?e(this.tag):e(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),Xd&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy:function(){return this.$destroy}}}},gp=function(){function e(t){var n=t.lazy;Ud(this,e),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return Fd(e,[{key:"bind",value:function(e,t,n){var r=new _p({el:e,binding:t,vnode:n,lazy:this.lazy});this._queue.push(r)}},{key:"update",value:function(e,t,n){var r=ep(this._queue,(function(t){return t.el===e}));r&&r.update({el:e,binding:t,vnode:n})}},{key:"unbind",value:function(e,t,n){var r=ep(this._queue,(function(t){return t.el===e}));r&&(r.clear(),Jd(this._queue,r))}}]),e}(),vp={selector:"img"},_p=function(){function e(t){var n=t.el,r=t.binding,o=t.vnode,c=t.lazy;Ud(this,e),this.el=null,this.vnode=o,this.binding=r,this.options={},this.lazy=c,this._queue=[],this.update({el:n,binding:r})}return Fd(e,[{key:"update",value:function(e){var t=this,n=e.el,r=e.binding;this.el=n,this.options=$d({},vp,r.value),this.getImgs().forEach((function(e){t.lazy.add(e,$d({},t.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||t.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||t.options.loading}}),t.vnode)}))}},{key:"getImgs",value:function(){return function(e){for(var t=e.length,n=[],i=0;i<t;i++)n.push(e[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var e=this;
2this.getImgs().forEach((function(t){return e.lazy.remove(t)})),this.vnode=null,this.binding=null,this.lazy=null}}]),e}(),yp=function(e){return{props:{src:[String,Object],tag:{type:String,default:"img"}},render:function(e){return e(this.tag,{attrs:{src:this.renderSrc}},this.$slots.default)},data:function(){return{el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}},watch:{src:function(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created:function(){this.init(),this.renderSrc=this.options.loading},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{init:function(){var t=e._valueFormatter(this.src),n=t.src,r=t.loading,o=t.error;this.state.loaded=!1,this.options.src=n,this.options.error=o,this.options.loading=r,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),Xd&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cp;if(this.state.attempt>this.options.attempt-1&&this.state.error)return e.options.silent,void n();var r=this.options.src;sp({src:r},(function(e){var n=e.src;t.renderSrc=n,t.state.loaded=!0}),(function(e){t.state.attempt++,t.renderSrc=t.options.error,t.state.error=!0}))}}}},bp={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=pp(e),r=new n(t),o=new gp({lazy:r}),c="2"===e.version.split(".")[0];e.prototype.$Lazyload=r,t.lazyComponent&&e.component("lazy-component",mp(r)),t.lazyImage&&e.component("lazy-image",yp(r)),c?(e.directive("lazy",{bind:r.add.bind(r),update:r.update.bind(r),componentUpdated:r.lazyLoadHandler.bind(r),unbind:r.remove.bind(r)}),e.directive("lazy-container",{bind:o.bind.bind(o),componentUpdated:o.update.bind(o),unbind:o.unbind.bind(o)})):(e.directive("lazy",{bind:r.lazyLoadHandler.bind(r),update:function(e,t){$d(this.vm.$refs,this.vm.$els),r.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){r.remove(this.el)}}),e.directive("lazy-container",{update:function(e,t){o.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){o.unbind(this.el)}}))}};c.a.use(bp,{loading:n(375),error:n(376)});var i,s,wp,xp,a,Sp,Tp=function(e){var t=e.app,n=e.store,o=(e.req,e.$axios),c=(e.redirect,e.route),l=(e.$getUserinfo,e.$serverConsole);function h(e,t){try{var n=JSON.parse(JSON.stringify(e)),r=!1;for(var o in n){JSON.stringify(n[o])!==JSON.stringify(t[o])&&t[o]&&(n[o]=t[o],r=!0)}return r||(n=!1),n}catch(e){l("updateUserInfo error:",e)}}function f(e){return d.apply(this,arguments)}function d(){return(d=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.post("guestToken");case 3:if(n=e.sent,r=!1,c={},0===n.code){e.next=9;break}return l(n.msg),e.abrupt("return",!1);case 9:return r=n.data.token,c.newShopToken=r,c.timeMark=t,c.identity="guest",e.next=15,S(c);case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),l("guestLogin error:",e.t0);case 20:case"end":return e.stop()}}),e,null,[[0,17]])})))).apply(this,arguments)}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.get("getUCToken",{withCredentials:!0,proxy:!0});case 3:return t=e.sent,n=!1,0===t.code?n=t.data.app_auth_token:l("getUCToken !== 0",t),e.abrupt("return",n);case 9:e.prev=9,e.t0=e.catch(0),l("checkUCLogin error: ",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function _(e,t){return y.apply(this,arguments)}function y(){return(y=Object(r.a)(regeneratorRuntime.mark((function e(t,param){var n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=sessionStorage.getItem("tracking"),e.next=4,o.post("getNewSh
2opToken",{app_auth_token:t,affiliate_code:n},param);case 4:return r=e.sent,c=!1,0===r.code?c=r.data.token:l("getNewShopToken !== 0",r),e.abrupt("return",c);case 10:e.prev=10,e.t0=e.catch(0),l("getNewShopToken error:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function w(e){return x.apply(this,arguments)}function x(){return(x=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.get("getMeInfo",{Authorization:t});case 3:return n=e.sent,r=!1,0===n.code?r=n.data:l("getMeInfo Code !== 0",n),e.abrupt("return",r);case 9:e.prev=9,e.t0=e.catch(0),l("getMeInfo error:",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function S(e){return T.apply(this,arguments)}function T(){return(T=Object(r.a)(regeneratorRuntime.mark((function e(data){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,(t=localStorage.getItem("warehouse"))&&"distributor"!==data.identity?data.warehouse=t:data.warehouse=Ce.a,e.next=5,n.dispatch("login",data);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),l("store dispatch login error:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function E(){return M.apply(this,arguments)}function M(){return(M=Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.dispatch("logout");case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),l("store dispatch logout error:",e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))).apply(this,arguments)}t.router.beforeEach(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t,r,o){var d,v,y,x,T,M,A,C,R,k,O,P,L;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d=n.state.authUser,v=864e5,y=(new Date).getTime(),x=!1,e.next=7,m();case 7:if(T=e.sent,M="",A=!1,C=/^account(-\w+)*$/,R=c.name,!T){e.next=41;break}if(d?"guest"===d.identity?(M=d.newShopToken,x=!0):y>parseInt(d.timeMark)+v?x=!0:d&&d.ucToken:x=!0,!x){e.next=31;break}return e.next=17,_(T,{Authorization:M});case 17:return k=e.sent,e.next=20,w(k);case 20:return O=e.sent,(d=O).ucToken=T,d.newShopToken=k,d.timeMark=y,8===d.customer_group_id?d.identity="user":d.identity="distributor",e.next=28,S(d);case 28:A=!0,e.next=39;break;case 31:return e.next=33,w(d.newShopToken);case 33:if(P=e.sent,!(L=h(d,P))){e.next=39;break}return e.next=38,S(L);case 38:A=!0;case 39:e.next=59;break;case 41:if(T||!d){e.next=56;break}if("guest"===d.identity){e.next=48;break}return e.next=45,E();case 45:return e.next=47,f(y);case 47:A=!0;case 48:if(!("guest"===d.identity&&y>parseInt(d.timeMark)+v)){e.next=54;break}return e.next=51,E();case 51:return e.next=53,f(y);case 53:A=!0;case 54:e.next=59;break;case 56:return e.next=58,f(y);case 58:A=!0;case 59:A?location.reload():"guest"===d.identity&&C.test(R)?window.location.href="/login?backurl="+encodeURIComponent(c.path):o(),e.next=65;break;case 62:e.prev=62,e.t0=e.catch(0),l("router before each error:",e.t0);case 65:case"end":return e.stop()}}),e,null,[[0,62]])})));return function(t,n,r){return e.apply(this,arguments)}}())};i=window,s=document,wp="script",xp="ga",i.GoogleAnalyticsObject=xp,i.ga=i.ga||function(){(i.ga.q=i.ga.q||[]).push(arguments)},i.ga.l=1*new Date,a=s.createElement(wp),Sp=s.getElementsByTagName(wp)[0],a.async=1,a.src="https://www.google-analytics.com/analytics.js",Sp.parentNode.insertBefore(a,Sp),ga("create","UA-16770142-1","auto");var Ep=function(e){var t=e.app.router;e.store;t.afterEach((function(e,t){ga("set","page",e.fullPath),ga("send","pageview")}))},Mp=n(203),Ap=function(e,t){t("three",Mp)};function Cp(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Rp(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?Cp(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Cp(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}c.a.component(f.a.name,f.a),c.a.component(m.a.name,Rp(Rp({},m.a),{},{render:function(e,t){return m.a._warned||(m.a._warned=!0),m.a.render(e,t)}})),c.a.component(k.name,k),c.a.component("NChild",k),c.a.component(z.name,z),c.a.use(l.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var kp={name:"page",mode:"out-in",appear:!1,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function Op(e){return Pp.apply(this,arguments)}function Pp(){return(Pp=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o,l,h,f,d,path,m,v=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===t)throw new Error("inject('".concat(e,"', value) has no value provided"));h[e="$"+e]=t,h.context[e]||(h.context[e]=t),o[e]=h[e];var n="__nuxt_"+e+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,e)||Object.defineProperty(c.a.prototype,e,{get:function(){return this.$root.$options[e]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},e.next=4,R();case 4:return r=e.sent,(o=ae(t)).$router=r,l=o.registerModule,o.registerModule=function(path,e,t){return l.call(o,path,e,Object.assign({preserveState:!0},t))},h=Rp({head:{meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"},{name:"apple-mobile-web-app-capable",content:"yes"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],script:[],style:[]},store:o,router:r,nuxt:{defaultTransition:kp,transitions:[kp],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map((function(e){return e=e?"string"==typeof e?Object.assign({},kp,{name:e}):Object.assign({},kp,e):kp})),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,h.context._errored=Boolean(e),e=e?Object(_.p)(e):null;var n=h.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},ne),o.app=h,f=t?t.next:function(e){return h.router.push(e)},t?d=r.resolve(t.url).route:(path=Object(_.f)(r.options.base,r.options.mode),d=r.resolve(path).route),e.next=15,Object(_.t)(h,{store:o,route:d,next:f,error:h.nuxt.error.bind(h),payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0,ssrContext:t});case 15:m("config",n),window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),e.next=21;break;case 21:return e.next=24,ue(h.context);case 24:return e.next=27,Se(h.context,m);case 27:return e.next=30,Ne(h.context,m);case 30:return e.next=33,Fe(h.context,m);case 33:return e.next=36,Be(h.context);case 36:return e.next=39,We(h.context,m);case 39:e.next=42;break;case 42:return e.next=45,kd(h.context,m);case 45:return e.next=48,Od(h.context);case 48:return e.next=51,Id(h.context);case 51:e.next=54;break;case 54:e.next=57;break;case 57:return e.next=60,Tp(h.context);case 60:return e.next=63,Ep(h.context);case 63:return e.next=66,Ap(h.context,m);case 66:0,e.next=70;break;case 70:return e.abrupt("return",{store:o,app:h,router:r});case 71:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(9),o=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],c=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},l=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],h=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)};function f(e){for(var t=Array(3),n=c,l=o,i=0;i<3;++i)t[i]=Math.round(255*Object(r.c)(n(l[i][0]*e[0]+l[i][1]*e[1]+l[i][2]*e[2])));return(t[0]<<16)+(t[1]<<8)+(t[2]<<0)}function d(e){for(var t=[0,0,0],n=h,r=l,o=n((e>>16&255)/255),g=n((e>>8&255)/255),b=n((e>>0&255)/255),i=0;i<3;++i)t[i]=r[i][0]*o+r[i][1]*g+r[i][2]*b;return t}},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var h=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||h):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},,function(e,t,n){"use strict";n.r(t);var r={props:{show:{type:Boolean,default:!1},force:{type:Boolean,default:!1}}
2,fetch:function(){this.viewType=this.$getVT()},data:function(){return{}},watch:{show:function(e,t){if(window)if(e){var n=window.pageYOffset,body=document.body;body.style.overflow="hidden",body.style.position="fixed",body.style.left="0",body.style.right="0",body.style.top="-".concat(n,"px")}else{var r=document.body;r.style.overflow="",r.style.position="",r.style.left="",r.style.right="",r.style.top=""}}},method:{}},o=(n(336),n(5)),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"pop-box-with-slot",class:e.force?"force":"",attrs:{"data-theme":e.viewType}},[e.force?n("div",{staticClass:"cover"}):n("div",{staticClass:"cover",on:{click:function(t){return e.$emit("close")}}}),e._v(" "),n("div",{staticClass:"box"},[n("button",{staticClass:"close-btn",on:{click:function(t){return e.$emit("close")}}},[n("i",{staticClass:"iconfont icon-icon-test"})]),e._v(" "),e._t("default")],2)]):e._e()}),[],!1,null,null,null);t.default=component.exports},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return ae}));n(28),n(46),n(52),n(29);var r=n(25),o=n(49),c=n(1),l=n(30);n(14),n(84),n(22);var h=n(100),f=n(42),d=n(33),m=n(19),v=(n(342),{breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:{badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."}},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}}),_=n(9),y=n(41);function w(e){var t=function(){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}}();return function(){var n,r=Object(m.a)(e);if(t){var o=Object(m.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var x=function(e){Object(f.a)(n,e);var t=w(n);function n(e,o){var c;Object(r.a)(this,n),c=t.call(this);var f=Object(_.r)({},v),d=o.userPreset,m=d.preset,y=void 0===m?{}:m,w=Object(h.a)(d,["preset"]);return null!=y.preset&&Object(l.c)("Global presets do not support the **preset** option, it can be safely omitted"),o.preset=Object(_.r)(Object(_.r)(f,y),w),c}return n}(y.a);x.property="presets";n(125),n(202);function S(e){var t=function(){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}}();return function(){var n,r=Object(m.a)(e);if(t){var o=Object(m.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var T=function(e){Object(f.a)(n,e);var t=S(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).bar=0,e.top=0,e.left=0,e.insetFooter=0,e.right=0,e.bottom=0,e.footer=0,e.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}},e}return Object(o.a)(n,[{key:"register",value:function(e,t,n){this.application[t][e]=n,this.update(t)}},{key:"unregister",value:function(e,t){null!=this.application[t][e]&&(delete this.application[t][e],this.update(t))}},{key:"update",value:function(e){this[e]=Object.values(this.application[e]).reduce((function(e,t){return e+t}),0)}}]),n}(y.a);T.property="application";n(18),n(59);function E(e){var t=function(){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}}();return function(){var n,r=Object(m.a)(e);if(t){var o=Object(m.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var M=function(e){Object(f.a)(n,e);var t=E(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this)).xs=!1,o.sm=!1,o.md=!1,o.lg=!1,o.xl=!1,o.xsOnly=!1,o.smOnly=!1,o.smAndDown=!1,o.smAndUp=!1,o.mdOnly=!1,o.mdA
2ndDown=!1,o.mdAndUp=!1,o.lgOnly=!1,o.lgAndDown=!1,o.lgAndUp=!1,o.xlOnly=!1,o.name="xs",o.height=0,o.width=0,o.mobile=!0,o.resizeTimeout=0;var c=e[n.property],l=c.mobileBreakpoint,h=c.scrollBarWidth,f=c.thresholds;return o.mobileBreakpoint=l,o.scrollBarWidth=h,o.thresholds=f,o}return Object(o.a)(n,[{key:"init",value:function(){this.update(),"undefined"!=typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?0:this.getClientHeight(),n=e?0:this.getClientWidth(),r=n<this.thresholds.xs,o=n<this.thresholds.sm&&!r,c=n<this.thresholds.md-this.scrollBarWidth&&!(o||r),l=n<this.thresholds.lg-this.scrollBarWidth&&!(c||o||r),h=n>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=n,this.xs=r,this.sm=o,this.md=c,this.lg=l,this.xl=h,this.xsOnly=r,this.smOnly=o,this.smAndDown=(r||o)&&!(c||l||h),this.smAndUp=!r&&(o||c||l||h),this.mdOnly=c,this.mdAndDown=(r||o||c)&&!(l||h),this.mdAndUp=!(r||o)&&(c||l||h),this.lgOnly=l,this.lgAndDown=(r||o||c||l)&&!h,this.lgAndUp=!(r||o||c)&&(l||h),this.xlOnly=h,!0){case r:this.name="xs";break;case o:this.name="sm";break;case c:this.name="md";break;case l:this.name="lg";break;default:this.name="xl"}if("number"!=typeof this.mobileBreakpoint){var f={xs:0,sm:1,md:2,lg:3,xl:4},d=f[this.name],m=f[this.mobileBreakpoint];this.mobile=d<=m}else this.mobile=n<parseInt(this.mobileBreakpoint,10)}},{key:"onResize",value:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}},{key:"getClientWidth",value:function(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}},{key:"getClientHeight",value:function(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}]),n}(y.a);M.property="breakpoint";var A=n(398),C=(n(62),n(242),{complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 
212,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"}),R={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},k={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},O={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},P={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",s
2ort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};n(21),n(53);var L=function(component,e){var t={};for(var n in e)t[n]={component:component,props:{icon:e[n].split(" fa-")}};return t}("font-awesome-icon",O),I=Object.freeze({mdiSvg:C,md:R,mdi:k,fa:O,fa4:P,faSvg:L});function N(e){var t=function(){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}}();return function(){var n,r=Object(m.a)(e);if(t){var o=Object(m.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var D=function(e){Object(f.a)(n,e);var t=N(n);function n(e){var o;Object(r.a)(this,n),o=t.call(this);var c=e[n.property],l=c.iconfont,h=c.values,component=c.component;return o.component=component,o.iconfont=l,o.values=Object(_.r)(I[l],h),o}return n}(y.a);D.property="icons";n(35),n(68),n(24),n(58),n(70);function U(e){var t=function(){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}}();return function(){var n,r=Object(m.a)(e);if(t){var o=Object(m.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var F=Symbol("Lang fallback");var B=function(e){Object(f.a)(n,e);var t=U(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this)).defaultLocale="en";var c=e[n.property],l=c.current,h=c.locales,f=c.t;return o.current=l,o.locales=h,o.translator=f||o.defaultTranslator,o}return Object(o.a)(n,[{key:"currentLocale",value:function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0,c=n.replace("$vuetify.",""),h=Object(_.j)(t,c,F);return h===F&&(r?(Object(l.b)('Translation key "'.concat(c,'" not found in fallback')),h=n):(Object(l.c)('Translation key "'.concat(c,'" not found, falling back to default')),h=e(o,n,!0,o))),h}(this.locales[this.current],e,!1,this.locales[this.defaultLocale])}},{key:"t",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.startsWith("$vuetify.")?this.translator.apply(this,[e].concat(n)):this.replace(e,n)}},{key:"defaultTranslator",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.replace(this.currentLocale(e),n)}},{key:"replace",value:function(e,t){return e.replace(/\{(\d+)\}/g,(function(e,n){return String(t[+n])}))}}]),n}(y.a);B.property="lang";n(98),n(36),n(343);var z=n(12),H=n(27),V=n(57),j=n(75),W=(n(344),.20689655172413793),G=function(e){return e>Math.pow(W,3)?Math.cbrt(e):e/(3*Math.pow(W,2))+4/29},$=function(e){return e>W?Math.pow(e,3):3*Math.pow(W,2)*(e-4/29)};function X(e){var t=G,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Y(e){var t=$,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}var Z=function(e,t){return"\n.v-application .".concat(e," {\n  background-color: ").concat(t," !important;\n  border-color: ").concat(t," !important;\n}\n.v-application .").concat(e,"--text {\n  color: ").concat(t," !important;\n  caret-color: ").concat(t," !important;\n}")},K=function(e,t,n){var r=t.split(/(\d)/,2),o=Object(z.a)(r,2),c=o[0],l=o[1];return"\n.v-application .".concat(e,".").concat(c,"-").concat(l," {\n  background-color: ").concat(n," !important;\n  border-color: ").concat(n," !important;\n}\n.v-application .").concat(e,"--text.text--").concat(c,"-").concat(l," {\n  
2color: ").concat(n," !important;\n  caret-color: ").concat(n," !important;\n}")},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return"--v-".concat(e,"-").concat(t)},Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"base";return"var(".concat(J(e,t),")")};function ee(e,t){for(var n={base:Object(V.c)(t)},i=5;i>0;--i)n["lighten".concat(i)]=Object(V.c)(te(t,i));for(var r=1;r<=4;++r)n["darken".concat(r)]=Object(V.c)(ne(t,r));return n}function te(e,t){var n=X(j.b(e));return n[0]=n[0]+10*t,j.a(Y(n))}function ne(e,t){var n=X(j.b(e));return n[0]=n[0]-10*t,j.a(Y(n))}function re(e){var t=function(){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}}();return function(){var n,r=Object(m.a)(e);if(t){var o=Object(m.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var ie=function(e){Object(f.a)(n,e);var t=re(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this)).disabled=!1,o.isDark=null,o.unwatch=null,o.vueMeta=null;var c=e[n.property],l=c.dark,h=c.disable,f=c.options,m=c.themes;return o.dark=Boolean(l),o.defaults=o.themes=m,o.options=f,h?(o.disabled=!0,Object(d.a)(o)):(o.themes={dark:o.fillVariant(m.dark,!0),light:o.fillVariant(m.light,!1)},o)}return Object(o.a)(n,[{key:"applyTheme",value:function(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}},{key:"clearCss",value:function(){this.css=""}},{key:"init",value:function(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}},{key:"setTheme",value:function(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}},{key:"resetThemes",value:function(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}},{key:"checkOrCreateStyleElement",value:function(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}},{key:"fillVariant",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=this.themes[t?"dark":"light"];return Object.assign({},n,e)}},{key:"genStyleElement",value:function(){"undefined"!=typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}},{key:"initVueMeta",value:function(e){var t=this;if(this.vueMeta=e.$meta(),this.isVueMeta23)e.$nextTick((function(){t.applyVueMeta23()}));else{var n="function"==typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",r=e.$options[n]||{};e.$options[n]=function(){r.style=r.style||[];var e=r.style.find((function(s){return"vuetify-theme-stylesheet"===s.id}));return e?e.cssText=t.generatedStyles:r.style.push({cssText:t.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(t.options||{}).cspNonce}),r}}}},{key:"applyVueMeta23",value:function(){(0,this.vueMeta.addApp("vuetify").set)({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}},{key:"initSSR",value:function(e){var t=this.options.cspNonce?' nonce="'.concat(this.options.cspNonce,'"'):"";e.head=e.head||"",e.head+='<style type="text/css" id="vuetify-theme-stylesheet"'.concat(t,">").concat(this.generatedStyles,"</style>")}},{key:"initTheme",value:function(e){var t=this;"undefined"!=typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",(function(){var n=c.a.observable({themes:t.themes});t.unwatch=e.$watch((function(){return n.themes}),(function(){return t.applyTheme()}),{deep:!0})})),this.applyTheme())}},{key:"css",set:function(e){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&
2(this.styleEl.innerHTML=e)}},{key:"dark",set:function(e){var t=this.isDark;this.isDark=e,null!=t&&this.applyTheme()},get:function(){return Boolean(this.isDark)}},{key:"currentTheme",get:function(){var e=this.dark?"dark":"light";return this.themes[e]}},{key:"generatedStyles",get:function(){var e,t=this.parsedTheme,n=this.options||{};return null!=n.themeCache&&null!=(e=n.themeCache.get(t))||(e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.anchor,r=Object(h.a)(e,["anchor"]),o=Object.keys(r);if(!o.length)return"";var c="",l="",f=t?Q("anchor"):n;l+=".v-application a { color: ".concat(f,"; }"),t&&(c+="  ".concat(J("anchor"),": ").concat(n,";\n"));for(var i=0;i<o.length;++i){var d=o[i],m=e[d];l+=Z(d,t?Q(d):m.base),t&&(c+="  ".concat(J(d),": ").concat(m.base,";\n"));for(var v=Object(_.q)(m),y=0;y<v.length;++y){var w=v[y],x=m[w];"base"!==w&&(l+=K(d,w,t?Q(d,w):x),t&&(c+="  ".concat(J(d,w),": ").concat(x,";\n")))}}return t&&(c=":root {\n".concat(c,"}\n\n")),c+l}(t,n.customProperties),null!=n.minifyTheme&&(e=n.minifyTheme(e)),null!=n.themeCache&&n.themeCache.set(t,e)),e}},{key:"parsedTheme",get:function(){return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.anchor,c=Object(h.a)(t,["anchor"]),l=Object.keys(c),f={},i=0;i<l.length;++i){var d=l[i],m=t[d];null!=m&&(r?n?("base"===d||d.startsWith("lighten")||d.startsWith("darken"))&&(f[d]=Object(V.a)(m)):"object"===Object(H.a)(m)?f[d]=e(m,!0,r):f[d]=ee(d,Object(V.b)(m)):f[d]={base:Object(V.c)(Object(V.b)(m))})}return n||(f.anchor=o||f.base||f.primary.base),f}(this.currentTheme||{},void 0,Object(_.i)(this.options,["variations"],!0))}},{key:"isVueMeta23",get:function(){return"function"==typeof this.vueMeta.addApp}}]),n}(y.a);ie.property="theme";var ae=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e),this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=t,this.use(x),this.use(T),this.use(M),this.use(A.a),this.use(D),this.use(B),this.use(ie)}return Object(o.a)(e,[{key:"init",value:function(e,t){var n=this;this.installed.forEach((function(r){var o=n.framework[r];o.framework=n.framework,o.init(e,t)})),this.framework.rtl=Boolean(this.preset.rtl)}},{key:"use",value:function(e){var t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}]),e}();ae.install=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0,c.a!==t&&Object(l.b)("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");var r=n.components||{},o=n.directives||{};for(var h in o){var f=o[h];t.directive(h,f)}!function e(n){if(n){for(var r in n){var component=n[r];component&&!e(component.$_vuetify_subcomponents)&&t.component(r,component)}return!0}return!1}(r),t.$_vuetify_installed||(t.$_vuetify_installed=!0,t.mixin({beforeCreate:function(){var e=this.$options;e.vuetify?(e.vuetify.init(this,this.$ssrContext),this.$vuetify=t.observable(e.vuetify.framework)):this.$vuetify=e.parent&&e.parent.$vuetify||this},beforeMount:function(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted:function(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}},ae.installed=!1,ae.version="2.7.2",ae.config={silent:!1}},,,,,,function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return y}));n(46),n(21),n(52),n(58);var r=n(31),o=n.n(r),c=n(260),l=n.n(c),h=n(261),f=n.n(h),d=n(32);o.a.extend(l.a),o.a.extend(f.a);var m=o.a,v="Black Friday 2025",_="30% OFF FOR FIRST UNIT";function y(e,t){var n=!0;try{var r=o()().utc(),c=o.a.tz("2025-11-24 14:00:00","Asia/Shanghai").utc(),l=o.a.tz("2025-12-01 14:00:00","Asia/Shanghai").utc(),h=r.diff(c,"second"),f=l.diff(r,"second"),m=t.warehouse||d.a,_=e.attribute.black_friday_event_tags,y=m===d.a?"quantity_status":"quantity_status_"+m.replace("-","_");
2return(h<0||f<0)&&(n=!1),_&&_.includes(v)&&_.includes("enjoy discounts on the ".concat(m," website"))||(n=!1),"None"===e[y]&&(n=!1),"distributor"===t.identity&&(n=!1),n}catch(e){return!1}}},,,,,,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";n(35),n(68),n(77),n(34),n(28),n(67),n(46),n(37),n(61),n(18),n(14),n(22),n(52),n(60),n(29),n(62),n(59);var r=n(1);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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,l=!0,h=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){h=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(h)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var l=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},h=window.cancelIdleCallback||function(e){clearTimeout(e)},f=window.IntersectionObserver&&new window.IntersectionObserver((function(e){e.forEach((function(e){var t=e.intersectionRatio,link=e.target;t<=0||link.__prefetch()}))}));t.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=l(this.observe,{timeout:2e3}))},beforeDestroy:function(){h(this.handleId),this.__observed&&(f.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){f&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),f.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(e){return e.components.default})).filter((function(e){return"function"==typeof e&&!e.options&&!e.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){f.unobserve(this.$el);var e,t=o(this.getPrefetchComponents());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(e){t.e(e)}finally{t.f()}}}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r={};r.mobile=n(319),r.mobile=r.mobile.default||r.mobile,t.a=r},function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var h=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||h)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||h):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},,function(e,t,n){var r;!function(o){"use strict";var c,l,h,f=9e15,d="0123456789abcdef",m="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",v="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823
2066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",_={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-f,maxE:f,crypto:!1},y=!0,w="[DecimalError] Invalid argument: ",x="[object Decimal]",S=Math.floor,T=Math.pow,E=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,M=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,A=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,R=1e7,k=m.length-1,O=v.length-1,P={toStringTag:x};function L(e){var i,t,n,r=e.length-1,o="",c=e[0];if(r>0){for(o+=c,i=1;i<r;i++)(t=7-(n=e[i]+"").length)&&(o+=W(t)),o+=n;(t=7-(n=(c=e[i])+"").length)&&(o+=W(t))}else if(0===c)return"0";for(;c%10==0;)c/=10;return o+c}function I(i,e,t){if(i!==~~i||i<e||i>t)throw Error(w+i)}function N(e,i,t,n){var r,o,c,l;for(o=e[0];o>=10;o/=10)--i;return--i<0?(i+=7,r=0):(r=Math.ceil((i+1)/7),i%=7),o=T(10,7-i),l=e[r]%o|0,null==n?i<3?(0==i?l=l/100|0:1==i&&(l=l/10|0),c=t<4&&99999==l||t>3&&49999==l||5e4==l||0==l):c=(t<4&&l+1==o||t>3&&l+1==o/2)&&(e[r+1]/o/100|0)==T(10,i-2)-1||(l==o/2||0==l)&&0==(e[r+1]/o/100|0):i<4?(0==i?l=l/1e3|0:1==i?l=l/100|0:2==i&&(l=l/10|0),c=(n||t<4)&&9999==l||!n&&t>3&&4999==l):c=((n||t<4)&&l+1==o||!n&&t>3&&l+1==o/2)&&(e[r+1]/o/1e3|0)==T(10,i-3)-1,c}function D(e,t,n){for(var r,o,c=[0],i=0,l=e.length;i<l;){for(o=c.length;o--;)c[o]*=t;for(c[0]+=d.indexOf(e.charAt(i++)),r=0;r<c.length;r++)c[r]>n-1&&(void 0===c[r+1]&&(c[r+1]=0),c[r+1]+=c[r]/n|0,c[r]%=n)}return c.reverse()}P.absoluteValue=P.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),F(e)},P.ceil=function(){return F(new this.constructor(this),this.e+1,2)},P.clampedTo=P.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(w+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},P.comparedTo=P.cmp=function(e){var i,t,n,r,o=this,c=o.d,l=(e=new o.constructor(e)).d,h=o.s,f=e.s;if(!c||!l)return h&&f?h!==f?h:c===l?0:!c^h<0?1:-1:NaN;if(!c[0]||!l[0])return c[0]?h:l[0]?-f:0;if(h!==f)return h;if(o.e!==e.e)return o.e>e.e^h<0?1:-1;for(i=0,t=(n=c.length)<(r=l.length)?n:r;i<t;++i)if(c[i]!==l[i])return c[i]>l[i]^h<0?1:-1;return n===r?0:n>r^h<0?1:-1},P.cosine=P.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,o;if(t.isZero())return t;(r=t.d.length)<32?(n=Math.ceil(r/3),o=(1/te(4,n)).toString()):(n=16,o="2.3283064365386962890625e-10");e.precision+=n,t=ee(e,1,t.times(o),new e(1));for(var i=n;i--;){var c=t.times(t);t=c.times(c).minus(c).times(8).plus(1)}return e.precision-=n,t}(r,ne(r,n)),r.precision=e,r.rounding=t,F(2==h||3==h?n.neg():n,e,t,!0)):new r(1):new r(NaN)},P.cubeRoot=P.cbrt=function(){var e,t,n,r,o,s,c,l,h,f,d=this,m=d.constructor;if(!d.isFinite()||d.isZero())return new m(d);for(y=!1,(s=d.s*T(d.s*d,1/3))&&Math.abs(s)!=1/0?r=new m(s.toString()):(n=L(d.d),(s=((e=d.e)-n.length+1)%3)&&(n+=1==s||-2==s?"0":"00"),s=T(n,1/3),e=S((e+1)/3)-(e%3==(e<0?-1:2)),(r=new m(n=s==1/0?"5e"+e:(n=s.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=d.s),c=(e=m.precision)+3;;)if(f=(h=(l=r).times(l).times(l)).plus(d),r=U(f.plus(d).times(l),f.plus(h),c+2,1),L(l.d).slice(0,c)===(n=L(r.d)).slice(0,c)){if("9999"!=(n=n.slice(c-3,c+1))&&(o||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(F(r,e+1,1),t=!r.times(r).times(r).eq(d));break}if(!o&&(F(l,e+1,0),l.times(l).times(l).eq(d))){r=l;break}c+=4,o=1}return y=!0,F(r,e,m.rounding,t)},P.decimalPlaces=P.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-S(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},P.dividedBy=P.div=function(e){return U(this,new this.constructor(e))},P.dividedToIntegerBy=P.divToInt=function(e){var t=this.constructor;return F(U(this,new t(e),0,1,1),t.precision,t.rounding)},P.equals=P.eq=function(e){return 0===this.cmp(e)},P.floor=function(){return F(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(e){return this.cmp(e)>0},P.greaterThanOrEqualTo=P.gte=function(e){var t=this.cmp(e);return 1==t||0===t},P.hyperbolicCosine=P.cosh=function(){var e,t,n,r,o,c=this,l=c.constructor,h=new l(1);if(!c.isFinite())return new l(c.s?1/0:NaN);if(c.isZero())return h;n=l.precision,r=l.rounding,l.precision=n+Math.max(c.e,c.sd())+4,l.rounding=1,(o=c.d.length)<32?t=(1/te(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),c=ee(l,1,c.times(t),new l(1),!0);for(var f,i=e,d=new l(8);i--;)f=c.times(c),c=h.minus(f.times(d.minus(f.times(d))));return F(c,l.precision=n,l.rounding=r,!0)}
2,P.hyperbolicSine=P.sinh=function(){var e,t,n,r,o=this,c=o.constructor;if(!o.isFinite()||o.isZero())return new c(o);if(t=c.precision,n=c.rounding,c.precision=t+Math.max(o.e,o.sd())+4,c.rounding=1,(r=o.d.length)<3)o=ee(c,2,o,o,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,o=ee(c,2,o=o.times(1/te(5,e)),o,!0);for(var l,h=new c(5),f=new c(16),d=new c(20);e--;)l=o.times(o),o=o.times(h.plus(l.times(f.times(l).plus(d))))}return c.precision=t,c.rounding=n,F(o,t,n,!0)},P.hyperbolicTangent=P.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,U(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},P.inverseCosine=P.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),o=n.precision,c=n.rounding;return-1!==r?0===r?t.isNeg()?V(n,o,c):new n(0):new n(NaN):t.isZero()?V(n,o+4,c).times(.5):(n.precision=o+6,n.rounding=1,t=t.asin(),e=V(n,o+4,c).times(.5),n.precision=o,n.rounding=c,e.minus(t))},P.inverseHyperbolicCosine=P.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,y=!1,n=n.times(n).minus(1).sqrt().plus(n),y=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},P.inverseHyperbolicSine=P.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,y=!1,n=n.times(n).plus(1).sqrt().plus(n),y=!0,r.precision=e,r.rounding=t,n.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var e,t,n,r,o=this,c=o.constructor;return o.isFinite()?o.e>=0?new c(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=c.precision,t=c.rounding,r=o.sd(),Math.max(r,e)<2*-o.e-1?F(new c(o),e,t,!0):(c.precision=n=r-o.e,o=U(o.plus(1),new c(1).minus(o),n+e,1),c.precision=e+4,c.rounding=1,o=o.ln(),c.precision=e,c.rounding=t,o.times(.5))):new c(NaN)},P.inverseSine=P.asin=function(){var e,t,n,r,o=this,c=o.constructor;return o.isZero()?new c(o):(t=o.abs().cmp(1),n=c.precision,r=c.rounding,-1!==t?0===t?((e=V(c,n+4,r).times(.5)).s=o.s,e):new c(NaN):(c.precision=n+6,c.rounding=1,o=o.div(new c(1).minus(o.times(o)).sqrt().plus(1)).atan(),c.precision=n,c.rounding=r,o.times(2)))},P.inverseTangent=P.atan=function(){var i,e,t,n,r,o,c,l,h,f=this,d=f.constructor,m=d.precision,v=d.rounding;if(f.isFinite()){if(f.isZero())return new d(f);if(f.abs().eq(1)&&m+4<=O)return(c=V(d,m+4,v).times(.25)).s=f.s,c}else{if(!f.s)return new d(NaN);if(m+4<=O)return(c=V(d,m+4,v).times(.5)).s=f.s,c}for(d.precision=l=m+10,d.rounding=1,i=t=Math.min(28,l/7+2|0);i;--i)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(y=!1,e=Math.ceil(l/7),n=1,h=f.times(f),c=new d(f),r=f;-1!==i;)if(r=r.times(h),o=c.minus(r.div(n+=2)),r=r.times(h),void 0!==(c=o.plus(r.div(n+=2))).d[e])for(i=e;c.d[i]===o.d[i]&&i--;);return t&&(c=c.times(2<<t-1)),y=!0,F(c,d.precision=m,d.rounding=v,!0)},P.isFinite=function(){return!!this.d},P.isInteger=P.isInt=function(){return!!this.d&&S(this.e/7)>this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isPositive=P.isPos=function(){return this.s>0},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(e){return this.cmp(e)<0},P.lessThanOrEqualTo=P.lte=function(e){return this.cmp(e)<1},P.logarithm=P.log=function(base){var e,t,n,r,o,c,l,h,f=this.constructor,d=f.precision,m=f.rounding;if(null==base)base=new f(10),e=!0;else{if(t=(base=new f(base)).d,base.s<0||!t||!t[0]||base.eq(1))return new f(NaN);e=base.eq(10)}if(t=this.d,this.s<0||!t||!t[0]||this.eq(1))return new f(t&&!t[0]?-1/0:1!=this.s?NaN:t?0:1/0);if(e)if(t.length>1)o=!0;else{for(r=t[0];r%10==0;)r/=10;o=1!==r}if(y=!1,c=Z(this,l=d+5),n=e?H(f,l+10):Z(base,l),N((h=U(c,n,l,1)).d,r=d,m))do{if(c=Z(this,l+=10),n=e?H(f,l+10):Z(base,l),h=U(c,n,l,1),!o){+L(h.d).slice(r+1,r+15)+1==1e14&&(h=F(h,d+1,0));break}}while(N(h.d,r+=10,m));return y=!0,F(h,d,m)},P.minus=P.sub=function(e){var t,n,i,r,o,c,l,h,f,d,m,v,_=this,w=_.constructor;if(e=new w(e),!_.d||!e.d)return _.s&&e.s?_.d?e.s=-e.s:e=new w(e.d||_.s!==e.s?_:NaN):e=new w(NaN),e;if(_.s!=e.s)return e.s=-e.s,_.plus(e);
2if(f=_.d,v=e.d,l=w.precision,h=w.rounding,!f[0]||!v[0]){if(v[0])e.s=-e.s;else{if(!f[0])return new w(3===h?-0:0);e=new w(_)}return y?F(e,l,h):e}if(n=S(e.e/7),d=S(_.e/7),f=f.slice(),o=d-n){for((m=o<0)?(t=f,o=-o,c=v.length):(t=v,n=d,c=f.length),o>(i=Math.max(Math.ceil(l/7),c)+2)&&(o=i,t.length=1),t.reverse(),i=o;i--;)t.push(0);t.reverse()}else{for((m=(i=f.length)<(c=v.length))&&(c=i),i=0;i<c;i++)if(f[i]!=v[i]){m=f[i]<v[i];break}o=0}for(m&&(t=f,f=v,v=t,e.s=-e.s),c=f.length,i=v.length-c;i>0;--i)f[c++]=0;for(i=v.length;i>o;){if(f[--i]<v[i]){for(r=i;r&&0===f[--r];)f[r]=R-1;--f[r],f[i]+=R}f[i]-=v[i]}for(;0===f[--c];)f.pop();for(;0===f[0];f.shift())--n;return f[0]?(e.d=f,e.e=z(f,n),y?F(e,l,h):e):new w(3===h?-0:0)},P.modulo=P.mod=function(e){var q,t=this,n=t.constructor;return e=new n(e),!t.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||t.d&&!t.d[0]?F(new n(t),n.precision,n.rounding):(y=!1,9==n.modulo?(q=U(t,e.abs(),0,3,1)).s*=e.s:q=U(t,e,0,n.modulo,1),q=q.times(e),y=!0,t.minus(q))},P.naturalExponential=P.exp=function(){return Y(this)},P.naturalLogarithm=P.ln=function(){return Z(this)},P.negated=P.neg=function(){var e=new this.constructor(this);return e.s=-e.s,F(e)},P.plus=P.add=function(e){var t,n,r,i,o,c,l,h,f,d,m=this,v=m.constructor;if(e=new v(e),!m.d||!e.d)return m.s&&e.s?m.d||(e=new v(e.d||m.s===e.s?m:NaN)):e=new v(NaN),e;if(m.s!=e.s)return e.s=-e.s,m.minus(e);if(f=m.d,d=e.d,l=v.precision,h=v.rounding,!f[0]||!d[0])return d[0]||(e=new v(m)),y?F(e,l,h):e;if(o=S(m.e/7),r=S(e.e/7),f=f.slice(),i=o-r){for(i<0?(n=f,i=-i,c=d.length):(n=d,r=o,c=f.length),i>(c=(o=Math.ceil(l/7))>c?o+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=f.length)-(i=d.length)<0&&(i=c,n=d,d=f,f=n),t=0;i;)t=(f[--i]=f[i]+d[i]+t)/R|0,f[i]%=R;for(t&&(f.unshift(t),++r),c=f.length;0==f[--c];)f.pop();return e.d=f,e.e=z(f,r),y?F(e,l,h):e},P.precision=P.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(w+e);return n.d?(t=j(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},P.round=function(){var e=this,t=e.constructor;return F(new t(e),e.e+1,t.rounding)},P.sine=P.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:ee(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/te(5,n)),t=ee(e,2,t,t);for(var o,c=new e(5),l=new e(16),h=new e(20);n--;)o=t.times(t),t=t.times(c.plus(o.times(l.times(o).minus(h))));return t}(r,ne(r,n)),r.precision=e,r.rounding=t,F(h>2?n.neg():n,e,t,!0)):new r(NaN)},P.squareRoot=P.sqrt=function(){var e,t,n,r,o,c,l=this,h=l.d,f=l.e,s=l.s,d=l.constructor;if(1!==s||!h||!h[0])return new d(!s||s<0&&(!h||h[0])?NaN:h?l:1/0);for(y=!1,0==(s=Math.sqrt(+l))||s==1/0?(((t=L(h)).length+f)%2==0&&(t+="0"),s=Math.sqrt(t),f=S((f+1)/2)-(f<0||f%2),r=new d(t=s==1/0?"5e"+f:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+f)):r=new d(s.toString()),n=(f=d.precision)+3;;)if(r=(c=r).plus(U(l,c,n+2,1)).times(.5),L(c.d).slice(0,n)===(t=L(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(F(r,f+1,1),e=!r.times(r).eq(l));break}if(!o&&(F(c,f+1,0),c.times(c).eq(l))){r=c;break}n+=4,o=1}return y=!0,F(r,f,d.rounding,e)},P.tangent=P.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=U(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,F(2==h||4==h?n.neg():n,e,t,!0)):new r(NaN)},P.times=P.mul=function(e){var t,n,i,r,o,c,l,h,f,d=this,m=d.constructor,v=d.d,_=(e=new m(e)).d;if(e.s*=d.s,!(v&&v[0]&&_&&_[0]))return new m(!e.s||v&&!v[0]&&!_||_&&!_[0]&&!v?NaN:v&&_?0*e.s:e.s/0);for(n=S(d.e/7)+S(e.e/7),(h=v.length)<(f=_.length)&&(o=v,v=_,_=o,c=h,h=f,f=c),o=[],i=c=h+f;i--;)o.push(0);for(i=f;--i>=0;){for(t=0,r=h+i;r>i;)l=o[r]+_[i]*v[r-i-1]+t,o[r--]=l%R|0,t=l/R|0;o[r]=(o[r]+t)%R|0}for(;!o[--c];)o.pop();return t?++n:o.shift(),e.d=o,e.e=z(o,n),y?F(e,m.precision,m.rounding):e},P.toBinary=function(e,t){return re(this,2,e,t)},P.toDecimalPlaces=P.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(I(e,0,1e9),void 0===t?t=r.rounding:I(t,0,8),F(n,e+n.e+1,t))},P.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=B(r,!0):(I(e,0,1e9),void 0===t?t=o.rounding:I(t,0,8),n=B(r=F(new o(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n}
2,P.toFixed=function(e,t){var n,r,o=this,c=o.constructor;return void 0===e?n=B(o):(I(e,0,1e9),void 0===t?t=c.rounding:I(t,0,8),n=B(r=F(new c(o),e+o.e+1,t),!1,e+r.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n},P.toFraction=function(e){var t,n,r,o,c,l,h,f,d,m,q,v,_=this,x=_.d,S=_.constructor;if(!x)return new S(_);if(d=n=new S(1),r=f=new S(0),l=(c=(t=new S(r)).e=j(x)-_.e-1)%7,t.d[0]=T(10,l<0?7+l:l),null==e)e=c>0?t:d;else{if(!(h=new S(e)).isInt()||h.lt(d))throw Error(w+h);e=h.gt(t)?c>0?t:d:h}for(y=!1,h=new S(L(x)),m=S.precision,S.precision=c=7*x.length*2;q=U(h,t,0,1,1),1!=(o=n.plus(q.times(r))).cmp(e);)n=r,r=o,o=d,d=f.plus(q.times(o)),f=o,o=t,t=h.minus(q.times(o)),h=o;return o=U(e.minus(n),r,0,1,1),f=f.plus(o.times(d)),n=n.plus(o.times(r)),f.s=d.s=_.s,v=U(d,r,c,1).minus(_).abs().cmp(U(f,n,c,1).minus(_).abs())<1?[d,r]:[f,n],S.precision=m,y=!0,v},P.toHexadecimal=P.toHex=function(e,t){return re(this,16,e,t)},P.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:I(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(y=!1,n=U(n,e,0,t,1).times(e),y=!0,F(n)):(e.s=n.s,n=e),n},P.toNumber=function(){return+this},P.toOctal=function(e,t){return re(this,8,e,t)},P.toPower=P.pow=function(e){var t,n,r,o,c,s,l=this,h=l.constructor,f=+(e=new h(e));if(!(l.d&&e.d&&l.d[0]&&e.d[0]))return new h(T(+l,f));if((l=new h(l)).eq(1))return l;if(r=h.precision,c=h.rounding,e.eq(1))return F(l,r,c);if((t=S(e.e/7))>=e.d.length-1&&(n=f<0?-f:f)<=9007199254740991)return o=G(h,l,n,r),e.s<0?new h(1).div(o):F(o,r,c);if((s=l.s)<0){if(t<e.d.length-1)return new h(NaN);if(0==(1&e.d[t])&&(s=1),0==l.e&&1==l.d[0]&&1==l.d.length)return l.s=s,l}return(t=0!=(n=T(+l,f))&&isFinite(n)?new h(n+"").e:S(f*(Math.log("0."+L(l.d))/Math.LN10+l.e+1)))>h.maxE+1||t<h.minE-1?new h(t>0?s/0:0):(y=!1,h.rounding=l.s=1,n=Math.min(12,(t+"").length),(o=Y(e.times(Z(l,r+n)),r)).d&&N((o=F(o,r+5,1)).d,r,c)&&(t=r+10,+L((o=F(Y(e.times(Z(l,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(o=F(o,r+1,0))),o.s=s,y=!0,h.rounding=c,F(o,r,c))},P.toPrecision=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=B(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(I(e,1,1e9),void 0===t?t=o.rounding:I(t,0,8),n=B(r=F(new o(r),e,t),e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},P.toSignificantDigits=P.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(I(e,1,1e9),void 0===t?t=n.rounding:I(t,0,8)),F(new n(this),e,t)},P.toString=function(){var e=this,t=e.constructor,n=B(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},P.truncated=P.trunc=function(){return F(new this.constructor(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var e=this,t=e.constructor,n=B(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var U=function(){function e(e,t,base){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%base|0,r=n/base|0;return r&&e.unshift(r),e}function t(a,b,e,t){var i,n;if(e!=t)n=e>t?1:-1;else for(i=n=0;i<e;i++)if(a[i]!=b[i]){n=a[i]>b[i]?1:-1;break}return n}function n(a,b,e,base){for(var i=0;e--;)a[e]-=i,i=a[e]<b[e]?1:0,a[e]=i*base+a[e]-b[e];for(;!a[0]&&a.length>1;)a.shift()}return function(r,o,c,h,f,base){var d,m,i,v,_,y,w,x,q,T,E,M,A,C,k,O,P,L,I,N,D=r.constructor,U=r.s==o.s?1:-1,B=r.d,z=o.d;if(!(B&&B[0]&&z&&z[0]))return new D(r.s&&o.s&&(B?!z||B[0]!=z[0]:z)?B&&0==B[0]||!z?0*U:U/0:NaN);for(base?(_=1,m=r.e-o.e):(base=R,_=7,m=S(r.e/_)-S(o.e/_)),I=z.length,P=B.length,T=(q=new D(U)).d=[],i=0;z[i]==(B[i]||0);i++);if(z[i]>(B[i]||0)&&m--,null==c?(C=c=D.precision,h=D.rounding):C=f?c+(r.e-o.e)+1:c,C<0)T.push(1),y=!0;else{if(C=C/_+2|0,i=0,1==I){for(v=0,z=z[0],C++;(i<P||v)&&C--;i++)k=v*base+(B[i]||0),T[i]=k/z|0,v=k%z|0;y=v||i<P}else{for((v=base/(z[0]+1)|0)>1&&(z=e(z,v,base),B=e(B,v,base),I=z.length,P=B.length),O=I,M=(E=B.slice(0,I)).length;M<I;)E[M++]=0;(N=z.slice()).unshift(0),L=z[0],z[1]>=base/2&&++L;do{v=0,(d=t(z,E,I,M))<0?(A=E[0],I!=M&&(A=A*base+(E[1]||0)),(v=A/L|0)>1?(v>=base&&(v=base-1),1==(d=t(w=e(z,v,base),E,x=w.length,M=E.length))&&(v--,n(w,I<x?N:z,x,base))):(0==v&&(d=v=1),w=z.slice()),(x=w.length)<M&&w.unshift(0),n(E,w,M,base),-1==d&&(d=t(z,E,I,M=E.length))<1&&(v++,n(E,I<M?N:z,M,base)),M=E.length):0===d&&(v++,E=[0]),T[i++]=v,d&&E[0]?E[M++]=B[O]||0:(E=[B[O]],M=1)}while((O++<P||void 0!==E[0])&&C--);y=void 0!==E[0]}T[0]||T.shift()}if(1==_)q.e=m,l=y;else{for(i=1,v=T[0];v>=10;v/=10)i++;q.e=i+m*_-1,F(q,f?c+q.e+1:c,h,y)}return q}}();function F(e,t,n,r){var o,i,c,l,h,f,d,m,v,_=e.constructor;e:if(null!=t){if(!(m=e.d))return e;for(o=1,l=m[0];l>=10;l/=10)o++;if((i=t-o)<0)i+=7,c=t,h=(d=m[v=0])/T(10,o-c-1)%10|0;else if((v=Math.ceil((i+1)/7))>=(l=m.length)){if(!r)break e;for(;l++<=v;)m.push(0);d=h=0,o=1,c=(i%=7)-7+1}else{for(d=l=m[v],o=1;l>=10;l/=10)o++;h=(c=(i%=7)-7+o)<0?0:d/T(10,o-c-1)%10|0}if(r=r||t<0||void 0!==m[v+1]||(c<0?d:d%T(10,o-c-1)),f=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(i>0?c>0?d/T(10,o-c):0:m[v-1])%10&1||n==(e.s<0?8:7)),t<1||!m[0])return m.length=0,f?(t-=e.e+1,m[0]=T(10,(7-t%7)%7),e.e=-t||0):m[0]=e.e=0,e;if(0==i?(m.length=v,l=1,v--):(m.length=v+1,l=T(10,7-i),m[v]=c>0?(d/T(10,o-c)%T(10,c)|0)*l:0),f)for(;;){if(0==v){for(i=1,c=m[0];c>=10;c/=10)i++;for(c=m[0]+=l,l=1;c>=10;c/=10)l++;i!=l&&(e.e++,m[0]==R&&(m[0]=1));break}if(m[v]+=l,m[v]!=R)break;m[v--]=0,l=1}for(i=m.length;0===m[--i];)m.pop()}return y&&(e.e>_.maxE?(e.d=null,e.e=NaN):e.e<_.minE&&(e.e=0,e.d=[0])),e}function B(e,t,n){if(!e.isFinite())return K(e);var r,o=e.e,c=L(e.d),l=c.length;return t?(n&&(r=n-l)>0?c=c.charAt(0)+"."+c.slice(1)+W(r):l>1&&(c=c.charAt(0)+"."+c.slice(1)),c=c+(e.e<0?"e":"e+")+e.e):o<0?(c="0."+W(-o-1)+c,n&&(r=n-l)>0&&(c+=W(r))):o>=l?(c+=W(o+1-l),n&&(r=n-o-1)>0&&(c=c+"."+W(r))):((r=o+1)<l&&(c=c.slice(0,r)+"."+c.slice(r)),n&&(r=n-l)>0&&(o+1===l&&(c+="."),c+=W(r))),c}function z(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function H(e,t,n){if(t>k)throw y=!0,n&&(e.precision=n),Error("[DecimalError] Precision limit exceeded");return F(new e(m),t,1,!0)}
2function V(e,t,n){if(t>O)throw Error("[DecimalError] Precision limit exceeded");return F(new e(v),t,n,!0)}function j(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function W(e){for(var t="";e--;)t+="0";return t}function G(e,t,n,r){var o,c=new e(1),l=Math.ceil(r/7+4);for(y=!1;;){if(n%2&&ie((c=c.times(t)).d,l)&&(o=!0),0===(n=S(n/2))){n=c.d.length-1,o&&0===c.d[n]&&++c.d[n];break}ie((t=t.times(t)).d,l)}return y=!0,c}function $(e){return 1&e.d[e.d.length-1]}function X(e,t,n){for(var r,o=new e(t[0]),i=0;++i<t.length;){if(!(r=new e(t[i])).s){o=r;break}o[n](r)&&(o=r)}return o}function Y(e,t){var n,r,o,c,l,h,f,d=0,i=0,m=0,v=e.constructor,_=v.rounding,w=v.precision;if(!e.d||!e.d[0]||e.e>17)return new v(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(y=!1,f=w):f=t,h=new v(.03125);e.e>-2;)e=e.times(h),m+=5;for(f+=r=Math.log(T(2,m))/Math.LN10*2+5|0,n=c=l=new v(1),v.precision=f;;){if(c=F(c.times(e),f,1),n=n.times(++i),L((h=l.plus(U(c,n,f,1))).d).slice(0,f)===L(l.d).slice(0,f)){for(o=m;o--;)l=F(l.times(l),f,1);if(null!=t)return v.precision=w,l;if(!(d<3&&N(l.d,f-r,_,d)))return F(l,v.precision=w,_,y=!0);v.precision=f+=10,n=c=h=new v(1),i=0,d++}l=h}}function Z(e,t){var n,r,o,c,l,h,f,d,m,v,_,w=1,x=e,S=x.d,T=x.constructor,E=T.rounding,M=T.precision;if(x.s<0||!S||!S[0]||!x.e&&1==S[0]&&1==S.length)return new T(S&&!S[0]?-1/0:1!=x.s?NaN:S?0:x);if(null==t?(y=!1,m=M):m=t,T.precision=m+=10,r=(n=L(S)).charAt(0),!(Math.abs(c=x.e)<15e14))return d=H(T,m+2,M).times(c+""),x=Z(new T(r+"."+n.slice(1)),m-10).plus(d),T.precision=M,null==t?F(x,M,E,y=!0):x;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=L((x=x.times(e)).d)).charAt(0),w++;for(c=x.e,r>1?(x=new T("0."+n),c++):x=new T(r+"."+n.slice(1)),v=x,f=l=x=U(x.minus(1),x.plus(1),m,1),_=F(x.times(x),m,1),o=3;;){if(l=F(l.times(_),m,1),L((d=f.plus(U(l,new T(o),m,1))).d).slice(0,m)===L(f.d).slice(0,m)){if(f=f.times(2),0!==c&&(f=f.plus(H(T,m+2,M).times(c+""))),f=U(f,new T(w),m,1),null!=t)return T.precision=M,f;if(!N(f.d,m-10,E,h))return F(f,T.precision=M,E,y=!0);T.precision=m+=10,d=l=x=U(v.minus(1),v.plus(1),m,1),_=F(x.times(x),m,1),o=h=1}f=d,o+=2}}function K(e){return String(e.s*e.s/0)}function J(e,t){var n,i,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;48===t.charCodeAt(i);i++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(i,r)){if(r-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%7,n<0&&(i+=7),i<r){for(i&&e.d.push(+t.slice(0,i)),r-=7;i<r;)e.d.push(+t.slice(i,i+=7));i=7-(t=t.slice(i)).length}else i-=r;for(;i--;)t+="0";e.d.push(+t),y&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Q(e,t){var base,n,r,i,o,l,p,h,f;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),C.test(t))return J(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(M.test(t))base=16,t=t.toLowerCase();else if(E.test(t))base=2;else{if(!A.test(t))throw Error(w+t);base=8}for((i=t.search(/p/i))>0?(p=+t.slice(i+1),t=t.substring(2,i)):t=t.slice(2),o=(i=t.indexOf("."))>=0,n=e.constructor,o&&(i=(l=(t=t.replace(".","")).length)-i,r=G(n,new n(base),i,2*i)),i=f=(h=D(t,base,R)).length-1;0===h[i];--i)h.pop();return i<0?new n(0*e.s):(e.e=z(h,f),e.d=h,y=!1,o&&(e=U(e,r,4*l)),p&&(e=e.times(Math.abs(p)<54?T(2,p):c.pow(2,p))),y=!0,e)}function ee(e,t,n,r,o){var c,l,u,h,f=e.precision,d=Math.ceil(f/7);for(y=!1,h=n.times(n),u=new e(r);;){if(l=U(u.times(h),new e(t++*t++),f,1),u=o?r.plus(l):r.minus(l),r=U(l.times(h),new e(t++*t++),f,1),void 0!==(l=u.plus(r)).d[d]){for(c=d;l.d[c]===u.d[c]&&c--;);if(-1==c)break}c=u,u=r,r=l,l=c}return y=!0,l.d.length=d+1,l}function te(b,e){for(var t=b;--e;)t*=b;return t}function ne(e,t){var n,r=t.s<0,o=V(e,e.precision,1),c=o.times(.5);if((t=t.abs()).lte(c))return h=r?4:1,t;if((n=t.divToInt(o)).isZero())h=r?3:2;else{if((t=t.minus(n.times(o))).lte(c))return h=$(n)?r?2:3:r?4:1,t;h=$(n)?r?1:4:r?3:2}return t.minus(o).abs()}function re(e,t,n,r){var base,o,i,c,h,f,m,v,_,y=e.constructor,w=void 0!==n;if(w?(I(n,1,1e9),void 0===r?r=y.rounding:I(r,0,8)):(n=y.precision,r=y.rounding),e.isFinite()){for(w?(base=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):base=t,(i=(m=B(e)).indexOf("."))>=0&&(m=m.replace(".",""),(_=new y(1)).e=m.length-i,_.d=D(B(_),10,base),_.e=_.d.length),o=h=(v=D(m,10,base)).length;0==v[--h];)v.pop();if(v[0]){if(i<0?o--:((e=new y(e)).d=v,e.e=o,v=(e=U(e,_,n,r,0,base)).d,o=e.e,f=l),i=v[n],c=base/2,f=f||void 0!==v[n+1],f=r<4?(void 0!==i||f)&&(0===r||r===(e.s<0?3:2)):i>c||i===c&&(4===r||f||6===r&&1&v[n-1]||r===(e.s<0?8:7)),v.length=n,f)for(;++v[--n]>base-1;)v[n]=0,n||(++o,v.unshift(1));for(h=v.length;!v[h-1];--h);for(i=0,m="";i<h;i++)m+=d.charAt(v[i]);if(w){if(h>1)if(16==t||8==t){for(i=16==t?4:3,--h;h%i;h++)m+="0";for(h=(v=D(m,base,t)).length;!v[h-1];--h);for(i=1,m="1.";i<h;i++)m+=d.charAt(v[i])}else m=m.charAt(0)+"."+m.slice(1);m=m+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)m="0"+m;m="0."+m}else if(++o>h)for(o-=h;o--;)m+="0";else o<h&&(m=m.slice(0,o)+"."+m.slice(o))}else m=w?"0p+0":"0";m=(16==t?"0x":2==t?"0b":8==t?"0o":"")+m}else m=K(e);return e.s<0?"-"+m:m}function ie(e,t){if(e.length>t)return e.length=t,!0}function ae(e){return new this(e).abs()}function se(e){return new this(e).acos()}function oe(e){return new this(e).acosh()}function ce(e,t){return new this(e).plus(t)}function le(e){return new this(e).asin()}function ue(e){return new this(e).asinh()}function he(e){return new this(e).atan()}function fe(e){return new this(e).atanh()}function de(e,t){e=new this(e),t=new this(t);var n,r=this.precision,o=this.rounding,c=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?V(this,r,o):new this(0)).s=e.s:!e.d||t.isZero()?(n=V(this,c,1).times(.5)).s=e.s:t.s<0?(this.precision=c,this.rounding=1,n=this.atan(U(e,t,c,1)),t=V(this,c,1),this.precision=r,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(U(e,t,c,1)):(n=V(this,c,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function pe(e){return new this(e).cbrt()}function me(e){return F(e=new this(e),e.e+1,2)}function ge(e,t,n){return new this(e).clamp(t,n)}function ve(e){if(!e||"object"!=typeof e)throw Error("[DecimalError] Object expected");
2var i,p,t,n=!0===e.defaults,r=["precision",1,1e9,"rounding",0,8,"toExpNeg",-f,0,"toExpPos",0,f,"maxE",0,f,"minE",-f,0,"modulo",0,9];for(i=0;i<r.length;i+=3)if(p=r[i],n&&(this[p]=_[p]),void 0!==(t=e[p])){if(!(S(t)===t&&t>=r[i+1]&&t<=r[i+2]))throw Error(w+p+": "+t);this[p]=t}if(p="crypto",n&&(this[p]=_[p]),void 0!==(t=e[p])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(w+p+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[p]=!0}else this[p]=!1}return this}function _e(e){return new this(e).cos()}function ye(e){return new this(e).cosh()}function div(e,t){return new this(e).div(t)}function be(e){return new this(e).exp()}function we(e){return F(e=new this(e),e.e+1,3)}function xe(){var i,e,t=new this(0);for(y=!1,i=0;i<arguments.length;)if((e=new this(arguments[i++])).d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return y=!0,new this(1/0);t=e}return y=!0,t.sqrt()}function Se(e){return e instanceof c||e&&e.toStringTag===x||!1}function Te(e){return new this(e).ln()}function Ee(e,t){return new this(e).log(t)}function Me(e){return new this(e).log(2)}function Ae(e){return new this(e).log(10)}function Ce(){return X(this,arguments,"lt")}function Re(){return X(this,arguments,"gt")}function ke(e,t){return new this(e).mod(t)}function Oe(e,t){return new this(e).mul(t)}function Pe(e,t){return new this(e).pow(t)}function Le(e){var t,n,r,o,i=0,c=new this(1),l=[];if(void 0===e?e=this.precision:I(e,1,1e9),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));i<r;)(o=t[i])>=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:l[i++]=o%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(t=crypto.randomBytes(r*=4);i<r;)(o=t[i]+(t[i+1]<<8)+(t[i+2]<<16)+((127&t[i+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,i):(l.push(o%1e7),i+=4);i=r/4}else for(;i<r;)l[i++]=1e7*Math.random()|0;for(e%=7,(r=l[--i])&&e&&(o=T(10,7-e),l[i]=(r/o|0)*o);0===l[i];i--)l.pop();if(i<0)n=0,l=[0];else{for(n=-1;0===l[0];n-=7)l.shift();for(r=1,o=l[0];o>=10;o/=10)r++;r<7&&(n-=7-r)}return c.e=n,c.d=l,c}function Ie(e){return F(e=new this(e),e.e+1,this.rounding)}function Ne(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function De(e){return new this(e).sin()}function Ue(e){return new this(e).sinh()}function Fe(e){return new this(e).sqrt()}function sub(e,t){return new this(e).sub(t)}function Be(){var i=0,e=arguments,t=new this(e[i]);for(y=!1;t.s&&++i<e.length;)t=t.plus(e[i]);return y=!0,F(t,this.precision,this.rounding)}function ze(e){return new this(e).tan()}function He(e){return new this(e).tanh()}function Ve(e){return F(e=new this(e),e.e+1,1)}(c=function e(t){var i,p,n;function r(e){var t,i,n,o=this;if(!(o instanceof r))return new r(e);if(o.constructor=r,Se(e))return o.s=e.s,void(y?!e.d||e.e>r.maxE?(o.e=NaN,o.d=null):e.e<r.minE?(o.e=0,o.d=[0]):(o.e=e.e,o.d=e.d.slice()):(o.e=e.e,o.d=e.d?e.d.slice():e.d));if("number"===(n=typeof e)){if(0===e)return o.s=1/e<0?-1:1,o.e=0,void(o.d=[0]);if(e<0?(e=-e,o.s=-1):o.s=1,e===~~e&&e<1e7){for(t=0,i=e;i>=10;i/=10)t++;return void(y?t>r.maxE?(o.e=NaN,o.d=null):t<r.minE?(o.e=0,o.d=[0]):(o.e=t,o.d=[e]):(o.e=t,o.d=[e]))}return 0*e!=0?(e||(o.s=NaN),o.e=NaN,void(o.d=null)):J(o,e.toString())}if("string"!==n)throw Error(w+e);return 45===(i=e.charCodeAt(0))?(e=e.slice(1),o.s=-1):(43===i&&(e=e.slice(1)),o.s=1),C.test(e)?J(o,e):Q(o,e)}if(r.prototype=P,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=ve,r.clone=e,r.isDecimal=Se,r.abs=ae,r.acos=se,r.acosh=oe,r.add=ce,r.asin=le,r.asinh=ue,r.atan=he,r.atanh=fe,r.atan2=de,r.cbrt=pe,r.ceil=me,r.clamp=ge,r.cos=_e,r.cosh=ye,r.div=div,r.exp=be,r.floor=we,r.hypot=xe,r.ln=Te,r.log=Ee,r.log10=Ae,r.log2=Me,r.max=Ce,r.min=Re,r.mod=ke,r.mul=Oe,r.pow=Pe,r.random=Le,r.round=Ie,r.sign=Ne,r.sin=De,r.sinh=Ue,r.sqrt=Fe,r.sub=sub,r.sum=Be,r.tan=ze,r.tanh=He,r.trunc=Ve,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<n.length;)t.hasOwnProperty(p=n[i++])||(t[p]=this[p]);return r.config(t),r}(_)).prototype.constructor=c,c.default=c.Decimal=c,m=new c(m),v=new c(v),void 0===(r=function(){return c}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";n(35),n(34),n(28),n(50),n(51),n(36),n(14),n(21),n(22),n(53),n(69),n(29);var r=n(12),o=n(8),c=n(1),l=n(30),h=n(57);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?f(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=c.a.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor:function(e){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof data.style?(Object(l.b)("style must be an object",this),data):"string"==typeof data.class?(Object(l.b)("class must be an object",this),data):(Object(h.d)(e)?data.style=d(d({},data.style),{},{"background-color":"".concat(e),"border-color":"".concat(e)}):e&&(data.class=d(d({},data.class),{},Object(o.a)({},e,!0))),data)},setTextColor:function(e){var data=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof data.style)return Object(l.b)("style must be an object",this),data;if("string"==typeof data.class)return Object(l.b)("class must be an object",this),data;if(Object(h.d)(e))data.style=d(d({},data.style),{},{color:"".concat(e),"caret-color":"".concat(e)});else if(e){var t=e.toString().trim().split(" ",2),n=Object(r.a)(t,2),c=n[0],f=n[1];data.class=d(d({},data.class),{},Object(o.a)({},c+"--text",!0)),f&&(data.class["text--"+f]=!0)}return data}}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return S}));n(35),n(68),n(77),n(24),n(34),n(28),n(67),n(61),n(18),n(50),n(51),n(36),n(14),n(21),n(22),n(60),n(53),n(69),n(29),n(62);var r=n(8),o=n(12),c=n(9);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function f(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(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,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var m=/;(?![^(]*\))/g,v=/:(.*)/;function _(style){var e,t={},n=f(style.split(m));try{for(n.s();!(e=n.n()).done;){var r=e.value.split(v),l=Object(o.a)(r,2),h=l[0],d=l[1];(h=h.trim())&&("string"==typeof d&&(d=d.trim()),t[Object(c.a)(h)]=d)}}catch(e){n.e(e)}finally{n.f()}return t}function y(){for(var e,t={},i=arguments.length;i--;)for(var n=0,r=Object.keys(arguments[i]);n<r.length;n++)switch(e=r[n]){case"class":case"directives":arguments[i][e]&&(t[e]=x(t[e],arguments[i][e]));break;case"style":arguments[i][e]&&(t[e]=w(t[e],arguments[i][e]));break;case"staticClass":if(!arguments[i][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[i][e].trim();break;case"on":case"nativeOn":arguments[i][e]&&(t[e]=S(t[e],arguments[i][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[i][e])break;t[e]||(t[e]={}),t[e]=h(h({},arguments[i][e]),t[e]);break;default:t[e]||(t[e]=arguments[i][e])}return t}
2function w(e,source){return e?source?(e=Object(c.w)("string"==typeof e?_(e):e)).concat("string"==typeof source?_(source):source):e:source}function x(e,source){return source?e&&e?Object(c.w)(e).concat(source):source:e}function S(){if(!(arguments.length<=0?void 0:arguments[0]))return arguments.length<=1?void 0:arguments[1];if(!(arguments.length<=1?void 0:arguments[1]))return arguments.length<=0?void 0:arguments[0];for(var e={},i=2;i--;){var t=i<0||arguments.length<=i?void 0:arguments[i];for(var n in t)t[n]&&(e[n]?e[n]=[].concat(t[n],e[n]):e[n]=t[n])}return e}},,,function(e,t,n){"use strict";n(124);var r=n(27);function o(e,t,n){var r,o=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];o&&(o.observer.unobserve(e),delete e._observe[n.context._uid])}var c={inserted:function(e,t,n){if("undefined"!=typeof window&&"IntersectionObserver"in window){var c=t.modifiers||{},l=t.value,h="object"===Object(r.a)(l)?l:{handler:l,options:{}},f=h.handler,d=h.options,m=new IntersectionObserver((function(){var r,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=arguments.length>1?arguments[1]:void 0,d=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];if(d){var m=l.some((function(e){return e.isIntersecting}));!f||c.quiet&&!d.init||c.once&&!m&&!d.init||f(l,h,m),m&&c.once?o(e,t,n):d.init=!0}}),d);e._observe=Object(e._observe),e._observe[n.context._uid]={init:!1,observer:m},m.observe(e)}},unbind:o};t.a=c},,function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v}));n(35),n(24),n(34),n(28),n(37),n(50),n(51),n(36),n(29),n(59);var r=n(12),o=n(123),c=n(8),l=n(263);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function d(data,e){return data.filter((function(t){return t.parent_id===e})).map((function(e){return f(f({},e),{},{children:d(data,e.category_id).length>0?d(data,e.category_id):void 0})}))}function m(e){var t=function e(t){var n=0,r=0;if(Array.isArray(t)){n=1;for(var o=0;o<t.length;o++){var element=t[o];if(element.children){var c=1+e(element.children)[0];n<c&&(n=c,r=o)}}}return[n,r]}(e),n=Object(r.a)(t,2);n[0];return function e(t){var n=[];try{var r=Object(l.cloneDeep)(t);delete r.children,n=t.children?[r].concat(Object(o.a)(e(t.children[0]))):[r]}catch(e){}return n}(e[n[1]])}function v(e,t){var n;return function(){var r=arguments,o=this;clearTimeout(n),n=setTimeout((function(){e.apply(o,r)}),t)}}},,function(e,t,n){"use strict";n.r(t),n.d(t,"ACESFilmicToneMapping",(function(){return de})),n.d(t,"AddEquation",(function(){return O})),n.d(t,"AddOperation",(function(){return ce})),n.d(t,"AdditiveAnimationBlendMode",(function(){return qt})),n.d(t,"AdditiveBlending",(function(){return A})),n.d(t,"AlphaFormat",(function(){return Xe})),n.d(t,"AlwaysCompare",(function(){return Un})),n.d(t,"AlwaysDepth",(function(){return Q})),n.d(t,"AlwaysStencilFunc",(function(){return Rn})),n.d(t,"AmbientLight",(function(){return cd})),n.d(t,"AnimationAction",(function(){return Zd})),n.d(t,"AnimationClip",(function(){return Of})),n.d(t,"AnimationLoader",(function(){return zf})),n.d(t,"AnimationMixer",(function(){return Jd})),n.d(t,"AnimationObjectGroup",(function(){return Yd})),n.d(t,"AnimationUtils",(function(){return _f})),n.d(t,"ArcCurve",(function(){return Nu})),n.d(t,"ArrayCamera",(function(){return tl})),n.d(t,"ArrowHelper",(function(){return jp})),n.d(t,"AttachedBindMode",(function(){return me})),n.d(t,"Audio",(function(){return Dd})),n.d(t,"AudioAnalyser",(function(){return Vd})),n.d(t,"AudioContext",(function(){return Sd})),n.d(t,"AudioListener",(function(){return Nd})),n.d(t,"AudioLoader",(function(){return Td})),n.d(t,"AxesHelper",(function(){return Wp})),n.d(t,"BackSide",(function(){return x})),n.d(t,"BasicDepthPacking",(function(){return en})),n.d(t,"BasicShadowMap",(function(){return m})),n.d(t,"Bone",(function(){return Yl})),n.d(t,"BooleanKeyframeTrack",(function(){return Tf})),n.d(t,"Box2",(function(){return hp})),n.d(t,"Box3",(function(){return Jr})),n.d(t,"Box3Helper",(function(){return Fp})),n.d(t,"BoxGeometry",(function(){return us})),n.d(t,"BoxHelper",(function(){return Up})),n.d(t,"BufferAttribute",(function(){return Ma})),n.d(t,"BufferGeometry",(function(){return Wa})),n.d(t,"BufferGeometryLoader",(function(){return gd})),n.d(t,"ByteType",(function(){return Ue})),n.d(t,"Cache",(function(){return Lf})),n.d(t,"Camera",(function(){return gs}
2)),n.d(t,"CameraHelper",(function(){return Ip})),n.d(t,"CanvasTexture",(function(){return Pu})),n.d(t,"CapsuleGeometry",(function(){return rh})),n.d(t,"CatmullRomCurve3",(function(){return Hu})),n.d(t,"CineonToneMapping",(function(){return fe})),n.d(t,"CircleGeometry",(function(){return ih})),n.d(t,"ClampToEdgeWrapping",(function(){return Te})),n.d(t,"Clock",(function(){return Rd})),n.d(t,"Color",(function(){return pa})),n.d(t,"ColorKeyframeTrack",(function(){return Ef})),n.d(t,"ColorManagement",(function(){return kr})),n.d(t,"CompressedArrayTexture",(function(){return ku})),n.d(t,"CompressedCubeTexture",(function(){return Ou})),n.d(t,"CompressedTexture",(function(){return Ru})),n.d(t,"CompressedTextureLoader",(function(){return Hf})),n.d(t,"ConeGeometry",(function(){return sh})),n.d(t,"ConstantAlphaFactor",(function(){return Z})),n.d(t,"ConstantColorFactor",(function(){return X})),n.d(t,"CubeCamera",(function(){return _s})),n.d(t,"CubeReflectionMapping",(function(){return _e})),n.d(t,"CubeRefractionMapping",(function(){return ye})),n.d(t,"CubeTexture",(function(){return ys})),n.d(t,"CubeTextureLoader",(function(){return jf})),n.d(t,"CubeUVReflectionMapping",(function(){return xe})),n.d(t,"CubicBezierCurve",(function(){return Gu})),n.d(t,"CubicBezierCurve3",(function(){return $u})),n.d(t,"CubicInterpolant",(function(){return bf})),n.d(t,"CullFaceBack",(function(){return h})),n.d(t,"CullFaceFront",(function(){return f})),n.d(t,"CullFaceFrontBack",(function(){return d})),n.d(t,"CullFaceNone",(function(){return l})),n.d(t,"Curve",(function(){return Lu})),n.d(t,"CurvePath",(function(){return Qu})),n.d(t,"CustomBlending",(function(){return k})),n.d(t,"CustomToneMapping",(function(){return pe})),n.d(t,"CylinderGeometry",(function(){return ah})),n.d(t,"Cylindrical",(function(){return lp})),n.d(t,"Data3DTexture",(function(){return Gr})),n.d(t,"DataArrayTexture",(function(){return jr})),n.d(t,"DataTexture",(function(){return Zl})),n.d(t,"DataTextureLoader",(function(){return Wf})),n.d(t,"DataUtils",(function(){return Sa})),n.d(t,"DecrementStencilOp",(function(){return _n})),n.d(t,"DecrementWrapStencilOp",(function(){return bn})),n.d(t,"DefaultLoadingManager",(function(){return Nf})),n.d(t,"DepthFormat",(function(){return Ke})),n.d(t,"DepthStencilFormat",(function(){return Je})),n.d(t,"DepthTexture",(function(){return al})),n.d(t,"DetachedBindMode",(function(){return ge})),n.d(t,"DirectionalLight",(function(){return od})),n.d(t,"DirectionalLightHelper",(function(){return Op})),n.d(t,"DiscreteInterpolant",(function(){return xf})),n.d(t,"DisplayP3ColorSpace",(function(){return cn})),n.d(t,"DodecahedronGeometry",(function(){return ch})),n.d(t,"DoubleSide",(function(){return S})),n.d(t,"DstAlphaFactor",(function(){return V})),n.d(t,"DstColorFactor",(function(){return W})),n.d(t,"DynamicCopyUsage",(function(){return Gn})),n.d(t,"DynamicDrawUsage",(function(){return Bn})),n.d(t,"DynamicReadUsage",(function(){return Vn})),n.d(t,"EdgesGeometry",(function(){return dh})),n.d(t,"EllipseCurve",(function(){return Iu})),n.d(t,"EqualCompare",(function(){return Pn})),n.d(t,"EqualDepth",(function(){return ne})),n.d(t,"EqualStencilFunc",(function(){return Tn})),n.d(t,"EquirectangularReflectionMapping",(function(){return be})),n.d(t,"EquirectangularRefractionMapping",(function(){return we})),n.d(t,"Euler",(function(){return Di})),n.d(t,"EventDispatcher",(function(){return Jn})),n.d(t,"ExtrudeGeometry",(function(){return Vh})),n.d(t,"FileLoader",(function(){return Bf})),n.d(t,"Float16BufferAttribute",(function(){return Ia})),n.d(t,"Float32BufferAttribute",(function(){return Na})),n.d(t,"Float64BufferAttribute",(function(){return Da})),n.d(t,"FloatType",(function(){return Ve})),n.d(t,"Fog",(function(){return ml})),n.d(t,"FogExp2",(function(){return pl})),n.d(t,"FramebufferTexture",(function(){return Cu})),n.d(t,"FrontSide",(function(){return w})),n.d(t,"Frustum",(function(){return As})),n.d(t,"GLBufferAttribute",(function(){return ip})),n.d(t,"GLSL1",(function(){return Xn})),n.d(t,"GLSL3",(function(){return qn})),n.d(t,"GreaterCompare",(function(){return In})),n.d(t,"GreaterDepth",(function(){return ie})),n.d(t,"GreaterEqualCompare",(function(){return Dn})),n.d(t,"GreaterEqualDepth",(function(){return re})),n.d(t,"GreaterEqualStencilFunc",(function(){return Cn})),n.d(t,"GreaterStencilFunc",(function(){return Mn})),n.d(t,"GridHelper",(function(){return Mp})),n.d(t,"Group",(function(){return nl})),n.d(t,"HalfFloatType",(function(){return je})),n.d(t,"HemisphereLight",(function(){return Xf})),n.d(t,"HemisphereLightHelper",(function(){return Ep})),n.d(t,"IcosahedronGeometry",(function(){return Wh})),n.d(t,"ImageBitmapLoader",(function(){return wd}
2)),n.d(t,"ImageLoader",(function(){return Vf})),n.d(t,"ImageUtils",(function(){return Ir})),n.d(t,"IncrementStencilOp",(function(){return vn})),n.d(t,"IncrementWrapStencilOp",(function(){return yn})),n.d(t,"InstancedBufferAttribute",(function(){return eu})),n.d(t,"InstancedBufferGeometry",(function(){return md})),n.d(t,"InstancedInterleavedBuffer",(function(){return np})),n.d(t,"InstancedMesh",(function(){return cu})),n.d(t,"Int16BufferAttribute",(function(){return ka})),n.d(t,"Int32BufferAttribute",(function(){return Pa})),n.d(t,"Int8BufferAttribute",(function(){return Aa})),n.d(t,"IntType",(function(){return ze})),n.d(t,"InterleavedBuffer",(function(){return vl})),n.d(t,"InterleavedBufferAttribute",(function(){return yl})),n.d(t,"Interpolant",(function(){return yf})),n.d(t,"InterpolateDiscrete",(function(){return Ht})),n.d(t,"InterpolateLinear",(function(){return Vt})),n.d(t,"InterpolateSmooth",(function(){return jt})),n.d(t,"InvertStencilOp",(function(){return wn})),n.d(t,"KeepStencilOp",(function(){return mn})),n.d(t,"KeyframeTrack",(function(){return Sf})),n.d(t,"LOD",(function(){return Fl})),n.d(t,"LatheGeometry",(function(){return nh})),n.d(t,"Layers",(function(){return Ui})),n.d(t,"LessCompare",(function(){return On})),n.d(t,"LessDepth",(function(){return ee})),n.d(t,"LessEqualCompare",(function(){return Ln})),n.d(t,"LessEqualDepth",(function(){return te})),n.d(t,"LessEqualStencilFunc",(function(){return En})),n.d(t,"LessStencilFunc",(function(){return Sn})),n.d(t,"Light",(function(){return $f})),n.d(t,"LightProbe",(function(){return hd})),n.d(t,"Line",(function(){return mu})),n.d(t,"Line3",(function(){return pp})),n.d(t,"LineBasicMaterial",(function(){return lu})),n.d(t,"LineCurve",(function(){return Xu})),n.d(t,"LineCurve3",(function(){return qu})),n.d(t,"LineDashedMaterial",(function(){return ff})),n.d(t,"LineLoop",(function(){return yu})),n.d(t,"LineSegments",(function(){return _u})),n.d(t,"LinearDisplayP3ColorSpace",(function(){return ln})),n.d(t,"LinearEncoding",(function(){return Jt})),n.d(t,"LinearFilter",(function(){return Oe})),n.d(t,"LinearInterpolant",(function(){return wf})),n.d(t,"LinearMipMapLinearFilter",(function(){return Ne})),n.d(t,"LinearMipMapNearestFilter",(function(){return Le})),n.d(t,"LinearMipmapLinearFilter",(function(){return Ie})),n.d(t,"LinearMipmapNearestFilter",(function(){return Pe})),n.d(t,"LinearSRGBColorSpace",(function(){return on})),n.d(t,"LinearToneMapping",(function(){return ue})),n.d(t,"LinearTransfer",(function(){return un})),n.d(t,"Loader",(function(){return Df})),n.d(t,"LoaderUtils",(function(){return pd})),n.d(t,"LoadingManager",(function(){return If})),n.d(t,"LoopOnce",(function(){return Ft})),n.d(t,"LoopPingPong",(function(){return zt})),n.d(t,"LoopRepeat",(function(){return Bt})),n.d(t,"LuminanceAlphaFormat",(function(){return Ze})),n.d(t,"LuminanceFormat",(function(){return Ye})),n.d(t,"MOUSE",(function(){return o})),n.d(t,"Material",(function(){return va})),n.d(t,"MaterialLoader",(function(){return fd})),n.d(t,"MathUtils",(function(){return pr})),n.d(t,"Matrix3",(function(){return gr})),n.d(t,"Matrix4",(function(){return Mi})),n.d(t,"MaxEquation",(function(){return N})),n.d(t,"Mesh",(function(){return cs})),n.d(t,"MeshBasicMaterial",(function(){return _a})),n.d(t,"MeshDepthMaterial",(function(){return Yc})),n.d(t,"MeshDistanceMaterial",(function(){return Zc})),n.d(t,"MeshLambertMaterial",(function(){return uf})),n.d(t,"MeshMatcapMaterial",(function(){return hf})),n.d(t,"MeshNormalMaterial",(function(){return lf})),n.d(t,"MeshPhongMaterial",(function(){return of})),n.d(t,"MeshPhysicalMaterial",(function(){return sf})),n.d(t,"MeshStandardMaterial",(function(){return af})),n.d(t,"MeshToonMaterial",(function(){return cf})),n.d(t,"MinEquation",(function(){return I})),n.d(t,"MirroredRepeatWrapping",(function(){return Ee})),n.d(t,"MixOperation",(function(){return oe})),n.d(t,"MultiplyBlending",(function(){return R})),n.d(t,"MultiplyOperation",(function(){return se})),n.d(t,"NearestFilter",(function(){return Me})),n.d(t,"NearestMipMapLinearFilter",(function(){return ke})),n.d(t,"NearestMipMapNearestFilter",(function(){return Ce})),n.d(t,"NearestMipmapLinearFilter",(function(){return Re})),n.d(t,"NearestMipmapNearestFilter",(function(){return Ae})),n.d(t,"NeverCompare",(function(){return kn})),n.d(t,"NeverDepth",(function(){return J})),n.d(t,"NeverStencilFunc",(function(){return xn})),n.d(t,"NoBlending",(function(){return E})),n.d(t,"NoColorSpace",(function(){return an})),n.d(t,"NoToneMapping",(function(){return le})),n.d(t,"NormalAnimationBlendMode",(function(){return Xt})),n.d(t,"NormalBlending",(function(){return M})),n.d(t,"NotEqualCompare",(function(){return Nn})),n.d(t,"NotEqualDepth",(function(){return ae})),n.d(t,"NotEqualStencilFunc",(function(){return An})),n.d(t,"NumberKeyframeTrack",(function(){return Mf})),n.d(t,"Object3D",(function(){return Ki})),n.d(t,"ObjectLoader",(function(){return vd})),n.d(t,"ObjectSpaceNormalMap",(function(){return rn})),n.d(t,"OctahedronGeometry",(function(){return Gh})),n.d(t,"OneFactor",(function(){return U})),n.d(t,"OneMinusConstantAlphaFactor",(function(){return K})),n.d(t,"OneMinusConstantColorFactor",(function(){return Y})),n.d(t,"OneMinusDstAlphaFactor",(function(){return j})),n.d(t,"OneMinusDstColorFactor",(function(){return G})),n.d(t,"OneMinusSrcAlphaFactor",(function(){return H})),n.d(t,"OneMinusSrcColorFactor",(function(){return B}
2)),n.d(t,"OrthographicCamera",(function(){return Hs})),n.d(t,"P3Primaries",(function(){return dn})),n.d(t,"PCFShadowMap",(function(){return v})),n.d(t,"PCFSoftShadowMap",(function(){return _})),n.d(t,"PMREMGenerator",(function(){return Ks})),n.d(t,"Path",(function(){return eh})),n.d(t,"PerspectiveCamera",(function(){return vs})),n.d(t,"Plane",(function(){return Ts})),n.d(t,"PlaneGeometry",(function(){return ks})),n.d(t,"PlaneHelper",(function(){return Bp})),n.d(t,"PointLight",(function(){return ad})),n.d(t,"PointLightHelper",(function(){return wp})),n.d(t,"Points",(function(){return Eu})),n.d(t,"PointsMaterial",(function(){return bu})),n.d(t,"PolarGridHelper",(function(){return Ap})),n.d(t,"PolyhedronGeometry",(function(){return oh})),n.d(t,"PositionalAudio",(function(){return Hd})),n.d(t,"PropertyBinding",(function(){return qd})),n.d(t,"PropertyMixer",(function(){return jd})),n.d(t,"QuadraticBezierCurve",(function(){return Yu})),n.d(t,"QuadraticBezierCurve3",(function(){return Zu})),n.d(t,"Quaternion",(function(){return qr})),n.d(t,"QuaternionKeyframeTrack",(function(){return Cf})),n.d(t,"QuaternionLinearInterpolant",(function(){return Af})),n.d(t,"RED_GREEN_RGTC2_Format",(function(){return Dt})),n.d(t,"RED_RGTC1_Format",(function(){return It})),n.d(t,"REVISION",(function(){return r})),n.d(t,"RGBADepthPacking",(function(){return tn})),n.d(t,"RGBAFormat",(function(){return qe})),n.d(t,"RGBAIntegerFormat",(function(){return it})),n.d(t,"RGBA_ASTC_10x10_Format",(function(){return Ct})),n.d(t,"RGBA_ASTC_10x5_Format",(function(){return Et})),n.d(t,"RGBA_ASTC_10x6_Format",(function(){return Mt})),n.d(t,"RGBA_ASTC_10x8_Format",(function(){return At})),n.d(t,"RGBA_ASTC_12x10_Format",(function(){return Rt})),n.d(t,"RGBA_ASTC_12x12_Format",(function(){return kt})),n.d(t,"RGBA_ASTC_4x4_Format",(function(){return vt})),n.d(t,"RGBA_ASTC_5x4_Format",(function(){return _t})),n.d(t,"RGBA_ASTC_5x5_Format",(function(){return yt})),n.d(t,"RGBA_ASTC_6x5_Format",(function(){return bt})),n.d(t,"RGBA_ASTC_6x6_Format",(function(){return wt})),n.d(t,"RGBA_ASTC_8x5_Format",(function(){return xt})),n.d(t,"RGBA_ASTC_8x6_Format",(function(){return St})),n.d(t,"RGBA_ASTC_8x8_Format",(function(){return Tt})),n.d(t,"RGBA_BPTC_Format",(function(){return Ot})),n.d(t,"RGBA_ETC2_EAC_Format",(function(){return gt})),n.d(t,"RGBA_PVRTC_2BPPV1_Format",(function(){return ft})),n.d(t,"RGBA_PVRTC_4BPPV1_Format",(function(){return ht})),n.d(t,"RGBA_S3TC_DXT1_Format",(function(){return st})),n.d(t,"RGBA_S3TC_DXT3_Format",(function(){return ot})),n.d(t,"RGBA_S3TC_DXT5_Format",(function(){return ct})),n.d(t,"RGB_BPTC_SIGNED_Format",(function(){return Pt})),n.d(t,"RGB_BPTC_UNSIGNED_Format",(function(){return Lt})),n.d(t,"RGB_ETC1_Format",(function(){return pt})),n.d(t,"RGB_ETC2_Format",(function(){return mt})),n.d(t,"RGB_PVRTC_2BPPV1_Format",(function(){return ut})),n.d(t,"RGB_PVRTC_4BPPV1_Format",(function(){return lt})),n.d(t,"RGB_S3TC_DXT1_Format",(function(){return at})),n.d(t,"RGFormat",(function(){return tt})),n.d(t,"RGIntegerFormat",(function(){return nt})),n.d(t,"RawShaderMaterial",(function(){return rf})),n.d(t,"Ray",(function(){return Ei})),n.d(t,"Raycaster",(function(){return ap})),n.d(t,"Rec709Primaries",(function(){return fn})),n.d(t,"RectAreaLight",(function(){return ld})),n.d(t,"RedFormat",(function(){return Qe})),n.d(t,"RedIntegerFormat",(function(){return et})),n.d(t,"ReinhardToneMapping",(function(){return he})),n.d(t,"RenderTarget",(function(){return Hr})),n.d(t,"RepeatWrapping",(function(){return Se})),n.d(t,"ReplaceStencilOp",(function(){return gn})),n.d(t,"ReverseSubtractEquation",(function(){return L})),n.d(t,"RingGeometry",(function(){return $h})),n.d(t,"SIGNED_RED_GREEN_RGTC2_Format",(function(){return Ut})),n.d(t,"SIGNED_RED_RGTC1_Format",(function(){return Nt})),n.d(t,"SRGBColorSpace",(function(){return sn})),n.d(t,"SRGBTransfer",(function(){return hn})),n.d(t,"Scene",(function(){return gl})),n.d(t,"ShaderChunk",(function(){return Os})),n.d(t,"ShaderLib",(function(){return Ls})),n.d(t,"ShaderMaterial",(function(){return ms})),n.d(t,"ShadowMaterial",(function(){return nf})),n.d(t,"Shape",(function(){return ph})),n.d(t,"ShapeGeometry",(function(){return Xh})),n.d(t,"ShapePath",(function(){return Gp})),n.d(t,"ShapeUtils",(function(){return Bh})),n.d(t,"ShortType",(function(){return Fe})),n.d(t,"Skeleton",(function(){return Ql})),n.d(t,"SkeletonHelper",(function(){return bp})),n.d(t,"SkinnedMesh",(function(){return ql})),n.d(t,"Source",(function(){return Dr})),n.d(t,"Sphere",(function(){return vi})),n.d(t,"SphereGeometry",(function(){return qh})),n.d(t,"Spherical",(function(){return cp})),n.d(t,"SphericalHarmonics3",(function(){return ud})),n.d(t,"SplineCurve",(function(){return Ku})),n.d(t,"SpotLight",(function(){return Qf})),n.d(t,"SpotLightHelper",(function(){return gp})),n.d(t,"Sprite",(function(){return Il})),n.d(t,"SpriteMaterial",(function(){return bl})),n.d(t,"SrcAlphaFactor",(function(){return z})),n.d(t,"SrcAlphaSaturateFactor",(function(){return $})),n.d(t,"SrcColorFactor",(function(){return F})),n.d(t,"StaticCopyUsage",(function(){return Wn}
2)),n.d(t,"StaticDrawUsage",(function(){return Fn})),n.d(t,"StaticReadUsage",(function(){return Hn})),n.d(t,"StereoCamera",(function(){return Cd})),n.d(t,"StreamCopyUsage",(function(){return $n})),n.d(t,"StreamDrawUsage",(function(){return zn})),n.d(t,"StreamReadUsage",(function(){return jn})),n.d(t,"StringKeyframeTrack",(function(){return Rf})),n.d(t,"SubtractEquation",(function(){return P})),n.d(t,"SubtractiveBlending",(function(){return C})),n.d(t,"TOUCH",(function(){return c})),n.d(t,"TangentSpaceNormalMap",(function(){return nn})),n.d(t,"TetrahedronGeometry",(function(){return Yh})),n.d(t,"Texture",(function(){return Br})),n.d(t,"TextureLoader",(function(){return Gf})),n.d(t,"TorusGeometry",(function(){return Zh})),n.d(t,"TorusKnotGeometry",(function(){return Kh})),n.d(t,"Triangle",(function(){return la})),n.d(t,"TriangleFanDrawMode",(function(){return Kt})),n.d(t,"TriangleStripDrawMode",(function(){return Zt})),n.d(t,"TrianglesDrawMode",(function(){return Yt})),n.d(t,"TubeGeometry",(function(){return Jh})),n.d(t,"TwoPassDoubleSide",(function(){return T})),n.d(t,"UVMapping",(function(){return ve})),n.d(t,"Uint16BufferAttribute",(function(){return Oa})),n.d(t,"Uint32BufferAttribute",(function(){return La})),n.d(t,"Uint8BufferAttribute",(function(){return Ca})),n.d(t,"Uint8ClampedBufferAttribute",(function(){return Ra})),n.d(t,"Uniform",(function(){return Qd})),n.d(t,"UniformsGroup",(function(){return tp})),n.d(t,"UniformsLib",(function(){return Ps})),n.d(t,"UniformsUtils",(function(){return ps})),n.d(t,"UnsignedByteType",(function(){return De})),n.d(t,"UnsignedInt248Type",(function(){return $e})),n.d(t,"UnsignedIntType",(function(){return He})),n.d(t,"UnsignedShort4444Type",(function(){return We})),n.d(t,"UnsignedShort5551Type",(function(){return Ge})),n.d(t,"UnsignedShortType",(function(){return Be})),n.d(t,"VSMShadowMap",(function(){return y})),n.d(t,"Vector2",(function(){return mr})),n.d(t,"Vector3",(function(){return Yr})),n.d(t,"Vector4",(function(){return zr})),n.d(t,"VectorKeyframeTrack",(function(){return kf})),n.d(t,"VideoTexture",(function(){return Au})),n.d(t,"WebGL1Renderer",(function(){return fl})),n.d(t,"WebGL3DRenderTarget",(function(){return $r})),n.d(t,"WebGLArrayRenderTarget",(function(){return Wr})),n.d(t,"WebGLCoordinateSystem",(function(){return Zn})),n.d(t,"WebGLCubeRenderTarget",(function(){return bs})),n.d(t,"WebGLMultipleRenderTargets",(function(){return Xr})),n.d(t,"WebGLRenderTarget",(function(){return Vr})),n.d(t,"WebGLRenderer",(function(){return hl})),n.d(t,"WebGLUtils",(function(){return el})),n.d(t,"WebGPUCoordinateSystem",(function(){return Kn})),n.d(t,"WireframeGeometry",(function(){return Qh})),n.d(t,"WrapAroundEnding",(function(){return $t})),n.d(t,"ZeroCurvatureEnding",(function(){return Wt})),n.d(t,"ZeroFactor",(function(){return D})),n.d(t,"ZeroSlopeEnding",(function(){return Gt})),n.d(t,"ZeroStencilOp",(function(){return pn})),n.d(t,"_SRGBAFormat",(function(){return Yn})),n.d(t,"createCanvasElement",(function(){return Sr})),n.d(t,"sRGBEncoding",(function(){return Qt}));const r="158",o={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},c={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},l=0,h=1,f=2,d=3,m=0,v=1,_=2,y=3,w=0,x=1,S=2,T=2,E=0,M=1,A=2,C=3,R=4,k=5,O=100,P=101,L=102,I=103,N=104,D=200,U=201,F=202,B=203,z=204,H=205,V=206,j=207,W=208,G=209,$=210,X=211,Y=212,Z=213,K=214,J=0,Q=1,ee=2,te=3,ne=4,re=5,ie=6,ae=7,se=0,oe=1,ce=2,le=0,ue=1,he=2,fe=3,de=4,pe=5,me="attached",ge="detached",ve=300,_e=301,ye=302,be=303,we=304,xe=306,Se=1e3,Te=1001,Ee=1002,Me=1003,Ae=1004,Ce=1004,Re=1005,ke=1005,Oe=1006,Pe=1007,Le=1007,Ie=1008,Ne=1008,De=1009,Ue=1010,Fe=1011,Be=1012,ze=1013,He=1014,Ve=1015,je=1016,We=1017,Ge=1018,$e=1020,Xe=1021,qe=1023,Ye=1024,Ze=1025,Ke=1026,Je=1027,Qe=1028,et=1029,tt=1030,nt=1031,it=1033,at=33776,st=33777,ot=33778,ct=33779,lt=35840,ut=35841,ht=35842,ft=35843,pt=36196,mt=37492,gt=37496,vt=37808,_t=37809,yt=37810,bt=37811,wt=37812,xt=37813,St=37814,Tt=37815,Et=37816,Mt=37817,At=37818,Ct=37819,Rt=37820,kt=37821,Ot=36492,Pt=36494,Lt=36495,It=36283,Nt=36284,Dt=36285,Ut=36286,Ft=2200,Bt=2201,zt=2202,Ht=2300,Vt=2301,jt=2302,Wt=2400,Gt=2401,$t=2402,Xt=2500,qt=2501,Yt=0,Zt=1,Kt=2,Jt=3e3,Qt=3001,en=3200,tn=3201,nn=0,rn=1,an="",sn="srgb",on="srgb-linear",cn="display-p3",ln="display-p3-linear",un="linear",hn="srgb",fn="rec709",dn="p3",pn=0,mn=7680,gn=7681,vn=7682,_n=7683,yn=34055,bn=34056,wn=5386,xn=512,Sn=513,Tn=514,En=515,Mn=516,An=517,Cn=518,Rn=519,kn=512,On=513,Pn=514,Ln=515,In=516,Nn=517,Dn=518,
vendor: 4,618 bytes, line 2
2Un=519,Fn=35044,Bn=35048,zn=35040,Hn=35045,Vn=35049,jn=35041,Wn=35046,Gn=35050,$n=35042,Xn="100",qn="300 es",Yn=1035,Zn=2e3,Kn=2001;class Jn{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let i=0,t=n.length;i<t;i++)n[i].call(this,e);e.target=null}}}const Qn=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let er=1234567;const nr=Math.PI/180,rr=180/Math.PI;function ir(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Qn[255&e]+Qn[e>>8&255]+Qn[e>>16&255]+Qn[e>>24&255]+"-"+Qn[255&t]+Qn[t>>8&255]+"-"+Qn[t>>16&15|64]+Qn[t>>24&255]+"-"+Qn[63&n|128]+Qn[n>>8&255]+"-"+Qn[n>>16&255]+Qn[n>>24&255]+Qn[255&r]+Qn[r>>8&255]+Qn[r>>16&255]+Qn[r>>24&255]).toLowerCase()}function ar(e,t,n){return Math.max(t,Math.min(n,e))}function sr(e,t){return(e%t+t)%t}function or(e,t,n){return(1-n)*e+n*t}function cr(e){return 0==(e&e-1)&&0!==e}function lr(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function ur(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function fr(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function dr(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const pr={DEG2RAD:nr,RAD2DEG:rr,generateUUID:ir,clamp:ar,euclideanModulo:sr,mapLinear:function(e,t,n,r,o){return r+(e-t)*(o-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:or,damp:function(e,t,n,dt){return or(e,t,1-Math.exp(-n*dt))},pingpong:function(e,t=1){return t-Math.abs(sr(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(s){void 0!==s&&(er=s);let e=er+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(e){return e*nr},radToDeg:function(e){return e*rr},isPowerOfTwo:cr,ceilPowerOfTwo:lr,floorPowerOfTwo:ur,setQuaternionFromProperEuler:function(q,a,b,e,t){const n=Math.cos,r=Math.sin,o=n(b/2),c=r(b/2),l=n((a+e)/2),h=r((a+e)/2),f=n((a-e)/2),d=r((a-e)/2),m=n((e-a)/2),v=r((e-a)/2);
vendor: 11,905 bytes, line 2
2switch(t){case"XYX":q.set(o*h,c*f,c*d,o*l);break;case"YZY":q.set(c*d,o*h,c*f,o*l);break;case"ZXZ":q.set(c*f,c*d,o*h,o*l);break;case"XZX":q.set(o*h,c*v,c*m,o*l);break;case"YXY":q.set(c*m,o*h,c*v,o*l);break;case"ZYZ":q.set(c*v,c*m,o*h,o*l)}},normalize:dr,denormalize:fr};class mr{constructor(e=0,t=0){mr.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(s){return this.x+=s,this.y+=s,this}addVectors(a,b){return this.x=a.x+b.x,this.y=a.y+b.y,this}addScaledVector(e,s){return this.x+=e.x*s,this.y+=e.y*s,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(s){return this.x-=s,this.y-=s,this}subVectors(a,b){return this.x=a.x-b.x,this.y=a.y-b.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(ar(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*s+e.x,this.y=r*s+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class gr{constructor(e,t,n,r,o,c,l,h,f){gr.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,r,o,c,l,h,f)}set(e,t,n,r,o,c,l,h,f){const d=this.elements;return d[0]=e,d[1]=r,d[2]=l,d[3]=t,d[4]=o,d[5]=h,d[6]=n,d[7]=c,d[8]=f,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(a,b){const e=a.elements,t=b.elements,n=this.elements,r=e[0],o=e[3],c=e[6],l=e[1],h=e[4],f=e[7],d=e[2],m=e[5],v=e[8],_=t[0],y=t[3],w=t[6],x=t[1],S=t[4],T=t[7],E=t[2],M=t[5],A=t[8];return n[0]=r*_+o*x+c*E,n[3]=r*y+o*S+c*M,n[6]=r*w+o*T+c*A,n[1]=l*_+h*x+f*E,n[4]=l*y+h*S+f*M,n[7]=l*w+h*T+f*A,n[2]=d*_+m*x+v*E,n[5]=d*y+m*S+v*M,n[8]=d*w+m*T+v*A,this}multiplyScalar(s){const e=this.elements;return e[0]*=s,e[3]*=s,e[6]*=s,e[1]*=s,e[4]*=s,e[7]*=s,e[2]*=s,e[5]*=s,e[8]*=s,this}determinant(){const e=this.elements,a=e[0],b=e[1],t=e[2],n=e[3],r=e[4],o=e[5],g=e[6],c=e[7],i=e[8];return a*r*i-a*o*c-b*n*i+b*o*g+t*n*c-t*r*g}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],o=e[3],c=e[4],l=e[5],h=e[6],f=e[7],d=e[8],m=d*c-l*f,v=l*h-d*o,_=f*o-c*h,y=t*m+n*v+r*_;if(0===y)return this.set(0,0,0,0,0,0,0,0,0);const w=1/y;return e[0]=m*w,e[1]=(r*f-d*n)*w,e[2]=(l*n-r*c)*w,e[3]=v*w,e[4]=(d*t-r*h)*w,e[5]=(r*o-l*t)*w,e[6]=_*w,e[7]=(n*h-f*t)*w,e[8]=(c*t-n*o)*w,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,o,c,l){const h=Math.cos(o),s=Math.sin(o);return this.set(n*h,n*s,-n*(h*c+s*l)+c+e,-r*s,r*h,-r*(-s*c+h*l)+l+t,0,0,1),this}scale(e,t){return this.premultiply(vr.makeScale(e,t)),this}rotate(e){return this.premultiply(vr.makeRotation(-e)),this}translate(e,t){return this.premultiply(vr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,s,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const vr=new gr;function _r(e){for(let i=e.length-1;i>=0;--i)if(e[i]>=65535)return!0;return!1}const yr={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function wr(e,t){return new yr[e](t)}function xr(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Sr(){const canvas=xr("canvas");return canvas.style.display="block",canvas}const Tr={};function Er(e){e in Tr||(Tr[e]=!0)}const Mr=(new gr).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Ar=(new gr).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Cr={[on]:{transfer:un,primaries:fn,toReference:e=>e,fromReference:e=>e},[sn]:{transfer:hn,primaries:fn,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[ln]:{transfer:un,primaries:dn,toReference:e=>e.applyMatrix3(Ar),fromReference:e=>e.applyMatrix3(Mr)},[cn]:{transfer:hn,primaries:dn,toReference:e=>e.convertSRGBToLinear().applyMatrix3(Ar),fromReference:e=>e.applyMatrix3(Mr).convertLinearToSRGB()}},Rr=new Set([on,ln]),kr={enabled:!0,_workingColorSpace:on,get legacyMode(){return!this.enabled},set legacyMode(e){this.enabled=!e},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Rr.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=Cr[t].toReference;return(0,Cr[n].fromReference)(r(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return Cr[e].primaries},getTransfer:function(e){return e===an?un:Cr[e].transfer}};function Or(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function Pr(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let Lr;class Ir{static getDataURL(image){if(/^data:/i.test(image.src))return image.src;if("undefined"==typeof HTMLCanvasElement)return image.src;let canvas;if(image instanceof HTMLCanvasElement)canvas=image;else{void 0===Lr&&(Lr=xr("canvas")),Lr.width=image.width,Lr.height=image.height;const e=Lr.getContext("2d");image instanceof ImageData?e.putImageData(image,0,0):e.drawImage(image,0,0,image.width,image.height),canvas=Lr}return canvas.width>2048||canvas.height>2048?canvas.toDataURL("image/jpeg",.6):canvas.toDataURL("image/png")}static sRGBToLinear(image){if("undefined"!=typeof HTMLImageElement&&image instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&image instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&image instanceof ImageBitmap){const canvas=xr("canvas");canvas.width=image.width,canvas.height=image.height;const e=canvas.getContext("2d");e.drawImage(image,0,0,image.width,image.height);const t=e.getImageData(0,0,image.width,image.height),data=t.data;for(let i=0;i<data.length;i++)data[i]=255*Or(data[i]/255);return e.putImageData(t,0,0),canvas}if(image.data){const data=image.data.slice(0);for(let i=0;i<data.length;i++)data instanceof Uint8Array||data instanceof Uint8ClampedArray?data[i]=Math.floor(255*Or(data[i]/255)):data[i]=Or(data[i]);return{data:data,width:image.width,height:image.height}}return image}}let Nr=0;class Dr{constructor(data=null){this.isSource=!0,Object.defineProperty(this,"id",{value:Nr++}),this.uuid=ir(),this.data=data,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(meta){const e=void 0===meta||"string"==typeof meta;if(!e&&void 0!==meta.images[this.uuid])return meta.images[this.uuid];const output={uuid:this.uuid,url:""},data=this.data;if(null!==data){let e;if(Array.isArray(data)){e=[];for(let i=0,t=data.length;i<t;i++)data[i].isDataTexture?e.push(Ur(data[i].image)):e.push(Ur(data[i]))}else e=Ur(data);output.url=e}return e||(meta.images[this.uuid]=output),output}}function Ur(image){return"undefined"!=typeof HTMLImageElement&&image instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&image instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&image instanceof ImageBitmap?Ir.getDataURL(image):image.data?{data:Array.from(image.data),width:image.width,height:image.height,type:image.data.constructor.name}:{}}let Fr=0;class Br extends Jn{constructor(image=Br.DEFAULT_IMAGE,e=Br.DEFAULT_MAPPING,t=Te,n=Te,r=Oe,o=Ie,c=qe,l=De,h=Br.DEFAULT_ANISOTROPY,f=an){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Fr++}),this.uuid=ir(),this.name="",this.source=new Dr(image),this.mipmaps=[],this.mapping=e,this.channel=0,this.wrapS=t,this.wrapT=n,this.magFilter=r,this.minFilter=o,this.anisotropy=h,this.format=c,this.internalFormat=null,this.type=l,this.offset=new mr(0,0),this.repeat=new mr(1,1),this.center=new mr(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new gr,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,"string"==typeof f?this.colorSpace
vendor: 4,402 bytes, line 2
2=f:(Er("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=f===Qt?sn:an),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(source){return this.name=source.name,this.source=source.source,this.mipmaps=source.mipmaps.slice(0),this.mapping=source.mapping,this.channel=source.channel,this.wrapS=source.wrapS,this.wrapT=source.wrapT,this.magFilter=source.magFilter,this.minFilter=source.minFilter,this.anisotropy=source.anisotropy,this.format=source.format,this.internalFormat=source.internalFormat,this.type=source.type,this.offset.copy(source.offset),this.repeat.copy(source.repeat),this.center.copy(source.center),this.rotation=source.rotation,this.matrixAutoUpdate=source.matrixAutoUpdate,this.matrix.copy(source.matrix),this.generateMipmaps=source.generateMipmaps,this.premultiplyAlpha=source.premultiplyAlpha,this.flipY=source.flipY,this.unpackAlignment=source.unpackAlignment,this.colorSpace=source.colorSpace,this.userData=JSON.parse(JSON.stringify(source.userData)),this.needsUpdate=!0,this}toJSON(meta){const e=void 0===meta||"string"==typeof meta;if(!e&&void 0!==meta.textures[this.uuid])return meta.textures[this.uuid];const output={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(meta).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(output.userData=this.userData),e||(meta.textures[this.uuid]=output),output}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==ve)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Se:e.x=e.x-Math.floor(e.x);break;case Te:e.x=e.x<0?0:1;break;case Ee:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Se:e.y=e.y-Math.floor(e.y);break;case Te:e.y=e.y<0?0:1;break;case Ee:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return Er("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===sn?Qt:Jt}set encoding(e){Er("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Qt?sn:an}}Br.DEFAULT_IMAGE=null,Br.DEFAULT_MAPPING=ve,Br.DEFAULT_ANISOTROPY=1;class zr{constructor(e=0,t=0,n=0,r=1){zr.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(s){return this.x+=s,this.y+=s,this.z+=s,this.w+=s,this}addVectors(a,b){return this.x=a.x+b.x,this.y=a.y+b.y,this.z=a.z+b.z,this.w=a.w+b.w,this}addScaledVector(e,s){return this.x+=e.x*s,this.y+=e.y*s,this.z+=e.z*s,this.w+=e.w*s,this}
vendor: 4,447 bytes, line 2
2sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(s){return this.x-=s,this.y-=s,this.z-=s,this.w-=s,this}subVectors(a,b){return this.x=a.x-b.x,this.y=a.y-b.y,this.z=a.z-b.z,this.w=a.w-b.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,o=this.w,c=e.elements;return this.x=c[0]*t+c[4]*n+c[8]*r+c[12]*o,this.y=c[1]*t+c[5]*n+c[9]*r+c[13]*o,this.z=c[2]*t+c[6]*n+c[10]*r+c[14]*o,this.w=c[3]*t+c[7]*n+c[11]*r+c[15]*o,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(q){this.w=2*Math.acos(q.w);const s=Math.sqrt(1-q.w*q.w);return s<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=q.x/s,this.y=q.y/s,this.z=q.z/s),this}setAxisAngleFromRotationMatrix(e){let t,n,r,o;const c=e.elements,l=c[0],h=c[4],f=c[8],d=c[1],m=c[5],v=c[9],_=c[2],y=c[6],w=c[10];if(Math.abs(h-d)<.01&&Math.abs(f-_)<.01&&Math.abs(v-y)<.01){if(Math.abs(h+d)<.1&&Math.abs(f+_)<.1&&Math.abs(v+y)<.1&&Math.abs(l+m+w-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const e=(l+1)/2,c=(m+1)/2,x=(w+1)/2,S=(h+d)/4,T=(f+_)/4,E=(v+y)/4;return e>c&&e>x?e<.01?(n=0,r=.707106781,o=.707106781):(n=Math.sqrt(e),r=S/n,o=T/n):c>x?c<.01?(n=.707106781,r=0,o=.707106781):(r=Math.sqrt(c),n=S/r,o=E/r):x<.01?(n=.707106781,r=.707106781,o=0):(o=Math.sqrt(x),n=T/o,r=E/o),this.set(n,r,o,t),this}let s=Math.sqrt((y-v)*(y-v)+(f-_)*(f-_)+(d-h)*(d-h));return Math.abs(s)<.001&&(s=1),this.x=(y-v)/s,this.y=(f-_)/s,this.z=(d-h)/s,this.w=Math.acos((l+m+w-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Hr extends Jn{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new zr(0,0,e,t),this.scissorTest=!1,this.viewport=new zr(0,0,e,t);const image={width:e,height:t,depth:1};void 0!==n.encoding&&(Er("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace
vendor: 3,964 bytes, line 2
2=n.encoding===Qt?sn:an),n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Oe,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},n),this.texture=new Br(image,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=n.generateMipmaps,this.texture.internalFormat=n.internalFormat,this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}setSize(e,t,n=1){this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(source){this.width=source.width,this.height=source.height,this.depth=source.depth,this.scissor.copy(source.scissor),this.scissorTest=source.scissorTest,this.viewport.copy(source.viewport),this.texture=source.texture.clone(),this.texture.isRenderTargetTexture=!0;const image=Object.assign({},source.texture.image);return this.texture.source=new Dr(image),this.depthBuffer=source.depthBuffer,this.stencilBuffer=source.stencilBuffer,null!==source.depthTexture&&(this.depthTexture=source.depthTexture.clone()),this.samples=source.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Vr extends Hr{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}}class jr extends Br{constructor(data=null,e=1,t=1,n=1){super(null),this.isDataArrayTexture=!0,this.image={data:data,width:e,height:t,depth:n},this.magFilter=Me,this.minFilter=Me,this.wrapR=Te,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Wr extends Vr{constructor(e=1,t=1,n=1){super(e,t),this.isWebGLArrayRenderTarget=!0,this.depth=n,this.texture=new jr(null,e,t,n),this.texture.isRenderTargetTexture=!0}}class Gr extends Br{constructor(data=null,e=1,t=1,n=1){super(null),this.isData3DTexture=!0,this.image={data:data,width:e,height:t,depth:n},this.magFilter=Me,this.minFilter=Me,this.wrapR=Te,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class $r extends Vr{constructor(e=1,t=1,n=1){super(e,t),this.isWebGL3DRenderTarget=!0,this.depth=n,this.texture=new Gr(null,e,t,n),this.texture.isRenderTargetTexture=!0}}class Xr extends Vr{constructor(e=1,t=1,n=1,r={}){super(e,t,r),this.isWebGLMultipleRenderTargets=!0;const o=this.texture;this.texture=[];for(let i=0;i<n;i++)this.texture[i]=o.clone(),this.texture[i].isRenderTargetTexture=!0}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let i=0,r=this.texture.length;i<r;i++)this.texture[i].image.width=e,this.texture[i].image.height=t,this.texture[i].image.depth=n;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}copy(source){this.dispose(),this.width=source.width,this.height=source.height,this.depth=source.depth,this.scissor.copy(source.scissor),this.scissorTest=source.scissorTest,this.viewport.copy(source.viewport),this.depthBuffer=source.depthBuffer,this.stencilBuffer=source.stencilBuffer,null!==source.depthTexture&&(this.depthTexture=source.depthTexture.clone()),this.texture.length=0;for(let i=0,e=source.texture.length;i<e;i++)this.texture[i]=source.texture[i].clone(),this.texture[i].isRenderTargetTexture=!0;return this}}class qr{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,o,c,l){let h=n[r+0],f=n[r+1],d=n[r+2],m=n[r+3];const v=o[c+0],_=o[c+1],y=o[c+2],w=o[c+3];if(0===l)return e[t+0]=h,e[t+1]=f,e[t+2]=d,void(e[t+3]=m);if(1===l)return e[t+0]=v,e[t+1]=_,e[t+2]=y,void(e[t+3]=w);if(m!==w||h!==v||f!==_||d!==y){let s=1-l;const e=h*v+f*_+d*y+m*w,t=e>=0?1:-1,n=1-e*e;if(n>Number.EPSILON){const r=Math.sqrt(n),o=Math.atan2(r,e*t);s=Math.sin(s*o)/r,l=Math.sin(l*o)/r}const r=l*t;
vendor: 5,066 bytes, line 2
2if(h=h*s+v*r,f=f*s+_*r,d=d*s+y*r,m=m*s+w*r,s===1-l){const e=1/Math.sqrt(h*h+f*f+d*d+m*m);h*=e,f*=e,d*=e,m*=e}}e[t]=h,e[t+1]=f,e[t+2]=d,e[t+3]=m}static multiplyQuaternionsFlat(e,t,n,r,o,c){const l=n[r],h=n[r+1],f=n[r+2],d=n[r+3],m=o[c],v=o[c+1],_=o[c+2],y=o[c+3];return e[t]=l*y+d*m+h*_-f*v,e[t+1]=h*y+d*v+f*m-l*_,e[t+2]=f*y+d*_+l*v-h*m,e[t+3]=d*y-l*m-h*v-f*_,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const n=e._x,r=e._y,o=e._z,c=e._order,l=Math.cos,h=Math.sin,f=l(n/2),d=l(r/2),m=l(o/2),v=h(n/2),_=h(r/2),y=h(o/2);switch(c){case"XYZ":this._x=v*d*m+f*_*y,this._y=f*_*m-v*d*y,this._z=f*d*y+v*_*m,this._w=f*d*m-v*_*y;break;case"YXZ":this._x=v*d*m+f*_*y,this._y=f*_*m-v*d*y,this._z=f*d*y-v*_*m,this._w=f*d*m+v*_*y;break;case"ZXY":this._x=v*d*m-f*_*y,this._y=f*_*m+v*d*y,this._z=f*d*y+v*_*m,this._w=f*d*m-v*_*y;break;case"ZYX":this._x=v*d*m-f*_*y,this._y=f*_*m+v*d*y,this._z=f*d*y-v*_*m,this._w=f*d*m+v*_*y;break;case"YZX":this._x=v*d*m+f*_*y,this._y=f*_*m+v*d*y,this._z=f*d*y-v*_*m,this._w=f*d*m-v*_*y;break;case"XZY":this._x=v*d*m-f*_*y,this._y=f*_*m-v*d*y,this._z=f*d*y+v*_*m,this._w=f*d*m+v*_*y}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,s=Math.sin(n);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],o=t[8],c=t[1],l=t[5],h=t[9],f=t[2],d=t[6],m=t[10],v=n+l+m;if(v>0){const s=.5/Math.sqrt(v+1);this._w=.25/s,this._x=(d-h)*s,this._y=(o-f)*s,this._z=(c-r)*s}else if(n>l&&n>m){const s=2*Math.sqrt(1+n-l-m);this._w=(d-h)/s,this._x=.25*s,this._y=(r+c)/s,this._z=(o+f)/s}else if(l>m){const s=2*Math.sqrt(1+l-n-m);this._w=(o-f)/s,this._x=(r+c)/s,this._y=.25*s,this._z=(h+d)/s}else{const s=2*Math.sqrt(1+m-n-l);this._w=(c-r)/s,this._x=(o+f)/s,this._y=(h+d)/s,this._z=.25*s}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(q){return 2*Math.acos(Math.abs(ar(this.dot(q),-1,1)))}rotateTowards(q,e){const t=this.angleTo(q);if(0===t)return this;const n=Math.min(1,e/t);return this.slerp(q,n),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(q){return this.multiplyQuaternions(this,q)}premultiply(q){return this.multiplyQuaternions(q,this)}multiplyQuaternions(a,b){const e=a._x,t=a._y,n=a._z,r=a._w,o=b._x,c=b._y,l=b._z,h=b._w;return this._x=e*h+r*o+t*l-n*c,this._y=t*h+r*c+n*o-e*l,this._z=n*h+r*l+e*c-t*o,this._w=r*h-e*o-t*c-n*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,o=this._z,c=this._w;let l=c*e._w+n*e._x+r*e._y+o*e._z;if(l<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,l=-l):this.copy(e),l>=1)return this._w=c,this._x=n,this._y=r,this._z=o,this;const h=1-l*l;if(h<=Number.EPSILON){const s=1-t;return this._w=s*c+t*this._w,this._x=s*n+t*this._x,this._y=s*r+t*this._y,this._z=s*o+t*this._z,this.normalize(),this._onChangeCallback(),this}const f=Math.sqrt(h),d=Math.atan2(f,l),m=Math.sin((1-t)*d)/f,v=Math.sin(t*d)/f;return this._w=c*m+this._w*v,this._x=n*m+this._x*v,this._y=r*m+this._y*v,this._z=o*m+this._z*v,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),o=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(o),n*Math.cos(o),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}
vendor: 14,683 bytes, line 2
2_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Yr{constructor(e=0,t=0,n=0){Yr.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(s){return this.x+=s,this.y+=s,this.z+=s,this}addVectors(a,b){return this.x=a.x+b.x,this.y=a.y+b.y,this.z=a.z+b.z,this}addScaledVector(e,s){return this.x+=e.x*s,this.y+=e.y*s,this.z+=e.z*s,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(s){return this.x-=s,this.y-=s,this.z-=s,this}subVectors(a,b){return this.x=a.x-b.x,this.y=a.y-b.y,this.z=a.z-b.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(a,b){return this.x=a.x*b.x,this.y=a.y*b.y,this.z=a.z*b.z,this}applyEuler(e){return this.applyQuaternion(Kr.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Kr.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,o=e.elements;return this.x=o[0]*t+o[3]*n+o[6]*r,this.y=o[1]*t+o[4]*n+o[7]*r,this.z=o[2]*t+o[5]*n+o[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,o=e.elements,c=1/(o[3]*t+o[7]*n+o[11]*r+o[15]);return this.x=(o[0]*t+o[4]*n+o[8]*r+o[12])*c,this.y=(o[1]*t+o[5]*n+o[9]*r+o[13])*c,this.z=(o[2]*t+o[6]*n+o[10]*r+o[14])*c,this}applyQuaternion(q){const e=this.x,t=this.y,n=this.z,r=q.x,o=q.y,c=q.z,l=q.w,h=2*(o*n-c*t),f=2*(c*e-r*n),d=2*(r*t-o*e);return this.x=e+l*h+o*d-c*f,this.y=t+l*f+c*h-r*d,this.z=n+l*d+r*f-o*h,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*r,this.y=o[1]*t+o[5]*n+o[9]*r,this.z=o[2]*t+o[6]*n+o[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(a,b){const e=a.x,t=a.y,n=a.z,r=b.x,o=b.y,c=b.z;return this.x=t*c-n*o,this.y=n*r-e*c,this.z=e*o-t*r,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Zr.copy(this).projectOnVector(e),this.sub(Zr)}reflect(e){return this.sub(Zr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(ar(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(s){return this.setFromSphericalCoords(s.radius,s.phi,s.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const u=2*(Math.random()-.5),e=Math.random()*Math.PI*2,t=Math.sqrt(1-u**2);return this.x=t*Math.cos(e),this.y=t*Math.sin(e),this.z=u,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Zr=new Yr,Kr=new qr;class Jr{constructor(e=new Yr(1/0,1/0,1/0),t=new Yr(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let i=0,t=e.length;i<t;i+=3)this.expandByPoint(ei.fromArray(e,i));return this}setFromBufferAttribute(e){this.makeEmpty();for(let i=0,t=e.count;i<t;i++)this.expandByPoint(ei.fromBufferAttribute(e,i));return this}setFromPoints(e){this.makeEmpty();for(let i=0,t=e.length;i<t;i++)this.expandByPoint(e[i]);return this}setFromCenterAndSize(e,t){const n=ei.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(object,e=!1){return this.makeEmpty(),this.expandByObject(object,e)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(object,e=!1){object.updateWorldMatrix(!1,!1);const t=object.geometry;if(void 0!==t){const n=t.getAttribute("position");if(!0===e&&void 0!==n&&!0!==object.isInstancedMesh)for(let i=0,e=n.count;i<e;i++)!0===object.isMesh?object.getVertexPosition(i,ei):ei.fromBufferAttribute(n,i),ei.applyMatrix4(object.matrixWorld),this.expandByPoint(ei);else void 0!==object.boundingBox?(null===object.boundingBox&&object.computeBoundingBox(),ti.copy(object.boundingBox)):(null===t.boundingBox&&t.computeBoundingBox(),ti.copy(t.boundingBox)),ti.applyMatrix4(object.matrixWorld),this.union(ti)}const n=object.children;for(let i=0,t=n.length;i<t;i++)this.expandByObject(n[i],e);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,ei),ei.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ci),ui.subVectors(this.max,ci),ni.subVectors(e.a,ci),ri.subVectors(e.b,ci),ii.subVectors(e.c,ci),ai.subVectors(ri,ni),si.subVectors(ii,ri),oi.subVectors(ni,ii);let t=[0,-ai.z,ai.y,0,-si.z,si.y,0,-oi.z,oi.y,ai.z,0,-ai.x,si.z,0,-si.x,oi.z,0,-oi.x,-ai.y,ai.x,0,-si.y,si.x,0,-oi.y,oi.x,0];return!!di(t,ni,ri,ii,ui)&&(t=[1,0,0,0,1,0,0,0,1],!!di(t,ni,ri,ii,ui)&&(hi.crossVectors(ai,si),t=[hi.x,hi.y,hi.z],di(t,ni,ri,ii,ui)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ei).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(ei).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Qr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Qr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Qr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Qr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Qr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Qr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Qr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Qr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Qr)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Qr=[new Yr,new Yr,new Yr,new Yr,new Yr,new Yr,new Yr,new Yr],ei=new Yr,ti=new Jr,ni=new Yr,ri=new Yr,ii=new Yr,ai=new Yr,si=new Yr,oi=new Yr,ci=new Yr,ui=new Yr,hi=new Yr,fi=new Yr;function di(e,t,n,r,o){for(let i=0,c=e.length-3;i<=c;i+=3){fi.fromArray(e,i);const c=o.x*Math.abs(fi.x)+o.y*Math.abs(fi.y)+o.z*Math.abs(fi.z),l=t.dot(fi),h=n.dot(fi),f=r.dot(fi);if(Math.max(-Math.max(l,h,f),Math.min(l,h,f))>c)return!1}return!0}const pi=new Jr,mi=new Yr,gi=new Yr;class vi{constructor(e=new Yr,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):pi.setFromPoints(e).getCenter(n);let r=0;for(let i=0,t=e.length;i<t;i++)r=Math.max(r,n.distanceToSquared(e[i]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;mi.subVectors(e,this.center);const t=mi.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(mi,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(gi.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(mi.copy(e.center).add(gi)),this.expandByPoint(mi.copy(e.center).sub(gi))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const _i=new Yr,yi=new Yr,bi=new Yr,wi=new Yr,xi=new Yr,Si=new Yr,Ti=new Yr;class Ei{constructor(e=new Yr,t=new Yr(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,_i)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=_i.subVectors(e,this.origin).dot(this.direction);
vendor: 5,251 bytes, line 2
2return t<0?this.origin.distanceToSquared(e):(_i.copy(this.origin).addScaledVector(this.direction,t),_i.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){yi.copy(e).add(t).multiplyScalar(.5),bi.copy(t).sub(e).normalize(),wi.copy(this.origin).sub(yi);const o=.5*e.distanceTo(t),c=-this.direction.dot(bi),l=wi.dot(this.direction),h=-wi.dot(bi),f=wi.lengthSq(),d=Math.abs(1-c*c);let m,v,_,y;if(d>0)if(m=c*h-l,v=c*l-h,y=o*d,m>=0)if(v>=-y)if(v<=y){const e=1/d;m*=e,v*=e,_=m*(m+c*v+2*l)+v*(c*m+v+2*h)+f}else v=o,m=Math.max(0,-(c*v+l)),_=-m*m+v*(v+2*h)+f;else v=-o,m=Math.max(0,-(c*v+l)),_=-m*m+v*(v+2*h)+f;else v<=-y?(m=Math.max(0,-(-c*o+l)),v=m>0?-o:Math.min(Math.max(-o,-h),o),_=-m*m+v*(v+2*h)+f):v<=y?(m=0,v=Math.min(Math.max(-o,-h),o),_=v*(v+2*h)+f):(m=Math.max(0,-(c*o+l)),v=m>0?o:Math.min(Math.max(-o,-h),o),_=-m*m+v*(v+2*h)+f);else v=c>0?-o:o,m=Math.max(0,-(c*v+l)),_=-m*m+v*(v+2*h)+f;return n&&n.copy(this.origin).addScaledVector(this.direction,m),r&&r.copy(yi).addScaledVector(bi,v),_}intersectSphere(e,t){_i.subVectors(e.center,this.origin);const n=_i.dot(this.direction),r=_i.dot(_i)-n*n,o=e.radius*e.radius;if(r>o)return null;const c=Math.sqrt(o-r),l=n-c,h=n+c;return h<0?null:l<0?this.at(h,t):this.at(l,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,o,c,l,h;const f=1/this.direction.x,d=1/this.direction.y,m=1/this.direction.z,v=this.origin;return f>=0?(n=(e.min.x-v.x)*f,r=(e.max.x-v.x)*f):(n=(e.max.x-v.x)*f,r=(e.min.x-v.x)*f),d>=0?(o=(e.min.y-v.y)*d,c=(e.max.y-v.y)*d):(o=(e.max.y-v.y)*d,c=(e.min.y-v.y)*d),n>c||o>r?null:((o>n||isNaN(n))&&(n=o),(c<r||isNaN(r))&&(r=c),m>=0?(l=(e.min.z-v.z)*m,h=(e.max.z-v.z)*m):(l=(e.max.z-v.z)*m,h=(e.min.z-v.z)*m),n>h||l>r?null:((l>n||n!=n)&&(n=l),(h<r||r!=r)&&(r=h),r<0?null:this.at(n>=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,_i)}intersectTriangle(a,b,e,t,n){xi.subVectors(b,a),Si.subVectors(e,a),Ti.crossVectors(xi,Si);let r,o=this.direction.dot(Ti);if(o>0){if(t)return null;r=1}else{if(!(o<0))return null;r=-1,o=-o}wi.subVectors(this.origin,a);const c=r*this.direction.dot(Si.crossVectors(wi,Si));if(c<0)return null;const l=r*this.direction.dot(xi.cross(wi));if(l<0)return null;if(c+l>o)return null;const h=-r*wi.dot(Ti);return h<0?null:this.at(h/o,n)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Mi{constructor(e,t,n,r,o,c,l,h,f,d,m,v,_,y,w,x){Mi.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,r,o,c,l,h,f,d,m,v,_,y,w,x)}set(e,t,n,r,o,c,l,h,f,d,m,v,_,y,w,x){const S=this.elements;return S[0]=e,S[4]=t,S[8]=n,S[12]=r,S[1]=o,S[5]=c,S[9]=l,S[13]=h,S[2]=f,S[6]=d,S[10]=m,S[14]=v,S[3]=_,S[7]=y,S[11]=w,S[15]=x,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Mi).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/Ai.setFromMatrixColumn(e,0).length(),o=1/Ai.setFromMatrixColumn(e,1).length(),c=1/Ai.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=0,t[8]=n[8]*c,t[9]=n[9]*c,t[10]=n[10]*c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,o=e.z,a=Math.cos(n),b=Math.sin(n),c=Math.cos(r),l=Math.sin(r),h=Math.cos(o),f=Math.sin(o);if("XYZ"===e.order){const e=a*h,n=a*f,r=b*h,o=b*f;t[0]=c*h,t[4]=-c*f,t[8]=l,t[1]=n+r*l,t[5]=e-o*l,t[9]=-b*c,t[2]=o-e*l,t[6]=r+n*l,t[10]=a*c}else if("YXZ"===e.order){const e=c*h,n=c*f,r=l*h,o=l*f;t[0]=e+o*b,t[4]=r*b-n,t[8]=a*l,t[1]=a*f,t[5]=a*h,t[9]=-b,t[2]=n*b-r,t[6]=o+e*b,t[10]=a*c}else if("ZXY"===e.order){const e=c*h,n=c*f,r=l*h,o=l*f;t[0]=e-o*b,t[4]=-a*f,t[8]=r+n*b,t[1]=n+r*b,t[5]=a*h,t[9]=o-e*b,t[2]=-a*l,t[6]=b,t[10]=a*c}else if("ZYX"===e.order){const e=a*h,n=a*f,r=b*h,o=b*f;t[0]=c*h,t[4]=r*l-n,t[8]=e*l+o,t[1]=c*f,t[5]=o*l+e,t[9]=n*l-r,t[2]=-l,t[6]=b*c,t[10]=a*c}else if("YZX"===e.order){const e=a*c,n=a*l,r=b*c,o=b*l;t[0]=c*h,t[4]=o-e*f,t[8]=r*f+n,t[1]=f,t[5]=a*h,t[9]=-b*h,t[2]=-l*h,t[6]=n*f+r,t[10]=e-o*f}
vendor: 4,393 bytes, line 2
2else if("XZY"===e.order){const e=a*c,n=a*l,r=b*c,o=b*l;t[0]=c*h,t[4]=-f,t[8]=l*h,t[1]=e*f+o,t[5]=a*h,t[9]=n*f-r,t[2]=r*f-n,t[6]=b*h,t[10]=o*f+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(q){return this.compose(Ri,q,ki)}lookAt(e,t,n){const r=this.elements;return Li.subVectors(e,t),0===Li.lengthSq()&&(Li.z=1),Li.normalize(),Oi.crossVectors(n,Li),0===Oi.lengthSq()&&(1===Math.abs(n.z)?Li.x+=1e-4:Li.z+=1e-4,Li.normalize(),Oi.crossVectors(n,Li)),Oi.normalize(),Pi.crossVectors(Li,Oi),r[0]=Oi.x,r[4]=Pi.x,r[8]=Li.x,r[1]=Oi.y,r[5]=Pi.y,r[9]=Li.y,r[2]=Oi.z,r[6]=Pi.z,r[10]=Li.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(a,b){const e=a.elements,t=b.elements,n=this.elements,r=e[0],o=e[4],c=e[8],l=e[12],h=e[1],f=e[5],d=e[9],m=e[13],v=e[2],_=e[6],y=e[10],w=e[14],x=e[3],S=e[7],T=e[11],E=e[15],M=t[0],A=t[4],C=t[8],R=t[12],k=t[1],O=t[5],P=t[9],L=t[13],I=t[2],N=t[6],D=t[10],U=t[14],F=t[3],B=t[7],z=t[11],H=t[15];return n[0]=r*M+o*k+c*I+l*F,n[4]=r*A+o*O+c*N+l*B,n[8]=r*C+o*P+c*D+l*z,n[12]=r*R+o*L+c*U+l*H,n[1]=h*M+f*k+d*I+m*F,n[5]=h*A+f*O+d*N+m*B,n[9]=h*C+f*P+d*D+m*z,n[13]=h*R+f*L+d*U+m*H,n[2]=v*M+_*k+y*I+w*F,n[6]=v*A+_*O+y*N+w*B,n[10]=v*C+_*P+y*D+w*z,n[14]=v*R+_*L+y*U+w*H,n[3]=x*M+S*k+T*I+E*F,n[7]=x*A+S*O+T*N+E*B,n[11]=x*C+S*P+T*D+E*z,n[15]=x*R+S*L+T*U+E*H,this}multiplyScalar(s){const e=this.elements;return e[0]*=s,e[4]*=s,e[8]*=s,e[12]*=s,e[1]*=s,e[5]*=s,e[9]*=s,e[13]*=s,e[2]*=s,e[6]*=s,e[10]*=s,e[14]*=s,e[3]*=s,e[7]*=s,e[11]*=s,e[15]*=s,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],o=e[12],c=e[1],l=e[5],h=e[9],f=e[13],d=e[2],m=e[6],v=e[10],_=e[14];return e[3]*(+o*h*m-r*f*m-o*l*v+n*f*v+r*l*_-n*h*_)+e[7]*(+t*h*_-t*f*v+o*c*v-r*c*_+r*f*d-o*h*d)+e[11]*(+t*f*m-t*l*_-o*c*m+n*c*_+o*l*d-n*f*d)+e[15]*(-r*l*d-t*h*m+t*l*v+r*c*m-n*c*v+n*h*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],o=e[3],c=e[4],l=e[5],h=e[6],f=e[7],d=e[8],m=e[9],v=e[10],_=e[11],y=e[12],w=e[13],x=e[14],S=e[15],T=m*x*f-w*v*f+w*h*_-l*x*_-m*h*S+l*v*S,E=y*v*f-d*x*f-y*h*_+c*x*_+d*h*S-c*v*S,M=d*w*f-y*m*f+y*l*_-c*w*_-d*l*S+c*m*S,A=y*m*h-d*w*h-y*l*v+c*w*v+d*l*x-c*m*x,C=t*T+n*E+r*M+o*A;if(0===C)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const R=1/C;return e[0]=T*R,e[1]=(w*v*o-m*x*o-w*r*_+n*x*_+m*r*S-n*v*S)*R,e[2]=(l*x*o-w*h*o+w*r*f-n*x*f-l*r*S+n*h*S)*R,e[3]=(m*h*o-l*v*o-m*r*f+n*v*f+l*r*_-n*h*_)*R,e[4]=E*R,e[5]=(d*x*o-y*v*o+y*r*_-t*x*_-d*r*S+t*v*S)*R,e[6]=(y*h*o-c*x*o-y*r*f+t*x*f+c*r*S-t*h*S)*R,e[7]=(c*v*o-d*h*o+d*r*f-t*v*f-c*r*_+t*h*_)*R,e[8]=M*R,e[9]=(y*m*o-d*w*o-y*n*_+t*w*_+d*n*S-t*m*S)*R,e[10]=(c*w*o-y*l*o+y*n*f-t*w*f-c*n*S+t*l*S)*R,e[11]=(d*l*o-c*m*o-d*n*f+t*m*f+c*n*_-t*l*_)*R,e[12]=A*R,e[13]=(d*w*r-y*m*r+y*n*v-t*w*v-d*n*x+t*m*x)*R,e[14]=(y*l*r-c*w*r-y*n*h+t*w*h+c*n*x-t*l*x)*R,e[15]=(c*m*r-d*l*r+d*n*h-t*m*h-c*n*v+t*l*v)*R,this}scale(e){const t=this.elements,n=e.x,r=e.y,o=e.z;return t[0]*=n,t[4]*=r,t[8]*=o,t[1]*=n,t[5]*=r,t[9]*=o,t[2]*=n,t[6]*=r,t[10]*=o,t[3]*=n,t[7]*=r,t[11]*=o,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,t,-s,0,0,s,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,0,s,0,0,1,0,0,-s,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),s=Math.sin(e);return this.set(t,-s,0,0,s,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),s=Math.sin(t),r=1-n,o=e.x,c=e.y,l=e.z,h=r*o,f=r*c;return this.set(h*o+n,h*c-s*l,h*l+s*c,0,h*c+s*l,f*c+n,f*l-s*o,0,h*l-s*c,f*l+s*o,r*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,o,c){return this.set(1,n,o,0,e,1,c,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,o=t._x,c=t._y,l=t._z,h=t._w,f=
vendor: 4,842 bytes, line 2
2o+o,d=c+c,m=l+l,v=o*f,_=o*d,y=o*m,w=c*d,x=c*m,S=l*m,T=h*f,E=h*d,M=h*m,A=n.x,C=n.y,R=n.z;return r[0]=(1-(w+S))*A,r[1]=(_+M)*A,r[2]=(y-E)*A,r[3]=0,r[4]=(_-M)*C,r[5]=(1-(v+S))*C,r[6]=(x+T)*C,r[7]=0,r[8]=(y+E)*R,r[9]=(x-T)*R,r[10]=(1-(v+w))*R,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let o=Ai.set(r[0],r[1],r[2]).length();const c=Ai.set(r[4],r[5],r[6]).length(),l=Ai.set(r[8],r[9],r[10]).length();this.determinant()<0&&(o=-o),e.x=r[12],e.y=r[13],e.z=r[14],Ci.copy(this);const h=1/o,f=1/c,d=1/l;return Ci.elements[0]*=h,Ci.elements[1]*=h,Ci.elements[2]*=h,Ci.elements[4]*=f,Ci.elements[5]*=f,Ci.elements[6]*=f,Ci.elements[8]*=d,Ci.elements[9]*=d,Ci.elements[10]*=d,t.setFromRotationMatrix(Ci),n.x=o,n.y=c,n.z=l,this}makePerspective(e,t,n,r,o,c,l=Zn){const h=this.elements,f=2*o/(t-e),d=2*o/(n-r),a=(t+e)/(t-e),b=(n+r)/(n-r);let m,v;if(l===Zn)m=-(c+o)/(c-o),v=-2*c*o/(c-o);else{if(l!==Kn)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+l);m=-c/(c-o),v=-c*o/(c-o)}return h[0]=f,h[4]=0,h[8]=a,h[12]=0,h[1]=0,h[5]=d,h[9]=b,h[13]=0,h[2]=0,h[6]=0,h[10]=m,h[14]=v,h[3]=0,h[7]=0,h[11]=-1,h[15]=0,this}makeOrthographic(e,t,n,r,o,c,l=Zn){const h=this.elements,f=1/(t-e),d=1/(n-r),p=1/(c-o),m=(t+e)*f,v=(n+r)*d;let _,y;if(l===Zn)_=(c+o)*p,y=-2*p;else{if(l!==Kn)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+l);_=o*p,y=-1*p}return h[0]=2*f,h[4]=0,h[8]=0,h[12]=-m,h[1]=0,h[5]=2*d,h[9]=0,h[13]=-v,h[2]=0,h[6]=0,h[10]=y,h[14]=-_,h[3]=0,h[7]=0,h[11]=0,h[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Ai=new Yr,Ci=new Mi,Ri=new Yr(0,0,0),ki=new Yr(1,1,1),Oi=new Yr,Pi=new Yr,Li=new Yr,Ii=new Mi,Ni=new qr;class Di{constructor(e=0,t=0,n=0,r=Di.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,o=r[0],c=r[4],l=r[8],h=r[1],f=r[5],d=r[9],m=r[2],v=r[6],_=r[10];switch(t){case"XYZ":this._y=Math.asin(ar(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,_),this._z=Math.atan2(-c,o)):(this._x=Math.atan2(v,f),this._z=0);break;case"YXZ":this._x=Math.asin(-ar(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(l,_),this._z=Math.atan2(h,f)):(this._y=Math.atan2(-m,o),this._z=0);break;case"ZXY":this._x=Math.asin(ar(v,-1,1)),Math.abs(v)<.9999999?(this._y=Math.atan2(-m,_),this._z=Math.atan2(-c,f)):(this._y=0,this._z=Math.atan2(h,o));break;case"ZYX":this._y=Math.asin(-ar(m,-1,1)),Math.abs(m)<.9999999?(this._x=Math.atan2(v,_),this._z=Math.atan2(h,o)):(this._x=0,this._z=Math.atan2(-c,f));break;case"YZX":this._z=Math.asin(ar(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(-d,f),this._y=Math.atan2(-m,o)):(this._x=0,this._y=Math.atan2(l,_));break;case"XZY":this._z=Math.asin(-ar(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(v,f),this._y=Math.atan2(l,o)):(this._x=Math.atan2(-d,_),this._y=0)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(q,e,t){return Ii.makeRotationFromQuaternion(q),this.setFromRotationMatrix(Ii,e,t)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Ni.setFromEuler(this),this.setFromQuaternion(Ni,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Di.DEFAULT_ORDER="XYZ";class Ui{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return 0!=(this.mask&e.mask)}
vendor: 12,333 bytes, line 2
2isEnabled(e){return 0!=(this.mask&(1<<e|0))}}let Fi=0;const Bi=new Yr,zi=new qr,Hi=new Mi,Vi=new Yr,ji=new Yr,Wi=new Yr,Gi=new qr,$i=new Yr(1,0,0),Xi=new Yr(0,1,0),qi=new Yr(0,0,1),Yi={type:"added"},Zi={type:"removed"};class Ki extends Jn{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Fi++}),this.uuid=ir(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Ki.DEFAULT_UP.clone();const e=new Yr,t=new Di,n=new qr,r=new Yr(1,1,1);t._onChange((function(){n.setFromEuler(t,!1)})),n._onChange((function(){t.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Mi},normalMatrix:{value:new gr}}),this.matrix=new Mi,this.matrixWorld=new Mi,this.matrixAutoUpdate=Ki.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.matrixWorldAutoUpdate=Ki.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.layers=new Ui,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(q){return this.quaternion.premultiply(q),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(q){this.quaternion.copy(q)}rotateOnAxis(e,t){return zi.setFromAxisAngle(e,t),this.quaternion.multiply(zi),this}rotateOnWorldAxis(e,t){return zi.setFromAxisAngle(e,t),this.quaternion.premultiply(zi),this}rotateX(e){return this.rotateOnAxis($i,e)}rotateY(e){return this.rotateOnAxis(Xi,e)}rotateZ(e){return this.rotateOnAxis(qi,e)}translateOnAxis(e,t){return Bi.copy(e).applyQuaternion(this.quaternion),this.position.add(Bi.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis($i,e)}translateY(e){return this.translateOnAxis(Xi,e)}translateZ(e){return this.translateOnAxis(qi,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Hi.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?Vi.copy(e):Vi.set(e,t,n);const r=this.parent;this.updateWorldMatrix(!0,!1),ji.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Hi.lookAt(ji,Vi,this.up):Hi.lookAt(Vi,ji,this.up),this.quaternion.setFromRotationMatrix(Hi),r&&(Hi.extractRotation(r.matrixWorld),zi.setFromRotationMatrix(Hi),this.quaternion.premultiply(zi.invert()))}add(object){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.add(arguments[i]);return this}return object===this||object&&object.isObject3D&&(null!==object.parent&&object.parent.remove(object),object.parent=this,this.children.push(object),object.dispatchEvent(Yi)),this}remove(object){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const e=this.children.indexOf(object);return-1!==e&&(object.parent=null,this.children.splice(e,1),object.dispatchEvent(Zi)),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(object){return this.updateWorldMatrix(!0,!1),Hi.copy(this.matrixWorld).invert(),null!==object.parent&&(object.parent.updateWorldMatrix(!0,!1),Hi.multiply(object.parent.matrixWorld)),object.applyMatrix4(Hi),this.add(object),object.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let i=0,n=this.children.length;i<n;i++){const object=this.children[i].getObjectByProperty(e,t);if(void 0!==object)return object}}getObjectsByProperty(e,t){let n=[];this[e]===t&&n.push(this);for(let i=0,r=this.children.length;i<r;i++){const r=this.children[i].getObjectsByProperty(e,t);r.length>0&&(n=n.concat(r))}return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ji,e,Wi),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ji,Gi,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let i=0,n=t.length;i<n;i++)t[i].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let i=0,n=t.length;i<n;i++)t[i].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let i=0,n=t.length;i<n;i++){const n=t[i];!0!==n.matrixWorldAutoUpdate&&!0!==e||n.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t){const e=this.children;for(let i=0,t=e.length;i<t;i++){const t=e[i];!0===t.matrixWorldAutoUpdate&&t.updateWorldMatrix(!1,!0)}}}toJSON(meta){const e=void 0===meta||"string"==typeof meta,output={};e&&(meta={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},output.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const object={};function t(e,element){return void 0===e[element.uuid]&&(e[element.uuid]=element.toJSON(meta)),element.uuid}if(object.uuid=this.uuid,object.type=this.type,""!==this.name&&(object.name=this.name),!0===this.castShadow&&(object.castShadow=!0),!0===this.receiveShadow&&(object.receiveShadow=!0),!1===this.visible&&(object.visible=!1),!1===this.frustumCulled&&(object.frustumCulled=!1),0!==this.renderOrder&&(object.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(object.userData=this.userData),object.layers=this.layers.mask,object.matrix=this.matrix.toArray(),object.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(object.matrixAutoUpdate=!1),this.isInstancedMesh&&(object.type="InstancedMesh",object.count=this.count,object.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(object.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?object.background=this.background.toJSON():this.background.isTexture&&(object.background=this.background.toJSON(meta).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(object.environment=this.environment.toJSON(meta).uuid);else if(this.isMesh||this.isLine||this.isPoints){object.geometry=t(meta.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let i=0,e=n.length;i<e;i++){const e=n[i];t(meta.shapes,e)}else t(meta.shapes,n)}}if(this.isSkinnedMesh&&(object.bindMode=this.bindMode,object.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(t(meta.skeletons,this.skeleton),object.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let i=0,n=this.material.length;i<n;i++)e.push(t(meta.materials,this.material[i]));object.material=e}else object.material=t(meta.materials,this.material);if(this.children.length>0){object.children=[];for(let i=0;i<this.children.length;i++)object.children.push(this.children[i].toJSON(meta).object)}if(this.animations.length>0){object.animations=[];for(let i=0;i<this.animations.length;i++){const e=this.animations[i];object.animations.push(t(meta.animations,e))}}if(e){const e=n(meta.geometries),t=n(meta.materials),r=n(meta.textures),o=n(meta.images),c=n(meta.shapes),l=n(meta.skeletons),h=n(meta.animations),f=n(meta.nodes);e.length>0&&(output.geometries=e),t.length>0&&(output.materials=t),r.length>0&&(output.textures=r),o.length>0&&(output.images=o),c.length>0&&(output.shapes=c),l.length>0&&(output.skeletons=l),h.length>0&&(output.animations=h),f.length>0&&(output.nodes=f)}return output.object=object,output;function n(e){const t=[];for(const n in e){const data=e[n];delete data.metadata,t.push(data)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(source,e=!0){if(this.name=source.name,this.up.copy(source.up),this.position.copy(source.position),this.rotation.order=source.rotation.order,this.quaternion.copy(source.quaternion),this.scale.copy(source.scale),this.matrix.copy(source.matrix),this.matrixWorld.copy(source.matrixWorld),this.matrixAutoUpdate=source.matrixAutoUpdate,this.matrixWorldNeedsUpdate=source.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=source.matrixWorldAutoUpdate,this.layers.mask=source.layers.mask,this.visible=source.visible,this.castShadow=source.castShadow,this.receiveShadow=source.receiveShadow,this.frustumCulled=source.frustumCulled,this.renderOrder=source.renderOrder,this.animations=source.animations.slice(),this.userData=JSON.parse(JSON.stringify(source.userData)),!0===e)for(let i=0;i<source.children.length;i++){const e=source.children[i];this.add(e.clone())}return this}}Ki.DEFAULT_UP=new Yr(0,1,0),Ki.DEFAULT_MATRIX_AUTO_UPDATE=!0,Ki.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Ji=new Yr,Qi=new Yr,ea=new Yr,ta=new Yr,na=new Yr,ra=new Yr,ia=new Yr,aa=new Yr,sa=new Yr,oa=new Yr;let ca=!1;class la{constructor(a=new Yr,b=new Yr,e=new Yr){this.a=a,this.b=b,this.c=e}static getNormal(a,b,e,t){t.subVectors(e,b),Ji.subVectors(a,b),t.cross(Ji);const n=t.lengthSq();return n>0?t.multiplyScalar(1/Math.sqrt(n)):t.set(0,0,0)}static getBarycoord(e,a,b,t,n){Ji.subVectors(t,a),Qi.subVectors(b,a),ea.subVectors(e,a);const r=Ji.dot(Ji),o=Ji.dot(Qi),c=Ji.dot(ea),l=Qi.dot(Qi),h=Qi.dot(ea),f=r*l-o*o;if(0===f)return n.set(-2,-1,-1);const d=1/f,u=(l*c-o*h)*d,m=(r*h-o*c)*d;return n.set(1-u-m,m,u)}static containsPoint(e,a,b,t){return this.getBarycoord(e,a,b,t,ta),ta.x>=0&&ta.y>=0&&ta.x+ta.y<=1}static getUV(e,t,n,r,o,c,l,h){return!1===ca&&(ca=!0),this.getInterpolation(e,t,n,r,o,c,l,h)}static getInterpolation(e,t,n,r,o,c,l,h){return this.getBarycoord(e,t,n,r,ta),h.setScalar(0),h.addScaledVector(o,ta.x),h.addScaledVector(c,ta.y),h.addScaledVector(l,ta.z),h}static isFrontFacing(a,b,e,t){return Ji.subVectors(e,b),Qi.subVectors(a,b),Ji.cross(Qi).dot(t)<0}set(a,b,e){return this.a.copy(a),this.b.copy(b),this.c.copy(e),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ji.subVectors(this.c,this.b),Qi.subVectors(this.a,this.b),.5*Ji.cross(Qi).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return la.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return la.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,o){return!1===ca&&(ca=!0),la.getInterpolation(e,this.a,this.b,this.c,t,n,r,o)}getInterpolation(e,t,n,r,o){return la.getInterpolation(e,this.a,this.b,this.c,t,n,r,o)}containsPoint(e){return la.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return la.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(p,e){const a=this.a,b=this.b,t=this.c;let n,r;na.subVectors(b,a),ra.subVectors(t,a),aa.subVectors(p,a);const o=na.dot(aa),c=ra.dot(aa);
vendor: 10,008 bytes, line 2
2if(o<=0&&c<=0)return e.copy(a);sa.subVectors(p,b);const l=na.dot(sa),h=ra.dot(sa);if(l>=0&&h<=l)return e.copy(b);const f=o*h-l*c;if(f<=0&&o>=0&&l<=0)return n=o/(o-l),e.copy(a).addScaledVector(na,n);oa.subVectors(p,t);const d=na.dot(oa),m=ra.dot(oa);if(m>=0&&d<=m)return e.copy(t);const v=d*c-o*m;if(v<=0&&c>=0&&m<=0)return r=c/(c-m),e.copy(a).addScaledVector(ra,r);const _=l*m-d*h;if(_<=0&&h-l>=0&&d-m>=0)return ia.subVectors(t,b),r=(h-l)/(h-l+(d-m)),e.copy(b).addScaledVector(ia,r);const y=1/(_+v+f);return n=v*y,r=f*y,e.copy(a).addScaledVector(na,n).addScaledVector(ra,r)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const ua={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ha={h:0,s:0,l:0},fa={h:0,s:0,l:0};function da(p,q,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?p+6*(q-p)*e:e<.5?q:e<2/3?p+6*(q-p)*(2/3-e):p}class pa{constructor(e,g,b){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,g,b)}set(e,g,b){if(void 0===g&&void 0===b){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,g,b);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=sn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,kr.toWorkingColorSpace(this,t),this}setRGB(e,g,b,t=kr.workingColorSpace){return this.r=e,this.g=g,this.b=b,kr.toWorkingColorSpace(this,t),this}setHSL(e,s,t,n=kr.workingColorSpace){if(e=sr(e,1),s=ar(s,0,1),t=ar(t,0,1),0===s)this.r=this.g=this.b=t;else{const p=t<=.5?t*(1+s):t+s-t*s,q=2*t-p;this.r=da(q,p,e+1/3),this.g=da(q,p,e),this.b=da(q,p,e-1/3)}return kr.toWorkingColorSpace(this,n),this}setStyle(style,e=sn){function t(e){void 0!==e&&parseFloat(e)}let n;if(n=/^(\w+)\(([^\)]*)\)/.exec(style)){let r;const o=n[1],c=n[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(c))return t(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,e);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(c))return t(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,e);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(c))return t(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,e)}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(style)){const t=n[1],r=t.length;if(3===r)return this.setRGB(parseInt(t.charAt(0),16)/15,parseInt(t.charAt(1),16)/15,parseInt(t.charAt(2),16)/15,e);if(6===r)return this.setHex(parseInt(t,16),e)}else if(style&&style.length>0)return this.setColorName(style,e);return this}setColorName(style,e=sn){const t=ua[style.toLowerCase()];return void 0!==t&&this.setHex(t,e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Or(e.r),this.g=Or(e.g),this.b=Or(e.b),this}copyLinearToSRGB(e){return this.r=Pr(e.r),this.g=Pr(e.g),this.b=Pr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=sn){return kr.fromWorkingColorSpace(ma.copy(this),e),65536*Math.round(ar(255*ma.r,0,255))+256*Math.round(ar(255*ma.g,0,255))+Math.round(ar(255*ma.b,0,255))}getHexString(e=sn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=kr.workingColorSpace){kr.fromWorkingColorSpace(ma.copy(this),t);const n=ma.r,g=ma.g,b=ma.b,r=Math.max(n,g,b),o=Math.min(n,g,b);let c,l;const h=(o+r)/2;if(o===r)c=0,l=0;else{const e=r-o;switch(l=h<=.5?e/(r+o):e/(2-r-o),r){case n:c=(g-b)/e+(g<b?6:0);break;case g:c=(b-n)/e+2;break;case b:c=(n-g)/e+4}c/=6}return e.h=c,e.s=l,e.l=h,e}getRGB(e,t=kr.workingColorSpace){return kr.fromWorkingColorSpace(ma.copy(this),t),e.r=ma.r,e.g=ma.g,e.b=ma.b,e}getStyle(e=sn){kr.fromWorkingColorSpace(ma.copy(this),e);const t=ma.r,g=ma.g,b=ma.b;return e!==sn?`color(${e} ${t.toFixed(3)} ${g.toFixed(3)} ${b.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*g)},${Math.round(255*b)})`}offsetHSL(e,s,t){return this.getHSL(ha),this.setHSL(ha.h+e,ha.s+s,ha.l+t)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(s){return this.r+=s,this.g+=s,this.b+=s,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(s){return this.r*=s,this.g*=s,this.b*=s,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(ha),e.getHSL(fa);const n=or(ha.h,fa.h,t),s=or(ha.s,fa.s,t),r=or(ha.l,fa.l,t);return this.setHSL(n,s,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,g=this.g,b=this.b,n=e.elements;return this.r=n[0]*t+n[3]*g+n[6]*b,this.g=n[1]*t+n[4]*g+n[7]*b,this.b=n[2]*t+n[5]*g+n[8]*b,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const ma=new pa;pa.NAMES=ua;let ga=0;class va extends Jn{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:ga++}),this.uuid=ir(),this.name="",this.type="Material",this.blending=M,this.side=w,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=z,this.blendDst=H,this.blendEquation=O,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new pa(0,0,0),this.blendAlpha=0,this.depthFunc=te,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Rn,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=mn,this.stencilZFail=mn,this.stencilZPass=mn,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n)continue;const r=this[t];void 0!==r&&(r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n)}}toJSON(meta){const e=void 0===meta||"string"==typeof meta;e&&(meta={textures:{},images:{}});const data={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function t(e){const t=[];for(const n in e){const data=e[n];delete data.metadata,t.push(data)}return t}
vendor: 5,250 bytes, line 2
2if(data.uuid=this.uuid,data.type=this.type,""!==this.name&&(data.name=this.name),this.color&&this.color.isColor&&(data.color=this.color.getHex()),void 0!==this.roughness&&(data.roughness=this.roughness),void 0!==this.metalness&&(data.metalness=this.metalness),void 0!==this.sheen&&(data.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(data.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(data.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(data.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(data.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(data.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(data.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(data.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(data.shininess=this.shininess),void 0!==this.clearcoat&&(data.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(data.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(data.clearcoatMap=this.clearcoatMap.toJSON(meta).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(data.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(meta).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(data.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(meta).uuid,data.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(data.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(data.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(data.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(data.iridescenceMap=this.iridescenceMap.toJSON(meta).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(data.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(meta).uuid),void 0!==this.anisotropy&&(data.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(data.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(data.anisotropyMap=this.anisotropyMap.toJSON(meta).uuid),this.map&&this.map.isTexture&&(data.map=this.map.toJSON(meta).uuid),this.matcap&&this.matcap.isTexture&&(data.matcap=this.matcap.toJSON(meta).uuid),this.alphaMap&&this.alphaMap.isTexture&&(data.alphaMap=this.alphaMap.toJSON(meta).uuid),this.lightMap&&this.lightMap.isTexture&&(data.lightMap=this.lightMap.toJSON(meta).uuid,data.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(data.aoMap=this.aoMap.toJSON(meta).uuid,data.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(data.bumpMap=this.bumpMap.toJSON(meta).uuid,data.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(data.normalMap=this.normalMap.toJSON(meta).uuid,data.normalMapType=this.normalMapType,data.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(data.displacementMap=this.displacementMap.toJSON(meta).uuid,data.displacementScale=this.displacementScale,data.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(data.roughnessMap=this.roughnessMap.toJSON(meta).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(data.metalnessMap=this.metalnessMap.toJSON(meta).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(data.emissiveMap=this.emissiveMap.toJSON(meta).uuid),this.specularMap&&this.specularMap.isTexture&&(data.specularMap=this.specularMap.toJSON(meta).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(data.specularIntensityMap=this.specularIntensityMap.toJSON(meta).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(data.specularColorMap=this.specularColorMap.toJSON(meta).uuid),this.envMap&&this.envMap.isTexture&&(data.envMap=this.envMap.toJSON(meta).uuid,void 0!==this.combine&&(data.combine=this.combine)),void 0!==this.envMapIntensity&&(data.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(data.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(data.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(data.gradientMap=this.gradientMap.toJSON(meta).uuid),void 0!==this.transmission&&(data.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(data.transmissionMap=this.transmissionMap.toJSON(meta).uuid),void 0!==this.thickness&&(data.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(data.thicknessMap=this.thicknessMap.toJSON(meta).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(data.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(data.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(data.size=this.size),null!==this.shadowSide&&(data.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(data.sizeAttenuation=this.sizeAttenuation),this.blending!==M&&(data.blending=this.blending),this.side!==w&&(data.side=this.side),!0===this.vertexColors&&(data.vertexColors=!0),this.opacity<1&&(data.op
vendor: 7,785 bytes, line 2
2acity=this.opacity),!0===this.transparent&&(data.transparent=!0),this.blendSrc!==z&&(data.blendSrc=this.blendSrc),this.blendDst!==H&&(data.blendDst=this.blendDst),this.blendEquation!==O&&(data.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(data.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(data.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(data.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(data.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(data.blendAlpha=this.blendAlpha),this.depthFunc!==te&&(data.depthFunc=this.depthFunc),!1===this.depthTest&&(data.depthTest=this.depthTest),!1===this.depthWrite&&(data.depthWrite=this.depthWrite),!1===this.colorWrite&&(data.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(data.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Rn&&(data.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(data.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(data.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==mn&&(data.stencilFail=this.stencilFail),this.stencilZFail!==mn&&(data.stencilZFail=this.stencilZFail),this.stencilZPass!==mn&&(data.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(data.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(data.rotation=this.rotation),!0===this.polygonOffset&&(data.polygonOffset=!0),0!==this.polygonOffsetFactor&&(data.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(data.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(data.linewidth=this.linewidth),void 0!==this.dashSize&&(data.dashSize=this.dashSize),void 0!==this.gapSize&&(data.gapSize=this.gapSize),void 0!==this.scale&&(data.scale=this.scale),!0===this.dithering&&(data.dithering=!0),this.alphaTest>0&&(data.alphaTest=this.alphaTest),!0===this.alphaHash&&(data.alphaHash=!0),!0===this.alphaToCoverage&&(data.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(data.premultipliedAlpha=!0),!0===this.forceSinglePass&&(data.forceSinglePass=!0),!0===this.wireframe&&(data.wireframe=!0),this.wireframeLinewidth>1&&(data.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(data.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(data.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(data.flatShading=!0),!1===this.visible&&(data.visible=!1),!1===this.toneMapped&&(data.toneMapped=!1),!1===this.fog&&(data.fog=!1),Object.keys(this.userData).length>0&&(data.userData=this.userData),e){const e=t(meta.textures),n=t(meta.images);e.length>0&&(data.textures=e),n.length>0&&(data.images=n)}return data}clone(){return(new this.constructor).copy(this)}copy(source){this.name=source.name,this.blending=source.blending,this.side=source.side,this.vertexColors=source.vertexColors,this.opacity=source.opacity,this.transparent=source.transparent,this.blendSrc=source.blendSrc,this.blendDst=source.blendDst,this.blendEquation=source.blendEquation,this.blendSrcAlpha=source.blendSrcAlpha,this.blendDstAlpha=source.blendDstAlpha,this.blendEquationAlpha=source.blendEquationAlpha,this.blendColor.copy(source.blendColor),this.blendAlpha=source.blendAlpha,this.depthFunc=source.depthFunc,this.depthTest=source.depthTest,this.depthWrite=source.depthWrite,this.stencilWriteMask=source.stencilWriteMask,this.stencilFunc=source.stencilFunc,this.stencilRef=source.stencilRef,this.stencilFuncMask=source.stencilFuncMask,this.stencilFail=source.stencilFail,this.stencilZFail=source.stencilZFail,this.stencilZPass=source.stencilZPass,this.stencilWrite=source.stencilWrite;const e=source.clippingPlanes;let t=null;if(null!==e){const n=e.length;t=new Array(n);for(let i=0;i!==n;++i)t[i]=e[i].clone()}return this.clippingPlanes=t,this.clipIntersection=source.clipIntersection,this.clipShadows=source.clipShadows,this.shadowSide=source.shadowSide,this.colorWrite=source.colorWrite,this.precision=source.precision,this.polygonOffset=source.polygonOffset,this.polygonOffsetFactor=source.polygonOffsetFactor,this.polygonOffsetUnits=source.polygonOffsetUnits,this.dithering=source.dithering,this.alphaTest=source.alphaTest,this.alphaHash=source.alphaHash,this.alphaToCoverage=source.alphaToCoverage,this.premultipliedAlpha=source.premultipliedAlpha,this.forceSinglePass=source.forceSinglePass,this.visible=source.visible,this.toneMapped=source.toneMapped,this.userData=JSON.parse(JSON.stringify(source.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class _a extends va{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pa(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=se,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.fog=source.fog,this}}const ya=ba();function ba(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),o=new Uint32Array(512);for(let i=0;i<256;++i){const e=i-127;e<-27?(r[i]=0,r[256|i]=32768,o[i]=24,o[256|i]=24):e<-14?(r[i]=1024>>-e-14,r[256|i]=1024>>-e-14|32768,o[i]=-e-1,o[256|i]=-e-1):e<=15?(r[i]=e+15<<10,r[256|i]=e+15<<10|32768,o[i]=13,o[256|i]=13):e<128?(r[i]=31744,r[256|i]=64512,o[i]=24,o[256|i]=24):(r[i]=31744,r[256|i]=64512,o[i]=13,o[256|i]=13)}const c=new Uint32Array(2048),l=new Uint32Array(64),h=new Uint32Array(64);for(let i=1;i<1024;++i){let e=i<<13,t=0;for(;0==(8388608&e);)e<<=1,t-=8388608;e&=-8388609,t+=947912704,c[i]=e|t}for(let i=1024;i<2048;++i)c[i]=939524096+(i-1024<<13);for(let i=1;i<31;++i)l[i]=i<<23;l[31]=1199570944,l[32]=2147483648;for(let i=33;i<63;++i)l[i]=2147483648+(i-32<<23);l[63]=3347054592;for(let i=1;i<64;++i)32!==i&&(h[i]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:o,mantissaTable:c,exponentTable:l,offsetTable:h}}function wa(e){Math.abs(e),e=ar(e,-65504,65504),ya.floatView[0]=e;const t=ya.uint32View[0],n=t>>23&511;return ya.baseTable[n]+((8388607&t)>>ya.shiftTable[n])}function xa(e){const t=e>>10;return ya.uint32View[0]=ya.mantissaTable[ya.offsetTable[t]+(1023&e)]+ya.exponentTable[t],ya.floatView[0]}const Sa={toHalfFloat:wa,fromHalfFloat:xa},Ta=new Yr,Ea=new mr;class Ma{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Fn,this.updateRange={offset:0,count:-1},this.gpuType=Ve,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(source){return this.name=source.name,this.array=new source.array.constructor(source.array),this.itemSize=source.itemSize,this.count=source.count,this.normalized=source.normalized,this.usage=source.usage,this.gpuType=source.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;
vendor: 7,015 bytes, line 2
2for(let i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let i=0,t=this.count;i<t;i++)Ea.fromBufferAttribute(this,i),Ea.applyMatrix3(e),this.setXY(i,Ea.x,Ea.y);else if(3===this.itemSize)for(let i=0,t=this.count;i<t;i++)Ta.fromBufferAttribute(this,i),Ta.applyMatrix3(e),this.setXYZ(i,Ta.x,Ta.y,Ta.z);return this}applyMatrix4(e){for(let i=0,t=this.count;i<t;i++)Ta.fromBufferAttribute(this,i),Ta.applyMatrix4(e),this.setXYZ(i,Ta.x,Ta.y,Ta.z);return this}applyNormalMatrix(e){for(let i=0,t=this.count;i<t;i++)Ta.fromBufferAttribute(this,i),Ta.applyNormalMatrix(e),this.setXYZ(i,Ta.x,Ta.y,Ta.z);return this}transformDirection(e){for(let i=0,t=this.count;i<t;i++)Ta.fromBufferAttribute(this,i),Ta.transformDirection(e),this.setXYZ(i,Ta.x,Ta.y,Ta.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,component){let t=this.array[e*this.itemSize+component];return this.normalized&&(t=fr(t,this.array)),t}setComponent(e,component,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+component]=t,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=fr(t,this.array)),t}setX(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=fr(t,this.array)),t}setY(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=fr(t,this.array)),t}setZ(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=fr(t,this.array)),t}setW(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array),r=dr(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,o){return e*=this.itemSize,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array),r=dr(r,this.array),o=dr(o,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=o,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const data={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(data.name=this.name),this.usage!==Fn&&(data.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(data.updateRange=this.updateRange),data}}class Aa extends Ma{constructor(e,t,n){super(new Int8Array(e),t,n)}}class Ca extends Ma{constructor(e,t,n){super(new Uint8Array(e),t,n)}}class Ra extends Ma{constructor(e,t,n){super(new Uint8ClampedArray(e),t,n)}}class ka extends Ma{constructor(e,t,n){super(new Int16Array(e),t,n)}}class Oa extends Ma{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class Pa extends Ma{constructor(e,t,n){super(new Int32Array(e),t,n)}}class La extends Ma{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class Ia extends Ma{constructor(e,t,n){super(new Uint16Array(e),t,n),this.isFloat16BufferAttribute=!0}getX(e){let t=xa(this.array[e*this.itemSize]);return this.normalized&&(t=fr(t,this.array)),t}setX(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize]=wa(t),this}getY(e){let t=xa(this.array[e*this.itemSize+1]);return this.normalized&&(t=fr(t,this.array)),t}setY(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+1]=wa(t),this}getZ(e){let t=xa(this.array[e*this.itemSize+2]);return this.normalized&&(t=fr(t,this.array)),t}setZ(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+2]=wa(t),this}getW(e){let t=xa(this.array[e*this.itemSize+3]);return this.normalized&&(t=fr(t,this.array)),t}setW(e,t){return this.normalized&&(t=dr(t,this.array)),this.array[e*this.itemSize+3]=wa(t),this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array)),this.array[e+0]=wa(t),this.array[e+1]=wa(n),this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array),r=dr(r,this.array)),this.array[e+0]=wa(t),this.array[e+1]=wa(n),this.array[e+2]=wa(r),this}setXYZW(e,t,n,r,o){return e*=this.itemSize,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array),r=dr(r,this.array),o=dr(o,this.array)),this.array[e+0]=wa(t),this.array[e+1]=wa(n),this.array[e+2]=wa(r),this.array[e+3]=wa(o),this}}class Na extends Ma{constructor(e,t,n){super(new Float32Array(e),t,n)}}class Da extends Ma{constructor(e,t,n){super(new Float64Array(e),t,n)}}let Ua=0;const Fa=new Mi,Ba=new Ki,za=new Yr,Ha=new Jr,Va=new Jr,ja=new Yr;class Wa extends Jn{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Ua++}),this.uuid=ir(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(_r(e)?La:Oa)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new gr).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(e),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(q){return Fa.makeRotationFromQuaternion(q),this.applyMatrix4(Fa),this}rotateX(e){return Fa.makeRotationX(e),this.applyMatrix4(Fa),this}rotateY(e){return Fa.makeRotationY(e),this.applyMatrix4(Fa),this}rotateZ(e){return Fa.makeRotationZ(e),this.applyMatrix4(Fa),this}translate(e,t,n){return Fa.makeTranslation(e,t,n),this.applyMatrix4(Fa),this}scale(e,t,n){return Fa.makeScale(e,t,n),this.applyMatrix4(Fa),this}lookAt(e){return Ba.lookAt(e),Ba.updateMatrix(),this.applyMatrix4(Ba.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(za).negate(),this.translate(za.x,za.y,za.z),this}setFromPoints(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];t.push(n.x,n.y,n.z||0)}return this.setAttribute("position",new Na(t,3)),this}
vendor: 5,171 bytes, line 2
2computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Jr);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingBox.set(new Yr(-1/0,-1/0,-1/0),new Yr(1/0,1/0,1/0));else{if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let i=0,e=t.length;i<e;i++){const e=t[i];Ha.setFromBufferAttribute(e),this.morphTargetsRelative?(ja.addVectors(this.boundingBox.min,Ha.min),this.boundingBox.expandByPoint(ja),ja.addVectors(this.boundingBox.max,Ha.max),this.boundingBox.expandByPoint(ja)):(this.boundingBox.expandByPoint(Ha.min),this.boundingBox.expandByPoint(Ha.max))}}else this.boundingBox.makeEmpty();isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)}}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new vi);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingSphere.set(new Yr,1/0);else if(e){const n=this.boundingSphere.center;if(Ha.setFromBufferAttribute(e),t)for(let i=0,e=t.length;i<e;i++){const e=t[i];Va.setFromBufferAttribute(e),this.morphTargetsRelative?(ja.addVectors(Ha.min,Va.min),Ha.expandByPoint(ja),ja.addVectors(Ha.max,Va.max),Ha.expandByPoint(ja)):(Ha.expandByPoint(Va.min),Ha.expandByPoint(Va.max))}Ha.getCenter(n);let r=0;for(let i=0,t=e.count;i<t;i++)ja.fromBufferAttribute(e,i),r=Math.max(r,n.distanceToSquared(ja));if(t)for(let i=0,o=t.length;i<o;i++){const o=t[i],c=this.morphTargetsRelative;for(let t=0,l=o.count;t<l;t++)ja.fromBufferAttribute(o,t),c&&(za.fromBufferAttribute(e,t),ja.add(za)),r=Math.max(r,n.distanceToSquared(ja))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return;const n=e.array,r=t.position.array,o=t.normal.array,c=t.uv.array,l=r.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new Ma(new Float32Array(4*l),4));const h=this.getAttribute("tangent").array,f=[],d=[];for(let i=0;i<l;i++)f[i]=new Yr,d[i]=new Yr;const m=new Yr,v=new Yr,_=new Yr,y=new mr,w=new mr,x=new mr,S=new Yr,T=new Yr;function E(a,b,e){m.fromArray(r,3*a),v.fromArray(r,3*b),_.fromArray(r,3*e),y.fromArray(c,2*a),w.fromArray(c,2*b),x.fromArray(c,2*e),v.sub(m),_.sub(m),w.sub(y),x.sub(y);const t=1/(w.x*x.y-x.x*w.y);isFinite(t)&&(S.copy(v).multiplyScalar(x.y).addScaledVector(_,-w.y).multiplyScalar(t),T.copy(_).multiplyScalar(w.x).addScaledVector(v,-x.x).multiplyScalar(t),f[a].add(S),f[b].add(S),f[e].add(S),d[a].add(T),d[b].add(T),d[e].add(T))}let M=this.groups;0===M.length&&(M=[{start:0,count:n.length}]);for(let i=0,e=M.length;i<e;++i){const e=M[i],t=e.start;for(let r=t,o=t+e.count;r<o;r+=3)E(n[r+0],n[r+1],n[r+2])}const A=new Yr,C=new Yr,R=new Yr,k=new Yr;function O(e){R.fromArray(o,3*e),k.copy(R);const t=f[e];A.copy(t),A.sub(R.multiplyScalar(R.dot(t))).normalize(),C.crossVectors(k,t);const n=C.dot(d[e])<0?-1:1;h[4*e]=A.x,h[4*e+1]=A.y,h[4*e+2]=A.z,h[4*e+3]=n}for(let i=0,e=M.length;i<e;++i){const e=M[i],t=e.start;for(let r=t,o=t+e.count;r<o;r+=3)O(n[r+0]),O(n[r+1]),O(n[r+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new Ma(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let i=0,e=n.count;i<e;i++)n.setXYZ(i,0,0,0);const r=new Yr,o=new Yr,c=new Yr,l=new Yr,h=new Yr,f=new Yr,d=new Yr,m=new Yr;if(e)for(let i=0,v=e.count;i<v;i+=3){const v=e.getX(i+0),_=e.getX(i+1),y=e.getX(i+2);r.fromBufferAttribute(t,v),o.fromBufferAttribute(t,_),c.fromBufferAttribute(t,y),d.subVectors(c,o),m.subVectors(r,o),d.cross(m),l.fromBufferAttribute(n,v),h.fromBufferAttribute(n,_),f.fromBufferAttribute(n,y),l.add(d),h.add(d),f.add(d),n.setXYZ(v,l.x,l.y,l.z),n.setXYZ(_,h.x,h.y,h.z),n.setXYZ(y,f.x,f.y,f.z)}else for(let i=0,e=t.count;i<e;i+=3)r.fromBufferAttribute(t,i+0),o.fromBufferAttribute(t,i+1),c.fromBufferAttribute(t,i+2),d.subVectors(c,o),m.subVectors(r,o),d.cross(m),n.setXYZ(i+0,d.x,d.y,d.z),n.setXYZ(i+1,d.x,d.y,d.z),n.setXYZ(i+2,d.x,d.y,d.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let i=0,t=e.count;i<t;i++)ja.fromBufferAttribute(e,i),ja.normalize(),e.setXYZ(i,ja.x,ja.y,ja.z)}toNonIndexed(){function e(e,t){const n=e.array,r=e.itemSize,o=e.normalized,c=new n.constructor(t.length*r);let l=0,h=0;for(let i=0,o=t.length;i<o;i++){l=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)c[h++]=n[l++]}return new Ma(c,r,o)}if(null===this.index)return this;const t=new Wa,n=this.index.array,r=this.attributes;for(const o in r){const c=e(r[o],n);t.setAttribute(o,c)}const o=this.morphAttributes;for(const r in o){const c=[],l=o[r];for(let i=0,t=l.length;i<t;i++){const t=e(l[i],n);c.push(t)}t.morphAttributes[r]=c}t.morphTargetsRelative=this.morphTargetsRelative;const c=this.groups;for(let i=0,e=c.length;i<e;i++){const e=c[i];t.addGroup(e.start,e.count,e.materialIndex)}return t}toJSON(){const data={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};
vendor: 11,477 bytes, line 2
2if(data.uuid=this.uuid,data.type=this.type,""!==this.name&&(data.name=this.name),Object.keys(this.userData).length>0&&(data.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const t in e)void 0!==e[t]&&(data[t]=e[t]);return data}data.data={attributes:{}};const e=this.index;null!==e&&(data.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const t=this.attributes;for(const e in t){const n=t[e];data.data.attributes[e]=n.toJSON(data.data)}const n={};let r=!1;for(const e in this.morphAttributes){const t=this.morphAttributes[e],o=[];for(let i=0,e=t.length;i<e;i++){const e=t[i];o.push(e.toJSON(data.data))}o.length>0&&(n[e]=o,r=!0)}r&&(data.data.morphAttributes=n,data.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(data.data.groups=JSON.parse(JSON.stringify(o)));const c=this.boundingSphere;return null!==c&&(data.data.boundingSphere={center:c.center.toArray(),radius:c.radius}),data}clone(){return(new this.constructor).copy(this)}copy(source){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const data={};this.name=source.name;const e=source.index;null!==e&&this.setIndex(e.clone(data));const t=source.attributes;for(const e in t){const n=t[e];this.setAttribute(e,n.clone(data))}const n=source.morphAttributes;for(const e in n){const t=[],r=n[e];for(let i=0,e=r.length;i<e;i++)t.push(r[i].clone(data));this.morphAttributes[e]=t}this.morphTargetsRelative=source.morphTargetsRelative;const r=source.groups;for(let i=0,e=r.length;i<e;i++){const e=r[i];this.addGroup(e.start,e.count,e.materialIndex)}const o=source.boundingBox;null!==o&&(this.boundingBox=o.clone());const c=source.boundingSphere;return null!==c&&(this.boundingSphere=c.clone()),this.drawRange.start=source.drawRange.start,this.drawRange.count=source.drawRange.count,this.userData=source.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ga=new Mi,$a=new Ei,Xa=new vi,qa=new Yr,Ya=new Yr,Za=new Yr,Ka=new Yr,Ja=new Yr,Qa=new Yr,es=new mr,ts=new mr,ns=new mr,rs=new Yr,is=new Yr,as=new Yr,ss=new Yr,os=new Yr;class cs extends Ki{constructor(e=new Wa,t=new _a){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(source,e){return super.copy(source,e),void 0!==source.morphTargetInfluences&&(this.morphTargetInfluences=source.morphTargetInfluences.slice()),void 0!==source.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},source.morphTargetDictionary)),this.material=Array.isArray(source.material)?source.material.slice():source.material,this.geometry=source.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,r=n.attributes.position,o=n.morphAttributes.position,c=n.morphTargetsRelative;t.fromBufferAttribute(r,e);const l=this.morphTargetInfluences;if(o&&l){Qa.set(0,0,0);for(let i=0,n=o.length;i<n;i++){const n=l[i],r=o[i];0!==n&&(Ja.fromBufferAttribute(r,e),c?Qa.addScaledVector(Ja,n):Qa.addScaledVector(Ja.sub(t),n))}t.add(Qa)}return t}raycast(e,t){const n=this.geometry,r=this.material,o=this.matrixWorld;if(void 0!==r){if(null===n.boundingSphere&&n.computeBoundingSphere(),Xa.copy(n.boundingSphere),Xa.applyMatrix4(o),$a.copy(e.ray).recast(e.near),!1===Xa.containsPoint($a.origin)){if(null===$a.intersectSphere(Xa,qa))return;if($a.origin.distanceToSquared(qa)>(e.far-e.near)**2)return}Ga.copy(o).invert(),$a.copy(e.ray).applyMatrix4(Ga),null!==n.boundingBox&&!1===$a.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,$a)}}_computeIntersections(e,t,n){let r;const o=this.geometry,c=this.material,l=o.index,h=o.attributes.position,f=o.attributes.uv,d=o.attributes.uv1,m=o.attributes.normal,v=o.groups,_=o.drawRange;if(null!==l)if(Array.isArray(c))for(let i=0,o=v.length;i<o;i++){const o=v[i],h=c[o.materialIndex];for(let c=Math.max(o.start,_.start),v=Math.min(l.count,Math.min(o.start+o.count,_.start+_.count));c<v;c+=3){r=ls(this,h,e,n,f,d,m,l.getX(c),l.getX(c+1),l.getX(c+2)),r&&(r.faceIndex=Math.floor(c/3),r.face.materialIndex=o.materialIndex,t.push(r))}}else{for(let i=Math.max(0,_.start),o=Math.min(l.count,_.start+_.count);i<o;i+=3){r=ls(this,c,e,n,f,d,m,l.getX(i),l.getX(i+1),l.getX(i+2)),r&&(r.faceIndex=Math.floor(i/3),t.push(r))}}else if(void 0!==h)if(Array.isArray(c))for(let i=0,o=v.length;i<o;i++){const o=v[i],l=c[o.materialIndex];for(let c=Math.max(o.start,_.start),v=Math.min(h.count,Math.min(o.start+o.count,_.start+_.count));c<v;c+=3){r=ls(this,l,e,n,f,d,m,c,c+1,c+2),r&&(r.faceIndex=Math.floor(c/3),r.face.materialIndex=o.materialIndex,t.push(r))}}else{for(let i=Math.max(0,_.start),o=Math.min(h.count,_.start+_.count);i<o;i+=3){r=ls(this,c,e,n,f,d,m,i,i+1,i+2),r&&(r.faceIndex=Math.floor(i/3),t.push(r))}}}}function ls(object,e,t,n,r,o,c,a,b,l){object.getVertexPosition(a,Ya),object.getVertexPosition(b,Za),object.getVertexPosition(l,Ka);const h=function(object,e,t,n,r,o,c,l){let h;if(h=e.side===x?n.intersectTriangle(c,o,r,!0,l):n.intersectTriangle(r,o,c,e.side===w,l),null===h)return null;os.copy(l),os.applyMatrix4(object.matrixWorld);const f=t.ray.origin.distanceTo(os);return f<t.near||f>t.far?null:{distance:f,point:os.clone(),object:object}}(object,e,t,n,Ya,Za,Ka,ss);if(h){r&&(es.fromBufferAttribute(r,a),ts.fromBufferAttribute(r,b),ns.fromBufferAttribute(r,l),h.uv=la.getInterpolation(ss,Ya,Za,Ka,es,ts,ns,new mr)),o&&(es.fromBufferAttribute(o,a),ts.fromBufferAttribute(o,b),ns.fromBufferAttribute(o,l),h.uv1=la.getInterpolation(ss,Ya,Za,Ka,es,ts,ns,new mr),h.uv2=h.uv1),c&&(rs.fromBufferAttribute(c,a),is.fromBufferAttribute(c,b),as.fromBufferAttribute(c,l),h.normal=la.getInterpolation(ss,Ya,Za,Ka,rs,is,as,new Yr),h.normal.dot(n.direction)>0&&h.normal.multiplyScalar(-1));const e={a:a,b:b,c:l,normal:new Yr,materialIndex:0};la.getNormal(Ya,Za,Ka,e.normal),h.face=e}return h}class us extends Wa{constructor(e=1,t=1,n=1,r=1,o=1,c=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:o,depthSegments:c};const l=this;r=Math.floor(r),o=Math.floor(o),c=Math.floor(c);const h=[],f=[],d=[],m=[];let v=0,_=0;function y(u,e,t,n,r,o,c,y,w,x,S){const T=o/w,E=c/x,M=o/2,A=c/2,C=y/2,R=w+1,k=x+1;let O=0,P=0;const L=new Yr;for(let o=0;o<k;o++){const c=o*E-A;for(let l=0;l<R;l++){const h=l*T-M;L[u]=h*n,L[e]=c*r,L[t]=C,f.push(L.x,L.y,L.z),L[u]=0,L[e]=0,L[t]=y>0?1:-1,d.push(L.x,L.y,L.z),m.push(l/w),m.push(1-o/x),O+=1}}for(let e=0;e<x;e++)for(let t=0;t<w;t++){const a=v+t+R*e,b=v+t+R*(e+1),n=v+(t+1)+R*(e+1),r=v+(t+1)+R*e;h.push(a,b,r),h.push(b,n,r),P+=6}l.addGroup(_,P,S),_+=P,v+=O}y("z","y","x",-1,-1,n,t,e,c,o,0),y("z","y","x",1,-1,n,t,-e,c,o,1),y("x","z","y",1,1,e,n,t,r,c,2),y("x","z","y",1,-1,e,n,-t,r,c,3),y("x","y","z",1,-1,e,t,n,r,o,4),y("x","y","z",-1,-1,e,t,-n,r,o,5),this.setIndex(h),this.setAttribute("position",new Na(f,3)),this.setAttribute("normal",new Na(d,3)),this.setAttribute("uv",new Na(m,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new us(data.width,data.height,data.depth,data.widthSegments,data.heightSegments,data.depthSegments)}}function hs(e){const t={};for(const u in e){t[u]={};for(const p in e[u]){const n=e[u][p];n&&(n.isColor||n.isMatrix3||n.isMatrix4||n.isVector2||n.isVector3||n.isVector4||n.isTexture||n.isQuaternion)?n.isRenderTargetTexture?t[u][p]=null:t[u][p]=n.clone():Array.isArray(n)?t[u][p]=n.slice():t[u][p]=n}}return t}function fs(e){const t={};for(let u=0;u<e.length;u++){const n=hs(e[u]);for(const p in n)t[p]=n[p]}return t}function ds(e){return null===e.getRenderTarget()?e.outputColorSpace:kr.workingColorSpace}const ps={clone:hs,merge:fs};class ms extends va{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(source){return super.copy(source),this.fragmentShader=source.fragmentShader,this.vertexShader=source.vertexShader,this.uniforms=hs(source.uniforms),this.uniformsGroups=function(e){const t=[];for(let u=0;u<e.length;u++)t.push(e[u].clone());return t}(source.uniformsGroups),this.defines=Object.assign({},source.defines),this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.fog=source.fog,this.lights=source.lights,this.clipping=source.clipping,this.extensions=Object.assign({},source.extensions),this.glslVersion=source.glslVersion,this}toJSON(meta){const data=super.toJSON(meta);data.glslVersion=this.glslVersion,data.uniforms={};for(const e in this.uniforms){const t=this.uniforms[e].value;t&&t.isTexture?data.uniforms[e]={type:"t",value:t.toJSON(meta).uuid}:t&&t.isColor?data.uniforms[e]={type:"c",value:t.getHex()}:t&&t.isVector2?data.uniforms[e]={type:"v2",value:t.toArray()}:t&&t.isVector3?data.uniforms[e]={type:"v3",value:t.toArray()}:t&&t.isVector4?data.uniforms[e]={type:"v4",value:t.toArray()}:t&&t.isMatrix3?data.uniforms[e]={type:"m3",value:t.toArray()}:t&&t.isMatrix4?data.uniforms[e]={type:"m4",value:t.toArray()}:data.uniforms[e]={value:t}}Object.keys(this.defines).length>0&&(data.defines=this.defines),data.vertexShader=this.vertexShader,data.fragmentShader=this.fragmentShader,data.lights=this.lights,data.clipping=this.clipping;const e={};for(const t in this.extensions)!0===this.extensions[t]&&(e[t]=!0);return Object.keys(e).length>0&&(data.extensions=e),data}}class gs extends Ki{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Mi,this.projectionMatrix=new Mi,this.projectionMatrixInverse=new Mi,this.coordinateSystem=Zn}copy(source,e){return super.copy(source,e),this.matrixWorldInverse.copy(source.matrixWorldInverse),this.projectionMatrix.copy(source.projectionMatrix),this.projectionMatrixInverse.copy(source.projectionMatrixInverse),this.coordinateSystem=source.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class vs extends gs{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(source,e){return super.copy(source,e),this.fov=source.fov,this.zoom=source.zoom,this.near=source.near,this.far=source.far,this.focus=source.focu
vendor: 4,140 bytes, line 2
2s,this.aspect=source.aspect,this.view=null===source.view?null:Object.assign({},source.view),this.filmGauge=source.filmGauge,this.filmOffset=source.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*rr*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*nr*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*rr*Math.atan(Math.tan(.5*nr*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,o,c){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=o,this.view.height=c,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*nr*this.fov)/this.zoom,n=2*t,r=this.aspect*n,o=-.5*r;const view=this.view;if(null!==this.view&&this.view.enabled){const e=view.fullWidth,c=view.fullHeight;o+=view.offsetX*r/e,t-=view.offsetY*n/c,r*=view.width/e,n*=view.height/c}const c=this.filmOffset;0!==c&&(o+=e*c/this.getFilmWidth()),this.projectionMatrix.makePerspective(o,o+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(meta){const data=super.toJSON(meta);return data.object.fov=this.fov,data.object.zoom=this.zoom,data.object.near=this.near,data.object.far=this.far,data.object.focus=this.focus,data.object.aspect=this.aspect,null!==this.view&&(data.object.view=Object.assign({},this.view)),data.object.filmGauge=this.filmGauge,data.object.filmOffset=this.filmOffset,data}}class _s extends Ki{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new vs(-90,1,e,t);r.layers=this.layers,this.add(r);const o=new vs(-90,1,e,t);o.layers=this.layers,this.add(o);const c=new vs(-90,1,e,t);c.layers=this.layers,this.add(c);const l=new vs(-90,1,e,t);l.layers=this.layers,this.add(l);const h=new vs(-90,1,e,t);h.layers=this.layers,this.add(h);const f=new vs(-90,1,e,t);f.layers=this.layers,this.add(f)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,o,c,l,h]=t;for(const e of t)this.remove(e);if(e===Zn)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),o.up.set(0,0,-1),o.lookAt(0,1,0),c.up.set(0,0,1),c.lookAt(0,-1,0),l.up.set(0,1,0),l.lookAt(0,0,1),h.up.set(0,1,0),h.lookAt(0,0,-1);else{if(e!==Kn)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),o.up.set(0,0,1),o.lookAt(0,1,0),c.up.set(0,0,-1),c.lookAt(0,-1,0),l.up.set(0,-1,0),l.lookAt(0,0,1),h.up.set(0,-1,0),h.lookAt(0,0,-1)}for(const e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[o,c,l,h,f,d]=this.children,m=e.getRenderTarget(),v=e.getActiveCubeFace(),_=e.getActiveMipmapLevel(),y=e.xr.enabled;e.xr.enabled=!1;const w=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,o),e.setRenderTarget(n,1,r),e.render(t,c),e.setRenderTarget(n,2,r),e.render(t,l),e.setRenderTarget(n,3,r),e.render(t,h),e.setRenderTarget(n,4,r),e.render(t,f),n.texture.generateMipmaps=w,e.setRenderTarget(n,5,r),e.render(t,d),e.setRenderTarget(m,v,_),e.xr.enabled=y,n.texture.needsPMREMUpdate=!0}}class ys extends Br{constructor(e,t,n,r,o,c,l,h,f,d){super(e=void 0!==e?e:[],t=void 0!==t?t:_e,n,r,o,c,l,h,f,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class bs extends Vr{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const image={width:e,height:e,depth:1},n=[image,image,image,image,image,image];
vendor: 9,804 bytes, line 2
2void 0!==t.encoding&&(Er("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===Qt?sn:an),this.texture=new ys(n,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:Oe}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new us(5,5,5),o=new ms({name:"CubemapFromEquirect",uniforms:hs(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:x,blending:E});o.uniforms.tEquirect.value=t;const c=new cs(r,o),l=t.minFilter;t.minFilter===Ie&&(t.minFilter=Oe);return new _s(1,10,this).update(e,c),t.minFilter=l,c.geometry.dispose(),c.material.dispose(),this}clear(e,t,n,r){const o=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(o)}}const ws=new Yr,xs=new Yr,Ss=new gr;class Ts{constructor(e=new Yr(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(a,b,e){const t=ws.subVectors(e,b).cross(xs.subVectors(a,b)).normalize();return this.setFromNormalAndCoplanarPoint(t,a),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(line,e){const t=line.delta(ws),n=this.normal.dot(t);if(0===n)return 0===this.distanceToPoint(line.start)?e.copy(line.start):null;const r=-(line.start.dot(this.normal)+this.constant)/n;return r<0||r>1?null:e.copy(line.start).addScaledVector(t,r)}intersectsLine(line){const e=this.distanceToPoint(line.start),t=this.distanceToPoint(line.end);return e<0&&t>0||t<0&&e>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Ss.getNormalMatrix(e),r=this.coplanarPoint(ws).applyMatrix4(e),o=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(o),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Es=new vi,Ms=new Yr;class As{constructor(e=new Ts,t=new Ts,n=new Ts,r=new Ts,o=new Ts,c=new Ts){this.planes=[e,t,n,r,o,c]}set(e,t,n,r,o,c){const l=this.planes;return l[0].copy(e),l[1].copy(t),l[2].copy(n),l[3].copy(r),l[4].copy(o),l[5].copy(c),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=Zn){const n=this.planes,r=e.elements,o=r[0],c=r[1],l=r[2],h=r[3],f=r[4],d=r[5],m=r[6],v=r[7],_=r[8],y=r[9],w=r[10],x=r[11],S=r[12],T=r[13],E=r[14],M=r[15];if(n[0].setComponents(h-o,v-f,x-_,M-S).normalize(),n[1].setComponents(h+o,v+f,x+_,M+S).normalize(),n[2].setComponents(h+c,v+d,x+y,M+T).normalize(),n[3].setComponents(h-c,v-d,x-y,M-T).normalize(),n[4].setComponents(h-l,v-m,x-w,M-E).normalize(),t===Zn)n[5].setComponents(h+l,v+m,x+w,M+E).normalize();else{if(t!==Kn)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(l,m,w,E).normalize()}return this}intersectsObject(object){if(void 0!==object.boundingSphere)null===object.boundingSphere&&object.computeBoundingSphere(),Es.copy(object.boundingSphere).applyMatrix4(object.matrixWorld);else{const e=object.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),Es.copy(e.boundingSphere).applyMatrix4(object.matrixWorld)}return this.intersectsSphere(Es)}intersectsSprite(e){return Es.center.set(0,0,0),Es.radius=.7071067811865476,Es.applyMatrix4(e.matrixWorld),this.intersectsSphere(Es)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let i=0;i<6;i++){if(t[i].distanceToPoint(n)<r)return!1}return!0}intersectsBox(e){const t=this.planes;for(let i=0;i<6;i++){const n=t[i];if(Ms.x=n.normal.x>0?e.max.x:e.min.x,Ms.y=n.normal.y>0?e.max.y:e.min.y,Ms.z=n.normal.z>0?e.max.z:e.min.z,n.distanceToPoint(Ms)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Cs(){let e=null,t=!1,n=null,r=null;function o(time,t){n(time,t),r=e.requestAnimationFrame(o)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(o),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Rs(e,t){const n=t.isWebGL2,r=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)},remove:function(t){t.isInterleavedBufferAttribute&&(t=t.data);const data=r.get(t);data&&(e.deleteBuffer(data.buffer),r.delete(t))},update:function(t,o){if(t.isGLBufferAttribute){const e=r.get(t);return void((!e||e.version<t.version)&&r.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const data=r.get(t);void 0===data?r.set(t,function(t,r){const o=t.array,c=t.usage,l=e.createBuffer();let h;if(e.bindBuffer(r,l),e.bufferData(r,o,c),t.onUploadCallback(),o instanceof Float32Array)h=e.FLOAT;else if(o instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");h=e.HALF_FLOAT}else h=e.UNSIGNED_SHORT;else if(o instanceof Int16Array)h=e.SHORT;else if(o instanceof Uint32Array)h=e.UNSIGNED_INT;else if(o instanceof Int32Array)h=e.INT;else if(o instanceof Int8Array)h=e.BYTE;else if(o instanceof Uint8Array)h=e.UNSIGNED_BYTE;else{if(!(o instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+o);h=e.UNSIGNED_BYTE}return{buffer:l,type:h,bytesPerElement:o.BYTES_PER_ELEMENT,version:t.version}}(t,o)):data.version<t.version&&(!function(t,r,o){const c=r.array,l=r.updateRange;e.bindBuffer(o,t),-1===l.count?e.bufferSubData(o,0,c):(n?e.bufferSubData(o,l.offset*c.BYTES_PER_ELEMENT,c,l.offset,l.count):e.bufferSubData(o,l.offset*c.BYTES_PER_ELEMENT,c.subarray(l.offset,l.offset+l.count)),l.count=-1),r.onUploadCallback()}(data.buffer,t,o),data.version=t.version)}}}class ks extends Wa{constructor(e=1,t=1,n=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:r};const o=e/2,c=t/2,l=Math.floor(n),h=Math.floor(r),f=l+1,d=h+1,m=e/l,v=t/h,_=[],y=[],w=[],x=[];for(let e=0;e<d;e++){const t=e*v-c;for(let n=0;n<f;n++){const r=n*m-o;y.push(r,-t,0),w.push(0,0,1),x.push(n/l),x.push(1-e/h)}}for(let e=0;e<h;e++)for(let t=0;t<l;t++){const a=t+f*e,b=t+f*(e+1),n=t+1+f*(e+1),r=t+1+f*e;_.push(a,b,r),_.push(b,n,r)}this.setIndex(_),this.setAttribute("position",new Na(y,3)),this.setAttribute("normal",new Na(w,3)),this.setAttribute("uv",new Na(x,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new ks(data.width,data.height,data.widthSegments,data.heightSegments)}}const Os={alphahash_fragment:"#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 
2- ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660,  0.0556434,\n\t\t-1.5371385,  1.8760108, -0.2040259,\n\t\t-0.4985314,  0.0415560,  1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
2\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + dis
2placementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t}
2 else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif
vendor: 7,866 bytes, line 2
2\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_
2IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tanisotropyV /= material.anisotropy;\n\tmaterial.anisotropy = saturate( material.anisotropy );\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x - tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x + tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90
vendor: 16,739 bytes, line 2
2;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n    float x2 = x * x;\n    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadow
2Bias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );
2\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;
2\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;
2\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}
2\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;
2\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
vendor: 7,618 bytes, line 2
2\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_
2INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
2\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;
2\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
2\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}"},Ps={common:{diffuse:{value:new pa(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new gr},alphaMap:{value:null},alphaMapTransform:{value:new gr},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new gr}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new gr}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new gr}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new gr},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new gr},normalScale:{value:new mr(1,1)}}
vendor: 11,369 bytes, line 2
2,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new gr},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new gr}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new gr}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new gr}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pa(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pa(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new gr},alphaTest:{value:0},uvTransform:{value:new gr}},sprite:{diffuse:{value:new pa(16777215)},opacity:{value:1},center:{value:new mr(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new gr},alphaMap:{value:null},alphaMapTransform:{value:new gr},alphaTest:{value:0}}},Ls={basic:{uniforms:fs([Ps.common,Ps.specularmap,Ps.envmap,Ps.aomap,Ps.lightmap,Ps.fog]),vertexShader:Os.meshbasic_vert,fragmentShader:Os.meshbasic_frag},lambert:{uniforms:fs([Ps.common,Ps.specularmap,Ps.envmap,Ps.aomap,Ps.lightmap,Ps.emissivemap,Ps.bumpmap,Ps.normalmap,Ps.displacementmap,Ps.fog,Ps.lights,{emissive:{value:new pa(0)}}]),vertexShader:Os.meshlambert_vert,fragmentShader:Os.meshlambert_frag},phong:{uniforms:fs([Ps.common,Ps.specularmap,Ps.envmap,Ps.aomap,Ps.lightmap,Ps.emissivemap,Ps.bumpmap,Ps.normalmap,Ps.displacementmap,Ps.fog,Ps.lights,{emissive:{value:new pa(0)},specular:{value:new pa(1118481)},shininess:{value:30}}]),vertexShader:Os.meshphong_vert,fragmentShader:Os.meshphong_frag},standard:{uniforms:fs([Ps.common,Ps.envmap,Ps.aomap,Ps.lightmap,Ps.emissivemap,Ps.bumpmap,Ps.normalmap,Ps.displacementmap,Ps.roughnessmap,Ps.metalnessmap,Ps.fog,Ps.lights,{emissive:{value:new pa(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Os.meshphysical_vert,fragmentShader:Os.meshphysical_frag},toon:{uniforms:fs([Ps.common,Ps.aomap,Ps.lightmap,Ps.emissivemap,Ps.bumpmap,Ps.normalmap,Ps.displacementmap,Ps.gradientmap,Ps.fog,Ps.lights,{emissive:{value:new pa(0)}}]),vertexShader:Os.meshtoon_vert,fragmentShader:Os.meshtoon_frag},matcap:{uniforms:fs([Ps.common,Ps.bumpmap,Ps.normalmap,Ps.displacementmap,Ps.fog,{matcap:{value:null}}]),vertexShader:Os.meshmatcap_vert,fragmentShader:Os.meshmatcap_frag},points:{uniforms:fs([Ps.points,Ps.fog]),vertexShader:Os.points_vert,fragmentShader:Os.points_frag},dashed:{uniforms:fs([Ps.common,Ps.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Os.linedashed_vert,fragmentShader:Os.linedashed_frag},depth:{uniforms:fs([Ps.common,Ps.displacementmap]),vertexShader:Os.depth_vert,fragmentShader:Os.depth_frag},normal:{uniforms:fs([Ps.common,Ps.bumpmap,Ps.normalmap,Ps.displacementmap,{opacity:{value:1}}]),vertexShader:Os.meshnormal_vert,fragmentShader:Os.meshnormal_frag},sprite:{uniforms:fs([Ps.sprite,Ps.fog]),vertexShader:Os.sprite_vert,fragmentShader:Os.sprite_frag},background:{uniforms:{uvTransform:{value:new gr},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Os.background_vert,fragmentShader:Os.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:Os.backgroundCube_vert,fragmentShader:Os.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Os.cube_vert,fragmentShader:Os.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Os.equirect_vert,fragmentShader:Os.equirect_frag},distanceRGBA:{uniforms:fs([Ps.common,Ps.displacementmap,{referencePosition:{value:new Yr},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Os.distanceRGBA_vert,fragmentShader:Os.distanceRGBA_frag},shadow:{uniforms:fs([Ps.lights,Ps.fog,{color:{value:new pa(0)},opacity:{value:1}}]),vertexShader:Os.shadow_vert,fragmentShader:Os.shadow_frag}};Ls.physical={uniforms:fs([Ls.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new gr},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new gr},clearcoatNormalScale:{value:new mr(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new gr},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new gr},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new gr},sheen:{value:0},sheenColor:{value:new pa(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new gr},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new gr},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new gr},transmissionSamplerSize:{value:new mr},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new gr},attenuationDistance:{value:0},attenuationColor:{value:new pa(0)},specularColor:{value:new pa(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new gr},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new gr},anisotropyVector:{value:new mr},anisotropyMap:{value:null},anisotropyMapTransform:{value:new gr}}]),vertexShader:Os.meshphysical_vert,fragmentShader:Os.meshphysical_frag};const Is={r:0,b:0,g:0};function Ns(e,t,n,r,o,c,l){const h=new pa(0);let f,d,m=!0===c?0:1,v=null,_=0,y=null;function S(t,n){t.getRGB(Is,ds(e)),r.buffers.color.setClear(Is.r,Is.g,Is.b,n,l)}return{getClearColor:function(){return h},setClearColor:function(e,t=1){h.set(e),m=t,S(h,m)},getClearAlpha:function(){return m},setClearAlpha:function(e){m=e,S(h,m)},render:function(c,T){let E=!1,M=!0===T.isScene?T.background:null;if(M&&M.isTexture){M=(T.backgroundBlurriness>0?n:t).get(M)}null===M?S(h,m):M&&M.isColor&&(S(M,1),E=!0);const A=e.xr.getEnvironmentBlendMode();"additive"===A?r.buffers.color.setClear(0,0,0,1,l):"alpha-blend"===A&&r.buffers.color.setClear(0,0,0,0,l),(e.autoClear||E)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),M&&(M.isCubeTexture||M.mapping===xe)?(void 0===d&&(d=new cs(new us(1,1,1),new ms({name:"BackgroundCubeMaterial",uniforms:hs(Ls.backgroundCube.uniforms),vertexShader:Ls.backgroundCube.vertexShader,fragmentShader:Ls.backgroundCube.fragmentShader,side:x,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),o.update(d)),d.material.uniforms.envMap.value=M,d.material.uniforms.flipEnvMap.value=M.isCubeTexture&&!1===M.isRenderTargetTexture?-1:1,d.material.uniforms.backgroundBlurriness.value=T.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=T.backgroundIntensity,d.material.toneMapped=kr.getTransfer(M.colorSpace)!==hn,v===M&&_===M.version&&y===e.toneMapping||(d.material.needsUpdate=!0,v=M,_=M.version,y=e.toneMapping),d.layers.enableAll(),c.unshift(d,d.geometry,d.material,0,0,null)):M&&M.isTexture&&(void 0===f&&(f=new cs(new ks(2,2),new ms({name:"BackgroundMaterial",uniforms:hs(Ls.background.uniforms),vertexShader:Ls.background.vertexShader,fragmentShader:Ls.background.fragmentShader,side:w,depthTest:!1,depthWrite:!1,fog:!1})),f.geometry.deleteAttribute("normal"),Object.defineProperty(f.material,"map",{get:function(){return this.uniforms.t2D.value}}),o.update(f)),f.material.uniforms.t2D.value=M,f.material.uniforms.backgroundIntensity.value=T.backgroundIntensity,f.material.toneMapped=kr.getTransfer(M.colorSpace)!==hn,!0===M.matrixAutoUpdate&&M.updateMatrix(),f.material.uniforms.uvTransform.value.copy(M.matrix),v===M&&_===M.version&&y===e.toneMapping||(f.material.needsUpdate=!0,v=M,_=M.version,y=e.toneMapping),f.layers.enableAll(),c.unshift(f,f.geometry,f.material,0,0,null))}}}function Ds(e,t,n,r){const o=e.getParameter(e.MAX_VERTEX_ATTRIBS),c=r.isWebGL2?null:t.get("OES_vertex_array_object"),l=r.isWebGL2||null!==c,h={},f=y(null);let d=f,m=!1;function v(t){return r.isWebGL2?e.bindVertexArray(t):c.bindVertexArrayOES(t)}function _(t){return r.isWebGL2?e.deleteVertexArray(t):c.deleteVertexArrayOES(t)}function y(e){const t=[],n=[],r=[];for(let i=0;i<o;i++)t[i]=0,n[i]=0,r[i]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:r,object:e,attributes:{},index:null}}function w(){const e=d.newAttributes;for(let i=0,t=e.length;i<t;i++)e[i]=0}function x(e){S(e,0)}function S(n,o){const c=d.newAttributes,l=d.enabledAttributes,h=d.attributeDivisors;if(c[n]=1,0===l[n]&&(e.enableVertexAttribArray(n),l[n]=1),h[n]!==o){(r.isWebGL2?e:t.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,o),h[n]=o}}function T(){const t=d.newAttributes,n=d.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function E(t,n,r,o,c,l,h){!0===h?e.vertexAttribIPointer(t,n,r,c,l):e.vertexAttribPointer(t,n,r,o,c,l)}function M(){A(),m=!0,d!==f&&(d=f,v(d.object))}function A(){f.geometry=null,f.program=null,f.wireframe=!1}return{setup:function(object,o,f,_,M){let A=!1;if(l){const t=function(t,n,o){const l=!0===o.wireframe;let f=h[t.id];void 0===f&&(f={},h[t.id]=f);let d=f[n.id];void 0===d&&(d={},f[n.id]=d);let m=d[l];void 0===m&&(m=y(r.isWebGL2?e.createVertexArray():c.createVertexArrayOES()),d[l]=m);return m}(_,f,o);d!==t&&(d=t,v(d.object)),A=function(object,e,t,n){const r=d.attributes,o=e.attributes;let c=0;const l=t.getAttributes();for(const e in l){if(l[e].location>=0){const t=r[e];let n=o[e];if(void 0===n&&("instanceMatrix"===e&&object.instanceMatrix&&(n=object.instanceMatrix),"instanceColor"===e&&object.instanceColor&&(n=object.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;c++}}return d.attributesNum!==c||d.index!==n}(object,_,f,M),A&&function(object,e,t,n){const r={},o=e.attributes;let c=0;const l=t.getAttributes();for(const e in l){if(l[e].location>
2=0){let t=o[e];void 0===t&&("instanceMatrix"===e&&object.instanceMatrix&&(t=object.instanceMatrix),"instanceColor"===e&&object.instanceColor&&(t=object.instanceColor));const data={};data.attribute=t,t&&t.data&&(data.data=t.data),r[e]=data,c++}}d.attributes=r,d.attributesNum=c,d.index=n}(object,_,f,M)}else{const e=!0===o.wireframe;d.geometry===_.id&&d.program===f.id&&d.wireframe===e||(d.geometry=_.id,d.program=f.id,d.wireframe=e,A=!0)}null!==M&&n.update(M,e.ELEMENT_ARRAY_BUFFER),(A||m)&&(m=!1,function(object,o,c,l){if(!1===r.isWebGL2&&(object.isInstancedMesh||l.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;w();const h=l.attributes,f=c.getAttributes(),d=o.defaultAttributeValues;for(const t in f){const o=f[t];if(o.location>=0){let c=h[t];if(void 0===c&&("instanceMatrix"===t&&object.instanceMatrix&&(c=object.instanceMatrix),"instanceColor"===t&&object.instanceColor&&(c=object.instanceColor)),void 0!==c){const t=c.normalized,h=c.itemSize,f=n.get(c);if(void 0===f)continue;const d=f.buffer,m=f.type,v=f.bytesPerElement,_=!0===r.isWebGL2&&(m===e.INT||m===e.UNSIGNED_INT||c.gpuType===ze);if(c.isInterleavedBufferAttribute){const data=c.data,n=data.stride,r=c.offset;if(data.isInstancedInterleavedBuffer){for(let i=0;i<o.locationSize;i++)S(o.location+i,data.meshPerAttribute);!0!==object.isInstancedMesh&&void 0===l._maxInstanceCount&&(l._maxInstanceCount=data.meshPerAttribute*data.count)}else for(let i=0;i<o.locationSize;i++)x(o.location+i);e.bindBuffer(e.ARRAY_BUFFER,d);for(let i=0;i<o.locationSize;i++)E(o.location+i,h/o.locationSize,m,t,n*v,(r+h/o.locationSize*i)*v,_)}else{if(c.isInstancedBufferAttribute){for(let i=0;i<o.locationSize;i++)S(o.location+i,c.meshPerAttribute);!0!==object.isInstancedMesh&&void 0===l._maxInstanceCount&&(l._maxInstanceCount=c.meshPerAttribute*c.count)}else for(let i=0;i<o.locationSize;i++)x(o.location+i);e.bindBuffer(e.ARRAY_BUFFER,d);for(let i=0;i<o.locationSize;i++)E(o.location+i,h/o.locationSize,m,t,h*v,h/o.locationSize*i*v,_)}}else if(void 0!==d){const n=d[t];if(void 0!==n)switch(n.length){case 2:e.vertexAttrib2fv(o.location,n);break;case 3:e.vertexAttrib3fv(o.location,n);break;case 4:e.vertexAttrib4fv(o.location,n);break;default:e.vertexAttrib1fv(o.location,n)}}}}T()}(object,o,f,_),null!==M&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,n.get(M).buffer))},reset:M,resetDefaultState:A,dispose:function(){M();for(const e in h){const t=h[e];for(const e in t){const n=t[e];for(const e in n)_(n[e].object),delete n[e];delete t[e]}delete h[e]}},releaseStatesOfGeometry:function(e){if(void 0===h[e.id])return;const t=h[e.id];for(const e in t){const n=t[e];for(const e in n)_(n[e].object),delete n[e];delete t[e]}delete h[e.id]},releaseStatesOfProgram:function(e){for(const t in h){const n=h[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)_(r[e].object),delete r[e];delete n[e.id]}},initAttributes:w,enableAttribute:x,disableUnusedAttributes:T}}function Us(e,t,n,r){const o=r.isWebGL2;let c;this.setMode=function(e){c=e},this.render=function(t,r){e.drawArrays(c,t,r),n.update(r,c,1)},this.renderInstances=function(r,l,h){if(0===h)return;let f,d;if(o)f=e,d="drawArraysInstanced";else if(f=t.get("ANGLE_instanced_arrays"),d="drawArraysInstancedANGLE",null===f)return;f[d](c,r,l,h),n.update(l,c,h)}}function Fs(e,t,n){let r;function o(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const c="undefined"!=typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===e.constructor.name;let l=void 0!==n.precision?n.precision:"highp";const h=o(l);h!==l&&(l=h);const f=c||t.has("WEBGL_draw_buffers"),d=!0===n.logarithmicDepthBuffer,m=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),v=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),_=e.getParameter(e.MAX_TEXTURE_SIZE),y=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),w=e.getParameter(e.MAX_VERTEX_ATTRIBS),x=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),S=e.getParameter(e.MAX_VARYING_VECTORS),T=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),E=v>0,M=c||t.has("OES_texture_float");return{isWebGL2:c,drawBuffers:f,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");r=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:o,precision:l,logarithmicDepthBuffer:d,maxTextures:m,maxVertexTextures:v,maxTextureSize:_,maxCubemapSize:y,maxAttributes:w,maxVertexUniforms:x,maxVaryings:S,maxFragmentUniforms:T,vertexTextures:E,floatFragmentTextures:M,floatVertexTextures:E&&M,maxSamples:c?e.getParameter(e.MAX_SAMPLES):0}}function Bs(e){const t=this;let n=null,r=0,o=!1,c=!1;const l=new Ts,h=new gr,f={value:null,needsUpdate:!1};function d(e,n,r,o){const c=null!==e?e.length:0;let d=null;if(0!==c){if(d=f.value,!0!==o||null===d){const t=r+4*c,o=n.matrixWorldInverse;
vendor: 13,691 bytes, line 2
2h.getNormalMatrix(o),(null===d||d.length<t)&&(d=new Float32Array(t));for(let i=0,t=r;i!==c;++i,t+=4)l.copy(e[i]).applyMatrix4(o,h),l.normal.toArray(d,t),d[t+3]=l.constant}f.value=d,f.needsUpdate=!0}return t.numPlanes=c,t.numIntersection=0,d}this.uniform=f,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==r||o;return o=t,r=e.length,n},this.beginShadows=function(){c=!0,d(null)},this.endShadows=function(){c=!1},this.setGlobalState=function(e,t){n=d(e,t,0)},this.setState=function(l,h,m){const v=l.clippingPlanes,_=l.clipIntersection,y=l.clipShadows,w=e.get(l);if(!o||null===v||0===v.length||c&&!y)c?d(null):function(){f.value!==n&&(f.value=n,f.needsUpdate=r>0);t.numPlanes=r,t.numIntersection=0}();else{const e=c?0:r,t=4*e;let o=w.clippingState||null;f.value=o,o=d(v,h,t,m);for(let i=0;i!==t;++i)o[i]=n[i];w.clippingState=o,this.numIntersection=_?this.numPlanes:0,this.numPlanes+=e}}}function zs(e){let t=new WeakMap;function n(e,t){return t===be?e.mapping=_e:t===we&&(e.mapping=ye),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const o=t.get(n);void 0!==o&&(t.delete(n),o.dispose())}return{get:function(o){if(o&&o.isTexture&&!1===o.isRenderTargetTexture){const c=o.mapping;if(c===be||c===we){if(t.has(o)){return n(t.get(o).texture,o.mapping)}{const image=o.image;if(image&&image.height>0){const c=new bs(image.height/2);return c.fromEquirectangularTexture(e,o),t.set(o,c),o.addEventListener("dispose",r),n(c.texture,o.mapping)}return null}}}return o},dispose:function(){t=new WeakMap}}}class Hs extends gs{constructor(e=-1,t=1,n=1,r=-1,o=.1,c=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=o,this.far=c,this.updateProjectionMatrix()}copy(source,e){return super.copy(source,e),this.left=source.left,this.right=source.right,this.top=source.top,this.bottom=source.bottom,this.near=source.near,this.far=source.far,this.zoom=source.zoom,this.view=null===source.view?null:Object.assign({},source.view),this}setViewOffset(e,t,n,r,o,c){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=o,this.view.height=c,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let o=n-e,c=n+e,l=r+t,h=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;o+=e*this.view.offsetX,c=o+e*this.view.width,l-=t*this.view.offsetY,h=l-t*this.view.height}this.projectionMatrix.makeOrthographic(o,c,l,h,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(meta){const data=super.toJSON(meta);return data.object.zoom=this.zoom,data.object.left=this.left,data.object.right=this.right,data.object.top=this.top,data.object.bottom=this.bottom,data.object.near=this.near,data.object.far=this.far,null!==this.view&&(data.object.view=Object.assign({},this.view)),data}}const Vs=[.125,.215,.35,.446,.526,.582],js=new Hs,Ws=new pa;let Gs=null,$s=0,Xs=0;const qs=(1+Math.sqrt(5))/2,Ys=1/qs,Zs=[new Yr(1,1,1),new Yr(-1,1,1),new Yr(1,1,-1),new Yr(-1,1,-1),new Yr(0,qs,Ys),new Yr(0,qs,-Ys),new Yr(Ys,0,qs),new Yr(-Ys,0,qs),new Yr(qs,Ys,0),new Yr(-qs,Ys,0)];class Ks{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){Gs=this._renderer.getRenderTarget(),$s=this._renderer.getActiveCubeFace(),Xs=this._renderer.getActiveMipmapLevel(),this._setSize(256);const o=this._allocateTargets();return o.depthBuffer=!0,this._sceneToCubeUV(e,n,r,o),t>0&&this._blur(o,0,0,t),this._applyPMREM(o),this._cleanup(o),o}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=to(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=eo(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let i=0;i<this._lodPlanes.length;i++)this._lodPlanes[i].dispose()}_cleanup(e){this._renderer.setRenderTarget(Gs,$s,Xs),e.scissorTest=!1,Qs(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===_e||e.mapping===ye?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Gs=this._renderer.getRenderTarget(),$s=this._renderer.getActiveCubeFace(),Xs=this._renderer.getActiveMipmapLevel();const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:Oe,minFilter:Oe,generateMipmaps:!1,type:je,format:qe,colorSpace:on,depthBuffer:!1},r=Js(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=Js(e,t,n);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],r=[];let o=e;const c=e-4+1+Vs.length;for(let i=0;i<c;i++){const c=Math.pow(2,o);n.push(c);let l=1/c;i>e-4?l=Vs[i-e+4-1]:0===i&&(l=0),r.push(l);const h=1/(c-2),f=-h,d=1+h,m=[f,f,d,f,d,d,f,f,d,d,f,d],v=6,_=6,y=3,w=2,x=1,S=new Float32Array(y*_*v),T=new Float32Array(w*_*v),E=new Float32Array(x*_*v);for(let e=0;e<v;e++){const t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];S.set(r,y*_*e),T.set(m,w*_*e);const o=[e,e,e,e,e,e];E.set(o,x*_*e)}const M=new Wa;M.setAttribute("position",new Ma(S,y)),M.setAttribute("uv",new Ma(T,w)),M.setAttribute("faceIndex",new Ma(E,x)),t.push(M),o>4&&o--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(20),o=new Yr(0,1,0);return new ms({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:e+".0"},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:o}},vertexShader:no(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:E,depthTest:!1,depthWrite:!1})}(r,e,t)}return r}_compileMaterial(e){const t=new cs(this._lodPlanes[0],e);this._renderer.compile(t,js)}_sceneToCubeUV(e,t,n,r){const o=new vs(90,1,t,n),c=[1,-1,1,1,1,1],l=[1,1,1,-1,-1,-1],h=this._renderer,f=h.autoClear,d=h.toneMapping;h.getClearColor(Ws),h.toneMapping=le,h.autoClear=!1;const m=new _a({name:"PMREM.Background",side:x,depthWrite:!1,depthTest:!1}),v=new cs(new us,m);let _=!1;const y=e.background;y?y.isColor&&(m.color.copy(y),e.background=null,_=!0):(m.color.copy(Ws),_=!0);for(let i=0;i<6;i++){const col=i%3;0===col?(o.up.set(0,c[i],0),o.lookAt(l[i],0,0)):1===col?(o.up.set(0,0,c[i]),o.lookAt(0,l[i],0)):(o.up.set(0,c[i],0),o.lookAt(0,0,l[i]));const t=this._cubeSize;Qs(r,col*t,i>2?t:0,t,t),h.setRenderTarget(r),_&&h.render(v,o),h.render(e,o)}v.geometry.dispose(),v.material.dispose(),h.toneMapping=d,h.autoClear=f,e.background=y}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===_e||e.mapping===ye;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=to()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=eo());const o=r?this._cubemapMaterial:this._equirectMaterial,c=new cs(this._lodPlanes[0],o);o.uniforms.envMap.value=e;const l=this._cubeSize;Qs(t,0,0,3*l,2*l),n.setRenderTarget(t),n.render(c,js)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let i=1;i<this._lodPlanes.length;i++){const t=Math.sqrt(this._sigmas[i]*this._sigmas[i]-this._sigmas[i-1]*this._sigmas[i-1]),n=Zs[(i-1)%Zs.length];this._blur(e,i-1,i,t,n)}t.autoClear=n}_blur(e,t,n,r,o){const c=this._pingPongRenderTarget;this._halfBlur(e,c,t,n,r,"latitudinal",o),this._halfBlur(c,e,n,n,r,"longitudinal",o)}_halfBlur(e,t,n,r,o,c,l){const h=this._renderer,f=this._blurMaterial,d=new cs(this._lodPlanes[r],f),m=f.uniforms,v=this._sizeLods[n]-1,_=isFinite(o)?Math.PI/(2*v):2*Math.PI/39,y=o/_,w=isFinite(o)?1+Math.floor(3*y):20,x=[];let S=0;for(let i=0;i<20;++i){const e=i/y,t=Math.exp(-e*e/2);x.push(t),0===i?S+=t:i<w&&(S+=2*t)}for(let i=0;i<x.length;i++)x[i]=x[i]/S;m.envMap.value=e.texture,m.samples.value=w,m.weights.value=x,m.latitudinal.value="latitudinal"===c,l&&(m.poleAxis.value=l);const{_lodMax:T}=this;m.dTheta.value=_,m.mipInt.value=T-n;const E=this._sizeLods[r];Qs(t,3*E*(r>T-4?r-T+4:0),4*(this._cubeSize-E),3*E,2*E),h.setRenderTarget(t),h.render(d,js)}}function Js(e,t,n){const r=new Vr(e,t,n);return r.texture.mapping=xe,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Qs(e,t,n,r,o){e.viewport.set(t,n,r,o),e.scissor.set(t,n,r,o)}function eo(){return new ms({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:no(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:E,depthTest:!1,depthWrite:!1})}function to(){return new ms({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:no(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:E,depthTest:!1,depthWrite:!1})}function no(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function ro(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const o=t.get(n);void 0!==o&&(t.delete(n),o.dispose())}
2return{get:function(o){if(o&&o.isTexture){const c=o.mapping,l=c===be||c===we,h=c===_e||c===ye;if(l||h){if(o.isRenderTargetTexture&&!0===o.needsPMREMUpdate){o.needsPMREMUpdate=!1;let r=t.get(o);return null===n&&(n=new Ks(e)),r=l?n.fromEquirectangular(o,r):n.fromCubemap(o,r),t.set(o,r),r.texture}if(t.has(o))return t.get(o).texture;{const image=o.image;if(l&&image&&image.height>0||h&&image&&function(image){let e=0;for(let i=0;i<6;i++)void 0!==image[i]&&e++;return 6===e}(image)){null===n&&(n=new Ks(e));const c=l?n.fromEquirectangular(o):n.fromCubemap(o);return t.set(o,c),o.addEventListener("dispose",r),c.texture}return null}}}return o},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function io(e){const t={};function n(n){if(void 0!==t[n])return t[n];let r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){const t=n(e);return t}}}function ao(e,t,n,r){const o={},c=new WeakMap;function l(e){const h=e.target;null!==h.index&&t.remove(h.index);for(const e in h.attributes)t.remove(h.attributes[e]);for(const e in h.morphAttributes){const n=h.morphAttributes[e];for(let i=0,e=n.length;i<e;i++)t.remove(n[i])}h.removeEventListener("dispose",l),delete o[h.id];const f=c.get(h);f&&(t.remove(f),c.delete(h)),r.releaseStatesOfGeometry(h),!0===h.isInstancedBufferGeometry&&delete h._maxInstanceCount,n.memory.geometries--}function h(e){const n=[],r=e.index,o=e.attributes.position;let l=0;if(null!==r){const e=r.array;l=r.version;for(let i=0,t=e.length;i<t;i+=3){const a=e[i+0],b=e[i+1],t=e[i+2];n.push(a,b,b,t,t,a)}}else{if(void 0===o)return;{const e=o.array;l=o.version;for(let i=0,t=e.length/3-1;i<t;i+=3){const a=i+0,b=i+1,e=i+2;n.push(a,b,b,e,e,a)}}}const h=new(_r(n)?La:Oa)(n,1);h.version=l;const f=c.get(e);f&&t.remove(f),c.set(e,h)}return{get:function(object,e){return!0===o[e.id]||(e.addEventListener("dispose",l),o[e.id]=!0,n.memory.geometries++),e},update:function(n){const r=n.attributes;for(const n in r)t.update(r[n],e.ARRAY_BUFFER);const o=n.morphAttributes;for(const n in o){const r=o[n];for(let i=0,n=r.length;i<n;i++)t.update(r[i],e.ARRAY_BUFFER)}},getWireframeAttribute:function(e){const t=c.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&h(e)}else h(e);return c.get(e)}}}function so(e,t,n,r){const o=r.isWebGL2;let c,l,h;this.setMode=function(e){c=e},this.setIndex=function(e){l=e.type,h=e.bytesPerElement},this.render=function(t,r){e.drawElements(c,r,l,t*h),n.update(r,c,1)},this.renderInstances=function(r,f,d){if(0===d)return;let m,v;if(o)m=e,v="drawElementsInstanced";else if(m=t.get("ANGLE_instanced_arrays"),v="drawElementsInstancedANGLE",null===m)return;m[v](c,f,l,r*h,d),n.update(f,c,d)}}function oo(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(n,r,o){switch(t.calls++,r){case e.TRIANGLES:t.triangles+=o*(n/3);break;case e.LINES:t.lines+=o*(n/2);break;case e.LINE_STRIP:t.lines+=o*(n-1);break;case e.LINE_LOOP:t.lines+=o*n;break;case e.POINTS:t.points+=o*n}
vendor: 6,944 bytes, line 2
2}}}function co(a,b){return a[0]-b[0]}function lo(a,b){return Math.abs(b[1])-Math.abs(a[1])}function uo(e,t,n){const r={},o=new Float32Array(8),c=new WeakMap,l=new zr,h=[];for(let i=0;i<8;i++)h[i]=[i,0];return{update:function(object,f,d){const m=object.morphTargetInfluences;if(!0===t.isWebGL2){const r=f.morphAttributes.position||f.morphAttributes.normal||f.morphAttributes.color,o=void 0!==r?r.length:0;let h=c.get(f);if(void 0===h||h.count!==o){void 0!==h&&h.texture.dispose();const e=void 0!==f.morphAttributes.position,n=void 0!==f.morphAttributes.normal,r=void 0!==f.morphAttributes.color,d=f.morphAttributes.position||[],m=f.morphAttributes.normal||[],v=f.morphAttributes.color||[];let _=0;!0===e&&(_=1),!0===n&&(_=2),!0===r&&(_=3);let y=f.attributes.position.count*_,w=1;y>t.maxTextureSize&&(w=Math.ceil(y/t.maxTextureSize),y=t.maxTextureSize);const x=new Float32Array(y*w*4*o),S=new jr(x,y,w,o);S.type=Ve,S.needsUpdate=!0;const T=4*_;for(let i=0;i<o;i++){const t=d[i],o=m[i],c=v[i],h=y*w*4*i;for(let f=0;f<t.count;f++){const d=f*T;!0===e&&(l.fromBufferAttribute(t,f),x[h+d+0]=l.x,x[h+d+1]=l.y,x[h+d+2]=l.z,x[h+d+3]=0),!0===n&&(l.fromBufferAttribute(o,f),x[h+d+4]=l.x,x[h+d+5]=l.y,x[h+d+6]=l.z,x[h+d+7]=0),!0===r&&(l.fromBufferAttribute(c,f),x[h+d+8]=l.x,x[h+d+9]=l.y,x[h+d+10]=l.z,x[h+d+11]=4===c.itemSize?l.w:1)}}h={count:o,texture:S,size:new mr(y,w)},c.set(f,h),f.addEventListener("dispose",(function e(){S.dispose(),c.delete(f),f.removeEventListener("dispose",e)}))}let v=0;for(let i=0;i<m.length;i++)v+=m[i];const _=f.morphTargetsRelative?1:1-v;d.getUniforms().setValue(e,"morphTargetBaseInfluence",_),d.getUniforms().setValue(e,"morphTargetInfluences",m),d.getUniforms().setValue(e,"morphTargetsTexture",h.texture,n),d.getUniforms().setValue(e,"morphTargetsTextureSize",h.size)}else{const t=void 0===m?0:m.length;let n=r[f.id];if(void 0===n||n.length!==t){n=[];for(let i=0;i<t;i++)n[i]=[i,0];r[f.id]=n}for(let i=0;i<t;i++){const e=n[i];e[0]=i,e[1]=m[i]}n.sort(lo);for(let i=0;i<8;i++)i<t&&n[i][1]?(h[i][0]=n[i][0],h[i][1]=n[i][1]):(h[i][0]=Number.MAX_SAFE_INTEGER,h[i][1]=0);h.sort(co);const c=f.morphAttributes.position,l=f.morphAttributes.normal;let v=0;for(let i=0;i<8;i++){const e=h[i],t=e[0],n=e[1];t!==Number.MAX_SAFE_INTEGER&&n?(c&&f.getAttribute("morphTarget"+i)!==c[t]&&f.setAttribute("morphTarget"+i,c[t]),l&&f.getAttribute("morphNormal"+i)!==l[t]&&f.setAttribute("morphNormal"+i,l[t]),o[i]=n,v+=n):(c&&!0===f.hasAttribute("morphTarget"+i)&&f.deleteAttribute("morphTarget"+i),l&&!0===f.hasAttribute("morphNormal"+i)&&f.deleteAttribute("morphNormal"+i),o[i]=0)}const _=f.morphTargetsRelative?1:1-v;d.getUniforms().setValue(e,"morphTargetBaseInfluence",_),d.getUniforms().setValue(e,"morphTargetInfluences",o)}}}}function ho(e,t,n,r){let o=new WeakMap;function c(e){const t=e.target;t.removeEventListener("dispose",c),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(object){const l=r.render.frame,h=object.geometry,f=t.get(object,h);if(o.get(f)!==l&&(t.update(f),o.set(f,l)),object.isInstancedMesh&&(!1===object.hasEventListener("dispose",c)&&object.addEventListener("dispose",c),o.get(object)!==l&&(n.update(object.instanceMatrix,e.ARRAY_BUFFER),null!==object.instanceColor&&n.update(object.instanceColor,e.ARRAY_BUFFER),o.set(object,l))),object.isSkinnedMesh){const e=object.skeleton;o.get(e)!==l&&(e.update(),o.set(e,l))}return f},dispose:function(){o=new WeakMap}}}const fo=new Br,po=new jr,mo=new Gr,go=new ys,vo=[],_o=[],yo=new Float32Array(16),bo=new Float32Array(9),wo=new Float32Array(4);function xo(e,t,n){const r=e[0];if(r<=0||r>0)return e;const o=t*n;let c=vo[o];if(void 0===c&&(c=new Float32Array(o),vo[o]=c),0!==t){r.toArray(c,0);for(let i=1,r=0;i!==t;++i)r+=n,e[i].toArray(c,r)}return c}function So(a,b){if(a.length!==b.length)return!1;for(let i=0,e=a.length;i<e;i++)if(a[i]!==b[i])return!1;return!0}function To(a,b){for(let i=0,e=b.length;i<e;i++)a[i]=b[i]}function Eo(e,t){let n=_o[t];void 0===n&&(n=new Int32Array(t),_o[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function Mo(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Ao(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(So(n,t))return;e.uniform2fv(this.addr,t),To(n,t)}}function Co(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(So(n,t))return;e.uniform3fv(this.addr,t),To(n,t)}}function Ro(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(So(n,t))return;e.uniform4fv(this.addr,t),To(n,t)}}function ko(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(So(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),To(n,t)}else{if(So(n,r))return;wo.set(r),e.uniformMatrix2fv(this.addr,!1,wo),To(n,r)}}function Oo(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(So(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),To(n,t)}else{if(So(n,r))return;bo.set(r),e.uniformMatrix3fv(this.addr,!1,bo),To(n,r)}}function Po(e,t){const n=this.cache,r=t.elements;if(void 0===r){if(So(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),To(n,t)}else{if(So(n,r))return;yo.set(r),e.uniformMatrix4fv(this.addr,!1,yo),To(n,r)}}function Lo(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Io(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(So(n,t))return;e.uniform2iv(this.addr,t),To(n,t)}}function No(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(So(n,t))return;e.uniform3iv(this.addr,t),To(n,t)}}function Do(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(So(n,t))return;e.uniform4iv(this.addr,t),To(n,t)}}function Uo(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function Fo(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(So(n,t))return;e.uniform2uiv(this.addr,t),To(n,t)}}function Bo(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(So(n,t))return;e.uniform3uiv(this.addr,t),To(n,t)}}function zo(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(So(n,t))return;e.uniform4uiv(this.addr,t),To(n,t)}}
vendor: 4,503 bytes, line 2
2function Ho(e,t,n){const r=this.cache,o=n.allocateTextureUnit();r[0]!==o&&(e.uniform1i(this.addr,o),r[0]=o),n.setTexture2D(t||fo,o)}function Vo(e,t,n){const r=this.cache,o=n.allocateTextureUnit();r[0]!==o&&(e.uniform1i(this.addr,o),r[0]=o),n.setTexture3D(t||mo,o)}function jo(e,t,n){const r=this.cache,o=n.allocateTextureUnit();r[0]!==o&&(e.uniform1i(this.addr,o),r[0]=o),n.setTextureCube(t||go,o)}function Wo(e,t,n){const r=this.cache,o=n.allocateTextureUnit();r[0]!==o&&(e.uniform1i(this.addr,o),r[0]=o),n.setTexture2DArray(t||po,o)}function Go(e,t){e.uniform1fv(this.addr,t)}function $o(e,t){const data=xo(t,this.size,2);e.uniform2fv(this.addr,data)}function Xo(e,t){const data=xo(t,this.size,3);e.uniform3fv(this.addr,data)}function qo(e,t){const data=xo(t,this.size,4);e.uniform4fv(this.addr,data)}function Yo(e,t){const data=xo(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,data)}function Zo(e,t){const data=xo(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,data)}function Ko(e,t){const data=xo(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,data)}function Jo(e,t){e.uniform1iv(this.addr,t)}function Qo(e,t){e.uniform2iv(this.addr,t)}function ec(e,t){e.uniform3iv(this.addr,t)}function tc(e,t){e.uniform4iv(this.addr,t)}function nc(e,t){e.uniform1uiv(this.addr,t)}function rc(e,t){e.uniform2uiv(this.addr,t)}function ic(e,t){e.uniform3uiv(this.addr,t)}function ac(e,t){e.uniform4uiv(this.addr,t)}function sc(e,t,n){const r=this.cache,o=t.length,c=Eo(n,o);So(r,c)||(e.uniform1iv(this.addr,c),To(r,c));for(let i=0;i!==o;++i)n.setTexture2D(t[i]||fo,c[i])}function oc(e,t,n){const r=this.cache,o=t.length,c=Eo(n,o);So(r,c)||(e.uniform1iv(this.addr,c),To(r,c));for(let i=0;i!==o;++i)n.setTexture3D(t[i]||mo,c[i])}function cc(e,t,n){const r=this.cache,o=t.length,c=Eo(n,o);So(r,c)||(e.uniform1iv(this.addr,c),To(r,c));for(let i=0;i!==o;++i)n.setTextureCube(t[i]||go,c[i])}function lc(e,t,n){const r=this.cache,o=t.length,c=Eo(n,o);So(r,c)||(e.uniform1iv(this.addr,c),To(r,c));for(let i=0;i!==o;++i)n.setTexture2DArray(t[i]||po,c[i])}class uc{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=function(e){switch(e){case 5126:return Mo;case 35664:return Ao;case 35665:return Co;case 35666:return Ro;case 35674:return ko;case 35675:return Oo;case 35676:return Po;case 5124:case 35670:return Lo;case 35667:case 35671:return Io;case 35668:case 35672:return No;case 35669:case 35673:return Do;case 5125:return Uo;case 36294:return Fo;case 36295:return Bo;case 36296:return zo;case 35678:case 36198:case 36298:case 36306:case 35682:return Ho;case 35679:case 36299:case 36307:return Vo;case 35680:case 36300:case 36308:case 36293:return jo;case 36289:case 36303:case 36311:case 36292:return Wo}}(t.type)}}class hc{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=function(e){switch(e){case 5126:return Go;case 35664:return $o;case 35665:return Xo;case 35666:return qo;case 35674:return Yo;case 35675:return Zo;case 35676:return Ko;case 5124:case 35670:return Jo;case 35667:case 35671:return Qo;case 35668:case 35672:return ec;case 35669:case 35673:return tc;case 5125:return nc;case 36294:return rc;case 36295:return ic;case 36296:return ac;case 35678:case 36198:case 36298:case 36306:case 35682:return sc;case 35679:case 36299:case 36307:return oc;case 35680:case 36300:case 36308:case 36293:return cc;case 36289:case 36303:case 36311:case 36292:return lc}}(t.type)}}class fc{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const r=this.seq;for(let i=0,o=r.length;i!==o;++i){const u=r[i];u.setValue(e,t[u.id],n)}}}const dc=/(\w+)(\])?(\[|\.)?/g;function pc(e,t){e.seq.push(t),e.map[t.id]=t}function mc(e,t,n){const path=e.name,r=path.length;for(dc.lastIndex=0;;){const o=dc.exec(path),c=dc.lastIndex;let l=o[1];const h="]"===o[2],f=o[3];if(h&&(l|=0),void 0===f||"["===f&&c+2===r){pc(n,void 0===f?new uc(l,e,t):new hc(l,e,t));break}{let e=n.map[l];void 0===e&&(e=new fc(l),pc(n,e)),n=e}}}class gc{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=e.getActiveUniform(t,i);mc(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,r){const u=this.map[t];void 0!==u&&u.setValue(e,n,r)}setOptional(e,object,t){const n=object[t];void 0!==n&&this.setValue(e,t,n)}static upload(e,t,n,r){for(let i=0,o=t.length;i!==o;++i){const u=t[i],o=n[u.id];!1!==o.needsUpdate&&u.setValue(e,o.value,r)}}static seqWithValue(e,t){const n=[];for(let i=0,r=e.length;i!==r;++i){const u=e[i];
2u.id in t&&n.push(u)}return n}}function vc(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}let _c=0;function yc(e,t,n){const r=e.getShaderParameter(t,e.COMPILE_STATUS),o=e.getShaderInfoLog(t).trim();if(r&&""===o)return"";const c=/ERROR: 0:(\d+)/.exec(o);if(c){const r=parseInt(c[1]);return n.toUpperCase()+"\n\n"+o+"\n\n"+function(e,t){const n=e.split("\n"),r=[],o=Math.max(t-6,0),c=Math.min(t+6,n.length);for(let i=o;i<c;i++){const line=i+1;r.push(`${line===t?">":" "} ${line}: ${n[i]}`)}return r.join("\n")}(e.getShaderSource(t),r)}return o}function bc(e,t){const n=function(e){const t=kr.getPrimaries(kr.workingColorSpace),n=kr.getPrimaries(e);let r;switch(t===n?r="":t===dn&&n===fn?r="LinearDisplayP3ToLinearSRGB":t===fn&&n===dn&&(r="LinearSRGBToLinearDisplayP3"),e){case on:case ln:return[r,"LinearTransferOETF"];case sn:case cn:return[r,"sRGBTransferOETF"];default:return[r,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function wc(e,t){let n;switch(t){case ue:n="Linear";break;case he:n="Reinhard";break;case fe:n="OptimizedCineon";break;case de:n="ACESFilmic";break;case pe:n="Custom";break;default:n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function xc(e){return""!==e}function Sc(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Tc(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const Ec=/^[ \t]*#include +<([\w\d./]+)>/gm;function Mc(e){return e.replace(Ec,Cc)}const Ac=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function Cc(e,t){let n=Os[t];if(void 0===n){const e=Ac.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Os[e]}return Mc(n)}const Rc=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function kc(e){return e.replace(Rc,Oc)}function Oc(e,t,n,r){let o="";for(let i=parseInt(t);i<parseInt(n);i++)o+=r.replace(/\[\s*i\s*\]/g,"[ "+i+" ]").replace(/UNROLLED_LOOP_INDEX/g,i);return o}function Pc(e){let t="precision "+e.precision+" float;\nprecision "+e.precision+" int;";return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function Lc(e,t,n,r){const o=e.getContext(),c=n.defines;let l=n.vertexShader,h=n.fragmentShader;const f=function(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===v?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===_?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===y&&(t="SHADOWMAP_TYPE_VSM"),t}(n),d=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case _e:case ye:t="ENVMAP_TYPE_CUBE";break;case xe:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),m=function(e){let t="ENVMAP_MODE_REFLECTION";if(e.envMap)switch(e.envMapMode){case ye:t="ENVMAP_MODE_REFRACTION"}return t}(n),w=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case se:t="ENVMAP_BLENDING_MULTIPLY";break;case oe:t="ENVMAP_BLENDING_MIX";break;case ce:t="ENVMAP_BLENDING_ADD"}return t}(n),x=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,r=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:r,maxMip:n}}(n),S=n.isWebGL2?"":function(e){return[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.normalMapTangentSpace||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(xc).join("\n")}(n),T=function(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}(c),E=o.createProgram();let M,A,C=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(M=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,T].filter(xc).join("\n"),M.length>0&&(M+="\n"),A=[S,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,T].filter(xc).join("\n"),A.length>
vendor: 6,947 bytes, line 2
20&&(A+="\n")):(M=[Pc(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,T,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+m:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+f:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(xc).join("\n"),A=[S,Pc(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,T,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+m:"",n.envMap?"#define "+w:"",x?"#define CUBEUV_TEXEL_WIDTH "+x.texelWidth:"",x?"#define CUBEUV_TEXEL_HEIGHT "+x.texelHeight:"",x?"#define CUBEUV_MAX_MIP "+x.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IR
2IDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+f:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==le?"#define TONE_MAPPING":"",n.toneMapping!==le?Os.tonemapping_pars_fragment:"",n.toneMapping!==le?wc("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Os.colorspace_pars_fragment,bc("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(xc).join("\n")),l=Mc(l),l=Sc(l,n),l=Tc(l,n),h=Mc(h),h=Sc(h,n),h=Tc(h,n),l=kc(l),h=kc(h),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(C="#version 300 es\n",M=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+M,A=["precision mediump sampler2DArray;","#define varying in",n.glslVersion===qn?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===qn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+A);const R=C+M+l,k=C+A+h,O=vc(o,o.VERTEX_SHADER,R),P=vc(o,o.FRAGMENT_SHADER,k);function L(t){if(e.debug.checkShaderErrors){const n=o.getProgramInfoLog(E).trim(),r=o.getShaderInfoLog(O).trim(),c=o.getShaderInfoLog(P).trim();let l=!0,h=!0;if(!1===o.getProgramParameter(E,o.LINK_STATUS))if(l=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(o,E,O,P);else{yc(o,O,"vertex"),yc(o,P,"fragment")}else""!==n||""!==r&&""!==c||(h=!1);h&&(t.diagnostics={runnable:l,programLog:n,vertexShader:{log:r,prefix:M},fragmentShader:{log:c,prefix:A}})}o.deleteShader(O),o.deleteShader(P),I=new gc(o,E),N=function(e,t){const n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){const r=e.getActiveAttrib(t,i),o=r.name;let c=1;r.type===e.FLOAT_MAT2&&(c=2),r.type===e.FLOAT_MAT3&&(c=3),r.type===e.FLOAT_MAT4&&(c=4),n[o]={type:r.type,location:e.getAttribLocation(t,o),locationSize:c}}return n}(o,E)}let I,N;o.attachShader(E,O),o.attachShader(E,P),void 0!==n.index0AttributeName?o.bindAttribLocation(E,0,n.index0AttributeName):!0===n.morphTargets&&o.bindAttribLocation(E,0,"position"),o.linkProgram(E),this.getUniforms=function(){return void 0===I&&L(this),I},this.getAttributes=function(){return void 0===N&&L(this),N};let D=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===D&&(D=o.getProgramParameter(E,37297)),D},this.destroy=function(){r.releaseStatesOfProgram(this),o.deleteProgram(E),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=_c++,this.cacheKey=t,this.usedTimes=1,this.program=E,this.vertexShader=O,this.fragmentShader=P,this}let Ic=0;class Nc{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),o=this._getShaderStage(n),c=this._getShaderCacheForMaterial(e);return!1===c.has(r)&&(c.add(r),r.usedTimes++),!1===c.has(o)&&(c.add(o),o.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const e of t)e.usedTimes--,0===e.usedTimes&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(code){const e=this.shaderCache;let t=e.get(code);return void 0===t&&(t=new Dc(code),e.set(code,t)),t}}class Dc{constructor(code){this.id=Ic++,this.code=code,this.usedTimes=0}}function Uc(e,t,n,r,o,c,l){const h=new Ui,f=new Nc,d=[],m=o.isWebGL2,v=o.logarithmicDepthBuffer,_=o.vertexTextures;let y=o.precision;const w={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function T(e){return 0===e?"uv":"uv"+e}return{getParameters:function(c,h,d,E,object){const A=E.fog,C=object.geometry,R=c.isMeshStandardMaterial?E.environment:null,k=(c.isMeshStandardMaterial?n:t).get(c.envMap||R),O=k&&k.mapping===xe?k.image.height:null,P=w[c.type];null!==c.precision&&(y=o.getMaxPrecision(c.precision),c.precision);const L=C.morphAttributes.position||C.morphAttributes.normal||C.morphAttributes.color,I=void 0!==L?L.length:0;let N,D,U,F,B=0;if(void 0!==C.morphAttributes.position&&(B=1),void 0!==C.morphAttributes.normal&&(B=2),void 0!==C.morphAttributes.color&&(B=3),P){const e=Ls[P];N=e.vertexShader,D=e.fragmentShader}else N=c.vertexShader,D=c.fragmentShader,f.update(c),U=f.getVertexShaderID(c),F=f.getFragmentShaderID(c);const z=e.getRenderTarget(),H=!0===object.isInstancedMesh,V=!!c.map,j=!!c.matcap,W=!!k,G=!!c.aoMap,$=!!c.lightMap,X=!!c.bumpMap,Y=!!c.normalMap,Z=!!c.displacementMap,K=!!c.emissiveMap,J=!!c.metalnessMap,Q=!!c.roughnessMap,ee=c.anisotropy>0,te=c.clearcoat>0,ne=c.iridescence>0,re=c.sheen>0,ie=c.transmission>0,ae=ee&&!!c.anisotropyMap,se=te&&!!c.clearcoatMap,oe=te&&!!c.clearcoatNormalMap,ce=te&&!!c.clearcoatRoughnessMap,ue=ne&&!!c.iridescenceMap,he=ne&&!!c.iridescenceThicknessMap,fe=re&&!!c.sheenColorMap,de=re&&!!c.sheenRoughnessMap,pe=!!c.specularMap,me=!!c.specularColorMap,ge=!!c.specularIntensityMap,ve=ie&&!!c.transmissionMap,_e=ie&&!!c.thicknessMap,ye=!!c.gradientMap,be=!!c.alphaMap,we=c.alphaTest>0,Se=!!c.alphaHash,Te=!!c.extensions,Ee=!!C.attributes.uv1,Me=!!C.attributes.uv2,Ae=!!C.attributes.uv3;let Ce=le;return c.toneMapped&&(null!==z&&!0!==z.isXRRenderTarget||(Ce=e.toneMapping)),{isWebG
2L2:m,shaderID:P,shaderType:c.type,shaderName:c.name,vertexShader:N,fragmentShader:D,defines:c.defines,customVertexShaderID:U,customFragmentShaderID:F,isRawShaderMaterial:!0===c.isRawShaderMaterial,glslVersion:c.glslVersion,precision:y,instancing:H,instancingColor:H&&null!==object.instanceColor,supportsVertexTextures:_,outputColorSpace:null===z?e.outputColorSpace:!0===z.isXRRenderTarget?z.texture.colorSpace:on,map:V,matcap:j,envMap:W,envMapMode:W&&k.mapping,envMapCubeUVHeight:O,aoMap:G,lightMap:$,bumpMap:X,normalMap:Y,displacementMap:_&&Z,emissiveMap:K,normalMapObjectSpace:Y&&c.normalMapType===rn,normalMapTangentSpace:Y&&c.normalMapType===nn,metalnessMap:J,roughnessMap:Q,anisotropy:ee,anisotropyMap:ae,clearcoat:te,clearcoatMap:se,clearcoatNormalMap:oe,clearcoatRoughnessMap:ce,iridescence:ne,iridescenceMap:ue,iridescenceThicknessMap:he,sheen:re,sheenColorMap:fe,sheenRoughnessMap:de,specularMap:pe,specularColorMap:me,specularIntensityMap:ge,transmission:ie,transmissionMap:ve,thicknessMap:_e,gradientMap:ye,opaque:!1===c.transparent&&c.blending===M,alphaMap:be,alphaTest:we,alphaHash:Se,combine:c.combine,mapUv:V&&T(c.map.channel),aoMapUv:G&&T(c.aoMap.channel),lightMapUv:$&&T(c.lightMap.channel),bumpMapUv:X&&T(c.bumpMap.channel),normalMapUv:Y&&T(c.normalMap.channel),displacementMapUv:Z&&T(c.displacementMap.channel),emissiveMapUv:K&&T(c.emissiveMap.channel),metalnessMapUv:J&&T(c.metalnessMap.channel),roughnessMapUv:Q&&T(c.roughnessMap.channel),anisotropyMapUv:ae&&T(c.anisotropyMap.channel),clearcoatMapUv:se&&T(c.clearcoatMap.channel),clearcoatNormalMapUv:oe&&T(c.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ce&&T(c.clearcoatRoughnessMap.channel),iridescenceMapUv:ue&&T(c.iridescenceMap.channel),iridescenceThicknessMapUv:he&&T(c.iridescenceThicknessMap.channel),sheenColorMapUv:fe&&T(c.sheenColorMap.channel),sheenRoughnessMapUv:de&&T(c.sheenRoughnessMap.channel),specularMapUv:pe&&T(c.specularMap.channel),specularColorMapUv:me&&T(c.specularColorMap.channel),specularIntensityMapUv:ge&&T(c.specularIntensityMap.channel),transmissionMapUv:ve&&T(c.transmissionMap.channel),thicknessMapUv:_e&&T(c.thicknessMap.channel),alphaMapUv:be&&T(c.alphaMap.channel),vertexTangents:!!C.attributes.tangent&&(Y||ee),vertexColors:c.vertexColors,vertexAlphas:!0===c.vertexColors&&!!C.attributes.color&&4===C.attributes.color.itemSize,vertexUv1s:Ee,vertexUv2s:Me,vertexUv3s:Ae,pointsUvs:!0===object.isPoints&&!!C.attributes.uv&&(V||be),fog:!!A,useFog:!0===c.fog,fogExp2:A&&A.isFogExp2,flatShading:!0===c.flatShading,sizeAttenuation:!0===c.sizeAttenuation,logarithmicDepthBuffer:v,skinning:!0===object.isSkinnedMesh,morphTargets:void 0!==C.morphAttributes.position,morphNormals:void 0!==C.morphAttributes.normal,morphColors:void 0!==C.morphAttributes.color,morphTargetsCount:I,morphTextureStride:B,numDirLights:h.directional.length,numPointLights:h.point.length,numSpotLights:h.spot.length,numSpotLightMaps:h.spotLightMap.length,numRectAreaLights:h.rectArea.length,numHemiLights:h.hemi.length,numDirLightShadows:h.directionalShadowMap.length,numPointLightShadows:h.pointShadowMap.length,numSpotLightShadows:h.spotShadowMap.length,numSpotLightShadowsWithMaps:h.numSpotLightShadowsWithMaps,numLightProbes:h.numLightProbes,numClippingPlanes:l.numPlanes,numClipIntersection:l.numIntersection,dithering:c.dithering,shadowMapEnabled:e.shadowMap.enabled&&d.length>0,shadowMapType:e.shadowMap.type,toneMapping:Ce,useLegacyLights:e._useLegacyLights,decodeVideoTexture:V&&!0===c.map.isVideoTexture&&kr.getTransfer(c.map.colorSpace)===hn,premultipliedAlpha:c.premultipliedAlpha,doubleSided:c.side===S,flipSided:c.side===x,useDepthPacking:c.depthPacking>=0,depthPacking:c.depthPacking||0,index0AttributeName:c.index0AttributeName,extensionDerivatives:Te&&!0===c.extensions.derivatives,extensionFragDepth:Te&&!0===c.extensions.fragDepth,extensionDrawBuffers:Te&&!0===c.extensions.drawBuffers,extensionShaderTextureLOD:Te&&!0===c.extensions.shaderTextureLOD,rendererExtensionFragDepth:m||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:m||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:m||r.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:c.customProgramCacheKey()}},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){h.disableAll(),t.isWebGL2&&h.enable(0);t.supportsVertexTextures&&h.enable(1);t.instancing&&h.enable(2);t.instancingColor&&h.enable(3);t.matcap&&h.enable(4);t.envMap&&h.enable(5);
vendor: 11,350 bytes, line 2
2t.normalMapObjectSpace&&h.enable(6);t.normalMapTangentSpace&&h.enable(7);t.clearcoat&&h.enable(8);t.iridescence&&h.enable(9);t.alphaTest&&h.enable(10);t.vertexColors&&h.enable(11);t.vertexAlphas&&h.enable(12);t.vertexUv1s&&h.enable(13);t.vertexUv2s&&h.enable(14);t.vertexUv3s&&h.enable(15);t.vertexTangents&&h.enable(16);t.anisotropy&&h.enable(17);t.alphaHash&&h.enable(18);e.push(h.mask),h.disableAll(),t.fog&&h.enable(0);t.useFog&&h.enable(1);t.flatShading&&h.enable(2);t.logarithmicDepthBuffer&&h.enable(3);t.skinning&&h.enable(4);t.morphTargets&&h.enable(5);t.morphNormals&&h.enable(6);t.morphColors&&h.enable(7);t.premultipliedAlpha&&h.enable(8);t.shadowMapEnabled&&h.enable(9);t.useLegacyLights&&h.enable(10);t.doubleSided&&h.enable(11);t.flipSided&&h.enable(12);t.useDepthPacking&&h.enable(13);t.dithering&&h.enable(14);t.transmission&&h.enable(15);t.sheen&&h.enable(16);t.opaque&&h.enable(17);t.pointsUvs&&h.enable(18);t.decodeVideoTexture&&h.enable(19);e.push(h.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=w[e.type];let n;if(t){const e=Ls[t];n=ps.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let p=0,e=d.length;p<e;p++){const e=d[p];if(e.cacheKey===n){r=e,++r.usedTimes;break}}return void 0===r&&(r=new Lc(e,n,t,c),d.push(r)),r},releaseProgram:function(e){if(0==--e.usedTimes){const i=d.indexOf(e);d[i]=d[d.length-1],d.pop(),e.destroy()}},releaseShaderCache:function(e){f.remove(e)},programs:d,dispose:function(){f.dispose()}}}function Fc(){let e=new WeakMap;return{get:function(object){let map=e.get(object);return void 0===map&&(map={},e.set(object,map)),map},remove:function(object){e.delete(object)},update:function(object,t,n){e.get(object)[t]=n},dispose:function(){e=new WeakMap}}}function Bc(a,b){return a.groupOrder!==b.groupOrder?a.groupOrder-b.groupOrder:a.renderOrder!==b.renderOrder?a.renderOrder-b.renderOrder:a.material.id!==b.material.id?a.material.id-b.material.id:a.z!==b.z?a.z-b.z:a.id-b.id}function zc(a,b){return a.groupOrder!==b.groupOrder?a.groupOrder-b.groupOrder:a.renderOrder!==b.renderOrder?a.renderOrder-b.renderOrder:a.z!==b.z?b.z-a.z:a.id-b.id}function Hc(){const e=[];let t=0;const n=[],r=[],o=[];function c(object,n,r,o,c,l){let h=e[t];return void 0===h?(h={id:object.id,object:object,geometry:n,material:r,groupOrder:o,renderOrder:object.renderOrder,z:c,group:l},e[t]=h):(h.id=object.id,h.object=object,h.geometry=n,h.material=r,h.groupOrder=o,h.renderOrder=object.renderOrder,h.z=c,h.group=l),t++,h}return{opaque:n,transmissive:r,transparent:o,init:function(){t=0,n.length=0,r.length=0,o.length=0},push:function(object,e,t,l,h,f){const d=c(object,e,t,l,h,f);t.transmission>0?r.push(d):!0===t.transparent?o.push(d):n.push(d)},unshift:function(object,e,t,l,h,f){const d=c(object,e,t,l,h,f);t.transmission>0?r.unshift(d):!0===t.transparent?o.unshift(d):n.unshift(d)},finish:function(){for(let i=t,n=e.length;i<n;i++){const t=e[i];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||Bc),r.length>1&&r.sort(t||zc),o.length>1&&o.sort(t||zc)}}}function Vc(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let o;return void 0===r?(o=new Hc,e.set(t,[o])):n>=r.length?(o=new Hc,r.push(o)):o=r[n],o},dispose:function(){e=new WeakMap}}}function jc(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Yr,color:new pa};break;case"SpotLight":n={position:new Yr,direction:new Yr,color:new pa,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Yr,color:new pa,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Yr,skyColor:new pa,groundColor:new pa};break;case"RectAreaLight":n={color:new pa,position:new Yr,halfWidth:new Yr,halfHeight:new Yr}}return e[t.id]=n,n}}}let Wc=0;function Gc(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function $c(e,t){const n=new jc,r=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new mr};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new mr,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),o={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let i=0;i<9;i++)o.probe.push(new Yr);const c=new Yr,l=new Mi,h=new Mi;return{setup:function(c,l){let h=0,g=0,b=0;for(let i=0;i<9;i++)o.probe[i].set(0,0,0);let f=0,d=0,m=0,v=0,_=0,y=0,w=0,x=0,S=0,T=0,E=0;c.sort(Gc);const M=!0===l?Math.PI:1;for(let i=0,e=c.length;i<e;i++){const e=c[i],t=e.color,l=e.intensity,A=e.distance,C=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)h+=t.r*l*M,g+=t.g*l*M,b+=t.b*l*M;else if(e.isLightProbe){for(let t=0;t<9;t++)o.probe[t].addScaledVector(e.sh.coefficients[t],l);E++}else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*M),e.castShadow){const shadow=e.shadow,t=r.get(e);t.shadowBias=shadow.bias,t.shadowNormalBias=shadow.normalBias,t.shadowRadius=shadow.radius,t.shadowMapSize=shadow.mapSize,o.directionalShadow[f]=t,o.directionalShadowMap[f]=C,o.directionalShadowMatrix[f]=e.shadow.matrix,y++}o.directional[f]=t,f++}else if(e.isSpotLight){const c=n.get(e);c.position.setFromMatrixPosition(e.matrixWorld),c.color.copy(t).multiplyScalar(l*M),c.distance=A,c.coneCos=Math.cos(e.angle),c.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),c.decay=e.decay,o.spot[m]=c;const shadow=e.shadow;if(e.map&&(o.spotLightMap[S]=e.map,S++,shadow.updateMatrices(e),e.castShadow&&T++),o.spotLightMatrix[m]=shadow.matrix,e.castShadow){const t=r.get(e);t.shadowBias=shadow.bias,t.shadowNormalBias=shadow.normalBias,t.shadowRadius=shadow.radius,t.shadowMapSize=shadow.mapSize,o.spotShadow[m]=t,o.spotShadowMap[m]=C,x++}m++}else if(e.isRectAreaLight){const r=n.get(e);r.color.copy(t).multiplyScalar(l),r.halfWidth.set(.5*e.width,0,0),r.halfHeight.set(0,.5*e.height,0),o.rectArea[v]=r,v++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*M),t.distance=e.distance,t.decay=e.decay,e.castShadow){const shadow=e.shadow,t=r.get(e);t.shadowBias=shadow.bias,t.shadowNormalBias=shadow.normalBias,t.shadowRadius=shadow.radius,t.shadowMapSize=shadow.mapSize,t.shadowCameraNear=shadow.camera.near,t.shadowCameraFar=shadow.camera.far,o.pointShadow[d]=t,o.pointShadowMap[d]=C,o.pointShadowMatrix[d]=e.shadow.matrix,w++}o.point[d]=t,d++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(l*M),t.groundColor.copy(e.groundColor).multiplyScalar(l*M),o.hemi[_]=t,_++}}v>0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(o.rectAreaLTC1=Ps.LTC_FLOAT_1,o.rectAreaLTC2=Ps.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")&&(o.rectAreaLTC1=Ps.LTC_HALF_1,o.rectAreaLTC2=Ps.LTC_HALF_2)),o.ambient[0]=h,o.ambient[1]=g,o.ambient[2]=b;const A=o.hash;A.directionalLength===f&&A.pointLength===d&&A.spotLength===m&&A.rectAreaLength===v&&A.hemiLength===_&&A.numDirectionalShadows===y&&A.numPointShadows===w&&A.numSpotShadows===x&&A.numSpotMaps===S&&A.numLightProbes===E||(o.directional.length=f,o.spot.length=m,o.rectArea.length=v,o.point.length=d,o.hemi.length=_,o.directionalShadow.length=y,o.directionalShadowMap.length=y,o.pointShadow.length=w,o.pointShadowMap.length=w,o.spotShadow.length=x,o.spotShadowMap.length=x,o.directionalShadowMatrix.length=y,o.pointShadowMatrix.length=w,o.spotLightMatrix.length=x+S-T,o.spotLightMap.length=S,o.numSpotLightShadowsWithMaps=T,o.numLightProbes=E,A.directionalLength=f,A.pointLength=d,A.spotLength=m,A.rectAreaLength=v,A.hemiLength=_,A.numDirectionalShadows=y,A.numPointShadows=w,A.numSpotShadows=x,A.numSpotMaps=S,A.numLightProbes=E,o.version=Wc++)},setupView:function(e,t){let n=0,r=0,f=0,d=0,m=0;const v=t.matrixWorldInverse;for(let i=0,t=e.length;i<t;i++){const t=e[i];if(t.isDirectionalLight){const e=o.directional[n];e.direction.setFromMatrixPosition(t.matrixWorld),c.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(c),e.direction.transformDirection(v),n++}else if(t.isSpotLight){const e=o.spot[f];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(v),e.direction.setFromMatrixPosition(t.matrixWorld),c.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(c),e.direction.transformDirection(v),f++}else if(t.isRectAreaLight){const e=o.rectArea[d];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(v),h.identity(),l.copy(t.matrixWorld),l.premultiply(v),h.extractRotation(l),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),e.halfWidth.applyMatrix4(h),e.halfHeight.applyMatrix4(h),d++}else if(t.isPointLight){const e=o.point[r];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(v),r++}else if(t.isHemisphereLight){const e=o.hemi[m];e.direction.setFromMatrixPosition(t.matrixWorld),e.direction.transformDirection(v),m++}}},state:o}}function Xc(e,t){const n=new $c(e,t),r=[],o=[];return{init:function(){r.length=0,o.length=0},state:{lightsArray:r,shadowsArray:o,lights:n},setupLights:function(e){n.setup(r,e)},setupLightsView:function(e){n.setupView(r,e)},pushLight:function(e){r.push(e)},pushShadow:function(e){o.push(e)}}}function qc(e,t){let n=new WeakMap;return{get:function(r,o=0){const c=n.get(r);let l;return void 0===c?(l=new Xc(e,t),n.set(r,[l])):o>=c.length?(l=new Xc(e,t),c.push(l)):l=c[o],l},dispose:function(){n=new WeakMap}}}class Yc extends va{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=en,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(source){return super.copy(source),this.depthPacking=source.depthPacking,this.map=source.map,this.alphaMap=source.alphaMap,this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this}}class Zc extends va{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(source){return super.copy(source),this.map=source.map,this.alphaMap=source.alphaMap,this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this}}function Kc(e,t,n){let r=new As;const o=new mr,c=new mr,l=new zr,h=new Yc({depthPacking:tn}),f=new Zc,d={},m=n.maxTextureSize,_={[w]:x,[x]:w,[S]:S}
vendor: 5,415 bytes, line 2
2,T=new ms({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new mr},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),M=T.clone();M.defines.HORIZONTAL_PASS=1;const A=new Wa;A.setAttribute("position",new Ma(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const C=new cs(A,T),R=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=v;let k=this.type;function O(shadow,n){const r=t.update(C);T.defines.VSM_SAMPLES!==shadow.blurSamples&&(T.defines.VSM_SAMPLES=shadow.blurSamples,M.defines.VSM_SAMPLES=shadow.blurSamples,T.needsUpdate=!0,M.needsUpdate=!0),null===shadow.mapPass&&(shadow.mapPass=new Vr(o.x,o.y)),T.uniforms.shadow_pass.value=shadow.map.texture,T.uniforms.resolution.value=shadow.mapSize,T.uniforms.radius.value=shadow.radius,e.setRenderTarget(shadow.mapPass),e.clear(),e.renderBufferDirect(n,null,r,T,C,null),M.uniforms.shadow_pass.value=shadow.mapPass.texture,M.uniforms.resolution.value=shadow.mapSize,M.uniforms.radius.value=shadow.radius,e.setRenderTarget(shadow.map),e.clear(),e.renderBufferDirect(n,null,r,M,C,null)}function P(object,t,n,r){let o=null;const c=!0===n.isPointLight?object.customDistanceMaterial:object.customDepthMaterial;if(void 0!==c)o=c;else if(o=!0===n.isPointLight?f:h,e.localClippingEnabled&&!0===t.clipShadows&&Array.isArray(t.clippingPlanes)&&0!==t.clippingPlanes.length||t.displacementMap&&0!==t.displacementScale||t.alphaMap&&t.alphaTest>0||t.map&&t.alphaTest>0){const e=o.uuid,n=t.uuid;let r=d[e];void 0===r&&(r={},d[e]=r);let c=r[n];void 0===c&&(c=o.clone(),r[n]=c),o=c}if(o.visible=t.visible,o.wireframe=t.wireframe,o.side=r===y?null!==t.shadowSide?t.shadowSide:t.side:null!==t.shadowSide?t.shadowSide:_[t.side],o.alphaMap=t.alphaMap,o.alphaTest=t.alphaTest,o.map=t.map,o.clipShadows=t.clipShadows,o.clippingPlanes=t.clippingPlanes,o.clipIntersection=t.clipIntersection,o.displacementMap=t.displacementMap,o.displacementScale=t.displacementScale,o.displacementBias=t.displacementBias,o.wireframeLinewidth=t.wireframeLinewidth,o.linewidth=t.linewidth,!0===n.isPointLight&&!0===o.isMeshDistanceMaterial){e.properties.get(o).light=n}return o}function L(object,n,o,c,l){if(!1===object.visible)return;if(object.layers.test(n.layers)&&(object.isMesh||object.isLine||object.isPoints)&&(object.castShadow||object.receiveShadow&&l===y)&&(!object.frustumCulled||r.intersectsObject(object))){object.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,object.matrixWorld);const n=t.update(object),r=object.material;if(Array.isArray(r)){const t=n.groups;for(let h=0,f=t.length;h<f;h++){const f=t[h],d=r[f.materialIndex];if(d&&d.visible){const t=P(object,d,c,l);e.renderBufferDirect(o,null,n,t,object,f)}}}else if(r.visible){const t=P(object,r,c,l);e.renderBufferDirect(o,null,n,t,object,null)}}const h=object.children;for(let i=0,e=h.length;i<e;i++)L(h[i],n,o,c,l)}this.render=function(t,n,h){if(!1===R.enabled)return;if(!1===R.autoUpdate&&!1===R.needsUpdate)return;if(0===t.length)return;const f=e.getRenderTarget(),d=e.getActiveCubeFace(),v=e.getActiveMipmapLevel(),_=e.state;_.setBlending(E),_.buffers.color.setClear(1,1,1,1),_.buffers.depth.setTest(!0),_.setScissorTest(!1);const w=k!==y&&this.type===y,x=k===y&&this.type!==y;for(let i=0,f=t.length;i<f;i++){const f=t[i],shadow=f.shadow;if(void 0===shadow)continue;if(!1===shadow.autoUpdate&&!1===shadow.needsUpdate)continue;o.copy(shadow.mapSize);const d=shadow.getFrameExtents();if(o.multiply(d),c.copy(shadow.mapSize),(o.x>m||o.y>m)&&(o.x>m&&(c.x=Math.floor(m/d.x),o.x=c.x*d.x,shadow.mapSize.x=c.x),o.y>m&&(c.y=Math.floor(m/d.y),o.y=c.y*d.y,shadow.mapSize.y=c.y)),null===shadow.map||!0===w||!0===x){const e=this.type!==y?{minFilter:Me,magFilter:Me}:{};null!==shadow.map&&shadow.map.dispose(),shadow.map=new Vr(o.x,o.y,e),shadow.map.texture.name=f.name+".shadowMap",shadow.camera.updateProjectionMatrix()}e.setRenderTarget(shadow.map),e.clear();const v=shadow.getViewportCount();for(let e=0;e<v;e++){const t=shadow.getViewport(e);l.set(c.x*t.x,c.y*t.y,c.x*t.z,c.y*t.w),_.viewport(l),shadow.updateMatrices(f,e),r=shadow.getFrustum(),L(n,h,shadow.camera,f,this.type)}!0!==shadow.isPointLightShadow&&this.type===y&&O(shadow,h),shadow.needsUpdate=!1}k=this.type,R.needsUpdate=!1,e.setRenderTarget(f,d,v)}}
2function Jc(e,t,n){const r=n.isWebGL2;const o=new function(){let t=!1;const n=new zr;let r=null;const o=new zr(0,0,0,0);return{setMask:function(n){r===n||t||(e.colorMask(n,n,n,n),r=n)},setLocked:function(e){t=e},setClear:function(t,g,b,a,r){!0===r&&(t*=a,g*=a,b*=a),n.set(t,g,b,a),!1===o.equals(n)&&(e.clearColor(t,g,b,a),o.copy(n))},reset:function(){t=!1,r=null,o.set(-1,0,0,0)}}},c=new function(){let t=!1,n=null,r=null,o=null;return{setTest:function(t){t?Ne(e.DEPTH_TEST):De(e.DEPTH_TEST)},setMask:function(r){n===r||t||(e.depthMask(r),n=r)},setFunc:function(t){if(r!==t){switch(t){case J:e.depthFunc(e.NEVER);break;case Q:e.depthFunc(e.ALWAYS);break;case ee:e.depthFunc(e.LESS);break;case te:e.depthFunc(e.LEQUAL);break;case ne:e.depthFunc(e.EQUAL);break;case re:e.depthFunc(e.GEQUAL);break;case ie:e.depthFunc(e.GREATER);break;case ae:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}r=t}},setLocked:function(e){t=e},setClear:function(t){o!==t&&(e.clearDepth(t),o=t)},reset:function(){t=!1,n=null,r=null,o=null}}},d=new function(){let t=!1,n=null,r=null,o=null,c=null,l=null,h=null,f=null,d=null;return{setTest:function(n){t||(n?Ne(e.STENCIL_TEST):De(e.STENCIL_TEST))},setMask:function(r){n===r||t||(e.stencilMask(r),n=r)},setFunc:function(t,n,l){r===t&&o===n&&c===l||(e.stencilFunc(t,n,l),r=t,o=n,c=l)},setOp:function(t,n,r){l===t&&h===n&&f===r||(e.stencilOp(t,n,r),l=t,h=n,f=r)},setLocked:function(e){t=e},setClear:function(t){d!==t&&(e.clearStencil(t),d=t)},reset:function(){t=!1,n=null,r=null,o=null,c=null,l=null,h=null,f=null,d=null}}},m=new WeakMap,v=new WeakMap;let _={},y={},w=new WeakMap,T=[],se=null,oe=!1,ce=null,le=null,ue=null,he=null,fe=null,de=null,pe=null,me=new pa(0,0,0),ge=0,ve=!1,_e=null,ye=null,be=null,we=null,xe=null;const Se=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let Te=!1,Ee=0;const Me=e.getParameter(e.VERSION);-1!==Me.indexOf("WebGL")?(Ee=parseFloat(/^WebGL (\d)/.exec(Me)[1]),Te=Ee>=1):-1!==Me.indexOf("OpenGL ES")&&(Ee=parseFloat(/^OpenGL ES (\d)/.exec(Me)[1]),Te=Ee>=2);let Ae=null,Ce={};const Re=e.getParameter(e.SCISSOR_BOX),ke=e.getParameter(e.VIEWPORT),Oe=(new zr).fromArray(Re),Pe=(new zr).fromArray(ke);function Le(t,n,o,c){const data=new Uint8Array(4),l=e.createTexture();e.bindTexture(t,l),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let i=0;i<o;i++)!r||t!==e.TEXTURE_3D&&t!==e.TEXTURE_2D_ARRAY?e.texImage2D(n+i,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,data):e.texImage3D(n,0,e.RGBA,1,1,c,0,e.RGBA,e.UNSIGNED_BYTE,data);return l}const Ie={};function Ne(t){!0!==_[t]&&(e.enable(t),_[t]=!0)}function De(t){!1!==_[t]&&(e.disable(t),_[t]=!1)}Ie[e.TEXTURE_2D]=Le(e.TEXTURE_2D,e.TEXTURE_2D,1),Ie[e.TEXTURE_CUBE_MAP]=Le(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),r&&(Ie[e.TEXTURE_2D_ARRAY]=Le(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),Ie[e.TEXTURE_3D]=Le(e.TEXTURE_3D,e.TEXTURE_3D,1,1)),o.setClear(0,0,0,1),c.setClear(1),d.setClear(0),Ne(e.DEPTH_TEST),c.setFunc(te),ze(!1),He(h),Ne(e.CULL_FACE),Be(E);const Ue={[O]:e.FUNC_ADD,[P]:e.FUNC_SUBTRACT,[L]:e.FUNC_REVERSE_SUBTRACT};if(r)Ue[I]=e.MIN,Ue[N]=e.MAX;else{const e=t.get("EXT_blend_minmax");null!==e&&(Ue[I]=e.MIN_EXT,Ue[N]=e.MAX_EXT)}const Fe={[D]:e.ZERO,[U]:e.ONE,[F]:e.SRC_COLOR,[z]:e.SRC_ALPHA,[$]:e.SRC_ALPHA_SATURATE,[W]:e.DST_COLOR,[V]:e.DST_ALPHA,[B]:e.ONE_MINUS_SRC_COLOR,[H]:e.ONE_MINUS_SRC_ALPHA,[G]:e.ONE_MINUS_DST_COLOR,[j]:e.ONE_MINUS_DST_ALPHA,[X]:e.CONSTANT_COLOR,[Y]:e.ONE_MINUS_CONSTANT_COLOR,[Z]:e.CONSTANT_ALPHA,[K]:e.ONE_MINUS_CONSTANT_ALPHA};function Be(t,n,r,o,c,l,h,f,d,m){if(t!==E){if(!1===oe&&(Ne(e.BLEND),oe=!0),t===k)c=c||n,l=l||r,h=h||o,n===le&&c===fe||(e.blendEquationSeparate(Ue[n],Ue[c]),le=n,fe=c),r===ue&&o===he&&l===de&&h===pe||(e.blendFuncSeparate(Fe[r],Fe[o],Fe[l],Fe[h]),ue=r,he=o,de=l,pe=h),!1!==f.equals(me)&&d===ge||(e.blendColor(f.r,f.g,f.b,d),me.copy(f),ge=d),ce=t,ve=!1;else if(t!==ce||m!==ve){if(le===O&&fe===O||(e.blendEquation(e.FUNC_ADD),le=O,fe=O),m)switch(t){case M:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case A:e.blendFunc(e.ONE,e.ONE);break;case C:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case R:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA)}else switch(t){case M:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case A:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case C:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case R:e.blendFunc(e.ZERO,e.SRC_COLOR)}ue=null,he=null,de=null,pe=null,me.set(0,0,0),ge=0,ce=t,ve=m}}else!0===oe&&(De(e.BLEND),oe=!1)}function ze(t){_e!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),_e=t)}function He(t){t!==l?(Ne(e.CULL_FACE),t!==ye&&(t===h?e.cullFace(e.BACK):t===f?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):De(e.CULL_FACE),ye=t}
2function Ve(t,n,r){t?(Ne(e.POLYGON_OFFSET_FILL),we===n&&xe===r||(e.polygonOffset(n,r),we=n,xe=r)):De(e.POLYGON_OFFSET_FILL)}return{buffers:{color:o,depth:c,stencil:d},enable:Ne,disable:De,bindFramebuffer:function(t,n){return y[t]!==n&&(e.bindFramebuffer(t,n),y[t]=n,r&&(t===e.DRAW_FRAMEBUFFER&&(y[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(y[e.DRAW_FRAMEBUFFER]=n)),!0)},drawBuffers:function(r,o){let c=T,l=!1;if(r)if(c=w.get(o),void 0===c&&(c=[],w.set(o,c)),r.isWebGLMultipleRenderTargets){const t=r.texture;if(c.length!==t.length||c[0]!==e.COLOR_ATTACHMENT0){for(let i=0,n=t.length;i<n;i++)c[i]=e.COLOR_ATTACHMENT0+i;c.length=t.length,l=!0}}else c[0]!==e.COLOR_ATTACHMENT0&&(c[0]=e.COLOR_ATTACHMENT0,l=!0);else c[0]!==e.BACK&&(c[0]=e.BACK,l=!0);l&&(n.isWebGL2?e.drawBuffers(c):t.get("WEBGL_draw_buffers").drawBuffersWEBGL(c))},useProgram:function(t){return se!==t&&(e.useProgram(t),se=t,!0)},setBlending:Be,setMaterial:function(t,n){t.side===S?De(e.CULL_FACE):Ne(e.CULL_FACE);let r=t.side===x;n&&(r=!r),ze(r),t.blending===M&&!1===t.transparent?Be(E):Be(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.blendColor,t.blendAlpha,t.premultipliedAlpha),c.setFunc(t.depthFunc),c.setTest(t.depthTest),c.setMask(t.depthWrite),o.setMask(t.colorWrite);const l=t.stencilWrite;d.setTest(l),l&&(d.setMask(t.stencilWriteMask),d.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),d.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),Ve(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?Ne(e.SAMPLE_ALPHA_TO_COVERAGE):De(e.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:ze,setCullFace:He,setLineWidth:function(t){t!==be&&(Te&&e.lineWidth(t),be=t)},setPolygonOffset:Ve,setScissorTest:function(t){t?Ne(e.SCISSOR_TEST):De(e.SCISSOR_TEST)},activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+Se-1),Ae!==t&&(e.activeTexture(t),Ae=t)},bindTexture:function(t,n,r){void 0===r&&(r=null===Ae?e.TEXTURE0+Se-1:Ae);let o=Ce[r];void 0===o&&(o={type:void 0,texture:void 0},Ce[r]=o),o.type===t&&o.texture===n||(Ae!==r&&(e.activeTexture(r),Ae=r),e.bindTexture(t,n||Ie[t]),o.type=t,o.texture=n)},unbindTexture:function(){const t=Ce[Ae];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(e){}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(e){}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(e){}},updateUBOMapping:function(t,n){let r=v.get(n);void 0===r&&(r=new WeakMap,v.set(n,r));let o=r.get(t);void 0===o&&(o=e.getUniformBlockIndex(n,t.name),r.set(t,o))},uniformBlockBinding:function(t,n){const r=v.get(n).get(t);m.get(n)!==r&&(e.uniformBlockBinding(n,r,t.__bindingPointIndex),m.set(n,r))},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(e){}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(e){}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(e){}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(e){}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(e){}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(e){}},scissor:function(t){!1===Oe.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),Oe.copy(t))},viewport:function(t){!1===Pe.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),Pe.copy(t))},reset:function(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),!0===r&&(e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null)),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),_={},Ae=null,Ce={},y={},w=new WeakMap,T=[],se=null,oe=!1,ce=null,le=null,ue=null,he=null,fe=null,de=null,pe=null,me=new pa(0,0,0),ge=0,ve=!1,_e=null,ye=null,be=null,we=null,xe=null,Oe.set(0,0,e.canvas.width,e.canvas.height),Pe.set(0,0,e.canvas.width,e.canvas.height),o.reset(),c.reset(),d.reset()}}}function Qc(e,t,n,r,o,c,l){const h=o.isWebGL2,f=(o.maxTextures,o.maxCubemapSize),d=o.maxTextureSize,m=o.maxSamples,v=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,_="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),y=new WeakMap;let w;const x=new WeakMap;let S=!1;try{S="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(e){}function T(e,t){return S?new OffscreenCanvas(e,t):xr("canvas")}function E(image,e,t,n){let r=1;if((image.width>n||image.height>n)&&(r=n/Math.max(image.width,image.height)),r<1||!0===e){if("undefined"!=typeof HTMLImageElement&&image instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&image instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&image instanceof ImageBitmap){const n=e?ur:Math.floor,o=n(r*image.width),c=n(r*image.height);void 0===w&&(w=T(o,c));const canvas=t?T(o,c):w;canvas.width=o,canvas.height=c;return canvas.getContext("2d").drawImage(image,0,0,o,c),canvas}return image}return image}function M(image){return cr(image.width)&&cr(image.height)}function A(e,t){return e.generateMipmaps&&t&&e.minFilter!==Me&&e.minFilter!==Oe}function C(t){e.generateMipmap(t)}function R(n,r,o,c,l=!1){if(!1===h)return r;if(null!==n&&void 0!==e[n])return e[n];let f=r;if(r===e.RED&&(o===e.FLOAT&&(f=e.R32F),o===e.HALF_FLOAT&&(f=e.R16F),o===e.UNSIGNED_BYTE&&(f=e.R8)),r===e.RED_INTEGER&&(o===e.UNSIGNED_BYTE&&(f=e.R8UI),o===e.UNSIGNED_SHORT&&(f=e.R16UI),o===e.UNSIGNED_INT&&(f=e.R32UI),o===e.BYTE&&(f=e.R8I),o===e.SHORT&&(f=e.R16I),o===e.INT&&(f=e.R32I)),r===e.RG&&(o===e.FLOAT&&(f=e.RG32F),o===e.HALF_FLOAT&&(f=e.RG16F),o===e.UNSIGNED_BYTE&&(f=e.RG8)),r===e.RGBA){const t=l?un:kr.getTransfer(c);o===e.FLOAT&&(f=e.RGBA32F),o===e.HALF_FLOAT&&(f=e.RGBA16F),o===e.UNSIGNED_BYTE&&(f=t===hn?e.SRGB8_ALPHA8:e.RGBA8),o===e.UNSIGNED_SHORT_4_4_4_4&&(f=e.RGBA4),o===e.UNSIGNED_SHORT_5_5_5_1&&(f=e.RGB5_A1)}return f!==e.R16F&&f!==e.R32F&&f!==e.RG16F&&f!==e.RG32F&&f!==e.RGBA16F&&f!==e.RGBA32F||t.get("EXT_color_buffer_float"),f}function k(e,image,t){return!0===A(e,t)||e.isFramebufferTexture&&e.minFilter!==Me&&e.minFilter!==Oe?Math.log2(Math.max(image.width,image.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?image.mipmaps.length:1}function O(t){return t===Me||t===Ae||t===Re?e.NEAREST:e.LINEAR}function P(e){const t=e.target;t.removeEventListener("dispose",P),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const source=e.source,n=x.get(source);if(n){const r=n[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&I(e),0===Object.keys(n).length&&x.delete(source)}r.remove(e)}(t),t.isVideoTexture&&y.delete(t)}function L(t){const n=t.target;n.removeEventListener("dispose",L),function(t){const n=t.texture,o=r.get(t),c=r.get(n);void 0!==c.__webglTexture&&(e.deleteTexture(c.__webglTexture),l.memory.textures--);t.depthTexture&&t.depthTexture.dispose();
2if(t.isWebGLCubeRenderTarget)for(let i=0;i<6;i++){if(Array.isArray(o.__webglFramebuffer[i]))for(let t=0;t<o.__webglFramebuffer[i].length;t++)e.deleteFramebuffer(o.__webglFramebuffer[i][t]);else e.deleteFramebuffer(o.__webglFramebuffer[i]);o.__webglDepthbuffer&&e.deleteRenderbuffer(o.__webglDepthbuffer[i])}else{if(Array.isArray(o.__webglFramebuffer))for(let t=0;t<o.__webglFramebuffer.length;t++)e.deleteFramebuffer(o.__webglFramebuffer[t]);else e.deleteFramebuffer(o.__webglFramebuffer);if(o.__webglDepthbuffer&&e.deleteRenderbuffer(o.__webglDepthbuffer),o.__webglMultisampledFramebuffer&&e.deleteFramebuffer(o.__webglMultisampledFramebuffer),o.__webglColorRenderbuffer)for(let i=0;i<o.__webglColorRenderbuffer.length;i++)o.__webglColorRenderbuffer[i]&&e.deleteRenderbuffer(o.__webglColorRenderbuffer[i]);o.__webglDepthRenderbuffer&&e.deleteRenderbuffer(o.__webglDepthRenderbuffer)}if(t.isWebGLMultipleRenderTargets)for(let i=0,t=n.length;i<t;i++){const t=r.get(n[i]);t.__webglTexture&&(e.deleteTexture(t.__webglTexture),l.memory.textures--),r.remove(n[i])}r.remove(n),r.remove(t)}(n)}function I(t){const n=r.get(t);e.deleteTexture(n.__webglTexture);const source=t.source;delete x.get(source)[n.__cacheKey],l.memory.textures--}let N=0;function D(t,slot){const o=r.get(t);if(t.isVideoTexture&&function(e){const t=l.render.frame;y.get(e)!==t&&(y.set(e,t),e.update())}(t),!1===t.isRenderTargetTexture&&t.version>0&&o.__version!==t.version){const image=t.image;if(null===image);else if(!1!==image.complete)return void V(o,t,slot)}n.bindTexture(e.TEXTURE_2D,o.__webglTexture,e.TEXTURE0+slot)}const U={[Se]:e.REPEAT,[Te]:e.CLAMP_TO_EDGE,[Ee]:e.MIRRORED_REPEAT},F={[Me]:e.NEAREST,[Ae]:e.NEAREST_MIPMAP_NEAREST,[Re]:e.NEAREST_MIPMAP_LINEAR,[Oe]:e.LINEAR,[Pe]:e.LINEAR_MIPMAP_NEAREST,[Ie]:e.LINEAR_MIPMAP_LINEAR},B={[kn]:e.NEVER,[Un]:e.ALWAYS,[On]:e.LESS,[Ln]:e.LEQUAL,[Pn]:e.EQUAL,[Dn]:e.GEQUAL,[In]:e.GREATER,[Nn]:e.NOTEQUAL};function z(n,c,l){if(l?(e.texParameteri(n,e.TEXTURE_WRAP_S,U[c.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,U[c.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,U[c.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,F[c.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,F[c.minFilter])):(e.texParameteri(n,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(n,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,e.CLAMP_TO_EDGE),c.wrapS!==Te||c.wrapT,e.texParameteri(n,e.TEXTURE_MAG_FILTER,O(c.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,O(c.minFilter)),c.minFilter!==Me&&c.minFilter),c.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,B[c.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){const l=t.get("EXT_texture_filter_anisotropic");if(c.magFilter===Me)return;if(c.minFilter!==Re&&c.minFilter!==Ie)return;if(c.type===Ve&&!1===t.has("OES_texture_float_linear"))return;if(!1===h&&c.type===je&&!1===t.has("OES_texture_half_float_linear"))return;(c.anisotropy>1||r.get(c).__currentAnisotropy)&&(e.texParameterf(n,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(c.anisotropy,o.getMaxAnisotropy())),r.get(c).__currentAnisotropy=c.anisotropy)}}function H(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",P));const source=n.source;let o=x.get(source);void 0===o&&(o={},x.set(source,o));const c=function(e){const t=[];
2return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(c!==t.__cacheKey){void 0===o[c]&&(o[c]={texture:e.createTexture(),usedTimes:0},l.memory.textures++,r=!0),o[c].usedTimes++;const h=o[t.__cacheKey];void 0!==h&&(o[t.__cacheKey].usedTimes--,0===h.usedTimes&&I(n)),t.__cacheKey=c,t.__webglTexture=o[c].texture}return r}function V(t,o,slot){let l=e.TEXTURE_2D;(o.isDataArrayTexture||o.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),o.isData3DTexture&&(l=e.TEXTURE_3D);const f=H(t,o),source=o.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+slot);const m=r.get(source);if(source.version!==m.__version||!0===f){n.activeTexture(e.TEXTURE0+slot);const t=kr.getPrimaries(kr.workingColorSpace),r=o.colorSpace===an?null:kr.getPrimaries(o.colorSpace),v=o.colorSpace===an||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,v);const _=function(e){return!h&&(e.wrapS!==Te||e.wrapT!==Te||e.minFilter!==Me&&e.minFilter!==Oe)}(o)&&!1===M(o.image);let image=E(o.image,_,!1,d);image=Y(o,image);const y=M(image)||h,w=c.convert(o.format,o.colorSpace);let x,S=c.convert(o.type),T=R(o.internalFormat,w,S,o.colorSpace,o.isVideoTexture);z(l,o,y);const O=o.mipmaps,P=h&&!0!==o.isVideoTexture,L=void 0===m.__version||!0===f,I=k(o,image,y);if(o.isDepthTexture)T=e.DEPTH_COMPONENT,h?T=o.type===Ve?e.DEPTH_COMPONENT32F:o.type===He?e.DEPTH_COMPONENT24:o.type===$e?e.DEPTH24_STENCIL8:e.DEPTH_COMPONENT16:o.type,o.format===Ke&&T===e.DEPTH_COMPONENT&&o.type!==Be&&o.type!==He&&(o.type=He,S=c.convert(o.type)),o.format===Je&&T===e.DEPTH_COMPONENT&&(T=e.DEPTH_STENCIL,o.type!==$e&&(o.type=$e,S=c.convert(o.type))),L&&(P?n.texStorage2D(e.TEXTURE_2D,1,T,image.width,image.height):n.texImage2D(e.TEXTURE_2D,0,T,image.width,image.height,0,w,S,null));else if(o.isDataTexture)if(O.length>0&&y){P&&L&&n.texStorage2D(e.TEXTURE_2D,I,T,O[0].width,O[0].height);for(let i=0,t=O.length;i<t;i++)x=O[i],P?n.texSubImage2D(e.TEXTURE_2D,i,0,0,x.width,x.height,w,S,x.data):n.texImage2D(e.TEXTURE_2D,i,T,x.width,x.height,0,w,S,x.data);o.generateMipmaps=!1}else P?(L&&n.texStorage2D(e.TEXTURE_2D,I,T,image.width,image.height),n.texSubImage2D(e.TEXTURE_2D,0,0,0,image.width,image.height,w,S,image.data)):n.texImage2D(e.TEXTURE_2D,0,T,image.width,image.height,0,w,S,image.data);else if(o.isCompressedTexture)if(o.isCompressedArrayTexture){P&&L&&n.texStorage3D(e.TEXTURE_2D_ARRAY,I,T,O[0].width,O[0].height,image.depth);for(let i=0,t=O.length;i<t;i++)x=O[i],o.format!==qe?null!==w&&(P?n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,x.width,x.height,image.depth,w,x.data,0,0):n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,T,x.width,x.height,image.depth,0,x.data,0,0)):P?n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,x.width,x.height,image.depth,w,S,x.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,T,x.width,x.height,image.depth,0,w,S,x.data)}else{P&&L&&n.texStorage2D(e.TEXTURE_2D,I,T,O[0].width,O[0].height);for(let i=0,t=O.length;i<t;i++)x=O[i],o.format!==qe?null!==w&&(P?n.compressedTexSubImage2D(e.TEXTURE_2D,i,0,0,x.width,x.height,w,x.data):n.compressedTexImage2D(e.TEXTURE_2D,i,T,x.width,x.height,0,x.data)):P?n.texSubImage2D(e.TEXTURE_2D,i,0,0,x.width,x.height,w,S,x.data):n.texImage2D(e.TEXTURE_2D,i,T,x.width,x.height,0,w,S,x.data)}else if(o.isDataArrayTexture)P?(L&&n.texStorage3D(e.TEXTURE_2D_ARRAY,I,T,image.width,image.height,image.depth),n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,image.width,image.height,image.depth,w,S,image.data)):n.texImage3D(e.TEXTURE_2D_ARRAY,0,T,image.width,image.height,image.depth,0,w,S,image.data);else if(o.isData3DTexture)P?(L&&n.texStorage3D(e.TEXTURE_3D,I,T,image.width,image.height,image.depth),n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,image.width,image.height,image.depth,w,S,image.data)):n.texImage3D(e.TEXTURE_3D,0,T,image.width,image.height,image.depth,0,w,S,image.data);else if(o.isFramebufferTexture){if(L)if(P)n.texStorage2D(e.TEXTURE_2D,I,T,image.width,image.height);else{let t=image.width,r=image.height;for(let i=0;i<I;i++)n.texImage2D(e.TEXTURE_2D,i,T,t,r,0,w,S,null),t>>=1,r>>=1}}else if(O.length>0&&y){P&&L&&n.texStorage2D(e.TEXTURE_2D,I,T,O[0].width,O[0].height);for(let i=0,t=O.length;i<t;i++)x=O[i],P?n.texSubImage2D(e.TEXTURE_2D,i,0,0,w,S,x):n.texImage2D(e.TEXTURE_2D,i,T,w,S,x);o.generateMipmaps=!1}else P?(L&&n.texStorage2D(e.TEXTURE_2D,I,T,image.width,image.height),n.texSubImage2D(e.TEXTURE_2D,0,0,0,w,S,image)):n.texImage2D(e.TEXTURE_2D,0,T,w,S,image);A(o,y)&&C(l),m.__version=source.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function j(t,o,l,h,f,d){const m=c.convert(l.format,l.colorSpace),_=c.convert(l.type),y=R(l.internalFormat,m,_,l.colorSpace);if(!r.get(o).__hasExternalTextures){const t=Math.max(1,o.width>>d),r=Math.max(1,o.height>>d);f===e.TEXTURE_3D||f===e.TEXTURE_2D_ARRAY?n.texImage3D(f,d,y,t,r,o.depth,0,m,_,null):n.texImage2D(f,d,y,t,r,0,m,_,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),X(o)?v.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,h,f,r.get(l).__webglTexture,0,$(o)):(f===e.TEXTURE_2D||f>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&f<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,h,f,r.get(l).__webglTexture,d),n.bindFramebuffer(e.FRAMEBUFFER,null)}function W(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer&&!n.stencilBuffer){let o=!0===h?e.DEPTH_COMPONENT24:e.DEPTH_COMPONENT16;if(r||X(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===Ve?o=e.DEPTH_COMPONENT32F:t.type===
2He&&(o=e.DEPTH_COMPONENT24));const r=$(n);X(n)?v.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,r,o,n.width,n.height):e.renderbufferStorageMultisample(e.RENDERBUFFER,r,o,n.width,n.height)}else e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t)}else if(n.depthBuffer&&n.stencilBuffer){const o=$(n);r&&!1===X(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,o,e.DEPTH24_STENCIL8,n.width,n.height):X(n)?v.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,o,e.DEPTH24_STENCIL8,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i<t.length;i++){const o=t[i],l=c.convert(o.format,o.colorSpace),h=c.convert(o.type),f=R(o.internalFormat,l,h,o.colorSpace),d=$(n);r&&!1===X(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,f,n.width,n.height):X(n)?v.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,f,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,f,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function G(t){const o=r.get(t),c=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!o.__autoAllocateDepthBuffer){if(c)throw new Error("target.depthTexture not supported in Cube render targets");
2!function(t,o){if(o&&o.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!o.depthTexture||!o.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(o.depthTexture).__webglTexture&&o.depthTexture.image.width===o.width&&o.depthTexture.image.height===o.height||(o.depthTexture.image.width=o.width,o.depthTexture.image.height=o.height,o.depthTexture.needsUpdate=!0),D(o.depthTexture,0);const c=r.get(o.depthTexture).__webglTexture,l=$(o);if(o.depthTexture.format===Ke)X(o)?v.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,c,0,l):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,c,0);else{if(o.depthTexture.format!==Je)throw new Error("Unknown depthTexture format");X(o)?v.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,c,0,l):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,c,0)}}(o.__webglFramebuffer,t)}else if(c){o.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(e.FRAMEBUFFER,o.__webglFramebuffer[i]),o.__webglDepthbuffer[i]=e.createRenderbuffer(),W(o.__webglDepthbuffer[i],t,!1)}else n.bindFramebuffer(e.FRAMEBUFFER,o.__webglFramebuffer),o.__webglDepthbuffer=e.createRenderbuffer(),W(o.__webglDepthbuffer,t,!1);n.bindFramebuffer(e.FRAMEBUFFER,null)}function $(e){return Math.min(m,e.samples)}function X(e){const n=r.get(e);return h&&e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function Y(e,image){const n=e.colorSpace,r=e.format;e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===Yn||n!==on&&n!==an&&kr.getTransfer(n)===hn&&!1===h&&(!0===t.has("EXT_sRGB")&&r===qe?(e.format=Yn,e.minFilter=Oe,e.generateMipmaps=!1):image=Ir.sRGBToLinear(image)),image}this.allocateTextureUnit=function(){const e=N;return N+=1,e},this.resetTextureUnits=function(){N=0},this.setTexture2D=D,this.setTexture2DArray=function(t,slot){const o=r.get(t);t.version>0&&o.__version!==t.version?V(o,t,slot):n.bindTexture(e.TEXTURE_2D_ARRAY,o.__webglTexture,e.TEXTURE0+slot)},this.setTexture3D=function(t,slot){const o=r.get(t);t.version>0&&o.__version!==t.version?V(o,t,slot):n.bindTexture(e.TEXTURE_3D,o.__webglTexture,e.TEXTURE0+slot)},this.setTextureCube=function(t,slot){const o=r.get(t);t.version>0&&o.__version!==t.version?function(t,o,slot){if(6!==o.image.length)return;const l=H(t,o),source=o.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+slot);const d=r.get(source);if(source.version!==d.__version||!0===l){n.activeTexture(e.TEXTURE0+slot);
2const t=kr.getPrimaries(kr.workingColorSpace),r=o.colorSpace===an?null:kr.getPrimaries(o.colorSpace),m=o.colorSpace===an||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,m);const v=o.isCompressedTexture||o.image[0].isCompressedTexture,_=o.image[0]&&o.image[0].isDataTexture,y=[];for(let i=0;i<6;i++)y[i]=v||_?_?o.image[i].image:o.image[i]:E(o.image[i],!1,!0,f),y[i]=Y(o,y[i]);const image=y[0],w=M(image)||h,x=c.convert(o.format,o.colorSpace),S=c.convert(o.type),T=R(o.internalFormat,x,S,o.colorSpace),O=h&&!0!==o.isVideoTexture,P=void 0===d.__version||!0===l;let L,I=k(o,image,w);if(z(e.TEXTURE_CUBE_MAP,o,w),v){O&&P&&n.texStorage2D(e.TEXTURE_CUBE_MAP,I,T,image.width,image.height);for(let i=0;i<6;i++){L=y[i].mipmaps;for(let t=0;t<L.length;t++){const r=L[t];o.format!==qe?null!==x&&(O?n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t,0,0,r.width,r.height,x,r.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t,T,r.width,r.height,0,r.data)):O?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t,0,0,r.width,r.height,x,S,r.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t,T,r.width,r.height,0,x,S,r.data)}}}else{L=o.mipmaps,O&&P&&(L.length>0&&I++,n.texStorage2D(e.TEXTURE_CUBE_MAP,I,T,y[0].width,y[0].height));for(let i=0;i<6;i++)if(_){O?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,0,0,y[i].width,y[i].height,x,S,y[i].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,T,y[i].width,y[i].height,0,x,S,y[i].data);for(let t=0;t<L.length;t++){const r=L[t].image[i].image;O?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t+1,0,0,r.width,r.height,x,S,r.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t+1,T,r.width,r.height,0,x,S,r.data)}}else{O?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,0,0,x,S,y[i]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0,T,x,S,y[i]);for(let t=0;t<L.length;t++){const r=L[t];O?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t+1,0,0,x,S,r.image[i]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+i,t+1,T,x,S,r.image[i])}}}A(o,w)&&C(e.TEXTURE_CUBE_MAP),d.__version=source.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}(o,t,slot):n.bindTexture(e.TEXTURE_CUBE_MAP,o.__webglTexture,e.TEXTURE0+slot)},this.rebindTextures=function(t,n,o){const c=r.get(t);void 0!==n&&j(c.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==o&&G(t)},this.setupRenderTarget=function(t){const f=t.texture,d=r.get(t),m=r.get(f);t.addEventListener("dispose",L),!0!==t.isWebGLMultipleRenderTargets&&(void 0===m.__webglTexture&&(m.__webglTexture=e.createTexture()),m.__version=f.version,l.memory.textures++);const v=!0===t.isWebGLCubeRenderTarget,_=!0===t.isWebGLMultipleRenderTargets,y=M(t)||h;if(v){d.__webglFramebuffer=[];for(let i=0;i<6;i++)if(h&&f.mipmaps&&f.mipmaps.length>0){d.__webglFramebuffer[i]=[];for(let t=0;t<f.mipmaps.length;t++)d.__webglFramebuffer[i][t]=e.createFramebuffer()}else d.__webglFramebuffer[i]=e.createFramebuffer()}else{if(h&&f.mipmaps&&f.mipmaps.length>0){d.__webglFramebuffer=[];for(let t=0;t<f.mipmaps.length;t++)d.__webglFramebuffer[t]=e.createFramebuffer()}else d.__webglFramebuffer=e.createFramebuffer();if(_&&o.drawBuffers){const n=t.texture;for(let i=0,t=n.length;i<t;i++){const t=r.get(n[i]);void 0===t.__webglTexture&&(t.__webglTexture=e.createTexture(),l.memory.textures++)}}if(h&&t.samples>0&&!1===X(t)){const r=_?f:[f];d.__webglMultisampledFramebuffer=e.createFramebuffer(),d.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer);for(let i=0;i<r.length;i++){const n=r[i];d.__webglColorRenderbuffer[i]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,d.__webglColorRenderbuffer[i]);const o=c.convert(n.format,n.colorSpace),l=c.convert(n.type),h=R(n.internalFormat,o,l,n.colorSpace,!0===t.isXRRenderTarget),f=$(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,f,h,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+i,e.RENDERBUFFER,d.__webglColorRen
2derbuffer[i])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(d.__webglDepthRenderbuffer=e.createRenderbuffer(),W(d.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(v){n.bindTexture(e.TEXTURE_CUBE_MAP,m.__webglTexture),z(e.TEXTURE_CUBE_MAP,f,y);for(let i=0;i<6;i++)if(h&&f.mipmaps&&f.mipmaps.length>0)for(let n=0;n<f.mipmaps.length;n++)j(d.__webglFramebuffer[i][n],t,f,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+i,n);else j(d.__webglFramebuffer[i],t,f,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+i,0);A(f,y)&&C(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(_){const o=t.texture;for(let i=0,c=o.length;i<c;i++){const c=o[i],l=r.get(c);n.bindTexture(e.TEXTURE_2D,l.__webglTexture),z(e.TEXTURE_2D,c,y),j(d.__webglFramebuffer,t,c,e.COLOR_ATTACHMENT0+i,e.TEXTURE_2D,0),A(c,y)&&C(e.TEXTURE_2D)}n.unbindTexture()}else{let r=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&h&&(r=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(r,m.__webglTexture),z(r,f,y),h&&f.mipmaps&&f.mipmaps.length>0)for(let n=0;n<f.mipmaps.length;n++)j(d.__webglFramebuffer[n],t,f,e.COLOR_ATTACHMENT0,r,n);else j(d.__webglFramebuffer,t,f,e.COLOR_ATTACHMENT0,r,0);A(f,y)&&C(r),n.unbindTexture()}t.depthBuffer&&G(t)},this.updateRenderTargetMipmap=function(t){const o=M(t)||h,c=!0===t.isWebGLMultipleRenderTargets?t.texture:[t.texture];for(let i=0,l=c.length;i<l;i++){const l=c[i];if(A(l,o)){const o=t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D,c=r.get(l).__webglTexture;n.bindTexture(o,c),C(o),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(h&&t.samples>0&&!1===X(t)){const o=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],c=t.width,l=t.height;let mask=e.COLOR_BUFFER_BIT;const h=[],f=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,d=r.get(t),m=!0===t.isWebGLMultipleRenderTargets;if(m)for(let i=0;i<o.length;i++)n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+i,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,d.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+i,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,d.__webglMultisampledFramebuffer),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,d.__webglFramebuffer);for(let i=0;i<o.length;i++){h.push(e.COLOR_ATTACHMENT0+i),t.depthBuffer&&h.push(f);const n=void 0!==d.__ignoreDepthValues&&d.__ignoreDepthValues;if(!1===n&&(t.depthBuffer&&(mask|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&(mask|=e.STENCIL_BUFFER_BIT)),m&&e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,d.__webglColorRenderbuffer[i]),!0===n&&(e.invalidateFramebuffer(e.READ_FRAMEBUFFER,[f]),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[f])),m){const t=r.get(o[i]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,c,l,0,0,c,l,mask,e.NEAREST),_&&e.invalidateFramebuffer(e.READ_FRAMEBUFFER,h)}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),m)for(let i=0;i<o.length;i++){n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+i,e.RENDERBUFFER,d.__webglColorRenderbuffer[i]);const t=r.get(o[i]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,d.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+i,e.TEXTURE_2D,t,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,d.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=G,this.setupFrameBufferTexture=j,this.useMultisampledRTT=X}function el(e,t,n){const r=n.isWebGL2;return{convert:function(p,n=an){let o;const c=kr.getTransfer(n);if(p===De)return e.UNSIGNED_BYTE;if(p===We)return e.UNSIGNED_SHORT_4_4_4_4;if(p===Ge)return e.UNSIGNED_SHORT_5_5_5_1;if(p===Ue)return e.BYTE;if(p===Fe)return e.SHORT;if(p===Be)return e.UNSIGNED_SHORT;if(p===ze)return e.INT;if(p===He)return e.UNSIGNED_INT;if(p===Ve)return e.FLOAT;if(p===je)return r?e.HALF_FLOAT:(o=t.get("OES_texture_half_float"),null!==o?o.HALF_FLOAT_OES:null);if(p===Xe)return e.ALPHA;if(p===qe)return e.RGBA;if(p===Ye)return e.LUMINANCE;if(p===Ze)return e.LUMINANCE_ALPHA;if(p===Ke)return e.DEPTH_COMPONENT;if(p===Je)return e.DEPTH_STENCIL;if(p===Yn)return o=t.get("EXT_sRGB"),null!==o?o.SRGB_ALPHA_EXT:null;if(p===Qe)return e.RED;if(p===et)return e.RED_INTEGER;if(p===tt)return e.RG;if(p===nt)return e.RG_INTEGER;if(p===it)return e.RGBA_INTEGER;if(p===at||p===st||p===ot||p===ct)if(c===hn){if(o=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===o)return null;if(p===at)return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(p===st)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(p===ot)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(p===ct)return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(o=t.get("WEBGL_compressed_texture_s3tc"),null===o)return null;if(p===at)return o.COMPRESSED_RGB_S3TC_DXT1_EXT;if(p===st)return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(p===ot)return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(p===ct)return o.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(p===lt||p===ut||p===ht||p===ft){if(o=t.get("WEBGL_compressed_texture_pvrtc"),null===o)return null;if(p===lt)return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(p===ut)return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(p===ht)return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(p===ft)return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(p===pt)return o=t.get("WEBGL_compressed_texture_etc1"),null!==o?o.COMPRESSED_RGB_ETC1_WEBGL:null;if(p===mt||p===gt){if(o=t.get("WEBGL_compressed_texture_etc"),null===o)return null;if(p===mt)return c===hn?o.COMPRESSED_SRGB8_ETC2:o.COMPRESSED_RGB8_ETC2;if(p===gt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:o.COMPRESSED_RGBA8_ETC2_EAC}if(p===vt||p===_t||p===yt||p===bt||p===wt||p===xt||p===St||p===Tt||p===Et||p===Mt||p===At||p===Ct||p===Rt||p===kt){if(o=t.get("WEBGL_compressed_texture_astc"),null===o)return null;if(p===vt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:o.COMPRESSED_RGBA_ASTC_4x4_KHR;if(p===_t)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:o.COMPRESSED_RGBA_ASTC_5x4_KHR;if(p===yt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:o.COMPRESSED_RGBA_ASTC_5x5_KHR;if(p===bt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:o.COMPRESSED_RGBA_ASTC_6x5_KHR;if(p===wt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:o.COMPRESSED_RGBA_ASTC_6x6_KHR;if(p===xt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:o.COMPRESSED_RGBA_ASTC_8x5_KHR;if(p===St)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:o.COMPRESSED_RGBA_ASTC_8x6_KHR;if(p===Tt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:o.COMPRESSED_RGBA_ASTC_8x8_KHR;if(p===Et)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:o.COMPRESSED_RGBA_ASTC_10x5_KHR;if(p===Mt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:o.COMPRESSED_RGBA_ASTC_10x6_KHR;if(p===At)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:o.COMPRESSED_RGBA_ASTC_10x8_KHR;if(p===Ct)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:o.COMPRESSED_RGBA_ASTC_10x10_KHR;if(p===Rt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:o.COMPRESSED_RGBA_ASTC_12x10_KHR;if(p===kt)return c===hn?o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:o.COMPRESSED_RGBA_ASTC_12x12_KHR}if(p===Ot||p===Pt||p===Lt){if(o=t.get("EXT_texture_compression_bptc"),null===o)return null;if(p===Ot)return c===hn?o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:o.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(p===Pt)return o.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(p===Lt)return o.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(p===It||p===Nt||p===Dt||p===Ut){if(o=t.get("EXT_texture_compression_rgtc"),null===o)return null;
vendor: 11,440 bytes, line 2
2if(p===Ot)return o.COMPRESSED_RED_RGTC1_EXT;if(p===Nt)return o.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(p===Dt)return o.COMPRESSED_RED_GREEN_RGTC2_EXT;if(p===Ut)return o.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return p===$e?r?e.UNSIGNED_INT_24_8:(o=t.get("WEBGL_depth_texture"),null!==o?o.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[p]?e[p]:null}}}class tl extends vs{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class nl extends Ki{constructor(){super(),this.isGroup=!0,this.type="Group"}}const rl={type:"move"};class il{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new nl,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new nl,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Yr,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Yr),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new nl,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Yr,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Yr),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let r=null,o=null,c=null;const l=this._targetRay,h=this._grip,f=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(f&&e.hand){c=!0;for(const r of e.hand.values()){const e=t.getJointPose(r,n),o=this._getHandJoint(f,r);null!==e&&(o.matrix.fromArray(e.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,o.jointRadius=e.radius),o.visible=null!==e}const r=f.joints["index-finger-tip"],o=f.joints["thumb-tip"],l=r.position.distanceTo(o.position),h=.02,d=.005;f.inputState.pinching&&l>h+d?(f.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!f.inputState.pinching&&l<=h-d&&(f.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==h&&e.gripSpace&&(o=t.getPose(e.gripSpace,n),null!==o&&(h.matrix.fromArray(o.transform.matrix),h.matrix.decompose(h.position,h.rotation,h.scale),h.matrixWorldNeedsUpdate=!0,o.linearVelocity?(h.hasLinearVelocity=!0,h.linearVelocity.copy(o.linearVelocity)):h.hasLinearVelocity=!1,o.angularVelocity?(h.hasAngularVelocity=!0,h.angularVelocity.copy(o.angularVelocity)):h.hasAngularVelocity=!1));null!==l&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==o&&(r=o),null!==r&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1,this.dispatchEvent(rl)))}return null!==l&&(l.visible=null!==r),null!==h&&(h.visible=null!==o),null!==f&&(f.visible=null!==c),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new nl;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class al extends Br{constructor(e,t,n,r,o,c,l,h,f,d){if((d=void 0!==d?d:Ke)!==Ke&&d!==Je)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&d===Ke&&(n=He),void 0===n&&d===Je&&(n=$e),super(null,r,o,c,l,h,d,n,f),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==l?l:Me,this.minFilter=void 0!==h?h:Me,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(source){return super.copy(source),this.compareFunction=source.compareFunction,this}toJSON(meta){const data=super.toJSON(meta);return null!==this.compareFunction&&(data.compareFunction=this.compareFunction),data}}class sl extends Jn{constructor(e,t){super();const n=this;let r=null,o=1,c=null,l="local-floor",h=1,f=null,d=null,m=null,v=null,_=null,y=null;const w=t.getContextAttributes();let x=null,S=null;const T=[],E=[],M=new vs;M.layers.enable(1),M.viewport=new zr;const A=new vs;A.layers.enable(2),A.viewport=new zr;const C=[M,A],R=new tl;R.layers.enable(1),R.layers.enable(2);let k=null,O=null;function P(e){const t=E.indexOf(e.inputSource);if(-1===t)return;const n=T[t];void 0!==n&&(n.update(e.inputSource,e.frame,f||c),n.dispatchEvent({type:e.type,data:e.inputSource}))}function L(){r.removeEventListener("select",P),r.removeEventListener("selectstart",P),r.removeEventListener("selectend",P),r.removeEventListener("squeeze",P),r.removeEventListener("squeezestart",P),r.removeEventListener("squeezeend",P),r.removeEventListener("end",L),r.removeEventListener("inputsourceschange",I);for(let i=0;i<T.length;i++){const e=E[i];null!==e&&(E[i]=null,T[i].disconnect(e))}k=null,O=null,e.setRenderTarget(x),_=null,v=null,m=null,r=null,S=null,B.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function I(e){for(let i=0;i<e.removed.length;i++){const t=e.removed[i],n=E.indexOf(t);n>=0&&(E[n]=null,T[n].disconnect(t))}for(let i=0;i<e.added.length;i++){const t=e.added[i];let n=E.indexOf(t);if(-1===n){for(let i=0;i<T.length;i++){if(i>=E.length){E.push(t),n=i;break}if(null===E[i]){E[i]=t,n=i;break}}if(-1===n)break}const r=T[n];r&&r.connect(t)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=T[e];return void 0===t&&(t=new il,T[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=T[e];return void 0===t&&(t=new il,T[e]=t),t.getGripSpace()},this.getHand=function(e){let t=T[e];return void 0===t&&(t=new il,T[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){o=e,n.isPresenting},this.setReferenceSpaceType=function(e){l=e,n.isPresenting},this.getReferenceSpace=function(){return f||c},this.setReferenceSpace=function(e){f=e},this.getBaseLayer=function(){return null!==v?v:_},this.getBinding=function(){return m},this.getFrame=function(){return y},this.getSession=function(){return r},this.setSession=async function(d){if(r=d,null!==r){if(x=e.getRenderTarget(),r.addEventListener("select",P),r.addEventListener("selectstart",P),r.addEventListener("selectend",P),r.addEventListener("squeeze",P),r.addEventListener("squeezestart",P),r.addEventListener("squeezeend",P),r.addEventListener("end",L),r.addEventListener("inputsourceschange",I),!0!==w.xrCompatible&&await t.makeXRCompatible(),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||w.antialias,alpha:!0,depth:w.depth,stencil:w.stencil,framebufferScaleFactor:o};_=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:_}),S=new Vr(_.framebufferWidth,_.framebufferHeight,{format:qe,type:De,colorSpace:e.outputColorSpace,stencilBuffer:w.stencil})}else{let n=null,c=null,l=null;w.depth&&(l=w.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=w.stencil?Je:Ke,c=w.stencil?$e:He);const h={colorFormat:t.RGBA8,depthFormat:l,scaleFactor:o};m=new XRWebGLBinding(r,t),v=m.createProjectionLayer(h),r.updateRenderState({layers:[v]}),S=new Vr(v.textureWidth,v.textureHeight,{format:qe,type:De,depthTexture:new al(v.textureWidth,v.textureHeight,c,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:w.stencil,colorSpace:e.outputColorSpace,samples:w.antialias?4:0});e.properties.get(S).__ignoreDepthValues=v.ignoreDepthValues}S.isXRRenderTarget=!0,this.setFoveation(h),f=null,c=await r.requestReferenceSpace(l),B.setContext(r),B.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==r)return r.environmentBlendMode};const N=new Yr,D=new Yr;function U(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;R.near=A.near=M.near=e.near,R.far=A.far=M.far=e.far,k===R.near&&O===R.far||(r.updateRenderState({depthNear:R.near,depthFar:R.far}),k=R.near,O=R.far);const t=e.parent,n=R.cameras;U(R,t);for(let i=0;i<n.length;i++)U(n[i],t);2===n.length?function(e,t,n){N.setFromMatrixPosition(t.matrixWorld),D.setFromMatrixPosition(n.matrixWorld);const r=N.distanceTo(D),o=t.projectionMatrix.elements,c=n.projectionMatrix.elements,l=o[14]/(o[10]-1),h=o[14]/(o[10]+1),f=(o[9]+1)/o[5],d=(o[9]-1)/o[5],m=(o[8]-1)/o[0],v=(c[8]+1)/c[0],_=l*m,y=l*v,w=r/(-m+v),x=w*-m;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(x),e.translateZ(w),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const S=l+w,T=h+w,E=_-x,M=y+(r-x),A=f*h/T*S,C=d*h/T*S;e.projectionMatrix.makePerspective(E,M,A,C,S,T),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}(R,M,A):R.projectionMatrix.copy(M.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld));e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*rr*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,R,t)},this.getCamera=function(){return R},this.getFoveation=function(){if(null!==v||null!==_)return h},this.setFoveation=function(e){h=e,null!==v&&(v.fixedFoveation=e),null!==_&&void 0!==_.fixedFoveation&&(_.fixedFoveation=e)};let F=null;const B=new Cs;B.setAnimationLoop((function(time,t){if(d=t.getViewerPose(f||c),y=t,null!==d){const t=d.views;null!==_&&(e.setRenderTargetFramebuffer(S,_.framebuffer),e.setRenderTarget(S));let n=!1;t.length!==R.cameras.length&&(R.cameras.length=0,n=!0);for(let i=0;i<t.length;i++){const view=t[i];let r=null;if(null!==_)r=_.getViewport(view);else{const t=m.getViewSubImage(v,view);r=t.viewport,0===i&&(e.setRenderTargetTextures(S,t.colorTexture,v.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(S))}let o=C[i];void 0===o&&(o=new vs,o.layers.enable(i),o.viewport=new zr,C[i]=o),o.matrix.fromArray(view.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.projectionMatrix.fromArray(view.projectionMatrix),o.projectionMatrixInverse.copy(o.projectionMatrix).invert(),o.viewport.set(r.x,r.y,r.width,r.height),0===i&&(R.matrix.copy(o.matrix),R.matrix.decompose(R.position,R.quaternion,R.scale)),!0===n&&R.cameras.push(o)}}for(let i=0;i<T.length;i++){const e=E[i],n=T[i];null!==e&&void 0!==n&&n.update(e,t,f||c)}F&&F(time,t),t.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:t}),y=null})),this.setAnimationLoop=function(e){F=e},this.dispose=function(){}}}function cl(e,t){function n(map,e){!0===map.matrixAutoUpdate&&map.updateMatrix(),e.value.copy(map.matrix)}function r(r,o){r.opacity.value=o.opacity,o.color&&r.diffuse.value.copy(o.c
2olor),o.emissive&&r.emissive.value.copy(o.emissive).multiplyScalar(o.emissiveIntensity),o.map&&(r.map.value=o.map,n(o.map,r.mapTransform)),o.alphaMap&&(r.alphaMap.value=o.alphaMap,n(o.alphaMap,r.alphaMapTransform)),o.bumpMap&&(r.bumpMap.value=o.bumpMap,n(o.bumpMap,r.bumpMapTransform),r.bumpScale.value=o.bumpScale,o.side===x&&(r.bumpScale.value*=-1)),o.normalMap&&(r.normalMap.value=o.normalMap,n(o.normalMap,r.normalMapTransform),r.normalScale.value.copy(o.normalScale),o.side===x&&r.normalScale.value.negate()),o.displacementMap&&(r.displacementMap.value=o.displacementMap,n(o.displacementMap,r.displacementMapTransform),r.displacementScale.value=o.displacementScale,r.displacementBias.value=o.displacementBias),o.emissiveMap&&(r.emissiveMap.value=o.emissiveMap,n(o.emissiveMap,r.emissiveMapTransform)),o.specularMap&&(r.specularMap.value=o.specularMap,n(o.specularMap,r.specularMapTransform)),o.alphaTest>0&&(r.alphaTest.value=o.alphaTest);const c=t.get(o).envMap;if(c&&(r.envMap.value=c,r.flipEnvMap.value=c.isCubeTexture&&!1===c.isRenderTargetTexture?-1:1,r.reflectivity.value=o.reflectivity,r.ior.value=o.ior,r.refractionRatio.value=o.refractionRatio),o.lightMap){r.lightMap.value=o.lightMap;const t=!0===e._useLegacyLights?Math.PI:1;r.lightMapIntensity.value=o.lightMapIntensity*t,n(o.lightMap,r.lightMapTransform)}o.aoMap&&(r.aoMap.value=o.aoMap,r.aoMapIntensity.value=o.aoMapIntensity,n(o.aoMap,r.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,ds(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,o,c,l,h){o.isMeshBasicMaterial||o.isMeshLambertMaterial?r(e,o):o.isMeshToonMaterial?(r(e,o),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,o)):o.isMeshPhongMaterial?(r(e,o),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,o)):o.isMeshStandardMaterial?(r(e,o),function(e,r){e.metalness.value=r.metalness,r.metalnessMap&&(e.metalnessMap.value=r.metalnessMap,n(r.metalnessMap,e.metalnessMapTransform));e.roughness.value=r.roughness,r.roughnessMap&&(e.roughnessMap.value=r.roughnessMap,n(r.roughnessMap,e.roughnessMapTransform));t.get(r).envMap&&(e.envMapIntensity.value=r.envMapIntensity)}(e,o),o.isMeshPhysicalMaterial&&function(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===x&&e.clearcoatNormalScale.value.negate()));t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform)));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}
vendor: 1,270 bytes, line 2
2(e,o,h)):o.isMeshMatcapMaterial?(r(e,o),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,o)):o.isMeshDepthMaterial?r(e,o):o.isMeshDistanceMaterial?(r(e,o),function(e,n){const r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}(e,o)):o.isMeshNormalMaterial?r(e,o):o.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,o),o.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,o)):o.isPointsMaterial?function(e,t,r,o){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=.5*o,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,o,c,l):o.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}
2(e,o):o.isShadowMaterial?(e.color.value.copy(o.color),e.opacity.value=o.opacity):o.isShaderMaterial&&(o.uniformsNeedUpdate=!1)}}}function ll(e,t,n,r){let o={},c={},l=[];const h=n.isWebGL2?e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS):0;function f(e,t,n){const r=e.value;if(void 0===n[t]){if("number"==typeof r)n[t]=r;else{const e=Array.isArray(r)?r:[r],o=[];for(let i=0;i<e.length;i++)o.push(e[i].clone());n[t]=o}return!0}if("number"==typeof r){if(n[t]!==r)return n[t]=r,!0}else{const e=Array.isArray(n[t])?n[t]:[n[t]],o=Array.isArray(r)?r:[r];for(let i=0;i<e.length;i++){const t=e[i];if(!1===t.equals(o[i]))return t.copy(o[i]),!0}}return!1}function d(e){const t={boundary:0,storage:0};return"number"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture,t}function m(t){const n=t.target;n.removeEventListener("dispose",m);const r=l.indexOf(n.__bindingPointIndex);l.splice(r,1),e.deleteBuffer(o[n.id]),delete o[n.id],delete c[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,v){let _=o[n.id];void 0===_&&(!function(e){const t=e.uniforms;let n=0;let r=0;for(let i=0,e=t.length;i<e;i++){const e=t[i],o={boundary:0,storage:0},c=Array.isArray(e.value)?e.value:[e.value];for(let e=0,t=c.length;e<t;e++){const t=d(c[e]);o.boundary+=t.boundary,o.storage+=t.storage}if(e.__data=new Float32Array(o.storage/Float32Array.BYTES_PER_ELEMENT),e.__offset=n,i>0){r=n%16;const t=16-r;0!==r&&t-o.boundary<0&&(n+=16-r,e.__offset=n)}n+=o.storage}r=n%16,r>0&&(n+=16-r);e.__size=n,e.__cache={}}(n),_=function(t){const n=function(){for(let i=0;i<h;i++)if(-1===l.indexOf(i))return l.push(i),i;return 0}();t.__bindingPointIndex=n;const r=e.createBuffer(),o=t.__size,c=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,o,c),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}(n),o[n.id]=_,n.addEventListener("dispose",m));const y=v.program;r.updateUBOMapping(n,y);const w=t.render.frame;c[n.id]!==w&&(!function(t){const n=o[t.id],r=t.uniforms,c=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let i=0,t=r.length;i<t;i++){const t=r[i];if(!0===f(t,i,c)){const n=t.__offset,r=Array.isArray(t.value)?t.value:[t.value];let o=0;for(let i=0;i<r.length;i++){const c=r[i],l=d(c);"number"==typeof c?(t.__data[0]=c,e.bufferSubData(e.UNIFORM_BUFFER,n+o,t.__data)):c.isMatrix3?(t.__data[0]=c.elements[0],t.__data[1]=c.elements[1],t.__data[2]=c.elements[2],t.__data[3]=c.elements[0],t.__data[4]=c.elements[3],t.__data[5]=c.elements[4],t.__data[6]=c.elements[5],t.__data[7]=c.elements[0],t.__data[8]=c.elements[6],t.__data[9]=c.elements[7],t.__data[10]=c.elements[8],t.__data[11]=c.elements[0]):(c.toArray(t.__data,o),o+=l.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,n,t.__data)}}e.bindBuffer(e.UNIFORM_BUFFER,null)}(n),c[n.id]=w)},dispose:function(){for(const t in o)e.deleteBuffer(o[t]);l=[],o={},c={}}}}class hl{constructor(e={}){const{canvas:canvas=Sr(),context:t=null,depth:n=!0,stencil:o=!0,alpha:c=!1,antialias:l=!1,premultipliedAlpha:h=!0,preserveDrawingBuffer:f=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:m=!1}=e;let v;this.isWebGLRenderer=!0,v=null!==t?t.getContextAttributes().alpha:c;const _=new Uint32Array(4),y=new Int32Array(4);let T=null,E=null;const M=[],A=[];this.domElement=canvas,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=sn,this._useLegacyLights=!1,this.toneMapping=le,this.toneMappingExposure=1;const C=this;let R=!1,k=0,O=0,P=null,L=-1,I=null;const N=new zr,D=new zr;let U=null;const F=new pa(0);let B=0,z=canvas.width,H=canvas.height,V=1,j=null,W=null;const G=new zr(0,0,z,H),$=new zr(0,0,z,H);let X=!1;const Y=new As;let Z=!1,K=!1,J=null;const Q=new Mi,ee=new mr,te=new Yr,ne={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function re(){return null===P?V:1}let ie,ae,se,oe,ce,ue,he,fe,de,pe,me,ge,ve,_e,ye,be,we,xe,Se,Te,Ee,Me,Ae,Ce,Re=t;function ke(e,t){for(let i=0;i<e.length;i++){const n=e[i],r=canvas.getContext(n,t);if(null!==r)return r}return null}try{const e={alpha:!0,depth:n,stencil:o,antialias:l,premultipliedAlpha:h,preserveDrawingBuffer:f,powerPreference:d,failIfMajorPerformanceCaveat:m};if("setAttribute"in canvas&&canvas.setAttribute("data-engine","three.js r"+r),canvas.addEventListener("webglcontextlost",Le,!1),canvas.addEventListener("webglcontextrestored",Ne,!1),canvas.addEventListener("webglcontextcreationerror",Ue,!1),null===Re){const t=["webgl2","webgl","experimental-webgl"];
vendor: 4,333 bytes, line 2
2if(!0===C.isWebGL1Renderer&&t.shift(),Re=ke(t,e),null===Re)throw ke(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}"undefined"!=typeof WebGLRenderingContext&&WebGLRenderingContext,void 0===Re.getShaderPrecisionFormat&&(Re.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(e){throw e}function Oe(){ie=new io(Re),ae=new Fs(Re,ie,e),ie.init(ae),Me=new el(Re,ie,ae),se=new Jc(Re,ie,ae),oe=new oo(Re),ce=new Fc,ue=new Qc(Re,ie,se,ce,ae,Me,oe),he=new zs(C),fe=new ro(C),de=new Rs(Re,ae),Ae=new Ds(Re,ie,de,ae),pe=new ao(Re,de,oe,Ae),me=new ho(Re,pe,de,oe),Se=new uo(Re,ae,ue),be=new Bs(ce),ge=new Uc(C,he,fe,ie,ae,Ae,be),ve=new cl(C,ce),_e=new Vc,ye=new qc(ie,ae),xe=new Ns(C,he,fe,se,me,v,h),we=new Kc(C,me,ae),Ce=new ll(Re,oe,ae,se),Te=new Us(Re,ie,oe,ae),Ee=new so(Re,ie,oe,ae),oe.programs=ge.programs,C.capabilities=ae,C.extensions=ie,C.properties=ce,C.renderLists=_e,C.shadowMap=we,C.state=se,C.info=oe}Oe();const Pe=new sl(C,Re);function Le(e){e.preventDefault(),R=!0}function Ne(){R=!1;const e=oe.autoReset,t=we.enabled,n=we.autoUpdate,r=we.needsUpdate,o=we.type;Oe(),oe.autoReset=e,we.enabled=t,we.autoUpdate=n,we.needsUpdate=r,we.type=o}function Ue(e){}function Fe(e){const t=e.target;t.removeEventListener("dispose",Fe),function(e){(function(e){const t=ce.get(e).programs;void 0!==t&&(t.forEach((function(e){ge.releaseProgram(e)})),e.isShaderMaterial&&ge.releaseShaderCache(e))})(e),ce.remove(e)}(t)}function ze(e,t,object){!0===e.transparent&&e.side===S&&!1===e.forceSinglePass?(e.side=x,e.needsUpdate=!0,at(e,t,object),e.side=w,e.needsUpdate=!0,at(e,t,object),e.side=S):at(e,t,object)}this.xr=Pe,this.getContext=function(){return Re},this.getContextAttributes=function(){return Re.getContextAttributes()},this.forceContextLoss=function(){const e=ie.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=ie.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return V},this.setPixelRatio=function(e){void 0!==e&&(V=e,this.setSize(z,H,!1))},this.getSize=function(e){return e.set(z,H)},this.setSize=function(e,t,n=!0){Pe.isPresenting||(z=e,H=t,canvas.width=Math.floor(e*V),canvas.height=Math.floor(t*V),!0===n&&(canvas.style.width=e+"px",canvas.style.height=t+"px"),this.setViewport(0,0,e,t))},this.getDrawingBufferSize=function(e){return e.set(z*V,H*V).floor()},this.setDrawingBufferSize=function(e,t,n){z=e,H=t,V=n,canvas.width=Math.floor(e*n),canvas.height=Math.floor(t*n),this.setViewport(0,0,e,t)},this.getCurrentViewport=function(e){return e.copy(N)},this.getViewport=function(e){return e.copy(G)},this.setViewport=function(e,t,n,r){e.isVector4?G.set(e.x,e.y,e.z,e.w):G.set(e,t,n,r),se.viewport(N.copy(G).multiplyScalar(V).floor())},this.getScissor=function(e){return e.copy($)},this.setScissor=function(e,t,n,r){e.isVector4?$.set(e.x,e.y,e.z,e.w):$.set(e,t,n,r),se.scissor(D.copy($).multiplyScalar(V).floor())},this.getScissorTest=function(){return X},this.setScissorTest=function(e){se.setScissorTest(X=e)},this.setOpaqueSort=function(e){j=e},this.setTransparentSort=function(e){W=e},this.getClearColor=function(e){return e.copy(xe.getClearColor())},this.setClearColor=function(){xe.setClearColor.apply(xe,arguments)},this.getClearAlpha=function(){return xe.getClearAlpha()},this.setClearAlpha=function(){xe.setClearAlpha.apply(xe,arguments)},this.clear=function(e=!0,t=!0,n=!0){let r=0;if(e){let e=!1;if(null!==P){const t=P.texture.format;e=t===it||t===nt||t===et}if(e){const e=P.texture.type,t=e===De||e===He||e===Be||e===$e||e===We||e===Ge,n=xe.getClearColor(),a=xe.getClearAlpha(),r=n.r,g=n.g,b=n.b;t?(_[0]=r,_[1]=g,_[2]=b,_[3]=a,Re.clearBufferuiv(Re.COLOR,0,_)):(y[0]=r,y[1]=g,y[2]=b,y[3]=a,Re.clearBufferiv(Re.COLOR,0,y))}else r|=Re.COLOR_BUFFER_BIT}t&&(r|=Re.DEPTH_BUFFER_BIT),n&&(r|=Re.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),Re.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){canvas.removeEventListener("webglcontextlost",Le,!1),canvas.removeEventListener("webglcontextrestored",Ne,!1),canvas.removeEventListener("webglcontextcreationerror",Ue,!1),_e.dispose(),ye.dispose(),ce.dis
vendor: 1,338 bytes, line 2
2pose(),he.dispose(),fe.dispose(),me.dispose(),Ae.dispose(),Ce.dispose(),ge.dispose(),Pe.dispose(),Pe.removeEventListener("sessionstart",Ye),Pe.removeEventListener("sessionend",Ze),J&&(J.dispose(),J=null),Ke.stop()},this.renderBufferDirect=function(e,t,n,r,object,o){null===t&&(t=ne);const c=object.isMesh&&object.matrixWorld.determinant()<0,l=function(e,t,n,r,object){!0!==t.isScene&&(t=ne);ue.resetTextureUnits();const o=t.fog,c=r.isMeshStandardMaterial?t.environment:null,l=null===P?C.outputColorSpace:!0===P.isXRRenderTarget?P.texture.colorSpace:on,h=(r.isMeshStandardMaterial?fe:he).get(r.envMap||c),f=!0===r.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,d=!!n.attributes.tangent&&(!!r.normalMap||r.anisotropy>0),m=!!n.morphAttributes.position,v=!!n.morphAttributes.normal,_=!!n.morphAttributes.color;let y=le;r.toneMapped&&(null!==P&&!0!==P.isXRRenderTarget||(y=C.toneMapping));const w=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,x=void 0!==w?w.length:0,S=ce.get(r),T=E.state.lights;if(!0===Z&&(!0===K||e!==I)){const t=e===I&&r.id===L;be.setState(r,e,t)}let M=!1;r.version===S.__version?S.needsLights&&S.lightsStateVersion!==T.state.version||S.outputColorSpace!==l||object.isInstancedMesh&&!1===S.instancing?M=!0:object.isInstancedMesh||!0!==S.instancing?object.isSkinnedMesh&&
2!1===S.skinning?M=!0:object.isSkinnedMesh||!0!==S.skinning?object.isInstancedMesh&&!0===S.instancingColor&&null===object.instanceColor||object.isInstancedMesh&&!1===S.instancingColor&&null!==object.instanceColor||S.envMap!==h||!0===r.fog&&S.fog!==o?M=!0:void 0===S.numClippingPlanes||S.numClippingPlanes===be.numPlanes&&S.numIntersection===be.numIntersection?(S.vertexAlphas!==f||S.vertexTangents!==d||S.morphTargets!==m||S.morphNormals!==v||S.morphColors!==_||S.toneMapping!==y||!0===ae.isWebGL2&&S.morphTargetsCount!==x)&&(M=!0):M=!0:M=!0:M=!0:(M=!0,S.__version=r.version);let A=S.currentProgram;!0===M&&(A=at(r,t,object));let R=!1,k=!1,O=!1;const N=A.getUniforms(),D=S.uniforms;se.useProgram(A.program)&&(R=!0,k=!0,O=!0);r.id!==L&&(L=r.id,k=!0);if(R||I!==e){N.setValue(Re,"projectionMatrix",e.projectionMatrix),N.setValue(Re,"viewMatrix",e.matrixWorldInverse);const t=N.map.cameraPosition;void 0!==t&&t.setValue(Re,te.setFromMatrixPosition(e.matrixWorld)),ae.logarithmicDepthBuffer&&N.setValue(Re,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&N.setValue(Re,"isOrthographic",!0===e.isOrthographicCamera),I!==e&&(I=e,k=!0,O=!0)}if(object.isSkinnedMesh){N.setOptional(Re,object,"bindMatrix"),N.setOptional(Re,object,"bindMatrixInverse");const e=object.skeleton;e&&ae.floatVertexTextures&&(null===e.boneTexture&&e.computeBoneTexture(),N.setValue(Re,"boneTexture",e.boneTexture,ue),N.setValue(Re,"boneTextureSize",e.boneTextureSize))}const U=n.morphAttributes;(void 0!==U.position||void 0!==U.normal||void 0!==U.color&&!0===ae.isWebGL2)&&Se.update(object,n,A);(k||S.receiveShadow!==object.receiveShadow)&&(S.receiveShadow=object.receiveShadow,N.setValue(Re,"receiveShadow",object.receiveShadow));r.isMeshGouraudMaterial&&null!==r.envMap&&(D.envMap.value=h,D.flipEnvMap.value=h.isCubeTexture&&!1===h.isRenderTargetTexture?-1:1);k&&(N.setValue(Re,"toneMappingExposure",C.toneMappingExposure),S.needsLights&&(B=O,(F=D).ambientLightColor.needsUpdate=B,F.lightProbe.needsUpdate=B,F.directionalLights.needsUpdate=B,F.directionalLightShadows.needsUpdate=B,F.pointLights.needsUpdate=B,F.pointLightShadows.needsUpdate=B,F.spotLights.needsUpdate=B,F.spotLightShadows.needsUpdate=B,F.rectAreaLights.needsUpdate=B,F.hemisphereLights.needsUpdate=B),o&&!0===r.fog&&ve.refreshFogUniforms(D,o),ve.refreshMaterialUniforms(D,r,V,H,J),gc.upload(Re,st(S),D,ue));var F,B;r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(gc.upload(Re,st(S),D,ue),r.uniformsNeedUpdate=!1);r.isSpriteMaterial&&N.setValue(Re,"center",object.center);if(N.setValue(Re,"modelViewMatrix",object.modelViewMatrix),N.setValue(Re,"normalMatrix",object.normalMatrix),N.setValue(Re,"modelMatrix",object.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let i=0,t=e.length;i<t;i++)if(ae.isWebGL2){const t=e[i];Ce.update(t,A),Ce.bind(t,A)}}return A}(e,t,n,r,object);se.setMaterial(r,c);let h=n.index,f=1;if(!0===r.wireframe){if(h=pe.getWireframeAttribute(n),void 0===h)return;f=2}const d=n.drawRange,m=n.attributes.position;let v=d.start*f,_=(d.start+d.count)*f;null!==o&&(v=Math.max(v,o.start*f),_=Math.min(_,(o.start+o.count)*f)),null!==h?(v=Math.max(v,0),_=Math.min(_,h.count)):null!=m&&(v=Math.max(v,0),_=Math.min(_,m.count));const y=_-v;if(y<0||y===1/0)return;let w;Ae.setup(object,r,l,n,h);let x=Te;if(null!==h&&(w=de.get(h),x=Ee,x.setIndex(w)),object.isMesh)!0===r.wireframe?(se.setLineWidth(r.wireframeLinewidth*re()),x.setMode(Re.LINES)):x.setMode(Re.TRIANGLES);else if(object.isLine){let e=r.linewidth;void 0===e&&(e=1),se.setLineWidth(e*re()),object.isLineSegments?x.setMode(Re.LINES):object.isLineLoop?x.setMode(Re.LINE_LOOP):x.setMode(Re.LINE_STRIP)}else object.isPoints?x.setMode(Re.POINTS):object.isSprite&&x.setMode(Re.TRIANGLES);if(object.isInstancedMesh)x.renderInstances(v,y,object.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);x.renderInstances(v,y,t)}else x.render(v,y)},this.compile=function(e,t,n=null){null===n&&(n=e),E=ye.get(n),E.init(),A.push(E),n.traverseVisible((function(object){object.isLight&&object.layers.test(t.layers)&&(E.pushLight(object),object.castShadow&&E.pushShadow(object))})),e!==n&&e.traverseVisible((function(object){object.isLight&&object.layers.test(t.layers)&&(E.pushLight(object),object.castShadow&&E.pushShadow(object))})),E.setupLights(C._useLegacyLights);const r=new Set;return e.traverse((function(object){const e=object.material;if(e)if(Array.isArray(e))for(let i=0;i<e.length;i++){const t=e[i];ze(t,n,object),r.add(t)}else ze(e,n,object),r.add(e)})),A.pop(),E=null,r},this.compileAsync=function(e,t,n=null){const r=this.compile(e,t,n);return new Promise(t=>{function n(){r.forEach((function(e){ce.get(e).currentProgram.isReady()&&r.delete(e)})),0!==r.size?setTimeout(n,10):t(e)}null!==ie.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)})};let Xe=null;function Ye(){Ke.stop()}function Ze(){Ke.start()}const Ke=new Cs;function Je(e,t,n,r){const o=e.opaque,c=e.transmissive,l=e.transparent;E.setupLightsView(n),!0===Z&&be.setGlobalState(C.clippingPlanes,n),c.length>0&&function(e,t,n,r){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;const o=ae.isWebGL2;null===J&&(J=new Vr(1,1,{generateMipmaps:!0,type:ie.has("EXT_color_buffer_half_float")?je:De,minFilter:Ie,samples:o?4:0}));C.getDrawingBufferSize(ee),o?J.setSize(ee.x,ee.y):J.setSize(ur(ee.x),ur(ee.y));const c=C.getRenderTarget();C.setRenderTarget(J),C.getClearColor(F),B=C.getClearAlpha(),B<1&&C.setClearColor(16777215,.5);C.clear();const l=C.toneMapping;C.toneMapping=le,Qe(e,n,r),ue.updateMultisampleRenderTarget(J),ue.updateRenderTargetMipmap(J);let h=!1;for(let i=0,e=t.length;i<e;i++){const e=t[i],object=e.object,o=e.geometry,c=e.material,l=e.group;if(c.side===S&&object.layers.test(r.layers)){const e=c.side;c.side=x,c.needsUpdate=!0,tt(object,n,r,o,c,l),c.side=e,c.needsUpdate=!0,h=!0}}
vendor: 4,407 bytes, line 2
2!0===h&&(ue.updateMultisampleRenderTarget(J),ue.updateRenderTargetMipmap(J));C.setRenderTarget(c),C.setClearColor(F,B),C.toneMapping=l}(o,c,t,n),r&&se.viewport(N.copy(r)),o.length>0&&Qe(o,t,n),c.length>0&&Qe(c,t,n),l.length>0&&Qe(l,t,n),se.buffers.depth.setTest(!0),se.buffers.depth.setMask(!0),se.buffers.color.setMask(!0),se.setPolygonOffset(!1)}function Qe(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,o=e.length;i<o;i++){const o=e[i],object=o.object,c=o.geometry,l=null===r?o.material:r,h=o.group;object.layers.test(n.layers)&&tt(object,t,n,c,l,h)}}function tt(object,e,t,n,r,o){object.onBeforeRender(C,e,t,n,r,o),object.modelViewMatrix.multiplyMatrices(t.matrixWorldInverse,object.matrixWorld),object.normalMatrix.getNormalMatrix(object.modelViewMatrix),r.onBeforeRender(C,e,t,n,object,o),!0===r.transparent&&r.side===S&&!1===r.forceSinglePass?(r.side=x,r.needsUpdate=!0,C.renderBufferDirect(t,e,n,r,object,o),r.side=w,r.needsUpdate=!0,C.renderBufferDirect(t,e,n,r,object,o),r.side=S):C.renderBufferDirect(t,e,n,r,object,o),object.onAfterRender(C,e,t,n,r,o)}function at(e,t,object){!0!==t.isScene&&(t=ne);const n=ce.get(e),r=E.state.lights,o=E.state.shadowsArray,c=r.state.version,l=ge.getParameters(e,r.state,o,t,object),h=ge.getProgramCacheKey(l);let f=n.programs;n.environment=e.isMeshStandardMaterial?t.environment:null,n.fog=t.fog,n.envMap=(e.isMeshStandardMaterial?fe:he).get(e.envMap||n.environment),void 0===f&&(e.addEventListener("dispose",Fe),f=new Map,n.programs=f);let d=f.get(h);if(void 0!==d){if(n.currentProgram===d&&n.lightsStateVersion===c)return ot(e,l),d}else l.uniforms=ge.getUniforms(e),e.onBuild(object,l,C),e.onBeforeCompile(l,C),d=ge.acquireProgram(l,h),f.set(h,d),n.uniforms=l.uniforms;const m=n.uniforms;return(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(m.clippingPlanes=be.uniform),ot(e,l),n.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),n.lightsStateVersion=c,n.needsLights&&(m.ambientLightColor.value=r.state.ambient,m.lightProbe.value=r.state.probe,m.directionalLights.value=r.state.directional,m.directionalLightShadows.value=r.state.directionalShadow,m.spotLights.value=r.state.spot,m.spotLightShadows.value=r.state.spotShadow,m.rectAreaLights.value=r.state.rectArea,m.ltc_1.value=r.state.rectAreaLTC1,m.ltc_2.value=r.state.rectAreaLTC2,m.pointLights.value=r.state.point,m.pointLightShadows.value=r.state.pointShadow,m.hemisphereLights.value=r.state.hemi,m.directionalShadowMap.value=r.state.directionalShadowMap,m.directionalShadowMatrix.value=r.state.directionalShadowMatrix,m.spotShadowMap.value=r.state.spotShadowMap,m.spotLightMatrix.value=r.state.spotLightMatrix,m.spotLightMap.value=r.state.spotLightMap,m.pointShadowMap.value=r.state.pointShadowMap,m.pointShadowMatrix.value=r.state.pointShadowMatrix),n.currentProgram=d,n.uniformsList=null,d}function st(e){if(null===e.uniformsList){const t=e.currentProgram.getUniforms();e.uniformsList=gc.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function ot(e,t){const n=ce.get(e);n.outputColorSpace=t.outputColorSpace,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Ke.setAnimationLoop((function(time){Xe&&Xe(time)})),"undefined"!=typeof self&&Ke.setContext(self),this.setAnimationLoop=function(e){Xe=e,Pe.setAnimationLoop(e),null===e?Ke.stop():Ke.start()},Pe.addEventListener("sessionstart",Ye),Pe.addEventListener("sessionend",Ze),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return;if(!0===R)return;!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===Pe.enabled&&!0===Pe.isPresenting&&(!0===Pe.cameraAutoUpdate&&Pe.updateCamera(t),t=Pe.getCamera()),!0===e.isScene&&e.onBeforeRender(C,e,t,P),E=ye.get(e,A.length),E.init(),A.push(E),Q.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),Y.setFromProjectionMatrix(Q),K=this.localClippingEnabled,Z=be.init(this.clippingPlanes,K),T=_e.get(e,M.length),T.init(
2),M.push(T),function e(object,t,n,r){if(!1===object.visible)return;if(object.layers.test(t.layers))if(object.isGroup)n=object.renderOrder;else if(object.isLOD)!0===object.autoUpdate&&object.update(t);else if(object.isLight)E.pushLight(object),object.castShadow&&E.pushShadow(object);else if(object.isSprite){if(!object.frustumCulled||Y.intersectsSprite(object)){r&&te.setFromMatrixPosition(object.matrixWorld).applyMatrix4(Q);const e=me.update(object),t=object.material;t.visible&&T.push(object,e,t,n,te.z,null)}}else if((object.isMesh||object.isLine||object.isPoints)&&(!object.frustumCulled||Y.intersectsObject(object))){const e=me.update(object),t=object.material;if(r&&(void 0!==object.boundingSphere?(null===object.boundingSphere&&object.computeBoundingSphere(),te.copy(object.boundingSphere.center)):(null===e.boundingSphere&&e.computeBoundingSphere(),te.copy(e.boundingSphere.center)),te.applyMatrix4(object.matrixWorld).applyMatrix4(Q)),Array.isArray(t)){const r=e.groups;for(let i=0,o=r.length;i<o;i++){const o=r[i],c=t[o.materialIndex];c&&c.visible&&T.push(object,e,c,n,te.z,o)}}else t.visible&&T.push(object,e,t,n,te.z,null)}const o=object.children;for(let i=0,c=o.length;i<c;i++)e(o[i],t,n,r)}(e,t,0,C.sortObjects),T.finish(),!0===C.sortObjects&&T.sort(j,W),this.info.render.frame++,!0===Z&&be.beginShadows();const n=E.state.shadowsArray;if(we.render(n,e,t),!0===Z&&be.endShadows(),!0===this.info.autoReset&&this.info.reset(),xe.render(T,e),E.setupLights(C._useLegacyLights),t.isArrayCamera){const n=t.cameras;for(let i=0,t=n.length;i<t;i++){const t=n[i];Je(T,e,t,t.viewport)}}else Je(T,e,t);null!==P&&(ue.updateMultisampleRenderTarget(P),ue.updateRenderTargetMipmap(P)),!0===e.isScene&&e.onAfterRender(C,e,t),Ae.resetDefaultState(),L=-1,I=null,A.pop(),E=A.length>0?A[A.length-1]:null,M.pop(),T=M.length>0?M[M.length-1]:null},this.getActiveCubeFace=function(){return k},this.getActiveMipmapLevel=function(){return O},this.getRenderTarget=function(){return P},this.setRenderTargetTextures=function(e,t,n){ce.get(e.texture).__webglTexture=t,ce.get(e.depthTexture).__webglTexture=n;const r=ce.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===ie.has("WEBGL_multisampled_render_to_texture")&&(r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=ce.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){P=e,k=t,O=n;let r=!0,o=null,c=!1,l=!1;if(e){const h=ce.get(e);void 0!==h.__useDefaultFramebuffer?(se.bindFramebuffer(Re.FRAMEBUFFER,null),r=!1):void 0===h.__webglFramebuffer?ue.setupRenderTarget(e):h.__hasExternalTextures&&ue.rebindTextures(e,ce.get(e.texture).__webglTexture,ce.get(e.depthTexture).__webglTexture);const f=e.texture;(f.isData3DTexture||f.isDataArrayTexture||f.isCompressedArrayTexture)&&(l=!0);const d=ce.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(o=Array.isArray(d[t])?d[t][n]:d[t],c=!0):o=ae.isWebGL2&&e.samples>0&&!1===ue.useMultisampledRTT(e)?ce.get(e).__webglMultisampledFramebuffer:Array.isArray(d)?d[n]:d,N.copy(e.viewport),D.copy(e.scissor),U=e.scissorTest}else N.copy(G).multiplyScalar(V).floor(),D.copy($).multiplyScalar(V).floor(),U=X;if(se.bindFramebuffer(Re.FRAMEBUFFER,o)&&ae.drawBuffers&&r&&se.drawBuffers(e,o),se.viewport(N),se.scissor(D),se.setScissorTest(U),c){const r=ce.get(e.texture);Re.framebufferTexture2D(Re.FRAMEBUFFER,Re.COLOR_ATTACHMENT0,Re.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(l){const r=ce.get(e.texture),o=t||0;Re.framebufferTextureLayer(Re.FRAMEBUFFER,Re.COLOR_ATTACHMENT0,r.__webglTexture,n||0,o)}L=-1},this.readRenderTargetPixels=function(e,t,n,r,o,c,l){if(!e||!e.isWebGLRenderTarget)return;let h=ce.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==l&&(h=h[l]),h){se.bindFramebuffer(Re.FRAMEBUFFER,h);try{const l=e.texture,h=l.format,f=l.type;if(h!==qe&&Me.convert(h)!==Re.getParameter(Re.IMPLEMENTATION_COLOR_READ_FORMAT))return;const d=f===je&&(ie.has("EXT_color_buffer_half_float")||ae.isWebGL2&&ie.has("EXT_color_buffer_float"));if(!(f===De||Me.convert(f)===Re.getParameter(Re.IMPLEMENTATION_COLOR_READ_TYPE)||f===Ve&&(ae.isWebGL2||ie.has("OES_texture_float")||ie.has("WEBGL_color_buffer_float"))||d))return;t>=0&&t<=e.width-r&&n>=0&&n<=e.height-o&&Re.readPixels(t,n,r,o,Me.convert(h),Me.convert(f),c)}finally{const e=null!==P?ce.get(P).__webglFramebuffer:null;se.bindFramebuffer(Re.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const r=Math.pow(2,-n),o=Math.floor(t.image.width*r),c=Math.floor(t.image.height*r);ue.setTexture2D(t,0),Re.copyTexSubImage2D(Re.TEXTURE_2D,n,0,0,e.x,e.y,o,c),se.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const o=t.image.width,c=t.image.height,l=Me.convert(n.format),h=Me.convert(n.type);ue.setTexture2D(n,0),Re.pixelStorei(Re.UNPACK_FLIP_Y_WEBGL,n.flipY),Re.pixelStorei(Re.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),Re.pixelStorei(Re.UNPACK_ALIGNMENT,n.unpackAlignment),t.isDataTexture?Re.texSubImage2D(Re.TEXTURE_2D,r,e.x,e.y,o,c,l,h,t.image.data):t.isCompressedTexture?Re.compressedTexSubImage2D(Re.TEXTURE_2D,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,l,t.mipmaps[0].data):Re.texSubImage2D(Re.TEXTURE_2D,r,e.x,e.y,l,h,t.image),0===r&&n.generateMipmaps&&Re.generateMipmap(Re.TEXTURE_2D),se.unbindTexture()}
2,this.copyTextureToTexture3D=function(e,t,n,r,o=0){if(C.isWebGL1Renderer)return;const c=e.max.x-e.min.x+1,l=e.max.y-e.min.y+1,h=e.max.z-e.min.z+1,f=Me.convert(r.format),d=Me.convert(r.type);let m;if(r.isData3DTexture)ue.setTexture3D(r,0),m=Re.TEXTURE_3D;else{if(!r.isDataArrayTexture)return;ue.setTexture2DArray(r,0),m=Re.TEXTURE_2D_ARRAY}Re.pixelStorei(Re.UNPACK_FLIP_Y_WEBGL,r.flipY),Re.pixelStorei(Re.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.premultiplyAlpha),Re.pixelStorei(Re.UNPACK_ALIGNMENT,r.unpackAlignment);const v=Re.getParameter(Re.UNPACK_ROW_LENGTH),_=Re.getParameter(Re.UNPACK_IMAGE_HEIGHT),y=Re.getParameter(Re.UNPACK_SKIP_PIXELS),w=Re.getParameter(Re.UNPACK_SKIP_ROWS),x=Re.getParameter(Re.UNPACK_SKIP_IMAGES),image=n.isCompressedTexture?n.mipmaps[0]:n.image;Re.pixelStorei(Re.UNPACK_ROW_LENGTH,image.width),Re.pixelStorei(Re.UNPACK_IMAGE_HEIGHT,image.height),Re.pixelStorei(Re.UNPACK_SKIP_PIXELS,e.min.x),Re.pixelStorei(Re.UNPACK_SKIP_ROWS,e.min.y),Re.pixelStorei(Re.UNPACK_SKIP_IMAGES,e.min.z),n.isDataTexture||n.isData3DTexture?Re.texSubImage3D(m,o,t.x,t.y,t.z,c,l,h,f,d,image.data):n.isCompressedArrayTexture?Re.compressedTexSubImage3D(m,o,t.x,t.y,t.z,c,l,h,f,image.data):Re.texSubImage3D(m,o,t.x,t.y,t.z,c,l,h,f,d,image),Re.pixelStorei(Re.UNPACK_ROW_LENGTH,v),Re.pixelStorei(Re.UNPACK_IMAGE_HEIGHT,_),Re.pixelStorei(Re.UNPACK_SKIP_PIXELS,y),Re.pixelStorei(Re.UNPACK_SKIP_ROWS,w),Re.pixelStorei(Re.UNPACK_SKIP_IMAGES,x),0===o&&r.generateMipmaps&&Re.generateMipmap(m),se.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?ue.setTextureCube(e,0):e.isData3DTexture?ue.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ue.setTexture2DArray(e,0):ue.setTexture2D(e,0),se.unbindTexture()},this.resetState=function(){k=0,O=0,P=null,se.reset(),Ae.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Zn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===cn?"display-p3":"srgb",t.unpackColorSpace=kr.workingColorSpace===ln?"display-p3":"srgb"}get physicallyCorrectLights(){return!this.useLegacyLights}set physicallyCorrectLights(e){this.useLegacyLights=!e}get outputEncoding(){return this.outputColorSpace===sn?Qt:Jt}set outputEncoding(e){this.outputColorSpace=e===Qt?sn:on}get useLegacyLights(){return this._useLegacyLights}set useLegacyLights(e){this._useLegacyLights=e}}class fl extends hl{}fl.prototype.isWebGL1Renderer=!0;class pl{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new pa(e),this.density=t}clone(){return new pl(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class ml{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new pa(e),this.near=t,this.far=n}clone(){return new ml(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class gl extends Ki{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(source,e){return super.copy(source,e),null!==source.background&&(this.background=source.background.clone()),null!==source.environment&&(this.environment=source.environment.clone()),null!==source.fog&&(this.fog=source.fog.clone()),this.backgroundBlurriness=source.backgroundBlurriness,this.backgroundIntensity=source.backgroundIntensity,null!==source.overrideMaterial&&(this.overrideMaterial=source.overrideMaterial.clone()),this.matrixAutoUpdate=source.matrixAutoUpdate,this}toJSON(meta){const data=super.toJSON(meta);return null!==this.fog&&(data.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(data.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(data.object.backgroundIntensity=this.backgroundIntensity),data}}class vl{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Fn,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=ir()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(source){return this.array=new source.array.constructor(source.array),this.count=source.count,this.stride=source.stride,this.usage=source.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,r=this.stride;i<r;i++)this.array[e+i]=t.array[n+i];return this}set(e,t=0){return this.array.set(e,t),this}clone(data){void 0===data.arrayBuffers&&(data.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=ir()),void 0===data.arrayBuffers[this.array.buffer._uuid]&&(data.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new this.array.constructor(data.arrayBuffers[this.array.buffer._uuid]),t=new this.constructor(e,this.stride);return t.setUsage(this.usage),t}onUpload(e){return this.onUploadCallback=e,this}toJSON(data){return void 0===data.arrayBuffers&&(data.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=ir()),void 0===data.arrayBuffers[this.array.buffer._uuid]&&(data.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const _l=new Yr;class yl{constructor(e,t,n,r=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=r}
vendor: 6,722 bytes, line 2
2get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let i=0,t=this.data.count;i<t;i++)_l.fromBufferAttribute(this,i),_l.applyMatrix4(e),this.setXYZ(i,_l.x,_l.y,_l.z);return this}applyNormalMatrix(e){for(let i=0,t=this.count;i<t;i++)_l.fromBufferAttribute(this,i),_l.applyNormalMatrix(e),this.setXYZ(i,_l.x,_l.y,_l.z);return this}transformDirection(e){for(let i=0,t=this.count;i<t;i++)_l.fromBufferAttribute(this,i),_l.transformDirection(e),this.setXYZ(i,_l.x,_l.y,_l.z);return this}setX(e,t){return this.normalized&&(t=dr(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=dr(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=dr(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=dr(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=fr(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=fr(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=fr(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=fr(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array),r=dr(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this}setXYZW(e,t,n,r,o){return e=e*this.data.stride+this.offset,this.normalized&&(t=dr(t,this.array),n=dr(n,this.array),r=dr(r,this.array),o=dr(o,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=r,this.data.array[e+3]=o,this}clone(data){if(void 0===data){const e=[];for(let i=0;i<this.count;i++){const t=i*this.data.stride+this.offset;for(let n=0;n<this.itemSize;n++)e.push(this.data.array[t+n])}return new Ma(new this.array.constructor(e),this.itemSize,this.normalized)}return void 0===data.interleavedBuffers&&(data.interleavedBuffers={}),void 0===data.interleavedBuffers[this.data.uuid]&&(data.interleavedBuffers[this.data.uuid]=this.data.clone(data)),new yl(data.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(data){if(void 0===data){const e=[];for(let i=0;i<this.count;i++){const t=i*this.data.stride+this.offset;for(let n=0;n<this.itemSize;n++)e.push(this.data.array[t+n])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,normalized:this.normalized}}return void 0===data.interleavedBuffers&&(data.interleavedBuffers={}),void 0===data.interleavedBuffers[this.data.uuid]&&(data.interleavedBuffers[this.data.uuid]=this.data.toJSON(data)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}class bl extends va{constructor(e){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new pa(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.alphaMap=source.alphaMap,this.rotation=source.rotation,this.sizeAttenuation=source.sizeAttenuation,this.fog=source.fog,this}}let wl;const xl=new Yr,Sl=new Yr,Tl=new Yr,El=new mr,Ml=new mr,Al=new Mi,Cl=new Yr,Rl=new Yr,kl=new Yr,Ol=new mr,Pl=new mr,Ll=new mr;class Il extends Ki{constructor(e=new bl){if(super(),this.isSprite=!0,this.type="Sprite",void 0===wl){wl=new Wa;const e=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),t=new vl(e,5);wl.setIndex([0,1,2,0,2,3]),wl.setAttribute("position",new yl(t,3,0,!1)),wl.setAttribute("uv",new yl(t,2,3,!1))}this.geometry=wl,this.material=e,this.center=new mr(.5,.5)}raycast(e,t){e.camera,Sl.setFromMatrixScale(this.matrixWorld),Al.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),Tl.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Sl.multiplyScalar(-Tl.z);const n=this.material.rotation;let r,o;0!==n&&(o=Math.cos(n),r=Math.sin(n));const c=this.center;Nl(Cl.set(-.5,-.5,0),Tl,c,Sl,r,o),Nl(Rl.set(.5,-.5,0),Tl,c,Sl,r,o),Nl(kl.set(.5,.5,0),Tl,c,Sl,r,o),Ol.set(0,0),Pl.set(1,0),Ll.set(1,1);let l=e.ray.intersectTriangle(Cl,Rl,kl,!1,xl);if(null===l&&(Nl(Rl.set(-.5,.5,0),Tl,c,Sl,r,o),Pl.set(0,1),l=e.ray.intersectTriangle(Cl,kl,Rl,!1,xl),null===l))return;const h=e.ray.origin.distanceTo(xl);h<e.near||h>e.far||t.push({distance:h,point:xl.clone(),uv:la.getInterpolation(xl,Cl,Rl,kl,Ol,Pl,Ll,new mr),face:null,object:this})}copy(source,e){return super.copy(source,e),void 0!==source.center&&this.center.copy(source.center),this.material=source.material,this}}function Nl(e,t,n,r,o,c){El.subVectors(e,n).addScalar(.5).multiply(r),void 0!==o?(Ml.x=c*El.x-o*El.y,Ml.y=o*El.x+c*El.y):Ml.copy(El),e.copy(t),e.x+=Ml.x,e.y+=Ml.y,e.applyMatrix4(Al)}const Dl=new Yr,Ul=new Yr;class Fl extends Ki{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(source){super.copy(source,!1);const e=source.levels;for(let i=0,t=e.length;i<t;i++){const t=e[i];this.addLevel(t.object.clone(),t.distance,t.hysteresis)}return this.autoUpdate=source.autoUpdate,this}addLevel(object,e=0,t=0){e=Math.abs(e);const n=this.levels;let r;for(r=0;r<n.length&&!(e<n[r].distance);r++);return n.splice(r,0,{distance:e,hysteresis:t,object:object}),this.add(object),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(e){const t=this.levels;if(t.length>0){let i,n;for(i=1,n=t.length;i<n;i++){let n=t[i].distance;if(t[i].object.visible&&(n-=n*t[i].hysteresis),e<n)break}return t[i-1].object}return null}raycast(e,t){if(this.levels.length>0){Dl.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(Dl);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Dl.setFromMatrixPosition(e.matrixWorld),Ul.setFromMatrixPosition(this.matrixWorld);const n=Dl.distanceTo(Ul)/e.zoom;let i,r;for(t[0].object.visible=!0,i=1,r=t.length;i<r;i++){let e=t[i].distance;if(t[i].object.visible&&(e-=e*t[i].hysteresis),!(n>=e))break;t[i-1].object.visible=!1,t[i].object.visible=!0}for(this._currentLevel=i-1;
vendor: 5,345 bytes, line 2
2i<r;i++)t[i].object.visible=!1}}toJSON(meta){const data=super.toJSON(meta);!1===this.autoUpdate&&(data.object.autoUpdate=!1),data.object.levels=[];const e=this.levels;for(let i=0,t=e.length;i<t;i++){const t=e[i];data.object.levels.push({object:t.object.uuid,distance:t.distance,hysteresis:t.hysteresis})}return data}}const Bl=new Yr,zl=new zr,Hl=new zr,Vl=new Yr,jl=new Mi,Wl=new Yr,Gl=new vi,$l=new Mi,Xl=new Ei;class ql extends cs{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=me,this.bindMatrix=new Mi,this.bindMatrixInverse=new Mi,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;null===this.boundingBox&&(this.boundingBox=new Jr),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let i=0;i<t.count;i++)this.getVertexPosition(i,Wl),this.boundingBox.expandByPoint(Wl)}computeBoundingSphere(){const e=this.geometry;null===this.boundingSphere&&(this.boundingSphere=new vi),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let i=0;i<t.count;i++)this.getVertexPosition(i,Wl),this.boundingSphere.expandByPoint(Wl)}copy(source,e){return super.copy(source,e),this.bindMode=source.bindMode,this.bindMatrix.copy(source.bindMatrix),this.bindMatrixInverse.copy(source.bindMatrixInverse),this.skeleton=source.skeleton,null!==source.boundingBox&&(this.boundingBox=source.boundingBox.clone()),null!==source.boundingSphere&&(this.boundingSphere=source.boundingSphere.clone()),this}raycast(e,t){const n=this.material,r=this.matrixWorld;void 0!==n&&(null===this.boundingSphere&&this.computeBoundingSphere(),Gl.copy(this.boundingSphere),Gl.applyMatrix4(r),!1!==e.ray.intersectsSphere(Gl)&&($l.copy(r).invert(),Xl.copy(e.ray).applyMatrix4($l),null!==this.boundingBox&&!1===Xl.intersectsBox(this.boundingBox)||this._computeIntersections(e,t,Xl)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new zr,t=this.geometry.attributes.skinWeight;for(let i=0,n=t.count;i<n;i++){e.fromBufferAttribute(t,i);const n=1/e.manhattanLength();n!==1/0?e.multiplyScalar(n):e.set(1,0,0,0),t.setXYZW(i,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===me?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===ge&&this.bindMatrixInverse.copy(this.bindMatrix).invert()}applyBoneTransform(e,t){const n=this.skeleton,r=this.geometry;zl.fromBufferAttribute(r.attributes.skinIndex,e),Hl.fromBufferAttribute(r.attributes.skinWeight,e),Bl.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let i=0;i<4;i++){const e=Hl.getComponent(i);if(0!==e){const r=zl.getComponent(i);jl.multiplyMatrices(n.bones[r].matrixWorld,n.boneInverses[r]),t.addScaledVector(Vl.copy(Bl).applyMatrix4(jl),e)}}return t.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,t){return this.applyBoneTransform(e,t)}}class Yl extends Ki{constructor(){super(),this.isBone=!0,this.type="Bone"}}class Zl extends Br{constructor(data=null,e=1,t=1,n,r,o,c,l,h=Me,f=Me,d,m){super(null,o,c,l,h,f,n,r,d,m),this.isDataTexture=!0,this.image={data:data,width:e,height:t},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const Kl=new Mi,Jl=new Mi;class Ql{constructor(e=[],t=[]){this.uuid=ir(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){this.boneInverses=[];for(let i=0,e=this.bones.length;i<e;i++)this.boneInverses.push(new Mi)}}calculateInverses(){this.boneInverses.length=0;for(let i=0,e=this.bones.length;i<e;i++){const e=new Mi;this.bones[i]&&e.copy(this.bones[i].matrixWorld).invert(),this.boneInverses.push(e)}}pose(){for(let i=0,e=this.bones.length;i<e;i++){const e=this.bones[i];e&&e.matrixWorld.copy(this.boneInverses[i]).invert()}for(let i=0,e=this.bones.length;i<e;i++){const e=this.bones[i];e&&(e.parent&&e.parent.isBone?(e.matrix.copy(e.parent.matrixWorld).invert(),e.matrix.multiply(e.matrixWorld)):e.matrix.copy(e.matrixWorld),e.matrix.decompose(e.position,e.quaternion,e.scale))}}update(){const e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let i=0,r=e.length;i<r;i++){const r=e[i]?e[i].matrixWorld:Jl;Kl.multiplyMatrices(r,t[i]),Kl.toArray(n,16*i)}null!==r&&(r.needsUpdate=!0)}clone(){return new Ql(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(4*this.bones.length);e=lr(e),e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const n=new Zl(t,e,e,qe,Ve);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this.boneTextureSize=e,this}getBoneByName(e){for(let i=0,t=this.bones.length;i<t;i++){const t=this.bones[i];if(t.name===e)return t}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let i=0,n=e.bones.length;i<n;i++){let n=t[e.bones[i]];void 0===n&&(n=new Yl),this.bones.push(n),this.boneInverses.push((new Mi).fromArray(e.boneInverses[i])
vendor: 4,096 bytes, line 2
2)}return this.init(),this}toJSON(){const data={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};data.uuid=this.uuid;const e=this.bones,t=this.boneInverses;for(let i=0,n=e.length;i<n;i++){const n=e[i];data.bones.push(n.uuid);const r=t[i];data.boneInverses.push(r.toArray())}return data}}class eu extends Ma{constructor(e,t,n,r=1){super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=r}copy(source){return super.copy(source),this.meshPerAttribute=source.meshPerAttribute,this}toJSON(){const data=super.toJSON();return data.meshPerAttribute=this.meshPerAttribute,data.isInstancedBufferAttribute=!0,data}}const tu=new Mi,nu=new Mi,ru=[],iu=new Jr,au=new Mi,su=new cs,ou=new vi;class cu extends cs{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new eu(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let i=0;i<n;i++)this.setMatrixAt(i,au)}computeBoundingBox(){const e=this.geometry,t=this.count;null===this.boundingBox&&(this.boundingBox=new Jr),null===e.boundingBox&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let i=0;i<t;i++)this.getMatrixAt(i,tu),iu.copy(e.boundingBox).applyMatrix4(tu),this.boundingBox.union(iu)}computeBoundingSphere(){const e=this.geometry,t=this.count;null===this.boundingSphere&&(this.boundingSphere=new vi),null===e.boundingSphere&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let i=0;i<t;i++)this.getMatrixAt(i,tu),ou.copy(e.boundingSphere).applyMatrix4(tu),this.boundingSphere.union(ou)}copy(source,e){return super.copy(source,e),this.instanceMatrix.copy(source.instanceMatrix),null!==source.instanceColor&&(this.instanceColor=source.instanceColor.clone()),this.count=source.count,null!==source.boundingBox&&(this.boundingBox=source.boundingBox.clone()),null!==source.boundingSphere&&(this.boundingSphere=source.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}raycast(e,t){const n=this.matrixWorld,r=this.count;if(su.geometry=this.geometry,su.material=this.material,void 0!==su.material&&(null===this.boundingSphere&&this.computeBoundingSphere(),ou.copy(this.boundingSphere),ou.applyMatrix4(n),!1!==e.ray.intersectsSphere(ou)))for(let o=0;o<r;o++){this.getMatrixAt(o,tu),nu.multiplyMatrices(n,tu),su.matrixWorld=nu,su.raycast(e,ru);for(let i=0,e=ru.length;i<e;i++){const e=ru[i];e.instanceId=o,e.object=this,t.push(e)}ru.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new eu(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class lu extends va{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new pa(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.linewidth=source.linewidth,this.linecap=source.linecap,this.linejoin=source.linejoin,this.fog=source.fog,this}}const uu=new Yr,hu=new Yr,fu=new Mi,du=new Ei,pu=new vi;class mu extends Ki{constructor(e=new Wa,t=new lu){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(source,e){return super.copy(source,e),this.material=Array.isArray(source.material)?source.material.slice():source.material,this.geometry=source.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let i=1,e=t.count;i<e;i++)uu.fromBufferAttribute(t,i-1),hu.fromBufferAttribute(t,i),n[i]=n[i-1],n[i]+=uu.distanceTo(hu);e.setAttribute("lineDistance",new Na(n,1))}return this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,o=e.params.Line.threshold,c=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),pu.copy(n.boundingSphere),pu.applyM
vendor: 14,002 bytes, line 2
2atrix4(r),pu.radius+=o,!1===e.ray.intersectsSphere(pu))return;fu.copy(r).invert(),du.copy(e.ray).applyMatrix4(fu);const l=o/((this.scale.x+this.scale.y+this.scale.z)/3),h=l*l,f=new Yr,d=new Yr,m=new Yr,v=new Yr,_=this.isLineSegments?2:1,y=n.index,w=n.attributes.position;if(null!==y){for(let i=Math.max(0,c.start),n=Math.min(y.count,c.start+c.count)-1;i<n;i+=_){const a=y.getX(i),b=y.getX(i+1);f.fromBufferAttribute(w,a),d.fromBufferAttribute(w,b);if(du.distanceSqToSegment(f,d,v,m)>h)continue;v.applyMatrix4(this.matrixWorld);const n=e.ray.origin.distanceTo(v);n<e.near||n>e.far||t.push({distance:n,point:m.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}else{for(let i=Math.max(0,c.start),n=Math.min(w.count,c.start+c.count)-1;i<n;i+=_){f.fromBufferAttribute(w,i),d.fromBufferAttribute(w,i+1);if(du.distanceSqToSegment(f,d,v,m)>h)continue;v.applyMatrix4(this.matrixWorld);const n=e.ray.origin.distanceTo(v);n<e.near||n>e.far||t.push({distance:n,point:m.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}const gu=new Yr,vu=new Yr;class _u extends mu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let i=0,e=t.count;i<e;i+=2)gu.fromBufferAttribute(t,i),vu.fromBufferAttribute(t,i+1),n[i]=0===i?0:n[i-1],n[i+1]=n[i]+gu.distanceTo(vu);e.setAttribute("lineDistance",new Na(n,1))}return this}}class yu extends mu{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class bu extends va{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new pa(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.alphaMap=source.alphaMap,this.size=source.size,this.sizeAttenuation=source.sizeAttenuation,this.fog=source.fog,this}}const wu=new Mi,xu=new Ei,Su=new vi,Tu=new Yr;class Eu extends Ki{constructor(e=new Wa,t=new bu){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(source,e){return super.copy(source,e),this.material=Array.isArray(source.material)?source.material.slice():source.material,this.geometry=source.geometry,this}raycast(e,t){const n=this.geometry,r=this.matrixWorld,o=e.params.Points.threshold,c=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Su.copy(n.boundingSphere),Su.applyMatrix4(r),Su.radius+=o,!1===e.ray.intersectsSphere(Su))return;wu.copy(r).invert(),xu.copy(e.ray).applyMatrix4(wu);const l=o/((this.scale.x+this.scale.y+this.scale.z)/3),h=l*l,f=n.index,d=n.attributes.position;if(null!==f){for(let i=Math.max(0,c.start),n=Math.min(f.count,c.start+c.count);i<n;i++){const a=f.getX(i);Tu.fromBufferAttribute(d,a),Mu(Tu,a,h,r,e,t,this)}}else{for(let i=Math.max(0,c.start),n=Math.min(d.count,c.start+c.count);i<n;i++)Tu.fromBufferAttribute(d,i),Mu(Tu,i,h,r,e,t,this)}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function Mu(e,t,n,r,o,c,object){const l=xu.distanceSqToPoint(e);if(l<n){const n=new Yr;xu.closestPointToPoint(e,n),n.applyMatrix4(r);const h=o.ray.origin.distanceTo(n);if(h<o.near||h>o.far)return;c.push({distance:h,distanceToRay:Math.sqrt(l),point:n,index:t,face:null,object:object})}}class Au extends Br{constructor(video,e,t,n,r,o,c,l,h){super(video,e,t,n,r,o,c,l,h),this.isVideoTexture=!0,this.minFilter=void 0!==o?o:Oe,this.magFilter=void 0!==r?r:Oe,this.generateMipmaps=!1;const f=this;"requestVideoFrameCallback"in video&&video.requestVideoFrameCallback((function e(){f.needsUpdate=!0,video.requestVideoFrameCallback(e)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const video=this.image;!1==="requestVideoFrameCallback"in video&&video.readyState>=video.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class Cu extends Br{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=Me,this.minFilter=Me,this.generateMipmaps=!1,this.needsUpdate=!0}}class Ru extends Br{constructor(e,t,n,r,o,c,l,h,f,d,m,v){super(null,c,l,h,f,d,r,o,m,v),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class ku extends Ru{constructor(e,t,n,r,o,c){super(e,t,n,o,c),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=Te}}class Ou extends Ru{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,_e),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class Pu extends Br{constructor(canvas,e,t,n,r,o,c,l,h){super(canvas,e,t,n,r,o,c,l,h),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Lu{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(u,e){const t=this.getUtoTmapping(u);return this.getPoint(t,e)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),o=0;t.push(0);for(let p=1;p<=e;p++)n=this.getPoint(p/e),o+=n.distanceTo(r),t.push(o),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(u,e){const t=this.getLengths();let i=0;const n=t.length;let r;r=e||u*t[n-1];let o,c=0,l=n-1;for(;c<=l;)if(i=Math.floor(c+(l-c)/2),o=t[i]-r,o<0)c=i+1;else{if(!(o>0)){l=i;break}l=i-1}if(i=l,t[i]===r)return i/(n-1);const h=t[i];return(i+(r-h)/(t[i+1]-h))/(n-1)}getTangent(e,t){let n=e-1e-4,r=e+1e-4;n<0&&(n=0),r>1&&(r=1);const o=this.getPoint(n),c=this.getPoint(r),l=t||(o.isVector2?new mr:new Yr);return l.copy(c).sub(o).normalize(),l}getTangentAt(u,e){const t=this.getUtoTmapping(u);return this.getTangent(t,e)}computeFrenetFrames(e,t){const n=new Yr,r=[],o=[],c=[],l=new Yr,h=new Mi;for(let i=0;i<=e;i++){const u=i/e;r[i]=this.getTangentAt(u,new Yr)}o[0]=new Yr,c[0]=new Yr;let f=Number.MAX_VALUE;const d=Math.abs(r[0].x),m=Math.abs(r[0].y),v=Math.abs(r[0].z);d<=f&&(f=d,n.set(1,0,0)),m<=f&&(f=m,n.set(0,1,0)),v<=f&&n.set(0,0,1),l.crossVectors(r[0],n).normalize(),o[0].crossVectors(r[0],l),c[0].crossVectors(r[0],o[0]);for(let i=1;i<=e;i++){if(o[i]=o[i-1].clone(),c[i]=c[i-1].clone(),l.crossVectors(r[i-1],r[i]),l.length()>Number.EPSILON){l.normalize();const e=Math.acos(ar(r[i-1].dot(r[i]),-1,1));o[i].applyMatrix4(h.makeRotationAxis(l,e))}c[i].crossVectors(r[i],o[i])}if(!0===t){let t=Math.acos(ar(o[0].dot(o[e]),-1,1));t/=e,r[0].dot(l.crossVectors(o[0],o[e]))>0&&(t=-t);for(let i=1;i<=e;i++)o[i].applyMatrix4(h.makeRotationAxis(r[i],t*i)),c[i].crossVectors(r[i],o[i])}return{tangents:r,normals:o,binormals:c}}clone(){return(new this.constructor).copy(this)}copy(source){return this.arcLengthDivisions=source.arcLengthDivisions,this}toJSON(){const data={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return data.arcLengthDivisions=this.arcLengthDivisions,data.type=this.type,data}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Iu extends Lu{constructor(e=0,t=0,n=1,r=1,o=0,c=2*Math.PI,l=!1,h=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=o,this.aEndAngle=c,this.aClockwise=l,this.aRotation=h}getPoint(e,t){const n=t||new mr,r=2*Math.PI;let o=this.aEndAngle-this.aStartAngle;const c=Math.abs(o)<Number.EPSILON;for(;o<0;)o+=r;for(;o>r;)o-=r;o<Number.EPSILON&&(o=c?0:r),!0!==this.aClockwise||c||(o===r?o=-r:o-=r);const l=this.aStartAngle+e*o;let h=this.aX+this.xRadius*Math.cos(l),f=this.aY+this.yRadius*Math.sin(l);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=h-this.aX,r=f-this.aY;h=n*e-r*t+this.aX,f=n*t+r*e+this.aY}return n.set(h,f)}copy(source){return super.copy(source),this.aX=source.aX,this.aY=source.aY,this.xRadius=source.xRadius,this.yRadius=source.yRadius,this.aStartAngle=source.aStartAngle,this.aEndAngle=source.aEndAngle,this.aClockwise=source.aClockwise,this.aRotation=source.aRotation,this}toJSON(){const data=super.toJSON();return data.aX=this.aX,data.aY=this.aY,data.xRadius=this.xRadius,data.yRadius=this.yRadius,data.aStartAngle=this.aStartAngle,data.aEndAngle=this.aEndAngle,data.aClockwise=this.aClockwise,data.aRotation=this.aRotation,data}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}class Nu extends Iu{constructor(e,t,n,r,o,c){super(e,t,n,n,r,o,c),this.isArcCurve=!0,this.type="ArcCurve"}}function Du(){let e=0,t=0,n=0,r=0;function o(o,c,l,h){e=o,t=l,n=-3*o+3*c-2*l-h,r=2*o-2*c+l+h}return{initCatmullRom:function(e,t,n,r,c){o(t,n,c*(n-e),c*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,c,l,h){let f=(t-e)/c-(n-e)/(c+l)+(n-t)/l,d=(n-t)/l-(r-t)/(l+h)+(r-n)/h;f*=l,d*=l,o(t,n,f,d)},calc:function(o){const c=o*o;return e+t*o+n*c+r*(c*o)}}}const Uu=new Yr,Fu=new Du,Bu=new Du,zu=new Du;class Hu extends Lu{constructor(e=[],t=!1,n="centripetal",r=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new Yr){const n=t,r=this.points,o=r.length,p=(o-(this.closed?0:1))*e;let c,l,h=Math.floor(p),f=p-h;this.closed?h+=h>0?0:(Math.floor(Math.abs(h)/o)+1)*o:0===f&&h===o-1&&(h=o-2,f=1),this.closed||h>0?c=r[(h-1)%o]:(Uu.subVectors(r[0],r[1]).add(r[0]),c=Uu);const d=r[h%o],m=r[(h+1)%o];if(this.closed||h+2<o?l=r[(h+2)%o]:(Uu.subVectors(r[o-1],r[o-2]).add(r[o-1]),l=Uu),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(c.distanceToSquared(d),e),n=Math.pow(d.distanceToSquared(m),e),r=Math.pow(m.distanceToSquared(l),e);n<1e-4&&(n=1),t<1e-4&&(t=n),r<1e-4&&(r=n),Fu.initNonuniformCatmullRom(c.x,d.x,m.x,l.x,t,n,r),Bu.initNonuniformCatmullRom(c.y,d.y,m.y,l.y,t,n,r),zu.initNonuniformCatmullRom(c.z,d.z,m.z,l.z,t,n,r)}else"catmullrom"===this.curveType&&(Fu.initCatmullRom(c.x,d.x,m.x,l.x,this.tension),Bu.initCatmullRom(c.y,d.y,m.y,l.y,this.tension),zu.initCatmullRom(c.z,d.z,m.z,l.z,this.tension));return n.set(Fu.calc(f),Bu.calc(f),zu.calc(f)),n}copy(source){super.copy(source),this.points=[];for(let i=0,e=source.points.length;i<e;i++){const e=source.points[i];this.points.push(e.clone())}return this.closed=source.closed,this.curveType=source.curveType,this.tension=source.tension,this}toJSON(){const data=super.toJSON();data.points=[];for(let i=0,e=this.points.length;i<e;i++){const e=this.points[i];data.points.push(e.toArray())}return data.closed=this.closed,data.curveType=this.curveType,data.tension=this.tension,data}fromJSON(e){super.fromJSON(e),this.points=[];for(let i=0,t=e.points.length;i<t;i++){const t=e.points[i];this.points.push((new Yr).fromArray(t))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function Vu(e,t,n,r,o){const c=.5*(r-t),l=.5*(o-n),h=e*e;return(2*n-2*r+c+l)*(e*h)+(-3*n+3*r-2*c-l)*h+c*e+n}function ju(e,t,n,r){return function(e,p){const t=1-e;return t*t*p}(e,t)+function(e,p){return 2*(1-e)*e*p}(e,n)+function(e,p){return e*e*p}(e,r)}function Wu(e,t,n,r,o){return function(e,p){const t=1-e;return t*t*t*p}(e,t)+function(e,p){const t=1-e;return 3*t*t*e*p}(e,n)+function(e,p){return 3*(1-e)*e*e*p}(e,r)+function(e,p){return e*e*e*p}(e,o)}class Gu extends Lu{constructor(e=new mr,t=new mr,n=new mr,r=new mr){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new mr){const n=t,r=this.v0,o=this.v1,c=this.v2,l=this.v3;return n.set(Wu(e,r.x,o.x,c.x,l.x),Wu(e,r.y,o.y,c.y,l.y)),n}copy(source){return super.copy(source),this.v0.copy(source.v0),this.v1.copy(source.v1),this.v2.copy(source.v2),this.v3.copy(source.v3),this}toJSON(){const data=super.toJSON();return data.v0=this.v0.toArray(),data.v1=this.v1.toArray(),data.v2=this.v2.toArray(),data.v3=this.v3.toArray(),data}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class $u extends Lu{constructor(e=new Yr,t=new Yr,n=new Yr,r=new Yr){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=r}getPoint(e,t=new Yr){const n=t,r=this.v0,o=this.v1,c=this.v2,l=this.v3;return n.set(Wu(e,r.x,o.x,c.x,l.x),Wu(e,r.y,o.y,c.y,l.y),Wu(e,r.z,o.z,c.z,l.z)),n}copy(source){return super.copy(source),this.v0.copy(source.v0),this.v1.copy(source.v1),this.v2.copy(source.v2),this.v3.copy(source.v3),this}toJSON(){const data=super.toJSON();return data.v0=this.v0.toArray(),data.v1=this.v1.toArray(),data.v2=this.v2.toArray(),data.v3=this.v3.toArray(),data}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class Xu extends Lu{constructor(e=new mr,t=new mr){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new mr){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(u,e){return this.getPoint(u,e)}
vendor: 4,598 bytes, line 2
2getTangent(e,t=new mr){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(u,e){return this.getTangent(u,e)}copy(source){return super.copy(source),this.v1.copy(source.v1),this.v2.copy(source.v2),this}toJSON(){const data=super.toJSON();return data.v1=this.v1.toArray(),data.v2=this.v2.toArray(),data}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class qu extends Lu{constructor(e=new Yr,t=new Yr){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new Yr){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(u,e){return this.getPoint(u,e)}getTangent(e,t=new Yr){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(u,e){return this.getTangent(u,e)}copy(source){return super.copy(source),this.v1.copy(source.v1),this.v2.copy(source.v2),this}toJSON(){const data=super.toJSON();return data.v1=this.v1.toArray(),data.v2=this.v2.toArray(),data}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Yu extends Lu{constructor(e=new mr,t=new mr,n=new mr){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new mr){const n=t,r=this.v0,o=this.v1,c=this.v2;return n.set(ju(e,r.x,o.x,c.x),ju(e,r.y,o.y,c.y)),n}copy(source){return super.copy(source),this.v0.copy(source.v0),this.v1.copy(source.v1),this.v2.copy(source.v2),this}toJSON(){const data=super.toJSON();return data.v0=this.v0.toArray(),data.v1=this.v1.toArray(),data.v2=this.v2.toArray(),data}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Zu extends Lu{constructor(e=new Yr,t=new Yr,n=new Yr){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new Yr){const n=t,r=this.v0,o=this.v1,c=this.v2;return n.set(ju(e,r.x,o.x,c.x),ju(e,r.y,o.y,c.y),ju(e,r.z,o.z,c.z)),n}copy(source){return super.copy(source),this.v0.copy(source.v0),this.v1.copy(source.v1),this.v2.copy(source.v2),this}toJSON(){const data=super.toJSON();return data.v0=this.v0.toArray(),data.v1=this.v1.toArray(),data.v2=this.v2.toArray(),data}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Ku extends Lu{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new mr){const n=t,r=this.points,p=(r.length-1)*e,o=Math.floor(p),c=p-o,l=r[0===o?o:o-1],h=r[o],f=r[o>r.length-2?r.length-1:o+1],d=r[o>r.length-3?r.length-1:o+2];return n.set(Vu(c,l.x,h.x,f.x,d.x),Vu(c,l.y,h.y,f.y,d.y)),n}copy(source){super.copy(source),this.points=[];for(let i=0,e=source.points.length;i<e;i++){const e=source.points[i];this.points.push(e.clone())}return this}toJSON(){const data=super.toJSON();data.points=[];for(let i=0,e=this.points.length;i<e;i++){const e=this.points[i];data.points.push(e.toArray())}return data}fromJSON(e){super.fromJSON(e),this.points=[];for(let i=0,t=e.points.length;i<t;i++){const t=e.points[i];this.points.push((new mr).fromArray(t))}return this}}var Ju=Object.freeze({__proto__:null,ArcCurve:Nu,CatmullRomCurve3:Hu,CubicBezierCurve:Gu,CubicBezierCurve3:$u,EllipseCurve:Iu,LineCurve:Xu,LineCurve3:qu,QuadraticBezierCurve:Yu,QuadraticBezierCurve3:Zu,SplineCurve:Ku});class Qu extends Lu{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){const n=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new Ju[n](t,e))}return this}getPoint(e,t){const n=e*this.getLength(),r=this.getCurveLengths();let i=0;for(;i<r.length;){if(r[i]>=n){const e=r[i]-n,o=this.curves[i],c=o.getLength(),u=0===c?0:1-e/c;return o.getPointAt(u,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let i=0,n=this.curves.length;i<n;i++)t+=this.curves[i].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let i=0;i<=e;i++)t.push(this.getPoint(i/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let n;for(let i=0,r=this.curves;i<r.length;i++){const o=r[i],c=o.isEllipseCurve?2*e:o.isLineCurve||o.isLineCurve3?1:o.isS
vendor: 4,296 bytes, line 2
2plineCurve?e*o.points.length:e,l=o.getPoints(c);for(let e=0;e<l.length;e++){const r=l[e];n&&n.equals(r)||(t.push(r),n=r)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(source){super.copy(source),this.curves=[];for(let i=0,e=source.curves.length;i<e;i++){const e=source.curves[i];this.curves.push(e.clone())}return this.autoClose=source.autoClose,this}toJSON(){const data=super.toJSON();data.autoClose=this.autoClose,data.curves=[];for(let i=0,e=this.curves.length;i<e;i++){const e=this.curves[i];data.curves.push(e.toJSON())}return data}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let i=0,t=e.curves.length;i<t;i++){const t=e.curves[i];this.curves.push((new Ju[t.type]).fromJSON(t))}return this}}class eh extends Qu{constructor(e){super(),this.type="Path",this.currentPoint=new mr,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let i=1,t=e.length;i<t;i++)this.lineTo(e[i].x,e[i].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new Xu(this.currentPoint.clone(),new mr(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,r){const o=new Yu(this.currentPoint.clone(),new mr(e,t),new mr(n,r));return this.curves.push(o),this.currentPoint.set(n,r),this}bezierCurveTo(e,t,n,r,o,c){const l=new Gu(this.currentPoint.clone(),new mr(e,t),new mr(n,r),new mr(o,c));return this.curves.push(l),this.currentPoint.set(o,c),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),n=new Ku(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,r,o,c){const l=this.currentPoint.x,h=this.currentPoint.y;return this.absarc(e+l,t+h,n,r,o,c),this}absarc(e,t,n,r,o,c){return this.absellipse(e,t,n,n,r,o,c),this}ellipse(e,t,n,r,o,c,l,h){const f=this.currentPoint.x,d=this.currentPoint.y;return this.absellipse(e+f,t+d,n,r,o,c,l,h),this}absellipse(e,t,n,r,o,c,l,h){const f=new Iu(e,t,n,r,o,c,l,h);if(this.curves.length>0){const e=f.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(f);const d=f.getPoint(1);return this.currentPoint.copy(d),this}copy(source){return super.copy(source),this.currentPoint.copy(source.currentPoint),this}toJSON(){const data=super.toJSON();return data.currentPoint=this.currentPoint.toArray(),data}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class nh extends Wa{constructor(e=[new mr(0,-.5),new mr(.5,0),new mr(0,.5)],t=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),r=ar(r,0,2*Math.PI);const o=[],c=[],l=[],h=[],f=[],d=1/t,m=new Yr,v=new mr,_=new Yr,y=new Yr,w=new Yr;let x=0,S=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:x=e[t+1].x-e[t].x,S=e[t+1].y-e[t].y,_.x=1*S,_.y=-x,_.z=0*S,w.copy(_),_.normalize(),h.push(_.x,_.y,_.z);break;case e.length-1:h.push(w.x,w.y,w.z);break;default:x=e[t+1].x-e[t].x,S=e[t+1].y-e[t].y,_.x=1*S,_.y=-x,_.z=0*S,y.copy(_),_.x+=w.x,_.y+=w.y,_.z+=w.z,_.normalize(),h.push(_.x,_.y,_.z),w.copy(y)}for(let i=0;i<=t;i++){const o=n+i*d*r,_=Math.sin(o),y=Math.cos(o);for(let n=0;n<=e.length-1;n++){m.x=e[n].x*_,m.y=e[n].y,m.z=e[n].x*y,c.push(m.x,m.y,m.z),v.x=i/t,v.y=n/(e.length-1),l.push(v.x,v.y);const r=h[3*n+0]*_,o=h[3*n+1],d=h[3*n+0]*y;f.push(r,o,d)}}for(let i=0;i<t;i++)for(let t=0;t<e.length-1;t++){const base=t+i*e.length,a=base,b=base+e.length,n=base+e.length+1,r=base+1;o.push(a,b,r),o.push(n,r,b)}this.setIndex(o),this.setAttribute("position",new Na(c,3)),this.setAttribute("uv",new Na(l,2)),this.setAttribute("normal",new Na(f,3))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new nh(data.points,data.segments,data.phiStart,data.phiLength)}}class rh extends nh{constructor(e=1,t=1,n=4,r=8){const path=new eh;path.absarc(0,-t/2,e,1.5*Math.PI,0),path.absarc(0,t/2,e,0,.5*Math.PI),super(path.getPoints(n),r),this.type="CapsuleGeometry",this.parameters={radius:e,length:t,capSegments:n,radialSegments:r}}static fromJSON(data){return new rh(data.radius,data.length,data.capSegments,data.radialSegments)}}class ih extends Wa{constructor(e=1,t=32,n=0,r=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radiu
vendor: 2,472 bytes, line 2
2s:e,segments:t,thetaStart:n,thetaLength:r},t=Math.max(3,t);const o=[],c=[],l=[],h=[],f=new Yr,d=new mr;c.push(0,0,0),l.push(0,0,1),h.push(.5,.5);for(let s=0,i=3;s<=t;s++,i+=3){const o=n+s/t*r;f.x=e*Math.cos(o),f.y=e*Math.sin(o),c.push(f.x,f.y,f.z),l.push(0,0,1),d.x=(c[i]/e+1)/2,d.y=(c[i+1]/e+1)/2,h.push(d.x,d.y)}for(let i=1;i<=t;i++)o.push(i,i+1,0);this.setIndex(o),this.setAttribute("position",new Na(c,3)),this.setAttribute("normal",new Na(l,3)),this.setAttribute("uv",new Na(h,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new ih(data.radius,data.segments,data.thetaStart,data.thetaLength)}}class ah extends Wa{constructor(e=1,t=1,n=1,r=32,o=1,c=!1,l=0,h=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:o,openEnded:c,thetaStart:l,thetaLength:h};const f=this;r=Math.floor(r),o=Math.floor(o);const d=[],m=[],v=[],_=[];let y=0;const w=[],x=n/2;let S=0;function T(n){const o=y,c=new mr,w=new Yr;let T=0;const E=!0===n?e:t,M=!0===n?1:-1;for(let e=1;e<=r;e++)m.push(0,x*M,0),v.push(0,M,0),_.push(.5,.5),y++;const A=y;for(let e=0;e<=r;e++){const t=e/r*h+l,n=Math.cos(t),o=Math.sin(t);w.x=E*o,w.y=x*M,w.z=E*n,m.push(w.x,w.y,w.z),v.push(0,M,0),c.x=.5*n+.5,c.y=.5*o*M+.5,_.push(c.x,c.y),y++}for(let e=0;e<r;e++){const t=o+e,i=A+e;!0===n?d.push(i,i+1,t):d.push(i+1,i,t),T+=3}f.addGroup(S,T,!0===n?1:2),S+=T}!function(){const c=new Yr,T=new Yr;let E=0;const M=(t-e)/n;for(let f=0;f<=o;f++){const d=[],S=f/o,E=S*(t-e)+e;for(let e=0;e<=r;e++){const u=e/r,t=u*h+l,o=Math.sin(t),f=Math.cos(t);T.x=E*o,T.y=-S*n+x,T.z=E*f,m.push(T.x,T.y,T.z),c.set(o,M,f).normalize(),v.push(c.x,c.y,c.z),_.push(u,1-S),d.push(y++)}w.push(d)}for(let e=0;e<r;e++)for(let t=0;t<o;t++){const a=w[t][e],b=w[t+1][e],n=w[t+1][e+1],r=w[t][e+1];d.push(a,b,r),d.push(b,n,r),E+=6}f.addGroup(S,E,0),S+=E}(),!1===c&&(e>0&&T(!0),t>0&&T(!1)),this.setIndex(d),this.setAttribute("position",new Na(m,3)),this.setAttribute("normal",new Na(v,3)),this.setAttribute("uv",new Na(_,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new ah(data.radiusTop,data.radiusBottom,data.height,data.radialSegments,data.heightSegments,data.openEnded,data.thetaStart,data.thetaLength)}}class sh extends ah{constructor(e=1,t=1,n=32,r=1,o=!1,c=0,l=2*Math.PI){super(0,e,t,n,r,o,c,l),this.type="C
2oneGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:o,thetaStart:c,thetaLength:l}}static fromJSON(data){return new sh(data.radius,data.height,data.radialSegments,data.heightSegments,data.openEnded,data.thetaStart,data.thetaLength)}}class oh extends Wa{constructor(e=[],t=[],n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};const o=[],c=[];function l(a,b,e,t){const n=t+1,r=[];for(let i=0;i<=n;i++){r[i]=[];const t=a.clone().lerp(e,i/n),o=b.clone().lerp(e,i/n),c=n-i;for(let e=0;e<=c;e++)r[i][e]=0===e&&i===n?t:t.clone().lerp(o,e/c)}for(let i=0;i<n;i++)for(let e=0;e<2*(n-i)-1;e++){const t=Math.floor(e/2);e%2==0?(h(r[i][t+1]),h(r[i+1][t]),h(r[i][t])):(h(r[i][t+1]),h(r[i+1][t+1]),h(r[i+1][t]))}}function h(e){o.push(e.x,e.y,e.z)}function f(t,n){const r=3*t;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function d(e,t,n,r){r<0&&1===e.x&&(c[t]=e.x-1),0===n.x&&0===n.z&&(c[t]=r/2/Math.PI+.5)}function m(e){return Math.atan2(e.z,-e.x)}!function(e){const a=new Yr,b=new Yr,n=new Yr;for(let i=0;i<t.length;i+=3)f(t[i+0],a),f(t[i+1],b),f(t[i+2],n),l(a,b,n,e)}(r),function(e){const t=new Yr;for(let i=0;i<o.length;i+=3)t.x=o[i+0],t.y=o[i+1],t.z=o[i+2],t.normalize().multiplyScalar(e),o[i+0]=t.x,o[i+1]=t.y,o[i+2]=t.z}(n),function(){const e=new Yr;for(let i=0;i<o.length;i+=3){e.x=o[i+0],e.y=o[i+1],e.z=o[i+2];const u=m(e)/2/Math.PI+.5,n=(t=e,Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))/Math.PI+.5);c.push(u,1-n)}var t;(function(){const a=new Yr,b=new Yr,e=new Yr,t=new Yr,n=new mr,r=new mr,l=new mr;for(let i=0,h=0;i<o.length;i+=9,h+=6){a.set(o[i+0],o[i+1],o[i+2]),b.set(o[i+3],o[i+4],o[i+5]),e.set(o[i+6],o[i+7],o[i+8]),n.set(c[h+0],c[h+1]),r.set(c[h+2],c[h+3]),l.set(c[h+4],c[h+5]),t.copy(a).add(b).add(e).divideScalar(3);const f=m(t);d(n,h+0,a,f),d(r,h+2,b,f),d(l,h+4,e,f)}})(),function(){for(let i=0;i<c.length;i+=6){const e=c[i+0],t=c[i+2],n=c[i+4],r=Math.max(e,t,n),o=Math.min(e,t,n);r>.9&&o<.1&&(e<.2&&(c[i+0]+=1),t<.2&&(c[i+2]+=1),n<.2&&(c[i+4]+=1))}}()}(),this.setAttribute("position",new Na(o,3)),this.setAttribute("normal",new Na(o.slice(),3)),this.setAttribute("uv",new Na(c,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new oh(data.vertices,data.indices,data.radius,data.details)}}class ch extends oh{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2,r=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,
vendor: 4,172 bytes, line 2
219,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(data){return new ch(data.radius,data.detail)}}const lh=new Yr,uh=new Yr,hh=new Yr,fh=new la;class dh extends Wa{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),o=Math.cos(nr*t),c=e.getIndex(),l=e.getAttribute("position"),h=c?c.count:l.count,f=[0,0,0],d=["a","b","c"],m=new Array(3),v={},_=[];for(let i=0;i<h;i+=3){c?(f[0]=c.getX(i),f[1]=c.getX(i+1),f[2]=c.getX(i+2)):(f[0]=i,f[1]=i+1,f[2]=i+2);const{a:a,b:b,c:e}=fh;if(a.fromBufferAttribute(l,f[0]),b.fromBufferAttribute(l,f[1]),e.fromBufferAttribute(l,f[2]),fh.getNormal(hh),m[0]=`${Math.round(a.x*r)},${Math.round(a.y*r)},${Math.round(a.z*r)}`,m[1]=`${Math.round(b.x*r)},${Math.round(b.y*r)},${Math.round(b.z*r)}`,m[2]=`${Math.round(e.x*r)},${Math.round(e.y*r)},${Math.round(e.z*r)}`,m[0]!==m[1]&&m[1]!==m[2]&&m[2]!==m[0])for(let e=0;e<3;e++){const t=(e+1)%3,n=m[e],r=m[t],c=fh[d[e]],l=fh[d[t]],h=`${n}_${r}`,y=`${r}_${n}`;y in v&&v[y]?(hh.dot(v[y].normal)<=o&&(_.push(c.x,c.y,c.z),_.push(l.x,l.y,l.z)),v[y]=null):h in v||(v[h]={index0:f[e],index1:f[t],normal:hh.clone()})}}for(const e in v)if(v[e]){const{index0:t,index1:n}=v[e];lh.fromBufferAttribute(l,t),uh.fromBufferAttribute(l,n),_.push(lh.x,lh.y,lh.z),_.push(uh.x,uh.y,uh.z)}this.setAttribute("position",new Na(_,3))}}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}}class ph extends eh{constructor(e){super(e),this.uuid=ir(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let i=0,n=this.holes.length;i<n;i++)t[i]=this.holes[i].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(source){super.copy(source),this.holes=[];for(let i=0,e=source.holes.length;i<e;i++){const e=source.holes[i];this.holes.push(e.clone())}return this}toJSON(){const data=super.toJSON();data.uuid=this.uuid,data.holes=[];for(let i=0,e=this.holes.length;i<e;i++){const e=this.holes[i];data.holes.push(e.toJSON())}return data}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let i=0,t=e.holes.length;i<t;i++){const t=e.holes[i];this.holes.push((new eh).fromJSON(t))}return this}}const mh=function(data,e,t=2){const n=e&&e.length,r=n?e[0]*t:data.length;let o=gh(data,0,r,t,!0);const c=[];if(!o||o.next===o.prev)return c;let l,h,f,d,m,v,_;if(n&&(o=function(data,e,t,n){const r=[];let i,o,c,l,h;for(i=0,o=e.length;i<o;i++)c=e[i]*n,l=i<o-1?e[i+1]*n:data.length,h=gh(data,c,l,n,!1),h===h.next&&(h.steiner=!0),r.push(Ah(h));for(r.sort(Sh),i=0;i<r.length;i++)t=Th(r[i],t);return t}(data,e,o,t)),data.length>80*t){l=f=data[0],h=d=data[1];for(let i=t;i<r;i+=t)m=data[i],v=data[i+1],m<l&&(l=m),v<h&&(h=v),m>f&&(f=m),v>d&&(d=v);_=Math.max(f-l,d-h),_=0!==_?32767/_:0}return _h(o,c,t,l,h,_,0),c};function gh(data,e,t,n,r){let i,o;if(r===function(data,e,t,n){let r=0;for(let i=e,o=t-n;i<t;i+=n)r+=(data[o]-data[i])*(data[i+1]+data[o+1]),o=i;return r}(data,e,t,n)>0)for(i=e;i<t;i+=n)o=Dh(i,data[i],data[i+1],o);else for(i=t-n;i>=e;i-=n)o=Dh(i,data[i],data[i+1],o);return o&&kh(o,o.next)&&(Uh(o),o=o.next),o}function vh(e,t){if(!e)return e;t||(t=e);let n,p=e;do{if(n=!1,p.steiner||!kh(p,p.next)&&0!==area(p.prev,p,p.next))p=p.next;else{if(Uh(p),p=t=p.prev,p===p.next)break;n=!0}}while(n||p!==t);return t}function _h(e,t,n,r,o,c,l){if(!e)return;!l&&c&&function(e,t,n,r){let p=e;do{0===p.z&&(p.z=Mh(p.x,p.y,t,n,r)),p.prevZ=p.prev,p.nextZ=p.next,p=p.next}while(p!==e);p.prevZ.nextZ=null,p.prevZ=null,function(e){let i,p,q,t,n,r,o,c,l=1;do{for(p=e,e=null,n=null,r=0;p;){for(r++,q=p,o=0,i=0;i<l&&(o++,q=q.nextZ,q);i++);for(c=l;o>0||c>0&&q;)0!==o&&(0===c||!q||p.z<=q.z)?(t=p,p=p.nextZ,o--):(t=q,q=q.nextZ,c--),n?n.nextZ=t:e=t,t.prevZ=n,n=t;p=q}n.nextZ=null,l*=2}while(r>1)}(p)}(e,r,o,c);let h,f,d=e;for(;e.prev!==e.next;)if(h=e.prev,f=e.next,c?bh(e,r,o,c):yh(e))t.push(h.i/n|0),t.push(e.i/n|0),t.push(f.i/n|0),Uh(e),e=f.next,d=f.next;else if((e=f)===d){l?1===l?_h(e=wh(vh(e),t,n),t,n,r,o,c,2):2===l&&xh(e,t,n,r,o,c):_h(vh(e),t,n,r,o,c,1);break}}
vendor: 4,504 bytes, line 2
2function yh(e){const a=e.prev,b=e,t=e.next;if(area(a,b,t)>=0)return!1;const n=a.x,r=b.x,o=t.x,c=a.y,l=b.y,h=t.y,f=n<r?n<o?n:o:r<o?r:o,d=c<l?c<h?c:h:l<h?l:h,m=n>r?n>o?n:o:r>o?r:o,v=c>l?c>h?c:h:l>h?l:h;let p=t.next;for(;p!==a;){if(p.x>=f&&p.x<=m&&p.y>=d&&p.y<=v&&Ch(n,c,r,l,o,h,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function bh(e,t,n,r){const a=e.prev,b=e,o=e.next;if(area(a,b,o)>=0)return!1;const c=a.x,l=b.x,h=o.x,f=a.y,d=b.y,m=o.y,v=c<l?c<h?c:h:l<h?l:h,_=f<d?f<m?f:m:d<m?d:m,y=c>l?c>h?c:h:l>h?l:h,w=f>d?f>m?f:m:d>m?d:m,x=Mh(v,_,t,n,r),S=Mh(y,w,t,n,r);let p=e.prevZ,T=e.nextZ;for(;p&&p.z>=x&&T&&T.z<=S;){if(p.x>=v&&p.x<=y&&p.y>=_&&p.y<=w&&p!==a&&p!==o&&Ch(c,f,l,d,h,m,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,T.x>=v&&T.x<=y&&T.y>=_&&T.y<=w&&T!==a&&T!==o&&Ch(c,f,l,d,h,m,T.x,T.y)&&area(T.prev,T,T.next)>=0)return!1;T=T.nextZ}for(;p&&p.z>=x;){if(p.x>=v&&p.x<=y&&p.y>=_&&p.y<=w&&p!==a&&p!==o&&Ch(c,f,l,d,h,m,p.x,p.y)&&area(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;T&&T.z<=S;){if(T.x>=v&&T.x<=y&&T.y>=_&&T.y<=w&&T!==a&&T!==o&&Ch(c,f,l,d,h,m,T.x,T.y)&&area(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function wh(e,t,n){let p=e;do{const a=p.prev,b=p.next.next;!kh(a,b)&&Oh(a,p,p.next,b)&&Ih(a,b)&&Ih(b,a)&&(t.push(a.i/n|0),t.push(p.i/n|0),t.push(b.i/n|0),Uh(p),Uh(p.next),p=e=b),p=p.next}while(p!==e);return vh(p)}function xh(e,t,n,r,o,c){let a=e;do{let b=a.next.next;for(;b!==a.prev;){if(a.i!==b.i&&Rh(a,b)){let e=Nh(a,b);return a=vh(a,a.next),e=vh(e,e.next),_h(a,t,n,r,o,c,0),void _h(e,t,n,r,o,c,0)}b=b.next}a=a.next}while(a!==e)}function Sh(a,b){return a.x-b.x}function Th(e,t){const n=function(e,t){let n,p=t,r=-1/0;const o=e.x,c=e.y;do{if(c<=p.y&&c>=p.next.y&&p.next.y!==p.y){const e=p.x+(c-p.y)*(p.next.x-p.x)/(p.next.y-p.y);if(e<=o&&e>r&&(r=e,n=p.x<p.next.x?p:p.next,e===o))return n}p=p.next}while(p!==t);if(!n)return null;const l=n,h=n.x,f=n.y;let d,m=1/0;p=n;do{o>=p.x&&p.x>=h&&o!==p.x&&Ch(c<f?o:r,c,h,f,c<f?r:o,c,p.x,p.y)&&(d=Math.abs(c-p.y)/(o-p.x),Ih(p,e)&&(d<m||d===m&&(p.x>n.x||p.x===n.x&&Eh(n,p)))&&(n=p,m=d)),p=p.next}while(p!==l);return n}(e,t);if(!n)return t;const r=Nh(n,e);return vh(r,r.next),vh(n,n.next)}function Eh(e,p){return area(e.prev,e,p.prev)<0&&area(p.next,e,e.next)<0}function Mh(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Ah(e){let p=e,t=e;do{(p.x<t.x||p.x===t.x&&p.y<t.y)&&(t=p),p=p.next}while(p!==e);return t}function Ch(e,t,n,r,o,c,l,h){return(o-l)*(t-h)>=(e-l)*(c-h)&&(e-l)*(r-h)>=(n-l)*(t-h)&&(n-l)*(c-h)>=(o-l)*(r-h)}function Rh(a,b){return a.next.i!==b.i&&a.prev.i!==b.i&&!function(a,b){let p=a;do{if(p.i!==a.i&&p.next.i!==a.i&&p.i!==b.i&&p.next.i!==b.i&&Oh(p,p.next,a,b))return!0;p=p.next}while(p!==a);return!1}(a,b)&&(Ih(a,b)&&Ih(b,a)&&function(a,b){let p=a,e=!1;const t=(a.x+b.x)/2,n=(a.y+b.y)/2;do{p.y>n!=p.next.y>n&&p.next.y!==p.y&&t<(p.next.x-p.x)*(n-p.y)/(p.next.y-p.y)+p.x&&(e=!e),p=p.next}while(p!==a);return e}(a,b)&&(area(a.prev,a,b.prev)||area(a,b.prev,b))||kh(a,b)&&area(a.prev,a,a.next)>0&&area(b.prev,b,b.next)>0)}function area(p,q,e){return(q.y-p.y)*(e.x-q.x)-(q.x-p.x)*(e.y-q.y)}function kh(e,t){return e.x===t.x&&e.y===t.y}function Oh(e,t,n,r){const o=Lh(area(e,t,n)),c=Lh(area(e,t,r)),l=Lh(area(n,r,e)),h=Lh(area(n,r,t));return o!==c&&l!==h||(!(0!==o||!Ph(e,n,t))||(!(0!==c||!Ph(e,r,t))||(!(0!==l||!Ph(n,e,r))||!(0!==h||!Ph(n,t,r)))))}function Ph(p,q,e){return q.x<=Math.max(p.x,e.x)&&q.x>=Math.min(p.x,e.x)&&q.y<=Math.max(p.y,e.y)&&q.y>=Math.min(p.y,e.y)}function Lh(e){return e>0?1:e<0?-1:0}function Ih(a,b){return area(a.prev,a,a.next)<0?area(a,b,a.next)>=0&&area(a,a.prev,b)>=0:area(a,b,a.prev)<0||area(a,a.next,b)<0}function Nh(a,b){const e=new Fh(a.i,a.x,a.y),t=new Fh(b.i,b.x,b.y),n=a.next,r=b.prev;return a.next=b,b.prev=a,e.next=n,n.prev=e,t.next=e,e.prev=t,r.next=t,t.prev=r,t}function Dh(i,e,t,n){const p=new Fh(i,e,t);return n?(p.next=n.next,p.prev=n,n.next.prev=p,n.next=p):(p.prev=p,p.next=p),p}function Uh(p){p.next.prev=p.prev,p.prev.next=p.next,p.prevZ&&(p.prevZ.nextZ=p.nextZ),p.nextZ&&(p.nextZ.prevZ=p.prevZ)}function Fh(i,e,t){this.i=i,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Bh{static area(e){const t=e.length;let a=0;for(let p=t-1,q=0;q<t;p=q++)a+=e[p].x*e[q].y-e[q].x*e[p].y;return.5*a}static isClockWise(e){return Bh.area(e)<0}
vendor: 15,723 bytes, line 2
2static triangulateShape(e,t){const n=[],r=[],o=[];zh(e),Hh(n,e);let c=e.length;t.forEach(zh);for(let i=0;i<t.length;i++)r.push(c),c+=t[i].length,Hh(n,t[i]);const l=mh(n,r);for(let i=0;i<l.length;i+=3)o.push(l.slice(i,i+3));return o}}function zh(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function Hh(e,t){for(let i=0;i<t.length;i++)e.push(t[i].x),e.push(t[i].y)}class Vh extends Wa{constructor(e=new ph([new mr(.5,.5),new mr(-.5,.5),new mr(-.5,-.5),new mr(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,r=[],o=[];for(let i=0,t=e.length;i<t;i++){c(e[i])}function c(e){const c=[],l=void 0!==t.curveSegments?t.curveSegments:12,h=void 0!==t.steps?t.steps:1,f=void 0!==t.depth?t.depth:1;let d=void 0===t.bevelEnabled||t.bevelEnabled,m=void 0!==t.bevelThickness?t.bevelThickness:.2,v=void 0!==t.bevelSize?t.bevelSize:m-.1,_=void 0!==t.bevelOffset?t.bevelOffset:0,y=void 0!==t.bevelSegments?t.bevelSegments:3;const w=t.extrudePath,x=void 0!==t.UVGenerator?t.UVGenerator:jh;let S,T,E,M,A,C=!1;w&&(S=w.getSpacedPoints(h),C=!0,d=!1,T=w.computeFrenetFrames(h,!1),E=new Yr,M=new Yr,A=new Yr),d||(y=0,m=0,v=0,_=0);const R=e.extractPoints(l);let k=R.shape;const O=R.holes;if(!Bh.isClockWise(k)){k=k.reverse();for(let e=0,t=O.length;e<t;e++){const t=O[e];Bh.isClockWise(t)&&(O[e]=t.reverse())}}const P=Bh.triangulateShape(k,O),L=k;for(let e=0,t=O.length;e<t;e++){const t=O[e];k=k.concat(t)}function I(e,t,n){return e.clone().addScaledVector(t,n)}const N=k.length,D=P.length;function U(e,t,n){let r,o,c;const l=e.x-t.x,h=e.y-t.y,f=n.x-e.x,d=n.y-e.y,m=l*l+h*h,v=l*d-h*f;if(Math.abs(v)>Number.EPSILON){const v=Math.sqrt(m),_=Math.sqrt(f*f+d*d),y=t.x-h/v,w=t.y+l/v,x=((n.x-d/_-y)*d-(n.y+f/_-w)*f)/(l*d-h*f);r=y+l*x-e.x,o=w+h*x-e.y;const S=r*r+o*o;if(S<=2)return new mr(r,o);c=Math.sqrt(S/2)}else{let e=!1;l>Number.EPSILON?f>Number.EPSILON&&(e=!0):l<-Number.EPSILON?f<-Number.EPSILON&&(e=!0):Math.sign(h)===Math.sign(d)&&(e=!0),e?(r=-h,o=l,c=Math.sqrt(m)):(r=l,o=h,c=Math.sqrt(m/2))}return new mr(r/c,o/c)}const F=[];for(let i=0,e=L.length,t=e-1,n=i+1;i<e;i++,t++,n++)t===e&&(t=0),n===e&&(n=0),F[i]=U(L[i],L[t],L[n]);const B=[];let z,H=F.concat();for(let e=0,t=O.length;e<t;e++){const t=O[e];z=[];for(let i=0,e=t.length,n=e-1,r=i+1;i<e;i++,n++,r++)n===e&&(n=0),r===e&&(r=0),z[i]=U(t[i],t[n],t[r]);B.push(z),H=H.concat(z)}for(let b=0;b<y;b++){const e=b/y,t=m*Math.cos(e*Math.PI/2),n=v*Math.sin(e*Math.PI/2)+_;for(let i=0,e=L.length;i<e;i++){const e=I(L[i],F[i],n);W(e.x,e.y,-t)}for(let e=0,r=O.length;e<r;e++){const r=O[e];z=B[e];for(let i=0,e=r.length;i<e;i++){const e=I(r[i],z[i],n);W(e.x,e.y,-t)}}}const V=v+_;for(let i=0;i<N;i++){const e=d?I(k[i],H[i],V):k[i];C?(M.copy(T.normals[0]).multiplyScalar(e.x),E.copy(T.binormals[0]).multiplyScalar(e.y),A.copy(S[0]).add(M).add(E),W(A.x,A.y,A.z)):W(e.x,e.y,0)}for(let s=1;s<=h;s++)for(let i=0;i<N;i++){const e=d?I(k[i],H[i],V):k[i];C?(M.copy(T.normals[s]).multiplyScalar(e.x),E.copy(T.binormals[s]).multiplyScalar(e.y),A.copy(S[s]).add(M).add(E),W(A.x,A.y,A.z)):W(e.x,e.y,f/h*s)}for(let b=y-1;b>=0;b--){const e=b/y,t=m*Math.cos(e*Math.PI/2),n=v*Math.sin(e*Math.PI/2)+_;for(let i=0,e=L.length;i<e;i++){const e=I(L[i],F[i],n);W(e.x,e.y,f+t)}for(let e=0,r=O.length;e<r;e++){const r=O[e];z=B[e];for(let i=0,e=r.length;i<e;i++){const e=I(r[i],z[i],n);C?W(e.x,e.y+S[h-1].y,S[h-1].x+t):W(e.x,e.y,f+t)}}}function j(e,t){let i=e.length;for(;--i>=0;){const n=i;let r=i-1;r<0&&(r=e.length-1);for(let s=0,e=h+2*y;s<e;s++){const e=N*s,o=N*(s+1);$(t+n+e,t+r+e,t+r+o,t+n+o)}}}function W(e,t,n){c.push(e),c.push(t),c.push(n)}function G(a,b,e){X(a),X(b),X(e);const t=r.length/3,o=x.generateTopUV(n,r,t-3,t-2,t-1);Y(o[0]),Y(o[1]),Y(o[2])}function $(a,b,e,t){X(a),X(b),X(t),X(b),X(e),X(t);const o=r.length/3,c=x.generateSideWallUV(n,r,o-6,o-3,o-2,o-1);Y(c[0]),Y(c[1]),Y(c[3]),Y(c[1]),Y(c[2]),Y(c[3])}function X(e){r.push(c[3*e+0]),r.push(c[3*e+1]),r.push(c[3*e+2])}function Y(e){o.push(e.x),o.push(e.y)}!function(){const e=r.length/3;if(d){let e=0,t=N*e;for(let i=0;i<D;i++){const e=P[i];G(e[2]+t,e[1]+t,e[0]+t)}e=h+2*y,t=N*e;for(let i=0;i<D;i++){const e=P[i];G(e[0]+t,e[1]+t,e[2]+t)}}else{for(let i=0;i<D;i++){const e=P[i];G(e[2],e[1],e[0])}for(let i=0;i<D;i++){const e=P[i];G(e[0]+N*h,e[1]+N*h,e[2]+N*h)}}n.addGroup(e,r.length/3-e,0)}(),function(){const e=r.length/3;let t=0;j(L,t),t+=L.length;for(let e=0,n=O.length;e<n;e++){const n=O[e];j(n,t),t+=n.length}n.addGroup(e,r.length/3-e,1)}()}this.setAttribute("position",new Na(r,3)),this.setAttribute("uv",new Na(o,2)),this.computeVertexNormals()}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}toJSON(){const data=super.toJSON();return function(e,t,data){if(data.shapes=[],Array.isArray(e))for(let i=0,t=e.length;i<t;i++){const t=e[i];data.shapes.push(t.uuid)}else data.shapes.push(e.uuid);data.options=Object.assign({},t),void 0!==t.extrudePath&&(data.options.extrudePath=t.extrudePath.toJSON());return data}(this.parameters.shapes,this.parameters.options,data)}static fromJSON(data,e){const t=[];for(let n=0,r=data.shapes.length;n<r;n++){const r=e[data.shapes[n]];t.push(r)}const n=data.options.extrudePath;return void 0!==n&&(data.options.extrudePath=(new Ju[n.type]).fromJSON(n)),new Vh(t,data.options)}}const jh={generateTopUV:function(e,t,n,r,o){const c=t[3*n],l=t[3*n+1],h=t[3*r],f=t[3*r+1],d=t[3*o],m=t[3*o+1];return[new mr(c,l),new mr(h,f),new mr(d,m)]},generateSideWallUV:function(e,t,n,r,o,c){const l=t[3*n],h=t[3*n+1],f=t[3*n+2],d=t[3*r],m=t[3*r+1],v=t[3*r+2],_=t[3*o],y=t[3*o+1],w=t[3*o+2],x=t[3*c],S=t[3*c+1],T=t[3*c+2];return Math.abs(h-m)<Math.abs(l-d)?[new mr(l,1-f),new mr(d,1-v),new mr(_,1-w),new mr(x,1-T)]:[new mr(h,1-f),new mr(m,1-v),new mr(y,1-w),new mr(S,1-T)]}};class Wh extends oh{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2;super([-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],e,t),this.type="IcosahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(data){return new Wh(data.radius,data.detail)}}class Gh extends oh{constructor(e=1,t=0){super([1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],e,t),this.type="OctahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(data){return new Gh(data.radius,data.detail)}}class $h extends Wa{constructor(e=.5,t=1,n=32,r=1,o=0,c=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:r,thetaStart:o,thetaLength:c},n=Math.max(3,n);const l=[],h=[],f=[],d=[];let m=e;const v=(t-e)/(r=Math.max(1,r)),_=new Yr,y=new mr;for(let e=0;e<=r;e++){for(let i=0;i<=n;i++){const e=o+i/n*c;_.x=m*Math.cos(e),_.y=m*Math.sin(e),h.push(_.x,_.y,_.z),f.push(0,0,1),y.x=(_.x/t+1)/2,y.y=(_.y/t+1)/2,d.push(y.x,y.y)}m+=v}for(let e=0;e<r;e++){const t=e*(n+1);for(let i=0;i<n;i++){const e=i+t,a=e,b=e+n+1,r=e+n+2,o=e+1;l.push(a,b,o),l.push(b,r,o)}}this.setIndex(l),this.setAttribute("position",new Na(h,3)),this.setAttribute("normal",new Na(f,3)),this.setAttribute("uv",new Na(d,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new $h(data.innerRadius,data.outerRadius,data.thetaSegments,data.phiSegments,data.thetaStart,data.thetaLength)}}class Xh extends Wa{constructor(e=new ph([new mr(0,.5),new mr(-.5,-.5),new mr(.5,-.5)]),t=12){super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};const n=[],r=[],o=[],c=[];let l=0,h=0;if(!1===Array.isArray(e))f(e);else for(let i=0;i<e.length;i++)f(e[i]),this.addGroup(l,h,i),l+=h,h=0;function f(e){const l=r.length/3,f=e.extractPoints(t);let d=f.shape;const m=f.holes;!1===Bh.isClockWise(d)&&(d=d.reverse());for(let i=0,e=m.length;i<e;i++){const e=m[i];!0===Bh.isClockWise(e)&&(m[i]=e.reverse())}const v=Bh.triangulateShape(d,m);for(let i=0,e=m.length;i<e;i++){const e=m[i];d=d.concat(e)}for(let i=0,e=d.length;i<e;i++){const e=d[i];r.push(e.x,e.y,0),o.push(0,0,1),c.push(e.x,e.y)}for(let i=0,e=v.length;i<e;i++){const e=v[i],a=e[0]+l,b=e[1]+l,t=e[2]+l;n.push(a,b,t),h+=3}}this.setIndex(n),this.setAttribute("position",new Na(r,3)),this.setAttribute("normal",new Na(o,3)),this.setAttribute("uv",new Na(c,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}toJSON(){const data=super.toJSON();return function(e,data){if(data.shapes=[],Array.isArray(e))for(let i=0,t=e.length;i<t;i++){const t=e[i];data.shapes.push(t.uuid)}else data.shapes.push(e.uuid);return data}(this.parameters.shapes,data)}static fromJSON(data,e){const t=[];for(let n=0,r=data.shapes.length;n<r;n++){const r=e[data.shapes[n]];t.push(r)}return new Xh(t,data.curveSegments)}}class qh extends Wa{constructor(e=1,t=32,n=16,r=0,o=2*Math.PI,c=0,l=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:n,phiStart:r,phiLength:o,thetaStart:c,thetaLength:l},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));const h=Math.min(c+l,Math.PI);let f=0;const d=[],m=new Yr,v=new Yr,_=[],y=[],w=[],x=[];for(let _=0;_<=n;_++){const S=[],T=_/n;let E=0;0===_&&0===c?E=.5/t:_===n&&h===Math.PI&&(E=-.5/t);for(let n=0;n<=t;n++){const u=n/t;m.x=-e*Math.cos(r+u*o)*Math.sin(c+T*l),m.y=e*Math.cos(c+T*l),m.z=e*Math.sin(r+u*o)*Math.sin(c+T*l),y.push(m.x,m.y,m.z),v.copy(m).normalize(),w.push(v.x,v.y,v.z),x.push(u+E,1-T),S.push(f++)}d.push(S)}for(let e=0;e<n;e++)for(let r=0;r<t;r++){const a=d[e][r+1],b=d[e][r],t=d[e+1][r],o=d[e+1][r+1];(0!==e||c>0)&&_.push(a,b,o),(e!==n-1||h<Math.PI)&&_.push(b,t,o)}this.setIndex(_),this.setAttribute("position",new Na(y,3)),this.setAttribute("normal",new Na(w,3)),this.setAttribute("uv",new Na(x,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new qh(data.radius,data.widthSegments,data.heightSegments,data.phiStart,data.phiLength,data.thetaStart,data.thetaLength)}}class Yh extends oh{constructor(e=1,t=0){super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],e,t),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(data){return new Yh(data.radius,data.detail)}}class Zh extends Wa{constructor(e=1,t=.4,n=12,r=48,o=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:e,tube:t,radialSegments:n,tubularSegments:r,arc:o},n=Math.floor(n),r=Math.floor(r);const c=[],l=[],h=[],f=[],d=new Yr,m=new Yr,v=new Yr;for(let c=0;c<=n;c++)for(let i=0;i<=r;i++){const u=i/r*o,_=c/n*Math.PI*2;m.x=(e+t*Math.cos(_))*Math.cos(u),m.y=(e+t*Math.cos(_))*Math.sin(u),m.z=t*Math.sin(_),l.push(m.x,m.y,m.z),d.x=e*Math.cos(u),d.y=e*Math.sin(u),v.subVectors(m,d).normalize(),h.push(v.x,v.y,v.z),f.push(i/r),f.push(c/n)}for(let e=1;e<=n;e++)for(let i=1;i<=r;i++){const a=(r+1)*e+i-1,b=(r+1)*(e-1)+i-1,t=(r+1)*(e-1)+i,n=(r+1)*e+i;c.push(a,b,n),c.push(b,t,n)}this.setIndex(c),this.setAttribute("position",new Na(l,3)),this.setAttribute("normal",new Na(h,3)),this.setAttribute("uv",new Na(f,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new Zh(data.radius,data.tube,data.radialSegments,data.tubularSegments,data.arc)}}class Kh extends Wa{constructor(e=1,t=.4,n=64,r=8,p=2,q=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:t,tubularSegments:n,radialSegments:r,p:p,q:q},n=Math.floor(n),r=Math.floor(r);const o=[],c=[],l=[],h=[],f=new Yr,d=new Yr,m=new Yr,v=new Yr,_=new Yr,y=new Yr,w=new Yr;for(let i=0;i<=n;++i){const u=i/n*p*Math.PI*2;x(u,p,q,e,m),x(u+.01,p,q,e,v),y.subVectors(v,m),w.addVectors(v,m),_.crossVectors(y,w),w.crossVectors(_,y),_.normalize(),w.normalize();for(let e=0;e<=r;++e){const o=e/r*Math.PI*2,v=-t*Math.cos(o),y=t*Math.sin(o);f.x=m.x+(v*w.x+y*_.x),f.y=m.y+(v*w.y+y*_.y),f.z=m.z+(v*w.z+y*_.z),c.push(f.x,f.y,f.z),d.subVectors(f,m).normalize(),l.push(d.x,d.y,d.z),h.push(i/n),h.push(e/r)}}for(let e=1;e<=n;e++)for(let i=1;i<=r;i++){const a=(r+1)*(e-1)+(i-1),b=(r+1)*e+(i-1),t=(r+1)*e+i,n=(r+1)*(e-1)+i;o.push(a,b,n),o.push(b,t,n)}function x(u,p,q,e,t){const n=Math.cos(u),r=Math.sin(u),o=q/p*u,c=Math.cos(o);t.x=e*(2+c)*.5*n,t.y=e*(2+c)*r*.5,t.z=e*Math.sin(o)*.5}this.setIndex(o),this.setAttribute("position",new Na(c,3)),this.setAttribute("normal",new Na(l,3)),this.setAttribute("uv",new Na(h,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}static fromJSON(data){return new Kh(data.radius,data.tube,data.tubularSegments,data.radialSegments,data.p,data.q)}}class Jh extends Wa{constructor(path=new Zu(new Yr(-1,-1,0),new Yr(-1,1,0),new Yr(1,1,0)),e=64,t=1,n=8,r=!1){super(),this.type="TubeGeometry",this.parameters={path:path,tubularSegments:e,radius:t,radialSegments:n,closed:r};const o=path.computeFrenetFrames(e,r);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals;const c=new Yr,l=new Yr,h=new mr;let f=new Yr;const d=[],m=[],v=[],_=[];function y(i){f=path.getPointAt(i/e,f);const r=o.normals[i],h=o.binormals[i];for(let e=0;e<=n;e++){const o=e/n*Math.PI*2,v=Math.sin(o),_=-Math.cos(o);l.x=_*r.x+v*h.x,l.y=_*r.y+v*h.y,l.z=_*r.z+v*h.z,l.normalize(),m.push(l.x,l.y,l.z),c.x=f.x+t*l.x,c.y=f.y+t*l.y,c.z=f.z+t*l.z,d.push(c.x,c.y,c.z)}}!function(){for(let i=0;i<e;i++)y(i);y(!1===r?e:0),function(){for(let i=0;i<=e;i++)for(let t=0;t<=n;t++)h.x=i/e,h.y=t/n,v.push(h.x,h.y)}(),function(){for(let t=1;t<=e;t++)for(let i=1;i<=n;i++){const a=(n+1)*(t-1)+(i-1),b=(n+1)*t+(i-1),e=(n+1)*t+i,r=(n+1)*(t-1)+i;_.push(a,b,r),_.push(b,e,r)}}()}(),this.setIndex(_),this.setAttribute("position",new Na(d,3)),this.setAttribute("normal",new Na(m,3)),this.setAttribute("uv",new Na(v,2))}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}toJSON(){const data=super.toJSON();return data.path=this.parameters.path.toJSON(),data}static fromJSON(data){return new Jh((new Ju[data.path.type]).fromJSON(data.path),data.tubularSegments,data.radius,data.radialSegments,data.closed)}}class Qh extends Wa{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},null!==e){const t=[],n=new Set,r=new Yr,o=new Yr;if(null!==e.index){const c=e.attributes.position,l=e.index;let h=e.groups;0===h.length&&(h=[{start:0,count:l.count,materialIndex:0}]);for(let e=0,ol=h.length;e<ol;++e){const f=h[e],d=f.start;for(let i=d,e=d+f.count;i<e;i+=3)for(let e=0;e<3;e++){const h=l.getX(i+e),f=l.getX(i+(e+1)%3);r.fromBufferAttribute(c,h),o.fromBufferAttribute(c,f),!0===ef(r,o,n)&&(t.push(r.x,r.y,r.z),t.push(o.x,o.y,o.z))}}}else{const c=e.attributes.position;for(let i=0,e=c.count/3;i<e;i++)for(let e=0;e<3;e++){const l=3*i+e,h=3*i+(e+1)%3;r.fromBufferAttribute(c,l),o.fromBufferAttribute(c,h),!0===ef(r,o,n)&&(t.push(r.x,r.y,r.z),t.push(o.x,o.y,o.z))}}this.setAttribute("position",new Na(t,3))}}copy(source){return super.copy(source),this.parameters=Object.assign({},source.parameters),this}}function ef(e,t,n){const r=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`,o=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`;return!0!==n.has(r)&&!0!==n.has(o)&&(n.add(r),n.add(o),!0)}var tf=Object.freeze({__proto__:null,BoxGeometry:us,CapsuleGeometry:rh,CircleGeometry:ih,ConeGeometry:sh,CylinderGeometry:ah,DodecahedronGeometry:ch,EdgesGeometry:dh,ExtrudeGeometry:Vh,IcosahedronGeometry:Wh,LatheGeometry:nh,OctahedronGeometry:Gh,PlaneGeometry:ks,PolyhedronGeometry:oh,RingGeometry:$h,ShapeGeometry:Xh,SphereGeometry:qh,TetrahedronGeometry:Yh,TorusGeometry:Zh,TorusKnotGeometry:Kh,TubeGeometry:Jh,WireframeGeometry:Qh});
vendor: 11,688 bytes, line 2
2class nf extends va{constructor(e){super(),this.isShadowMaterial=!0,this.type="ShadowMaterial",this.color=new pa(0),this.transparent=!0,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.fog=source.fog,this}}class rf extends ms{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type="RawShaderMaterial"}}class af extends va{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pa(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pa(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nn,this.normalScale=new mr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.defines={STANDARD:""},this.color.copy(source.color),this.roughness=source.roughness,this.metalness=source.metalness,this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.roughnessMap=source.roughnessMap,this.metalnessMap=source.metalnessMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapIntensity=source.envMapIntensity,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}}class sf extends af{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new mr(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return ar(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pa(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pa(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pa(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(source){return super.copy(source),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=source.anisotropy,this.anisotropyRotation=source.anisotropyRotation,this.anisotropyMap=source.anisotropyMap,this.clearcoat=source.clearcoat,this.clearcoatMap=source.clearcoatMap,this.clearcoatRoughness=source.clearcoatRoughness,this.clearcoatRoughnessMap=source.clearcoatRoughnessMap,this.clearcoatNormalMap=source.clearcoatNormalMap,this.clearcoatNormalScale.copy(source.clearcoatNormalScale),this.ior=source.ior,this.iridescence=source.iridescence,this.iridescenceMap=source.iridescenceMap,this.iridescenceIOR=source.iridescenceIOR,this.iridescenceThicknessRange=[...source.iridescenceThicknessRange],this.iridescenceThicknessMap=source.iridescenceThicknessMap,this.sheen=source.sheen,this.sheenColor.copy(source.sheenColor),this.sheenColorMap=source.sheenColorMap,this.sheenRoughness=source.sheenRoughness,this.sheenRoughnessMap=source.sheenRoughnessMap,this.transmission=source.transmission,this.transmissionMap=source.transmissionMap,this.thickness=source.thickness,this.thicknessMap=source.thicknessMap,this.attenuationDistance=source.attenuationDistance,this.attenuationColor.copy(source.attenuationColor),this.specularIntensity=source.specularIntensity,this.specularIntensityMap=source.specularIntensityMap,this.specularColor.copy(source.specularColor),this.specularColorMap=source.specularColorMap,this}}class of extends va{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pa(16777215),this.specular=new pa(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pa(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nn,this.normalScale=new mr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=se,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.specular.copy(source.specular),this.shininess=source.shininess,this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}}class cf extends va{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new pa(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pa(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nn,this.normalScale=new mr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.gradientMap=source.gradientMap,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.alphaMap=source.alphaMap,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.fog=source.fog,this}}class lf extends va{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nn,this.normalScale=new mr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(source){return super.copy(source),this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.flatShading=source.flatShading,this}}class uf extends va{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new pa(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pa(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nn,this.normalScale=new mr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=se,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}}
vendor: 5,362 bytes, line 2
2class hf extends va{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new pa(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=nn,this.normalScale=new mr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(source){return super.copy(source),this.defines={MATCAP:""},this.color.copy(source.color),this.matcap=source.matcap,this.map=source.map,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.alphaMap=source.alphaMap,this.flatShading=source.flatShading,this.fog=source.fog,this}}class ff extends lu{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(source){return super.copy(source),this.scale=source.scale,this.dashSize=source.dashSize,this.gapSize=source.gapSize,this}}function df(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function pf(object){return ArrayBuffer.isView(object)&&!(object instanceof DataView)}function mf(e){const t=e.length,n=new Array(t);for(let i=0;i!==t;++i)n[i]=i;return n.sort((function(i,t){return e[i]-e[t]})),n}function gf(e,t,n){const r=e.length,o=new e.constructor(r);for(let i=0,c=0;c!==r;++i){const r=n[i]*t;for(let n=0;n!==t;++n)o[c++]=e[r+n]}return o}function vf(e,t,n,r){let i=1,o=e[0];for(;void 0!==o&&void 0===o[r];)o=e[i++];if(void 0===o)return;let c=o[r];if(void 0!==c)if(Array.isArray(c))do{c=o[r],void 0!==c&&(t.push(o.time),n.push.apply(n,c)),o=e[i++]}while(void 0!==o);else if(void 0!==c.toArray)do{c=o[r],void 0!==c&&(t.push(o.time),c.toArray(n,n.length)),o=e[i++]}while(void 0!==o);else do{c=o[r],void 0!==c&&(t.push(o.time),n.push(c)),o=e[i++]}while(void 0!==o)}const _f={convertArray:df,isTypedArray:pf,getKeyframeOrder:mf,sortedArray:gf,flattenJSON:vf,subclip:function(e,t,n,r,o=30){const c=e.clone();c.name=t;const l=[];for(let i=0;i<c.tracks.length;++i){const track=c.tracks[i],e=track.getValueSize(),t=[],h=[];for(let c=0;c<track.times.length;++c){const l=track.times[c]*o;if(!(l<n||l>=r)){t.push(track.times[c]);for(let t=0;t<e;++t)h.push(track.values[c*e+t])}}0!==t.length&&(track.times=df(t,track.times.constructor),track.values=df(h,track.values.constructor),l.push(track))}c.tracks=l;let h=1/0;for(let i=0;i<c.tracks.length;++i)h>c.tracks[i].times[0]&&(h=c.tracks[i].times[0]);for(let i=0;i<c.tracks.length;++i)c.tracks[i].shift(-1*h);return c.resetDuration(),c},makeClipAdditive:function(e,t=0,n=e,r=30){r<=0&&(r=30);const o=n.tracks.length,c=t/r;for(let i=0;i<o;++i){const t=n.tracks[i],r=t.ValueTypeName;if("bool"===r||"string"===r)continue;const o=e.tracks.find((function(track){return track.name===t.name&&track.ValueTypeName===r}));if(void 0===o)continue;let l=0;const h=t.getValueSize();t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(l=h/3);let f=0;const d=o.getValueSize();o.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(f=d/3);const m=t.times.length-1;let v;if(c<=t.times[0]){const e=l,n=h-l;v=t.values.slice(e,n)}else if(c>=t.times[m]){const e=m*h+l,n=e+h-l;v=t.values.slice(e,n)}else{const e=t.createInterpolant(),n=l,r=h-l;e.evaluate(c),v=e.resultBuffer.slice(n,r)}if("quaternion"===r){(new qr).fromArray(v).normalize().conjugate().toArray(v)}const _=o.times.length;for(let e=0;e<_;++e){const t=e*d+f;if("quaternion"===r)qr.multiplyQuaternionsFlat(o.values,t,v,0,o.values,t);else{const e=d-2*f;for(let n=0;n<e;++n)o.values[t+n]-=v[n]}}}return e.blendMode=qt,e}};class yf{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,r=t[n],o=t[n-1];e:{t:{let c;n:{r:if(!(e<r)){for(let c=n+2;;){if(void 0===r){if(e<o)break r;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===c)break;if(o=r,r=t[++n],e<r)break t}c=t.length;break n}if(e>=o)break e;{const l=t[1];e<l&&(n=2,o=l);for(let c=n-2;;){if(void 0===o)return this._cachedIndex=0,this.copySampleValue_(0);if(n===c)break;if(r=o,o=t[--n-1],e>=o)break t}c=n,n=0}}for(;n<c;){const r=n+c>>>1;e<t[r]?c=r:n=r+1}if(r=t[n],o=t[n-1],void 0===o)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===r)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,o,r)}return this.interpolate_(n,o,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,o=e*r;for(let i=0;i!==r;++i)t[i]=n[o+i];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class bf extends yf{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:Wt,endingEnd:Wt}}
vendor: 8,136 bytes, line 2
2intervalChanged_(e,t,n){const r=this.parameterPositions;let o=e-2,c=e+1,l=r[o],h=r[c];if(void 0===l)switch(this.getSettings_().endingStart){case Gt:o=e,l=2*t-n;break;case $t:o=r.length-2,l=t+r[o]-r[o+1];break;default:o=e,l=n}if(void 0===h)switch(this.getSettings_().endingEnd){case Gt:c=e,h=2*n-t;break;case $t:c=1,h=n+r[1]-r[0];break;default:c=e-1,h=t}const f=.5*(n-t),d=this.valueSize;this._weightPrev=f/(t-l),this._weightNext=f/(h-n),this._offsetPrev=o*d,this._offsetNext=c*d}interpolate_(e,t,n,r){const o=this.resultBuffer,c=this.sampleValues,l=this.valueSize,h=e*l,f=h-l,d=this._offsetPrev,m=this._offsetNext,v=this._weightPrev,_=this._weightNext,p=(n-t)/(r-t),y=p*p,w=y*p,x=-v*w+2*v*y-v*p,S=(1+v)*w+(-1.5-2*v)*y+(-.5+v)*p+1,T=(-1-_)*w+(1.5+_)*y+.5*p,E=_*w-_*y;for(let i=0;i!==l;++i)o[i]=x*c[d+i]+S*c[f+i]+T*c[h+i]+E*c[m+i];return o}}class wf extends yf{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const o=this.resultBuffer,c=this.sampleValues,l=this.valueSize,h=e*l,f=h-l,d=(n-t)/(r-t),m=1-d;for(let i=0;i!==l;++i)o[i]=c[f+i]*m+c[h+i]*d;return o}}class xf extends yf{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}}class Sf{constructor(e,t,n,r){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=df(t,this.TimeBufferType),this.values=df(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(track){const e=track.constructor;let t;if(e.toJSON!==this.toJSON)t=e.toJSON(track);else{t={name:track.name,times:df(track.times,Array),values:df(track.values,Array)};const e=track.getInterpolation();e!==track.DefaultInterpolation&&(t.interpolation=e)}return t.type=track.ValueTypeName,t}InterpolantFactoryMethodDiscrete(e){return new xf(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new wf(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new bf(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case Ht:t=this.InterpolantFactoryMethodDiscrete;break;case Vt:t=this.InterpolantFactoryMethodLinear;break;case jt:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(t);this.setInterpolation(this.DefaultInterpolation)}return this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Ht;case this.InterpolantFactoryMethodLinear:return Vt;case this.InterpolantFactoryMethodSmooth:return jt}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){const t=this.times;for(let i=0,n=t.length;i!==n;++i)t[i]+=e}return this}scale(e){if(1!==e){const t=this.times;for(let i=0,n=t.length;i!==n;++i)t[i]*=e}return this}trim(e,t){const n=this.times,r=n.length;let o=0,c=r-1;for(;o!==r&&n[o]<e;)++o;for(;-1!==c&&n[c]>t;)--c;if(++c,0!==o||c!==r){o>=c&&(c=Math.max(c,1),o=c-1);const e=this.getValueSize();this.times=n.slice(o,c),this.values=this.values.slice(o*e,c*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!=0&&(e=!1);const n=this.times,r=this.values,o=n.length;0===o&&(e=!1);let c=null;for(let i=0;i!==o;i++){const t=n[i];if("number"==typeof t&&isNaN(t)){e=!1;break}if(null!==c&&c>t){e=!1;break}c=t}if(void 0!==r&&pf(r))for(let i=0,t=r.length;i!==t;++i){const t=r[i];if(isNaN(t)){e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===jt,o=e.length-1;let c=1;for(let i=1;i<o;++i){let o=!1;const time=e[i];if(time!==e[i+1]&&(1!==i||time!==e[0]))if(r)o=!0;else{const e=i*n,r=e-n,c=e+n;for(let l=0;l!==n;++l){const n=t[e+l];if(n!==t[r+l]||n!==t[c+l]){o=!0;break}}}if(o){if(i!==c){e[c]=e[i];const r=i*n,o=c*n;for(let e=0;e!==n;++e)t[o+e]=t[r+e]}++c}}if(o>0){e[c]=e[o];for(let e=o*n,r=c*n,l=0;l!==n;++l)t[r+l]=t[e+l];++c}return c!==e.length?(this.times=e.slice(0,c),this.values=t.slice(0,c*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),track=new(0,this.constructor)(this.name,e,t);return track.createInterpolant=this.createInterpolant,track}}Sf.prototype.TimeBufferType=Float32Array,Sf.prototype.ValueBufferType=Float32Array,Sf.prototype.DefaultInterpolation=Vt;class Tf extends Sf{}Tf.prototype.ValueTypeName="bool",Tf.prototype.ValueBufferType=Array,Tf.prototype.DefaultInterpolation=Ht,Tf.prototype.InterpolantFactoryMethodLinear=void 0,Tf.prototype.InterpolantFactoryMethodSmooth=void 0;class Ef extends Sf{}Ef.prototype.ValueTypeName="color";class Mf extends Sf{}Mf.prototype.ValueTypeName="number";class Af extends yf{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const o=this.resultBuffer,c=this.sampleValues,l=this.valueSize,h=(n-t)/(r-t);let f=e*l;for(let e=f+l;f!==e;f+=4)qr.slerpFlat(o,0,c,f-l,c,f,h);return o}}class Cf extends Sf{InterpolantFactoryMethodLinear(e){return new Af(this.times,this.values,this.getValueSize(),e)}}Cf.prototype.ValueTypeName="quaternion",Cf.prototype.DefaultInterpolation=Vt,Cf.prototype.InterpolantFactoryMethodSmooth=void 0;class Rf extends Sf{}Rf.prototype.ValueTypeName="string",Rf.prototype.ValueBufferType=Array,Rf.prototype.DefaultInterpolation=Ht,Rf.prototype.InterpolantFactoryMethodLinear=void 0,Rf.prototype.InterpolantFactoryMethodSmooth=void 0;class kf extends Sf{}kf.prototype.ValueTypeName="vector";class Of{constructor(e,t=-1,n,r=Xt){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=ir(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let i=0,e=n.length;i!==e;++i)t.push(Pf(n[i]).scale(r));const o=new this(e.name,e.duration,t,e.blendMode);return o.uuid=e.uuid,o}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let i=0,e=n.length;i!==e;++i)t.push(Sf.toJSON(n[i]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const o=t.length,c=[];for(let i=0;i<o;i++){let e=[],l=[];e.push((i+o-1)%o,i,(i+1)%o),l.push(0,1,0);const h=mf(e);e=gf(e,1,h),l=gf(l,1,h),r||0!==e[0]||(e.push(o),l.push(l[0])),c.push(new Mf(".morphTargetInfluences["+t[i].name+"]",e,l).scale(1/n))}return new this(e,-1,c)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let i=0;i<n.length;i++)if(n[i].name===t)return n[i];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const r={},pattern=/^([\w-]*?)([\d]+)$/;for(let i=0,t=e.length;i<t;i++){const t=e[i],n=t.name.match(pattern);if(n&&n.length>1){const e=n[1];let o=r[e];o||(r[e]=o=[]),o.push(t)}}const o=[];for(const e in r)o.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return o}static parseAnimation(e,t){if(!e)return null;const n=function(e,t,n,r,o){if(0!==n.length){const c=[],l=[];vf(n,c,l,r),0!==c.length&&o.push(new e(t,c,l))}},r=[],o=e.name||"default",c=e.fps||30,l=e.blendMode;let h=e.length||-1;const f=e.hierarchy||[];for(let e=0;e<f.length;e++){const o=f[e].keys;if(o&&0!==o.length)if(o[0].morphTargets){const e={};let t;for(t=0;t<o.length;t++)if(o[t].morphTargets)for(let n=0;n<o[t].morphTargets.length;n++)e[o[t].morphTargets[n]]=-1;for(const n in e){const e=[],c=[];for(let r=0;r!==o[t].morphTargets.length;++r){const r=o[t];e.push(r.time),c.push(r.morphTarget===n?1:0)}r.push(new Mf(".morphTargetInfluence["+n+"]",e,c))}h=e.length*c}else{const c=".bones["+t[e].name+"]";n(kf,c+".position",o,"pos",r),n(Cf,c+".quaternion",o,"rot",r),n(kf,c+".scale",o,"scl",r)}}if(0===r.length)return null;return new this(o,h,r,l)}resetDuration(){let e=0;for(let i=0,t=this.tracks.length;i!==t;++i){const track=this.tracks[i];e=Math.max(e,track.times[track.times.length-1])}return this.duration=e,this}trim(){for(let i=0;i<this.tracks.length;i++)this.tracks[i].trim(0,this.duration);return this}validate(){let e=!0;for(let i=0;i<this.tracks.length;
vendor: 11,310 bytes, line 2
2i++)e=e&&this.tracks[i].validate();return e}optimize(){for(let i=0;i<this.tracks.length;i++)this.tracks[i].optimize();return this}clone(){const e=[];for(let i=0;i<this.tracks.length;i++)e.push(this.tracks[i].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Pf(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Mf;case"vector":case"vector2":case"vector3":case"vector4":return kf;case"color":return Ef;case"quaternion":return Cf;case"bool":case"boolean":return Tf;case"string":return Rf}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){const t=[],n=[];vf(e.keys,t,n,"value"),e.times=t,e.values=n}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const Lf={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class If{constructor(e,t,n){const r=this;let o=!1,c=0,l=0,h=void 0;const f=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){l++,!1===o&&void 0!==r.onStart&&r.onStart(e,c,l),o=!0},this.itemEnd=function(e){c++,void 0!==r.onProgress&&r.onProgress(e,c,l),c===l&&(o=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return h?h(e):e},this.setURLModifier=function(e){return h=e,this},this.addHandler=function(e,t){return f.push(e,t),this},this.removeHandler=function(e){const t=f.indexOf(e);return-1!==t&&f.splice(t,2),this},this.getHandler=function(e){for(let i=0,t=f.length;i<t;i+=2){const t=f[i],n=f[i+1];if(t.global&&(t.lastIndex=0),t.test(e))return n}return null}}}const Nf=new If;class Df{constructor(e){this.manager=void 0!==e?e:Nf,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(r,o){n.load(e,r,t,o)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(path){return this.path=path,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Df.DEFAULT_MATERIAL_NAME="__DEFAULT";const Uf={};class Ff extends Error{constructor(e,t){super(e),this.response=t}}class Bf extends Df{constructor(e){super(e)}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const o=Lf.get(e);if(void 0!==o)return this.manager.itemStart(e),setTimeout(()=>{t&&t(o),this.manager.itemEnd(e)},0),o;if(void 0!==Uf[e])return void Uf[e].push({onLoad:t,onProgress:n,onError:r});Uf[e]=[],Uf[e].push({onLoad:t,onProgress:n,onError:r});const c=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),l=this.mimeType,h=this.responseType;fetch(c).then(t=>{if(200===t.status||0===t.status){if(t.status,"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Uf[e],r=t.body.getReader(),o=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),c=o?parseInt(o):0,l=0!==c;let h=0;const f=new ReadableStream({start(e){!function t(){r.read().then(({done:r,value:o})=>{if(r)e.close();else{h+=o.byteLength;const r=new ProgressEvent("progress",{lengthComputable:l,loaded:h,total:c});for(let i=0,e=n.length;i<e;i++){const e=n[i];e.onProgress&&e.onProgress(r)}e.enqueue(o),t()}})}()}});return new Response(f)}throw new Ff(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(h){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(text=>(new DOMParser).parseFromString(text,l));case"json":return e.json();default:if(void 0===l)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(l),label=t&&t[1]?t[1].toLowerCase():void 0,n=new TextDecoder(label);return e.arrayBuffer().then(e=>n.decode(e))}}}).then(data=>{Lf.add(e,data);const t=Uf[e];delete Uf[e];for(let i=0,e=t.length;i<e;i++){const e=t[i];e.onLoad&&e.onLoad(data)}}).catch(t=>{const n=Uf[e];if(void 0===n)throw this.manager.itemError(e),t;delete Uf[e];for(let i=0,e=n.length;i<e;i++){const e=n[i];e.onError&&e.onError(t)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class zf extends Df{constructor(e){super(e)}load(e,t,n,r){const o=this,c=new Bf(this.manager);c.setPath(this.path),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,(function(text){try{t(o.parse(JSON.parse(text)))}catch(t){r&&r(t),o.manager.itemError(e)}}),n,r)}parse(e){const t=[];for(let i=0;i<e.length;i++){const n=Of.parse(e[i]);t.push(n)}return t}}class Hf extends Df{constructor(e){super(e)}load(e,t,n,r){const o=this,c=[],l=new Ru,h=new Bf(this.manager);h.setPath(this.path),h.setResponseType("arraybuffer"),h.setRequestHeader(this.requestHeader),h.setWithCredentials(o.withCredentials);let f=0;function d(i){h.load(e[i],(function(e){const n=o.parse(e,!0);c[i]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},f+=1,6===f&&(1===n.mipmapCount&&(l.minFilter=Oe),l.image=c,l.format=n.format,l.needsUpdate=!0,t&&t(l))}),n,r)}if(Array.isArray(e))for(let i=0,t=e.length;i<t;++i)d(i);else h.load(e,(function(e){const n=o.parse(e,!0);if(n.isCubemap){const e=n.mipmaps.length/n.mipmapCount;for(let t=0;t<e;t++){c[t]={mipmaps:[]};for(let i=0;i<n.mipmapCount;i++)c[t].mipmaps.push(n.mipmaps[t*n.mipmapCount+i]),c[t].format=n.format,c[t].width=n.width,c[t].height=n.height}l.image=c}else l.image.width=n.width,l.image.height=n.height,l.mipmaps=n.mipmaps;1===n.mipmapCount&&(l.minFilter=Oe),l.format=n.format,l.needsUpdate=!0,t&&t(l)}),n,r);return l}}class Vf extends Df{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,c=Lf.get(e);if(void 0!==c)return o.manager.itemStart(e),setTimeout((function(){t&&t(c),o.manager.itemEnd(e)}),0),c;const image=xr("img");function l(){f(),Lf.add(e,this),t&&t(this),o.manager.itemEnd(e)}function h(t){f(),r&&r(t),o.manager.itemError(e),o.manager.itemEnd(e)}function f(){image.removeEventListener("load",l,!1),image.removeEventListener("error",h,!1)}return image.addEventListener("load",l,!1),image.addEventListener("error",h,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(image.crossOrigin=this.crossOrigin),o.manager.itemStart(e),image.src=e,image}}class jf extends Df{constructor(e){super(e)}load(e,t,n,r){const o=new ys;o.colorSpace=sn;const c=new Vf(this.manager);c.setCrossOrigin(this.crossOrigin),c.setPath(this.path);let l=0;function h(i){c.load(e[i],(function(image){o.images[i]=image,l++,6===l&&(o.needsUpdate=!0,t&&t(o))}),void 0,r)}for(let i=0;i<e.length;++i)h(i);return o}}class Wf extends Df{constructor(e){super(e)}load(e,t,n,r){const o=this,c=new Zl,l=new Bf(this.manager);return l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setPath(this.path),l.setWithCredentials(o.withCredentials),l.load(e,(function(e){let n;try{n=o.parse(e)}catch(e){if(void 0===r)return;r(e)}void 0!==n.image?c.image=n.image:void 0!==n.data&&(c.image.width=n.width,c.image.height=n.height,c.image.data=n.data),c.wrapS=void 0!==n.wrapS?n.wrapS:Te,c.wrapT=void 0!==n.wrapT?n.wrapT:Te,c.magFilter=void 0!==n.magFilter?n.magFilter:Oe,c.minFilter=void 0!==n.minFilter?n.minFilter:Oe,c.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.colorSpace?c.colorSpace=n.colorSpace:void 0!==n.encoding&&(c.encoding=n.encoding),void 0!==n.flipY&&(c.flipY=n.flipY),void 0!==n.format&&(c.format=n.format),void 0!==n.type&&(c.type=n.type),void 0!==n.mipmaps&&(c.mipmaps=n.mipmaps,c.minFilter=Ie),1===n.mipmapCount&&(c.minFilter=Oe),void 0!==n.generateMipmaps&&(c.generateMipmaps=n.generateMipmaps),c.needsUpdate=!0,t&&t(c,n)}),n,r),c}}class Gf extends Df{constructor(e){super(e)}load(e,t,n,r){const o=new Br,c=new Vf(this.manager);return c.setCrossOrigin(this.crossOrigin),c.setPath(this.path),c.load(e,(function(image){o.image=image,o.needsUpdate=!0,void 0!==t&&t(o)}),n,r),o}}class $f extends Ki{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pa(e),this.intensity=t}dispose(){}copy(source,e){return super.copy(source,e),this.color.copy(source.color),this.intensity=source.intensity,this}toJSON(meta){const data=super.toJSON(meta);return data.object.color=this.color.getHex(),data.object.intensity=this.intensity,void 0!==this.groundColor&&(data.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(data.object.distance=this.distance),void 0!==this.angle&&(data.object.angle=this.angle),void 0!==this.decay&&(data.object.decay=this.decay),void 0!==this.penumbra&&(data.object.penumbra=this.penumbra),void 0!==this.shadow&&(data.object.shadow=this.shadow.toJSON()),data}}class Xf extends $f{constructor(e,t,n){super(e,n),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(Ki.DEFAULT_UP),this.updateMatrix(),this.groundColor=new pa(t)}copy(source,e){return super.copy(source,e),this.groundColor.copy(source.groundColor),this}}const qf=new Mi,Yf=new Yr,Zf=new Yr;class Kf{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new mr(512,512),this.map=null,this.mapPass=null,this.matrix=new Mi,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new As,this._frameExtents=new mr(1,1),this._viewportCount=1,this._viewports=[new zr(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;Yf.setFromMatrixPosition(e.matrixWorld),t.position.copy(Yf),Zf.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(Zf),t.updateMatrixWorld(),qf.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(qf),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(qf)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(source){return this.camera=source.camera.clone(),this.bias=source.bias,this.radius=source.radius,this.mapSize.copy(source.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const object={};return 0!==this.bias&&(object.bias=this.bias),0!==this.normalBias&&(object.normalBias=this.normalBias),1!==this.radius&&(object.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(object.mapSize=this.mapSize.toArray()),object.camera=this.camera.toJSON(!1).object,delete object.camera.matrix,object}}class Jf extends Kf{constructor(){super(new vs(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*rr*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height,o=e.distance||t.far;n===t.fov&&r===t.aspect&&o===t.far||(t.fov=n,t.aspect=r,t.far=o,t.updateProjectionMatrix()),super.updateMatrices(e)}
vendor: 4,198 bytes, line 2
2copy(source){return super.copy(source),this.focus=source.focus,this}}class Qf extends $f{constructor(e,t,n=0,r=Math.PI/3,o=0,c=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Ki.DEFAULT_UP),this.updateMatrix(),this.target=new Ki,this.distance=n,this.angle=r,this.penumbra=o,this.decay=c,this.map=null,this.shadow=new Jf}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(source,e){return super.copy(source,e),this.distance=source.distance,this.angle=source.angle,this.penumbra=source.penumbra,this.decay=source.decay,this.target=source.target.clone(),this.shadow=source.shadow.clone(),this}}const ed=new Mi,nd=new Yr,rd=new Yr;class id extends Kf{constructor(){super(new vs(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new mr(4,2),this._viewportCount=6,this._viewports=[new zr(2,1,1,1),new zr(0,1,1,1),new zr(3,1,1,1),new zr(1,1,1,1),new zr(3,0,1,1),new zr(1,0,1,1)],this._cubeDirections=[new Yr(1,0,0),new Yr(-1,0,0),new Yr(0,0,1),new Yr(0,0,-1),new Yr(0,1,0),new Yr(0,-1,0)],this._cubeUps=[new Yr(0,1,0),new Yr(0,1,0),new Yr(0,1,0),new Yr(0,1,0),new Yr(0,0,1),new Yr(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,r=this.matrix,o=e.distance||n.far;o!==n.far&&(n.far=o,n.updateProjectionMatrix()),nd.setFromMatrixPosition(e.matrixWorld),n.position.copy(nd),rd.copy(n.position),rd.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(rd),n.updateMatrixWorld(),r.makeTranslation(-nd.x,-nd.y,-nd.z),ed.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ed)}}class ad extends $f{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new id}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(source,e){return super.copy(source,e),this.distance=source.distance,this.decay=source.decay,this.shadow=source.shadow.clone(),this}}class sd extends Kf{constructor(){super(new Hs(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class od extends $f{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Ki.DEFAULT_UP),this.updateMatrix(),this.target=new Ki,this.shadow=new sd}dispose(){this.shadow.dispose()}copy(source){return super.copy(source),this.target=source.target.clone(),this.shadow=source.shadow.clone(),this}}class cd extends $f{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class ld extends $f{constructor(e,t,n=10,r=10){super(e,t),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=n,this.height=r}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(source){return super.copy(source),this.width=source.width,this.height=source.height,this}toJSON(meta){const data=super.toJSON(meta);return data.object.width=this.width,data.object.height=this.height,data}}class ud{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let i=0;i<9;i++)this.coefficients.push(new Yr)}set(e){for(let i=0;i<9;i++)this.coefficients[i].copy(e[i]);return this}zero(){for(let i=0;i<9;i++)this.coefficients[i].set(0,0,0);return this}getAt(e,t){const n=e.x,r=e.y,o=e.z,c=this.coefficients;return t.copy(c[0]).multiplyScalar(.282095),t.addScaledVector(c[1],.488603*r),t.addScaledVector(c[2],.488603*o),t.addScaledVector(c[3],.488603*n),t.addScaledVector(c[4],n*r*1.092548),t.addScaledVector(c[5],r*o*1.092548),t.addScaledVector(c[6],.315392*(3*o*o-1)),t.addScaledVector(c[7],n*o*1.092548),t.addScaledVector(c[8],.546274*(n*n-r*r)),t}getIrradianceAt(e,t){const n=e.x,r=e.y,o=e.z,c=this.coefficients;return t.copy(c[0]).multiplyScalar(.886227),t.addScaledVector(c[1],1.023328*r),t.addScaledVector(c[2],1.023328*o),t.addScaledVector(c[3],1.023328*n),t.addScaledVector(c[4],.858086*n*r),t.addScaledVector(c[5],.858086*r*o),t.addScaledVector(c[6],.743125*o*o-.247708),t.addScaledVector(c[7],.858086*n*o),t.addScaledVector(c[8],.429043*(n*n-r*r)),t}add(e){for(let i=0;i<9;i++)this.coefficients[i].add(e.coefficients[i]);return this}
vendor: 35,715 bytes, line 2
2addScaledSH(e,s){for(let i=0;i<9;i++)this.coefficients[i].addScaledVector(e.coefficients[i],s);return this}scale(s){for(let i=0;i<9;i++)this.coefficients[i].multiplyScalar(s);return this}lerp(e,t){for(let i=0;i<9;i++)this.coefficients[i].lerp(e.coefficients[i],t);return this}equals(e){for(let i=0;i<9;i++)if(!this.coefficients[i].equals(e.coefficients[i]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(e,t=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].fromArray(e,t+3*i);return this}toArray(e=[],t=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].toArray(e,t+3*i);return e}static getBasisAt(e,t){const n=e.x,r=e.y,o=e.z;t[0]=.282095,t[1]=.488603*r,t[2]=.488603*o,t[3]=.488603*n,t[4]=1.092548*n*r,t[5]=1.092548*r*o,t[6]=.315392*(3*o*o-1),t[7]=1.092548*n*o,t[8]=.546274*(n*n-r*r)}}class hd extends $f{constructor(e=new ud,t=1){super(void 0,t),this.isLightProbe=!0,this.sh=e}copy(source){return super.copy(source),this.sh.copy(source.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(meta){const data=super.toJSON(meta);return data.object.sh=this.sh.toArray(),data}}class fd extends Df{constructor(e){super(e),this.textures={}}load(e,t,n,r){const o=this,c=new Bf(o.manager);c.setPath(o.path),c.setRequestHeader(o.requestHeader),c.setWithCredentials(o.withCredentials),c.load(e,(function(text){try{t(o.parse(JSON.parse(text)))}catch(t){r&&r(t),o.manager.itemError(e)}}),n,r)}parse(e){const t=this.textures;function n(e){return t[e],t[e]}const r=fd.createMaterialFromType(e.type);if(void 0!==e.uuid&&(r.uuid=e.uuid),void 0!==e.name&&(r.name=e.name),void 0!==e.color&&void 0!==r.color&&r.color.setHex(e.color),void 0!==e.roughness&&(r.roughness=e.roughness),void 0!==e.metalness&&(r.metalness=e.metalness),void 0!==e.sheen&&(r.sheen=e.sheen),void 0!==e.sheenColor&&(r.sheenColor=(new pa).setHex(e.sheenColor)),void 0!==e.sheenRoughness&&(r.sheenRoughness=e.sheenRoughness),void 0!==e.emissive&&void 0!==r.emissive&&r.emissive.setHex(e.emissive),void 0!==e.specular&&void 0!==r.specular&&r.specular.setHex(e.specular),void 0!==e.specularIntensity&&(r.specularIntensity=e.specularIntensity),void 0!==e.specularColor&&void 0!==r.specularColor&&r.specularColor.setHex(e.specularColor),void 0!==e.shininess&&(r.shininess=e.shininess),void 0!==e.clearcoat&&(r.clearcoat=e.clearcoat),void 0!==e.clearcoatRoughness&&(r.clearcoatRoughness=e.clearcoatRoughness),void 0!==e.iridescence&&(r.iridescence=e.iridescence),void 0!==e.iridescenceIOR&&(r.iridescenceIOR=e.iridescenceIOR),void 0!==e.iridescenceThicknessRange&&(r.iridescenceThicknessRange=e.iridescenceThicknessRange),void 0!==e.transmission&&(r.transmission=e.transmission),void 0!==e.thickness&&(r.thickness=e.thickness),void 0!==e.attenuationDistance&&(r.attenuationDistance=e.attenuationDistance),void 0!==e.attenuationColor&&void 0!==r.attenuationColor&&r.attenuationColor.setHex(e.attenuationColor),void 0!==e.anisotropy&&(r.anisotropy=e.anisotropy),void 0!==e.anisotropyRotation&&(r.anisotropyRotation=e.anisotropyRotation),void 0!==e.fog&&(r.fog=e.fog),void 0!==e.flatShading&&(r.flatShading=e.flatShading),void 0!==e.blending&&(r.blending=e.blending),void 0!==e.combine&&(r.combine=e.combine),void 0!==e.side&&(r.side=e.side),void 0!==e.shadowSide&&(r.shadowSide=e.shadowSide),void 0!==e.opacity&&(r.opacity=e.opacity),void 0!==e.transparent&&(r.transparent=e.transparent),void 0!==e.alphaTest&&(r.alphaTest=e.alphaTest),void 0!==e.alphaHash&&(r.alphaHash=e.alphaHash),void 0!==e.depthFunc&&(r.depthFunc=e.depthFunc),void 0!==e.depthTest&&(r.depthTest=e.depthTest),void 0!==e.depthWrite&&(r.depthWrite=e.depthWrite),void 0!==e.colorWrite&&(r.colorWrite=e.colorWrite),void 0!==e.blendSrc&&(r.blendSrc=e.blendSrc),void 0!==e.blendDst&&(r.blendDst=e.blendDst),void 0!==e.blendEquation&&(r.blendEquation=e.blendEquation),void 0!==e.blendSrcAlpha&&(r.blendSrcAlpha=e.blendSrcAlpha),void 0!==e.blendDstAlpha&&(r.blendDstAlpha=e.blendDstAlpha),void 0!==e.blendEquationAlpha&&(r.blendEquationAlpha=e.blendEquationAlpha),void 0!==e.blendColor&&void 0!==r.blendColor&&r.blendColor.setHex(e.blendColor),void 0!==e.blendAlpha&&(r.blendAlpha=e.blendAlpha),void 0!==e.stencilWriteMask&&(r.stencilWriteMask=e.stencilWriteMask),void 0!==e.stencilFunc&&(r.stencilFunc=e.stencilFunc),void 0!==e.stencilRef&&(r.stencilRef=e.stencilRef),void 0!==e.stencilFuncMask&&(r.stencilFuncMask=e.stencilFuncMask),void 0!==e.stencilFail&&(r.stencilFail=e.stencilFail),void 0!==e.stencilZFail&&(r.stencilZFail=e.stencilZFail),void 0!==e.stencilZPass&&(r.stencilZPass=e.stencilZPass),void 0!==e.stencilWrite&&(r.stencilWrite=e.stencilWrite),void 0!==e.wireframe&&(r.wireframe=e.wireframe),void 0!==e.wireframeLinewidth&&(r.wireframeLinewidth=e.wireframeLinewidth),void 0!==e.wireframeLinecap&&(r.wireframeLinecap=e.wireframeLinecap),void 0!==e.wireframeLinejoin&&(r.wireframeLinejoin=e.wireframeLinejoin),void 0!==e.rotation&&(r.rotation=e.rotation),void 0!==e.linewidth&&(r.linewidth=e.linewidth),void 0!==e.dashSize&&(r.dashSize=e.dashSize),void 0!==e.gapSize&&(r.gapSize=e.gapSize),void 0!==e.scale&&(r.scale=e.scale),void 0!==e.polygonOffset&&(r.polygonOffset=e.polygonOffset),void 0!==e.polygonOffsetFactor&&(r.polygonOffsetFactor=e.polygonOffsetFactor),void 0!==e.polygonOffsetUnits&&(r.polygonOffsetUnits=e.polygonOffsetUnits),void 0!==e.dithering&&(r.dithering=e.dithering),void 0!==e.alphaToCoverage&&(r.alphaToCoverage=e.alphaToCoverage),void 0!==e.premultipliedAlpha&&(r.premultipliedAlpha=e.premultipliedAlpha),void 0!==e.forceSinglePass&&(r.forceSinglePass=e.forceSinglePass),void 0!==e.visible&&(r.visible=e.visible),void 0!==e.toneMapped&&(r.toneMapped=e.toneMapped),void 0!==e.userData&&(r.userData=e.userData),void 0!==e.vertexColors&&("number"==typeof e.vertexColors?r.vertexColors=e.vertexColors>0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const t in e.uniforms){const o=e.uniforms[t];switch(r.uniforms[t]={},o.type){case"t":r.uniforms[t].value=n(o.value);break;case"c":r.uniforms[t].value=(new pa).setHex(o.value);break;case"v2":r.uniforms[t].value=(new mr).fromArray(o.value);break;case"v3":r.uniforms[t].value=(new Yr).fromArray(o.value);break;case"v4":r.uniforms[t].value=(new zr).fromArray(o.value);break;case"m3":r.uniforms[t].value=(new gr).fromArray(o.value);break;case"m4":r.uniforms[t].value=(new Mi).fromArray(o.value);break;default:r.uniforms[t].value=o.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(r.glslVersion=e.glslVersion),void 0!==e.extensions)for(const t in e.extensions)r.extensions[t]=e.extensions[t];if(void 0!==e.lights&&(r.lights=e.lights),void 0!==e.clipping&&(r.clipping=e.clipping),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),r.normalScale=(new mr).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new mr).fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(r.iridescenceMap=n(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.anisotropyMap&&(r.anisotropyMap=n(e.anisotropyMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new{ShadowMaterial:nf,SpriteMaterial:bl,RawShaderMaterial:rf,ShaderMaterial:ms,PointsMaterial:bu,MeshPhysicalMaterial:sf,MeshStandardMaterial:af,MeshPhongMaterial:of,MeshToonMaterial:cf,MeshNormalMaterial:lf,MeshLambertMaterial:uf,MeshDepthMaterial:Yc,MeshDistanceMaterial:Zc,MeshBasicMaterial:_a,MeshMatcapMaterial:hf,LineDashedMaterial:ff,LineBasicMaterial:lu,Material:va}[e]}}class pd{static decodeText(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let s="";for(let i=0,t=e.length;i<t;i++)s+=String.fromCharCode(e[i]);try{return decodeURIComponent(escape(s))}catch(e){return s}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,path){return"string"!=typeof e||""===e?"":(/^https?:\/\//i.test(path)&&/^\//.test(e)&&(path=path.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:path+e)}}class md extends Wa{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(source){return super.copy(source),this.instanceCount=source.instanceCount,this}toJSON(){const data=super.toJSON();return data.instanceCount=this.instanceCount,data.isInstancedBufferGeometry=!0,data}}class gd extends Df{constructor(e){super(e)}load(e,t,n,r){const o=this,c=new Bf(o.manager);c.setPath(o.path),c.setRequestHeader(o.requestHeader),c.setWithCredentials(o.withCredentials),c.load(e,(function(text){try{t(o.parse(JSON.parse(text)))}catch(t){r&&r(t),o.manager.itemError(e)}}),n,r)}parse(e){const t={},n={};function r(e,r){if(void 0!==t[r])return t[r];const o=e.interleavedBuffers[r],c=function(e,t){if(void 0!==n[t])return n[t];const r=e.arrayBuffers[t],o=new Uint32Array(r).buffer;return n[t]=o,o}(e,o.buffer),l=wr(o.type,c),h=new vl(l,o.stride);return h.uuid=o.uuid,t[r]=h,h}const o=e.isInstancedBufferGeometry?new md:new Wa,c=e.data.index;if(void 0!==c){const e=wr(c.type,c.array);o.setIndex(new Ma(e,1))}const l=e.data.attributes;for(const t in l){const n=l[t];let c;if(n.isInterleavedBufferAttribute){const t=r(e.data,n.data);c=new yl(t,n.itemSize,n.offset,n.normalized)}else{const e=wr(n.type,n.array);c=new(n.isInstancedBufferAttribute?eu:Ma)(e,n.itemSize,n.normalized)}void 0!==n.name&&(c.name=n.name),void 0!==n.usage&&c.setUsage(n.usage),void 0!==n.updateRange&&(c.updateRange.offset=n.updateRange.offset,c.updateRange.count=n.updateRange.count),o.setAttribute(t,c)}const h=e.data.morphAttributes;if(h)for(const t in h){const n=h[t],c=[];for(let i=0,t=n.length;i<t;i++){const t=n[i];let o;if(t.isInterleavedBufferAttribute){const n=r(e.data,t.data);o=new yl(n,t.itemSize,t.offset,t.normalized)}else{const e=wr(t.type,t.array);o=new Ma(e,t.itemSize,t.normalized)}void 0!==t.name&&(o.name=t.name),c.push(o)}o.morphAttributes[t]=c}e.data.morphTargetsRelative&&(o.morphTargetsRelative=!0);const f=e.data.groups||e.data.drawcalls||e.data.offsets;if(void 0!==f)for(let i=0,e=f.length;i!==e;++i){const e=f[i];o.addGroup(e.start,e.count,e.materialIndex)}const d=e.data.boundingSphere;if(void 0!==d){const e=new Yr;void 0!==d.center&&e.fromArray(d.center),o.boundingSphere=new vi(e,d.radius)}return e.name&&(o.name=e.name),e.userData&&(o.userData=e.userData),o}}class vd extends Df{constructor(e){super(e)}load(e,t,n,r){const o=this,path=""===this.path?pd.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||path;const c=new Bf(this.manager);c.setPath(this.path),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,(function(text){let n=null;try{n=JSON.parse(text)}catch(e){return void(void 0!==r&&r(e))}const c=n.metadata;void 0!==c&&void 0!==c.type&&"geometry"!==c.type.toLowerCase()?o.parse(n,t):void 0!==r&&r(new Error("THREE.ObjectLoader: Can't load "+e))}),n,r)}async loadAsync(e,t){const path=""===this.path?pd.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||path;const n=new Bf(this.manager);n.setPath(this.path),n.setRequestHeader(this.requestHeader),n.setWithCredentials(this.withCredentials);const text=await n.loadAsync(e,t),r=JSON.parse(text),o=r.metadata;if(void 0===o||void 0===o.type||"geometry"===o.type.toLowerCase())throw new Error("THREE.ObjectLoader: Can't load "+e);return await this.parseAsync(r)}parse(e,t){const n=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),o=this.parseGeometries(e.geometries,r),c=this.parseImages(e.images,(function(){void 0!==t&&t(object)})),l=this.parseTextures(e.textures,c),h=this.parseMaterials(e.materials,l),object=this.parseObject(e.object,o,h,l,n),f=this.parseSkeletons(e.skeletons,object);if(this.bindSkeletons(object,f),void 0!==t){let e=!1;for(const t in c)if(c[t].data instanceof HTMLImageElement){e=!0;break}!1===e&&t(object)}return object}async parseAsync(e){const t=this.parseAnimations(e.animations),n=this.parseShapes(e.shapes),r=this.parseGeometries(e.geometries,n),o=await this.parseImagesAsync(e.images),c=this.parseTextures(e.textures,o),l=this.parseMaterials(e.materials,c),object=this.parseObject(e.object,r,l,c,t),h=this.parseSkeletons(e.skeletons,object);return this.bindSkeletons(object,h),object}parseShapes(e){const t={};if(void 0!==e)for(let i=0,n=e.length;i<n;i++){const n=(new ph).fromJSON(e[i]);t[n.uuid]=n}return t}parseSkeletons(e,object){const t={},n={};if(object.traverse((function(e){e.isBone&&(n[e.uuid]=e)})),void 0!==e)for(let i=0,r=e.length;i<r;i++){const r=(new Ql).fromJSON(e[i],n);t[r.uuid]=r}return t}parseGeometries(e,t){const n={};if(void 0!==e){const r=new gd;for(let i=0,o=e.length;i<o;i++){let o;const data=e[i];switch(data.type){case"BufferGeometry":case"InstancedBufferGeometry":o=r.parse(data);break;default:data.type in tf&&(o=tf[data.type].fromJSON(data,t))}o.uuid=data.uuid,void 0!==data.name&&(o.name=data.name),void 0!==data.userData&&(o.userData=data.userData),n[data.uuid]=o}}return n}parseMaterials(e,t){const n={},r={};if(void 0!==e){const o=new fd;o.setTextures(t);for(let i=0,t=e.length;i<t;i++){const data=e[i];void 0===n[data.uuid]&&(n[data.uuid]=o.parse(data)),r[data.uuid]=n[data.uuid]}}return r}parseAnimations(e){const t={};if(void 0!==e)for(let i=0;i<e.length;i++){const data=e[i],n=Of.parse(data);t[n.uuid]=n}return t}parseImages(e,t){const n=this,r={};let o;function c(image){if("string"==typeof image){const e=image;return function(e){return n.manager.itemStart(e),o.load(e,(function(){n.manager.itemEnd(e)}),void 0,(function(){n.manager.itemError(e),n.manager.itemEnd(e)}))}(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(e)?e:n.resourcePath+e)}return image.data?{data:wr(image.type,image.data),width:image.width,height:image.height}:null}if(void 0!==e&&e.length>0){const n=new If(t);o=new Vf(n),o.setCrossOrigin(this.crossOrigin);for(let i=0,t=e.length;i<t;i++){const image=e[i],t=image.url;if(Array.isArray(t)){const e=[];for(let n=0,r=t.length;n<r;n++){const r=c(t[n]);null!==r&&(r instanceof HTMLImageElement?e.push(r):e.push(new Zl(r.data,r.width,r.height)))}r[image.uuid]=new Dr(e)}else{const e=c(image.url);r[image.uuid]=new Dr(e)}}}return r}async parseImagesAsync(e){const t=this,n={};let r;async function o(image){if("string"==typeof image){const e=image,path=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(e)?e:t.resourcePath+e;return await r.loadAsync(path)}return image.data?{data:wr(image.type,image.data),width:image.width,height:image.height}:null}if(void 0!==e&&e.length>0){r=new Vf(this.manager),r.setCrossOrigin(this.crossOrigin);for(let i=0,t=e.length;i<t;i++){const image=e[i],t=image.url;if(Array.isArray(t)){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],c=await o(r);null!==c&&(c instanceof HTMLImageElement?e.push(c):e.push(new Zl(c.data,c.width,c.height)))}n[image.uuid]=new Dr(e)}else{const e=await o(image.url);n[image.uuid]=new Dr(e)}}}return n}parseTextures(e,t){function n(e,t){return"number"==typeof e?e:t[e]}const r={};if(void 0!==e)for(let i=0,o=e.length;i<o;i++){const data=e[i];data.image,t[data.image];const source=t[data.image],image=source.data;let o;Array.isArray(image)?(o=new ys,6===image.length&&(o.needsUpdate=!0)):(o=image&&image.data?new Zl:new Br,image&&(o.needsUpdate=!0)),o.source=source,o.uuid=data.uuid,void 0!==data.name&&(o.name=data.name),void 0!==data.mapping&&(o.mapping=n(data.mapping,_d)),void 0!==data.channel&&(o.channel=data.channel),void 0!==data.offset&&o.offset.fromArray(data.offset),void 0!==data.repeat&&o.repeat.fromArray(data.repeat),void 0!==data.center&&o.center.fromArray(data.center),void 0!==data.rotation&&(o.rotation=data.rotation),void 0!==data.wrap&&(o.wrapS=n(data.wrap[0],yd),o.wrapT=n(data.wrap[1],yd)),void 0!==data.format&&(o.format=data.format),void 0!==data.internalFormat&&(o.internalFormat=data.internalFormat),void 0!==data.type&&(o.type=data.type),void 0!==data.colorSpace&&(o.colorSpace=data.colorSpace),void 0!==data.encoding&&(o.encoding=data.encoding),void 0!==data.minFilter&&(o.minFilter=n(data.minFilter,bd)),void 0!==data.magFilter&&(o.magFilter=n(data.magFilter,bd)),void 0!==data.anisotropy&&(o.anisotropy=data.anisotropy),void 0!==data.flipY&&(o.flipY=data.flipY),void 0!==data.generateMipmaps&&(o.generateMipmaps=data.generateMipmaps),void 0!==data.premultiplyAlpha&&(o.premultiplyAlpha=data.premultiplyAlpha),void 0!==data.unpackAlignment&&(o.unpackAlignment=data.unpackAlignment),void 0!==data.compareFunction&&(o.compareFunction=data.compareFunction),void 0!==data.userData&&(o.userData=data.userData),r[data.uuid]=o}return r}parseObject(data,e,t,n,r){let object,o,c;function l(t){return e[t],e[t]}function h(e){if(void 0!==e){if(Array.isArray(e)){const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];t[r],n.push(t[r])}return n}return t[e],t[e]}}function f(e){return n[e],n[e]}switch(data.type){case"Scene":object=new gl,void 0!==data.background&&(Number.isInteger(data.background)?object.background=new pa(data.background):object.background=f(data.background)),void 0!==data.environment&&(object.environment=f(data.environment)),void 0!==data.fog&&("Fog"===data.fog.type?object.fog=new ml(data.fog.color,data.fog.near,data.fog.far):"FogExp2"===data.fog.type&&(object.fog=new pl(data.fog.color,data.fog.density)),""!==data.fog.name&&(object.fog.name=data.fog.name)),void 0!==data.backgroundBlurriness&&(object.backgroundBlurriness=data.backgroundBlurriness),void 0!==data.backgroundIntensity&&(object.backgroundIntensity=data.backgroundIntensity);break;case"PerspectiveCamera":object=new vs(data.fov,data.aspect,data.near,data.far),void 0!==data.focus&&(object.focus=data.focus),void 0!==data.zoom&&(object.zoom=data.zoom),void 0!==data.filmGauge&&(object.filmGauge=data.filmGauge),void 0!==data.filmOffset&&(object.filmOffset=data.filmOffset),void 0!==data.view&&(object.view=Object.assign({},data.view));break;case"OrthographicCamera":object=new Hs(data.left,data.right,data.top,data.bottom,data.near,data.far),void 0!==data.zoom&&(object.zoom=data.zoom),void 0!==data.view&&(object.view=Object.assign({},data.view));break;case"AmbientLight":object=new cd(data.color,data.intensity);break;case"DirectionalLight":object=new od(data.color,data.intensity);break;case"PointLight":object=new ad(data.color,data.intensity,data.distance,data.decay);break;case"RectAreaLight":object=new ld(data.color,data.intensity,data.width,data.height);break;case"SpotLight":object=new Qf(data.color,data.intensity,data.distance,data.angle,data.penumbra,data.decay);break;case"HemisphereLight":object=new Xf(data.color,data.groundColor,data.intensity);break;case"LightProbe":object=(new hd).fromJSON(data);break;case"SkinnedMesh":o=l(data.geometry),c=h(data.material),object=new ql(o,c),void 0!==data.bindMode&&(object.bindMode=data.bindMode),void 0!==data.bindMatrix&&object.bindMatrix.fromArray(data.bindMatrix),void 0!==data.skeleton&&(object.skeleton=data.skeleton);break;case"Mesh":o=l(data.geometry),c=h(data.material),object=new cs(o,c);break;case"InstancedMesh":o=l(data.geometry),c=h(data.material);const e=data.count,t=data.instanceMatrix,n=data.instanceColor;object=new cu(o,c,e),object.instanceMatrix=new eu(new Float32Array(t.array),16),void 0!==n&&(object.instanceColor=new eu(new Float32Array(n.array),n.itemSize));break;case"LOD":object=new Fl;break;case"Line":object=new mu(l(data.geometry),h(data.material));break;case"LineLoop":object=new yu(l(data.geometry),h(data.material));break;case"LineSegments":object=new _u(l(data.geometry),h(data.material));break;case"PointCloud":case"Points":object=new Eu(l(data.geometry),h(data.material));break;case"Sprite":object=new Il(h(data.material));break;case"Group":object=new nl;break;case"Bone":object=new Yl;break;default:object=new Ki}if(object.uuid=data.uuid,void 0!==data.name&&(object.name=data.name),void 0!==data.matrix?(object.matrix.fromArray(data.matrix),void 0!==data.matrixAutoUpdate&&(object.matrixAutoUpdate=data.matrixAutoUpdate),object.matrixAutoUpdate&&object.matrix.decompose(object.position,object.quaternion,object.scale)):(void 0!==data.position&&object.position.fromArray(data.position),void 0!==data.rotation&&object.rotation.fromArray(data.rotation),void 0!==data.quaternion&&object.quaternion.fromArray(data.quaternion),void 0!==data.scale&&object.scale.fromArray(data.scale)),void 0!==data.up&&object.up.fromArray(data.up),void 0!==data.castShadow&&(object.castShadow=data.castShadow),void 0!==data.receiveShadow&&(object.receiveShadow=data.receiveShadow),data.shadow&&(void 0!==data.shadow.bias&&(object.shadow.bias=data.shadow.bias),void 0!==data.shadow.normalBias&&(object.shadow.normalBias=data.shadow.normalBias),void 0!==data.shadow.radius&&(object.shadow.radius=data.shadow.radius),void 0!==data.shadow.mapSize&&object.shadow.mapSize.fromArray(data.shadow.mapSize),void 0!==data.shadow.camera&&(object.shadow.camera=this.parseObject(data.shadow.camera))),void 0!==data.visible&&(object.visible=data.visible),void 0!==data.frustumCulled&&(object.frustumCulled=data.frustumCulled),void 0!==data.renderOrder&&(object.renderOrder=data.renderOrder),void 0!==data.userData&&(object.userData=data.userData),void 0!==data.layers&&(object.layers.mask=data.layers),void 0!==data.children){const o=data.children;for(let i=0;i<o.length;i++)object.add(this.parseObject(o[i],e,t,n,r))}if(void 0!==data.animations){const e=data.animations;for(let i=0;i<e.length;i++){const t=e[i];object.animations.push(r[t])}}if("LOD"===data.type){void 0!==data.autoUpdate&&(object.autoUpdate=data.autoUpdate);const e=data.levels;for(let t=0;t<e.length;t++){const n=e[t],r=object.getObjectByProperty("uuid",n.object);void 0!==r&&object.addLevel(r,n.distance,n.hysteresis)}}return object}bindSkeletons(object,e){0!==Object.keys(e).length&&object.traverse((function(t){if(!0===t.isSkinnedMesh&&void 0!==t.skeleton){const n=e[t.skeleton];void 0===n||t.bind(n,t.bindMatrix)}}))}}const _d={UVMapping:ve,CubeReflectionMapping:_e,CubeRefractionMapping:ye,EquirectangularReflectionMapping:be,EquirectangularRefractionMapping:we,CubeUVReflectionMapping:xe},yd={RepeatWrapping:Se,ClampToEdgeWrapping:Te,MirroredRepeatWrapping:Ee},bd={NearestFilter:Me,NearestMipmapNearestFilter:Ae,NearestMipmapLinearFilter:Re,LinearFilter:Oe,LinearMipmapNearestFilter:Pe,LinearMipmapLinearFilter:Ie};class wd extends Df{constructor(e){super(e),this.isImageBitmapLoader=!0,this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,r){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const o=this,c=Lf.get(e);if(void 0!==c)return o.manager.itemStart(e),setTimeout((function(){t&&t(c),o.manager.itemEnd(e)}),0),c;const l={};l.credentials="anonymous"===this.crossOrigin?"same-origin":"include",l.headers=this.requestHeader,fetch(e,l).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(o.options,{colorSpaceConversion:"none"}))})).then((function(n){Lf.add(e,n),t&&t(n),o.manager.itemEnd(e)})).catch((function(t){r&&r(t),o.manager.itemError(e),o.manager.itemEnd(e)})),o.manager.itemStart(e)}}let xd;class Sd{static getContext(){return void 0===xd&&(xd=new(window.AudioContext||window.webkitAudioContext)),xd}static setContext(e){xd=e}}class Td extends Df{constructor(e){super(e)}load(e,t,n,r){const o=this,c=new Bf(this.manager);function l(t){r&&r(t),o.manager.itemError(e)}c.setResponseType("arraybuffer"),c.setPath(this.path),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,(function(e){try{const n=e.slice(0);Sd.getContext().decodeAudioData(n,(function(e){t(e)}),l)}catch(e){l(e)}}),n,r)}}const Ed=new Mi,Md=new Mi,Ad=new Mi;class Cd{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new vs,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new vs,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Ad.copy(e.projectionMatrix);const n=t.eyeSep/2,r=n*t.near/t.focus,o=t.near*Math.tan(nr*t.fov*.5)/t.zoom;let c,l;Md.elements[12]=-n,Ed.elements[12]=n,c=-o*t.aspect+r,l=o*t.aspect+r,Ad.elements[0]=2*t.near/(l-c),Ad.elements[8]=(l+c)/(l-c),this.cameraL.projectionMatrix.copy(Ad),c=-o*t.aspect-r,l=o*t.aspect-r,Ad.elements[0]=2*t.near/(l-c),Ad.elements[8]=(l+c)/(l-c),this.cameraR.projectionMatrix.copy(Ad)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(Md),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(Ed)}}class Rd{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=kd(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=kd();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function kd(){return("undefined"==typeof performance?Date:performance).now()}const Od=new Yr,Pd=new qr,Ld=new Yr,Id=new Yr;class Nd extends Ki{constructor(){super(),this.type="AudioListener",this.context=Sd.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Rd}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Od,Pd,Ld),Id.set(0,0,-1).applyQuaternion(Pd),t.positionX){const e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(Od.x,e),t.positionY.linearRampToValueAtTime(Od.y,e),t.positionZ.linearRampToValueAtTime(Od.z,e),t.forwardX.linearRampToValueAtTime(Id.x,e),t.forwardY.linearRampToValueAtTime(Id.y,e),t.forwardZ.linearRampToValueAtTime(Id.z,e),t.upX.linearRampToValueAtTime(n.x,e),t.upY.linearRampToValueAtTime(n.y,e),t.upZ.linearRampToValueAtTime(n.z,e)}else t.setPosition(Od.x,Od.y,Od.z),t.setOrientation(Id.x,Id.y,Id.z,n.x,n.y,n.z)}}class Dd extends Ki{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(!0===this.isPlaying)return;if(!1===this.hasPlaybackControl)return;this._startedAt=this.context.currentTime+e;const source=this.context.createBufferSource();return source.buffer=this.buffer,source.loop=this.loop,source.loopStart=this.loopStart,source.loopEnd=this.loopEnd,source.onended=this.onEnded.bind(this),source.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=source,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,null!==this.source&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let i=1,e=this.filters.length;i<e;i++)this.filters[i-1].connect(this.filters[i]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(!1!==this._connected){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let i=1,e=this.filters.length;i<e;i++)this.filters[i-1].disconnect(this.filters[i]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}}getFilters(){return this.filters}setFilters(e){return e||(e=[]),!0===this._connected?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}setDetune(e){if(this.detune=e,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(filter){return this.setFilters(filter?[filter]:[])}setPlaybackRate(e){if(!1!==this.hasPlaybackControl)return this.playbackRate=e,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1!==this.hasPlaybackControl&&this.loop}setLoop(e){if(!1!==this.hasPlaybackControl)return this.loop=e,!0===this.isPlaying&&(this.source.loop=this.loop),this}setLoopStart(e){return this.loopStart=e,this}setLoopEnd(e){return this.loopEnd=e,this}getVolume(){return this.gain.gain.value}setVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}}const Ud=new Yr,Fd=new qr,Bd=new Yr,zd=new Yr;class Hd extends Dd{constructor(e){super(e),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}connect(){super.connect(),this.panner.connect(this.gain)}disconnect(){super.disconnect(),this.panner.disconnect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(e){return this.panner.refDistance=e,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(e){return this.panner.rolloffFactor=e,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(e){return this.panner.distanceModel=e,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(e){return this.panner.maxDistance=e,this}setDirectionalCone(e,t,n){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=t,this.panner.coneOuterGain=n,this}updateMatrixWorld(e){if(super.updateMatrixWorld(e),!0===this.hasPlaybackControl&&!1===this.isPlaying)return;this.matrixWorld.decompose(Ud,Fd,Bd),zd.set(0,0,1).applyQuaternion(Fd);const t=this.panner;if(t.positionX){const e=this.context.currentTime+this.listener.timeDelta;t.positionX.linearRampToValueAtTime(Ud.x,e),t.positionY.linearRampToValueAtTime(Ud.y,e),t.positionZ.linearRampToValueAtTime(Ud.z,e),t.orientationX.linearRampToValueAtTime(zd.x,e),t.orientationY.linearRampToValueAtTime(zd.y,e),t.orientationZ.linearRampToValueAtTime(zd.z,e)}else t.setPosition(Ud.x,Ud.y,Ud.z),t.setOrientation(zd.x,zd.y,zd.z)}}class Vd{constructor(audio,e=2048){this.analyser=audio.context.createAnalyser(),this.analyser.fftSize=e,this.data=new Uint8Array(this.analyser.frequencyBinCount),audio.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let e=0;const data=this.getFrequencyData();for(let i=0;i<data.length;i++)e+=data[i];return e/data.length}}class jd{constructor(e,t,n){let r,o,c;switch(this.binding=e,this.valueSize=n,t){case"quaternion":r=this._slerp,o=this._slerpAdditive,c=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,o=this._select,c=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,o=this._lerpAdditive,c=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=o,this._setIdentity=c,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,t){const n=this.buffer,r=this.valueSize,o=e*r+r;
vendor: 4,439 bytes, line 2
2let c=this.cumulativeWeight;if(0===c){for(let i=0;i!==r;++i)n[o+i]=n[i];c=t}else{c+=t;const e=t/c;this._mixBufferRegion(n,o,0,e,r)}this.cumulativeWeight=c}accumulateAdditive(e){const t=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(t,r,0,e,n),this.cumulativeWeightAdditive+=e}apply(e){const t=this.valueSize,n=this.buffer,r=e*t+t,o=this.cumulativeWeight,c=this.cumulativeWeightAdditive,l=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,o<1){const e=t*this._origIndex;this._mixBufferRegion(n,r,e,1-o,t)}c>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let i=t,e=t+t;i!==e;++i)if(n[i]!==n[i+t]){l.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let i=n,e=r;i!==e;++i)t[i]=t[r+i%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let i=e;i<t;i++)this.buffer[i]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let i=0;i<this.valueSize;i++)this.buffer[t+i]=this.buffer[e+i]}_select(e,t,n,r,o){if(r>=.5)for(let i=0;i!==o;++i)e[t+i]=e[n+i]}_slerp(e,t,n,r){qr.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,o){const c=this._workIndex*o;qr.multiplyQuaternionsFlat(e,c,e,t,e,n),qr.slerpFlat(e,t,e,t,e,c,r)}_lerp(e,t,n,r,o){const s=1-r;for(let i=0;i!==o;++i){const o=t+i;e[o]=e[o]*s+e[n+i]*r}}_lerpAdditive(e,t,n,r,o){for(let i=0;i!==o;++i){const o=t+i;e[o]=e[o]+e[n+i]*r}}}const Wd=new RegExp("[\\[\\]\\.:\\/]","g"),Gd="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",$d=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]")+/(WCOD+)?/.source.replace("WCOD",Gd)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]")+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]")+"$"),Xd=["material","materials","bones","map"];class qd{constructor(e,path,t){this.path=path,this.parsedPath=t||qd.parseTrackName(path),this.node=qd.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,path,t){return e&&e.isAnimationObjectGroup?new qd.Composite(e,path,t):new qd(e,path,t)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Wd,"")}static parseTrackName(e){const t=$d.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);-1!==Xd.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let i=0;i<e.length;i++){const r=e[i];if(r.name===t||r.uuid===t)return r;const o=n(r.children);if(o)return o}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const source=this.resolvedProperty;for(let i=0,n=source.length;i!==n;++i)e[t++]=source[i]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.needsUpdate=!0}
vendor: 8,005 bytes, line 2
2_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,r=t.propertyName;let o=t.propertyIndex;if(e||(e=qd.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return;if(n){let r=t.objectIndex;switch(n){case"materials":if(!e.material)return;if(!e.material.materials)return;e=e.material.materials;break;case"bones":if(!e.skeleton)return;e=e.skeleton.bones;for(let i=0;i<e.length;i++)if(e[i].name===r){r=i;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material)return;if(!e.material.map)return;e=e.material.map;break;default:if(void 0===e[n])return;e=e[n]}if(void 0!==r){if(void 0===e[r])return;e=e[r]}}const c=e[r];if(void 0===c){t.nodeName;return}let l=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?l=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(l=this.Versioning.MatrixWorldNeedsUpdate);let h=this.BindingType.Direct;if(void 0!==o){if("morphTargetInfluences"===r){if(!e.geometry)return;if(!e.geometry.morphAttributes)return;void 0!==e.morphTargetDictionary[o]&&(o=e.morphTargetDictionary[o])}h=this.BindingType.ArrayElement,this.resolvedProperty=c,this.propertyIndex=o}else void 0!==c.fromArray&&void 0!==c.toArray?(h=this.BindingType.HasFromToArray,this.resolvedProperty=c):Array.isArray(c)?(h=this.BindingType.EntireArray,this.resolvedProperty=c):this.propertyName=r;this.getValue=this.GetterByBindingType[h],this.setValue=this.SetterByBindingTypeAndVersioning[h][l]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}qd.Composite=class{constructor(e,path,t){const n=t||qd.parseTrackName(path);this._targetGroup=e,this._bindings=e.subscribe_(path,n)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let i=this._targetGroup.nCachedObjects_,t=e.length;i!==t;++i)e[i].bind()}unbind(){const e=this._bindings;for(let i=this._targetGroup.nCachedObjects_,t=e.length;i!==t;++i)e[i].unbind()}},qd.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},qd.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},qd.prototype.GetterByBindingType=[qd.prototype._getValue_direct,qd.prototype._getValue_array,qd.prototype._getValue_arrayElement,qd.prototype._getValue_toArray],qd.prototype.SetterByBindingTypeAndVersioning=[[qd.prototype._setValue_direct,qd.prototype._setValue_direct_setNeedsUpdate,qd.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[qd.prototype._setValue_array,qd.prototype._setValue_array_setNeedsUpdate,qd.prototype._setValue_array_setMatrixWorldNeedsUpdate],[qd.prototype._setValue_arrayElement,qd.prototype._setValue_arrayElement_setNeedsUpdate,qd.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[qd.prototype._setValue_fromArray,qd.prototype._setValue_fromArray_setNeedsUpdate,qd.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class Yd{constructor(){this.isAnimationObjectGroup=!0,this.uuid=ir(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const e={};this._indicesByUUID=e;for(let i=0,t=arguments.length;i!==t;++i)e[arguments[i].uuid]=i;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const t=this;this.stats={objects:{get total(){return t._objects.length},get inUse(){return this.total-t.nCachedObjects_}},get bindingsPerObject(){return t._bindings.length}}}add(){const e=this._objects,t=this._indicesByUUID,n=this._paths,r=this._parsedPaths,o=this._bindings,c=o.length;let l=void 0,h=e.length,f=this.nCachedObjects_;for(let i=0,d=arguments.length;i!==d;++i){const object=arguments[i],d=object.uuid;let m=t[d];if(void 0===m){m=h++,t[d]=m,e.push(object);for(let e=0,t=c;e!==t;++e)o[e].push(new qd(object,n[e],r[e]))}else if(m<f){l=e[m];const h=--f,v=e[h];t[v.uuid]=m,e[m]=v,t[d]=h,e[h]=object;for(let e=0,t=c;e!==t;++e){const t=o[e],c=t[h];let l=t[m];t[m]=c,void 0===l&&(l=new qd(object,n[e],r[e])),t[h]=l}}else e[m]}this.nCachedObjects_=f}remove(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let o=this.nCachedObjects_;for(let i=0,c=arguments.length;i!==c;++i){const object=arguments[i],c=object.uuid,l=t[c];if(void 0!==l&&l>=o){const h=o++,f=e[h];t[f.uuid]=l,e[l]=f,t[c]=h,e[h]=object;for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[h],o=t[l];t[l]=r,t[h]=o}}}this.nCachedObjects_=o}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let o=this.nCachedObjects_,c=e.length;for(let i=0,l=arguments.length;i!==l;++i){const l=arguments[i].uuid,h=t[l];if(void 0!==h)if(delete t[l],h<o){const l=--o,f=e[l],d=--c,m=e[d];t[f.uuid]=h,e[h]=f,t[m.uuid]=l,e[l]=m,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[l],o=t[d];t[h]=r,t[l]=o,t.pop()}}else{const o=--c,l=e[o];o>0&&(t[l.uuid]=h),e[h]=l,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e];t[h]=t[o],t.pop()}}}this.nCachedObjects_=o}subscribe_(path,e){const t=this._bindingsIndicesByPath;let n=t[path];const r=this._bindings;if(void 0!==n)return r[n];const o=this._paths,c=this._parsedPaths,l=this._objects,h=l.length,f=this.nCachedObjects_,d=new Array(h);n=r.length,t[path]=n,o.push(path),c.push(e),r.push(d);for(let i=f,t=l.length;i!==t;++i){const object=l[i];d[i]=new qd(object,path,e)}return d}unsubscribe_(path){const e=this._bindingsIndicesByPath,t=e[path];if(void 0!==t){const n=this._paths,r=this._parsedPaths,o=this._bindings,c=o.length-1,l=o[c];e[path[c]]=t,o[t]=l,o.pop(),r[t]=r[c],r.pop(),n[t]=n[c],n.pop()}}}class Zd{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const o=t.tracks,c=o.length,l=new Array(c),h={endingStart:Wt,endingEnd:Wt};for(let i=0;i!==c;++i){const e=o[i].createInterpolant(null);l[i]=e,e.settings=h}this._interpolantSettings=h,this._interpolants=l,this._propertyBindings=new Array(c),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Bt,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(time){return this._startTime=time,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}
vendor: 4,757 bytes, line 2
2fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,o=r/n,c=n/r;e.warp(1,o,t),this.warp(c,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,o=r.time,c=this.timeScale;let l=this._timeScaleInterpolant;null===l&&(l=r._lendControlInterpolant(),this._timeScaleInterpolant=l);const h=l.parameterPositions,f=l.sampleValues;return h[0]=o,h[1]=o+n,f[0]=e/c,f[1]=t/c,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(time,e,t,n){if(!this.enabled)return void this._updateWeight(time);const r=this._startTime;if(null!==r){const n=(time-r)*t;n<0||0===t?e=0:(this._startTime=null,e=t*n)}e*=this._updateTimeScale(time);const o=this._updateTime(e),c=this._updateWeight(time);if(c>0){const e=this._interpolants,t=this._propertyBindings;switch(this.blendMode){case qt:for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(o),t[n].accumulateAdditive(c);break;case Xt:default:for(let r=0,l=e.length;r!==l;++r)e[r].evaluate(o),t[r].accumulate(n,c)}}}_updateWeight(time){let e=0;if(this.enabled){e=this.weight;const t=this._weightInterpolant;if(null!==t){const n=t.evaluate(time)[0];e*=n,time>t.parameterPositions[1]&&(this.stopFading(),0===n&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(time){let e=0;if(!this.paused){e=this.timeScale;const t=this._timeScaleInterpolant;if(null!==t){e*=t.evaluate(time)[0],time>t.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(e){const t=this._clip.duration,n=this.loop;let time=this.time+e,r=this._loopCount;const o=n===zt;if(0===e)return-1===r?time:o&&1==(1&r)?t-time:time;if(n===Ft){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(time>=t)time=t;else{if(!(time<0)){this.time=time;break e}time=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=time,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===r&&(e>=0?(r=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),time>=t||time<0){const n=Math.floor(time/t);time-=t*n,r+=Math.abs(n);const c=this.repetitions-r;if(c<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,time=e>0?t:0,this.time=time,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===c){const t=e<0;this._setEndings(t,!t,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this.time=time,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=time;if(o&&1==(1&r))return t-time}return time}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=Gt,r.endingEnd=Gt):(r.endingStart=e?this.zeroSlopeAtStart?Gt:Wt:$t,r.endingEnd=t?this.zeroSlopeAtEnd?Gt:Wt:$t)}_scheduleFading(e,t,n){const r=this._mixer,o=r.time;let c=this._weightInterpolant;null===c&&(c=r._lendControlInterpolant(),this._weightInterpolant=c);const l=c.parameterPositions,h=c.sampleValues;return l[0]=o,h[0]=t,l[1]=o+e,h[1]=n,this}}const Kd=new Float32Array(1);class Jd extends Jn{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,o=r.length,c=e._propertyBindings,l=e._interpolants,h=n.uuid,f=this._bindingsByRootAndName;let d=f[h];void 0===d&&(d={},f[h]=d);for(let i=0;i!==o;++i){const track=r[i],e=track.name;let o=d[e];if(void 0!==o)++o.referenceCount,c[i]=o;else{if(o=c[i],void 0!==o){null===o._cacheIndex&&(++o.referenceCount,this._addInactiveBinding(o,h,e));continue}const path=t&&t._propertyBindings[i].binding.parsedPath;o=new jd(qd.create(n,e,path),track.ValueTypeName,track.getValueSize()),++o.referenceCount,this._addInactiveBinding(o,h,e),c[i]=o}l[i].resultBuffer=o.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r
vendor: 7,560 bytes, line 2
2=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let i=0,e=t.length;i!==e;++i){const e=t[i];0==e.useCount++&&(this._lendBinding(e),e.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let i=0,e=t.length;i!==e;++i){const e=t[i];0==--e.useCount&&(e.restoreOriginalState(),this._takeBackBinding(e))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t<this._nActiveActions}_addInactiveAction(e,t,n){const r=this._actions,o=this._actionsByClip;let c=o[t];if(void 0===c)c={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,o[t]=c;else{const t=c.knownActions;e._byClipCacheIndex=t.length,t.push(e)}e._cacheIndex=r.length,r.push(e),c.actionByRoot[n]=e}_removeInactiveAction(e){const t=this._actions,n=t[t.length-1],r=e._cacheIndex;n._cacheIndex=r,t[r]=n,t.pop(),e._cacheIndex=null;const o=e._clip.uuid,c=this._actionsByClip,l=c[o],h=l.knownActions,f=h[h.length-1],d=e._byClipCacheIndex;f._byClipCacheIndex=d,h[d]=f,h.pop(),e._byClipCacheIndex=null;delete l.actionByRoot[(e._localRoot||this._root).uuid],0===h.length&&delete c[o],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const t=e._propertyBindings;for(let i=0,e=t.length;i!==e;++i){const e=t[i];0==--e.referenceCount&&this._removeInactiveBinding(e)}}_lendAction(e){const t=this._actions,n=e._cacheIndex,r=this._nActiveActions++,o=t[r];e._cacheIndex=r,t[r]=e,o._cacheIndex=n,t[n]=o}_takeBackAction(e){const t=this._actions,n=e._cacheIndex,r=--this._nActiveActions,o=t[r];e._cacheIndex=r,t[r]=e,o._cacheIndex=n,t[n]=o}_addInactiveBinding(e,t,n){const r=this._bindingsByRootAndName,o=this._bindings;let c=r[t];void 0===c&&(c={},r[t]=c),c[n]=e,e._cacheIndex=o.length,o.push(e)}_removeInactiveBinding(e){const t=this._bindings,n=e.binding,r=n.rootNode.uuid,o=n.path,c=this._bindingsByRootAndName,l=c[r],h=t[t.length-1],f=e._cacheIndex;h._cacheIndex=f,t[f]=h,t.pop(),delete l[o],0===Object.keys(l).length&&delete c[r]}_lendBinding(e){const t=this._bindings,n=e._cacheIndex,r=this._nActiveBindings++,o=t[r];e._cacheIndex=r,t[r]=e,o._cacheIndex=n,t[n]=o}_takeBackBinding(e){const t=this._bindings,n=e._cacheIndex,r=--this._nActiveBindings,o=t[r];e._cacheIndex=r,t[r]=e,o._cacheIndex=n,t[n]=o}_lendControlInterpolant(){const e=this._controlInterpolants,t=this._nActiveControlInterpolants++;let n=e[t];return void 0===n&&(n=new wf(new Float32Array(2),new Float32Array(2),1,Kd),n.__cacheIndex=t,e[t]=n),n}_takeBackControlInterpolant(e){const t=this._controlInterpolants,n=e.__cacheIndex,r=--this._nActiveControlInterpolants,o=t[r];e.__cacheIndex=r,t[r]=e,o.__cacheIndex=n,t[n]=o}clipAction(e,t,n){const r=t||this._root,o=r.uuid;let c="string"==typeof e?Of.findByName(r,e):e;const l=null!==c?c.uuid:e,h=this._actionsByClip[l];let f=null;if(void 0===n&&(n=null!==c?c.blendMode:Xt),void 0!==h){const e=h.actionByRoot[o];if(void 0!==e&&e.blendMode===n)return e;f=h.knownActions[0],null===c&&(c=f._clip)}if(null===c)return null;const d=new Zd(this,c,t,n);return this._bindAction(d,f),this._addInactiveAction(d,l,o),d}existingAction(e,t){const n=t||this._root,r=n.uuid,o="string"==typeof e?Of.findByName(n,e):e,c=o?o.uuid:e,l=this._actionsByClip[c];return void 0!==l&&l.actionByRoot[r]||null}stopAllAction(){const e=this._actions;for(let i=this._nActiveActions-1;i>=0;--i)e[i].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,time=this.time+=e,r=Math.sign(e),o=this._accuIndex^=1;for(let i=0;i!==n;++i){t[i]._update(time,e,r,o)}const c=this._bindings,l=this._nActiveBindings;for(let i=0;i!==l;++i)c[i].apply(o);return this}setTime(e){this.time=0;for(let i=0;i<this._actions.length;i++)this._actions[i].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){const t=this._actions,n=e.uuid,r=this._actionsByClip,o=r[n];if(void 0!==o){const e=o.knownActions;for(let i=0,n=e.length;i!==n;++i){const n=e[i];this._deactivateAction(n);const r=n._cacheIndex,o=t[t.length-1];n._cacheIndex=null,n._byClipCacheIndex=null,o._cacheIndex=r,t[r]=o,t.pop(),this._removeInactiveBindingsForAction(n)}delete r[n]}}uncacheRoot(e){const t=e.uuid,n=this._actionsByClip;for(const e in n){const r=n[e].actionByRoot[t];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}const r=this._bindingsByRootAndName[t];if(void 0!==r)for(const e in r){const t=r[e];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(e,t){const n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}class Qd{constructor(e){this.value=e}clone(){return new Qd(void 0===this.value.clone?this.value:this.value.clone())}}let ep=0;class tp extends Jn{constructor(){super(),this.isUniformsGroup=!0,Object.defineProperty(this,"id",{value:ep++}),this.name="",this.usage=Fn,this.uniforms=[]}add(e){return this.uniforms.push(e),this}remove(e){const t=this.uniforms.indexOf(e);return-1!==t&&this.uniforms.splice(t,1),this}setName(e){return this.name=e,this}setUsage(e){return this.usage=e,this}dispose(){return this.dispatchEvent({type:"dispose"}),this}copy(source){this.name=source.name,this.usage=source.usage;const e=source.uniforms;this.uniforms.length=0;for(let i=0,t=e.length;i<t;i++)this.uniforms.push(e[i].clone());return this}clone(){return(new this.constructor).copy(this)}}class np extends vl{constructor(e,t,n=1){super(e,t),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=n}copy(source){return super.copy(source),this.meshPerAttribute=source.meshPerAttribute,this}clone(data){const e=super.clone(data);return e.meshPerAttribute=this.meshPerAttribute,e}toJSON(data){const e=super.toJSON(data);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}class ip{constructor(e,t,n,r,o){this.isGLBufferAttribute=!0,this.name="",this.buffer=e,this.type=t,this.itemSize=n,this.elementSize=r,this.count=o,this.version=0}set needsUpdate(e){!0===e&&this.version++}setBuffer(e){return this.buffer=e,this}setType(e,t){return this.type=e,this.elementSize=t,this}setItemSize(e){return this.itemSize=e,this}setCount(e){return this.count=e,this}}class ap{constructor(e,t,n=0,r=1/0){this.ray=new Ei(e,t),this.near=n,this.far=r,this.camera=null,this.layers=new Ui,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera&&(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t)}intersectObject(object,e=!0,t=[]){return op(object,this,t,e),t.sort(sp),t}intersectObjects(e,t=!0,n=[]){for(let i=0,r=e.length;i<r;i++)op(e[i],this,n,t);return n.sort(sp),n}}function sp(a,b){return a.distance-b.distance}
vendor: 5,508 bytes, line 2
2function op(object,e,t,n){if(object.layers.test(e.layers)&&object.raycast(e,t),!0===n){const n=object.children;for(let i=0,r=n.length;i<r;i++)op(n[i],e,t,!0)}}class cp{constructor(e=1,t=0,n=0){return this.radius=e,this.phi=t,this.theta=n,this}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(ar(t/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}class lp{constructor(e=1,t=0,n=0){return this.radius=e,this.theta=t,this.y=n,this}set(e,t,n){return this.radius=e,this.theta=t,this.y=n,this}copy(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+n*n),this.theta=Math.atan2(e,n),this.y=t,this}clone(){return(new this.constructor).copy(this)}}const up=new mr;class hp{constructor(e=new mr(1/0,1/0),t=new mr(-1/0,-1/0)){this.isBox2=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromPoints(e){this.makeEmpty();for(let i=0,t=e.length;i<t;i++)this.expandByPoint(e[i]);return this}setFromCenterAndSize(e,t){const n=up.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,up).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const fp=new Yr,dp=new Yr;class pp{constructor(e=new Yr,t=new Yr){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(line){return this.start.copy(line.start),this.end.copy(line.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){fp.subVectors(e,this.start),dp.subVectors(this.end,this.start);const n=dp.dot(dp);let r=dp.dot(fp)/n;return t&&(r=ar(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(line){return line.start.equals(this.start)&&line.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const mp=new Yr;class gp extends Ki{constructor(e,t){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const n=new Wa,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let i=0,e=1,t=32;i<t;i++,e++){const n=i/t*Math.PI*2,o=e/t*Math.PI*2;r.push(Math.cos(n),Math.sin(n),1,Math.cos(o),Math.sin(o),1)}n.setAttribute("position",new Na(r,3));const o=new lu({fog:!1,toneMapped:!1});this.cone=new _u(n,o),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1);const e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),mp.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(mp),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const vp=new Yr,_p=new Mi,yp=new Mi;class bp extends _u{constructor(object){const e=function e(object){const t=[];!0===object.isBone&&t.push(object);for(let i=0;i<object.children.length;i++)t.push.apply(t,e(object.children[i]));return t}(object),t=new Wa,n=[],r=[],o=new pa(0,0,1),c=new pa(0,1,0);for(let i=0;i<e.length;i++){const t=e[i];t.parent&&t.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),r.push(o.r,o.g,o.b),r.push(c.r,c.g,c.b))}t.setAttribute("position",new Na(n,3)),t.setAttribute("color",new 
vendor: 2,551 bytes, line 2
2Na(r,3));super(t,new lu({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.isSkeletonHelper=!0,this.type="SkeletonHelper",this.root=object,this.bones=e,this.matrix=object.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(e){const t=this.bones,n=this.geometry,r=n.getAttribute("position");yp.copy(this.root.matrixWorld).invert();for(let i=0,e=0;i<t.length;i++){const n=t[i];n.parent&&n.parent.isBone&&(_p.multiplyMatrices(yp,n.matrixWorld),vp.setFromMatrixPosition(_p),r.setXYZ(e,vp.x,vp.y,vp.z),_p.multiplyMatrices(yp,n.parent.matrixWorld),vp.setFromMatrixPosition(_p),r.setXYZ(e+1,vp.x,vp.y,vp.z),e+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose()}}class wp extends cs{constructor(e,t,n){super(new qh(t,4,2),new _a({wireframe:!0,fog:!1,toneMapped:!1})),this.light=e,this.color=n,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const xp=new Yr,Sp=new pa,Tp=new pa;class Ep extends Ki{constructor(e,t,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type="HemisphereLightHelper";const r=new Gh(t);r.rotateY(.5*Math.PI),this.material=new _a({wireframe:!0,fog:!1,toneMapped:!1}),void 0===this.color&&(this.material.vertexColors=!0);const o=r.getAttribute("position"),c=new Float32Array(3*o.count);r.setAttribute("color",new Ma(c,3)),this.add(new cs(r,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const e=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{const t=e.geometry.getAttribute("color");Sp.copy(this.light.color),Tp.copy(this.light.groundColor);for(let i=0,e=t.count;i<e;i++){const n=i<e/2?Sp:Tp;t.setXYZ(i,n.r,n.g,n.b)}t.needsUpdate=!0}this.light.updateWorldMatrix(!0,!1),e.lookAt(xp.setFromMatrixPosition(this.light.matrixWorld).negate())}}class Mp extends _u{constructor(e=10,t=10,n=4473924,r=8947848){n=new pa(n),r=new pa(r);const o=t/2,c=e/t,l=e/2,h=[],f=[];for(let i=0,e=0,d=-l;i<=t;i++,d+=c){h.push(-l,0,d,l,0,d),h.push(d,0,-l,d,0,l);const t=i===o?n:r;t.toArray(f,e),e+=3,t.toArray(f,e),e+=3,t.toArray(f,e),e+=3,t.toArray(f,e),e+=3}const d=new Wa;d.setAttribute("position",new Na(h,3)),d.setAttribute("color",new 
2Na(f,3));super(d,new lu({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}dispose(){this.geometry.dispose(),this.material.dispose()}}class Ap extends _u{constructor(e=10,t=16,n=8,r=64,o=4473924,c=8947848){o=new pa(o),c=new pa(c);const l=[],h=[];if(t>1)for(let i=0;i<t;i++){const n=i/t*(2*Math.PI),r=Math.sin(n)*e,f=Math.cos(n)*e;l.push(0,0,0),l.push(r,0,f);const d=1&i?o:c;h.push(d.r,d.g,d.b),h.push(d.r,d.g,d.b)}for(let i=0;i<n;i++){const t=1&i?o:c,f=e-e/n*i;for(let e=0;e<r;e++){let n=e/r*(2*Math.PI),o=Math.sin(n)*f,c=Math.cos(n)*f;l.push(o,0,c),h.push(t.r,t.g,t.b),n=(e+1)/r*(2*Math.PI),o=Math.sin(n)*f,c=Math.cos(n)*f,l.push(o,0,c),h.push(t.r,t.g,t.b)}}const f=new Wa;f.setAttribute("position",new Na(l,3)),f.setAttribute("color",new Na(h,3));super(f,new lu({vertexColors:!0,toneMapped:!1})),this.type="PolarGridHelper"}dispose(){this.geometry.dispose(),this.material.dispose()}}const Cp=new Yr,Rp=new Yr,kp=new Yr;class Op extends Ki{constructor(e,t,n){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,this.type="DirectionalLightHelper",void 0===t&&(t=1);let r=new Wa;r.setAttribute("position",new Na([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));const o=new lu({fog:!1,toneMapped:!1});this.lightPlane=new mu(r,o),this.add(this.lightPlane),r=new Wa,r.setAttribute("position",new Na([0,0,0,0,0,1],3)),this.targetLine=new mu(r,o),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),Cp.setFromMatrixPosition(this.light.matrixWorld),Rp.setFromMatrixPosition(this.light.target.matrixWorld),kp.subVectors(Rp,Cp),this.lightPlane.lookAt(Rp),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(Rp),this.targetLine.scale.z=kp.length()}}const Pp=new Yr,Lp=new gs;class Ip extends _u{constructor(e){const t=new Wa,n=new lu({color:16777215,vertexColors:!0,toneMapped:!1}),r=[],o=[],c={};function l(a,b){h(a),h(b)}function h(e){r.push(0,0,0),o.push(0,0,0),void 0===c[e]&&(c[e]=[]),c[e].push(r.length/3-1)}l("n1","n2"),l("n2","n4"),l("n4","n3"),l("n3","n1"),l("f1","f2"),l("f2","f4"),l("f4","f3"),l("f3","f1"),l("n1","f1"),l("n2","f2"),l("n3","f3"),l("n4","f4"),l("p","n1"),l("p","n2"),l("p","n3"),l("p","n4"),l("u1","u2"),l("u2","u3"),l("u3","u1"),l("c","t"),l("p","c"),l("cn1","cn2"),l("cn3","cn4"),l("cf1","cf2"),l("cf3","cf4"),t.setAttribute("position",new Na(r,3)),t.setAttribute("color",new 
vendor: 4,977 bytes, line 2
2Na(o,3)),super(t,n),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=c,this.update();const f=new pa(16755200),d=new pa(16711680),m=new pa(43775),v=new pa(16777215),_=new pa(3355443);this.setColors(f,d,m,v,_)}setColors(e,t,n,r,o){const c=this.geometry.getAttribute("color");c.setXYZ(0,e.r,e.g,e.b),c.setXYZ(1,e.r,e.g,e.b),c.setXYZ(2,e.r,e.g,e.b),c.setXYZ(3,e.r,e.g,e.b),c.setXYZ(4,e.r,e.g,e.b),c.setXYZ(5,e.r,e.g,e.b),c.setXYZ(6,e.r,e.g,e.b),c.setXYZ(7,e.r,e.g,e.b),c.setXYZ(8,e.r,e.g,e.b),c.setXYZ(9,e.r,e.g,e.b),c.setXYZ(10,e.r,e.g,e.b),c.setXYZ(11,e.r,e.g,e.b),c.setXYZ(12,e.r,e.g,e.b),c.setXYZ(13,e.r,e.g,e.b),c.setXYZ(14,e.r,e.g,e.b),c.setXYZ(15,e.r,e.g,e.b),c.setXYZ(16,e.r,e.g,e.b),c.setXYZ(17,e.r,e.g,e.b),c.setXYZ(18,e.r,e.g,e.b),c.setXYZ(19,e.r,e.g,e.b),c.setXYZ(20,e.r,e.g,e.b),c.setXYZ(21,e.r,e.g,e.b),c.setXYZ(22,e.r,e.g,e.b),c.setXYZ(23,e.r,e.g,e.b),c.setXYZ(24,t.r,t.g,t.b),c.setXYZ(25,t.r,t.g,t.b),c.setXYZ(26,t.r,t.g,t.b),c.setXYZ(27,t.r,t.g,t.b),c.setXYZ(28,t.r,t.g,t.b),c.setXYZ(29,t.r,t.g,t.b),c.setXYZ(30,t.r,t.g,t.b),c.setXYZ(31,t.r,t.g,t.b),c.setXYZ(32,n.r,n.g,n.b),c.setXYZ(33,n.r,n.g,n.b),c.setXYZ(34,n.r,n.g,n.b),c.setXYZ(35,n.r,n.g,n.b),c.setXYZ(36,n.r,n.g,n.b),c.setXYZ(37,n.r,n.g,n.b),c.setXYZ(38,r.r,r.g,r.b),c.setXYZ(39,r.r,r.g,r.b),c.setXYZ(40,o.r,o.g,o.b),c.setXYZ(41,o.r,o.g,o.b),c.setXYZ(42,o.r,o.g,o.b),c.setXYZ(43,o.r,o.g,o.b),c.setXYZ(44,o.r,o.g,o.b),c.setXYZ(45,o.r,o.g,o.b),c.setXYZ(46,o.r,o.g,o.b),c.setXYZ(47,o.r,o.g,o.b),c.setXYZ(48,o.r,o.g,o.b),c.setXYZ(49,o.r,o.g,o.b),c.needsUpdate=!0}update(){const e=this.geometry,t=this.pointMap;Lp.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),Np("c",t,e,Lp,0,0,-1),Np("t",t,e,Lp,0,0,1),Np("n1",t,e,Lp,-1,-1,-1),Np("n2",t,e,Lp,1,-1,-1),Np("n3",t,e,Lp,-1,1,-1),Np("n4",t,e,Lp,1,1,-1),Np("f1",t,e,Lp,-1,-1,1),Np("f2",t,e,Lp,1,-1,1),Np("f3",t,e,Lp,-1,1,1),Np("f4",t,e,Lp,1,1,1),Np("u1",t,e,Lp,.7,1.1,-1),Np("u2",t,e,Lp,-.7,1.1,-1),Np("u3",t,e,Lp,0,2,-1),Np("cf1",t,e,Lp,-1,0,1),Np("cf2",t,e,Lp,1,0,1),Np("cf3",t,e,Lp,0,-1,1),Np("cf4",t,e,Lp,0,1,1),Np("cn1",t,e,Lp,-1,0,-1),Np("cn2",t,e,Lp,1,0,-1),Np("cn3",t,e,Lp,0,-1,-1),Np("cn4",t,e,Lp,0,1,-1),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}}function Np(e,t,n,r,o,c,l){Pp.set(o,c,l).unproject(r);const h=t[e];if(void 0!==h){const e=n.getAttribute("position");for(let i=0,t=h.length;i<t;i++)e.setXYZ(h[i],Pp.x,Pp.y,Pp.z)}}const Dp=new Jr;class Up extends _u{constructor(object,e=16776960){const t=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),n=new Float32Array(24),r=new Wa;r.setIndex(new Ma(t,1)),r.setAttribute("position",new Ma(n,3)),super(r,new lu({color:e,toneMapped:!1})),this.object=object,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(object){if(void 0!==this.object&&Dp.setFromObject(this.object),Dp.isEmpty())return;const e=Dp.min,t=Dp.max,n=this.geometry.attributes.position,r=n.array;r[0]=t.x,r[1]=t.y,r[2]=t.z,r[3]=e.x,r[4]=t.y,r[5]=t.z,r[6]=e.x,r[7]=e.y,r[8]=t.z,r[9]=t.x,r[10]=e.y,r[11]=t.z,r[12]=t.x,r[13]=t.y,r[14]=e.z,r[15]=e.x,r[16]=t.y,r[17]=e.z,r[18]=e.x,r[19]=e.y,r[20]=e.z,r[21]=t.x,r[22]=e.y,r[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(object){return this.object=object,this.update(),this}copy(source,e){return super.copy(source,e),this.object=source.object,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class Fp extends _u{constructor(e,t=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),r=new Wa;r.setIndex(new Ma(n,1)),r.setAttribute("position",new Na([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),super(r,new lu({color:t,toneMapped:!1})),this.box=e,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(e){const t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(e))}dispose(){this.geometry.dispose(),this.material.dispose()}}class Bp extends mu{constructor(e,t=1,n=16776960){const r=n,o=new Wa;o.setAttribute("position",new Na([1,-1,0,-1,1,0,-1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],3)),o.computeBoundingSphere(),super(o,new lu({color:r,toneMapped:!1})),this.type="PlaneHelper",this.plane=e,this.size=t;const c=new Wa;c.setAttribute("position",new Na([1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],3)),c.computeBoundingSphere(),this.add(new cs(c,new _a({color:r,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(e){this.position.set(0,0,0),this.scale.set(.5*this.size,.5*this.size,1),this.lookAt(this.plane.normal),this.translateZ(-this.plane.constant),super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}}const zp=new Yr;let Hp,Vp;
vendor: 1,360 bytes, line 2
2class jp extends Ki{constructor(e=new Yr(0,0,1),t=new Yr(0,0,0),n=1,r=16776960,o=.2*n,c=.2*o){super(),this.type="ArrowHelper",void 0===Hp&&(Hp=new Wa,Hp.setAttribute("position",new Na([0,0,0,0,1,0],3)),Vp=new ah(0,.5,1,5,1),Vp.translate(0,-.5,0)),this.position.copy(t),this.line=new mu(Hp,new lu({color:r,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new cs(Vp,new _a({color:r,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(n,o,c)}setDirection(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{zp.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(zp,t)}}setLength(e,t=.2*e,n=.2*t){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(source){return super.copy(source,!1),this.line.copy(source.line),this.cone.copy(source.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class Wp extends _u{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new Wa;n.setAttribute("position",new Na(t,3)),n.setAttribute("color",new 
2Na([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));super(n,new lu({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(e,t,n){const r=new pa,o=this.geometry.attributes.color.array;return r.set(e),r.toArray(o,0),r.toArray(o,3),r.set(t),r.toArray(o,6),r.toArray(o,9),r.set(n),r.toArray(o,12),r.toArray(o,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class Gp{constructor(){this.type="ShapePath",this.color=new pa,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new eh,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,o,c){return this.currentPath.bezierCurveTo(e,t,n,r,o,c),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e,t){const n=t.length;let r=!1;for(let p=n-1,q=0;q<n;p=q++){let n=t[p],o=t[q],c=o.x-n.x,l=o.y-n.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(n=t[q],c=-c,o=t[p],l=-l),e.y<n.y||e.y>o.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=l*(e.x-n.x)-c*(e.y-n.y);if(0===t)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(o.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=o.x)return!0}}return r}const n=Bh.isClockWise,r=this.subPaths;if(0===r.length)return[];let o,c,l;const h=[];if(1===r.length)return c=r[0],l=new ph,l.curves=c.curves,h.push(l),h;let f=!n(r[0].getPoints());f=e?!f:f;const d=[],m=[];let v,_,y=[],w=0;m[w]=void 0,y[w]=[];for(let i=0,t=r.length;i<t;i++)c=r[i],v=c.getPoints(),o=n(v),o=e?!o:o,o?(!f&&m[w]&&w++,m[w]={s:new ph,p:v},m[w].s.curves=c.curves,f&&w++,y[w]=[]):y[w].push({h:c,p:v[0]});if(!m[0])return function(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i],r=new ph;r.curves=n.curves,t.push(r)}return t}(r);if(m.length>1){let e=!1,n=0;for(let e=0,t=m.length;e<t;e++)d[e]=[];for(let r=0,o=m.length;r<o;r++){const o=y[r];for(let c=0;c<o.length;c++){const l=o[c];let h=!0;for(let o=0;o<m.length;o++)t(l.p,m[o].p)&&(r!==o&&n++,h?(h=!1,d[o].push(l)):e=!0);h&&d[r].push(l)}}n>0&&!1===e&&(y=d)}for(let i=0,e=m.length;i<e;i++){l=m[i].s,h.push(l),_=y[i];for(let e=0,t=_.length;e<t;e++)l.holes.push(_[e].h)}return h}}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:r}})),"undefined"!=typeof window&&(window.__THREE__||(window.__THREE__=r))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));n(125),n(373);var r=n(12),o={"001":"2865","003":"2864","004":"2866","005":"2980"},c=Object.entries(o).reduce((function(e,t){var n=Object(r.a)(t,2),o=n[0];return e[n[1]]=o,e}),{})},function(e,t,n){"use strict";t.a=function(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var c in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(c,t.headers[c]);s.send(t.body||null)}))}},,function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function l(e,source,t){return e.concat(source).map((function(element){return c(element,t)}))}function h(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return e.propertyIsEnumerable(symbol)})):[]}(e))}function f(object,e){try{return e in object}catch(e){return!1}}function d(e,source,t){var n={};return t.isMergeableObject(e)&&h(e).forEach((function(r){n[r]=c(e[r],t)})),h(source).forEach((function(r){(function(e,t){return f(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(f(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=c(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||l,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):d(e,source,t):c(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return m(e,n,t)}),{})};var v=m;e.exports=v},function(e,t,n){e.exports=function(){"use strict";var e="minute",i=/[+-]\d\d(?::?\d\d)?/g,t=/([+-]|\d\d)/g;return function(s,n,r){var u=n.prototype;r.utc=function(e){var i={date:e,utc:!0,args:arguments};return new n(i)},u.utc=function(i){var t=r(this.toDate(),{locale:this.$L,utc:!0});return i?t.add(this.utcOffset(),e):t},u.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var o=u.parse;u.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var c=u.init;u.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var a=u.utcOffset;u.utcOffset=function(s,n){var r=this.$utils().u;if(r(s))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&null===(s=function(e){void 0===e&&(e="");var s=e.match(i);if(!s)return null;var n=(""+s[0]).match(t)||["-",0,0],r=n[0],u=60*+n[1]+ +n[2];return 0===u?0:"+"===r?u:-u}(s)))return this;var u=Math.abs(s)<=16?60*s:s;if(0===u)return this.utc(n);var o=this.clone();if(n)return o.$offset=u,o.$u=!1,o;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(o=this.local().add(u+c,e)).$offset=u,o.$x.$localOffset=c,o};var l=u.format;u.format=function(e){var i=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,i)},u.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var h=u.toDate;u.toDate=function(e){return"s"===e&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=u.diff;u.diff=function(e,i,t){if(e&&this.$u===e.$u)return f.call(this,e,i,t);var s=this.local(),n=r(e).local();return f.call(s,n,i,t)}}}()},function(e,t,n){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,i,r){var o,a=function(e,n,i){void 0===i&&(i={});var r=new Date(e);return function(e,n){void 0===n&&(n={});var i=n.timeZoneName||"short",r=e+"|"+i,o=t[r];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,
2year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[r]=o),o}(n,i).formatToParts(r)},u=function(t,n){for(var i=a(t,n),o=[],u=0;u<i.length;u+=1){var c=i[u],s=c.type,l=c.value,h=e[s];h>=0&&(o[h]=parseInt(l,10))}var f=o[3],d=24===f?0:f,m=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",v=+t;return(r.utc(m).valueOf()-(v-=v%1e3))/6e4},c=i.prototype;c.tz=function(e,t){if(void 0===e&&(e=o),!this.isValid())return this;var n,i=this.utcOffset(),a=this.toDate(),c=a.toLocaleString("en-US",{timeZone:e}),s=u(+a,e);if(Number(s)){if(n=r(c,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(s,!0),t){var l=n.utcOffset();n=n.add(i-l,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var s=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return s.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return s.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var i=n&&t,a=n||t||o,c=u(+r(),a);if("string"!=typeof e)return r(e).tz(a);var s=r.utc(e,i).valueOf();if(Number.isNaN(s)){var l=r(NaN);return l.$x.$timezone=a,l}var h=function(e,t,n){var i=e-60*t*1e3,r=u(i,n);if(t===r)return[i,t];var o=u(i-=60*(r-t)*1e3,n);return r===o?[i,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}(s,c,a),f=h[0],d=h[1],m=r(f).utcOffset(d);return m.$x.$timezone=a,m},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){o=e}}}()},function(e,t,n){"use strict";function r(e){return(r="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})(e)}function o(e){return null!==e&&"object"===r(e)&&!Array.isArray(e)}function c(e,t){if(!o(e))return c({},t);if(!o(t))return c(e,{});var n=Object.assign({},t);for(var r in e)if("__proto__"!==r&&"constructor"!==r){var l=e[r];null!==l&&(o(l)&&o(n[r])?n[r]=c(l,n[r]):n[r]=l)}return n}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(c,{})}},function(e,t,n){(function(e,r){var o;(function(){var c="Expected a function",l="__lodash_placeholder__",h=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f="[object Arguments]",d="[object Array]",m="[object Boolean]",v="[object Date]",_="[object Error]",y="[object Function]",w="[object GeneratorFunction]",x="[object Map]",S="[object Number]",T="[object Object]",E="[object RegExp]",M="[object Set]",A="[object String]",C="[object Symbol]",R="[object WeakMap]",k="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",L="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",D="[object Int32Array]",U="[object Uint8Array]",F="[object Uint16Array]",B="[object Uint32Array]",z=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(j.source),$=RegExp(W.source),X=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+|\s+$/g,re=/^\s+/,ie=/\s+$/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/\\(\\)?/g,ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,050 bytes, line 2
27f]/g,_e=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xe="[\\ud800-\\udfff]",Se="["+we+"]",Te="["+be+"]",Ee="\\d+",Me="[\\u2700-\\u27bf]",Ae="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ce="[^\\ud800-\\udfff"+we+Ee+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Re="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Oe="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ie="(?:"+Ae+"|"+Ce+")",Ne="(?:"+Le+"|"+Ce+")",De="(?:"+Te+"|"+Re+")"+"?",Ue="[\\ufe0e\\ufe0f]?"+De+("(?:\\u200d(?:"+[ke,Oe,Pe].join("|")+")[\\ufe0e\\ufe0f]?"+De+")*"),Fe="(?:"+[Me,Oe,Pe].join("|")+")"+Ue,Be="(?:"+[ke+Te+"?",Te,Oe,Pe,xe].join("|")+")",ze=RegExp("['’]","g"),He=RegExp(Te,"g"),Ve=RegExp(Re+"(?="+Re+")|"+Be+Ue,"g"),je=RegExp([Le+"?"+Ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Se,Le,"$"].join("|")+")",Ne+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Se,Le+Ie,"$"].join("|")+")",Le+"?"+Ie+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Le+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ee,Fe].join("|"),"g"),We=RegExp("[\\u200d\\ud800-\\udfff"+be+"\\ufe0e\\ufe0f]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xe=-1,qe={};qe[P]=qe[L]=qe[I]=qe[N]=qe[D]=qe[U]=qe["[object Uint8ClampedArray]"]=qe[F]=qe[B]=!0,qe[f]=qe[d]=qe[k]=qe[m]=qe[O]=qe[v]=qe[_]=qe[y]=qe[x]=qe[S]=qe[T]=qe[E]=qe[M]=qe[A]=qe[R]=!1;var Ye={};Ye[f]=Ye[d]=Ye[k]=Ye[O]=Ye[m]=Ye[v]=Ye[P]=Ye[L]=Ye[I]=Ye[N]=Ye[D]=Ye[x]=Ye[S]=Ye[T]=Ye[E]=Ye[M]=Ye[A]=Ye[C]=Ye[U]=Ye["[object Uint8ClampedArray]"]=Ye[F]=Ye[B]=!0,Ye[_]=Ye[y]=Ye[R]=!1;var Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ke=parseFloat,Je=parseInt,Qe="object"==typeof e&&e&&e.Object===Object&&e,et="object"==typeof self&&self&&self.Object===Object&&self,tt=Qe||et||Function("return this")(),nt=t&&!t.nodeType&&t,it=nt&&"object"==typeof r&&r&&!r.nodeType&&r,at=it&&it.exports===nt,st=at&&Qe.process,ot=function(){try{var e=it&&it.require&&it.require("util").types;return e||st&&st.binding&&st.binding("util")}catch(e){}}(),ct=ot&&ot.isArrayBuffer,lt=ot&&ot.isDate,ut=ot&&ot.isMap,ht=ot&&ot.isRegExp,ft=ot&&ot.isSet,pt=ot&&ot.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function gt(e,t,n,r){for(var o=-1,c=null==e?0:e.length;++o<c;){var l=e[o];t(r,l,n(l),e)}return r}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function bt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,c=[];++n<r;){var l=e[n];t(l,n,e)&&(c[o++]=l)}return c}function wt(e,t){return!!(null==e?0:e.length)&&Ot(e,t,0)>-1}function xt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Et(e,t,n,r){var o=-1,c=null==e?0:e.length;for(r&&c&&(n=e[++o]);++o<c;)n=t(n,e[o],o,e);return n}function Mt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ct=Nt("length");function Rt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function kt(e,t,n,r){for(var o=e.length,c=n+(r?1:-1);r?c--:++c<o;)if(t(e[c],c,e))return c;return-1}function Ot(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Lt,n)}function Pt(e,t,n,r){for(var o=n-1,c=e.length;++o<c;)if(r(e[o],t))return o;return-1}function Lt(e){return e!=e}function It(e,t){var n=null==e?0:e.length;return n?Ft(e,t)/n:NaN}function Nt(e){return function(object){return null==object?void 0:object[e]}}function Dt(object){return function(e){return null==object?void 0:object[e]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,c){n=r?(r=!1,e):t(n,e,o,c)})),n}function Ft(e,t){for(var n,r=-1,o=e.length;++r<o;){var c=t(e[r]);void 0!==c&&(n=void 0===n?c:n+c)}return n}function Bt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function zt(e){return function(t){return e(t)}}function Ht(object,e){return St(e,(function(e){return object[e]}))}function Vt(e,t){return e.has(t)}function jt(e,t){for(var n=-1,r=e.length;++n<r&&Ot(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Ot(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=Dt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"
2c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Xt=Dt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function qt(e){return"\\"+Ze[e]}function Yt(e){return We.test(e)}function Zt(map){var e=-1,t=Array(map.size);return map.forEach((function(n,r){t[++e]=[r,n]})),t}function Kt(e,t){return function(n){return e(t(n))}}function Jt(e,t){for(var n=-1,r=e.length,o=0,c=[];++n<r;){var h=e[n];h!==t&&h!==l||(e[n]=l,c[o++]=n)}return c}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function en(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function tn(e){return Yt(e)?function(e){var t=Ve.lastIndex=0;for(;Ve.test(e);)++t;return t}(e):Ct(e)}function nn(e){return Yt(e)?function(e){return e.match(Ve)||[]}(e):function(e){return e.split("")}(e)}var rn=Dt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var an=function e(t){var n,r=(t=null==t?tt:an.defaults(tt.Object(),t,an.pick(tt,$e))).Array,o=t.Date,be=t.Error,we=t.Function,xe=t.Math,Se=t.Object,Te=t.RegExp,Ee=t.String,Me=t.TypeError,Ae=r.prototype,Ce=we.prototype,Re=Se.prototype,ke=t["__core-js_shared__"],Oe=Ce.toString,Pe=Re.hasOwnProperty,Le=0,Ie=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Re.toString,De=Oe.call(Se),Ue=tt._,Fe=Te("^"+Oe.call(Pe).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=at?t.Buffer:void 0,Ve=t.Symbol,We=t.Uint8Array,Ze=Be?Be.allocUnsafe:void 0,Qe=Kt(Se.getPrototypeOf,Se),et=Se.create,nt=Re.propertyIsEnumerable,it=Ae.splice,st=Ve?Ve.isConcatSpreadable:void 0,ot=Ve?Ve.iterator:void 0,Ct=Ve?Ve.toStringTag:void 0,Dt=function(){try{var e=da(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),sn=t.clearTimeout!==tt.clearTimeout&&t.clearTimeout,on=o&&o.now!==tt.Date.now&&o.now,cn=t.setTimeout!==tt.setTimeout&&t.setTimeout,ln=xe.ceil,un=xe.floor,hn=Se.getOwnPropertySymbols,fn=Be?Be.isBuffer:void 0,dn=t.isFinite,pn=Ae.join,mn=Kt(Se.keys,Se),gn=xe.max,vn=xe.min,_n=o.now,yn=t.parseInt,bn=xe.random,wn=Ae.reverse,xn=da(t,"DataView"),Sn=da(t,"Map"),Tn=da(t,"Promise"),En=da(t,"Set"),Mn=da(t,"WeakMap"),An=da(Se,"create"),Cn=Mn&&new Mn,Rn={},kn=za(xn),On=za(Sn),Pn=za(Tn),Ln=za(En),In=za(Mn),Nn=Ve?Ve.prototype:void 0,Dn=Nn?Nn.valueOf:void 0,Un=Nn?Nn.toString:void 0;function Fn(e){if(to(e)&&!Ws(e)&&!(e instanceof Vn)){if(e instanceof Hn)return e;if(Pe.call(e,"__wrapped__"))return Ha(e)}return new Hn(e)}var Bn=function(){function object(){}return function(e){if(!eo(e))return{};if(et)return et(e);object.prototype=e;var t=new object;return object.prototype=void 0,t}}();function zn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Xn(e){var data=this.__data__=new Wn(e);this.size=data.size}function qn(e,t){var n=Ws(e),r=!n&&js(e),o=!n&&!r&&qs(e),c=!n&&!r&&!o&&lo(e),l=n||r||o||c,h=l?Bt(e.length,Ee):[],f=h.length;for(var d in e)!t&&!Pe.call(e,d)||l&&("length"==d||o&&("offset"==d||"parent"==d)||c&&
vendor: 4,529 bytes, line 2
2("buffer"==d||"byteLength"==d||"byteOffset"==d)||ba(d,f))||h.push(d);return h}function Yn(e){var t=e.length;return t?e[Yr(0,t-1)]:void 0}function Zn(e,t){return Ua(Oi(e),sr(t,0,e.length))}function Kn(e){return Ua(Oi(e))}function Jn(object,e,t){(void 0!==t&&!zs(object[e],t)||void 0===t&&!(e in object))&&ir(object,e,t)}function Qn(object,e,t){var n=object[e];Pe.call(object,e)&&zs(n,t)&&(void 0!==t||e in object)||ir(object,e,t)}function er(e,t){for(var n=e.length;n--;)if(zs(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,c){t(r,e,n(e),c)})),r}function rr(object,source){return object&&Pi(source,Po(source),object)}function ir(object,e,t){"__proto__"==e&&Dt?Dt(object,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):object[e]=t}function ar(object,e){for(var t=-1,n=e.length,o=r(n),c=null==object;++t<n;)o[t]=c?void 0:Ao(object,e[t]);return o}function sr(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function or(e,t,n,r,object,o){var c,l=1&t,h=2&t,d=4&t;if(n&&(c=object?n(e,r,object,o):n(e)),void 0!==c)return c;if(!eo(e))return e;var _=Ws(e);if(_){if(c=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Oi(e,c)}else{var R=ga(e),z=R==y||R==w;if(qs(e))return Ei(e,l);if(R==T||R==f||z&&!object){if(c=h||z?{}:_a(e),!l)return h?function(source,object){return Pi(source,ma(source),object)}(e,function(object,source){return object&&Pi(source,Lo(source),object)}(c,e)):function(source,object){return Pi(source,pa(source),object)}(e,rr(c,e))}else{if(!Ye[R])return object?e:{};c=function(object,e,t){var n=object.constructor;switch(e){case k:return Mi(object);case m:case v:return new n(+object);case O:return function(e,t){var n=t?Mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(object,t);case P:case L:case I:case N:case D:case U:case"[object Uint8ClampedArray]":case F:case B:return Ai(object,t);case x:return new n;case S:case A:return new n(object);case E:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(object);case M:return new n;case C:return symbol=object,Dn?Se(Dn.call(symbol)):{}}var symbol}(e,R,l)}}o||(o=new Xn);var H=o.get(e);if(H)return H;o.set(e,c),so(e)?e.forEach((function(r){c.add(or(r,t,n,r,e,o))})):no(e)&&e.forEach((function(r,l){c.set(l,or(r,t,n,l,e,o))}));var V=_?void 0:(d?h?sa:aa:h?Lo:Po)(e);return vt(V||e,(function(r,l){V&&(r=e[l=r]),Qn(c,l,or(r,t,n,l,e,o))})),c}function cr(object,source,e){var t=e.length;if(null==object)return!t;for(object=Se(object);t--;){var n=e[t],r=source[n],o=object[n];if(void 0===o&&!(n in object)||!r(o))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Me(c);return La((function(){e.apply(void 0,n)}),t)}function ur(e,t,n,r){var o=-1,c=wt,l=!0,h=e.length,f=[],d=t.length;if(!h)return f;n&&(t=St(t,zt(n))),r?(c=xt,l=!1):t.length>=200&&(c=Vt,l=!1,t=new $n(t));e:for(;++o<h;){var m=e[o],v=null==n?m:n(m);if(m=r||0!==m?m:0,l&&v==v){for(var _=d;_--;)if(t[_]===v)continue e;f.push(m)}else c(t,v,r)||f.push(m)}return f}Fn.templateSettings={escape:X,evaluate:Y,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=zn.prototype,Fn.prototype.constructor=Fn,Hn.prototype=Bn(zn.prototype),Hn.prototype.constructor=Hn,Vn.prototype=Bn(zn.prototype),Vn.prototype.constructor=Vn,jn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},jn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},jn.prototype.get=function(e){var data=this.__data__;if(An){var t=data[e];return"__lodash_hash_undefined__"===t?void 0:t}return Pe.call(data,e)?data[e]:void 0},jn.prototype.has=function(e){var data=this.__data__;return An?void 0!==data[e]:Pe.call(data,e)},jn.prototype.set=function(e,t){var data=this.__data__;return this.size+=this.has(e)?0:1,data[e]=An&&void 0===t?"__lodash_hash_undefined__":t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var data=this.__data__,t=er(data,e);return!(t<0)&&(t==data.length-1?data.pop():it.call(data,t,1),--this.size,!0)},Wn.prototype.get=function(e){var data=this.__data__,t=er(data,e);return t<0?void 0:data[t][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var data=this.__data__,n=er(data,e);return n<0?(++this.size,data.push([e,t])):data[n][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(Sn||Wn
vendor: 8,474 bytes, line 2
2),string:new jn}},Gn.prototype.delete=function(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return ha(this,e).get(e)},Gn.prototype.has=function(e){return ha(this,e).has(e)},Gn.prototype.set=function(e,t){var data=ha(this,e),n=data.size;return data.set(e,t),this.size+=data.size==n?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$n.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Xn.prototype.delete=function(e){var data=this.__data__,t=data.delete(e);return this.size=data.size,t},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var data=this.__data__;if(data instanceof Wn){var n=data.__data__;if(!Sn||n.length<199)return n.push([e,t]),this.size=++data.size,this;data=this.__data__=new Gn(n)}return data.set(e,t),this.size=data.size,this};var fr=Ni(wr),dr=Ni(xr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,o=e.length;++r<o;){var c=e[r],l=t(c);if(null!=l&&(void 0===h?l==l&&!co(l):n(l,h)))var h=l,f=c}return f}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var c=-1,l=e.length;for(n||(n=ya),o||(o=[]);++c<l;){var h=e[c];t>0&&n(h)?t>1?vr(h,t-1,n,r,o):Tt(o,h):r||(o[o.length]=h)}return o}var _r=Di(),yr=Di(!0);function wr(object,e){return object&&_r(object,e,Po)}function xr(object,e){return object&&yr(object,e,Po)}function Sr(object,e){return bt(e,(function(e){return Ks(object[e])}))}function Tr(object,path){for(var e=0,t=(path=wi(path,object)).length;null!=object&&e<t;)object=object[Ba(path[e++])];return e&&e==t?object:void 0}function Er(object,e,t){var n=e(object);return Ws(object)?n:Tt(n,t(object))}function Mr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ct&&Ct in Se(e)?function(e){var t=Pe.call(e,Ct),n=e[Ct];try{e[Ct]=void 0;var r=!0}catch(e){}var o=Ne.call(e);r&&(t?e[Ct]=n:delete e[Ct]);return o}(e):function(e){return Ne.call(e)}(e)}function Ar(e,t){return e>t}function Cr(object,e){return null!=object&&Pe.call(object,e)}function Rr(object,e){return null!=object&&e in Se(object)}function kr(e,t,n){for(var o=n?xt:wt,c=e[0].length,l=e.length,h=l,f=r(l),d=1/0,m=[];h--;){var v=e[h];h&&t&&(v=St(v,zt(t))),d=vn(v.length,d),f[h]=!n&&(t||c>=120&&v.length>=120)?new $n(h&&v):void 0}v=e[0];var _=-1,y=f[0];e:for(;++_<c&&m.length<d;){var w=v[_],x=t?t(w):w;if(w=n||0!==w?w:0,!(y?Vt(y,x):o(m,x,n))){for(h=l;--h;){var S=f[h];if(!(S?Vt(S,x):o(e[h],x,n)))continue e}y&&y.push(x),m.push(w)}}return m}function Or(object,path,e){var t=null==(object=Ra(object,path=wi(path,object)))?object:object[Ba(Ka(path))];return null==t?void 0:mt(t,object,e)}function Pr(e){return to(e)&&Mr(e)==f}function Lr(e,t,n,r,o){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(object,e,t,n,r,o){var c=Ws(object),l=Ws(e),h=c?d:ga(object),y=l?d:ga(e),w=(h=h==f?T:h)==T,R=(y=y==f?T:y)==T,P=h==y;if(P&&qs(object)){if(!qs(e))return!1;c=!0,w=!1}if(P&&!w)return o||(o=new Xn),c||lo(object)?ra(object,e,t,n,r,o):function(object,e,t,n,r,o,c){switch(t){case O:if(object.byteLength!=e.byteLength||object.byteOffset!=e.byteOffset)return!1;object=object.buffer,e=e.buffer;case k:return!(object.byteLength!=e.byteLength||!o(new We(object),new We(e)));case m:case v:case S:return zs(+object,+e);case _:return object.name==e.name&&object.message==e.message;case E:case A:return object==e+"";case x:var l=Zt;case M:var h=1&n;if(l||(l=Qt),object.size!=e.size&&!h)return!1;var f=c.get(object);if(f)return f==e;n|=2,c.set(object,e);var d=ra(l(object),l(e),n,r,o,c);return c.delete(object),d;case C:if(Dn)return Dn.call(object)==Dn.call(e)}return!1}(object,e,h,t,n,r,o);if(!(1&t)){var L=w&&Pe.call(object,"__wrapped__"),I=R&&Pe.call(e,"__wrapped__");if(L||I){var N=L?object.value():object,D=I?e.value():e;return o||(o=new Xn),r(N,D,t,n,o)}}if(!P)return!1;return o||(o=new Xn),function(object,e,t,n,r,o){var c=1&t,l=aa(object),h=l.length,f=aa(e).length;if(h!=f&&!c)return!1;var d=h;for(;d--;){var m=l[d];if(!(c?m in e:Pe.call(e,m)))return!1}var v=o.get(object),_=o.get(e);if(v&&_)return v==e&&_==object;var y=!0;o.set(object,e),o.set(e,object);var w=c;for(;++d<h;){m=l[d];var x=object[m],S=e[m];if(n)var T=c?n(S,x,m,e,object,o):n(x,S,m,object,e,o);if(!(void 0===T?x===S||r(x,S,t,n,o):T)){y=!1;break}w||(w="constructor"==m)}if(y&&!w){var E=object.constructor,M=e.constructor;E==M||!("constructor"in object)||!("constructor"in e)||"function"==typeof E&&E instanceof E&&"function"==typeof M&&M instanceof M||(y=!1)}return o.delete(object),o.delete(e),y}(object,e,t,n,r,o)}(e,t,n,r,Lr,o))}function Ir(object,source,e,t){var n=e.length,r=n,o=!t;if(null==object)return!r;for(object=Se(object);n--;){var data=e[n];if(o&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++n<r;){var c=(data=e[n])[0],l=object[c],h=data[1];if(o&&data[2]){if(void 0===l&&!(c in object))return!1}else{var f=new Xn;if(t)var d=t(l,h,c,object,source,f);if(!(void 0===d?Lr(h,l,3,t,f):d))return!1}}return!0}function Nr(e){return!(!eo(e)||(t=e,Ie&&Ie in t))&&(Ks(e)?Fe:pe).test(za(e));var t}function Dr(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?Ws(e)?Vr(e[0],e[1]):Hr(e):dc(e)}function Ur(object){if(!Ea(object))return mn(object);var e=[];for(var t in Se(object))Pe.call(object,t)&&"constructor"!=t&&e.push(t);return e}function Fr(object){if(!eo(object))return function(object){var e=[];if(null!=object)for(var t in Se(object))e.push(t);return e}(object);var e=Ea(object),t=[];for(var n in object)("constructor"!=n||!e&&Pe.call(object,n))&&t.push(n);return t}function Br(e,t){return e<t}function zr(e,t){var n=-1,o=$s(e)?r(e.length):[];return fr(e,(function(e,r,c){o[++n]=t(e,r,c)})),o}function Hr(source){var e=fa(source);return 1==e.length&&e[0][2]?Aa(e[0][0],e[0][1]):function(object){return object===source||Ir(object,source,e)}}function Vr(path,e){return xa(path)&&Ma(e)?Aa(Ba(path),e):function(object){var t=Ao(object,path);return void 0===t&&t===e?Co(object,path):Lr(e,t,3)}}function jr(object,source,e,t,n){object!==source&&_r(source,(function(r,o){if(n||(n=new Xn),eo(r))!function(object,source,e,t,n,r,o){var c=Oa(object,e),l=Oa(source,e),h=o.get(l);if(h)return void Jn(object,e,h);var f=r?r(c,l,e+"",object,source,o):void 0,d=void 0===f;if(d){var m=Ws(l),v=!m&&qs(l),_=!m&&!v&&lo(l);f=l,m||v||_?Ws(c)?f=c:Xs(c)?f=Oi(c):v?(d=!1,f=Ei(l,!0)):_?(d=!1,f=Ai(l,!0)):f=[]:io(l)||js(l)?(f=c,js(c)?f=_o(c):eo(c)&&!Ks(c)||(f=_a(l))):d=!1}d&&(o.set(l,f),n(f,l,t,r,o),o.delete(l));Jn(object,e,f)}(object,source,o,e,jr,t,n);else{var c=t?t(Oa(object,o),r,o+"",object,source,n):void 0;void 0===c&&(c=r),Jn(object,o,c)}}),Lo)}function Wr(e,t){var n=e.length;if(n)return ba(t+=t<0?n:0,n)?e[t]:void 0}function Gr(e,t,n){t=t.length?St(t,(function(e){return Ws(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[ic];var r=-1;return t=St(t,zt(ua())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(zr(e,(function(e,n,o){return{criteria:St(t,(function(t){return t(e)})),index:++r,value:e}})),(function(object,e){return function(object,e,t){var n=-1,r=object.criteria,o=e.criteria,c=r.length,l=t.length;for(;++n<c;){var h=Ci(r[n],o[n]);if(h){if(n>=l)return h;var f=t[n];return h*("desc"==f?-1:1)}}return object.index-e.index}(object,e,n)}))}function $r(object,e,t){for(var n=-1,r=e.length,o={};++n<r;){var path=e[n],c=Tr(object,path);t(c,path)&&ei(o,wi(path,object),c)}return o}function Xr(e,t,n,r){var o=r?Pt:Ot,c=-1,l=t.length,h=e;for(e===t&&(t=Oi(t)),n&&(h=St(e,zt(n)));++c<l;)for(var f=0,d=t[c],m=n?n(d):d;(f=o(h,m,f,r))>-1;)h!==e&&it.call(h,f,1),it.call(e,f,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==c){var c=o;ba(o)?it.call(e,o,1):di(e,o)}}return e}function Yr(e,t){return e+un(bn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=un(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ia(Ca(e,t,ic),e+"")}function Jr(e){return Yn(Ho(e))}function Qr(e,t){var n=Ho(e);return Ua(n,sr(t,0,n.length))}function ei(object,path,e,t){if(!eo(object))return object;for(var n=-1,r=(path=wi(path,object)).length,o=r-1,c=object;null!=c&&++n<r;){var l=Ba(path[n]),h=e;if("__proto__"===l||"constructor"===l||"prototype"===l)return object;if(n!=o){var f=c[l];
vendor: 10,964 bytes, line 2
2void 0===(h=t?t(f,l,c):void 0)&&(h=eo(f)?f:ba(path[n+1])?[]:{})}Qn(c,l,h),c=c[l]}return object}var ti=Cn?function(e,data){return Cn.set(e,data),e}:ic,ni=Dt?function(e,t){return Dt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ic;function ri(e){return Ua(Ho(e))}function ii(e,t,n){var o=-1,c=e.length;t<0&&(t=-t>c?0:c+t),(n=n>c?c:n)<0&&(n+=c),c=t>n?0:n-t>>>0,t>>>=0;for(var l=r(c);++o<c;)l[o]=e[o+t];return l}function ai(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function si(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var c=r+o>>>1,l=e[c];null!==l&&!co(l)&&(n?l<=t:l<t)?r=c+1:o=c}return o}return oi(e,t,ic,n)}function oi(e,t,n,r){var o=0,c=null==e?0:e.length;if(0===c)return 0;for(var l=(t=n(t))!=t,h=null===t,f=co(t),d=void 0===t;o<c;){var m=un((o+c)/2),v=n(e[m]),_=void 0!==v,y=null===v,w=v==v,x=co(v);if(l)var S=r||w;else S=d?w&&(r||_):h?w&&_&&(r||!y):f?w&&_&&!y&&(r||!x):!y&&!x&&(r?v<=t:v<t);S?o=m+1:c=m}return vn(c,4294967294)}function ci(e,t){for(var n=-1,r=e.length,o=0,c=[];++n<r;){var l=e[n],h=t?t(l):l;if(!n||!zs(h,f)){var f=h;c[o++]=0===l?0:l}}return c}function ui(e){return"number"==typeof e?e:co(e)?NaN:+e}function hi(e){if("string"==typeof e)return e;if(Ws(e))return St(e,hi)+"";if(co(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fi(e,t,n){var r=-1,o=wt,c=e.length,l=!0,h=[],f=h;if(n)l=!1,o=xt;else if(c>=200){var d=t?null:Ki(e);if(d)return Qt(d);l=!1,o=Vt,f=new $n}else f=t?[]:h;e:for(;++r<c;){var m=e[r],v=t?t(m):m;if(m=n||0!==m?m:0,l&&v==v){for(var _=f.length;_--;)if(f[_]===v)continue e;t&&f.push(v),h.push(m)}else o(f,v,n)||(f!==h&&f.push(v),h.push(m))}return h}function di(object,path){return null==(object=Ra(object,path=wi(path,object)))||delete object[Ba(Ka(path))]}function pi(object,path,e,t){return ei(object,path,e(Tr(object,path)),t)}function mi(e,t,n,r){for(var o=e.length,c=r?o:-1;(r?c--:++c<o)&&t(e[c],c,e););return n?ii(e,r?0:c,r?c+1:o):ii(e,r?c+1:0,r?o:c)}function gi(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Et(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function vi(e,t,n){var o=e.length;if(o<2)return o?fi(e[0]):[];for(var c=-1,l=r(o);++c<o;)for(var h=e[c],f=-1;++f<o;)f!=c&&(l[c]=ur(l[c]||h,e[f],t,n));return fi(vr(l,1),t,n)}function _i(e,t,n){for(var r=-1,o=e.length,c=t.length,l={};++r<o;){var h=r<c?t[r]:void 0;n(l,e[r],h)}return l}function yi(e){return Xs(e)?e:[]}function bi(e){return"function"==typeof e?e:ic}function wi(e,object){return Ws(e)?e:xa(e,object)?[e]:Fa(yo(e))}var xi=Kr;function Si(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:ii(e,t,n)}var Ti=sn||function(e){return tt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=Ze?Ze(n):new e.constructor(n);return e.copy(r),r}function Mi(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ai(e,t){var n=t?Mi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,c=co(e),l=void 0!==t,h=null===t,f=t==t,d=co(t);if(!h&&!d&&!c&&e>t||c&&l&&f&&!h&&!d||r&&l&&f||!n&&f||!o)return 1;if(!r&&!c&&!d&&e<t||d&&n&&o&&!r&&!c||h&&n&&o||!l&&o||!f)return-1}return 0}function Ri(e,t,n,o){for(var c=-1,l=e.length,h=n.length,f=-1,d=t.length,m=gn(l-h,0),v=r(d+m),_=!o;++f<d;)v[f]=t[f];for(;++c<h;)(_||c<l)&&(v[n[c]]=e[c]);for(;m--;)v[f++]=e[c++];return v}function ki(e,t,n,o){for(var c=-1,l=e.length,h=-1,f=n.length,d=-1,m=t.length,v=gn(l-f,0),_=r(v+m),y=!o;++c<v;)_[c]=e[c];for(var w=c;++d<m;)_[w+d]=t[d];for(;++h<f;)(y||c<l)&&(_[w+n[h]]=e[c++]);return _}function Oi(source,e){var t=-1,n=source.length;for(e||(e=r(n));++t<n;)e[t]=source[t];return e}function Pi(source,e,object,t){var n=!object;object||(object={});for(var r=-1,o=e.length;++r<o;){var c=e[r],l=t?t(object[c],source[c],c,object,source):void 0;void 0===l&&(l=source[c]),n?ir(object,c,l):Qn(object,c,l)}return object}function Li(e,t){return function(n,r){var o=Ws(n)?gt:nr,c=t?t():{};return o(n,e,ua(r,2),c)}}function Ii(e){return Kr((function(object,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,c=r>2?t[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,c&&wa(t[0],t[1],c)&&(o=r<3?void 0:o,r=1),object=Se(object);++n<r;){var source=t[n];source&&e(object,source,n,o)}return object}))}function Ni(e,t){return function(n,r){if(null==n)return n;if(!$s(n))return e(n,r);for(var o=n.length,c=t?o:-1,l=Se(n);(t?c--:++c<o)&&!1!==r(l[c],c,l););return n}}function Di(e){return function(object,t,n){for(var r=-1,o=Se(object),c=n(object),l=c.length;l--;){var h=c[e?l:++r];if(!1===t(o[h],h,o))break}return object}}function Ui(e){return function(t){var n=Yt(t=yo(t))?nn(t):void 0,r=n?n[0]:t.charAt(0),o=n?Si(n,1).join(""):t.slice(1);return r[e]()+o}}function Fi(e){return function(t){return Et(Jo(Wo(t).replace(ze,"")),e,"")}}function Bi(e){return function(){var t=arguments;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]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return eo(r)?r:n}}function zi(e){return function(t,n,r){var o=Se(t);if(!$s(t)){var c=ua(n,3);t=Po(t),n=function(e){return c(o[e],e,o)}}var l=e(t,n,r);return l>-1?o[c?t[l]:l]:void 0}}function Hi(e){return ia((function(t){var n=t.length,r=n,o=Hn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Me(c);if(o&&!h&&"wrapper"==ca(l))var h=new Hn([],!0)}for(r=h?r:n;++r<n;){var f=ca(l=t[r]),data="wrapper"==f?oa(l):void 0;h=data&&Sa(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?h[ca(data[0])].apply(h,data[3]):1==l.length&&Sa(l)?h[f]():h.thru(l)}return function(){var e=arguments,r=e[0];if(h&&1==e.length&&Ws(r))return h.plant(r).value();for(var o=0,c=n?t[o].apply(this,e):r;++o<n;)c=t[o].call(this,c);return c}}))}function Vi(e,t,n,o,c,l,h,f,d,m){var v=128&t,_=1&t,y=2&t,w=24&t,x=512&t,S=y?void 0:Bi(e);return function T(){for(var E=arguments.length,M=r(E),A=E;A--;)M[A]=arguments[A];if(w)var C=la(T),R=Gt(M,C);if(o&&(M=Ri(M,o,c,w)),l&&(M=ki(M,l,h,w)),E-=R,w&&E<m){var k=Jt(M,C);return Yi(e,t,Vi,T.placeholder,n,M,k,f,d,m-E)}var O=_?n:this,P=y?O[e]:e;return E=M.length,f?M=ka(M,f):x&&E>1&&M.reverse(),v&&d<E&&(M.length=d),this&&this!==tt&&this instanceof T&&(P=S||Bi(P)),P.apply(O,M)}}function ji(e,t){return function(object,n){return function(object,e,t,n){return wr(object,(function(r,o,object){e(n,t(r),o,object)})),n}(object,e,t(n),{})}}function Wi(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=hi(n),r=hi(r)):(n=ui(n),r=ui(r)),o=e(n,r)}return o}}function Gi(e){return ia((function(t){return t=St(t,zt(ua())),Kr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function $i(e,t){var n=(t=void 0===t?" ":hi(t)).length;if(n<2)return n?Zr(t,e):t;var r=Zr(t,ln(e/tn(t)));return Yt(t)?Si(nn(r),0,e).join(""):r.slice(0,e)}function Xi(e){return function(t,n,o){return o&&"number"!=typeof o&&wa(t,n,o)&&(n=o=void 0),t=po(t),void 0===n?(n=t,t=0):n=po(n),function(e,t,n,o){for(var c=-1,l=gn(ln((t-e)/(n||1)),0),h=r(l);l--;)h[o?l:++c]=e,e+=n;return h}(t,n,o=void 0===o?t<n?1:-1:po(o),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vo(t),n=vo(n)),e(t,n)}}function Yi(e,t,n,r,o,c,l,h,f,d){var m=8&t;t|=m?32:64,4&(t&=~(m?64:32))||(t&=-4);var v=[e,t,o,m?c:void 0,m?l:void 0,m?void 0:c,m?void 0:l,h,f,d],_=n.apply(void 0,v);return Sa(e)&&Pa(_,v),_.placeholder=r,Na(_,e,t)}function Zi(e){var t=xe[e];return function(e,n){if(e=vo(e),(n=null==n?0:vn(mo(n),292))&&dn(e)){var r=(yo(e)+"e").split("e");return+((r=(yo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=En&&1/Qt(new En([,-0]))[1]==1/0?function(e){return new En(e)}:lc;function Ji(e){return function(object){var t=ga(object);return t==x?Zt(object):t==M?en(object):function(object,e){return St(e,(function(e){return[e,object[e]]}))}(object,e(object))}}function Qi(e,t,n,o,h,f,d,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(c);var _=o?o.length:0;if(_||(t&=-97,o=h=void 0),d=void 0===d?d:gn(mo(d),0),m=void 0===m?m:mo(m),_-=h?h.length:0,64&t){var y=o,w=h;o=h=void 0}var data=v?void 0:oa(e),x=[e,t,n,o,h,y,w,f,d,m];if(data&&function(data,source){var e=data[1],t=source[1],n=e|t,r=n<131,o=128==t&&8==e||128==t&&256==e&&data[7].length<=source[8]||384==t&&source[7].length<=source[8]&&8==e;if(!r&&!o)return data;1&t&&(data[2]=source[2],n|=1&e?0:4);var c=source[3];if(c){var h=data[3];data[3]=h?Ri(h,c,source[4]):c,data[4]=h?Jt(data[3],l):source[4]}(c=source[5])&&(h=data[5],data[5]=h?ki(h,c,source[6]):c,data[6]=h?Jt(data[5],l):source[6]);(c=source[7])&&(data[7]=c);128&t&&(data[8]=null==data[8]?source[8]:vn(data[8],source[8]));null==data[9]&&(data[9]=source[9]);data[0]=source[0],data[1]=n}(x,data),e=x[0],t=x[1],n=x[2],o=x[3],h=x[4],!(m=x[9]=void 0===x[9]?v?0:e.length:gn(x[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||16==t?function(e,t,n){var o=Bi(e);return function c(){for(var l=arguments.length,h=r(l),f=l,d=la(c);f--;)h[f]=arguments[f];var m=l<3&&h[0]!==d&&h[l-1]!==d?[]:Jt(h,d);if((l-=m.length)<n)return Yi(e,t,Vi,c.placeholder,void 0,h,m,void 0,void 0,n-l);var v=this&&this!==tt&&this instanceof c?o:e;return mt(v,this,h)}}(e,t,m):32!=t&&33!=t||h.length?Vi.apply(void 0,x):function(e,t,n,o){var c=1&t,l=Bi(e);return function t(){for(var h=-1,f=arguments.length,d=-1,m=o.length,v=r(m+f),_=this&&this!==tt&&this instanceof t?l:e;++d<m;)v[d]=o[d];for(;f--;)v[d++]=arguments[++h];return mt(_,c?n:this,v)}}(e,t,n,o);else var S=function(e,t,n){var r=1&t,o=Bi(e);return function t(){var c=this&&this!==tt&&this instanceof t?o:e;return c.apply(r?n:this,arguments)}}(e,t,n);return Na((data?ti:Pa)(S,x),e,t)}function ea(e,t,n,object){return void 0===e||zs(e,Re[n])&&!Pe.call(object,n)?t:e}function ta(e,t,n,object,source,r){return eo(e)&&eo(t)&&(r.set(t,e),jr(e,t,void 0,ta,r),r.delete(t)),e}function na(e){return io(e)?void 0:e}function ra(e,t,n,r,o,c){var l=1&n,h=e.length,f=t.length;if(h!=f&&!(l&&f>h))return!1;var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var v=-1,_=!0,y=2&n?new $n:void 0;for(c.set(e,t),c.set(t,e);++v<h;){var w=e[v],x=t[v];if(r)var S=l?r(x,w,v,t,e,c):r(w,x,v,e,t,c);if(void 0!==S){if(S)continue;_=!1;break}if(y){if(!At(t,(function(e,t){if(!Vt(y,t)&&(w===e||o(w,e,n,r,c)))return y.push(t)}))){_=!1;break}}else if(w!==x&&!o(w,x,n,r,c)){_=!1;break}}return c.delete(e),c.delete(t),_}function ia(e){return Ia(Ca(e,void 0,Xa),e+"")}function aa(object){return Er(object,Po,pa)}function sa(object){return Er(object,Lo,ma)}var oa=Cn?function(e){return Cn.get(e)}:lc;function ca(e){for(var t=e.name+"",n=Rn[t],r=Pe.call(Rn,t)?n.length:0;r--;){var data=n[r],o=data.func;
vendor: 17,458 bytes, line 2
2if(null==o||o==e)return data.name}return t}function la(e){return(Pe.call(Fn,"placeholder")?Fn:e).placeholder}function ua(){var e=Fn.iteratee||ac;return e=e===ac?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function ha(map,e){var t,n,data=map.__data__;return("string"==(n=typeof(t=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?data["string"==typeof e?"string":"hash"]:data.map}function fa(object){for(var e=Po(object),t=e.length;t--;){var n=e[t],r=object[n];e[t]=[n,r,Ma(r)]}return e}function da(object,e){var t=function(object,e){return null==object?void 0:object[e]}(object,e);return Nr(t)?t:void 0}var pa=hn?function(object){return null==object?[]:(object=Se(object),bt(hn(object),(function(symbol){return nt.call(object,symbol)})))}:gc,ma=hn?function(object){for(var e=[];object;)Tt(e,pa(object)),object=Qe(object);return e}:gc,ga=Mr;function va(object,path,e){for(var t=-1,n=(path=wi(path,object)).length,r=!1;++t<n;){var o=Ba(path[t]);if(!(r=null!=object&&e(object,o)))break;object=object[o]}return r||++t!=n?r:!!(n=null==object?0:object.length)&&Qs(n)&&ba(o,n)&&(Ws(object)||js(object))}function _a(object){return"function"!=typeof object.constructor||Ea(object)?{}:Bn(Qe(object))}function ya(e){return Ws(e)||js(e)||!!(st&&e&&e[st])}function ba(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function wa(e,t,object){if(!eo(object))return!1;var n=typeof t;return!!("number"==n?$s(object)&&ba(t,object.length):"string"==n&&t in object)&&zs(object[t],e)}function xa(e,object){if(Ws(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!co(e))||(J.test(e)||!K.test(e)||null!=object&&e in Se(object))}function Sa(e){var t=ca(e),n=Fn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var data=oa(n);return!!data&&e===data[0]}(xn&&ga(new xn(new ArrayBuffer(1)))!=O||Sn&&ga(new Sn)!=x||Tn&&"[object Promise]"!=ga(Tn.resolve())||En&&ga(new En)!=M||Mn&&ga(new Mn)!=R)&&(ga=function(e){var t=Mr(e),n=t==T?e.constructor:void 0,r=n?za(n):"";if(r)switch(r){case kn:return O;case On:return x;case Pn:return"[object Promise]";case Ln:return M;case In:return R}return t});var Ta=ke?Ks:vc;function Ea(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Ma(e){return e==e&&!eo(e)}function Aa(e,t){return function(object){return null!=object&&(object[e]===t&&(void 0!==t||e in Se(object)))}}function Ca(e,t,n){return t=gn(void 0===t?e.length-1:t,0),function(){for(var o=arguments,c=-1,l=gn(o.length-t,0),h=r(l);++c<l;)h[c]=o[t+c];c=-1;for(var f=r(t+1);++c<t;)f[c]=o[c];return f[t]=n(h),mt(e,this,f)}}function Ra(object,path){return path.length<2?object:Tr(object,ii(path,0,-1))}function ka(e,t){for(var n=e.length,r=vn(t.length,n),o=Oi(e);r--;){var c=t[r];e[r]=ba(c,n)?o[c]:void 0}return e}function Oa(object,e){if(("constructor"!==e||"function"!=typeof object[e])&&"__proto__"!=e)return object[e]}var Pa=Da(ti),La=cn||function(e,t){return tt.setTimeout(e,t)},Ia=Da(ni);function Na(e,t,n){var source=t+"";return Ia(e,function(source,details){var e=details.length;if(!e)return source;var t=e-1;return details[t]=(e>1?"& ":"")+details[t],details=details.join(e>2?", ":" "),source.replace(ae,"{\n/* [wrapped with "+details+"] */\n")}(source,function(details,e){return vt(h,(function(t){var n="_."+t[0];e&t[1]&&!wt(details,n)&&details.push(n)})),details.sort()}(function(source){var e=source.match(se);return e?e[1].split(oe):[]}(source),n)))}function Da(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ua(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var c=Yr(n,o),l=e[c];e[c]=e[n],e[n]=l}return e.length=t,e}var Fa=function(e){var t=Is(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}));function Ba(e){if("string"==typeof e||co(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function za(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ha(e){if(e instanceof Vn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Va=Kr((function(e,t){return Xs(e)?ur(e,vr(t,1,Xs,!0)):[]})),ja=Kr((function(e,t){var n=Ka(t);return Xs(n)&&(n=void 0),Xs(e)?ur(e,vr(t,1,Xs,!0),ua(n,2)):[]})),Wa=Kr((function(e,t){var n=Ka(t);return Xs(n)&&(n=void 0),Xs(e)?ur(e,vr(t,1,Xs,!0),void 0,n):[]}));function Ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mo(n);return o<0&&(o=gn(r+o,0)),kt(e,ua(t,3),o)}function $a(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=mo(n),o=n<0?gn(r+o,0):vn(o,r-1)),kt(e,ua(t,3),o,!0)}function Xa(e){return(null==e?0:e.length)?vr(e,1):[]}function head(e){return e&&e.length?e[0]:void 0}var qa=Kr((function(e){var t=St(e,yi);return t.length&&t[0]===e[0]?kr(t):[]})),Ya=Kr((function(e){var t=Ka(e),n=St(e,yi);return t===Ka(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?kr(n,ua(t,2)):[]})),Za=Kr((function(e){var t=Ka(e),n=St(e,yi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?kr(n,void 0,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ja=Kr(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var es=ia((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return qr(e,St(t,(function(e){return ba(e,n)?+e:e})).sort(Ci)),r}));function ts(e){return null==e?e:wn.call(e)}var ns=Kr((function(e){return fi(vr(e,1,Xs,!0))})),rs=Kr((function(e){var t=Ka(e);return Xs(t)&&(t=void 0),fi(vr(e,1,Xs,!0),ua(t,2))})),is=Kr((function(e){var t=Ka(e);return t="function"==typeof t?t:void 0,fi(vr(e,1,Xs,!0),void 0,t)}));function as(e){if(!e||!e.length)return[];var t=0;return e=bt(e,(function(e){if(Xs(e))return t=gn(e.length,t),!0})),Bt(t,(function(t){return St(e,Nt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=as(e);return null==t?n:St(n,(function(e){return mt(t,void 0,e)}))}var os=Kr((function(e,t){return Xs(e)?ur(e,t):[]})),cs=Kr((function(e){return vi(bt(e,Xs))})),ls=Kr((function(e){var t=Ka(e);return Xs(t)&&(t=void 0),vi(bt(e,Xs),ua(t,2))})),us=Kr((function(e){var t=Ka(e);return t="function"==typeof t?t:void 0,vi(bt(e,Xs),void 0,t)})),hs=Kr(as);var fs=Kr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,ss(e,n)}));function ds(e){var t=Fn(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var ms=ia((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(object){return ar(object,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&ba(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ps,args:[o],thisArg:void 0}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var gs=Li((function(e,t,n){Pe.call(e,n)?++e[n]:ir(e,n,1)}));var vs=zi(Ga),_s=zi($a);function ys(e,t){return(Ws(e)?vt:fr)(e,ua(t,3))}function bs(e,t){return(Ws(e)?_t:dr)(e,ua(t,3))}var ws=Li((function(e,t,n){Pe.call(e,n)?e[n].push(t):ir(e,n,[t])}));var xs=Kr((function(e,path,t){var n=-1,o="function"==typeof path,c=$s(e)?r(e.length):[];return fr(e,(function(e){c[++n]=o?mt(path,e,t):Or(e,path,t)})),c})),Ss=Li((function(e,t,n){ir(e,n,t)}));function map(e,t){return(Ws(e)?St:zr)(e,ua(t,3))}var Ts=Li((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Es=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wa(e,t[0],t[1])?t=[]:n>2&&wa(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,vr(t,1),[])})),Ms=on||function(){return tt.Date.now()};function As(e,t,n){return t=n?void 0:t,Qi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function Cs(e,t){var n;if("function"!=typeof t)throw new Me(c);return e=mo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Rs=Kr((function(e,t,n){var r=1;if(n.length){var o=Jt(n,la(Rs));r|=32}return Qi(e,r,t,n,o)})),ks=Kr((function(object,e,t){var n=3;if(t.length){var r=Jt(t,la(ks));n|=32}return Qi(e,n,object,t,r)}));function Os(e,t,n){var r,o,l,h,f,d,m=0,v=!1,_=!1,y=!0;if("function"!=typeof e)throw new Me(c);function w(time){var t=r,n=o;return r=o=void 0,m=time,h=e.apply(n,t)}function x(time){return m=time,f=La(T,t),v?w(time):h}function S(time){var e=time-d;return void 0===d||e>=t||e<0||_&&time-m>=l}function T(){var time=Ms();if(S(time))return E(time);f=La(T,function(time){var e=t-(time-d);return _?vn(e,l-(time-m)):e}(time))}function E(time){return f=void 0,y&&r?w(time):(r=o=void 0,h)}function M(){var time=Ms(),e=S(time);if(r=arguments,o=this,d=time,e){if(void 0===f)return x(d);if(_)return Ti(f),f=La(T,t),w(d)}return void 0===f&&(f=La(T,t)),h}return t=vo(t)||0,eo(n)&&(v=!!n.leading,l=(_="maxWait"in n)?gn(vo(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),M.cancel=function(){void 0!==f&&Ti(f),m=0,r=d=o=f=void 0},M.flush=function(){return void 0===f?h:E(Ms())},M}var Ps=Kr((function(e,t){return lr(e,1,t)})),Ls=Kr((function(e,t,n){return lr(e,vo(t)||0,n)}));function Is(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(c);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],c=n.cache;if(c.has(o))return c.get(o);var l=e.apply(this,r);return n.cache=c.set(o,l)||c,l};return n.cache=new(Is.Cache||Gn),n}function Ns(e){if("function"!=typeof e)throw new Me(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Is.Cache=Gn;var Ds=xi((function(e,t){var n=(t=1==t.length&&Ws(t[0])?St(t[0],zt(ua())):St(vr(t,1),zt(ua()))).length;return Kr((function(r){for(var o=-1,c=vn(r.length,n);++o<c;)r[o]=t[o].call(this,r[o]);return mt(e,this,r)}))})),Us=Kr((function(e,t){return Qi(e,32,void 0,t,Jt(t,la(Us)))})),Fs=Kr((function(e,t){return Qi(e,64,void 0,t,Jt(t,la(Fs)))})),Bs=ia((function(e,t){return Qi(e,256,void 0,void 0,void 0,t)}));function zs(e,t){return e===t||e!=e&&t!=t}var Hs=qi(Ar),Vs=qi((function(e,t){return e>=t})),js=Pr(function(){return arguments}())?Pr:function(e){return to(e)&&Pe.call(e,"callee")&&!nt.call(e,"callee")},Ws=r.isArray,Gs=ct?zt(ct):function(e){return to(e)&&Mr(e)==k};function $s(e){return null!=e&&Qs(e.length)&&!Ks(e)}function Xs(e){return to(e)&&$s(e)}var qs=fn||vc,Ys=lt?zt(lt):function(e){return to(e)&&Mr(e)==v};function Zs(e){if(!to(e))return!1;var t=Mr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Ks(e){if(!eo(e))return!1;var t=Mr(e);return t==y||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==mo(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function to(e){return null!=e&&"object"==typeof e}var no=ut?zt(ut):function(e){return to(e)&&ga(e)==x};function ro(e){return"number"==typeof e||to(e)&&Mr(e)==S}function io(e){if(!to(e)||Mr(e)!=T)return!1;var t=Qe(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==De}var ao=ht?zt(ht):function(e){return to(e)&&Mr(e)==E};var so=ft?zt(ft):function(e){return to(e)&&ga(e)==M};function oo(e){return"string"==typeof e||!Ws(e)&&to(e)&&Mr(e)==A}function co(e){return"symbol"==typeof e||to(e)&&Mr(e)==C}var lo=pt?zt(pt):function(e){return to(e)&&Qs(e.length)&&!!qe[Mr(e)]};var uo=qi(Br),ho=qi((function(e,t){return e<=t}));function fo(e){if(!e)return[];if($s(e))return oo(e)?nn(e):Oi(e);if(ot&&e[ot])return function(e){for(var data,t=[];!(data=e.next()).done;)t.push(data.value);return t}(e[ot]());var t=ga(e);return(t==x?Zt:t==M?Qt:Ho)(e)}function po(e){return e?(e=vo(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function mo(e){var t=po(e),n=t%1;return t==t?n?t-n:t:0}function go(e){return e?sr(mo(e),0,4294967295):0}function vo(e){if("number"==typeof e)return e;if(co(e))return NaN;if(eo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ne,"");var n=de.test(e);return n||me.test(e)?Je(e.slice(2),n?2:8):fe.test(e)?NaN:+e}function _o(e){return Pi(e,Lo(e))}function yo(e){return null==e?"":hi(e)}var bo=Ii((function(object,source){if(Ea(source)||$s(source))Pi(source,Po(source),object);else for(var e in source)Pe.call(source,e)&&Qn(object,e,source[e])})),wo=Ii((function(object,source){Pi(source,Lo(source),object)})),xo=Ii((function(object,source,e,t){Pi(source,Lo(source),object,t)})),So=Ii((function(object,source,e,t){Pi(source,Po(source),object,t)})),To=ia(ar);var Eo=Kr((function(object,e){object=Se(object);var t=-1,n=e.length,r=n>2?e[2]:void 0;for(r&&wa(e[0],e[1],r)&&(n=1);++t<n;)for(var source=e[t],o=Lo(source),c=-1,l=o.length;++c<l;){var h=o[c],f=object[h];(void 0===f||zs(f,Re[h])&&!Pe.call(object,h))&&(object[h]=source[h])}return object})),Mo=Kr((function(e){return e.push(void 0,ta),mt(No,void 0,e)}));function Ao(object,path,e){var t=null==object?void 0:Tr(object,path);return void 0===t?e:t}function Co(object,path){return null!=object&&va(object,path,Rr)}var Ro=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),tc(ic)),ko=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Oo=Kr(Or);function Po(object){return $s(object)?qn(object):Ur(object)}function Lo(object){return $s(object)?qn(object,!0):Fr(object)}var Io=Ii((function(object,source,e){jr(object,source,e)})),No=Ii((function(object,source,e,t){jr(object,source,e,t)})),Do=ia((function(object,e){var t={};if(null==object)return t;var n=!1;e=St(e,(function(path){return path=wi(path,object),n||(n=path.length>1),path})),Pi(object,sa(object),t),n&&(t=or(t,7,na));for(var r=e.length;r--;)di(t,e[r]);return t}));var Uo=ia((function(object,e){return null==object?{}:function(object,e){return $r(object,e,(function(e,path){return Co(object,path)}))}(object,e)}));function Fo(object,e){if(null==object)return{};var t=St(sa(object),(function(e){return[e]}));return e=ua(e),$r(object,t,(function(t,path){return e(t,path[0])}))}var Bo=Ji(Po),zo=Ji(Lo);function Ho(object){return null==object?[]:Ht(object,Po(object))}var Vo=Fi((function(e,t,n){return t=t.toLowerCase(),e+(n?jo(t):t)}));function jo(e){return Ko(yo(e).toLowerCase())}function Wo(e){return(e=yo(e))&&e.replace(ve,$t).replace(He,"")}var Go=Fi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$o=Fi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xo=Ui("toLowerCase");var qo=Fi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Yo=Fi((function(e,t,n){return e+(n?" ":"")+Ko(t)}));var Zo=Fi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ko=Ui("toUpperCase");function Jo(e,pattern,t){return e=yo(e),void 0===(pattern=t?void 0:pattern)?function(e){return Ge.test(e)}(e)?function(e){return e.match(je)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(pattern)||[]}var Qo=Kr((function(e,t){try{return mt(e,void 0,t)}catch(e){return Zs(e)?e:new be(e)}})),ec=ia((function(object,e){return vt(e,(function(e){e=Ba(e),ir(object,e,Rs(object[e],object))})),object}));function tc(e){return function(){return e}}var nc=Hi(),rc=Hi(!0);function ic(e){return e}function ac(e){return Dr("function"==typeof e?e:or(e,1))}var sc=Kr((function(path,e){return function(object){return Or(object,path,e)}})),oc=Kr((function(object,e){return function(path){return Or(object,path,e)}}));function cc(object,source,e){var t=Po(source),n=Sr(source,t);null!=e||eo(source)&&(n.length||!t.length)||(e=source,source=object,object=this,n=Sr(source,Po(source)));var r=!(eo(e)&&"chain"in e&&!e.chain),o=Ks(object);return vt(n,(function(e){var t=source[e];object[e]=t,o&&(object.prototype[e]=function(){var e=this.__chain__;if(r||e){var n=object(this.__wrapped__),o=n.__actions__=Oi(this.__actions__);return o.push({func:t,args:arguments,thisArg:object}),n.__chain__=e,n}return t.apply(object,Tt([this.value()],arguments))})})),object}function lc(){}var uc=Gi(St),hc=Gi(yt),fc=Gi(At);function dc(path){return xa(path)?Nt(Ba(path)):function(path){return function(object){return Tr(object,path)}}(path)}var pc=Xi(),mc=Xi(!0);function gc(){return[]}function vc(){return!1}var _c=Wi((function(e,t){return e+t}),0),yc=Zi("ceil"),bc=Wi((function(e,t){return e/t}),1),wc=Zi("floor");var source,xc=Wi((function(e,t){return e*t}),1),Sc=Zi("round"),Tc=Wi((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Me(c);return e=mo(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=As,Fn.assign=bo,Fn.assignIn=wo,Fn.assignInWith=xo,Fn.assignWith=So,Fn.at=To,Fn.before=Cs,Fn.bind=Rs,Fn.bindAll=ec,Fn.bindKey=ks,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Fn.chain=ds,Fn.chunk=function(e,t,n){t=(n?wa(e,t,n):void 0===t)?1:gn(mo(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var c=0,l=0,h=r(ln(o/t));c<o;)h[l++]=ii(e,c,c+=t);return h},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var c=e[t];c&&(o[r++]=c)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];
vendor: 5,134 bytes, line 2
2return Tt(Ws(n)?Oi(n):[n],vr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new Me(c);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var o=e[r];if(mt(o[0],this,n))return mt(o[1],this,n)}}))},Fn.conforms=function(source){return function(source){var e=Po(source);return function(object){return cr(object,source,e)}}(or(source,1))},Fn.constant=tc,Fn.countBy=gs,Fn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var o=Qi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Fn.curryRight=function e(t,n,r){var o=Qi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Fn.debounce=Os,Fn.defaults=Eo,Fn.defaultsDeep=Mo,Fn.defer=Ps,Fn.delay=Ls,Fn.difference=Va,Fn.differenceBy=ja,Fn.differenceWith=Wa,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||void 0===t?1:mo(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||void 0===t?1:mo(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!0):[]},Fn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wa(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=mo(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:mo(r))<0&&(r+=o),r=n>r?0:go(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Ws(e)?bt:gr)(e,ua(t,3))},Fn.flatMap=function(e,t){return vr(map(e,t),1)},Fn.flatMapDeep=function(e,t){return vr(map(e,t),1/0)},Fn.flatMapDepth=function(e,t,n){return n=void 0===n?1:mo(n),vr(map(e,t),n)},Fn.flatten=Xa,Fn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,1/0):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=void 0===t?1:mo(t)):[]},Fn.flip=function(e){return Qi(e,512)},Fn.flow=nc,Fn.flowRight=rc,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(object){return null==object?[]:Sr(object,Po(object))},Fn.functionsIn=function(object){return null==object?[]:Sr(object,Lo(object))},Fn.groupBy=ws,Fn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Fn.intersection=qa,Fn.intersectionBy=Ya,Fn.intersectionWith=Za,Fn.invert=Ro,Fn.invertBy=ko,Fn.invokeMap=xs,Fn.iteratee=ac,Fn.keyBy=Ss,Fn.keys=Po,Fn.keysIn=Lo,Fn.map=map,Fn.mapKeys=function(object,e){var t={};return e=ua(e,3),wr(object,(function(n,r,object){ir(t,e(n,r,object),n)})),t},Fn.mapValues=function(object,e){var t={};return e=ua(e,3),wr(object,(function(n,r,object){ir(t,r,e(n,r,object))})),t},Fn.matches=function(source){return Hr(or(source,1))},Fn.matchesProperty=function(path,e){return Vr(path,or(e,1))},Fn.memoize=Is,Fn.merge=Io,Fn.mergeWith=No,Fn.method=sc,Fn.methodOf=oc,Fn.mixin=cc,Fn.negate=Ns,Fn.nthArg=function(e){return e=mo(e),Kr((function(t){return Wr(t,e)}))},Fn.omit=Do,Fn.omitBy=function(object,e){return Fo(object,Ns(ua(e)))},Fn.once=function(e){return Cs(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?void 0:n)||(n=null==n?[]:[n]),Gr(e,t,n))},Fn.over=uc,Fn.overArgs=Ds,Fn.overEvery=hc,Fn.overSome=fc,Fn.partial=Us,Fn.partialRight=Fs,Fn.partition=Ts,Fn.pick=Uo,Fn.pickBy=Fo,Fn.property=dc,Fn.propertyOf=function(object){return function(path){return null==object?void 0:Tr(object,path)}},Fn.pull=Ja,Fn.pullAll=Qa,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,ua(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,void 0,n):e},Fn.pullAt=es,Fn.range=pc,Fn.rangeRight=mc,Fn.rearg=Bs,Fn.reject=function(e,t){return(Ws(e)?bt:gr)(e,Ns(ua(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],c=e.length;for(t=ua(t,3);++r<c;){var l=e[r];t(l,r,e)&&(n.push(l),o.push(r))}return qr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Me(c);return Kr(e,t=void 0===t?t:mo(t))},Fn.reverse=ts,Fn.sampleSize=function(e,t,n){return t=(n?wa(e,t,n):void 0===t)?1:mo(t),(Ws(e)?Zn:Qr)(e,t)},Fn.set=function(object,path,e){return null==object?object:ei(object,path,e)},Fn.setWith=function(object,path,e,t){return t="function"==typeof t?t:void 0,null==object?object:ei(object,path,e,t)},Fn.shuffle=function(e){return(Ws(e)?Kn:ri)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wa(e,t,n)?(t=0,n=r):(t=null==t?0:mo(t),n=void 0===n?r:mo(n)),ii(e,t,n)):[]},Fn.sortBy=Es,Fn.sortedUniq=function(e){return e&&e.length?ci(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?ci(e,ua(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&wa(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=yo(e))&&("string"==typeof t||null!=t&&!ao(t))&&!(t=hi(t))&&Yt(e)?Si(nn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Me(c);return t=null==t?0:gn(mo(t),0),Kr((function(n){var r=n[t],o=Si(n,0,t);return r&&Tt(o,r),mt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]}
vendor: 9,847 bytes, line 2
2,Fn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||void 0===t?1:mo(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||void 0===t?1:mo(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?mi(e,ua(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?mi(e,ua(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Me(c);return eo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Os(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=ps,Fn.toArray=fo,Fn.toPairs=Bo,Fn.toPairsIn=zo,Fn.toPath=function(e){return Ws(e)?St(e,Ba):co(e)?[e]:Oi(Fa(yo(e)))},Fn.toPlainObject=_o,Fn.transform=function(object,e,t){var n=Ws(object),r=n||qs(object)||lo(object);if(e=ua(e,4),null==t){var o=object&&object.constructor;t=r?n?new o:[]:eo(object)&&Ks(o)?Bn(Qe(object)):{}}return(r?vt:wr)(object,(function(n,r,object){return e(t,n,r,object)})),t},Fn.unary=function(e){return As(e,1)},Fn.union=ns,Fn.unionBy=rs,Fn.unionWith=is,Fn.uniq=function(e){return e&&e.length?fi(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?fi(e,ua(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?fi(e,void 0,t):[]},Fn.unset=function(object,path){return null==object||di(object,path)},Fn.unzip=as,Fn.unzipWith=ss,Fn.update=function(object,path,e){return null==object?object:pi(object,path,bi(e))},Fn.updateWith=function(object,path,e,t){return t="function"==typeof t?t:void 0,null==object?object:pi(object,path,bi(e),t)},Fn.values=Ho,Fn.valuesIn=function(object){return null==object?[]:Ht(object,Lo(object))},Fn.without=os,Fn.words=Jo,Fn.wrap=function(e,t){return Us(bi(t),e)},Fn.xor=cs,Fn.xorBy=ls,Fn.xorWith=us,Fn.zip=hs,Fn.zipObject=function(e,t){return _i(e||[],t||[],Qn)},Fn.zipObjectDeep=function(e,t){return _i(e||[],t||[],ei)},Fn.zipWith=fs,Fn.entries=Bo,Fn.entriesIn=zo,Fn.extend=wo,Fn.extendWith=xo,cc(Fn,Fn),Fn.add=_c,Fn.attempt=Qo,Fn.camelCase=Vo,Fn.capitalize=jo,Fn.ceil=yc,Fn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=vo(n))==n?n:0),void 0!==t&&(t=(t=vo(t))==t?t:0),sr(vo(e),t,n)},Fn.clone=function(e){return or(e,4)},Fn.cloneDeep=function(e){return or(e,5)},Fn.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:void 0)},Fn.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:void 0)},Fn.conformsTo=function(object,source){return null==source||cr(object,source,Po(source))},Fn.deburr=Wo,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=bc,Fn.endsWith=function(e,t,n){e=yo(e),t=hi(t);var r=e.length,o=n=void 0===n?r:sr(mo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=zs,Fn.escape=function(e){return(e=yo(e))&&$.test(e)?e.replace(W,Xt):e},Fn.escapeRegExp=function(e){return(e=yo(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Fn.every=function(e,t,n){var r=Ws(e)?yt:pr;return n&&wa(e,t,n)&&(t=void 0),r(e,ua(t,3))},Fn.find=vs,Fn.findIndex=Ga,Fn.findKey=function(object,e){return Rt(object,ua(e,3),wr)},Fn.findLast=_s,Fn.findLastIndex=$a,Fn.findLastKey=function(object,e){return Rt(object,ua(e,3),xr)},Fn.floor=wc,Fn.forEach=ys,Fn.forEachRight=bs,Fn.forIn=function(object,e){return null==object?object:_r(object,ua(e,3),Lo)},Fn.forInRight=function(object,e){return null==object?object:yr(object,ua(e,3),Lo)},Fn.forOwn=function(object,e){return object&&wr(object,ua(e,3))},Fn.forOwnRight=function(object,e){return object&&xr(object,ua(e,3))},Fn.get=Ao,Fn.gt=Hs,Fn.gte=Vs,Fn.has=function(object,path){return null!=object&&va(object,path,Cr)},Fn.hasIn=Co,Fn.head=head,Fn.identity=ic,Fn.includes=function(e,t,n,r){e=$s(e)?e:Ho(e),n=n&&!r?mo(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),oo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ot(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mo(n);return o<0&&(o=gn(r+o,0)),Ot(e,t,o)},Fn.inRange=function(e,t,n){return t=po(t),void 0===n?(n=t,t=0):n=po(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=vo(e),t,n)},Fn.invoke=Oo,Fn.isArguments=js,Fn.isArray=Ws,Fn.isArrayBuffer=Gs,Fn.isArrayLike=$s,Fn.isArrayLikeObject=Xs,Fn.isBoolean=function(e){return!0===e||!1===e||to(e)&&Mr(e)==m},Fn.isBuffer=qs,Fn.isDate=Ys,Fn.isElement=function(e){return to(e)&&1===e.nodeType&&!io(e)},Fn.isEmpty=function(e){if(null==e)return!0;if($s(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||qs(e)||lo(e)||js(e)))return!e.length;var t=ga(e);if(t==x||t==M)return!e.size;if(Ea(e))return!Ur(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Lr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Lr(e,t,void 0,n):!!r},Fn.isError=Zs,Fn.isFinite=function(e){return"number"==typeof e&&dn(e)},Fn.isFunction=Ks,Fn.isInteger=Js,Fn.isLength=Qs,Fn.isMap=no,Fn.isMatch=function(object,source){return object===source||Ir(object,source,fa(source))},Fn.isMatchWith=function(object,source,e){return e="function"==typeof e?e:void 0,Ir(object,source,fa(source),e)},Fn.isNaN=function(e){return ro(e)&&e!=+e},Fn.isNative=function(e){if(Ta(e))throw new be("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=ro,Fn.isObject=eo,Fn.isObjectLike=to,Fn.isPlainObject=io,Fn.isRegExp=ao,Fn.isSafeInteger=function(e){return Js(e)&&e>=-9007199254740991&&e<=9007199254740991},Fn.isSet=so,Fn.isString=oo,Fn.isSymbol=co,Fn.isTypedArray=lo,Fn.isUndefined=function(e){return void 0===e},Fn.isWeakMap=function(e){return to(e)&&ga(e)==R},Fn.isWeakSet=function(e){return to(e)&&"[object WeakSet]"==Mr(e)},Fn.join=function(e,t){return null==e?"":pn.call(e,t)},Fn.kebabCase=Go,Fn.last=Ka,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=mo(n))<0?gn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):kt(e,Lt,o,!0)},Fn.lowerCase=$o,Fn.lowerFirst=Xo,Fn.lt=uo,Fn.lte=ho,Fn.max=function(e){return e&&e.length?mr(e,ic,Ar):void 0},Fn.maxBy=function(e,t){return e&&e.length?mr(e,ua(t,2),Ar):void 0},Fn.mean=function(e){return It(e,ic)},Fn.meanBy=function(e,t){return It(e,ua(t,2))},Fn.min=function(e){return e&&e.length?mr(e,ic,Br):void 0},Fn.minBy=function(e,t){return e&&e.length?mr(e,ua(t,2),Br):void 0},Fn.stubArray=gc,Fn.stubFalse=vc,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=xc,Fn.nth=function(e,t){return e&&e.length?Wr(e,mo(t)):void 0},Fn.noConflict=function(){return tt._===this&&(tt._=Ue),this},Fn.noop=lc,Fn.now=Ms,Fn.pad=function(e,t,n){e=yo(e);var r=(t=mo(t))?tn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $i(un(o),n)+e+$i(ln(o),n)},Fn.padEnd=function(e,t,n){e=yo(e);var r=(t=mo(t))?tn(e):0;return t&&r<t?e+$i(t-r,n):e},Fn.padStart=function(e,t,n){e=yo(e);var r=(t=mo(t))?tn(e):0;return t&&r<t?$i(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(yo(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wa(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=po(e),void 0===t?(t=e,e=0):t=po(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=bn();return vn(e+o*(t-e+Ke("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Fn.reduce=function(e,t,n){var r=Ws(e)?Et:Ut,o=arguments.length<3;return r(e,ua(t,4),n,o,fr)},Fn.reduceRight=function(e,t,n){var r=Ws(e)?Mt:Ut,o=arguments.length<3;return r(e,ua(t,4),n,o,dr)},Fn.repeat=function(e,t,n){return t=(n?wa(e,t,n):void 0===t)?1:mo(t),Zr(yo(e),t)},Fn.replace=function(){var e=arguments,t=yo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(object,path,e){var t=-1,n=(path=wi(path,object)).length;for(n||(n=1,object=void 0);++t<n;){var r=null==object?void 0:object[Ba(path[t])];void 0===r&&(t=n,r=e),object=Ks(r)?r.call(object):r}return object},Fn.round=Sc,Fn.runInContext=e,Fn.sample=function(e){return(Ws(e)?Yn:Jr)(e)},Fn.size=function(e){if(null==e)return 0;if($s(e))return oo(e)?tn(e):e.length;var t=ga(e);return t==x||t==M?e.size:Ur(e).length},Fn.snakeCase=qo,Fn.some=function(e,t,n){var r=Ws(e)?At:ai;return n&&wa(e,t,n)&&(t=void 0),r(e,ua(t,3))},Fn.sortedIndex=function(e,t){return si(e,t)},Fn.sortedIndexBy=function(e,t,n){return oi(e,t,ua(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&zs(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return si(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oi(e,t,ua(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(zs(e[n],t))return n}return-1},Fn.startCase=Yo,Fn.startsWith=function(e,t,n){return e=yo(e),n=null==n?0:sr(mo(n),0,e.length),t=hi(t),e.slice(n,n+t.length)==t},Fn.subtract=Tc,Fn.sum=function(e){return e&&e.length?Ft(e,ic):0},Fn.sumBy=function(e,t){return e&&e.length?Ft(e,ua(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&wa(e,t,n)&&(t=void 0),e=yo(e),t=xo({},t,r,ea);var o,c,l=xo({},t.imports,r.imports,ea),h=Po(l),f=Ht(l,h),d=0,m=t.interpolate||_e,source="__p += '",v=Te((t.escape||_e).source+"|"+m.source+"|"+(m===Z?ue:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),_="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xe+"]")+"\n";e.replace(v,(function(t,n,r,l,h,f){return r||(r=l),source+=e.slice(d,f).replace(ye,qt),n&&(o=!0,source+="' +\n__e("+n+") +\n'"),h&&(c=!0,source+="';\n"+h+";\n__p += '"),r&&(source+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=f+t.length,t})),source+="';\n";var y=Pe.call(t,"variable")&&t.variable;y||(source="with (obj) {\n"+source+"\n}\n"),source=(c?source.replace(z,""):source).replace(H,"$1").replace(V,"$1;
2"),source="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var w=Qo((function(){return we(h,_+"return "+source).apply(void 0,f)}));if(w.source=source,Zs(w))throw w;return w},Fn.times=function(e,t){if((e=mo(e))<1||e>9007199254740991)return[];var n=4294967295,r=vn(e,4294967295);e-=4294967295;for(var o=Bt(r,t=ua(t));++n<e;)t(n);return o},Fn.toFinite=po,Fn.toInteger=mo,Fn.toLength=go,Fn.toLower=function(e){return yo(e).toLowerCase()},Fn.toNumber=vo,Fn.toSafeInteger=function(e){return e?sr(mo(e),-9007199254740991,9007199254740991):0===e?e:0},Fn.toString=yo,Fn.toUpper=function(e){return yo(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=yo(e))&&(n||void 0===t))return e.replace(ne,"");if(!e||!(t=hi(t)))return e;var r=nn(e),o=nn(t);return Si(r,jt(r,o),Wt(r,o)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=yo(e))&&(n||void 0===t))return e.replace(ie,"");if(!e||!(t=hi(t)))return e;var r=nn(e);return Si(r,0,Wt(r,nn(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=yo(e))&&(n||void 0===t))return e.replace(re,"");if(!e||!(t=hi(t)))return e;var r=nn(e);return Si(r,jt(r,nn(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(eo(t)){var o="separator"in t?t.separator:o;n="length"in t?mo(t.length):n,r="omission"in t?hi(t.omission):r}var c=(e=yo(e)).length;if(Yt(e)){var l=nn(e);c=l.length}if(n>=c)return e;var h=n-tn(r);if(h<1)return r;var f=l?Si(l,0,h).join(""):e.slice(0,h);if(void 0===o)return f+r;if(l&&(h+=f.length-h),ao(o)){if(e.slice(h).search(o)){var d,m=f;for(o.global||(o=Te(o.source,yo(he.exec(o))+"g")),o.lastIndex=0;d=o.exec(m);)var v=d.index;f=f.slice(0,void 0===v?h:v)}}else if(e.indexOf(hi(o),h)!=h){var _=f.lastIndexOf(o);_>-1&&(f=f.slice(0,_))}return f+r},Fn.unescape=function(e){return(e=yo(e))&&G.test(e)?e.replace(j,rn):e},Fn.uniqueId=function(e){var t=++Le;return yo(e)+t},Fn.upperCase=Zo,Fn.upperFirst=Ko,Fn.each=ys,Fn.eachRight=bs,Fn.first=head,cc(Fn,(source={},wr(Fn,(function(e,t){Pe.call(Fn.prototype,t)||(source[t]=e)})),source),{chain:!1}),Fn.VERSION="4.17.20",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),vt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=void 0===n?1:gn(mo(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),vt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),vt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Kr((function(path,e){return"function"==typeof path?new Vn(this):this.map((function(t){return Or(t,path,e)}))})),Vn.prototype.reject=function(e){return this.filter(Ns(ua(e)))},Vn.prototype.slice=function(e,t){e=mo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=mo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(4294967295)},wr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],c=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,h=t instanceof Vn,f=l[0],d=h||Ws(t),m=function(e){var t=o.apply(Fn,Tt([e],l));return r&&v?t[0]:t};d&&n&&"function"==typeof f&&1!=f.length&&(h=d=!1);var v=this.__chain__,_=!!this.__actions__.length,y=c&&!v,w=h&&!_;if(!c&&d){t=w?t:new Vn(this);var x=e.apply(t,l);return x.__actions__.push({func:ps,args:[m],thisArg:void 0}),new Hn(x,v)}return y&&w?e.apply(this,l):(x=this.thru(m),y?r?x.value()[0]:x.value(
2):x)})})),vt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ws(o)?o:[],e)}return this[n]((function(n){return t.apply(Ws(n)?n:[],e)}))}})),wr(Vn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Pe.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Vi(void 0,2).name]=[{name:"wrapper",func:void 0}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,o=n?e.length:0,view=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var data=n[r],c=data.size;switch(data.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=vn(t,e+c);break;case"takeRight":e=gn(e,t-c)}}return{start:e,end:t}}(0,o,this.__views__),c=view.start,l=view.end,h=l-c,f=r?l:c-1,d=this.__iteratees__,m=d.length,v=0,_=vn(h,this.__takeCount__);if(!n||!r&&o==h&&_==h)return gi(e,this.__actions__);var y=[];e:for(;h--&&v<_;){for(var w=-1,x=e[f+=t];++w<m;){var data=d[w],S=data.iteratee,T=data.type,E=S(x);if(2==T)x=E;else if(!E){if(1==T)continue e;break e}}y[v++]=x}return y},Fn.prototype.at=ms,Fn.prototype.chain=function(){return ds(this)},Fn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Fn.prototype.next=function(){void 0===this.__values__&&(this.__values__=fo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Ha(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ps,args:[ts],thisArg:void 0}),new Hn(t,this.__chain__)}return this.thru(ts)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,ot&&(Fn.prototype[ot]=function(){return this}),Fn}();tt._=an,void 0===(o=function(){return an}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(54),n(372)(e))},function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(374),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var i=0;i<OUTPUT_TYPES.length;++i){var t=OUTPUT_TYPES[i];e[t]=createOutputMethod(t)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");
2if(null==e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw ERROR;t=!0}for(var code,i,r=0,o=e.length,c=this.blocks,l=this.buffer8;r<o;){if(this.hashed&&(this.hashed=!1,c[0]=c[16],c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0),t)if(ARRAY_BUFFER)for(i=this.start;r<o&&i<64;++r)l[i++]=e[r];else for(i=this.start;r<o&&i<64;++r)c[i>>2]|=e[r]<<SHIFT[3&i++];else if(ARRAY_BUFFER)for(i=this.start;r<o&&i<64;++r)(code=e.charCodeAt(r))<128?l[i++]=code:code<2048?(l[i++]=192|code>>6,l[i++]=128|63&code):code<55296||code>=57344?(l[i++]=224|code>>12,l[i++]=128|code>>6&63,l[i++]=128|63&code):(code=65536+((1023&code)<<10|1023&e.charCodeAt(++r)),l[i++]=240|code>>18,l[i++]=128|code>>12&63,l[i++]=128|code>>6&63,l[i++]=128|63&code);else for(i=this.start;r<o&&i<64;++r)(code=e.charCodeAt(r))<128?c[i>>2]|=code<<SHIFT[3&i++]:code<2048?(c[i>>2]|=(192|code>>6)<<SHIFT[3&i++],c[i>>2]|=(128|63&code)<<SHIFT[3&i++]):code<55296||code>=57344?(c[i>>2]|=(224|code>>12)<<SHIFT[3&i++],c[i>>2]|=(128|code>>6&63)<<SHIFT[3&i++],c[i>>2]|=(128|63&code)<<SHIFT[3&i++]):(code=65536+((1023&code)<<10|1023&e.charCodeAt(++r)),c[i>>2]|=(240|code>>18)<<SHIFT[3&i++],c[i>>2]|=(128|code>>12&63)<<SHIFT[3&i++],c[i>>2]|=(128|code>>6&63)<<SHIFT[3&i++],c[i>>2]|=(128|63&code)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,i=this.lastByteIndex;e[i>>2]|=EXTRA[3&i],i>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var a,b,e,t,n,r,o=this.blocks;this.first?b=((b=((a=((a=o[0]-680876937)<<7|a>>>25)-271733879<<0)^(e=((e=(-271733879^(t=((t=(-1732584194^2004318071&a)+o[1]-117830708)<<12|t>>>20)+a<<0)&(-271733879^a))+o[2]-1126478375)<<17|e>>>15)+t<<0)&(t^a))+o[3]-1316259209)<<22|b>>>10)+e<<0:(a=this.h0,b=this.h1,e=this.h2,b=((b+=((a=((a+=((t=this.h3)^b&(e^t))+o[0]-680876936)<<7|a>>>25)+b<<0)^(e=((e+=(b^(t=((t+=(e^a&(b^e))+o[1]-389564586)<<12|t>>>20)+a<<0)&(a^b))+o[2]+606105819)<<17|e>>>15)+t<<0)&(t^a))+o[3]-1044525330)<<22|b>>>10)+e<<0),b=((b+=((a=((a+=(t^b&(e^t))+o[4]-176418897)<<7|a>>>25)+b<<0)^(e=((e+=(b^(t=((t+=(e^a&(b^e))+o[5]+1200080426)<<12|t>>>20)+a<<0)&(a^b))+o[6]-1473231341)<<17|e>>>15)+t<<0)&(t^a))+o[7]-45705983)<<22|b>>>10)+e<<0,b=((b+=((a=((a+=(t^b&(e^t))+o[8]+1770035416)<<7|a>>>25)+b<<0)^(e=((e+=(b^(t=((t+=(e^a&(b^e))+o[9]-1958414417)<<12|t>>>20)+a<<0)&(a^b))+o[10]-42063)<<17|e>>>15)+t<<0)&(t^a))+o[11]-1990404162)<<22|b>>>10)+e<<0,b=((b+=((a=((a+=(t^b&(e^t))+o[12]+1804603682)<<7|a>>>25)+b<<0)^(e=((e+=(b^(t=((t+=(e^a&(b^e))+o[13]-40341101)<<12|t>>>20)+a<<0)&(a^b))+o[14]-1502002290)<<17|e>>>15)+t<<0)&(t^a))+o[15]+1236535329)<<22|b>>>10)+e<<0,b=((b+=((t=((t+=(b^e&((a=((a+=(e^t&(b^e))+o[1]-165796510)<<5|a>>>27)+b<<0)^b))+o[6]-1069501632)<<9|t>>>23)+a<<0)^a&((e=((e+=(a^b&(t^a))+o[11]+643717713)<<14|e>>>18)+t<<0)^t))+o[0]-373897302)<<20|b>>>
212)+e<<0,b=((b+=((t=((t+=(b^e&((a=((a+=(e^t&(b^e))+o[5]-701558691)<<5|a>>>27)+b<<0)^b))+o[10]+38016083)<<9|t>>>23)+a<<0)^a&((e=((e+=(a^b&(t^a))+o[15]-660478335)<<14|e>>>18)+t<<0)^t))+o[4]-405537848)<<20|b>>>12)+e<<0,b=((b+=((t=((t+=(b^e&((a=((a+=(e^t&(b^e))+o[9]+568446438)<<5|a>>>27)+b<<0)^b))+o[14]-1019803690)<<9|t>>>23)+a<<0)^a&((e=((e+=(a^b&(t^a))+o[3]-187363961)<<14|e>>>18)+t<<0)^t))+o[8]+1163531501)<<20|b>>>12)+e<<0,b=((b+=((t=((t+=(b^e&((a=((a+=(e^t&(b^e))+o[13]-1444681467)<<5|a>>>27)+b<<0)^b))+o[2]-51403784)<<9|t>>>23)+a<<0)^a&((e=((e+=(a^b&(t^a))+o[7]+1735328473)<<14|e>>>18)+t<<0)^t))+o[12]-1926607734)<<20|b>>>12)+e<<0,b=((b+=((r=(t=((t+=((n=b^e)^(a=((a+=(n^t)+o[5]-378558)<<4|a>>>28)+b<<0))+o[8]-2022574463)<<11|t>>>21)+a<<0)^a)^(e=((e+=(r^b)+o[11]+1839030562)<<16|e>>>16)+t<<0))+o[14]-35309556)<<23|b>>>9)+e<<0,b=((b+=((r=(t=((t+=((n=b^e)^(a=((a+=(n^t)+o[1]-1530992060)<<4|a>>>28)+b<<0))+o[4]+1272893353)<<11|t>>>21)+a<<0)^a)^(e=((e+=(r^b)+o[7]-155497632)<<16|e>>>16)+t<<0))+o[10]-1094730640)<<23|b>>>9)+e<<0,b=((b+=((r=(t=((t+=((n=b^e)^(a=((a+=(n^t)+o[13]+681279174)<<4|a>>>28)+b<<0))+o[0]-358537222)<<11|t>>>21)+a<<0)^a)^(e=((e+=(r^b)+o[3]-722521979)<<16|e>>>16)+t<<0))+o[6]+76029189)<<23|b>>>9)+e<<0,b=((b+=((r=(t=((t+=((n=b^e)^(a=((a+=(n^t)+o[9]-640364487)<<4|a>>>28)+b<<0))+o[12]-421815835)<<11|t>>>21)+a<<0)^a)^(e=((e+=(r^b)+o[15]+530742520)<<16|e>>>16)+t<<0))+o[2]-995338651)<<23|b>>>9)+e<<0,b=((b+=((t=((t+=(b^((a=((a+=(e^(b|~t))+o[0]-198630844)<<6|a>>>26)+b<<0)|~e))+o[7]+1126891415)<<10|t>>>22)+a<<0)^((e=((e+=(a^(t|~b))+o[14]-1416354905)<<15|e>>>17)+t<<0)|~a))+o[5]-57434055)<<21|b>>>11)+e<<0,b=((b+=((t=((t+=(b^((a=((a+=(e^(b|~t))+o[12]+1700485571)<<6|a>>>26)+b<<0)|~e))+o[3]-1894986606)<<10|t>>>22)+a<<0)^((e=((e+=(a^(t|~b))+o[10]-1051523)<<15|e>>>17)+t<<0)|~a))+o[1]-2054922799)<<21|b>>>11)+e<<0,b=((b+=((t=((t+=(b^((a=((a+=(e^(b|~t))+o[8]+1873313359)<<6|a>>>26)+b<<0)|~e))+o[15]-30611744)<<10|t>>>22)+a<<0)^((e=((e+=(a^(t|~b))+o[6]-1560198380)<<15|e>>>17)+t<<0)|~a))+o[13]+1309151649)<<21|b>>>11)+e<<0,b=((b+=((t=((t+=(b^((a=((a+=(e^(b|~t))+o[4]-145523070)<<6|a>>>26)+b<<0)|~e))+o[11]-1120210379)<<10|t>>>22)+a<<0)^((e=((e+=(a^(t|~b))+o[2]+718787259)<<15|e>>>17)+t<<0)|~a))+o[9]-343485551)<<21|b>>>11)+e<<0,this.first?(this.h0=a+1732584193<<0,this.h1=b-271733879<<0,this.h2=e-1732584194<<0,this.h3=t+271733878<<0,this.first=!1):(this.h0=this.h0+a<<0,this.h1=this.h1+b<<0,this.h2=this.h2+e<<0,this.h3=this.h3+t<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,h1=this.h1,h2=this.h2,h3=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[h1>>4&15]+HEX_CHARS[15&h1]+HEX_CHARS[h1>>12&15]+HEX_CHARS[h1>>8&15]+HEX_CHARS[h1>>20&15]+HEX_CHARS[h1>>16&15]+HEX_CHARS[h1>>28&15]+HEX_CHARS[h1>>24&15]+HEX_CHARS[h2>>4&15]+HEX_CHARS[15&h2]+HEX_CHARS[h2>>12&15]+HEX_CHARS[h2>>8&15]+HEX_CHARS[h2>>20&15]+HEX_CHARS[h2>>16&15]+HEX_CHARS[h2>>28&15]+HEX_CHARS[h2>>24&15]+HEX_CHARS[h3>>4&15]+HEX_CHARS[15&h3]+HEX_CHARS[h3>>12&15]+HEX_CHARS[h3>>8&15]+HEX_CHARS[h3>>20&15]+HEX_CHARS[h3>>16&15]+HEX_CHARS[h3>>28&15]+HEX_CHARS[h3>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,h1=this.h1,h2=this.h2,h3=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&h1,h1>>8&255,h1>>16&255,h1>>24&255,255&h2,h2>>8&255,h2>>16&255,h2>>24&255,255&h3,h3>>8&255,h3>>16&255,h3>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,r="",o=this.array(),i=0;i<15;)e=o[i++],t=o[i++],n=o[i++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=o[i],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(189),__webpack_require__(54))},function(e,t,n){e.exports&&(e.exports=function(e){"use strict";return e.prototype.toFormat=function(e,t,n){if(!this.e&&0!==this.e)return this.toString();var r,o,c,i,u,l,h,f,d,m,v,_,y,w,x,S=this.format||{},T=this.constructor.format||{};if(e!=u?"object"==typeof e?(n=e,e=u):t!=u?"object"==typeof t?(n=t,t=u):"object"!=typeof n&&(n={}):n={}:n={},f=(r=this.toFixed(e,t).split("."))[0],d=r[1],l=(h=this.s<0?f.slice(1):f).length,(m=n.decimalSeparator)==u&&(m=S.decimalSeparator)==u&&(m=T.decimalSeparator)==u&&(m="."),(v=n.groupSeparator)==u&&(v=S.groupSeparator)==u&&(v=T.groupSeparator),v&&((_=n.groupSize)==u&&(_=S.groupSize)==u&&(_=T.groupSize)==u&&(_=0),(y=n.secondaryGroupSize)==u&&(y=S.secondaryGroupSize)==u&&(y=T.secondaryGroupSize)==u&&(y=0),y?(o=+y,l-=c=+_):(o=+_,c=+y),o>0&&l>0)){for(i=l%o||o,f=h.substr(0,i);i<l;i+=o)f+=v+h.substr(i,o);c>0&&(f+=v+h.slice(i)),this.s<0&&(f="-"+f)}return d?((w=n.fractionGroupSeparator)==u&&(w=S.fractionGroupSeparator)==u&&(w=T.fractionGroupSeparator),w&&((x=n.fractionGroupSize)==u&&(x=S.fractionGroupSize)==u&&(x=T.fractionGroupSize)==u&&(x=0),(x=+x)&&(d=d.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+w))),f+m+d):f},e.format={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0},e})},function(e,t,n){(function(n){var r,o,c;o=[],void 0===(c="function"==typeof(r=function(){"use strict";function t(a,b,e){var t=new XMLHttpRequest;t.open("GET",a),t.responseType="blob",t.onload=function(){g(t.response,b,e)},t.onerror=function(){},t.send()}function r(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function o(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(e){var b=document.createEvent("MouseEvents");
2b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var c="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=c.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=c.saveAs||("object"!=typeof window||window!==c?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,e){var i=c.URL||c.webkitURL,n=document.createElement("a");g=g||b.name||"download",n.download=g,n.rel="noopener","string"==typeof b?(n.href=b,n.origin===location.origin?o(n):r(n.href)?t(b,g,e):o(n,n.target="_blank")):(n.href=i.createObjectURL(b),setTimeout((function(){i.revokeObjectURL(n.href)}),4e4),setTimeout((function(){o(n)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,g,n){if(g=g||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(a,b){return void 0===b?b={autoBom:!1}:"object"!=typeof b&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\ufeff",a],{type:a.type}):a}(e,n),g);else if(r(e))t(e,g,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){o(i)}))}}:function(b,e,n,g){if((g=g||open("","_blank"))&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return t(b,e,n);var r="application/octet-stream"===b.type,i=/constructor/i.test(c.HTMLElement)||c.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||r&&i||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var a=l.result;a=o?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},l.readAsDataURL(b)}else{var h=c.URL||c.webkitURL,f=h.createObjectURL(b);g?g.location=f:location.href=f,g=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});c.saveAs=g.saveAs=g,e.exports=g})?r.apply(t,o):r)||(e.exports=c)}).call(this,n(54))},function(e,t,n){var r;!function(o,c,l,h){"use strict";var f,d=["","webkit","Moz","MS","ms","o"],m=c.createElement("div"),v=Math.round,_=Math.abs,y=Date.now;function w(e,t,n){return setTimeout(C(e,n),t)}function x(e,t,n){return!!Array.isArray(e)&&(S(e,n[t],n),!0)}function S(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function T(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",c=o.console&&(o.console.warn||o.console.log);return c&&c.call(o.console,r,n),e.apply(this,arguments)}}f="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var output=Object(e),t=1;t<arguments.length;t++){var source=arguments[t];if(null!=source)for(var n in source)source.hasOwnProperty(n)&&(output[n]=source[n])}return output}:Object.assign;var E=T((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&void 0===e[r[i]])&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),M=T((function(e,t){return E(e,t,!0)}),"merge","Use `assign`.");function A(e,base,t){var n,r=base.prototype;(n=e.prototype=Object.create(r)).constructor=e,n._super=r,t&&f(n,t)}function C(e,t){return function(){return e.apply(t,arguments)}}function R(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function k(e,t){return void 0===e?t:e}function O(e,t,n){S(N(t),(function(t){e.addEventListener(t,n,!1)}))}function P(e,t,n){S(N(t),(function(t){e.removeEventListener(t,n,!1)}))}function L(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function I(e,t){return e.indexOf(t)>-1}function N(e){return e.trim().split(/\s+/g)}function D(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function U(e){return Array.prototype.slice.call(e,0)}function F(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var c=t?e[i][t]:e[i];D(o,c)<0&&r.push(e[i]),o[i]=c,i++}return n&&(r=t?r.sort((function(a,b){return a[t]>b[t]})):r.sort()),r}function B(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<d.length;){if((r=(n=d[i])?n+o:t)in e)return r;i++}}var z=1;function H(element){var e=element.ownerDocument||element;return e.defaultView||e.parentWindow||o}var V="ontouchstart"in o,j=void 0!==B(o,"PointerEvent"),W=V&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),G=["x","y"],$=["clientX","clientY"];function X(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){R(e.options.enable,[e])&&n.handler(t)},this.init()}function Y(e,t,input){var n=input.pointers.length,r=input.changedPointers.length,o=1&t&&n-r==0,c=12&t&&n-r==0;input.isFirst=!!o,input.isFinal=!!c,o&&(e.session={}),input.eventType=t,function(e,input){var t=e.session,n=input.pointers,r=n.length;t.firstInput||(t.firstInput=Z(input));r>
vendor: 17,889 bytes, line 2
21&&!t.firstMultiple?t.firstMultiple=Z(input):1===r&&(t.firstMultiple=!1);var o=t.firstInput,c=t.firstMultiple,l=c?c.center:o.center,h=input.center=K(n);input.timeStamp=y(),input.deltaTime=input.timeStamp-o.timeStamp,input.angle=te(l,h),input.distance=ee(l,h),function(e,input){var t=input.center,n=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};1!==input.eventType&&4!==o.eventType||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=e.offsetDelta={x:t.x,y:t.y});input.deltaX=r.x+(t.x-n.x),input.deltaY=r.y+(t.y-n.y)}(t,input),input.offsetDirection=Q(input.deltaX,input.deltaY);var f=J(input.deltaTime,input.deltaX,input.deltaY);input.overallVelocityX=f.x,input.overallVelocityY=f.y,input.overallVelocity=_(f.x)>_(f.y)?f.x:f.y,input.scale=c?(d=c.pointers,m=n,ee(m[0],m[1],$)/ee(d[0],d[1],$)):1,input.rotation=c?function(e,t){return te(t[1],t[0],$)+te(e[1],e[0],$)}(c.pointers,n):0,input.maxPointers=t.prevInput?input.pointers.length>t.prevInput.maxPointers?input.pointers.length:t.prevInput.maxPointers:input.pointers.length,function(e,input){var t,n,r,o,c=e.lastInterval||input,l=input.timeStamp-c.timeStamp;if(8!=input.eventType&&(l>25||void 0===c.velocity)){var h=input.deltaX-c.deltaX,f=input.deltaY-c.deltaY,d=J(l,h,f);n=d.x,r=d.y,t=_(d.x)>_(d.y)?d.x:d.y,o=Q(h,f),e.lastInterval=input}else t=c.velocity,n=c.velocityX,r=c.velocityY,o=c.direction;input.velocity=t,input.velocityX=n,input.velocityY=r,input.direction=o}(t,input);var d,m;var v=e.element;L(input.srcEvent.target,v)&&(v=input.srcEvent.target);input.target=v}(e,input),e.emit("hammer.input",input),e.recognize(input),e.session.prevInput=input}function Z(input){for(var e=[],i=0;i<input.pointers.length;)e[i]={clientX:v(input.pointers[i].clientX),clientY:v(input.pointers[i].clientY)},i++;return{timeStamp:y(),pointers:e,center:K(e),deltaX:input.deltaX,deltaY:input.deltaY}}function K(e){var t=e.length;if(1===t)return{x:v(e[0].clientX),y:v(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:v(n/t),y:v(r/t)}}function J(e,t,n){return{x:t/e||0,y:n/e||0}}function Q(e,t){return e===t?1:_(e)>=_(t)?e<0?2:4:t<0?8:16}function ee(e,t,n){n||(n=G);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function te(e,t,n){n||(n=G);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}X.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(H(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(H(this.element),this.evWin,this.domHandler)}};var ne={mousedown:1,mousemove:2,mouseup:4};function re(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,X.apply(this,arguments)}A(re,X,{handler:function(e){var t=ne[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var ie={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ae={2:"touch",3:"pen",4:"mouse",5:"kinect"},se="pointerdown",oe="pointermove pointerup pointercancel";function ce(){this.evEl=se,this.evWin=oe,X.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(se="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel"),A(ce,X,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=ie[r],c=ae[e.pointerType]||e.pointerType,l="touch"==c,h=D(t,e.pointerId,"pointerId");1&o&&(0===e.button||l)?h<0&&(t.push(e),h=t.length-1):12&o&&(n=!0),h<0||(t[h]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:c,srcEvent:e}),n&&t.splice(h,1))}});var le={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ue(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,X.apply(this,arguments)}function he(e,t){var n=U(e.touches),r=U(e.changedTouches);return 12&t&&(n=F(n.concat(r),"identifier",!0)),[n,r]}A(ue,X,{handler:function(e){var t=le[e.type];if(1===t&&(this.started=!0),this.started){var n=he.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var fe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function de(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},X.apply(this,arguments)}function pe(e,t){var n=U(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,c=U(e.changedTouches),l=[],h=this.target;if(o=n.filter((function(e){return L(e.target,h)})),1===t)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<c.length;)r[c[i].identifier]&&l.push(c[i]),12&t&&delete r[c[i].identifier],i++;return l.length?[F(o.concat(l),"identifier",!0),l]:void 0}A(de,X,{handler:function(e){var t=fe[e.type],n=pe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function me(){X.apply(this,arguments);var e=C(this.handler,this);this.touch=new de(this.manager,e),this.mouse=new re(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ge(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ve.call(this,t)):12&e&&ve.call(this,t)}function ve(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var i=r.indexOf(n);i>-1&&r.splice(i,1)}),2500)}}function _e(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),c=Math.abs(n-r.y);if(o<=25&&c<=25)return!0}return!1}A(me,X,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ge.call(this,t,n);else if(o&&_e.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ye=B(m.style,"touchAction"),be=void 0!==ye,we=function(){if(!be)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function xe(e,t){this.manager=e,this.set(t)}xe.prototype={set:function(e){"compute"==e&&(e=this.compute()),be&&this.manager.element.style&&we[e]&&(this.manager.element.style[ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return S(this.manager.recognizers,(function(t){R(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(I(e,"none"))return"none";var t=I(e,"pan-x"),n=I(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(I(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(input){var e=input.srcEvent,t=input.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=I(n,"none")&&!we.none,o=I(n,"pan-y")&&!we["pan-y"],c=I(n,"pan-x")&&!we["pan-x"];if(r){var l=1===input.pointers.length,h=input.distance<2,f=input.deltaTime<250;if(l&&h&&f)return}if(!c||!o)return r||o&&6&t||c&&24&t?this.preventSrc(e):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function Se(e){this.options=f({},this.defaults,e||{}),this.id=z++,this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Te(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Ee(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Me(e,t){var n=t.manager;return n?n.get(e):e}function Ae(){Se.apply(this,arguments)}function Ce(){Ae.apply(this,arguments),this.pX=null,this.pY=null}function Re(){Ae.apply(this,arguments)}function ke(){Se.apply(this,arguments),this._timer=null,this._input=null}function Oe(){Ae.apply(this,arguments)}function Pe(){Ae.apply(this,arguments)}function Le(){Se.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ie(element,e){return(e=e||{}).recognizers=k(e.recognizers,Ie.defaults.preset),new Ne(element,e)}Se.prototype={defaults:{},set:function(e){return f(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(x(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Me(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return x(e,"dropRecognizeWith",this)||(e=Me(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(x(e,"requireFailure",this))return this;var t=this.requireFail;return-1===D(t,e=Me(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(x(e,"dropRequireFailure",this))return this;e=Me(e,this);var t=D(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(input){var e=this,t=this.state;function n(t){e.manager.emit(t,input)}t<8&&n(e.options.event+Te(t)),n(e.options.event),input.additionalEvent&&n(input.additionalEvent),t>=8&&n(e.options.event+Te(t))},tryEmit:function(input){if(this.canEmit())return this.emit(input);this.state=32},canEmit:function(){for(var i=0;i<this.requireFail.length;){if(!(33&this.requireFail[i].state))return!1;i++}return!0},recognize:function(e){var t=f({},e);if(!R(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},A(Ae,Se,{defaults:{pointers:1},attrTest:function(input){var e=this.options.pointers;return 0===e||input.pointers.length===e},process:function(input){var e=this.state,t=input.eventType,n=6&e,r=this.attrTest(input);return n&&(8&t||!r)?16|e:n||r?4&t?8|e:2&e?4|e:2:32}}),A(Ce,Ae,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(input){var e=this.options,t=!0,n=input.distance,r=input.direction,o=input.deltaX,c=input.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,t=o!=this.pX,n=Math.abs(input.deltaX)):(r=0===c?1:c<0?8:16,t=c!=this.pY,n=Math.abs(input.deltaY))),input.direction=r,t&&n>e.threshold&&r&e.direction},attrTest:function(input){return Ae.prototype.attrTest.call(this,input)&&(2&this.state||!(2&this.state)&&this.directionTest(input))},emit:function(input){this.pX=input.deltaX,this.pY=input.deltaY;var e=Ee(input.direction);e&&(input.additionalEvent=this.options.event+e),this._super.emit.call(this,input)}}),A(Re,Ae,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.scale-1)>this.options.threshold||2&this.state)},emit:function(input){if(1!==input.scale){var e=input.scale<1?"in":"out";input.additionalEvent=this.options.event+e}this._super.emit.call(this,input)}}),A(ke,Se,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(input){var e=this.options,t=input.pointers.length===e.pointers,n=input.distance<e.threshold,r=input.deltaTime>e.time;if(this._input=input,!n||!t||12&input.eventType&&!r)this.reset();else if(1&input.eventType)this.reset(),this._timer=w((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&input.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(input){8===this.state&&(input&&4&input.eventType?this.manager.emit(this.options.event+"up",input):(this._input.timeStamp=y(),this.manager.emit(this.options.event,this._input)))}}),A(Oe,Ae,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.rotation)>this.options.threshold||2&this.state)}}),A(Pe,Ae,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ce.prototype.getTouchAction.call(this)},attrTest:function(input){var e,t=this.options.direction;return 30&t?e=input.overallVelocity:6&t?e=input.overallVelocityX:24&t&&(e=input.overallVelocityY),this._super.attrTest.call(this,input)&&t&input.offsetDirection&&input.distance>this.options.threshold&&input.maxPointers==this.options.pointers&&_(e)>this.options.velocity&&4&input.eventType},emit:function(input){var e=Ee(input.offsetDirection);e&&this.manager.emit(this.options.event+e,input),this.manager.emit(this.options.event,input)}}),A(Le,Se,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(input){var e=this.options,t=input.pointers.length===e.pointers,n=input.distance<e.threshold,r=input.deltaTime<e.time;if(this.reset(),1&input.eventType&&0===this.count)return this.failTimeout();if(n&&r&&t){if(4!=input.eventType)return this.failTimeout();var o=!this.pTime||input.timeStamp-this.pTime<e.interval,c=!this.pCenter||ee(this.pCenter,input.center)<e.posThreshold;if(this.pTime=input.timeStamp,this.pCenter=input.center,c&&o?this.count+=1:this.count=1,this._input=input,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=w((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=w((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ie.VERSION="2.0.7",Ie.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Oe,{enable:!1}],[Re,{enable:!1},["rotate"]],[Pe,{direction:6}],[Ce,{direction:6},["swipe"]],[Le],[Le,{event:"doubletap",taps:2},["tap"]],[ke]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ne(element,e){var t;this.options=f({},Ie.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||element,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=element,this.input=new((t=this).options.inputClass||(j?ce:W?de:V?me:re))(t,Y),this.touchAction=new xe(this,this.options.touchAction),De(this,!0),S(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function De(e,t){var n,element=e.element;element.style&&(S(e.options.cssProps,(function(r,o){n=B(element.style,o),t?(e.oldCssProps[n]=element.style[n],element.style[n]=r):element.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Ne.prototype={set:function(e){return f(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof Se)return e;for(var t=this.recognizers,i=0;i<t.length;i++)if(t[i].options.event==e)return t[i];return null},add:function(e){if(x(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(x(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=D(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return S(N(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return S(N(e),(function(e){t?n[e]&&n[e].splice(D(n[e],t),1):delete n[e]})),this}},emit:function(e,data){this.options.domEvents&&function(e,data){var t=c.createEvent("Event");t.initEvent(e,!0,!0),t.gesture=data,data.target.dispatchEvent(t)}(e,data);var t=this.handlers[e]&&this.handlers[e].slice();if(t&&t.length){data.type=e,data.preventDefault=function(){data.srcEvent.preventDefault()};for(var i=0;i<t.length;)t[i](data),i++}},destroy:function(){this.element&&De(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},f(Ie,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Ne,Input:X,TouchAction:xe,TouchInput:de,MouseInput:re,PointerEventInput:ce,TouchMouseInput:me,SingleTouchInput:ue,Recognizer:Se,AttrRecognizer:Ae,Tap:Le,Pan:Ce,Swipe:Pe,Pinch:Re,Rotate:Oe,Press:ke,on:O,off:P,each:S,merge:M,extend:E,assign:f,inherit:A,bindFn:C,prefixed:B}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Ie,void 0===(r=function(){return Ie}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){"use strict";n(14),n(59),n(26);var r=n(2),o=n(1),c=n(0),l=window.__NUXT__;function h(){if(!this._hydrated)return this.$fetch()}
2function f(){if((e=this).$vnode&&e.$vnode.elm&&e.$vnode.elm.dataset&&e.$vnode.elm.dataset.fetchKey){var e;this._hydrated=!0,this._fetchKey=+this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var t in data)o.a.set(this.$data,t,data[t])}}function d(){var e=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete e._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,t=null,n=Date.now(),e.prev=6,e.next=9,this.$options.fetch.call(this);case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(6),t=Object(c.p)(e.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){e.next=19;break}return e.next=19,new Promise((function(e){return setTimeout(e,r)}));case 19:this.$fetchState.error=t,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return e.stop()}}),e,this,[[6,11]])})))).apply(this,arguments)}t.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",h))}}},function(e,t,n){"use strict";n.r(t);n(35),n(34),n(28),n(46),n(37),n(18),n(50),n(51),n(36),n(52),n(198),n(29),n(59);var r=n(8),o=(n(26),n(2));function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var h={props:{value:{type:String,default:""},h1text:{type:String,default:""},event:{type:Object,default:function(){}}},fetch:function(){var e=this.$router.history.current.name;this.storeMenu=this.$getSiteInfo().store,this.viewType=this.$getVT(),this.deviceCss=[],e&&e.includes("blog")&&(this.pageType="blogs"),"mobile"===this.viewType?this.deviceJs=[{src:"/dfrobotshop/lib/dfmobilelib.js",ssr:!0}]:(this.deviceJs=[{src:"/dfrobotshop/lib/dfpclib.js",ssr:!0}],"index"===e&&this.deviceJs.push({src:"/libs/swiper/swiper-bundle.min.js",ssr:!0}),this.deviceCss.push({rel:"stylesheet",href:"/libs/swiper/swiper-bundle.min.css"})),this.user=this.$getUserinfo(),this.currency=this.$getCurrency(),this.currencyList=this.$getCurrencyList()},data:function(){return{jq:"",md5:{},tools:{},backName:"menu-back",pageType:"",viewType:"",deviceCss:[],deviceJs:[],shopApiUrl:"",showPL:!1,userMenu:!1,user:{},storeMenu:[],storeActive:1,login:!1,userType:"guest",cartNum:0,searchkey:"",currency:this.value,currencyList:{},showFastCategory:!1,categories:[],timer_fastSearch:null,fastSearch:{loadingProduct:!1,products:[],loadingBlog:!1,blogs:[],loadingWiki:!1,wikis:[]},navList:[{name:"Community",url:"https://community.dfrobot.com/",target:"_blank"},{name:"Forum",url:"https://www.dfrobot.com/forum/",target:"_blank"},{name:"Wiki",url:"https://wiki.dfrobot.com/",target:"_blank"},{name:"Blog",url:"/blog",target:"_blank"},{name:"Learn",url:"https://learn.dfrobot.com/",target:"_blank"}],items:[{title:"Click Me"},{title:"Click Me"},{title:"Click Me"},{title:"Click Me 2"}],menuStatus:"",mColor:"#000000",mtColor:"#ffffff",mNavShow:!1,enableWarehouse:!0}},computed:{storeH:function(){return 688}},watch:{},mounted:function(){this.md5=window.md5,this.jq=window.jQuery,this.tools=new this.fishtools.FISHTOOLS,this.init()},beforeDestroy:function(){clearTimeout(this.timer_fastSearch)},methods:{init:function(){var e=this;this.storeMenu.map((function(t,i){return i===e.storeActive?t.unfold=!0:t.unfold=!1,t})),this.setAffiliate(),this.setMarketingCode(),this.setValue()},setMarketingCode:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=sessionStorage.getItem("marketing"),!(r=e.$route.query.marketing)||r===n){t.next=7;break}return sessionStorage.setItem("marketing",r),t.next=6,e.$axios.post("hitmarketing",{marketing_code:r});case 6:t.sent;case 7:case"end":return t.stop()}}),t)})))()},toWishlist:function(){var e="/account/wishlist";"guest"===this.user.identity&&(e="/login"),window.location.href=e},setAffiliate:function(){var e=sessionStorage.getItem("tracking"),t=this.$route.query.tracking;t&&t!==e&&sessionStorage.setItem("tracking",t)},loginFun:function(){var e=this.shopApiUrl+"/login&backUrl="+window.location.href;window.location.href=e},searchFun:function(){if(this.searchkey){var e=this.searchkey.toLowerCase().replaceAll("%",""),t="/search-"+this.$encodeURIComponent_dfseo(e)+".html";window.location.href=t}},fastSearchFun:function(){var e=this;this.searchkey&&(null!==this.timer_fastSearch&&clearTimeout(this.timer_fastSearch),this.timer_fastSearch=setTimeout((function(){e.fastSearch.loadingProduct=!0,e.fastSearch.products=[],e.fastSearchProduct(e.searchkey,3).then((function(t){if(e.fastSearch.loadingProduct=!1,0!==t.code);else{var n=t.data.products||[];e.fastSearch.products=n.map((function(p){return{name:p.product.name,url:p.product.href}}))}})),e.fastSearch.loadingBlog=!0,e.fastSearch.blogs=[],e.fastSearchBlog(e.searchkey,3).then((function(t){if(e.fastSearch.loadingBlog=!1,0!==t.error_code);else{var n=t.data.map((function(e){return l(l({},e._source),{},{_id:e._source.blog_id||e._id})}))||[];e.fastSearch.blogs=n}})),e.fastSearch.loadingWiki=!0,e.fastSearch.wikis=[],e.fastSearchWiki(e.searchkey).then((function(t){if(e.fastSearch.loadingWiki=!1,0!==t.error_code);else{var n=t.data.map((function(e){return l(l({},e._source),{}
2,{id:e._id,content:e.highlight.content})}))||[];e.fastSearch.wikis=n}}))}),500))},fastSearchProduct:function(e,t){return this.$axios.post("searchProduct",this.$cleanObj({keyword:e,size:t,from:0,sort:JSON.stringify({sort_order_plus:"ASC",_score:"DESC",default_sort:"ASC"})}),{headers:{"Content-Type":"application/json;charset=UTF-8"}})},fastSearchBlog:function(e,t){return this.$axios.post("searchMaterialList",{platform:"enshop_blog",condition:JSON.stringify({material_id:89,status:1,show:1,keyword:e}),from:0,size:t,sort:JSON.stringify([{_score:{order:"desc"}}])})},fastSearchWiki:function(e){return this.$axios.post("findWiki",{platform:"df_en",keyword:e,from:0,size:3})},changeStore:function(e,t){e.link||(this.storeActive=t)},MChangeStore:function(e){e.unfold=!e.unfold,this.$forceUpdate()},toggleMenu:function(e){var t=this;this.menuStatus&&this.menuStatus===e?this.menuControl("close"):this.menuControl(e),"search"===e&&this.$nextTick((function(){t.$bus.$emit("inputfocus")}))},changeCurrency:function(code){this.$setCurrency(code),this.currency=this.$getCurrency(),this.setValue(),this.menuControl("close"),this.$bus.$emit("currencyChange")},menuControl:function(e){this.menuStatus="close"===e?"":e},showProductLine:function(){this.showPL=!0},hideProductLine:function(){this.showPL=!1},showUserMenu:function(){"guest"!==this.user.identity&&(this.userMenu=!0,this.menuControl("user"))},showSearchBox:function(){this.mobileSearch.show=!this.mobileSearch.show},showNav:function(){this.mobileNav.show=!this.mobileNav.show},showSubNav:function(e){e.showlist=!e.showlist},hideUserMenu:function(){this.userMenu=!1},mobileNavChange:function(){this.mNavShow=!this.mNavShow},closeFastSearch:function(){this.menuStatus=""},logout:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="//api.dfrobot.com//user/login/logout/?sign=e28b16cf67345c6b32185fb327032ed9&back_url=",r=window.location,o=r.origin,n=r.protocol+n+o,t.next=6,e.$store.dispatch("logout");case 6:window.location=n;case 7:case"end":return t.stop()}}),t)})))()},setValue:function(){this.$emit("input",this.currency)},backEvent:function(option){this.$emit(this.backName,option)}},head:function(){return{link:this.deviceCss,script:this.deviceJs}}},f=(n(333),n(5)),component=Object(f.a)(h,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"headFrame",attrs:{"data-theme":e.viewType}},[n("Point"),e._v(" "),n("MyPopup"),e._v(" "),n("PopBox"),e._v(" "),e.h1text?n("h1",[e._v(e._s(e.h1text))]):e._e(),e._v(" "),"pc"===e.viewType||"blogs"===e.viewType?[n("div",{staticClass:"head"},[n("div",{staticClass:"df-container"},[e._m(0),e._v(" "),n("div",{staticClass:"navigate"},["blogs"===e.pageType?n("a",{attrs:{href:"/"}},[e._v("Store")]):n("a",{class:{active:"store"===e.menuStatus},attrs:{href:"javascript:;"}},[n("button",{on:{mouseenter:function(t){return e.menuControl("store")}}},[e._v("Store"),n("i",{staticClass:"icon iconfont icon-downarrow2"})])]),e._v(" "),e._l(e.navList,(function(t,r){return n("a",{key:r,attrs:{href:t.url}},[e._v(e._s(t.name))])}))],2),e._v(" "),n("div",{staticClass:"options"},[n("div",{staticClass:"search"},[n("button",{class:{active:"search"===e.menuStatus},on:{click:function(t){return e.toggleMenu("search")}}},[n("i",{staticClass:"icon iconfont icon-search"})])]),e._v(" "),e.enableWarehouse&&e.user&&"distributor"!==e.user.identity?n("Warehouse"):n("div",{staticClass:"warehouse-width-placeholder",staticStyle:{width:"124px"}}),e._v(" "),e.currency?n("div",{staticClass:"currency",class:{active:"currency"===e.menuStatus}},[n("button",{on:{click:function(t){return e.toggleMenu("currency")}}},[e._v(e._s(e.currencyList[e.currency].name))]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:"currency"===e.menuStatus,expression:"menuStatus === 'currency'"}],staticClass:"dropdownMenu"},e._l(e.currencyList,(function(t,r){return n("li",{key:r,on:{click:function(n){return e.changeCurrency(t.code)}}},[n("a",{attrs:{href:"javascript:;"}},[e._v(e._s(t.name))])])}
2)),0)]):e._e(),e._v(" "),n("div",{staticClass:"wishlist"},[n("button",{on:{click:e.toWishlist}},[n("i",{staticClass:"icon iconfont icon-hart"})])]),e._v(" "),n("MiniCart",{model:{value:e.menuStatus,callback:function(t){e.menuStatus=t},expression:"menuStatus"}}),e._v(" "),"guest"===e.user.identity?n("div",{staticClass:"guest"},[e._m(1)]):n("div",{staticClass:"user",on:{mouseleave:function(t){return e.hideUserMenu()}}},[n("button",{staticClass:"headImg",on:{mouseenter:function(t){return e.showUserMenu()}}},[n("img",{attrs:{src:e.$getHead(e.user.portrait,32,32),alt:"userhead"}})]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.userMenu,expression:"userMenu"}],staticClass:"dropdownMenu"},[n("li",{staticClass:"name"},[n("b",[e._v(e._s(e.user.firstname)+"."+e._s(e.user.lastname))]),e._v(" "),"distributor"===e.user.identity?[n("span",[e._v("Distributor")])]:[n("span",[n("i",{staticClass:"icon iconfont icon-VIPicon"}),e._v("VIP"+e._s(e.user.level))])]],2),e._v(" "),e._m(2),e._v(" "),e._m(3),e._v(" "),"distributor"===e.user.identity?n("li",[n("a",{attrs:{href:"/quickorder"}},[e._v("Quick Order")])]):n("li",[n("a",{attrs:{href:"/account/vip"}},[e._v("VIP Benefits")])]),e._v(" "),n("li",[n("a",{attrs:{href:"javascript:;"},on:{click:e.logout}},[e._v("Logout")])])])])],1)]),e._v(" "),"store"===e.menuStatus?[n("div",{staticClass:"storeMenu animate__animated animate__fadeInDown",staticStyle:{"--animate-duration":"0.5s"},on:{mouseleave:function(t){return e.menuControl("close")}}},[n("div",{staticClass:"con",class:e.$vuetify.breakpoint.name,style:{height:e.storeH+"px"}},[n("div",{staticClass:"left"},[n("ul",e._l(e.storeMenu,(function(s,t){return n("li",{key:t,class:{active:t===e.storeActive}},[s.link?[n("a",{attrs:{href:s.link}},[n("span",[e._v(e._s(s.title))]),e._v(" "),n("i",{staticClass:"icon iconfont icon-fangxiangyi"})])]:[n("span",{on:{mouseenter:function(n){return e.changeStore(s,t)}}},[e._v(e._s(s.title))])]],2)})),0),e._v(" "),e._m(4)]),e._v(" "),n("div",{staticClass:"right"},e._l(e.storeMenu,(function(p,t){return n("div",{key:t,staticClass:"list",class:{active:t===e.storeActive}},[n("h3",[e._v(e._s(p.title))]),e._v(" "),n("span",e._l(p.submenu,(function(t,r){return n("a",{key:r,attrs:{href:t.link}},[n("b",[e._v(e._s(t.title))]),e._v(" "),n("span",[e._v(e._s(t.description))])])})),0)])})),0)])]),e._v(" "),n("div",{staticClass:"storeMenuMask",style:"height:"+this.$vuetify.breakpoint.height+"px"})]:e._e(),e._v(" "),"search"===e.menuStatus?n("div",{staticClass:"fastSearchFrame"},[n("FastSearch",{attrs:{conheight:e.storeH}})],1):e._e()],2)]:e._e(),e._v(" "),"mobile"===e.viewType?[n("div",{staticClass:"head",style:{"--color":e.mColor,"--textcolor":e.mtColor}},[n("b",[e._t("left",[n("button",{attrs:{"aria-label":"store"},on:{click:e.mobileNavChange}},[n("i",{staticClass:"icon iconfont icon-shoujibandaohang"})]),e._v(" "),n("button",{attrs:{"aria-label":"search"},on:{click:function(t){return e.toggleMenu("search")}}},[n("i",{staticClass:"icon iconfont icon-sousuo"})])]),e._v(" "),"search"===e.menuStatus?n("div",{staticClass:"fastSearchFrame"},[n("FastSearch",{on:{close:e.closeFastSearch}})],1):e._e()],2),e._v(" "),n("i",[e._t("middle",[e._m(5)])],2),e._v(" "),n("span",[n("MiniCart",{model:{value:e.menuStatus,callback:function(t){e.menuStatus=t},expression:"menuStatus"}}),e._v(" "),n("a",{attrs:{href:"/account/",title:"account button"}},["guest"!==e.user.identity?n("img",{attrs:{src:e.$getHead(e.user.portrait,32,32),alt:"userhead"}}):n("i",{staticClass:"icon iconfont icon-gerenzhongxin"})])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.mNavShow,expression:"mNavShow"}],staticClass:"nav"},[e.enableWarehouse&&e.user&&"distributor"!==e.user.identity?n("Warehouse"):e._e(),e._v(" "),n("span",{staticClass:"currency"},e._l(e.currencyList,(function(t,r){return n("button",{key:r,class:{active:e.currency===t.code},on:{mouseenter:function(n){return e.changeCurrency(t.code)}}},[e._v("\n            "+e._s(t.name)+"\n          ")])})),0),e._v(" "),n("dl",[n("dt",{on:{click:function(t){return e.toggleMenu("store")}}},[n("span",{class:{active:"store"===e.menuStatus}},[e._v("Store")]),e._v(" "),"store"!==e.menuStatus?n("i",{staticClass:"icon iconfont icon-fanhuidingdown"}):n("i",{staticClass:"icon iconfont icon-fanhuidingbu"})]),e._v(" "),"store"===e.menuStatus?n("dd",e._l(e.storeMenu,(function(s,t){return n("dl",{key:t},[n("dt",{class:{active:s.unfold},on:{click:function(t){return e.MChangeStore(s)}}},[s.link?[n("a",{attrs:{href:s.link}},[e._v(e._s(s.title))])]:[n("span",[e._v(e._s(s.title))]),e._v(" "),s.unfold?n("i",{staticClass:"icon iconfont icon-fanhuidingbu"}):n("i",{staticClass:"icon iconfont icon-fanhuidingdown"})]],2),e._v(" "),s.unfold?e._l(s.submenu,(function(t,r){return n("dd",{key:r},[n("a",{attrs:{href:t.link}},[e._v(e._s(t.title))])])}
2)):e._e()],2)})),0):e._e(),e._v(" "),e._m(6),e._v(" "),e._m(7),e._v(" "),e._m(8),e._v(" "),e._m(9),e._v(" "),e._m(10)])],1)])]:e._e()],2)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"/"}},[t("img",{attrs:{src:"/dfrobotshop/images/pc/logo.png",alt:"logo"}})])])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",{attrs:{href:"/login"}},[t("i",{staticClass:"icon iconfont icon-gerenzhongxin"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("a",{attrs:{href:"/account/"}},[this._v("My Account")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("li",[t("a",{attrs:{href:"/account/order"}},[this._v("Order History")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",{attrs:{href:"/all-products.html"}},[t("span",[this._v("All Products")]),this._v(" "),t("i",{staticClass:"icon iconfont icon-fangxiangyi"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",{attrs:{href:"/"}},[t("img",{attrs:{src:"/dfrobotshop/images/mobile/logo_w.png",alt:"logo"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("dt",[t("a",{attrs:{href:"https://community.dfrobot.com/",target:"_blank"}},[this._v("Community")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("dt",[t("a",{attrs:{href:"https://www.dfrobot.com/forum/",target:"_blank"}},[this._v("Forum")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("dt",[t("a",{attrs:{href:"https://wiki.dfrobot.com/",target:"_blank"}},[this._v("Wiki")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("dt",[t("a",{attrs:{href:"https://www.dfrobot.com/blog",target:"_blank"}},[this._v("Blog")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("dt",[t("a",{attrs:{href:"https://learn.dfrobot.com/",target:"_blank"}},[this._v("Learn")])])}],!1,null,"086a2449",null);t.default=component.exports;installComponents(component,{Point:n(381).default,MyPopup:n(382).default,PopBox:n(383).default,Warehouse:n(384).default,MiniCart:n(276).default,FastSearch:n(274).default})},function(e,t,n){"use strict";n.r(t);n(18);var r={props:{name:{type:String,default:function(){return""}}},data:function(){return{footnav:[{title:"Information",show:!1,sub:[{text:"About Us",url:"/about-us"},{text:"Warranty",url:"/warranty"},{text:"Terms & Conditions",url:"/privacy-policy"},{text:"Shipping",url:"/shipping"},{text:"Payment",url:"/payment"},{text:"FAQ",url:"/faq"},{text:"Media & Community Partner",url:"/mediapartner"}]},{title:"Customer Service",show:!1,sub:[{text:"DFRobot Distributors",url:"/distributor"},{text:"Contact Us",url:"/contact-us"},{text:"Site Map",url:"/site-map"}]},{title:"My Account",show:!1,sub:[{text:"Affiliates",url:"/affiliates"},{text:"Specials",url:"/special.html"}]}],like:[{icon:"icon iconfont icon-facebook1",url:"https://www.facebook.com/DFrobot",title:"facebook"},{icon:"icon iconfont icon-twitter",url:"https://twitter.com/dfrobotcn",title:"twitter"},{icon:"icon iconfont icon-discord",url:"https://discord.com/invite/wr4szfVUZ7",title:"discord"},{icon:"icon iconfont icon-linkedin",url:"https://www.linkedin.com/company/dfrobot",title:"linkedin"},{icon:"icon iconfont icon-YouTube",url:"https://www.youtube.com/user/DFROBOTCN",title:"youtube"},{icon:"icon iconfont icon-douyin-icon",url:"https://www.tiktok.com/@dfrobot_official",title:"tiktok"}],subscribeEmailError:!1}},computed:{viewType:function(){return this.$getVT()},size:function(){return this.$vuetify.breakpoint.name}},mounted:function(){this.initSubscribeEmailBtn()},methods:{mNavShow:function(e){this.footnav[e].show=!this.footnav[e].show},initSubscribeEmailBtn:function(){var e=this;document.getElementById("subscribeBtn").addEventListener("click",(function(t){e.verifyEmail(),e.subscribeEmailError&&t.preventDefault()}))},verifyEmail:function(){var e=document.querySelector("#subscribeEmail").value;this.subscribeEmailError=!this.$isValidEmail(e)}}},o=(n(349),n(5)),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{attrs:{"data-theme":e.viewType}},["pc"===e.viewType?[n("div",{staticClass:"df-container con",class:e.$vuetify.breakpoint.name},[n("div",{staticClass:"nav"},[n("div",{staticClass:"left"},e._l(e.footnav,(function(t,r){return n("span",{key:r},[n("b",[e._v(e._s(t.title))]),e._v(" "),e._l(t.sub,(function(t,r){return n("a",{key:r,attrs:{href:t.url}},[e._v(e._s(t.text))])}))],2)})),0),e._v(" "),n("div",{staticClass:"right"},[e._m(0),e._v(" "),n("div",{staticClass:"subscribe"},[n("b",[e._v("Sign up for exclusive offers!")]),e._v(" "),n("form",{staticClass:"validate",attrs:{id:"mc-embedded-subscribe-form",action:"//DFRobot.us16.list-manage.com/subscribe/post?u=e384b3074873a648e7d3237cc&id=316955a8ff",method:"post",name:"mc-embedded-subscribe-form",target:"_blank",novalidate:""}},[n("div",{staticClass:"footer_scroll",attrs:{id:"mc_embed_signup_scroll"}},[n("input",{staticClass:"email",class:{err:e.subscribeEmailError},attrs:{id:"subscribeEmail",type:"email",value:"",name:"EMAIL",placeholder:"Your email address",required:"true"},on:{change:e.verifyEmail}}),e._v(" "),e._m(1),e._v(" "),e._m(2)])])]),e._v(" "),e._m(3),e._v(" "),e._m(4)])]),e._v(" "),n("div",{staticClass:"copyright"},[e._v("Copyright © "+e._s((new Date).getFullYear())+" DFRobot. All rights reserved.")])])]:[e._l(e.footnav,(function(t,r){return n("dl",{key:r},[n("dt",{on:{click:function(t){return e.mNavShow(r)}}},[n("b",[e._v(e._s(t.title))]),e._v(" "),t.show?n("i",{staticClass:"icon iconfont icon-fanhuidingbu"}):n("i",{staticClass:"icon iconfont icon-fanhuidingdown"})]),e._v(" "),t.show?n("dd",[e._l(t.sub,(function(t,r){return["Affiliates"!==t.text?n("a",{key:r,attrs:{href:t.url}}
2,[e._v(e._s(t.text))]):e._e()]}))],2):[n("hr")]],2)})),e._v(" "),n("div",{staticClass:"subscribe"},[n("b",[e._v("Sign up for exclusive offers!")]),e._v(" "),n("form",{staticClass:"validate",attrs:{id:"mc-embedded-subscribe-form",action:"//DFRobot.us16.list-manage.com/subscribe/post?u=e384b3074873a648e7d3237cc&id=316955a8ff",method:"post",name:"mc-embedded-subscribe-form",target:"_blank",novalidate:""}},[n("div",{staticClass:"footer_scroll",attrs:{id:"mc_embed_signup_scroll"}},[n("input",{staticClass:"email",class:{err:e.subscribeEmailError},attrs:{id:"subscribeEmail",type:"email",value:"",name:"EMAIL",placeholder:"Your email address",required:""},on:{change:e.verifyEmail}}),e._v(" "),e._m(5),e._v(" "),e._m(6)])]),e._v(" "),n("hr")]),e._v(" "),n("div",{staticClass:"like"},[n("b",[e._v("Like us on")]),e._v(" "),n("span",e._l(e.like,(function(e,li){return n("a",{key:li,attrs:{href:e.url,title:e.title,target:"_blank"}},[n("i",{class:e.icon})])})),0)]),e._v(" "),e._m(7),e._v(" "),n("div",{staticClass:"copyright"},[e._v("Copyright © "+e._s((new Date).getFullYear())+" DFRobot. All rights reserved.")])]],2)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("a",{staticClass:"logo",attrs:{href:"/"}},[t("img",{attrs:{src:"/dfrobotshop/images/pc/logo.png",alt:"logo"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{position:"absolute",left:"-5000px"},attrs:{"aria-hidden":"true"}},[t("input",{attrs:{type:"text",name:"b_e384b3074873a648e7d3237cc_316955a8ff",tabindex:"-1",value:""}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("button",{attrs:{id:"subscribeBtn","aria-label":"subscribe",type:"submit",name:"subscribe"}},[t("i",{staticClass:"icon iconfont icon-fangxiangyi"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"like"},[t("b",[this._v("Like us on")]),this._v(" "),t("span",[t("a",{attrs:{href:"https://www.facebook.com/DFrobot",title:"dfrobot facebook",target:"_blank"}},[t("i",{staticClass:"icon iconfont icon-facebook1"})]),this._v(" "),t("a",{attrs:{href:"https://twitter.com/dfrobotcn",title:"dfrobot twitter",target:"_blank"}},[t("i",{staticClass:"icon iconfont icon-twitter"})]),this._v(" "),t("a",{attrs:{href:"https://discord.com/invite/wr4szfVUZ7",title:"dfrobot discord",target:"_blank"}},[t("i",{staticClass:"icon iconfont icon-discord"})]),this._v(" "),t("a",{attrs:{href:"https://www.linkedin.com/company/dfrobot",title:"dfrobot linkedin",target:"_blank"}},[t("i",{staticClass:"icon iconfont icon-linkedin"})]),this._v(" "),t("a",{attrs:{href:"https://www.youtube.com/user/DFROBOTCN",title:"dfrobot youtube",target:"_blank"}},[t("i",{staticClass:"icon iconfont icon-YouTube"})]),this._v(" "),t("a",{attrs:{href:"https://www.tiktok.com/@dfrobot_official",title:"dfrobot tiktok",target:"_blank"}},[t("i",{staticClass:"icon iconfont icon-douyin-icon"})])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",{staticClass:"google-prefer-badge",attrs:{href:"https://google.com/preferences/source?q=dfrobot.com",target:"_blank"}},[t("img",{attrs:{src:"/dfrobotshop/images/google_preferred_source_badge.webp",alt:"google_preferred_source_badge"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{position:"absolute",left:"-5000px"},attrs:{"aria-hidden":"true"}},[t("input",{attrs:{type:"text",name:"b_e384b3074873a648e7d3237cc_316955a8ff",tabindex:"-1",value:""}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("button",{attrs:{id:"subscribeBtn","aria-label":"subscribe",type:"submit",name:"subscribe"}},[t("i",{staticClass:"icon iconfont icon-fangxiangyi"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",{staticClass:"google-prefer-badge",attrs:{href:"https://google.com/preferences/source?q=dfrobot.com",target:"_blank"}},[t("img",{attrs:{src:"/dfrobotshop/images/google_preferred_source_badge.webp",alt:"google_preferred_source_badge"}})])}],!1,null,null,null);t.default=component.exports},function(e,t,n){"use strict";n.r(t);n(26);var r=n(2),o=n(31),c=n.n(o),l={props:{coupon:{type:Object,default:function(){return{history_id:0,code:"",coupon_id:1,coupon_sub_id:1,status:0,coupon_date_start:"1970-01-01T00:00:00Z",coupon_date_start_timestamp:0,coupon_date_end:"1970-01-01T00:00:00Z",coupon_date_end_timestamp:0,coupon_sub_save:0,coupon_sub_over:0,coupon_type:3,coupon_sub_discount_limit:500,coupon_name:"",coupon_description:"",coupon_text:"",claim_status:0}}},couponstyle:{type:String,default:""},showUse:{type:Boolean,default:!1},noDecimalPart:{type:Boolean,default:!1}},data:function(){return{showCouponDetail:!1}},computed:{viewType:function(){return this.$getVT()}},mounted:function(){this.$bus.$on("currencyChange",this.currencyChange)},methods:{showedPrice:function(e){return this.$exchangePrice(e,this.noDecimalPart)||""},currencyChange:function(){this.$forceUpdate()},getCoupon:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$axios.post("getCouponBy",{coupon_sub_id:[e]});case 2:0===(r=n.sent).code?t.coupon.claim_status=1:4===r.code?(o=window.location,c="/login?backurl="+o.href,window.location.href=c):t.$bus.$emit("tips",r.message);case 4:case"end":return n.stop()}}),n)})))()},useCoupon:function(){window.location.href="/save-".concat(this.coupon.coupon_id,".html")}
2,validBefore:function(e){return e=parseInt(e+"000"),c()(e).format("MMM DD, YYYY")},handleCouponDetail:function(){"pc"!==this.viewType&&(this.showCouponDetail=!0)}}},h=(n(335),n(5)),component=Object(h.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:"coupon-item type_"+e.coupon.coupon_type+" "+e.couponstyle+" "+(e.showUse?"show-use":""),attrs:{"data-theme":e.viewType}},[n("div",{staticClass:"coupon-info"},[n("div",{staticClass:"coupon-save"},[0===e.coupon.coupon_type?[n("p",[n("span",[n("b",[e._v(e._s(e.showedPrice(e.coupon.coupon_sub_save)))])])]),e._v(" "),e._m(0),e._v(" "),n("i",{staticClass:"iconfont icon-wuliu1"})]:e._e(),e._v(" "),1===e.coupon.coupon_type?[e._m(1),e._v(" "),e._m(2),e._v(" "),n("i",{staticClass:"iconfont icon-wuliu1"})]:e._e(),e._v(" "),2===e.coupon.coupon_type?[n("p",[n("span",[n("b",[e._v(e._s(e.showedPrice(e.coupon.coupon_sub_save)))])])]),e._v(" "),n("p",[e._v("\n          Purchase "),n("span",[e._v("of "+e._s(e.showedPrice(e.coupon.coupon_sub_over))+"+")])]),e._v(" "),n("i",{staticClass:"iconfont icon-youhui-icon"})]:e._e(),e._v(" "),3===e.coupon.coupon_type?[n("p",[n("span",[n("b",[e._v(e._s(e.coupon.coupon_sub_save)+"%")]),e._v(" OFF")])]),e._v(" "),n("p",[e._v("\n          Purchase "),n("span",[e._v("of "+e._s(e.showedPrice(e.coupon.coupon_sub_over))+"+")])]),e._v(" "),n("i",{staticClass:"iconfont icon-youhui-icon"})]:e._e()],2),e._v(" "),n("div",{staticClass:"coupon-valid"},[n("span",[e._v("Valid until "+e._s(e.validBefore(e.coupon.coupon_date_end_timestamp)))]),e._v(" "),e.coupon.coupon_text?n("div",{staticClass:"coupon-detail"},[n("span",{on:{click:e.handleCouponDetail}},[e._v("Details "),n("i",{staticClass:"iconfont icon-downarrow2"})]),e._v(" "),"pc"===e.viewType?[n("div",{domProps:{innerHTML:e._s(e.coupon.coupon_text)}})]:e._e(),e._v(" "),"mobile"===e.viewType?[n("PopBoxwSlot",{attrs:{show:e.showCouponDetail},on:{close:function(t){e.showCouponDetail=!1}}},[n("div",{domProps:{innerHTML:e._s(e.coupon.coupon_text)}})])]:e._e()],2):e._e()])]),e._v(" "),"used"===e.couponstyle?n("img",{staticClass:"coupon-stamp",attrs:{src:"/dfrobotshop/images/pc/coupon_stamp_used.png",alt:"used"}}):e._e(),e._v(" "),"expired"===e.couponstyle?n("img",{staticClass:"coupon-stamp",attrs:{src:"/dfrobotshop/images/pc/coupon_stamp_expired.png",alt:"expired"}}):e._e(),e._v(" "),e.showUse?n("div",{staticClass:"coupon-use"},[0===e.coupon.claim_status?n("span",{on:{click:function(t){return e.getCoupon(e.coupon.coupon_sub_id)}}},[e._v("Get"),n("br"),e._v("Coupon")]):e._e(),e._v(" "),1===e.coupon.claim_status?n("span",{staticClass:"use-now",on:{click:e.useCoupon}},[e._v("Use"),n("br"),e._v("Now")]):e._e()]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("span",[this._v("Shipping Coupon")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("span",[t("b",[this._v("Free")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("p",[t("span",[this._v("Shipping Coupon")])])}],!1,null,null,null);t.default=component.exports;installComponents(component,{PopBoxwSlot:n(99).default})},,,function(e,t,n){"use strict";n.r(t);n(37),n(18),n(122),n(160),n(21),n(22),n(58),n(198),n(26);var r=n(2),o={props:{conheight:{type:Number,default:284},searchpageKeyword:{type:String,default:""}},data:function(){return{jq:{},md5:{},tools:{},backName:"fastsearch-back",data:this.value,keyword:"",guessWord:"",associateWord:{},associateKey:"",associateRes:[],productRes:[],hotWord:[],showDropdown:!1,hideResult:!0}},computed:{viewType:function(){return this.$getVT()},size:function(){return this.$vuetify.breakpoint.name},pureKeyword:function(){return this.keyword.toLowerCase().replace(/[%|&]/g,"")}},watch:{keyword:{handler:function(e,t){e&&this.associate()},deep:!0,immediate:!0}},mounted:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.md5=window.md5,e.jq=window.jQuery,e.tools=new e.fishtools.FISHTOOLS,e.$bus.$on("inputfocus",e.inputfocus),!e.searchpageKeyword){t.next=12;break}return e.keyword=e.searchpageKeyword,t.next=8,e.initGuess();case 8:e.associate(),e.$emit("update-associate",e.associateRes),t.next=13;break;case 12:e.getHotWord();case 13:case"end":return t.stop()}}),t)})))()},methods:{inputfocus:function(){this.$refs.fsinput&&this.$refs.fsinput.focus()},getHotWord:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.hotWord.length<=0)){t.next=5;break}return t.next=3,e.$axios.get("getMaterialList",{plus:"?material_id=118&cache=1"});case 3:0===(n=t.sent).error_code&&n.data.list.map((function(t){"product"===t.content_data.type&&e.hotWord.push(t.content_data)}));case 5:case"end":return t.stop()}}),t)})))()},handleFocus:function(){this.showDropdown=!0,this.hideResult=!1,this.initGuess()},blur:function(){var e=this,t=0;this.tools.addKeepRunFun("delay",(function(){(t+=1)>5&&(e.showDropdown=!1,e.hideResult=!0,e.tools.removeKeepRunFun("delay"))}))},initGuess:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.guessWord){t.next=5;break}return t.next=3,e.$axios.get("getMaterialList",{plus:"?material_id=117&cache=1"});case 3:0===(n=t.sent).error_code&&(e.guessWord={},n.data.list.map((function(t){var n=t.content_data;if(n.enable&&n.key){var r=n.key.toLowerCase();e.guessWord[r]=r,n.lowkey.map((function(t){e.guessWord[t.name.toLowerCase()]=r})),e.associateWord[r]=[],n.upkey.map((function(u){u.link||(u.link="/search-"+u.name+".html"),u.name=e.setHeightWord(r,u.name),e.associateWord[r].push(u)}))}})));case 5:case"end":return t.stop()}}),t)})))()},checkToSearch:function(){var e=this,t=!0,n=0;this.keyword||(t=!1),t&&(this.tools.removeKeepRunFun("countDownToSearch"),this.tools.addKeepRunFun("countDownToSearch",(function(){(n+=1)>=5&&(e.tools.removeKeepRunFun("countDownToSearch"),e.searchProduct())}
2)))},searchProduct:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.pureKeyword,r={sort_order_plus:"ASC",_score:"DESC",default_sort:"ASC"},e.associateKey&&(n=e.associateKey),n){t.next=6;break}return e.productRes=[],t.abrupt("return",!1);case 6:return t.next=8,e.$axios.post("searchProduct",{keyword:n,size:10,sort:JSON.stringify(r)});case 8:0===(o=t.sent).code&&(e.productRes=[],o.data.products.map((function(t){var r={name:e.setHeightWord(n,t.product.product_name),link:e.$getProductUrl(t.product.product_type,t.product.product_id)};e.productRes.push(r)})));case 10:case"end":return t.stop()}}),t)})))()},associate:function(){var e=this.pureKeyword,t=this.guessWord[e];t?(this.associateKey=t,this.associateRes=this.associateWord[t]):(this.associateKey="",this.associateRes=[]),this.checkToSearch()},setHeightWord:function(e,t){var n,r=new RegExp(e,"g"),o=t.toLowerCase(),c=e.length,l=0;for(e=e.toLowerCase();null!==(n=r.exec(o));){var h=n.index+l,f=h+c+3;t=d(t,h,"<i>"),t=d(t,f,"</i>"),l+=7}return t;function d(e,t,n){return e.substring(0,t)+n+e.substring(t,e.length)}},toSearch:function(){if(this.pureKeyword){var e="/search-"+this.$encodeURIComponent_dfseo(this.pureKeyword)+".html";window.location.href=e}},setValue:function(){this.$emit("input",this.data)},backEvent:function(option){this.$emit(this.backName,option)}}},c=(n(348),n(5)),component=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fastSearch",class:e.size,attrs:{"data-theme":e.viewType}},["pc"===e.viewType?[n("div",{staticClass:"input"},[e._m(0),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"fsinput",attrs:{type:"text"},domProps:{value:e.keyword},on:{focus:e.handleFocus,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)},input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),n("button",{on:{click:e.toSearch}},[n("i",{staticClass:"icon iconfont icon-xiangyoujiantou"})])]),e._v(" "),e.hideResult?e._e():[n("div",{directives:[{name:"show",rawName:"v-show",value:e.associateRes.length>0||e.productRes.length>0,expression:"associateRes.length > 0 || productRes.length > 0"}],staticClass:"result",style:{height:e.searchpageKeyword?"auto":e.conheight-200+"px"}},[e._l(e.associateRes,(function(a,t){return[n("a",{key:"a_"+t,attrs:{href:a.link},domProps:{innerHTML:e._s(a.name)}})]})),e._v(" "),e._l(e.productRes,(function(p,t){return[n("a",{key:"p_"+t,attrs:{href:p.link},domProps:{innerHTML:e._s(p.name)}})]}))],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.associateRes.length>0||e.productRes.length>0)&&e.hotWord.length>0,expression:"!(associateRes.length > 0 || productRes.length > 0) && hotWord.length > 0"}],staticClass:"hotWord"},e._l(e.hotWord,(function(t,r){return n("a",{key:r,attrs:{href:t.link}},[e._v(e._s(t.name))])})),0)]]:[n("div",{staticClass:"box",class:{open:!e.hideResult}},[n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],ref:"fsinput",attrs:{type:"text"},domProps:{value:e.keyword},on:{focus:e.handleFocus,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toSearch(t)},blur:e.blur,input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),n("button",{on:{click:e.toSearch}},[n("i",{staticClass:"icon iconfont icon-sousuo"})])]),e._v(" "),e.hideResult?e._e():[n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.associateRes.length>0||e.productRes.length>0)&&e.hotWord.length>0,expression:"!(associateRes.length > 0 || productRes.length > 0) && hotWord.length > 0"}],staticClass:"hotWord"},e._l(e.hotWord,(function(t,r){return n("a",{key:r,attrs:{href:t.link}},[e._v(e._s(t.name))])})),0),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.associateRes.length>0||e.productRes.length>0,expression:"associateRes.length > 0 || productRes.length > 0"}],staticClass:"result"},[e._l(e.associateRes,(function(a,t){return[n("a",{key:"a_"+t,attrs:{href:a.link},domProps:{innerHTML:e._s(a.name)}})]})),e._v(" "),e._l(e.productRes,(function(p,t){return[n("a",{key:"p_"+t,attrs:{href:p.link},domProps:{innerHTML:e._s(p.name)}})]}))],2)]],2),e._v(" "),n("span",{on:{click:function(t){return e.$emit("close")}}})]],2)}
2),[function(){var e=this.$createElement,t=this._self._c||e;return t("label",[t("i",{staticClass:"icon iconfont icon-sousuo"})])}],!1,null,"df3ff4aa",null);t.default=component.exports},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(37),n(197),n(18),n(26);var r=n(2),o={props:{value:{type:String,default:""},numshow:{type:Boolean,default:!1},event:{type:Object,default:function(){}}},data:function(){return{jq:{},md5:{},tools:{},backName:"minicart-back",menuStatus:"",cartList:[],cartPage:!1,animate:!1,totalInfo:0}},computed:{viewType:function(){return this.$getVT()}},watch:{value:{handler:function(e,t){this.menuStatus=e},deep:!0,immediate:!0}},mounted:function(){this.md5=window.md5,this.jq=window.jQuery,this.tools=new this.fishtools.FISHTOOLS,this.init()},methods:{init:function(){var e=this.$route;this.$hasBusEvent("addtocart")||this.$bus.$on("addtocart",this.addToCartEvent),"cart"!==e.name||this.$hasBusEvent("updateCart")?"checkout"===e.name?(this.cartPage=!0,this.getList()):this.getList():(this.cartPage=!0,this.$bus.$on("updateCart",this.updateCart)),this.numshow&&this.$bus.$on("updateCart2",this.updateCart)},change:function(){!this.cartPage&&this.cartList.length>0&&("cart"===this.menuStatus?this.menuStatus="":this.menuStatus="cart",this.setValue())},toCart:function(){window.location.href="/cart"},updateCart:function(e){this.getList()},getList:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.animate=!1,t.next=3,e.$axios.get("cart");case 3:n=t.sent,e.cartList=[],0===n.code?(n.data.cart_list&&n.data.cart_list.map((function(t){var n={choose:!0,id:t.id,info:e.$formatProduct(t.product,t.price_info)};n.cart={id:t.id,quantity:t.quantity,price:n.info.price,min:n.info.min,max:n.info.max},t.package&&(n.info.package=[],t.package.map((function(p){var e={name:p.product.name,sku:p.product.model,img:p.product.image};n.info.package.push(e)}))),e.cartList.push(n)})),e.animate=!0):e.$bus.$emit("errorMsg",n.message),e.matchCartTotal();case 7:case"end":return t.stop()}}),t)})))()},matchCartTotal:function(){var e=this.$mathCartChooseTotal(this.cartList,!0);this.totalInfo={num:e.num,weight:e.weight,price:e.total}},remvoeCart:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={cart_ids:[e]},n.next=3,t.$axios.post("cartDelete",r);case 3:0===n.sent.code&&(t.delecteCart(e),t.getList());case 5:case"end":return n.stop()}}),n)})))()},delecteCart:function(e){var t=this;this.cartList.map((function(n,r){n.cart.id===e&&t.cartList.splice(r,1)}))},addToCartEvent:function(e,t){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o,data;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o={},data={},t||(t={}),t.type&&(data.type=t.type),t.quantity&&(data.quantity=t.quantity),t.options?data.options=t.options:t.package?data.package=t.package:t.bundle&&(data.bundle=t.bundle),"function"!=typeof t.fun&&(t.fun=function(){}),r.next=9,n.$addToCart(e,data);case 9:if(!0===(o=r.sent)){try{n.$bus.$emit("facebook-event",{code:"track",data:"AddToCart"})}catch(e){}t.fun(),n.getList(),n.$bus.$emit("updateCart2")}else n.$bus.$emit("tips",o);n.$bus.$emit("resetFreeshipping");case 12:case"end":return r.stop()}}),r)})))()},setValue:function(){this.$emit("input",this.menuStatus)},backEvent:function(option){this.$emit(this.backName,option)}}},c=(n(347),n(5)),component=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"miniCart",class:{active:"cart"===e.menuStatus},attrs:{"data-theme":e.viewType}},["pc"===e.viewType?[n("button",{on:{mouseenter:function(t){return e.change()},click:e.toCart}},[e.animate?n("span",{staticClass:"animate__animated animate__bounce"},[e._v(e._s(e.totalInfo.num))]):n("span",[e._v(e._s(e.totalInfo.num))]),e._v(" "),n("i",{staticClass:"icon iconfont icon-gouwuche1"})]),e._v(" "),"cart"===e.menuStatus?n("div",{staticClass:"list",on:{mouseleave:function(t){return e.change()}}},[n("ul",e._l(e.cartList,(function(t,r){return n("li",{key:r},[n("a",{attrs:{href:t.info.url}},[n("img",{attrs:{src:e.$getImg(t.info.thumb,60,60),alt:t.info.title,title:t.info.title}})]),e._v(" "),n("span",[n("a",{attrs:{href:t.info.url}},[e._v(e._s(t.info.title))]),e._v(" "),n("span",[n("b",[e._v(e._s(e.$exchangePrice(t.cart.price)))]),e._v(" "),n("span",[e._v("x"+e._s(t.cart.quantity))])]),e._v(" "),t.info.package?n("dt",[e._l(t.info.package,(function(p,r){return[r<8?n("dl",{key:r},[r<7||8===t.info.package.length?[n("img",{attrs:{src:e.$getImg(p.img,46,36),alt:"product image"+p.name}})]:[n("span",[e._v("...")])]],2):e._e()]}))],2):e._e()])])})),0),e._v(" "),n("div",{staticClass:"operate"},[n("span",[n("span",[e._v(e._s(e.totalInfo.num)+"  item(s)")]),e._v(" "),n("b",[e._v(e._s(e.$addCurrency(e.totalInfo.price)))])]),e._v(" "),n("a",{staticClass:"showCartBtn",attrs:{href:"/cart"}}
2,[e._v("Go to Shopping Cart")])])]):e._e()]:[n("a",{staticClass:"mobileMiniCart",attrs:{href:"/cart",title:"minicart"}},[e.animate&&e.totalInfo.num>0?n("span",{staticClass:"animate__animated animate__bounce",class:{num:e.numshow}},[e.numshow?[e._v("\n          "+e._s(e.totalInfo.num)+"\n        ")]:e._e()],2):e._e(),e._v(" "),n("i",{staticClass:"icon iconfont icon-gouwuche1"})])]],2)}),[],!1,null,"3705b340",null);t.default=component.exports},function(e,t,n){n(278),e.exports=n(279)},function(e,t,n){(function(e){e.installComponents=function(component,e){const t="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(t.components=component.exports.options.components),t.components=t.components||{},e)t.components[i]=t.components[i]||e[i];t.functional&&function(component,e){if(component.exports._functionalComponents)return;component.exports._functionalComponents=!0;const t=component.exports.render;component.exports.render=function(n,r){return t(n,Object.assign({},r,{_c:function(t,a,b){return r._c(e[t]||t,a,b)}}))}}(component,t.components)}}).call(this,n(54))},function(e,t,n){"use strict";n.r(t),function(e){n(35),n(68),n(77),n(24),n(34),n(28),n(67),n(46),n(37),n(61),n(124),n(18),n(36),n(14),n(21),n(22),n(52),n(60),n(86),n(29),n(62),n(59);var t=n(27),r=(n(26),n(2)),o=(n(229),n(304),n(316),n(318),n(1)),c=n(257),l=n(191),h=n(0),f=n(66),d=n(268),m=n(158);function v(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(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,c=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}o.a.__nuxt__fetch__mixin__||(o.a.mixin(d.a),o.a.__nuxt__fetch__mixin__=!0),o.a.component(m.a.name,m.a),o.a.component("NLink",m.a),e.fetch||(e.fetch=c.a);var y,w,x=[],S=window.__NUXT__||{};Object.assign(o.a.config,{silent:!0,performance:!1});var T=o.a.config.errorHandler||console.error;function E(e,t,n){for(var r=function(component){var e=function(component,e){if(!component||!component.options||!component.options[e])return{};var option=component.options[e];if("function"==typeof option){for(var t=arguments.length,n=new Array(t>2?t-2:0),r=2;r<t;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",t,n)||{};return"string"==typeof e?{name:e}:e},o=n?Object(h.g)(n):[],c=Math.max(e.length,o.length),l=[],f=function(i){var t=Object.assign({},r(e[i])),n=Object.assign({},r(o[i]));Object.keys(t).filter((function(e){return void 0!==t[e]&&!e.toLowerCase().includes("leave")})).forEach((function(e){n[e]=t[e]})),l.push(n)},i=0;i<c;i++)f(i);return l}function M(e,t,n){return A.apply(this,arguments)}function A(){return(A=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r){var o,c,l,f,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._routeChanged=Boolean(y.nuxt.err)||n.name!==t.name,this._paramChanged=!this._routeChanged&&n.path!==t.path,this._queryChanged=!this._paramChanged&&n.fullPath!==t.fullPath,this._diffQuery=this._queryChanged?Object(h.i)(t.query,n.query):[],e.prev=4,!this._queryChanged){e.next=10;break}return e.next=8,Object(h.r)(t,(function(e,t){return{Component:e,instance:t}}));case 8:o=e.sent,o.some((function(e){var r=e.Component,o=e.instance,c=r.options.watchQuery;return!0===c||(Array.isArray(c)?c.some((function(e){return d._diffQuery[e]})):"function"==typeof c&&c.apply(o,[t.query,n.query]))}));case 10:r(),e.next=24;break;case 13:if(e.prev=13,e.t0=e.catch(4),c=e.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,f=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(f)){e.next=21;break}return window.location.reload(!0),e.abrupt("return");case 21:this.error({statusCode:l,message:f}),this.$nuxt.$emit("routeChanged",t,n,c),r();case 24:case"end":return e.stop()}}
2),e,this,[[4,13]])})))).apply(this,arguments)}function C(e,t){return S.serverRendered&&t&&Object(h.b)(e,t),e._Ctor=e,e}function R(e){var path=Object(h.f)(e.options.base,e.options.mode);return Object(h.d)(e.match(path),function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r,o,c){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return l=C(Object(h.s)(t),S.data?S.data[c]:null),r.components[o]=l,e.abrupt("return",l);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o,c){return e.apply(this,arguments)}}())}function k(e,t,n){var r=this,o=[],c=!1;if(void 0!==n&&(o=[],(n=Object(h.s)(n)).options.middleware&&(o=o.concat(n.options.middleware)),e.forEach((function(e){e.options.middleware&&(o=o.concat(e.options.middleware))}))),o=o.map((function(e){return"function"==typeof e?e:("function"!=typeof l.a[e]&&(c=!0,r.error({statusCode:500,message:"Unknown middleware "+e})),l.a[e])})),!c)return Object(h.o)(o,t)}function O(e,t,n){return P.apply(this,arguments)}function P(){return(P=Object(r.a)(regeneratorRuntime.mark((function e(t,n,o){var c,l,d,m,_,w,S,T,M,A,C,R,O,P,L,I=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){e.next=2;break}return e.abrupt("return",o());case 2:return!1,t===n?(x=[],!0):(c=[],x=Object(h.g)(n,c).map((function(e,i){return Object(h.c)(n.matched[c[i]].path)(n.params)}))),l=!1,d=function(path){l||(l=!0,o(path))},e.next=8,Object(h.t)(y,{route:t,from:n,next:d.bind(this)});case 8:if(this._dateLastError=y.nuxt.dateErr,this._hadError=Boolean(y.nuxt.err),m=[],(_=Object(h.g)(t,m)).length){e.next=27;break}return e.next=15,k.call(this,_,y.context);case 15:if(!l){e.next=17;break}return e.abrupt("return");case 17:return w=(f.a.options||f.a).layout,e.next=20,this.loadLayout("function"==typeof w?w.call(f.a,y.context):w);case 20:return S=e.sent,e.next=23,k.call(this,_,y.context,S);case 23:if(!l){e.next=25;break}return e.abrupt("return");case 25:return y.context.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",o());case 27:return _.forEach((function(e){e._Ctor&&e._Ctor.options&&(e.options.asyncData=e._Ctor.options.asyncData,e.options.fetch=e._Ctor.options.fetch)})),this.setTransitions(E(_,t,n)),e.prev=29,e.next=32,k.call(this,_,y.context);case 32:if(!l){e.next=34;break}return e.abrupt("return");case 34:if(!y.context._errored){e.next=36;break}return e.abrupt("return",o());case 36:return"function"==typeof(T=_[0].options.layout)&&(T=T(y.context)),e.next=40,this.loadLayout(T);case 40:return T=e.sent,e.next=43,k.call(this,_,y.context,T);case 43:if(!l){e.next=45;break}return e.abrupt("return");case 45:if(!y.context._errored){e.next=47;break}return e.abrupt("return",o());case 47:M=!0,e.prev=48,A=v(_),e.prev=50,A.s();case 52:if((C=A.n()).done){e.next=63;break}if("function"==typeof(R=C.value).options.validate){e.next=56;break}return e.abrupt("continue",61);case 56:return e.next=58,R.options.validate(y.context);case 58:if(M=e.sent){e.next=61;break}return e.abrupt("break",63);case 61:e.next=52;break;case 63:e.next=68;break;case 65:e.prev=65,e.t0=e.catch(50),A.e(e.t0);case 68:return e.prev=68,A.f(),e.finish(68);case 71:e.next=77;break;case 73:return e.prev=73,e.t1=e.catch(48),this.error({statusCode:e.t1.statusCode||"500",message:e.t1.message}),e.abrupt("return",o());case 77:if(M){e.next=80;break}return this.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",o());case 80:return e.next=82,Promise.all(_.map(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(r,i){var o,c,l,f,d,v,_,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._path=Object(h.c)(t.matched[m[i]].path)(t.params),r._dataRefresh=!1,o=r._path!==x[i],I._routeChanged&&o?r._dataRefresh=!0:I._paramChanged&&o?(c=r.options.watchParam,r._dataRefresh=!1!==c):I._queryChanged&&(!0===(l=r.options.watchQuery)?r._dataRefresh=!0:Array.isArray(l)?r._dataRefresh=l.some((function(e){return I._diffQuery[e]})):"function"==typeof l&&(O||(O=Object(h.h)(t)),r._dataRefresh=l.apply(O[i],[t.query,n.query]))),I._hadError||!I._isMounted||r._dataRefresh){e.next=6;break}return e.abrupt("return");case 6:return f=[],d=r.options.asyncData&&"function"==typeof r.options.asyncData,v=Boolean(r.options.fetch)&&r.options.fetch.length,d&&((_=Object(h.q)(r.options.asyncData,y.context)).then((function(e){Object(h.b)(r,e)}
2)),f.push(_)),I.$loading.manual=!1===r.options.loading,v&&((p=r.options.fetch(y.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then((function(e){})),f.push(p)),e.abrupt("return",Promise.all(f));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 82:l||o(),e.next=99;break;case 85:if(e.prev=85,e.t2=e.catch(29),"ERR_REDIRECT"!==(P=e.t2||{}).message){e.next=90;break}return e.abrupt("return",this.$nuxt.$emit("routeChanged",t,n,P));case 90:return x=[],Object(h.k)(P),"function"==typeof(L=(f.a.options||f.a).layout)&&(L=L(y.context)),e.next=96,this.loadLayout(L);case 96:this.error(P),this.$nuxt.$emit("routeChanged",t,n,P),o();case 99:case"end":return e.stop()}}),e,this,[[29,85],[48,73],[50,65,68,71]])})))).apply(this,arguments)}function L(e,n){Object(h.d)(e,(function(e,n,r,c){return"object"!==Object(t.a)(e)||e.options||((e=o.a.extend(e))._Ctor=e,r.components[c]=e),e}))}function I(e){var t=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(t=!1);var n=t?(f.a.options||f.a).layout:e.matched[0].components.default.options.layout;"function"==typeof n&&(n=n(y.context)),this.setLayout(n)}function N(e){e._hadError&&e._dateLastError===e.$options.nuxt.dateErr&&e.error()}function D(e,t){var n=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var r=Object(h.h)(e),c=Object(h.g)(e);o.a.nextTick((function(){r.forEach((function(e,i){if(e&&!e._isDestroyed&&e.constructor._dataRefresh&&c[i]===e.constructor&&!0!==e.$vnode.data.keepAlive&&"function"==typeof e.constructor.options.data){var t=e.constructor.options.data.call(e);for(var n in t)o.a.set(e.$data,n,t[n]);window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}})),N(n)}))}}function U(e){window.onNuxtReadyCbs.forEach((function(t){"function"==typeof t&&t(e)})),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(e),w.afterEach((function(t,n){o.a.nextTick((function(){return e.$nuxt.$emit("routeChanged",t,n)}))}))}function F(){return(F=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y=t.app,w=t.router,t.store,n=new o.a(y),r=S.layout||"default",e.next=7,n.loadLayout(r);case 7:return n.setLayout(r),c=function(){n.$mount("#__nuxt"),w.afterEach(L),w.afterEach(I.bind(n)),w.afterEach(D.bind(n)),o.a.nextTick((function(){U(n)}))},e.next=11,Promise.all(R(w));case 11:if(l=e.sent,n.setTransitions=n.$options.nuxt.setTransitions.bind(n),l.length&&(n.setTransitions(E(l,w.currentRoute)),x=w.currentRoute.matched.map((function(e){return Object(h.c)(e.path)(w.currentRoute.params)}))),n.$loading={},S.error&&n.error(S.error),w.beforeEach(M.bind(n)),w.beforeEach(O.bind(n)),!S.serverRendered||!Object(h.n)(S.routePath,n.context.route.path)){e.next=20;break}return e.abrupt("return",c());case 20:return f=function(){L(w.currentRoute,w.currentRoute),I.call(n,w.currentRoute),N(n),c()},e.next=23,new Promise((function(e){return setTimeout(e,0)}));case 23:O.call(n,w.currentRoute,w.currentRoute,(function(path){if(path){var e=w.afterEach((function(t,n){e(),f()}));w.push(path,void 0,(function(e){e&&T(e)}))}else f()}));case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(f.b)(null,S.config).then((function(e){return F.apply(this,arguments)})).catch(T)}.call(this,n(54))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(46),n(21),n(52),n(86);t.default=function(e){e.isServer;var t=e.req,n=e.redirect,r=e.route,o=function(e){if(!e)return!1;var t=!e.match(/(iPad).*OS\s([\d_]+)/)&&e.match(/(iPhone\sOS)\s([\d_]+)/),n=e.match(/(Android)\s+([\d.]+)/);return t||n},c=t?t.headers["user-agent"]:navigator.userAgent||"";return o(c)&&!r.fullPath.includes("/mobile")?n(301,"/mobile"+r.fullPath):!o(c)&&r.fullPath.includes("/mobile")?n(301,r.fullPath.substring(7)):void 0}},,,,,,,function(e,t,n){},,,,,function(e,t,n){},function(e,t,n){"use strict";var r=n(145);n.n(r).a},function(e,t,n){"use strict";var r=n(146);n.n(r).a},function(e,t,n){"use strict";var r=n(147);n.n(r).a},function(e,t,n){"use strict";var r=n(148);n.n(r).a},function(e,t,n){"use strict";var r=n(149);n.n(r).a},function(e,t,n){"use strict";var r=n(150);n.n(r).a},function(e,t,n){"use strict";var r=n(151);n.n(r).a},function(e,t,n){"use strict";var r=n(152);n.n(r).a},function(e,t,n){},,function(e,t,n){},,,function(e,t,n){"use strict";var r=n(153);n.n(r).a},,function(e,t,n){"use strict";var r=n(154);n.n(r).a},function(e,t,n){"use strict";var r=n(155);n.n(r).a},function(e,t,n){"use strict";var r=n(156);n.n(r).a},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"state",(function(){return l})),n.d(t,"mutations",(function(){return h})),n.d(t,"actions",(function(){return f}));n(26);var r=n(2),o=n(76),c=n.n(o),l=function(){return{authUser:null,setting:null}},h={SET_USER:function(e,t){e.authUser=t},SET_SETTING:function(e,t){e.setting=t},SET_CURRENCYS:function(e,t){e.currencys=t},SET_VIEWTYPE:function(e,t){e.viewtype=t}},f={nuxtServerInit:function(e,t){var n=e.commit,r=t.req;r.session&&r.session.authUser&&n("SET_USER",r.session.authUser),r.session&&r.session.setting&&n("SET_SETTING",r.session.setting),r.session&&r.session.currencys&&n("SET_CURRENCYS",r.session.currencys),r.session&&r.session.currencys&&n("SET_VIEWTYPE",r.session.viewtype)},setsetting:function(e,data){(0,e.commit)("SET_SETTING",data)},setcurrencys:function(e,data){(0,e.commit)("SET_CURRENCYS",data)},setviewtype:function(e,data){(0,e.commit)("SET_VIEWTYPE",data)},login:function(e,data){return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,t.prev=1,t.next=4,c.a.post("/nuxtapi/login",{dataStr:JSON.stringify(data)});case 4:r=t.sent,n("SET_USER",r),t.next=13;break;case 8:if(t.prev=8,t.t0=t.catch(1),!t.t0.response||401!==t.t0.response.status){t.next=12;break}throw new Error("Bad credentials");case 12:throw t.t0;case 13:case"end":return t.stop()}}),t,null,[[1,8]])})))()},logout:function(e){return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,t.next=3,c.a.post("/nuxtapi/logout");case 3:n("SET_USER",null);case 4:case"end":return t.stop()}}),t)})))()}}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n.p+"img/loading.3a53e28.png"},function(e,t,n){e.exports=n.p+"img/error.6f939e7.png"},,,,,function(e,t,n){"use strict";n.r(t);n(24),n(98),n(46),n(18),n(52);var r=n(123),o=(n(26),n(2)),c={props:{event:{type:Object,default:function(){return{name:"",options:{}}}}},data:function(){return{jq:{},md5:{},tools:{},backName:"point-back",data:this.value,maxNum:30,platform:"dfrobotensh
2op",type:"visit",user_id:"guest"}},watch:{event:{handler:function(e,t){},deep:!0,immediate:!0}},mounted:function(){this.initGtagEvent(),this.initFacebookEvent(),this.$bus.$on("adddfpoint",this.DFPoint),this.$bus.$on("getPrevFootmark",this.getPrevFootmark);var e=window.location,t=localStorage.getItem("dffootmark"),n=this.$getUserinfo(),r={user_id:n.customer_id,url:e.href,time:(new Date).getTime()},o={};(t=t?JSON.parse(t):[]).length>0&&(o=t[t.length-1]),o.url!==r.url&&(t.length>=this.maxNum&&t.shift(),t.push(r),t=JSON.stringify(t),localStorage.setItem("dffootmark",t)),n.customer_id&&(this.user_id=n.customer_id)},methods:{getPrevFootmark:function(e){var t="/",n=localStorage.getItem("dffootmark");"function"!=typeof e&&(e=function(){}),(n=n?JSON.parse(n):[]).length>1&&(t=(t=n[n.length-2].url).includes("express-return")&&n.length>2?n[n.length-3].url:"/"),e(t)},DFPoint:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.params,"function"!=typeof(o=e.fun)&&(o=function(){}),r.platform||(r.platform=t.platform),r.type||(r.type=t.type),n.next=7,t.$axios.post("logAdd",r);case 7:n.sent,o();case 9:case"end":return n.stop()}}),n)})))()},setValue:function(){this.$emit("input",this.data)},backEvent:function(option){this.$emit(this.backName,option)},initGtagEvent:function(){if(window.gogleTag&&(this.$hasBusEvent("gtag-event")||this.$bus.$on("gtag-event",(function(e){window.gogleTag(e.code,e.data)})),"product-id"===this.$route.name)){var e={code:"view_item",data:{items:[{id:this.$route.params.id,google_business_vertical:"retail"}]}};this.$bus.$emit("gtag-event",e)}},initFacebookEvent:function(){if(window.facebookEvent){this.$hasBusEvent("facebook-event")||this.$bus.$on("facebook-event",(function(e){if("string"==typeof e.data)window.facebookEvent(e.code,e.data);else if(Array.isArray(e.data)){var t;(t=window).facebookEvent.apply(t,[e.code].concat(Object(r.a)(e.data)))}}));var e=this.$route.name;[/^category$/,/^blogs*?/,/^product-id$/].find((function(t){return t.test(e)}))&&this.$bus.$emit("facebook-event",{code:"track",data:"ViewContent"});["search"].includes(e)&&this.$bus.$emit("facebook-event",{code:"track",data:"Search"})}}}},l=n(5),component=Object(l.a)(c,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,"2ade635c",null);t.default=component.exports},function(e,t,n){"use strict";n.r(t);n(24),n(98),n(37),n(14),n(21),n(60),n(86),n(53),n(69),n(62);var r=n(27),o=(n(26),n(2)),c=n(31),l=n.n(c),h=n(126),f={data:function(){return{poped:!1,activityPriority:[],oneTimePriority:[],regularPriority:["vip"],showMTopBannerPopbox:!1,dataMTopBannerPopbox:{mobile:"",title:"",url:""},showUpgradePopbox:!1,dataUpgradePopbox:{level:0},show2026AnniversaryGetCouponPopbox:!1,coupons2026Anniversary:[]}},computed:{viewType:function(){return this.$getVT()},authUser:function(){return this.$getUserinfo()}},mounted:function(){"mobile"===this.viewType&&this.oneTimePriority.unshift("mobileTopBanner"),this.popboxQueueMachine()},methods:{dayjs:l.a,addPoint:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return"ENSHOP",o={platform:"ENSHOP",user_id:n.authUser&&n.authUser.customer_id,type:e,key:"".concat("ENSHOP","_").concat(e,"_").concat(t),url:window.location.href,User_email:n.authUser&&n.authUser.Email,Device_Type:n.viewType,User_Agent:navigator.userAgent},r.prev=2,r.next=5,n.$axios.get("logAddV2",{params:o});case 5:r.next=10;break;case 7:r.prev=7,r.t0=r.catch(2);case 10:case"end":return r.stop()}}),r,null,[[2,7]])})))()},popboxQueueMachine:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.oneTimePop();case 2:if("user"!==e.authUser.identity){t.next=7;break}return t.next=5,e.activityPop();case 5:return t.next=7,e.regularPop();case 7:case"end":return t.stop()}}),t)})))()},oneTimePop:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var i,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window){t.next=2;break}return t.abrupt("return");case 2:i=0;case 3:if(!(i<e.oneTimePriority.length)){t.next=24;break}if(!e.poped){t.next=6;break}return t.abrupt("break",24);case 6:if(n=e.oneTimePriority[i],"true"!==sessionStorage.getItem(n)){t.next=12;break}return t.abrupt("continue",21);case 12:t.t0=n,t.next="mobileTopBanner"===t.t0?15:18;break;case 15:return t.next=17,e.handleMTopbannerPopbox();case 17:return t.abrupt("break",19);case 18:return t.abrupt("return");case 19:sessionStorage.setItem(n,!0),e.poped=!0;case 21:i++,t.next=3;break;case 24:case"end":return t.stop()}}),t)})))()},activityPop:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,o,i,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.poped){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.$axios.get("getMaterialList",{plus:"?material_id=150&platform=enshop&status=1,2&limit=100&page=1cache=1"});case 5:if(0!==(n=t.sent).error_code){t.next=16;break}o=function(i){var t=e.activityPriority[i],r=n.data.list.find((function(p){return p.content_data.type===t}));if(r)switch(t){case"2026anniversary":return e.handle2026AnniversaryGetCouponPopbox(r.content_data),{v:void 0};default:return{v:void 0}}},i=0;case 9:if(!(i<e.activityPriority.length)){t.next=16;break}if(c=o(i),"object"!==Object(r.a)(c)){t.next=13;break}return t.abrupt("return",c.v);case 13:i++,t.next=9;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(2);case 21:case"end":return t.stop()}}),t,null,[[2,18]])})))()},regularPop:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,o,i,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.poped){t.next=2;break}return t.abrupt("return");
2case 2:return t.next=4,e.$axios.get("getMePopup");case 4:if(0!==(n=t.sent).code){t.next=15;break}o=function(i){var t=e.regularPriority[i],r=n.data.find((function(p){return p.type===t}));if(r.data)switch(t){case"vip":return e.handleUpgradePopbox(r.data),{v:void 0};default:return{v:void 0}}},i=0;case 8:if(!(i<e.regularPriority.length)){t.next=15;break}if(c=o(i),"object"!==Object(r.a)(c)){t.next=12;break}return t.abrupt("return",c.v);case 12:i++,t.next=8;break;case 15:case"end":return t.stop()}}),t)})))()},handleMTopbannerPopbox:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=function(data){var e=new Date(data.begin).getTime(),t=new Date(data.end).getTime(),n=new Date(data.begin2).getTime(),r=new Date(data.end2).getTime(),o=(new Date).getTime(),c={banner:!1,message:!1};return o>e&&t>o&&(c.message=data.message),o>n&&r>o&&(c.banner={bannerTitle:data.bannerTitle,bannerImg:data.bannerImg,bannerBg:data.bannerBg,bannerMobile:data.bannerMobile,bannerLink:data.bannerLink}),c},t.next=3,e.$getSiteInfo();case 3:if(n=t.sent,(r=o(n)).message&&(e.topMessage=r.message),r.banner)try{e.dataMTopBannerPopbox={title:r.banner.bannerTitle,url:r.banner.bannerLink,img:r.banner.bannerImg[0],bg:{backgroundImage:"url(".concat(r.banner.bannerBg[0],")")},mobile:r.banner.bannerMobile[0]},e.dataMTopBannerPopbox.mobile&&(e.showMTopBannerPopbox=!0)}catch(e){}case 7:case"end":return t.stop()}}),t)})))()},handleUpgradePopbox:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,o,c,i,h,f,d,m,v,_;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(Array.isArray(e)){n.next=2;break}return n.abrupt("return");case 2:for(n.prev=2,r=0,o=[],c=0,i=0;i<e.length;i++)h=e[i],f=parseInt(h.level.match(/VIP(\d+)/)[1]),r=Math.max(r,f),d=h.value,o.push(d);return n.next=9,t.$axios.post("getCouponBy",{coupon_id:o});case 9:if(0===(m=n.sent).code){for(t.dataUpgradePopbox.level=r,v=0;v<m.data.length;v++)_=m.data[v].coupon_sub_info,c=c?Math.min(Date.parse(_.cp_date_end),c):Date.parse(_.cp_date_end);t.dataUpgradePopbox.expire=l()(c).format("MMM DD, YYYY"),t.showUpgradePopbox=!0}n.next=16;break;case 13:n.prev=13,n.t0=n.catch(2);case 16:case"end":return n.stop()}}),n,null,[[2,13]])})))()},handle2026AnniversaryGetCouponPopbox:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,o,c,f,d,m,v,_,i,y,w;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:if(n.prev=2,r=Object(h.d)().utc(),o=l.a.tz(e.startTime,"Asia/Shanghai").utc(),c=l.a.tz(e.endTime,"Asia/Shanghai").utc(),f=r.diff(o,"second"),d=r.diff(c,"second"),!(f>0&&d<0)){n.next=25;break}return m=e.otherData.split(",").map((function(i){return i.trim()})),n.next=13,Promise.all(m.map((function(e){return t.$axios.get("getCoupon",{plus:"/".concat(e)})})));case 13:for(v=n.sent,_=[],i=0;i<v.length;i++)0===(y=v[i]).code&&(t.coupons2026Anniversary.push(y.data),(w=y.data.coupon_info[0])&&0===w.claim_status&&_.push(w.coupon_id));if(!(_.length>0)){n.next=25;break}return n.next=19,t.$axios.post("getCouponBy",{coupon_id:_});case 19:if(0!==n.sent.code){n.next=25;break}return t.show2026AnniversaryGetCouponPopbox=!0,n.next=24,t.addPoint("2026ANNIVERSARY","GETCOUPON");case 24:t.poped=!0;case 25:n.next=30;break;case 27:n.prev=27,n.t0=n.catch(2);case 30:case"end":return n.stop()}}),n,null,[[2,27]])})))()}}},d=n(5),component=Object(d.a)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-popup"},[e.show2026AnniversaryGetCouponPopbox?n("Anniversary2026Popbox",{attrs:{coupon:e.coupons2026Anniversary},on:{close:function(t){e.show2026AnniversaryGetCouponPopbox=!1}}}):e._e(),e._v(" "),n("UpgradePopBox",{attrs:{show:e.showUpgradePopbox,obj:e.dataUpgradePopbox},on:{close:function(t){e.showUpgradePopbox=!1}}}),e._v(" "),n("MTopBannerPopbox",{attrs:{show:e.showMTopBannerPopbox,obj:e.dataMTopBannerPopbox},on:{close:function(t){e.showMTopBannerPopbox=!1}}})],1)}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{Anniversary2026Popbox:n(385).default,UpgradePopBox:n(386).default,MTopBannerPopbox:n(387).default})},function(e,t,n){"use strict";n.r(t);n(59);var r={props:{value:{type:Object,default:function(){return{name:"",size:"",url:""}}}}
2,fetch:function(){this.viewType=this.$getVT()},data:function(){return{jq:{},md5:{},tools:{},backName:"popbox-back",data:this.value,tipsMsg:"",errorMsg:"",errorMsgBackFun:null,pop:{show:!1,icon:"",title:"",subtitle:"",desc:"",yesText:"",noText:"",yesFun:null,noFun:null,autoClose:0},viewType:""}},watch:{event:{handler:function(e,t){},deep:!0,immediate:!0}},mounted:function(){this.md5=window.md5,this.jq=window.jQuery,this.tools=new this.fishtools.FISHTOOLS,this.popDataInit(),this.$bus.$on("tips",this.tipEvent),this.$bus.$on("errorMsg",this.errormsgEvent),this.$bus.$on("popBox",this.popEvent)},methods:{tipEvent:function(e){this.showTips(e)},showTips:function(e){var t=this,n=0;this.tipsMsg=e,this.tools.addKeepRunFun("cleartips",(function(){(n+=1)>=30&&(t.tipsMsg="",t.tools.removeKeepRunFun("cleartips"))}))},errormsgEvent:function(e,t){this.errorMsg=e,t&&(this.errorMsgBackFun=t)},closeErrorMsg:function(){this.errorMsg="","function"==typeof this.errorMsgBackFun&&this.errorMsgBackFun()},popDataInit:function(){var e=this;this.pop={show:!1,icon:"",title:"",subtitle:"",desc:"",yesText:"OK",noText:"",yesFun:function(){e.close()},noFun:function(){e.close()},autoClose:0}},popEvent:function(e){var t=this;for(var n in e)void 0!==this.pop[n]&&(this.pop[n]=e[n]);this.pop.show=!0,this.pop.autoClose&&setTimeout((function(){t.close()}),this.pop.autoClose)},close:function(){this.popDataInit()},setValue:function(){this.$emit("input",this.data)},backEvent:function(option){this.$emit(this.backName,option)}}},o=(n(339),n(5)),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.tipsMsg?n("div",{staticClass:"tipsFrame",attrs:{"data-theme":e.viewType}},[n("div",{staticClass:"con",domProps:{innerHTML:e._s(e.tipsMsg)}})]):e._e(),e._v(" "),e.errorMsg?n("div",{staticClass:"errorMsg",attrs:{"data-theme":e.viewType}},[n("div",{staticClass:"box"},[n("div",{staticClass:"close",on:{click:e.closeErrorMsg}},[n("i",{staticClass:"iconfont icon-add"})]),e._v(" "),n("div",{staticClass:"text"},[n("i",{staticClass:"icon iconfont icon-shibai"}),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.errorMsg)}})])])]):e._e(),e._v(" "),e.pop.show?n("div",{staticClass:"popBox",attrs:{"data-theme":e.viewType}},[n("div",{staticClass:"box"},[n("button",{on:{click:e.close}},[n("i",{staticClass:"iconfont icon-icon-test"})]),e._v(" "),e.pop.icon?n("i",{class:"iconfont "+e.pop.icon}):e._e(),e._v(" "),n("h3",[e._v(e._s(e.pop.title))]),e._v(" "),n("h4",[e._v(e._s(e.pop.subtitle))]),e._v(" "),n("div",{staticClass:"scroll-window"},[n("span",{staticClass:"heightColor",domProps:{innerHTML:e._s(e.pop.desc)}}),e._v(" "),e._t("default")],2),e._v(" "),n("b",{staticClass:"btnBox"},[e.pop.noText?n("button",{staticClass:"noBtn",on:{click:function(t){"function"==typeof e.pop.noFun&&e.pop.noFun()}}},[e._v(e._s(e.pop.noText))]):e._e(),e._v(" "),e.pop.yesText?n("button",{on:{click:function(t){"function"==typeof e.pop.yesFun&&e.pop.yesFun()}}},[e._v(e._s(e.pop.yesText))]):e._e()])])]):e._e()])}),[],!1,null,"5ba26626",null);t.default=component.exports},function(e,t,n){"use strict";n.r(t);var r=n(394),o=(n(98),n(28),n(29),n(26),n(2)),c=n(32),l={data:function(){return{warehouseList:c.c,warehouseDropdownshow:!1,warehousePopshow:!1,pending:!1}},computed:{viewType:function(){return this.$getVT()},warehouse:function(){return this.warehouseList.find((function(e){return e.select}))}},mounted:function(){var e=localStorage.getItem("warehouse");e&&"undefined"!==e||(this.warehousePopshow=!0,"mobile"===this.viewType&&this.$nextTick((function(){var e=document.querySelector(".warehouse .pop-box-with-slot");e&&document.querySelector(".headFrame").appendChild(e)}))),this.warehouseList.forEach((function(t){t.id===e?t.select=!0:t.select=!1}))},methods:{setWarehouse:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(localStorage.setItem("warehouse",e),r=t.$getUserinfo(),t.warehouseList.forEach((function(t){t.id===e?t.select=!0:t.select=!1})),t.warehouseDropdownshow=!1,t.warehousePopshow=!1,r.warehouse===e){n.next=13;break}return t.pending=!0,n.next=9,t.$axios.post("nuxtapiUpdateUser",{warehouse:e});case 9:if(void 0!==r.warehouse||e!==c.a){n.next=12;break}return t.pending=!1,n.abrupt("return");case 12:window.location.reload();case 13:case"end":return n.stop()}}),n)})))()}}},h=(n(345),n(5)),component=Object(h.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"warehouse",attrs:{"data-theme":e.viewType}},["pc"===e.viewType?[e.warehouse?n("div",{staticClass:"warehouse-dropdown",class:{active:e.warehouseDropdownshow}},[e.pending?n("button",{attrs:{disabled:""}},[n(r.a,{attrs:{indeterminate:"",size:"20",width:"2",color:"grey lighten-5"}})],1):n("button",{on:{click:function(t){e.warehouseDropdownshow=!e.warehouseDropdownshow}}},[n("img",{attrs:{src:e.warehouse.iconW,alt:"icon"}}),e._v(e._s(e.warehouse.text))]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.warehouseDropdownshow,expression:"warehouseDropdownshow"}]},e._l(e.warehouseList,(function(t,r){return n("button",{key:r,class:{active:e.warehouse.id===t.id},on:{click:function(n){return e.setWarehouse(t.id)}}},[n("img",{attrs:{src:t.icon,alt:"icon"}}),e._v(e._s(t.text))])}
2)),0)]):e._e()]:e._e(),e._v(" "),"mobile"===e.viewType?[e.warehouse?n("div",{staticClass:"warehouse-dropdown",class:{active:e.warehouseDropdownshow}},[n("ul",[e._l(e.warehouseList,(function(t,r){return n("button",{key:r,class:{active:e.warehouse.id===t.id},on:{click:function(n){return e.setWarehouse(t.id)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:e.warehouse.id===t.id,expression:"warehouse.id === w.id"}],attrs:{src:t.iconW,alt:"icon"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.warehouse.id!==t.id,expression:"warehouse.id !== w.id"}],attrs:{src:t.icon,alt:"icon"}}),e._v(" "+e._s(t.text)+"\n        ")])})),e._v(" "),e.pending?n(r.a,{attrs:{indeterminate:"",size:"12",width:"2",color:"#ff5a00"}}):e._e()],2)]):e._e()]:e._e(),e._v(" "),n("PopBoxwSlot",{attrs:{show:e.warehousePopshow},on:{close:function(t){e.warehousePopshow=!1}}},[e._t("default",[n("div",{staticClass:"pop",attrs:{id:"warehousePop"}},[n("h4",[e._v("Please select the site you would like to browse:")]),e._v(" "),n("div",{staticClass:"choose"},e._l(e.warehouseList,(function(t){return n("div",{key:t.id},[n("button",{on:{click:function(n){return e.setWarehouse(t.id)}}},[e._v(e._s(t.desc))]),e._v(" "),n("span",[e._v(e._s(t.tip))])])})),0)])])],2)],2)}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{PopBoxwSlot:n(99).default})},function(e,t,n){"use strict";n.r(t);n(24),n(26);var r=n(2),o={props:{coupon:{type:Array,default:function(){return[]}}},computed:{viewType:function(){return this.$getVT()},authUser:function(){return this.$getUserinfo()},subCoupons:function(){return this.coupon[0]&&this.coupon[0].coupon_info?this.coupon[0].coupon_info:[]},mainCouponId:function(){return this.coupon[0]&&this.coupon[0].coupon_info&&this.coupon[0].coupon_info.length>0?this.coupon[0].coupon_info[0].coupon_id:null}},mounted:function(){this.addPoint("OPEN")},methods:{handleClose:function(){this.$emit("close"),this.addPoint("CANCEL")},handleUseCoupon:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.addPoint("CTA");case 2:window.location.href="/save-".concat(e.mainCouponId,".html");case 3:case"end":return t.stop()}}),t)})))()},addPoint:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"ENSHOP",r="2026ANNIVERSARY",o={platform:"ENSHOP",user_id:t.authUser&&t.authUser.customer_id,type:r,key:"".concat("ENSHOP","_").concat(r,"_").concat(e),url:window.location.href,User_email:t.authUser&&t.authUser.Email,Device_Type:t.viewType,User_Agent:navigator.userAgent},n.prev=3,n.next=6,t.$axios.get("logAddV2",{params:o});case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(3);case 11:case"end":return n.stop()}}),n,null,[[3,8]])})))()}}},c=(n(334),n(5)),component=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PopBoxwSlot",{attrs:{show:!0},on:{close:e.handleClose}},[n("div",{staticClass:"anniversary-2026-popbox"},[n("div",{staticClass:"img-box pc"},[n("img",{attrs:{src:"/temporary/16th_anniversary/2026anniversary_pc.webp",alt:"banner"}})]),e._v(" "),n("div",{staticClass:"img-box mobile"},[n("img",{attrs:{src:"/temporary/16th_anniversary/2026anniversary_m.webp",alt:"banner"}})]),e._v(" "),n("div",{staticClass:"coupon-list"},e._l(e.subCoupons,(function(t){return n("CouponItem",{key:t.coupon_sub_id,attrs:{"data-theme":e.viewType,coupon:t,"show-use":!1,"no-decimal-part":"mobile"===e.viewType}})})),1),e._v(" "),n("p",[e._v("Valid on selected open-source hardware products (2026.7.16 ~ 7.23)")]),e._v(" "),n("a",{attrs:{href:"javascript:;"},on:{click:e.handleUseCoupon}},[e._v("Use Now")])])])}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{CouponItem:n(271).default,PopBoxwSlot:n(99).default})},function(e,t,n){"use strict";n.r(t);var r={props:{show:{type:Boolean,default:!1},obj:{type:Object,default:function(){return{}}}}},o=(n(337),n(5)),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PopBoxwSlot",{attrs:{show:e.show},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"upgrade-popbox"},[n("p",{staticClass:"popbox-title"},[e._v("Congratulations")]),e._v(" "),n("p",{staticClass:"p1"},[e._v("You have upgraded to VIP"+e._s(e.obj.level)+"!")]),e._v(" "),n("div",{staticClass:"img-box"},[n("img",{attrs:{src:"/dfrobotshop/images/pc/popbox-bg-upgrade.png",alt:"congratulations"}})]),e._v(" "),n("p",{staticClass:"p2"},[e._v("Upgrade Gift - "),n("span",[e._v("Free Shipping Coupon")]),e._v(" has been credited to your account.")]),e._v(" "),n("p",{staticClass:"p3"},[e._v("Expiry Date: "+e._s(e.obj.expire))]),e._v(" "),n("a",{attrs:{href:"/account/coupon"}},[e._v("View My Coupons")])])])}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{PopBoxwSlot:n(99).default})},function(e,t,n){"use strict";n.r(t);var r={props:{show:{type:Boolean,default:!1},obj:{type:Object,default:function(){return{}}}}},o=(n(338),n(5)),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PopBoxwSlot",{attrs:{show:e.show},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"m-topbanner-popbox"},[n("a",{staticClass:"img-box",attrs:{href:e.obj.url,target:"_blank"}},[n("img",{attrs:{src:e.obj.mobile,alt:e.obj.title}})])])])}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{PopBoxwSlot:n(99).default})},,,,,,,function(e,t,n){"use strict";n(24),n(122),n(340);var r=n(199),o=n(195),c=n(9);t.a=o.a.extend({name:"v-progress-circular",directives:{intersect:r.a},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:function(){return{radius:20,isVisible:!0}},computed:{calculatedSize:function(){return Number(this.size)+(this.button?8:0)},circumference:function(){return 2*Math.PI*this.radius},classes:function(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue:function(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray:function(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset:function(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth:function(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles:function(){return{height:Object(c.d)(this.calculatedSize),width:Object(c.d)(this.calculatedSize)}},svgStyles:function(){return{transform:"rotate(".concat(Number(this.rotate),"deg)")}}
2,viewBoxSize:function(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle:function(e,t){return this.$createElement("circle",{class:"v-progress-circular__".concat(e),attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":t}})},genSvg:function(){var e=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"".concat(this.viewBoxSize," ").concat(this.viewBoxSize," ").concat(2*this.viewBoxSize," ").concat(2*this.viewBoxSize)}},e)},genInfo:function(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},Object(c.l)(this))},onObserve:function(e,t,n){this.isVisible=n}},render:function(e){return e("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return U})),n.d(t,"a",(function(){return F}));var r={};n.r(r),n.d(r,"linear",(function(){return m})),n.d(r,"easeInQuad",(function(){return v})),n.d(r,"easeOutQuad",(function(){return _})),n.d(r,"easeInOutQuad",(function(){return y})),n.d(r,"easeInCubic",(function(){return w})),n.d(r,"easeOutCubic",(function(){return x})),n.d(r,"easeInOutCubic",(function(){return S})),n.d(r,"easeInQuart",(function(){return T})),n.d(r,"easeOutQuart",(function(){return E})),n.d(r,"easeInOutQuart",(function(){return M})),n.d(r,"easeInQuint",(function(){return A})),n.d(r,"easeOutQuint",(function(){return C})),n.d(r,"easeInOutQuint",(function(){return R}));n(35),n(34),n(28),n(50),n(51),n(36),n(14),n(84),n(22),n(29);var o=n(25),c=n(42),l=n(33),h=n(19),f=n(8),d=n(41),m=function(e){return e},v=function(e){return Math.pow(e,2)},_=function(e){return e*(2-e)},y=function(e){return e<.5?2*Math.pow(e,2):(4-2*e)*e-1},w=function(e){return Math.pow(e,3)},x=function(e){return Math.pow(--e,3)+1},S=function(e){return e<.5?4*Math.pow(e,3):(e-1)*(2*e-2)*(2*e-2)+1},T=function(e){return Math.pow(e,4)},E=function(e){return 1-Math.pow(--e,4)},M=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},A=function(e){return Math.pow(e,5)},C=function(e){return 1+Math.pow(--e,5)},R=function(e){return e<.5?16*Math.pow(e,5):1+16*Math.pow(--e,5)};n(18);function k(e){if("number"==typeof e)return e;var t=L(e);if(!t)throw"string"==typeof e?new Error('Target element "'.concat(e,'" not found.')):new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received ".concat(P(e)," instead."));for(var n=0;t;)n+=t.offsetTop,t=t.offsetParent;return n}function O(e){var t=L(e);if(t)return t;throw"string"==typeof e?new Error('Container element "'.concat(e,'" not found.')):new TypeError("Container must be a Selector/HTMLElement/VueComponent, received ".concat(P(e)," instead."))}function P(e){return null==e?e:e.constructor.name}function L(e){return"string"==typeof e?document.querySelector(e):e&&e._isVue?e.$el:e instanceof HTMLElement?e:null}function I(e){var t=function(){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}}();return function(){var n,r=Object(h.a)(e);if(t){var o=Object(h.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}function N(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function D(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?N(Object(source),!0).forEach((function(t){Object(f.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):N(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=D({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},t),o=O(n.container);if(n.appOffset&&U.framework.application){var c=o.classList.contains("v-navigation-drawer"),l=o.classList.contains("v-navigation-drawer--clipped"),h=U.framework.application,f=h.bar,d=h.top;n.offset+=f,c&&!l||(n.offset+=d)}var m,v=performance.now();m="number"==typeof e?k(e)-n.offset:k(e)-k(o)-n.offset;var _=o.scrollTop;if(m===_)return Promise.resolve(m);var y="function"==typeof n.easing?n.easing:r[n.easing];if(!y)throw new TypeError('Easing function "'.concat(n.easing,'" not found.'));return new Promise((function(e){return requestAnimationFrame((function t(r){var c=r-v,progress=Math.abs(n.duration?Math.min(c/n.duration,1):1);o.scrollTop=Math.floor(_+(m-_)*y(progress));var l=(o===document.body?document.documentElement.clientHeight:o.clientHeight)+o.scrollTop>=o.scrollHeight;if(1===progress||m>o.scrollTop&&l)return e(m);requestAnimationFrame(t)}))}))}U.framework={},U.init=function(){};var F=function(e){Object(c.a)(n,e);var t=I(n);function n(){var e;return Object(o.a)(this,n),e=t.call(this),Object(l.a)(e,U)}return n}(d.a);F.property="goTo"},,,,,,,function(e,t,n){"use strict";n(326);var r=n(1).a.extend({name:"ssr-bootable",data:function(){return{isBooted:!1}},mounted:function(){var e=this;window.requestAnimationFrame((function(){e.$el.setAttribute("data-booted","true"),e.isBooted=!0}))}}),o=n(9);t.a=r.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles:function(){var e=this.$vuetify.application,t=e.bar,n=e.top,r=e.right,footer=e.footer,o=e.insetFooter,c=e.bottom,l=e.left;return{paddingTop:"".concat(n+t,"px"),paddingRight:"".concat(r,"px"),paddingBottom:"".concat(footer+o+c,"px"),paddingLeft:"".concat(l,"px")}}},render:function(e){var data={staticClass:"v-main",style:this.styles,ref:"main"};return e(this.tag,data,[e("div",{staticClass:"v-main__wrap"},Object(o.l)(this))])}})},function(e,t,n){"use strict";n(24),n(34),n(36),n(70),n(331),n(275),n(85),n(69);var r=n(1);var o,c=n(196);t.a=(o="container",r.a.extend({name:"v-".concat(o),functional:!0,props:{id:String,tag:{type:String,default:"div"}},render:function(e,t){var n=t.props,data=t.data,r=t.children;data.staticClass="".concat(o," ").concat(data.staticClass||"").trim();var c=data.attrs;if(c){data.attrs={};var l=Object.keys(c).filter((function(e){if("slot"===e)return!1;var t=c[e];return e.startsWith("data-")?(data.attrs[e]=t,!1):t||"string"==typeof t}));l.length&&(data.staticClass+=" ".concat(l.join(" ")))}return n.id&&(data.domProps=data.domProps||{},data.domProps.id=n.id),e(n.tag,data,r)}})).extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render:function(e,t){var n,r=t.props,data=t.data,o=t.children,l=data.attrs;return l&&(data.attrs={},n=Object.keys(l).filter((function(e){if("slot"===e)return!1;var t=l[e];return e.startsWith("data-")?(data.attrs[e]=t,!1):t||"string"==typeof t}))),r.id&&(data.domProps=data.domProps||{},data.domProps.id=r.id),e(r.tag,Object(c.a)(data,{staticClass:"container",class:Array({"container--fluid":r.fluid}).concat(n||[])}),o)}})}],[[277,64,0]]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.