rk-web-core 0.15.2 → 0.15.5

Sign up to get free protection for your applications and to get access to all the features.
package/rk-web-core.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rk-web-core",[],e):"object"==typeof exports?exports["rk-web-core"]=e():t["rk-web-core"]=e()}(window,(function(){return function(t){function e(e){for(var n,r,i=e[0],o=e[1],s=0,a=[];s<i.length;s++)r=i[s],Object.prototype.hasOwnProperty.call(L,r)&&L[r]&&a.push(L[r][0]),L[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(D&&D(e);a.length;)a.shift()()}var n=window.webpackHotUpdaterk_web_core;window.webpackHotUpdaterk_web_core=function(t,e){!function(t,e){if(!w[t]||!x[t])return;for(var n in x[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n]);0==--y&&0===_&&C()}(t,e),n&&n(t,e)};var r,i=!0,o="aefc7d638c144d755102",s={},a=[],c=[];function l(t){var e=P[t];if(!e)return R;var n=function(n){return e.hot.active?(P[n]?-1===P[n].parents.indexOf(t)&&P[n].parents.push(t):(a=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),a=[]),R(n)},i=function(t){return{configurable:!0,enumerable:!0,get:function(){return R[t]},set:function(e){R[t]=e}}};for(var o in R)Object.prototype.hasOwnProperty.call(R,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,i(o));return n.e=function(t){return"ready"===d&&f("prepare"),_++,R.e(t).then(e,(function(t){throw e(),t}));function e(){_--,"prepare"===d&&(b[t]||A(t),0===_&&0===y&&C())}},n.t=function(t,e){return 1&e&&(t=n(t)),R.t(t,-2&e)},n}function u(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":(m={})[e]=t[e],f("ready");break;case"ready":I(e);break;case"prepare":case"check":case"dispose":case"apply":(v=v||[]).push(e)}},check:M,apply:E,status:function(t){if(!t)return d;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:s[e]};return r=void 0,n}var h=[],d="idle";function f(t){d=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,m,g,v,y=0,_=0,b={},x={},w={};function S(t){return+t+""===t?+t:t}function M(t){if("idle"!==d)throw new Error("check() is only allowed in idle status");return i=t,f("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=R.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return f(T()?"ready":"idle"),null;x={},b={},w=t.c,g=t.h,f("prepare");var e=new Promise((function(t,e){p={resolve:t,reject:e}}));for(var n in m={},L)A(n);return"prepare"===d&&0===_&&0===y&&C(),e}));var e}function A(t){w[t]?(x[t]=!0,y++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=R.p+""+t+"."+o+".hot-update.js",e.crossOrigin="anonymous",document.head.appendChild(e)}(t)):b[t]=!0}function C(){f("ready");var t=p;if(p=null,t)if(i)Promise.resolve().then((function(){return E(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&e.push(S(n));t.resolve(e)}}function E(e){if("ready"!==d)throw new Error("apply() is only allowed in ready status");return function e(n){var i,c,l,u,h;function d(t){for(var e=[t],n={},r=e.map((function(t){return{chain:[t],id:t}}));r.length>0;){var i=r.pop(),o=i.id,s=i.chain;if((u=P[o])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:o};if(u.hot._main)return{type:"unaccepted",chain:s,moduleId:o};for(var a=0;a<u.parents.length;a++){var c=u.parents[a],l=P[c];if(l){if(l.hot._declinedDependencies[o])return{type:"declined",chain:s.concat([c]),moduleId:o,parentId:c};-1===e.indexOf(c)&&(l.hot._acceptedDependencies[o]?(n[c]||(n[c]=[]),p(n[c],[o])):(delete n[c],e.push(c),r.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&t.push(r)}}T();var y={},_=[],b={},x=function(){console.warn("[HMR] unexpected require("+A.moduleId+") to disposed module")};for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var A;h=S(M),A=m[M]?d(h):{type:"disposed",moduleId:M};var C=!1,E=!1,I=!1,O="";switch(A.chain&&(O="\nUpdate propagation: "+A.chain.join(" -> ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of self decline: "+A.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(C=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(A),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),I=!0;break;default:throw new Error("Unexception type "+A.type)}if(C)return f("abort"),Promise.reject(C);if(E)for(h in b[h]=m[h],p(_,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,h)&&(y[h]||(y[h]=[]),p(y[h],A.outdatedDependencies[h]));I&&(p(_,[A.moduleId]),b[h]=x)}var B,k=[];for(c=0;c<_.length;c++)h=_[c],P[h]&&P[h].hot._selfAccepted&&b[h]!==x&&!P[h].hot._selfInvalidated&&k.push({module:h,parents:P[h].parents.slice(),errorHandler:P[h].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete L[t]}(t)}));var D,F,N=_.slice();for(;N.length>0;)if(h=N.pop(),u=P[h]){var j={},U=u.hot._disposeHandlers;for(l=0;l<U.length;l++)(i=U[l])(j);for(s[h]=j,u.hot.active=!1,delete P[h],delete y[h],l=0;l<u.children.length;l++){var z=P[u.children[l]];z&&((B=z.parents.indexOf(h))>=0&&z.parents.splice(B,1))}}for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h]))for(F=y[h],l=0;l<F.length;l++)D=F[l],(B=u.children.indexOf(D))>=0&&u.children.splice(B,1);f("apply"),void 0!==g&&(o=g,g=void 0);for(h in m=void 0,b)Object.prototype.hasOwnProperty.call(b,h)&&(t[h]=b[h]);var G=null;for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h])){F=y[h];var H=[];for(c=0;c<F.length;c++)if(D=F[c],i=u.hot._acceptedDependencies[D]){if(-1!==H.indexOf(i))continue;H.push(i)}for(c=0;c<H.length;c++){i=H[c];try{i(F)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:h,dependencyId:F[c],error:t}),n.ignoreErrored||G||(G=t)}}}for(c=0;c<k.length;c++){var W=k[c];h=W.module,a=W.parents,r=h;try{R(h)}catch(t){if("function"==typeof W.errorHandler)try{W.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:e,originalError:t}),n.ignoreErrored||G||(G=e),G||(G=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:h,error:t}),n.ignoreErrored||G||(G=t)}}if(G)return f("fail"),Promise.reject(G);if(v)return e(n).then((function(t){return _.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return f("idle"),new Promise((function(t){t(_)}))}(e=e||{})}function T(){if(v)return m||(m={}),v.forEach(I),v=void 0,!0}function I(e){Object.prototype.hasOwnProperty.call(m,e)||(m[e]=t[e])}var P={},L={0:0};function R(e){if(P[e])return P[e].exports;var n=P[e]={i:e,l:!1,exports:{},hot:u(e),parents:(c=a,a=[],c),children:[]};return t[e].call(n.exports,n,n.exports,l(e)),n.l=!0,n.exports}R.e=function(t){var e=[],n=L[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=L[t]=[e,r]}));e.push(n[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,R.nc&&s.setAttribute("nonce",R.nc),s.src=function(t){return R.p+""+t+"."+o+".js"}(t),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var a=new Error;i=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=L[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,n[1](a)}L[t]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(e)},R.m=t,R.c=P,R.d=function(t,e,n){R.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},R.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},R.t=function(t,e){if(1&e&&(t=R(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(R.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)R.d(n,r,function(e){return t[e]}.bind(null,r));return n},R.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return R.d(e,"a",e),e},R.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},R.p="./",R.oe=function(t){throw console.error(t),t},R.h=function(){return o};var O=window.webpackJsonprk_web_core=window.webpackJsonprk_web_core||[],B=O.push.bind(O);O.push=e,O=O.slice();for(var k=0;k<O.length;k++)e(O[k]);var D=B;return l(122)(R.s=122)}([function(t,e,n){"use strict";(function(t){var r=n(85);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,s=(a=Object.create(null),t=>{const e=i.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const c=t=>(t=t.toLowerCase(),e=>s(e)===t),l=t=>e=>typeof e===t,{isArray:u}=Array,h=l("undefined");const d=c("ArrayBuffer");const f=l("string"),p=l("function"),m=l("number"),g=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==s(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=c("Date"),_=c("File"),b=c("Blob"),x=c("FileList"),w=c("URLSearchParams");function S(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function M(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,C=t=>!h(t)&&t!==A;const E=(T="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>T&&t instanceof T);var T;const I=c("HTMLFormElement"),P=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),L=c("RegExp"),R=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};S(n,(n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)}),Object.defineProperties(t,r)},O="abcdefghijklmnopqrstuvwxyz",B={DIGIT:"0123456789",ALPHA:O,ALPHA_DIGIT:O+O.toUpperCase()+"0123456789"};const k=c("AsyncFunction");e.a={isArray:u,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=s(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:f,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:v,isUndefined:h,isDate:y,isFile:_,isBlob:b,isRegExp:L,isFunction:p,isStream:t=>g(t)&&p(t.pipe),isURLSearchParams:w,isTypedArray:E,isFileList:x,forEach:S,merge:function t(){const{caseless:e}=C(this)&&this||{},n={},r=(r,i)=>{const o=e&&M(n,i)||i;v(n[o])&&v(r)?n[o]=t(n[o],r):v(r)?n[o]=t({},r):u(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&S(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(S(e,(e,i)=>{n&&p(e)?t[i]=Object(r.a)(e,n):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:R,freezeMethods:t=>{R(t,(e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:M,global:A,isContextDefined:C,ALPHABET:B,generateString:(t=16,e=B.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=u(t)?[]:{};return S(t,(t,e)=>{const o=n(t,r+1);!h(o)&&(i[e]=o)}),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:k,isThenable:t=>t&&(g(t)||p(t))&&p(t.then)&&p(t.catch)}}).call(this,n(10))},function(t,e,n){"use strict";var r=n(0);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,s,a,c)=>{const l=Object.create(o);return r.a.toFlatObject(t,l,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),i.call(l,t.message,e,n,s,a),l.cause=t,l.name=t.name,c&&Object.assign(l,c),l},e.a=i},function(t,e,n){(function(e){var r;t.exports=(r=r||function(t,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=n(270)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},c=a.lib={},l=c.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)e[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),h=a.enc={},d=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},m=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*c,o);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=m.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),a.algo={});return a}(Math),r)}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWidth=e.isOverManyTarget=e.getAllChildren=e.treeMenuFindPath=e.treeFindPath=e.prefixCls=void 0;var r,i=n(53),o=(r=i)&&r.__esModule?r:{default:r};e.prefixCls="rk-web-core",e.treeFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.children){var h=t(u.children,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.treeMenuFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.childMenuList){var h=t(u.childMenuList,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.getAllChildren=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},e.isOverManyTarget=function(t,e){if(t===e)return!1;var n=parseInt(t.style.left),r=parseInt(t.style.top),i=n+parseInt(t.style.width),o=r+parseInt(t.style.height),s=parseInt(e.style.left),a=parseInt(e.style.top),c=s+parseInt(e.style.width),l=a+parseInt(e.style.height),u=Math.min(i,c)-Math.max(n,s),h=Math.min(o,l)-Math.max(r,a),d=(u>0?u:0)*(h>0?h:0),f=parseInt(t.style.width)*parseInt(t.style.height);return d>f/2&&d<=f?t:null},e.getWidth=function(t){var e=t&&"function"==typeof t.getBoundingClientRect&&t.getBoundingClientRect().width;return e&&(e=+e.toFixed(6)),e||0}},function(t,e,n){(function(t,n){var r="[object Map]",i="[object Set]",o=/^\[object .+?Constructor\]$/,s="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,c=s||a||Function("return this")(),l=e&&!e.nodeType&&e,u=l&&"object"==typeof n&&n&&!n.nodeType&&n,h=u&&u.exports===l;var d,f,p,m=Function.prototype,g=Object.prototype,v=c["__core-js_shared__"],y=(d=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",_=m.toString,b=g.hasOwnProperty,x=g.toString,w=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=h?c.Buffer:void 0,M=g.propertyIsEnumerable,A=S?S.isBuffer:void 0,C=(f=Object.keys,p=Object,function(t){return f(p(t))}),E=j(c,"DataView"),T=j(c,"Map"),I=j(c,"Promise"),P=j(c,"Set"),L=j(c,"WeakMap"),R=!M.call({valueOf:1},"valueOf"),O=z(E),B=z(T),k=z(I),D=z(P),F=z(L);function N(t){return!(!Q(t)||function(t){return!!y&&y in t}(t))&&(Z(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:o).test(z(t))}function j(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0}var U=function(t){return x.call(t)};function z(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function G(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&W(t)}(t)&&b.call(t,"callee")&&(!M.call(t,"callee")||"[object Arguments]"==x.call(t))}(E&&"[object DataView]"!=U(new E(new ArrayBuffer(1)))||T&&U(new T)!=r||I&&"[object Promise]"!=U(I.resolve())||P&&U(new P)!=i||L&&"[object WeakMap]"!=U(new L))&&(U=function(t){var e=x.call(t),n="[object Object]"==e?t.constructor:void 0,o=n?z(n):void 0;if(o)switch(o){case O:return"[object DataView]";case B:return r;case k:return"[object Promise]";case D:return i;case F:return"[object WeakMap]"}return e});var H=Array.isArray;function W(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Z(t)}var V=A||function(){return!1};function Z(t){var e=Q(t)?x.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(W(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||V(t)||G(t)))return!t.length;var e=U(t);if(e==r||e==i)return!t.size;if(R||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||g)}(t))return!C(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.storage=e.cookieStore=e.localStore=e.sessionStore=void 0;var r=l(n(152)),i=l(n(47)),o=l(n(153)),s=l(n(155)),a=l(n(154)),c=l(n(249));function l(t){return t&&t.__esModule?t:{default:t}}var u=r.default.createStore(s.default,c.default),h=r.default.createStore(o.default,c.default),d=r.default.createStore(a.default,c.default);e.sessionStore=u,e.localStore=h,e.cookieStore=d,e.storage=i.default},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));function r(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function i(t,e){return t&e}function o(t,e){return t|e}function s(t,e){return t^e}function a(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function l(t){for(var e=0;0!=t;)t&=t-1,++e;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeCache=e.setCache=e.getCache=e.sessionEngine=e.localEngine=void 0;var r=n(5),i=n(136),o=e.localEngine="localStorage";e.sessionEngine="sessionStorage",e.getCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.get(t):r.sessionStore.get(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.get(n+"_"+t):r.sessionStore.get(n+"_"+t)}return e===o?r.localStore.get(t):r.sessionStore.get(t)},e.setCache=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;if(i.version.includes("0.12"))return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var s=window.__RK_WEB_CORE_APPID__;return n===o?r.localStore.set(s+"_"+t,e):r.sessionStore.set(s+"_"+t,e)}return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e)},e.removeCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.remove(t):r.sessionStore.remove(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.remove(n+"_"+t):r.sessionStore.remove(n+"_"+t)}return e===o?r.localStore.remove(t):r.sessionStore.remove(t)}},function(t,e,n){var r=n(15),i=n(6),o=n(26),s=n(27),a=n(36),c=function(t,e,n){var l,u,h,d=t&c.F,f=t&c.G,p=t&c.S,m=t&c.P,g=t&c.B,v=t&c.W,y=f?i:i[e]||(i[e]={}),_=y.prototype,b=f?r:p?r[e]:(r[e]||{}).prototype;for(l in f&&(n=e),n)(u=!d&&b&&void 0!==b[l])&&a(y,l)||(h=u?b[l]:n[l],y[l]=f&&"function"!=typeof b[l]?n[l]:g&&u?o(h,r):v&&b[l]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&_&&!_[l]&&s(_,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r,i,o,s,a,c,l,u,h,d,f,p,m,g,v,y,_,b,x;t.exports=(r=n(2),n(29),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,h=i.algo.EvpKDF,d=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?x:_}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=f.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var c=a.create(o,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),v=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return v.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(i.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=a.random(8)),i)o=h.create({keySize:e+n,hasher:i}).compute(t,r);else var o=h.create({keySize:e+n}).compute(t,r);var s=a.create(o.words.slice(e),4*n);return o.sigBytes=4*e,v.create({key:o,iv:s,salt:r})}},x=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:b}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=_.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,_.decrypt.call(this,t,e,i.key,r)}}))))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appTracking=e.getPk=e.getTimestamp=e.UpPassword=e.BoundWx=e.UnboundWx=e.CheckPhone=e.UpUserPhone=e.UserMsgAuth=e.SendMsg=e.UpUserName=e.getQueryHistory=e.getLatelyVersion=e.iamRedirect=e.getBelongList=e.getRegionDataInfo=e.postConsumer=e.getByCuser=e.getUserInfo=e.refreshToken=e.getQrcode=e.boundWxgzh=e.getBySysCodes=e.getToken=e.Api=void 0;var r=l(n(41)),i=l(n(233)),o=l(n(17)),s=n(5),a=l(n(4)),c=l(n(135));l(n(116));function l(t){return t&&t.__esModule?t:{default:t}}var u=e.Api={refreshToken:"/iam/v1/sys/oauth/refreshToken",token:"/iam/v1/sys/oauth/token",info:"/iam/v1/sys/user/info",getByCuser:"/iam/v1/sys/system/getByCuser",postConsumer:"/iam/v1/sys/user/exchange/consumer",getRegionDataInfo:"https://gateway-bmg-out.rockontrol.com/bmg/v1/apply/weather/{areaCode}",appTracking:"/bmg/v1/apply/tracking",getBelongList:"/iam/v1/sys/consumer/belongBySysList",iamRedirect:"/iam/v1/sys/authorize/redirect",getBySysCodes:"/iam/v1/sys/system/getBySysCodes",latelyVersion:"/iam/v1/sys/version/latelyVersion",queryHistory:"/iam/v1/sys/version/queryHistory",upUserName:"/iam/v1/sys/user/upUserName",sendMsg:"/iam/v1/sys/send/msg",userMsgAuth:"/iam/v1/sys/user/userMsgAuth",upUserPhone:"/iam/v1/sys/user/userPhone",checkPhone:"/iam/v1/sys/user/check/phone",unboundWx:"/iam/v1/sys/user/unboundWx",boundWx:"/iam/v1/sys/user/boundWx/{code}",getQrcode:"/iam/v1/sys/oauth/wx/getQrcode",boundWxgzh:"/iam/v1/sys/user/boundWxgzh/{code}",upPassword:"/iam/v1/sys/update/password",pk:"/iam/v1/sys/pk",timestamp:"/iam/v1/sys/timestamp"},h=new i.default;e.getToken=function(t){return(0,a.default)(h)?(h.set("code",t.code),o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t)):h.has("code")&&h.get("code")!==t.code?o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t):new r.default((function(t){t()}))},e.getBySysCodes=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.getBySysCodes,t)},e.boundWxgzh=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWxgzh,t)},e.getQrcode=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getQrcode,t)},e.refreshToken=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.refreshToken,t)},e.getUserInfo=function(t,e){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.info,t,e)},e.getByCuser=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getByCuser,t)},e.postConsumer=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.postConsumer+"/"+t)},e.getRegionDataInfo=function(t){return o.default.get(u.getRegionDataInfo,t)},e.getBelongList=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getBelongList,t)},e.iamRedirect=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.iamRedirect,t)},e.getLatelyVersion=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.latelyVersion,t)},e.getQueryHistory=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.queryHistory,t)},e.UpUserName=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserName,t)},e.SendMsg=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.sendMsg,t)},e.UserMsgAuth=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.userMsgAuth,t)},e.UpUserPhone=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserPhone,t)},e.CheckPhone=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.checkPhone,t)},e.UnboundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.unboundWx,t)},e.BoundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWx,t)},e.UpPassword=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upPassword,t)},e.getTimestamp=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.timestamp,t)},e.getPk=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.pk+"/"+t.code,t)},e.appTracking=function(t){var e=s.sessionStore.get("BURYINGPOINT_URL"),n="";return n=(0,a.default)(e)?window.location.protocol+"//srv-bmg-gateway---bmg.jiahuayun-huanbao-dev.rocktl.com":e,o.default.post(""+(n+u.appTracking),(0,c.default)(t,["productId","productName","resourceId","resourceName","resourceType","resourceDetails"]))}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(195),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r;
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("rk-web-core",[],e):"object"==typeof exports?exports["rk-web-core"]=e():t["rk-web-core"]=e()}(window,(function(){return function(t){function e(e){for(var n,r,i=e[0],o=e[1],s=0,a=[];s<i.length;s++)r=i[s],Object.prototype.hasOwnProperty.call(L,r)&&L[r]&&a.push(L[r][0]),L[r]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);for(D&&D(e);a.length;)a.shift()()}var n=window.webpackHotUpdaterk_web_core;window.webpackHotUpdaterk_web_core=function(t,e){!function(t,e){if(!w[t]||!x[t])return;for(var n in x[t]=!1,e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n]);0==--y&&0===_&&C()}(t,e),n&&n(t,e)};var r,i=!0,o="19aae5a73ccb8e8a51e0",s={},a=[],c=[];function l(t){var e=P[t];if(!e)return R;var n=function(n){return e.hot.active?(P[n]?-1===P[n].parents.indexOf(t)&&P[n].parents.push(t):(a=[t],r=n),-1===e.children.indexOf(n)&&e.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+t),a=[]),R(n)},i=function(t){return{configurable:!0,enumerable:!0,get:function(){return R[t]},set:function(e){R[t]=e}}};for(var o in R)Object.prototype.hasOwnProperty.call(R,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(n,o,i(o));return n.e=function(t){return"ready"===d&&f("prepare"),_++,R.e(t).then(e,(function(t){throw e(),t}));function e(){_--,"prepare"===d&&(b[t]||A(t),0===_&&0===y&&C())}},n.t=function(t,e){return 1&e&&(t=n(t)),R.t(t,-2&e)},n}function u(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(t,e){if(void 0===t)n._selfAccepted=!0;else if("function"==typeof t)n._selfAccepted=t;else if("object"==typeof t)for(var r=0;r<t.length;r++)n._acceptedDependencies[t[r]]=e||function(){};else n._acceptedDependencies[t]=e||function(){}},decline:function(t){if(void 0===t)n._selfDeclined=!0;else if("object"==typeof t)for(var e=0;e<t.length;e++)n._declinedDependencies[t[e]]=!0;else n._declinedDependencies[t]=!0},dispose:function(t){n._disposeHandlers.push(t)},addDisposeHandler:function(t){n._disposeHandlers.push(t)},removeDisposeHandler:function(t){var e=n._disposeHandlers.indexOf(t);e>=0&&n._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":(m={})[e]=t[e],f("ready");break;case"ready":I(e);break;case"prepare":case"check":case"dispose":case"apply":(v=v||[]).push(e)}},check:M,apply:E,status:function(t){if(!t)return d;h.push(t)},addStatusHandler:function(t){h.push(t)},removeStatusHandler:function(t){var e=h.indexOf(t);e>=0&&h.splice(e,1)},data:s[e]};return r=void 0,n}var h=[],d="idle";function f(t){d=t;for(var e=0;e<h.length;e++)h[e].call(null,t)}var p,m,g,v,y=0,_=0,b={},x={},w={};function S(t){return+t+""===t?+t:t}function M(t){if("idle"!==d)throw new Error("check() is only allowed in idle status");return i=t,f("check"),(e=1e4,e=e||1e4,new Promise((function(t,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=R.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(t){return n(t)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(t){return void n(t)}t(e)}}}))).then((function(t){if(!t)return f(T()?"ready":"idle"),null;x={},b={},w=t.c,g=t.h,f("prepare");var e=new Promise((function(t,e){p={resolve:t,reject:e}}));for(var n in m={},L)A(n);return"prepare"===d&&0===_&&0===y&&C(),e}));var e}function A(t){w[t]?(x[t]=!0,y++,function(t){var e=document.createElement("script");e.charset="utf-8",e.src=R.p+""+t+"."+o+".hot-update.js",e.crossOrigin="anonymous",document.head.appendChild(e)}(t)):b[t]=!0}function C(){f("ready");var t=p;if(p=null,t)if(i)Promise.resolve().then((function(){return E(i)})).then((function(e){t.resolve(e)}),(function(e){t.reject(e)}));else{var e=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&e.push(S(n));t.resolve(e)}}function E(e){if("ready"!==d)throw new Error("apply() is only allowed in ready status");return function e(n){var i,c,l,u,h;function d(t){for(var e=[t],n={},r=e.map((function(t){return{chain:[t],id:t}}));r.length>0;){var i=r.pop(),o=i.id,s=i.chain;if((u=P[o])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:o};if(u.hot._main)return{type:"unaccepted",chain:s,moduleId:o};for(var a=0;a<u.parents.length;a++){var c=u.parents[a],l=P[c];if(l){if(l.hot._declinedDependencies[o])return{type:"declined",chain:s.concat([c]),moduleId:o,parentId:c};-1===e.indexOf(c)&&(l.hot._acceptedDependencies[o]?(n[c]||(n[c]=[]),p(n[c],[o])):(delete n[c],e.push(c),r.push({chain:s.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:t,outdatedModules:e,outdatedDependencies:n}}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];-1===t.indexOf(r)&&t.push(r)}}T();var y={},_=[],b={},x=function(){console.warn("[HMR] unexpected require("+A.moduleId+") to disposed module")};for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var A;h=S(M),A=m[M]?d(h):{type:"disposed",moduleId:M};var C=!1,E=!1,I=!1,O="";switch(A.chain&&(O="\nUpdate propagation: "+A.chain.join(" -> ")),A.type){case"self-declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of self decline: "+A.moduleId+O));break;case"declined":n.onDeclined&&n.onDeclined(A),n.ignoreDeclined||(C=new Error("Aborted because of declined dependency: "+A.moduleId+" in "+A.parentId+O));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(A),n.ignoreUnaccepted||(C=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":n.onAccepted&&n.onAccepted(A),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(A),I=!0;break;default:throw new Error("Unexception type "+A.type)}if(C)return f("abort"),Promise.reject(C);if(E)for(h in b[h]=m[h],p(_,A.outdatedModules),A.outdatedDependencies)Object.prototype.hasOwnProperty.call(A.outdatedDependencies,h)&&(y[h]||(y[h]=[]),p(y[h],A.outdatedDependencies[h]));I&&(p(_,[A.moduleId]),b[h]=x)}var B,k=[];for(c=0;c<_.length;c++)h=_[c],P[h]&&P[h].hot._selfAccepted&&b[h]!==x&&!P[h].hot._selfInvalidated&&k.push({module:h,parents:P[h].parents.slice(),errorHandler:P[h].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(t){!1===w[t]&&function(t){delete L[t]}(t)}));var D,F,N=_.slice();for(;N.length>0;)if(h=N.pop(),u=P[h]){var j={},U=u.hot._disposeHandlers;for(l=0;l<U.length;l++)(i=U[l])(j);for(s[h]=j,u.hot.active=!1,delete P[h],delete y[h],l=0;l<u.children.length;l++){var z=P[u.children[l]];z&&((B=z.parents.indexOf(h))>=0&&z.parents.splice(B,1))}}for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h]))for(F=y[h],l=0;l<F.length;l++)D=F[l],(B=u.children.indexOf(D))>=0&&u.children.splice(B,1);f("apply"),void 0!==g&&(o=g,g=void 0);for(h in m=void 0,b)Object.prototype.hasOwnProperty.call(b,h)&&(t[h]=b[h]);var G=null;for(h in y)if(Object.prototype.hasOwnProperty.call(y,h)&&(u=P[h])){F=y[h];var H=[];for(c=0;c<F.length;c++)if(D=F[c],i=u.hot._acceptedDependencies[D]){if(-1!==H.indexOf(i))continue;H.push(i)}for(c=0;c<H.length;c++){i=H[c];try{i(F)}catch(t){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:h,dependencyId:F[c],error:t}),n.ignoreErrored||G||(G=t)}}}for(c=0;c<k.length;c++){var W=k[c];h=W.module,a=W.parents,r=h;try{R(h)}catch(t){if("function"==typeof W.errorHandler)try{W.errorHandler(t)}catch(e){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:e,originalError:t}),n.ignoreErrored||G||(G=e),G||(G=t)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:h,error:t}),n.ignoreErrored||G||(G=t)}}if(G)return f("fail"),Promise.reject(G);if(v)return e(n).then((function(t){return _.forEach((function(e){t.indexOf(e)<0&&t.push(e)})),t}));return f("idle"),new Promise((function(t){t(_)}))}(e=e||{})}function T(){if(v)return m||(m={}),v.forEach(I),v=void 0,!0}function I(e){Object.prototype.hasOwnProperty.call(m,e)||(m[e]=t[e])}var P={},L={0:0};function R(e){if(P[e])return P[e].exports;var n=P[e]={i:e,l:!1,exports:{},hot:u(e),parents:(c=a,a=[],c),children:[]};return t[e].call(n.exports,n,n.exports,l(e)),n.l=!0,n.exports}R.e=function(t){var e=[],n=L[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=L[t]=[e,r]}));e.push(n[2]=r);var i,s=document.createElement("script");s.charset="utf-8",s.timeout=120,R.nc&&s.setAttribute("nonce",R.nc),s.src=function(t){return R.p+""+t+"."+o+".js"}(t),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var a=new Error;i=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=L[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,n[1](a)}L[t]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:s})}),12e4);s.onerror=s.onload=i,document.head.appendChild(s)}return Promise.all(e)},R.m=t,R.c=P,R.d=function(t,e,n){R.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},R.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},R.t=function(t,e){if(1&e&&(t=R(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(R.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)R.d(n,r,function(e){return t[e]}.bind(null,r));return n},R.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return R.d(e,"a",e),e},R.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},R.p="./",R.oe=function(t){throw console.error(t),t},R.h=function(){return o};var O=window.webpackJsonprk_web_core=window.webpackJsonprk_web_core||[],B=O.push.bind(O);O.push=e,O=O.slice();for(var k=0;k<O.length;k++)e(O[k]);var D=B;return l(122)(R.s=122)}([function(t,e,n){"use strict";(function(t){var r=n(85);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,s=(a=Object.create(null),t=>{const e=i.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const c=t=>(t=t.toLowerCase(),e=>s(e)===t),l=t=>e=>typeof e===t,{isArray:u}=Array,h=l("undefined");const d=c("ArrayBuffer");const f=l("string"),p=l("function"),m=l("number"),g=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==s(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=c("Date"),_=c("File"),b=c("Blob"),x=c("FileList"),w=c("URLSearchParams");function S(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),u(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function M(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,C=t=>!h(t)&&t!==A;const E=(T="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>T&&t instanceof T);var T;const I=c("HTMLFormElement"),P=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),L=c("RegExp"),R=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};S(n,(n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)}),Object.defineProperties(t,r)},O="abcdefghijklmnopqrstuvwxyz",B={DIGIT:"0123456789",ALPHA:O,ALPHA_DIGIT:O+O.toUpperCase()+"0123456789"};const k=c("AsyncFunction");e.a={isArray:u,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=s(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:f,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:v,isUndefined:h,isDate:y,isFile:_,isBlob:b,isRegExp:L,isFunction:p,isStream:t=>g(t)&&p(t.pipe),isURLSearchParams:w,isTypedArray:E,isFileList:x,forEach:S,merge:function t(){const{caseless:e}=C(this)&&this||{},n={},r=(r,i)=>{const o=e&&M(n,i)||i;v(n[o])&&v(r)?n[o]=t(n[o],r):v(r)?n[o]=t({},r):u(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&S(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(S(e,(e,i)=>{n&&p(e)?t[i]=Object(r.a)(e,n):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:c,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:R,freezeMethods:t=>{R(t,(e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return u(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:M,global:A,isContextDefined:C,ALPHABET:B,generateString:(t=16,e=B.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=u(t)?[]:{};return S(t,(t,e)=>{const o=n(t,r+1);!h(o)&&(i[e]=o)}),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:k,isThenable:t=>t&&(g(t)||p(t))&&p(t.then)&&p(t.catch)}}).call(this,n(10))},function(t,e,n){"use strict";var r=n(0);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,s,a,c)=>{const l=Object.create(o);return r.a.toFlatObject(t,l,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),i.call(l,t.message,e,n,s,a),l.cause=t,l.name=t.name,c&&Object.assign(l,c),l},e.a=i},function(t,e,n){(function(e){var r;t.exports=(r=r||function(t,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==e&&e.crypto&&(i=e.crypto),!i)try{i=n(270)}catch(t){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},c=a.lib={},l=c.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)e[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),h=a.enc={},d=h.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},m=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*c,o);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(i,h);n=i.splice(0,c),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(c.Hasher=m.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),a.algo={});return a}(Math),r)}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWidth=e.isOverManyTarget=e.getAllChildren=e.treeMenuFindPath=e.treeFindPath=e.prefixCls=void 0;var r,i=n(53),o=(r=i)&&r.__esModule?r:{default:r};e.prefixCls="rk-web-core",e.treeFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.children){var h=t(u.children,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.treeMenuFindPath=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,s=!1,a=void 0;try{for(var c,l=(0,o.default)(e);!(i=(c=l.next()).done);i=!0){var u=c.value;if(r.push(u),n(u))return r;if(u.childMenuList){var h=t(u.childMenuList,n,r);if(h.length)return h}r.pop()}}catch(t){s=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return[]},e.getAllChildren=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},e.isOverManyTarget=function(t,e){if(t===e)return!1;var n=parseInt(t.style.left),r=parseInt(t.style.top),i=n+parseInt(t.style.width),o=r+parseInt(t.style.height),s=parseInt(e.style.left),a=parseInt(e.style.top),c=s+parseInt(e.style.width),l=a+parseInt(e.style.height),u=Math.min(i,c)-Math.max(n,s),h=Math.min(o,l)-Math.max(r,a),d=(u>0?u:0)*(h>0?h:0),f=parseInt(t.style.width)*parseInt(t.style.height);return d>f/2&&d<=f?t:null},e.getWidth=function(t){var e=t&&"function"==typeof t.getBoundingClientRect&&t.getBoundingClientRect().width;return e&&(e=+e.toFixed(6)),e||0}},function(t,e,n){(function(t,n){var r="[object Map]",i="[object Set]",o=/^\[object .+?Constructor\]$/,s="object"==typeof t&&t&&t.Object===Object&&t,a="object"==typeof self&&self&&self.Object===Object&&self,c=s||a||Function("return this")(),l=e&&!e.nodeType&&e,u=l&&"object"==typeof n&&n&&!n.nodeType&&n,h=u&&u.exports===l;var d,f,p,m=Function.prototype,g=Object.prototype,v=c["__core-js_shared__"],y=(d=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",_=m.toString,b=g.hasOwnProperty,x=g.toString,w=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=h?c.Buffer:void 0,M=g.propertyIsEnumerable,A=S?S.isBuffer:void 0,C=(f=Object.keys,p=Object,function(t){return f(p(t))}),E=j(c,"DataView"),T=j(c,"Map"),I=j(c,"Promise"),P=j(c,"Set"),L=j(c,"WeakMap"),R=!M.call({valueOf:1},"valueOf"),O=z(E),B=z(T),k=z(I),D=z(P),F=z(L);function N(t){return!(!Q(t)||function(t){return!!y&&y in t}(t))&&(Z(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:o).test(z(t))}function j(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0}var U=function(t){return x.call(t)};function z(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function G(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&W(t)}(t)&&b.call(t,"callee")&&(!M.call(t,"callee")||"[object Arguments]"==x.call(t))}(E&&"[object DataView]"!=U(new E(new ArrayBuffer(1)))||T&&U(new T)!=r||I&&"[object Promise]"!=U(I.resolve())||P&&U(new P)!=i||L&&"[object WeakMap]"!=U(new L))&&(U=function(t){var e=x.call(t),n="[object Object]"==e?t.constructor:void 0,o=n?z(n):void 0;if(o)switch(o){case O:return"[object DataView]";case B:return r;case k:return"[object Promise]";case D:return i;case F:return"[object WeakMap]"}return e});var H=Array.isArray;function W(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Z(t)}var V=A||function(){return!1};function Z(t){var e=Q(t)?x.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(W(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||V(t)||G(t)))return!t.length;var e=U(t);if(e==r||e==i)return!t.size;if(R||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||g)}(t))return!C(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.storage=e.cookieStore=e.localStore=e.sessionStore=void 0;var r=l(n(152)),i=l(n(47)),o=l(n(153)),s=l(n(155)),a=l(n(154)),c=l(n(249));function l(t){return t&&t.__esModule?t:{default:t}}var u=r.default.createStore(s.default,c.default),h=r.default.createStore(o.default,c.default),d=r.default.createStore(a.default,c.default);e.sessionStore=u,e.localStore=h,e.cookieStore=d,e.storage=i.default},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));function r(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function i(t,e){return t&e}function o(t,e){return t|e}function s(t,e){return t^e}function a(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function l(t){for(var e=0;0!=t;)t&=t-1,++e;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeCache=e.setCache=e.getCache=e.sessionEngine=e.localEngine=void 0;var r=n(5),i=n(136),o=e.localEngine="localStorage";e.sessionEngine="sessionStorage",e.getCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.get(t):r.sessionStore.get(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.get(n+"_"+t):r.sessionStore.get(n+"_"+t)}return e===o?r.localStore.get(t):r.sessionStore.get(t)},e.setCache=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;if(i.version.includes("0.12"))return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__||window.mirco){var s=window.__RK_WEB_CORE_APPID__;return n===o?r.localStore.set(s+"_"+t,e):r.sessionStore.set(s+"_"+t,e)}return n===o?r.localStore.set(t,e):r.sessionStore.set(t,e)},e.removeCache=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(i.version.includes("0.12"))return e===o?r.localStore.remove(t):r.sessionStore.remove(t);if(window.__MICRO_APP_ENVIRONMENT__||window.__MICRO_APP_BASE_APPLICATION__){var n=window.__RK_WEB_CORE_APPID__;return e===o?r.localStore.remove(n+"_"+t):r.sessionStore.remove(n+"_"+t)}return e===o?r.localStore.remove(t):r.sessionStore.remove(t)}},function(t,e,n){var r=n(15),i=n(6),o=n(26),s=n(27),a=n(36),c=function(t,e,n){var l,u,h,d=t&c.F,f=t&c.G,p=t&c.S,m=t&c.P,g=t&c.B,v=t&c.W,y=f?i:i[e]||(i[e]={}),_=y.prototype,b=f?r:p?r[e]:(r[e]||{}).prototype;for(l in f&&(n=e),n)(u=!d&&b&&void 0!==b[l])&&a(y,l)||(h=u?b[l]:n[l],y[l]=f&&"function"!=typeof b[l]?n[l]:g&&u?o(h,r):v&&b[l]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&_&&!_[l]&&s(_,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r,i,o,s,a,c,l,u,h,d,f,p,m,g,v,y,_,b,x;t.exports=(r=n(2),n(29),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,h=i.algo.EvpKDF,d=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?x:_}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=i.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=f.CBC=function(){var t=p.extend();function e(t,e,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=r[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var c=a.create(o,r);t.concat(c)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),v=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:y}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),s=i.cfg;return v.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(i.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=a.random(8)),i)o=h.create({keySize:e+n,hasher:i}).compute(t,r);else var o=h.create({keySize:e+n}).compute(t,r);var s=a.create(o.words.slice(e),4*n);return o.sigBytes=4*e,v.create({key:o,iv:s,salt:r})}},x=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:b}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=_.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,_.decrypt.call(this,t,e,i.key,r)}}))))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appTracking=e.getPk=e.getTimestamp=e.UpPassword=e.BoundWx=e.UnboundWx=e.CheckPhone=e.UpUserPhone=e.UserMsgAuth=e.SendMsg=e.UpUserName=e.getQueryHistory=e.getLatelyVersion=e.iamRedirect=e.getBelongList=e.getRegionDataInfo=e.postConsumer=e.getByCuser=e.getUserInfo=e.refreshToken=e.getQrcode=e.boundWxgzh=e.getBySysCodes=e.getToken=e.Api=void 0;var r=l(n(41)),i=l(n(233)),o=l(n(17)),s=n(5),a=l(n(4)),c=l(n(135));l(n(116));function l(t){return t&&t.__esModule?t:{default:t}}var u=e.Api={refreshToken:"/iam/v1/sys/oauth/refreshToken",token:"/iam/v1/sys/oauth/token",info:"/iam/v1/sys/user/info",getByCuser:"/iam/v1/sys/system/getByCuser",postConsumer:"/iam/v1/sys/user/exchange/consumer",getRegionDataInfo:"https://gateway-bmg-out.rockontrol.com/bmg/v1/apply/weather/{areaCode}",appTracking:"/bmg/v1/apply/tracking",getBelongList:"/iam/v1/sys/consumer/belongBySysList",iamRedirect:"/iam/v1/sys/authorize/redirect",getBySysCodes:"/iam/v1/sys/system/getBySysCodes",latelyVersion:"/iam/v1/sys/version/latelyVersion",queryHistory:"/iam/v1/sys/version/queryHistory",upUserName:"/iam/v1/sys/user/upUserName",sendMsg:"/iam/v1/sys/send/msg",userMsgAuth:"/iam/v1/sys/user/userMsgAuth",upUserPhone:"/iam/v1/sys/user/userPhone",checkPhone:"/iam/v1/sys/user/check/phone",unboundWx:"/iam/v1/sys/user/unboundWx",boundWx:"/iam/v1/sys/user/boundWx/{code}",getQrcode:"/iam/v1/sys/oauth/wx/getQrcode",boundWxgzh:"/iam/v1/sys/user/boundWxgzh/{code}",upPassword:"/iam/v1/sys/update/password",pk:"/iam/v1/sys/pk",timestamp:"/iam/v1/sys/timestamp"},h=new i.default;e.getToken=function(t){return(0,a.default)(h)?(h.set("code",t.code),o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t)):h.has("code")&&h.get("code")!==t.code?o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.token,t):new r.default((function(t){t()}))},e.getBySysCodes=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.getBySysCodes,t)},e.boundWxgzh=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWxgzh,t)},e.getQrcode=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getQrcode,t)},e.refreshToken=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.refreshToken,t)},e.getUserInfo=function(t,e){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.info,t,e)},e.getByCuser=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getByCuser,t)},e.postConsumer=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.postConsumer+"/"+t)},e.getRegionDataInfo=function(t){return o.default.get(u.getRegionDataInfo,t)},e.getBelongList=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.getBelongList,t)},e.iamRedirect=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.iamRedirect,t)},e.getLatelyVersion=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.latelyVersion,t)},e.getQueryHistory=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.queryHistory,t)},e.UpUserName=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserName,t)},e.SendMsg=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.sendMsg,t)},e.UserMsgAuth=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.userMsgAuth,t)},e.UpUserPhone=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upUserPhone,t)},e.CheckPhone=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.checkPhone,t)},e.UnboundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.unboundWx,t)},e.BoundWx=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.boundWx,t)},e.UpPassword=function(t){return o.default.post(""+s.sessionStore.get("IAM_BASE_URL")+u.upPassword,t)},e.getTimestamp=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.timestamp,t)},e.getPk=function(t){return o.default.get(""+s.sessionStore.get("IAM_BASE_URL")+u.pk+"/"+t.code,t)},e.appTracking=function(t){var e=s.sessionStore.get("BURYINGPOINT_URL"),n="";return n=(0,a.default)(e)?window.location.protocol+"//srv-bmg-gateway---bmg.jiahuayun-huanbao-dev.rocktl.com":e,o.default.post(""+(n+u.appTracking),(0,c.default)(t,["productId","productName","resourceId","resourceName","resourceType","resourceDetails"]))}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(195),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r;
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
@@ -17,7 +17,7 @@ var i=Object.freeze({}),o=Array.isArray;function s(t){return null==t}function a(
17
17
  */
18
18
  const r="127",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},o={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},s=0,a=1,c=2,l=3,u=0,h=1,d=2,f=3,p=0,m=1,g=2,v=1,y=2,_=0,b=1,x=2,w=3,S=4,M=5,A=100,C=101,E=102,T=103,I=104,P=200,L=201,R=202,O=203,B=204,k=205,D=206,F=207,N=208,j=209,U=210,z=0,G=1,H=2,W=3,V=4,Z=5,Q=6,X=7,Y=0,J=1,q=2,K=0,$=1,tt=2,et=3,nt=4,rt=5,it=300,ot=301,st=302,at=303,ct=304,lt=306,ut=307,ht=1e3,dt=1001,ft=1002,pt=1003,mt=1004,gt=1004,vt=1005,yt=1005,_t=1006,bt=1007,xt=1007,wt=1008,St=1008,Mt=1009,At=1010,Ct=1011,Et=1012,Tt=1013,It=1014,Pt=1015,Lt=1016,Rt=1017,Ot=1018,Bt=1019,kt=1020,Dt=1021,Ft=1022,Nt=1023,jt=1024,Ut=1025,zt=Nt,Gt=1026,Ht=1027,Wt=1028,Vt=1029,Zt=1030,Qt=1031,Xt=1032,Yt=1033,Jt=33776,qt=33777,Kt=33778,$t=33779,te=35840,ee=35841,ne=35842,re=35843,ie=36196,oe=37492,se=37496,ae=37808,ce=37809,le=37810,ue=37811,he=37812,de=37813,fe=37814,pe=37815,me=37816,ge=37817,ve=37818,ye=37819,_e=37820,be=37821,xe=36492,we=37840,Se=37841,Me=37842,Ae=37843,Ce=37844,Ee=37845,Te=37846,Ie=37847,Pe=37848,Le=37849,Re=37850,Oe=37851,Be=37852,ke=37853,De=2200,Fe=2201,Ne=2202,je=2300,Ue=2301,ze=2302,Ge=2400,He=2401,We=2402,Ve=2500,Ze=2501,Qe=0,Xe=1,Ye=2,Je=3e3,qe=3001,Ke=3007,$e=3002,tn=3003,en=3004,nn=3005,rn=3006,on=3200,sn=3201,an=0,cn=1,ln=0,un=7680,hn=7681,dn=7682,fn=7683,pn=34055,mn=34056,gn=5386,vn=512,yn=513,_n=514,bn=515,xn=516,wn=517,Sn=518,Mn=519,An=35044,Cn=35048,En=35040,Tn=35045,In=35049,Pn=35041,Ln=35046,Rn=35050,On=35042,Bn="100",kn="300 es";function Dn(){}Object.assign(Dn.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}},dispatchEvent:function(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,r=n.length;e<r;e++)n[e].call(this,t);t.target=null}}});const Fn=[];for(let t=0;t<256;t++)Fn[t]=(t<16?"0":"")+t.toString(16);let Nn=1234567;const jn={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(Fn[255&t]+Fn[t>>8&255]+Fn[t>>16&255]+Fn[t>>24&255]+"-"+Fn[255&e]+Fn[e>>8&255]+"-"+Fn[e>>16&15|64]+Fn[e>>24&255]+"-"+Fn[63&n|128]+Fn[n>>8&255]+"-"+Fn[n>>16&255]+Fn[n>>24&255]+Fn[255&r]+Fn[r>>8&255]+Fn[r>>16&255]+Fn[r>>24&255]).toUpperCase()},clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,r,i){return r+(t-e)*(i-r)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:function(t,e,n){return(1-n)*t+n*e},damp:function(t,e,n,r){return jn.lerp(t,e,1-Math.exp(-n*r))},pingpong:function(t,e=1){return e-Math.abs(jn.euclideanModulo(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){return void 0!==t&&(Nn=t%2147483647),Nn=16807*Nn%2147483647,(Nn-1)/2147483646},degToRad:function(t){return t*jn.DEG2RAD},radToDeg:function(t){return t*jn.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,e,n,r,i){const o=Math.cos,s=Math.sin,a=o(n/2),c=s(n/2),l=o((e+r)/2),u=s((e+r)/2),h=o((e-r)/2),d=s((e-r)/2),f=o((r-e)/2),p=s((r-e)/2);switch(i){case"XYX":t.set(a*u,c*h,c*d,a*l);break;case"YZY":t.set(c*d,a*u,c*h,a*l);break;case"ZXZ":t.set(c*h,c*d,a*u,a*l);break;case"XZX":t.set(a*u,c*p,c*f,a*l);break;case"YXY":t.set(c*f,a*u,c*p,a*l);break;case"ZYZ":t.set(c*p,c*f,a*u,a*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}};class Un{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.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}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),r=Math.sin(e),i=this.x-t.x,o=this.y-t.y;return this.x=i*n-o*r+t.x,this.y=i*r+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}}Un.prototype.isVector2=!0;class zn{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,r,i,o,s,a,c){const l=this.elements;return l[0]=t,l[1]=r,l[2]=s,l[3]=e,l[4]=i,l[5]=a,l[6]=n,l[7]=o,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],s=n[3],a=n[6],c=n[1],l=n[4],u=n[7],h=n[2],d=n[5],f=n[8],p=r[0],m=r[3],g=r[6],v=r[1],y=r[4],_=r[7],b=r[2],x=r[5],w=r[8];return i[0]=o*p+s*v+a*b,i[3]=o*m+s*y+a*x,i[6]=o*g+s*_+a*w,i[1]=c*p+l*v+u*b,i[4]=c*m+l*y+u*x,i[7]=c*g+l*_+u*w,i[2]=h*p+d*v+f*b,i[5]=h*m+d*y+f*x,i[8]=h*g+d*_+f*w,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8];return e*o*l-e*s*c-n*i*l+n*s*a+r*i*c-r*o*a}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8],u=l*o-s*c,h=s*a-l*i,d=c*i-o*a,f=e*u+n*h+r*d;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const p=1/f;return t[0]=u*p,t[1]=(r*c-l*n)*p,t[2]=(s*n-r*o)*p,t[3]=h*p,t[4]=(l*e-r*a)*p,t[5]=(r*i-s*e)*p,t[6]=d*p,t[7]=(n*a-c*e)*p,t[8]=(o*e-n*i)*p,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,r,i,o,s){const a=Math.cos(i),c=Math.sin(i);return this.set(n*a,n*c,-n*(a*o+c*s)+o+t,-r*c,r*a,-r*(-c*o+a*s)+s+e,0,0,1),this}scale(t,e){const n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this}rotate(t){const e=Math.cos(t),n=Math.sin(t),r=this.elements,i=r[0],o=r[3],s=r[6],a=r[1],c=r[4],l=r[7];return r[0]=e*i+n*a,r[3]=e*o+n*c,r[6]=e*s+n*l,r[1]=-n*i+e*a,r[4]=-n*o+e*c,r[7]=-n*s+e*l,this}translate(t,e){const n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<9;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}let Gn;zn.prototype.isMatrix3=!0;const Hn={getDataURL:function(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===Gn&&(Gn=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Gn.width=t.width,Gn.height=t.height;const n=Gn.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Gn}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}};let Wn=0;class Vn extends Dn{constructor(t=Vn.DEFAULT_IMAGE,e=Vn.DEFAULT_MAPPING,n=dt,r=dt,i=_t,o=wt,s=Nt,a=Mt,c=1,l=Je){super(),Object.defineProperty(this,"id",{value:Wn++}),this.uuid=jn.generateUUID(),this.name="",this.image=t,this.mipmaps=[],this.mapping=e,this.wrapS=n,this.wrapT=r,this.magFilter=i,this.minFilter=o,this.anisotropy=c,this.format=s,this.internalFormat=null,this.type=a,this.offset=new Un(0,0),this.repeat=new Un(1,1),this.center=new Un(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new zn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=l,this.version=0,this.onUpdate=null}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(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this}toJSON(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,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,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){const r=this.image;if(void 0===r.uuid&&(r.uuid=jn.generateUUID()),!e&&void 0===t.images[r.uuid]){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(Zn(r[t].image)):e.push(Zn(r[t]))}else e=Zn(r);t.images[r.uuid]={uuid:r.uuid,url:e}}n.image=r.uuid}return e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==it)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case ht:t.x=t.x-Math.floor(t.x);break;case dt:t.x=t.x<0?0:1;break;case ft:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case ht:t.y=t.y-Math.floor(t.y);break;case dt:t.y=t.y<0?0:1;break;case ft:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&this.version++}}function Zn(t){return"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?Hn.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}Vn.DEFAULT_IMAGE=void 0,Vn.DEFAULT_MAPPING=it,Vn.prototype.isTexture=!0;class Qn{constructor(t=0,e=0,n=0,r=1){this.x=t,this.y=e,this.z=n,this.w=r}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){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: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*e+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*e+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*e+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,r,i;const o=.01,s=.1,a=t.elements,c=a[0],l=a[4],u=a[8],h=a[1],d=a[5],f=a[9],p=a[2],m=a[6],g=a[10];if(Math.abs(l-h)<o&&Math.abs(u-p)<o&&Math.abs(f-m)<o){if(Math.abs(l+h)<s&&Math.abs(u+p)<s&&Math.abs(f+m)<s&&Math.abs(c+d+g-3)<s)return this.set(1,0,0,0),this;e=Math.PI;const t=(c+1)/2,a=(d+1)/2,v=(g+1)/2,y=(l+h)/4,_=(u+p)/4,b=(f+m)/4;return t>a&&t>v?t<o?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(t),r=y/n,i=_/n):a>v?a<o?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(a),n=y/r,i=b/r):v<o?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(v),n=_/i,r=b/i),this.set(n,r,i,e),this}let v=Math.sqrt((m-f)*(m-f)+(u-p)*(u-p)+(h-l)*(h-l));return Math.abs(v)<.001&&(v=1),this.x=(m-f)/v,this.y=(u-p)/v,this.z=(h-l)/v,this.w=Math.acos((c+d+g-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}}Qn.prototype.isVector4=!0;class Xn extends Dn{constructor(t,e,n){super(),this.width=t,this.height=e,this.depth=1,this.scissor=new Qn(0,0,t,e),this.scissorTest=!1,this.viewport=new Qn(0,0,t,e),n=n||{},this.texture=new Vn(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=1,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:_t,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}setTexture(t){t.image={width:this.width,height:this.height,depth:this.depth},this.texture=t}setSize(t,e,n=1){this.width===t&&this.height===e&&this.depth===n||(this.width=t,this.height=e,this.depth=n,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this}dispose(){this.dispatchEvent({type:"dispose"})}}Xn.prototype.isWebGLRenderTarget=!0;class Yn extends Xn{constructor(t,e,n){super(t,e,n),this.samples=4}copy(t){return super.copy.call(this,t),this.samples=t.samples,this}}Yn.prototype.isWebGLMultisampleRenderTarget=!0;class Jn{constructor(t=0,e=0,n=0,r=1){this._x=t,this._y=e,this._z=n,this._w=r}static slerp(t,e,n,r){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(t,e,r)}static slerpFlat(t,e,n,r,i,o,s){let a=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3];const h=i[o+0],d=i[o+1],f=i[o+2],p=i[o+3];if(0===s)return t[e+0]=a,t[e+1]=c,t[e+2]=l,void(t[e+3]=u);if(1===s)return t[e+0]=h,t[e+1]=d,t[e+2]=f,void(t[e+3]=p);if(u!==p||a!==h||c!==d||l!==f){let t=1-s;const e=a*h+c*d+l*f+u*p,n=e>=0?1:-1,r=1-e*e;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,e*n);t=Math.sin(t*o)/i,s=Math.sin(s*o)/i}const i=s*n;if(a=a*t+h*i,c=c*t+d*i,l=l*t+f*i,u=u*t+p*i,t===1-s){const t=1/Math.sqrt(a*a+c*c+l*l+u*u);a*=t,c*=t,l*=t,u*=t}}t[e]=a,t[e+1]=c,t[e+2]=l,t[e+3]=u}static multiplyQuaternionsFlat(t,e,n,r,i,o){const s=n[r],a=n[r+1],c=n[r+2],l=n[r+3],u=i[o],h=i[o+1],d=i[o+2],f=i[o+3];return t[e]=s*f+l*u+a*d-c*h,t[e+1]=a*f+l*h+c*u-s*d,t[e+2]=c*f+l*d+s*h-a*u,t[e+3]=l*f-s*u-a*h-c*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=t._x,r=t._y,i=t._z,o=t._order,s=Math.cos,a=Math.sin,c=s(n/2),l=s(r/2),u=s(i/2),h=a(n/2),d=a(r/2),f=a(i/2);switch(o){case"XYZ":this._x=h*l*u+c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u-h*d*f;break;case"YXZ":this._x=h*l*u+c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u+h*d*f;break;case"ZXY":this._x=h*l*u-c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u-h*d*f;break;case"ZYX":this._x=h*l*u-c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u+h*d*f;break;case"YZX":this._x=h*l*u+c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u-h*d*f;break;case"XZY":this._x=h*l*u-c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u+h*d*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],r=e[4],i=e[8],o=e[1],s=e[5],a=e[9],c=e[2],l=e[6],u=e[10],h=n+s+u;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(l-a)*t,this._y=(i-c)*t,this._z=(o-r)*t}else if(n>s&&n>u){const t=2*Math.sqrt(1+n-s-u);this._w=(l-a)/t,this._x=.25*t,this._y=(r+o)/t,this._z=(i+c)/t}else if(s>u){const t=2*Math.sqrt(1+s-n-u);this._w=(i-c)/t,this._x=(r+o)/t,this._y=.25*t,this._z=(a+l)/t}else{const t=2*Math.sqrt(1+u-n-s);this._w=(o-r)/t,this._x=(i+c)/t,this._y=(a+l)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(jn.clamp(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const r=Math.min(1,e/n);return this.slerp(t,r),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(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._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 t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,r=t._y,i=t._z,o=t._w,s=e._x,a=e._y,c=e._z,l=e._w;return this._x=n*l+o*s+r*c-i*a,this._y=r*l+o*a+i*s-n*c,this._z=i*l+o*c+n*a-r*s,this._w=o*l-n*s-r*a-i*c,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,r=this._y,i=this._z,o=this._w;let s=o*t._w+n*t._x+r*t._y+i*t._z;if(s<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,s=-s):this.copy(t),s>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const a=1-s*s;if(a<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*r+e*this._y,this._z=t*i+e*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(a),l=Math.atan2(c,s),u=Math.sin((1-e)*l)/c,h=Math.sin(e*l)/c;return this._w=o*u+this._w*h,this._x=n*u+this._x*h,this._y=r*u+this._y*h,this._z=i*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){this.copy(t).slerp(e,n)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}Jn.prototype.isQuaternion=!0;class qn{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion($n.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion($n.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6]*r,this.y=i[1]*e+i[4]*n+i[7]*r,this.z=i[2]*e+i[5]*n+i[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,r=this.z,i=t.elements,o=1/(i[3]*e+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*e+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*e+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*e+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,r=this.z,i=t.x,o=t.y,s=t.z,a=t.w,c=a*e+o*r-s*n,l=a*n+s*e-i*r,u=a*r+i*n-o*e,h=-i*e-o*n-s*r;return this.x=c*a+h*-i+l*-s-u*-o,this.y=l*a+h*-o+u*-i-c*-s,this.z=u*a+h*-s+c*-o-l*-i,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[4]*n+i[8]*r,this.y=i[1]*e+i[5]*n+i[9]*r,this.z=i[2]*e+i[6]*n+i[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.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(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,r=t.y,i=t.z,o=e.x,s=e.y,a=e.z;return this.x=r*a-i*s,this.y=i*o-n*a,this.z=n*s-r*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return Kn.copy(this).projectOnVector(t),this.sub(Kn)}reflect(t){return this.sub(Kn.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(jn.clamp(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}}qn.prototype.isVector3=!0;const Kn=new qn,$n=new Jn;class tr{constructor(t=new qn(1/0,1/0,1/0),e=new qn(-1/0,-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,s=-1/0;for(let a=0,c=t.length;a<c;a+=3){const c=t[a],l=t[a+1],u=t[a+2];c<e&&(e=c),l<n&&(n=l),u<r&&(r=u),c>i&&(i=c),l>o&&(o=l),u>s&&(s=u)}return this.min.set(e,n,r),this.max.set(i,o,s),this}setFromBufferAttribute(t){let e=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,s=-1/0;for(let a=0,c=t.count;a<c;a++){const c=t.getX(a),l=t.getY(a),u=t.getZ(a);c<e&&(e=c),l<n&&(n=l),u<r&&(r=u),c>i&&(i=c),l>o&&(o=l),u>s&&(s=u)}return this.min.set(e,n,r),this.max.set(i,o,s),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=nr.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t){return this.makeEmpty(),this.expandByObject(t)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.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(t){return void 0===t&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new qn),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return void 0===t&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new qn),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t){t.updateWorldMatrix(!1,!1);const e=t.geometry;void 0!==e&&(null===e.boundingBox&&e.computeBoundingBox(),rr.copy(e.boundingBox),rr.applyMatrix4(t.matrixWorld),this.union(rr));const n=t.children;for(let t=0,e=n.length;t<e;t++)this.expandByObject(n[t]);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return void 0===e&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new qn),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,nr),nr.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(ur),hr.subVectors(this.max,ur),ir.subVectors(t.a,ur),or.subVectors(t.b,ur),sr.subVectors(t.c,ur),ar.subVectors(or,ir),cr.subVectors(sr,or),lr.subVectors(ir,sr);let e=[0,-ar.z,ar.y,0,-cr.z,cr.y,0,-lr.z,lr.y,ar.z,0,-ar.x,cr.z,0,-cr.x,lr.z,0,-lr.x,-ar.y,ar.x,0,-cr.y,cr.x,0,-lr.y,lr.x,0];return!!pr(e,ir,or,sr,hr)&&(e=[1,0,0,0,1,0,0,0,1],!!pr(e,ir,or,sr,hr)&&(dr.crossVectors(ar,cr),e=[dr.x,dr.y,dr.z],pr(e,ir,or,sr,hr)))}clampPoint(t,e){return void 0===e&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new qn),e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return nr.copy(t).clamp(this.min,this.max).sub(t).length()}getBoundingSphere(t){return void 0===t&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(t.center),t.radius=.5*this.getSize(nr).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(er[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),er[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),er[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),er[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),er[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),er[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),er[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),er[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(er)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}tr.prototype.isBox3=!0;const er=[new qn,new qn,new qn,new qn,new qn,new qn,new qn,new qn],nr=new qn,rr=new tr,ir=new qn,or=new qn,sr=new qn,ar=new qn,cr=new qn,lr=new qn,ur=new qn,hr=new qn,dr=new qn,fr=new qn;function pr(t,e,n,r,i){for(let o=0,s=t.length-3;o<=s;o+=3){fr.fromArray(t,o);const s=i.x*Math.abs(fr.x)+i.y*Math.abs(fr.y)+i.z*Math.abs(fr.z),a=e.dot(fr),c=n.dot(fr),l=r.dot(fr);if(Math.max(-Math.max(a,c,l),Math.min(a,c,l))>s)return!1}return!0}const mr=new tr,gr=new qn,vr=new qn,yr=new qn;class _r{constructor(t=new qn,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):mr.setFromPoints(t).getCenter(n);let r=0;for(let e=0,i=t.length;e<i;e++)r=Math.max(r,n.distanceToSquared(t[e]));return this.radius=Math.sqrt(r),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const n=this.center.distanceToSquared(t);return void 0===e&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new qn),e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return void 0===t&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new tr),this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){yr.subVectors(t,this.center);const e=yr.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.add(yr.multiplyScalar(n/t)),this.radius+=n}return this}union(t){return vr.subVectors(t.center,this.center).normalize().multiplyScalar(t.radius),this.expandByPoint(gr.copy(t.center).add(vr)),this.expandByPoint(gr.copy(t.center).sub(vr)),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const br=new qn,xr=new qn,wr=new qn,Sr=new qn,Mr=new qn,Ar=new qn,Cr=new qn;class Er{constructor(t=new qn,e=new qn(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return void 0===e&&(console.warn("THREE.Ray: .at() target is now required"),e=new qn),e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,br)),this}closestPointToPoint(t,e){void 0===e&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new qn),e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=br.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(br.copy(this.direction).multiplyScalar(e).add(this.origin),br.distanceToSquared(t))}distanceSqToSegment(t,e,n,r){xr.copy(t).add(e).multiplyScalar(.5),wr.copy(e).sub(t).normalize(),Sr.copy(this.origin).sub(xr);const i=.5*t.distanceTo(e),o=-this.direction.dot(wr),s=Sr.dot(this.direction),a=-Sr.dot(wr),c=Sr.lengthSq(),l=Math.abs(1-o*o);let u,h,d,f;if(l>0)if(u=o*a-s,h=o*s-a,f=i*l,u>=0)if(h>=-f)if(h<=f){const t=1/l;u*=t,h*=t,d=u*(u+o*h+2*s)+h*(o*u+h+2*a)+c}else h=i,u=Math.max(0,-(o*h+s)),d=-u*u+h*(h+2*a)+c;else h=-i,u=Math.max(0,-(o*h+s)),d=-u*u+h*(h+2*a)+c;else h<=-f?(u=Math.max(0,-(-o*i+s)),h=u>0?-i:Math.min(Math.max(-i,-a),i),d=-u*u+h*(h+2*a)+c):h<=f?(u=0,h=Math.min(Math.max(-i,-a),i),d=h*(h+2*a)+c):(u=Math.max(0,-(o*i+s)),h=u>0?i:Math.min(Math.max(-i,-a),i),d=-u*u+h*(h+2*a)+c);else h=o>0?-i:i,u=Math.max(0,-(o*h+s)),d=-u*u+h*(h+2*a)+c;return n&&n.copy(this.direction).multiplyScalar(u).add(this.origin),r&&r.copy(wr).multiplyScalar(h).add(xr),d}intersectSphere(t,e){br.subVectors(t.center,this.origin);const n=br.dot(this.direction),r=br.dot(br)-n*n,i=t.radius*t.radius;if(r>i)return null;const o=Math.sqrt(i-r),s=n-o,a=n+o;return s<0&&a<0?null:s<0?this.at(a,e):this.at(s,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,r,i,o,s,a;const c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(n=(t.min.x-h.x)*c,r=(t.max.x-h.x)*c):(n=(t.max.x-h.x)*c,r=(t.min.x-h.x)*c),l>=0?(i=(t.min.y-h.y)*l,o=(t.max.y-h.y)*l):(i=(t.max.y-h.y)*l,o=(t.min.y-h.y)*l),n>o||i>r?null:((i>n||n!=n)&&(n=i),(o<r||r!=r)&&(r=o),u>=0?(s=(t.min.z-h.z)*u,a=(t.max.z-h.z)*u):(s=(t.max.z-h.z)*u,a=(t.min.z-h.z)*u),n>a||s>r?null:((s>n||n!=n)&&(n=s),(a<r||r!=r)&&(r=a),r<0?null:this.at(n>=0?n:r,e)))}intersectsBox(t){return null!==this.intersectBox(t,br)}intersectTriangle(t,e,n,r,i){Mr.subVectors(e,t),Ar.subVectors(n,t),Cr.crossVectors(Mr,Ar);let o,s=this.direction.dot(Cr);if(s>0){if(r)return null;o=1}else{if(!(s<0))return null;o=-1,s=-s}Sr.subVectors(this.origin,t);const a=o*this.direction.dot(Ar.crossVectors(Sr,Ar));if(a<0)return null;const c=o*this.direction.dot(Mr.cross(Sr));if(c<0)return null;if(a+c>s)return null;const l=-o*Sr.dot(Cr);return l<0?null:this.at(l/s,i)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Tr{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=s,g[13]=a,g[2]=c,g[6]=l,g[10]=u,g[14]=h,g[3]=d,g[7]=f,g[11]=p,g[15]=m,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 Tr).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,r=1/Ir.setFromMatrixColumn(t,0).length(),i=1/Ir.setFromMatrixColumn(t,1).length(),o=1/Ir.setFromMatrixColumn(t,2).length();return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=0,e[4]=n[4]*i,e[5]=n[5]*i,e[6]=n[6]*i,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,n=t.x,r=t.y,i=t.z,o=Math.cos(n),s=Math.sin(n),a=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if("XYZ"===t.order){const t=o*l,n=o*u,r=s*l,i=s*u;e[0]=a*l,e[4]=-a*u,e[8]=c,e[1]=n+r*c,e[5]=t-i*c,e[9]=-s*a,e[2]=i-t*c,e[6]=r+n*c,e[10]=o*a}else if("YXZ"===t.order){const t=a*l,n=a*u,r=c*l,i=c*u;e[0]=t+i*s,e[4]=r*s-n,e[8]=o*c,e[1]=o*u,e[5]=o*l,e[9]=-s,e[2]=n*s-r,e[6]=i+t*s,e[10]=o*a}else if("ZXY"===t.order){const t=a*l,n=a*u,r=c*l,i=c*u;e[0]=t-i*s,e[4]=-o*u,e[8]=r+n*s,e[1]=n+r*s,e[5]=o*l,e[9]=i-t*s,e[2]=-o*c,e[6]=s,e[10]=o*a}else if("ZYX"===t.order){const t=o*l,n=o*u,r=s*l,i=s*u;e[0]=a*l,e[4]=r*c-n,e[8]=t*c+i,e[1]=a*u,e[5]=i*c+t,e[9]=n*c-r,e[2]=-c,e[6]=s*a,e[10]=o*a}else if("YZX"===t.order){const t=o*a,n=o*c,r=s*a,i=s*c;e[0]=a*l,e[4]=i-t*u,e[8]=r*u+n,e[1]=u,e[5]=o*l,e[9]=-s*l,e[2]=-c*l,e[6]=n*u+r,e[10]=t-i*u}else if("XZY"===t.order){const t=o*a,n=o*c,r=s*a,i=s*c;e[0]=a*l,e[4]=-u,e[8]=c*l,e[1]=t*u+i,e[5]=o*l,e[9]=n*u-r,e[2]=r*u-n,e[6]=s*l,e[10]=i*u+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Lr,t,Rr)}lookAt(t,e,n){const r=this.elements;return kr.subVectors(t,e),0===kr.lengthSq()&&(kr.z=1),kr.normalize(),Or.crossVectors(n,kr),0===Or.lengthSq()&&(1===Math.abs(n.z)?kr.x+=1e-4:kr.z+=1e-4,kr.normalize(),Or.crossVectors(n,kr)),Or.normalize(),Br.crossVectors(kr,Or),r[0]=Or.x,r[4]=Br.x,r[8]=kr.x,r[1]=Or.y,r[5]=Br.y,r[9]=kr.y,r[2]=Or.z,r[6]=Br.z,r[10]=kr.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,r=e.elements,i=this.elements,o=n[0],s=n[4],a=n[8],c=n[12],l=n[1],u=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],y=n[7],_=n[11],b=n[15],x=r[0],w=r[4],S=r[8],M=r[12],A=r[1],C=r[5],E=r[9],T=r[13],I=r[2],P=r[6],L=r[10],R=r[14],O=r[3],B=r[7],k=r[11],D=r[15];return i[0]=o*x+s*A+a*I+c*O,i[4]=o*w+s*C+a*P+c*B,i[8]=o*S+s*E+a*L+c*k,i[12]=o*M+s*T+a*R+c*D,i[1]=l*x+u*A+h*I+d*O,i[5]=l*w+u*C+h*P+d*B,i[9]=l*S+u*E+h*L+d*k,i[13]=l*M+u*T+h*R+d*D,i[2]=f*x+p*A+m*I+g*O,i[6]=f*w+p*C+m*P+g*B,i[10]=f*S+p*E+m*L+g*k,i[14]=f*M+p*T+m*R+g*D,i[3]=v*x+y*A+_*I+b*O,i[7]=v*w+y*C+_*P+b*B,i[11]=v*S+y*E+_*L+b*k,i[15]=v*M+y*T+_*R+b*D,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],r=t[8],i=t[12],o=t[1],s=t[5],a=t[9],c=t[13],l=t[2],u=t[6],h=t[10],d=t[14];return t[3]*(+i*a*u-r*c*u-i*s*h+n*c*h+r*s*d-n*a*d)+t[7]*(+e*a*d-e*c*h+i*o*h-r*o*d+r*c*l-i*a*l)+t[11]*(+e*c*u-e*s*d-i*o*u+n*o*d+i*s*l-n*c*l)+t[15]*(-r*s*l-e*a*u+e*s*h+r*o*u-n*o*h+n*a*l)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=e,r[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],l=t[8],u=t[9],h=t[10],d=t[11],f=t[12],p=t[13],m=t[14],g=t[15],v=u*m*c-p*h*c+p*a*d-s*m*d-u*a*g+s*h*g,y=f*h*c-l*m*c-f*a*d+o*m*d+l*a*g-o*h*g,_=l*p*c-f*u*c+f*s*d-o*p*d-l*s*g+o*u*g,b=f*u*a-l*p*a-f*s*h+o*p*h+l*s*m-o*u*m,x=e*v+n*y+r*_+i*b;if(0===x)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/x;return t[0]=v*w,t[1]=(p*h*i-u*m*i-p*r*d+n*m*d+u*r*g-n*h*g)*w,t[2]=(s*m*i-p*a*i+p*r*c-n*m*c-s*r*g+n*a*g)*w,t[3]=(u*a*i-s*h*i-u*r*c+n*h*c+s*r*d-n*a*d)*w,t[4]=y*w,t[5]=(l*m*i-f*h*i+f*r*d-e*m*d-l*r*g+e*h*g)*w,t[6]=(f*a*i-o*m*i-f*r*c+e*m*c+o*r*g-e*a*g)*w,t[7]=(o*h*i-l*a*i+l*r*c-e*h*c-o*r*d+e*a*d)*w,t[8]=_*w,t[9]=(f*u*i-l*p*i-f*n*d+e*p*d+l*n*g-e*u*g)*w,t[10]=(o*p*i-f*s*i+f*n*c-e*p*c-o*n*g+e*s*g)*w,t[11]=(l*s*i-o*u*i-l*n*c+e*u*c+o*n*d-e*s*d)*w,t[12]=b*w,t[13]=(l*p*r-f*u*r+f*n*h-e*p*h-l*n*m+e*u*m)*w,t[14]=(f*s*r-o*p*r-f*n*a+e*p*a+o*n*m-e*s*m)*w,t[15]=(o*u*r-l*s*r+l*n*a-e*u*a-o*n*h+e*s*h)*w,this}scale(t){const e=this.elements,n=t.x,r=t.y,i=t.z;return e[0]*=n,e[4]*=r,e[8]*=i,e[1]*=n,e[5]*=r,e[9]*=i,e[2]*=n,e[6]*=r,e[10]*=i,e[3]*=n,e[7]*=r,e[11]*=i,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),r=Math.sin(e),i=1-n,o=t.x,s=t.y,a=t.z,c=i*o,l=i*s;return this.set(c*o+n,c*s-r*a,c*a+r*s,0,c*s+r*a,l*s+n,l*a-r*o,0,c*a-r*s,l*a+r*o,i*a*a+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n){return this.set(1,e,n,0,t,1,n,0,t,e,1,0,0,0,0,1),this}compose(t,e,n){const r=this.elements,i=e._x,o=e._y,s=e._z,a=e._w,c=i+i,l=o+o,u=s+s,h=i*c,d=i*l,f=i*u,p=o*l,m=o*u,g=s*u,v=a*c,y=a*l,_=a*u,b=n.x,x=n.y,w=n.z;return r[0]=(1-(p+g))*b,r[1]=(d+_)*b,r[2]=(f-y)*b,r[3]=0,r[4]=(d-_)*x,r[5]=(1-(h+g))*x,r[6]=(m+v)*x,r[7]=0,r[8]=(f+y)*w,r[9]=(m-v)*w,r[10]=(1-(h+p))*w,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,e,n){const r=this.elements;let i=Ir.set(r[0],r[1],r[2]).length();const o=Ir.set(r[4],r[5],r[6]).length(),s=Ir.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),t.x=r[12],t.y=r[13],t.z=r[14],Pr.copy(this);const a=1/i,c=1/o,l=1/s;return Pr.elements[0]*=a,Pr.elements[1]*=a,Pr.elements[2]*=a,Pr.elements[4]*=c,Pr.elements[5]*=c,Pr.elements[6]*=c,Pr.elements[8]*=l,Pr.elements[9]*=l,Pr.elements[10]*=l,e.setFromRotationMatrix(Pr),n.x=i,n.y=o,n.z=s,this}makePerspective(t,e,n,r,i,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const s=this.elements,a=2*i/(e-t),c=2*i/(n-r),l=(e+t)/(e-t),u=(n+r)/(n-r),h=-(o+i)/(o-i),d=-2*o*i/(o-i);return s[0]=a,s[4]=0,s[8]=l,s[12]=0,s[1]=0,s[5]=c,s[9]=u,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=d,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(t,e,n,r,i,o){const s=this.elements,a=1/(e-t),c=1/(n-r),l=1/(o-i),u=(e+t)*a,h=(n+r)*c,d=(o+i)*l;return s[0]=2*a,s[4]=0,s[8]=0,s[12]=-u,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=-2*l,s[14]=-d,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<16;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}Tr.prototype.isMatrix4=!0;const Ir=new qn,Pr=new Tr,Lr=new qn(0,0,0),Rr=new qn(1,1,1),Or=new qn,Br=new qn,kr=new qn,Dr=new Tr,Fr=new Jn;class Nr{constructor(t=0,e=0,n=0,r=Nr.DefaultOrder){this._x=t,this._y=e,this._z=n,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._order=r||this._order,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e,n){const r=jn.clamp,i=t.elements,o=i[0],s=i[4],a=i[8],c=i[1],l=i[5],u=i[9],h=i[2],d=i[6],f=i[10];switch(e=e||this._order){case"XYZ":this._y=Math.asin(r(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-r(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,f),this._z=Math.atan2(c,l)):(this._y=Math.atan2(-h,o),this._z=0);break;case"ZXY":this._x=Math.asin(r(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(c,o));break;case"ZYX":this._y=Math.asin(-r(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(c,o)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(r(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(a,f));break;case"XZY":this._z=Math.asin(-r(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-u,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!1!==n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return Dr.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Dr,e,n)}setFromVector3(t,e){return this.set(t.x,t.y,t.z,e||this._order)}reorder(t){return Fr.setFromEuler(this),this.setFromQuaternion(Fr,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}toVector3(t){return t?t.set(this._x,this._y,this._z):new qn(this._x,this._y,this._z)}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}Nr.prototype.isEuler=!0,Nr.DefaultOrder="XYZ",Nr.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class jr{constructor(){this.mask=1}set(t){this.mask=1<<t|0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!=(this.mask&t.mask)}}let Ur=0;const zr=new qn,Gr=new Jn,Hr=new Tr,Wr=new qn,Vr=new qn,Zr=new qn,Qr=new Jn,Xr=new qn(1,0,0),Yr=new qn(0,1,0),Jr=new qn(0,0,1),qr={type:"added"},Kr={type:"removed"};function $r(){Object.defineProperty(this,"id",{value:Ur++}),this.uuid=jn.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=$r.DefaultUp.clone();const t=new qn,e=new Nr,n=new Jn,r=new qn(1,1,1);e._onChange((function(){n.setFromEuler(e,!1)})),n._onChange((function(){e.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Tr},normalMatrix:{value:new zn}}),this.matrix=new Tr,this.matrixWorld=new Tr,this.matrixAutoUpdate=$r.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new jr,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}$r.DefaultUp=new qn(0,1,0),$r.DefaultMatrixAutoUpdate=!0,$r.prototype=Object.assign(Object.create(Dn.prototype),{constructor:$r,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(t,e){return Gr.setFromAxisAngle(t,e),this.quaternion.multiply(Gr),this},rotateOnWorldAxis:function(t,e){return Gr.setFromAxisAngle(t,e),this.quaternion.premultiply(Gr),this},rotateX:function(t){return this.rotateOnAxis(Xr,t)},rotateY:function(t){return this.rotateOnAxis(Yr,t)},rotateZ:function(t){return this.rotateOnAxis(Jr,t)},translateOnAxis:function(t,e){return zr.copy(t).applyQuaternion(this.quaternion),this.position.add(zr.multiplyScalar(e)),this},translateX:function(t){return this.translateOnAxis(Xr,t)},translateY:function(t){return this.translateOnAxis(Yr,t)},translateZ:function(t){return this.translateOnAxis(Jr,t)},localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(t){return t.applyMatrix4(Hr.copy(this.matrixWorld).invert())},lookAt:function(t,e,n){t.isVector3?Wr.copy(t):Wr.set(t,e,n);const r=this.parent;this.updateWorldMatrix(!0,!1),Vr.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Hr.lookAt(Vr,Wr,this.up):Hr.lookAt(Wr,Vr,this.up),this.quaternion.setFromRotationMatrix(Hr),r&&(Hr.extractRotation(r.matrixWorld),Gr.setFromRotationMatrix(Hr),this.quaternion.premultiply(Gr.invert()))},add:function(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(qr)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(Kr)),this},clear:function(){for(let t=0;t<this.children.length;t++){const e=this.children[t];e.parent=null,e.dispatchEvent(Kr)}return this.children.length=0,this},attach:function(t){return this.updateWorldMatrix(!0,!1),Hr.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),Hr.multiply(t.parent.matrixWorld)),t.applyMatrix4(Hr),this.add(t),t.updateWorldMatrix(!1,!0),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(let n=0,r=this.children.length;n<r;n++){const r=this.children[n].getObjectByProperty(t,e);if(void 0!==r)return r}},getWorldPosition:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),t=new Jn),this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Vr,t,Zr),t},getWorldScale:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Vr,Qr,t),t},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);const e=this.children;for(let n=0,r=e.length;n<r;n++)e[n].traverse(t)},traverseVisible:function(t){if(!1===this.visible)return;t(this);const e=this.children;for(let n=0,r=e.length;n<r;n++)e[n].traverseVisible(t)},traverseAncestors:function(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let n=0,r=e.length;n<r;n++)e[n].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){const n=this.parent;if(!0===t&&null!==n&&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===e){const t=this.children;for(let e=0,n=t.length;e<n;e++)t[e].updateWorldMatrix(!1,!0)}},toJSON:function(t){const e=void 0===t||"string"==typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const r={};function i(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),!0===this.castShadow&&(r.castShadow=!0),!0===this.receiveShadow&&(r.receiveShadow=!0),!1===this.visible&&(r.visible=!1),!1===this.frustumCulled&&(r.frustumCulled=!1),0!==this.renderOrder&&(r.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isMesh||this.isLine||this.isPoints){r.geometry=i(t.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 e=0,r=n.length;e<r;e++){const r=n[e];i(t.shapes,r)}else i(t.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(i(t.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let n=0,r=this.material.length;n<r;n++)e.push(i(t.materials,this.material[n]));r.material=e}else r.material=i(t.materials,this.material);if(this.children.length>0){r.children=[];for(let e=0;e<this.children.length;e++)r.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){r.animations=[];for(let e=0;e<this.animations.length;e++){const n=this.animations[e];r.animations.push(i(t.animations,n))}}if(e){const e=o(t.geometries),r=o(t.materials),i=o(t.textures),s=o(t.images),a=o(t.shapes),c=o(t.skeletons),l=o(t.animations);e.length>0&&(n.geometries=e),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),s.length>0&&(n.images=s),a.length>0&&(n.shapes=a),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l)}return n.object=r,n;function o(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e<t.children.length;e++){const n=t.children[e];this.add(n.clone())}return this}});const ti=new qn,ei=new qn,ni=new zn;class ri{constructor(t=new qn(1,0,0),e=0){this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const r=ti.subVectors(n,e).cross(ei.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return void 0===e&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new qn),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){void 0===e&&(console.warn("THREE.Plane: .intersectLine() target is now required"),e=new qn);const n=t.delta(ti),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const i=-(t.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:e.copy(n).multiplyScalar(i).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return void 0===t&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new qn),t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||ni.getNormalMatrix(t),r=this.coplanarPoint(ti).applyMatrix4(t),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}ri.prototype.isPlane=!0;const ii=new qn,oi=new qn,si=new qn,ai=new qn,ci=new qn,li=new qn,ui=new qn,hi=new qn,di=new qn,fi=new qn;class pi{constructor(t=new qn,e=new qn,n=new qn){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,r){void 0===r&&(console.warn("THREE.Triangle: .getNormal() target is now required"),r=new qn),r.subVectors(n,e),ii.subVectors(t,e),r.cross(ii);const i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(t,e,n,r,i){ii.subVectors(r,e),oi.subVectors(n,e),si.subVectors(t,e);const o=ii.dot(ii),s=ii.dot(oi),a=ii.dot(si),c=oi.dot(oi),l=oi.dot(si),u=o*c-s*s;if(void 0===i&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),i=new qn),0===u)return i.set(-2,-1,-1);const h=1/u,d=(c*a-s*l)*h,f=(o*l-s*a)*h;return i.set(1-d-f,f,d)}static containsPoint(t,e,n,r){return this.getBarycoord(t,e,n,r,ai),ai.x>=0&&ai.y>=0&&ai.x+ai.y<=1}static getUV(t,e,n,r,i,o,s,a){return this.getBarycoord(t,e,n,r,ai),a.set(0,0),a.addScaledVector(i,ai.x),a.addScaledVector(o,ai.y),a.addScaledVector(s,ai.z),a}static isFrontFacing(t,e,n,r){return ii.subVectors(n,e),oi.subVectors(t,e),ii.cross(oi).dot(r)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return ii.subVectors(this.c,this.b),oi.subVectors(this.a,this.b),.5*ii.cross(oi).length()}getMidpoint(t){return void 0===t&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new qn),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return pi.getNormal(this.a,this.b,this.c,t)}getPlane(t){return void 0===t&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new ri),t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return pi.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,r,i){return pi.getUV(t,this.a,this.b,this.c,e,n,r,i)}containsPoint(t){return pi.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return pi.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){void 0===e&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),e=new qn);const n=this.a,r=this.b,i=this.c;let o,s;ci.subVectors(r,n),li.subVectors(i,n),hi.subVectors(t,n);const a=ci.dot(hi),c=li.dot(hi);if(a<=0&&c<=0)return e.copy(n);di.subVectors(t,r);const l=ci.dot(di),u=li.dot(di);if(l>=0&&u<=l)return e.copy(r);const h=a*u-l*c;if(h<=0&&a>=0&&l<=0)return o=a/(a-l),e.copy(n).addScaledVector(ci,o);fi.subVectors(t,i);const d=ci.dot(fi),f=li.dot(fi);if(f>=0&&d<=f)return e.copy(i);const p=d*c-a*f;if(p<=0&&c>=0&&f<=0)return s=c/(c-f),e.copy(n).addScaledVector(li,s);const m=l*f-d*u;if(m<=0&&u-l>=0&&d-f>=0)return ui.subVectors(i,r),s=(u-l)/(u-l+(d-f)),e.copy(r).addScaledVector(ui,s);const g=1/(m+p+h);return o=p*g,s=h*g,e.copy(n).addScaledVector(ci,o).addScaledVector(li,s)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let mi=0;function gi(){Object.defineProperty(this,"id",{value:mi++}),this.uuid=jn.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=b,this.side=p,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=B,this.blendDst=k,this.blendEquation=A,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=W,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Mn,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=un,this.stencilZFail=un,this.stencilZPass=un,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.alphaTest=0,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}gi.prototype=Object.assign(Object.create(Dn.prototype),{constructor:gi,isMaterial:!0,onBeforeCompile:function(){},customProgramCacheKey:function(){return this.onBeforeCompile.toString()},setValues:function(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===v;continue}const r=this[e];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]=n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}},toJSON:function(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(t){const e=[];for(const n in t){const r=t[n];delete r.metadata,e.push(r)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(n.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,n.refractionRatio=this.refractionRatio,void 0!==this.combine&&(n.combine=this.combine),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==b&&(n.blending=this.blending),this.side!==p&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(n.morphTargets=!0),!0===this.morphNormals&&(n.morphNormals=!0),!0===this.skinning&&(n.skinning=!0),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e){const e=r(t.textures),i=r(t.images);e.length>0&&(n.textures=e),i.length>0&&(n.images=i)}return n},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let r=0;r!==t;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(gi.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}});const vi={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},yi={h:0,s:0,l:0},_i={h:0,s:0,l:0};function bi(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function xi(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function wi(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class Si{constructor(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setHSL(t,e,n){if(t=jn.euclideanModulo(t,1),e=jn.clamp(e,0,1),n=jn.clamp(n,0,1),0===e)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+e):n+e-n*e,i=2*n-r;this.r=bi(i,r,t+1/3),this.g=bi(i,r,t),this.b=bi(i,r,t-1/3)}return this}setStyle(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(t)){let t;const r=n[1],i=n[2];switch(r){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,e(t[4]),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,e(t[4]),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i)){const n=parseFloat(t[1])/360,r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100;return e(t[4]),this.setHSL(n,r,i)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],e=t.length;if(3===e)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===e)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this}setColorName(t){const e=vi[t];return void 0!==e?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copyGammaToLinear(t,e=2){return this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this}copyLinearToGamma(t,e=2){const n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this}convertGammaToLinear(t){return this.copyGammaToLinear(this,t),this}convertLinearToGamma(t){return this.copyLinearToGamma(this,t),this}copySRGBToLinear(t){return this.r=xi(t.r),this.g=xi(t.g),this.b=xi(t.b),this}copyLinearToSRGB(t){return this.r=wi(t.r),this.g=wi(t.g),this.b=wi(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(t){void 0===t&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});const e=this.r,n=this.g,r=this.b,i=Math.max(e,n,r),o=Math.min(e,n,r);let s,a;const c=(o+i)/2;if(o===i)s=0,a=0;else{const t=i-o;switch(a=c<=.5?t/(i+o):t/(2-i-o),i){case e:s=(n-r)/t+(n<r?6:0);break;case n:s=(r-e)/t+2;break;case r:s=(e-n)/t+4}s/=6}return t.h=s,t.s=a,t.l=c,t}getStyle(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}offsetHSL(t,e,n){return this.getHSL(yi),yi.h+=t,yi.s+=e,yi.l+=n,this.setHSL(yi.h,yi.s,yi.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(yi),t.getHSL(_i);const n=jn.lerp(yi.h,_i.h,e),r=jn.lerp(yi.s,_i.s,e),i=jn.lerp(yi.l,_i.l,e);return this.setHSL(n,r,i),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}Si.NAMES=vi,Si.prototype.isColor=!0,Si.prototype.r=1,Si.prototype.g=1,Si.prototype.b=1;class Mi extends gi{constructor(t){super(),this.type="MeshBasicMaterial",this.color=new Si(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=Y,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this}}Mi.prototype.isMeshBasicMaterial=!0;const Ai=new qn,Ci=new Un;function Ei(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.usage=An,this.updateRange={offset:0,count:-1},this.version=0}function Ti(t,e,n){Ei.call(this,new Int8Array(t),e,n)}function Ii(t,e,n){Ei.call(this,new Uint8Array(t),e,n)}function Pi(t,e,n){Ei.call(this,new Uint8ClampedArray(t),e,n)}function Li(t,e,n){Ei.call(this,new Int16Array(t),e,n)}function Ri(t,e,n){Ei.call(this,new Uint16Array(t),e,n)}function Oi(t,e,n){Ei.call(this,new Int32Array(t),e,n)}function Bi(t,e,n){Ei.call(this,new Uint32Array(t),e,n)}function ki(t,e,n){Ei.call(this,new Uint16Array(t),e,n)}function Di(t,e,n){Ei.call(this,new Float32Array(t),e,n)}function Fi(t,e,n){Ei.call(this,new Float64Array(t),e,n)}function Ni(t){if(0===t.length)return-1/0;let e=t[0];for(let n=1,r=t.length;n<r;++n)t[n]>e&&(e=t[n]);return e}Object.defineProperty(Ei.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Ei.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[t+r]=e.array[n+r];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),i=new Si),e[n++]=i.r,e[n++]=i.g,e[n++]=i.b}return this},copyVector2sArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),i=new Un),e[n++]=i.x,e[n++]=i.y}return this},copyVector3sArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),i=new qn),e[n++]=i.x,e[n++]=i.y,e[n++]=i.z}return this},copyVector4sArray:function(t){const e=this.array;let n=0;for(let r=0,i=t.length;r<i;r++){let i=t[r];void 0===i&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),i=new Qn),e[n++]=i.x,e[n++]=i.y,e[n++]=i.z,e[n++]=i.w}return this},applyMatrix3:function(t){if(2===this.itemSize)for(let e=0,n=this.count;e<n;e++)Ci.fromBufferAttribute(this,e),Ci.applyMatrix3(t),this.setXY(e,Ci.x,Ci.y);else if(3===this.itemSize)for(let e=0,n=this.count;e<n;e++)Ai.fromBufferAttribute(this,e),Ai.applyMatrix3(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},applyMatrix4:function(t){for(let e=0,n=this.count;e<n;e++)Ai.x=this.getX(e),Ai.y=this.getY(e),Ai.z=this.getZ(e),Ai.applyMatrix4(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},applyNormalMatrix:function(t){for(let e=0,n=this.count;e<n;e++)Ai.x=this.getX(e),Ai.y=this.getY(e),Ai.z=this.getZ(e),Ai.applyNormalMatrix(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},transformDirection:function(t){for(let e=0,n=this.count;e<n;e++)Ai.x=this.getX(e),Ai.y=this.getY(e),Ai.z=this.getZ(e),Ai.transformDirection(t),this.setXYZ(e,Ai.x,Ai.y,Ai.z);return this},set:function(t,e=0){return this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this},setXYZW:function(t,e,n,r,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this.array[t+3]=i,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==An&&(t.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(t.updateRange=this.updateRange),t}}),Ti.prototype=Object.create(Ei.prototype),Ti.prototype.constructor=Ti,Ii.prototype=Object.create(Ei.prototype),Ii.prototype.constructor=Ii,Pi.prototype=Object.create(Ei.prototype),Pi.prototype.constructor=Pi,Li.prototype=Object.create(Ei.prototype),Li.prototype.constructor=Li,Ri.prototype=Object.create(Ei.prototype),Ri.prototype.constructor=Ri,Oi.prototype=Object.create(Ei.prototype),Oi.prototype.constructor=Oi,Bi.prototype=Object.create(Ei.prototype),Bi.prototype.constructor=Bi,ki.prototype=Object.create(Ei.prototype),ki.prototype.constructor=ki,ki.prototype.isFloat16BufferAttribute=!0,Di.prototype=Object.create(Ei.prototype),Di.prototype.constructor=Di,Fi.prototype=Object.create(Ei.prototype),Fi.prototype.constructor=Fi;const ji={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function Ui(t,e){return new ji[t](e)}let zi=0;const Gi=new Tr,Hi=new $r,Wi=new qn,Vi=new tr,Zi=new tr,Qi=new qn;function Xi(){Object.defineProperty(this,"id",{value:zi++}),this.uuid=jn.generateUUID(),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={}}Xi.prototype=Object.assign(Object.create(Dn.prototype),{constructor:Xi,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){return Array.isArray(t)?this.index=new(Ni(t)>65535?Bi:Ri)(t,1):this.index=t,this},getAttribute:function(t){return this.attributes[t]},setAttribute:function(t,e){return this.attributes[t]=e,this},deleteAttribute:function(t){return delete this.attributes[t],this},hasAttribute:function(t){return void 0!==this.attributes[t]},addGroup:function(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix4:function(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const e=(new zn).getNormalMatrix(t);n.applyNormalMatrix(e),n.needsUpdate=!0}const r=this.attributes.tangent;return void 0!==r&&(r.transformDirection(t),r.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(t){return Gi.makeRotationX(t),this.applyMatrix4(Gi),this},rotateY:function(t){return Gi.makeRotationY(t),this.applyMatrix4(Gi),this},rotateZ:function(t){return Gi.makeRotationZ(t),this.applyMatrix4(Gi),this},translate:function(t,e,n){return Gi.makeTranslation(t,e,n),this.applyMatrix4(Gi),this},scale:function(t,e,n){return Gi.makeScale(t,e,n),this.applyMatrix4(Gi),this},lookAt:function(t){return Hi.lookAt(t),Hi.updateMatrix(),this.applyMatrix4(Hi.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Wi).negate(),this.translate(Wi.x,Wi.y,Wi.z),this},setFromPoints:function(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];e.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new Di(e,3)),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new tr);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new qn(-1/0,-1/0,-1/0),new qn(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let t=0,n=e.length;t<n;t++){const n=e[t];Vi.setFromBufferAttribute(n),this.morphTargetsRelative?(Qi.addVectors(this.boundingBox.min,Vi.min),this.boundingBox.expandByPoint(Qi),Qi.addVectors(this.boundingBox.max,Vi.max),this.boundingBox.expandByPoint(Qi)):(this.boundingBox.expandByPoint(Vi.min),this.boundingBox.expandByPoint(Vi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new _r);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new qn,1/0);if(t){const n=this.boundingSphere.center;if(Vi.setFromBufferAttribute(t),e)for(let t=0,n=e.length;t<n;t++){const n=e[t];Zi.setFromBufferAttribute(n),this.morphTargetsRelative?(Qi.addVectors(Vi.min,Zi.min),Vi.expandByPoint(Qi),Qi.addVectors(Vi.max,Zi.max),Vi.expandByPoint(Qi)):(Vi.expandByPoint(Zi.min),Vi.expandByPoint(Zi.max))}Vi.getCenter(n);let r=0;for(let e=0,i=t.count;e<i;e++)Qi.fromBufferAttribute(t,e),r=Math.max(r,n.distanceToSquared(Qi));if(e)for(let i=0,o=e.length;i<o;i++){const o=e[i],s=this.morphTargetsRelative;for(let e=0,i=o.count;e<i;e++)Qi.fromBufferAttribute(o,e),s&&(Wi.fromBufferAttribute(t,e),Qi.add(Wi)),r=Math.max(r,n.distanceToSquared(Qi))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeTangents:function(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.array,r=e.position.array,i=e.normal.array,o=e.uv.array,s=r.length/3;void 0===e.tangent&&this.setAttribute("tangent",new Ei(new Float32Array(4*s),4));const a=e.tangent.array,c=[],l=[];for(let t=0;t<s;t++)c[t]=new qn,l[t]=new qn;const u=new qn,h=new qn,d=new qn,f=new Un,p=new Un,m=new Un,g=new qn,v=new qn;function y(t,e,n){u.fromArray(r,3*t),h.fromArray(r,3*e),d.fromArray(r,3*n),f.fromArray(o,2*t),p.fromArray(o,2*e),m.fromArray(o,2*n),h.sub(u),d.sub(u),p.sub(f),m.sub(f);const i=1/(p.x*m.y-m.x*p.y);isFinite(i)&&(g.copy(h).multiplyScalar(m.y).addScaledVector(d,-p.y).multiplyScalar(i),v.copy(d).multiplyScalar(p.x).addScaledVector(h,-m.x).multiplyScalar(i),c[t].add(g),c[e].add(g),c[n].add(g),l[t].add(v),l[e].add(v),l[n].add(v))}let _=this.groups;0===_.length&&(_=[{start:0,count:n.length}]);for(let t=0,e=_.length;t<e;++t){const e=_[t],r=e.start;for(let t=r,i=r+e.count;t<i;t+=3)y(n[t+0],n[t+1],n[t+2])}const b=new qn,x=new qn,w=new qn,S=new qn;function M(t){w.fromArray(i,3*t),S.copy(w);const e=c[t];b.copy(e),b.sub(w.multiplyScalar(w.dot(e))).normalize(),x.crossVectors(S,e);const n=x.dot(l[t])<0?-1:1;a[4*t]=b.x,a[4*t+1]=b.y,a[4*t+2]=b.z,a[4*t+3]=n}for(let t=0,e=_.length;t<e;++t){const e=_[t],r=e.start;for(let t=r,i=r+e.count;t<i;t+=3)M(n[t+0]),M(n[t+1]),M(n[t+2])}},computeVertexNormals:function(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let n=this.getAttribute("normal");if(void 0===n)n=new Ei(new Float32Array(3*e.count),3),this.setAttribute("normal",n);else for(let t=0,e=n.count;t<e;t++)n.setXYZ(t,0,0,0);const r=new qn,i=new qn,o=new qn,s=new qn,a=new qn,c=new qn,l=new qn,u=new qn;if(t)for(let h=0,d=t.count;h<d;h+=3){const d=t.getX(h+0),f=t.getX(h+1),p=t.getX(h+2);r.fromBufferAttribute(e,d),i.fromBufferAttribute(e,f),o.fromBufferAttribute(e,p),l.subVectors(o,i),u.subVectors(r,i),l.cross(u),s.fromBufferAttribute(n,d),a.fromBufferAttribute(n,f),c.fromBufferAttribute(n,p),s.add(l),a.add(l),c.add(l),n.setXYZ(d,s.x,s.y,s.z),n.setXYZ(f,a.x,a.y,a.z),n.setXYZ(p,c.x,c.y,c.z)}else for(let t=0,s=e.count;t<s;t+=3)r.fromBufferAttribute(e,t+0),i.fromBufferAttribute(e,t+1),o.fromBufferAttribute(e,t+2),l.subVectors(o,i),u.subVectors(r,i),l.cross(u),n.setXYZ(t+0,l.x,l.y,l.z),n.setXYZ(t+1,l.x,l.y,l.z),n.setXYZ(t+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}},merge:function(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const n=this.attributes;for(const r in n){if(void 0===t.attributes[r])continue;const i=n[r].array,o=t.attributes[r],s=o.array,a=o.itemSize*e,c=Math.min(s.length,i.length-a);for(let t=0,e=a;t<c;t++,e++)i[e]=s[t]}return this},normalizeNormals:function(){const t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)Qi.fromBufferAttribute(t,e),Qi.normalize(),t.setXYZ(e,Qi.x,Qi.y,Qi.z)},toNonIndexed:function(){function t(t,e){const n=t.array,r=t.itemSize,i=t.normalized,o=new n.constructor(e.length*r);let s=0,a=0;for(let t=0,i=e.length;t<i;t++){s=e[t]*r;for(let t=0;t<r;t++)o[a++]=n[s++]}return new Ei(o,r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new Xi,n=this.index.array,r=this.attributes;for(const i in r){const o=t(r[i],n);e.setAttribute(i,o)}const i=this.morphAttributes;for(const r in i){const o=[],s=i[r];for(let e=0,r=s.length;e<r;e++){const r=t(s[e],n);o.push(r)}e.morphAttributes[r]=o}e.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let t=0,n=o.length;t<n;t++){const n=o[t];e.addGroup(n.start,n.count,n.materialIndex)}return e},toJSON:function(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const e in n){const r=n[e];t.data.attributes[e]=r.toJSON(t.data)}const r={};let i=!1;for(const e in this.morphAttributes){const n=this.morphAttributes[e],o=[];for(let e=0,r=n.length;e<r;e++){const r=n[e];o.push(r.toJSON(t.data))}o.length>0&&(r[e]=o,i=!0)}i&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const s=this.boundingSphere;return null!==s&&(t.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),t},clone:function(){return(new Xi).copy(this)},copy:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const r=t.attributes;for(const t in r){const n=r[t];this.setAttribute(t,n.clone(e))}const i=t.morphAttributes;for(const t in i){const n=[],r=i[t];for(let t=0,i=r.length;t<i;t++)n.push(r[t].clone(e));this.morphAttributes[t]=n}this.morphTargetsRelative=t.morphTargetsRelative;const o=t.groups;for(let t=0,e=o.length;t<e;t++){const e=o[t];this.addGroup(e.start,e.count,e.materialIndex)}const s=t.boundingBox;null!==s&&(this.boundingBox=s.clone());const a=t.boundingSphere;return null!==a&&(this.boundingSphere=a.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});const Yi=new Tr,Ji=new Er,qi=new _r,Ki=new qn,$i=new qn,to=new qn,eo=new qn,no=new qn,ro=new qn,io=new qn,oo=new qn,so=new qn,ao=new Un,co=new Un,lo=new Un,uo=new qn,ho=new qn;function fo(t=new Xi,e=new Mi){$r.call(this),this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}function po(t,e,n,r,i,o,s,a,c,l,u,h){Ki.fromBufferAttribute(i,l),$i.fromBufferAttribute(i,u),to.fromBufferAttribute(i,h);const d=t.morphTargetInfluences;if(e.morphTargets&&o&&d){io.set(0,0,0),oo.set(0,0,0),so.set(0,0,0);for(let t=0,e=o.length;t<e;t++){const e=d[t],n=o[t];0!==e&&(eo.fromBufferAttribute(n,l),no.fromBufferAttribute(n,u),ro.fromBufferAttribute(n,h),s?(io.addScaledVector(eo,e),oo.addScaledVector(no,e),so.addScaledVector(ro,e)):(io.addScaledVector(eo.sub(Ki),e),oo.addScaledVector(no.sub($i),e),so.addScaledVector(ro.sub(to),e)))}Ki.add(io),$i.add(oo),to.add(so)}t.isSkinnedMesh&&e.skinning&&(t.boneTransform(l,Ki),t.boneTransform(u,$i),t.boneTransform(h,to));const f=function(t,e,n,r,i,o,s,a){let c;if(c=e.side===m?r.intersectTriangle(s,o,i,!0,a):r.intersectTriangle(i,o,s,e.side!==g,a),null===c)return null;ho.copy(a),ho.applyMatrix4(t.matrixWorld);const l=n.ray.origin.distanceTo(ho);return l<n.near||l>n.far?null:{distance:l,point:ho.clone(),object:t}}(t,e,n,r,Ki,$i,to,uo);if(f){a&&(ao.fromBufferAttribute(a,l),co.fromBufferAttribute(a,u),lo.fromBufferAttribute(a,h),f.uv=pi.getUV(uo,Ki,$i,to,ao,co,lo,new Un)),c&&(ao.fromBufferAttribute(c,l),co.fromBufferAttribute(c,u),lo.fromBufferAttribute(c,h),f.uv2=pi.getUV(uo,Ki,$i,to,ao,co,lo,new Un));const t={a:l,b:u,c:h,normal:new qn,materialIndex:0};pi.getNormal(Ki,$i,to,t.normal),f.face=t}return f}fo.prototype=Object.assign(Object.create($r.prototype),{constructor:fo,isMesh:!0,copy:function(t){return $r.prototype.copy.call(this,t),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(t,e){const n=this.geometry,r=this.material,i=this.matrixWorld;if(void 0===r)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),qi.copy(n.boundingSphere),qi.applyMatrix4(i),!1===t.ray.intersectsSphere(qi))return;if(Yi.copy(i).invert(),Ji.copy(t.ray).applyMatrix4(Yi),null!==n.boundingBox&&!1===Ji.intersectsBox(n.boundingBox))return;let o;if(n.isBufferGeometry){const i=n.index,s=n.attributes.position,a=n.morphAttributes.position,c=n.morphTargetsRelative,l=n.attributes.uv,u=n.attributes.uv2,h=n.groups,d=n.drawRange;if(null!==i)if(Array.isArray(r))for(let n=0,f=h.length;n<f;n++){const f=h[n],p=r[f.materialIndex];for(let n=Math.max(f.start,d.start),r=Math.min(f.start+f.count,d.start+d.count);n<r;n+=3){const r=i.getX(n),h=i.getX(n+1),d=i.getX(n+2);o=po(this,p,t,Ji,s,a,c,l,u,r,h,d),o&&(o.faceIndex=Math.floor(n/3),o.face.materialIndex=f.materialIndex,e.push(o))}}else{const n=Math.max(0,d.start),h=Math.min(i.count,d.start+d.count);for(let d=n,f=h;d<f;d+=3){const n=i.getX(d),h=i.getX(d+1),f=i.getX(d+2);o=po(this,r,t,Ji,s,a,c,l,u,n,h,f),o&&(o.faceIndex=Math.floor(d/3),e.push(o))}}else if(void 0!==s)if(Array.isArray(r))for(let n=0,i=h.length;n<i;n++){const i=h[n],f=r[i.materialIndex];for(let n=Math.max(i.start,d.start),r=Math.min(i.start+i.count,d.start+d.count);n<r;n+=3)o=po(this,f,t,Ji,s,a,c,l,u,n,n+1,n+2),o&&(o.faceIndex=Math.floor(n/3),o.face.materialIndex=i.materialIndex,e.push(o))}else for(let n=Math.max(0,i.start),i=Math.min(s.count,i.start+i.count);n<i;n+=3)o=po(this,r,t,Ji,s,a,c,l,u,n,n+1,n+2),o&&(o.faceIndex=Math.floor(n/3),e.push(o))}else n.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}});class mo extends Xi{constructor(t=1,e=1,n=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const s=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const a=[],c=[],l=[],u=[];let h=0,d=0;function f(t,e,n,r,i,o,f,p,m,g,v){const y=o/m,_=f/g,b=o/2,x=f/2,w=p/2,S=m+1,M=g+1;let A=0,C=0;const E=new qn;for(let o=0;o<M;o++){const s=o*_-x;for(let a=0;a<S;a++){const h=a*y-b;E[t]=h*r,E[e]=s*i,E[n]=w,c.push(E.x,E.y,E.z),E[t]=0,E[e]=0,E[n]=p>0?1:-1,l.push(E.x,E.y,E.z),u.push(a/m),u.push(1-o/g),A+=1}}for(let t=0;t<g;t++)for(let e=0;e<m;e++){const n=h+e+S*t,r=h+e+S*(t+1),i=h+(e+1)+S*(t+1),o=h+(e+1)+S*t;a.push(n,r,o),a.push(r,i,o),C+=6}s.addGroup(d,C,v),d+=C,h+=A}f("z","y","x",-1,-1,n,e,t,o,i,0),f("z","y","x",1,-1,n,e,-t,o,i,1),f("x","z","y",1,1,t,n,e,r,o,2),f("x","z","y",1,-1,t,n,-e,r,o,3),f("x","y","z",1,-1,t,e,n,r,i,4),f("x","y","z",-1,-1,t,e,-n,r,i,5),this.setIndex(a),this.setAttribute("position",new Di(c,3)),this.setAttribute("normal",new Di(l,3)),this.setAttribute("uv",new Di(u,2))}}function go(t){const e={};for(const n in t){e[n]={};for(const r in t[n]){const i=t[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?e[n][r]=i.clone():Array.isArray(i)?e[n][r]=i.slice():e[n][r]=i}}return e}function vo(t){const e={};for(let n=0;n<t.length;n++){const r=go(t[n]);for(const t in r)e[t]=r[t]}return e}const yo={clone:go,merge:vo};function _o(t){gi.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},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.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function bo(){$r.call(this),this.type="Camera",this.matrixWorldInverse=new Tr,this.projectionMatrix=new Tr,this.projectionMatrixInverse=new Tr}function xo(t=50,e=1,n=.1,r=2e3){bo.call(this),this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}_o.prototype=Object.create(gi.prototype),_o.prototype.constructor=_o,_o.prototype.isShaderMaterial=!0,_o.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=go(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this},_o.prototype.toJSON=function(t){const e=gi.prototype.toJSON.call(this,t);e.glslVersion=this.glslVersion,e.uniforms={};for(const n in this.uniforms){const r=this.uniforms[n].value;r&&r.isTexture?e.uniforms[n]={type:"t",value:r.toJSON(t).uuid}:r&&r.isColor?e.uniforms[n]={type:"c",value:r.getHex()}:r&&r.isVector2?e.uniforms[n]={type:"v2",value:r.toArray()}:r&&r.isVector3?e.uniforms[n]={type:"v3",value:r.toArray()}:r&&r.isVector4?e.uniforms[n]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?e.uniforms[n]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?e.uniforms[n]={type:"m4",value:r.toArray()}:e.uniforms[n]={value:r}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const t in this.extensions)!0===this.extensions[t]&&(n[t]=!0);return Object.keys(n).length>0&&(e.extensions=n),e},bo.prototype=Object.assign(Object.create($r.prototype),{constructor:bo,isCamera:!0,copy:function(t,e){return $r.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new qn),this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){$r.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()},updateWorldMatrix:function(t,e){$r.prototype.updateWorldMatrix.call(this,t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()},clone:function(){return(new this.constructor).copy(this)}}),xo.prototype=Object.assign(Object.create(bo.prototype),{constructor:xo,isPerspectiveCamera:!0,copy:function(t,e){return bo.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){const e=.5*this.getFilmHeight()/t;this.fov=2*jn.RAD2DEG*Math.atan(e),this.updateProjectionMatrix()},getFocalLength:function(){const t=Math.tan(.5*jn.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*jn.RAD2DEG*Math.atan(Math.tan(.5*jn.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,n,r,i,o){this.aspect=t/e,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=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){const t=this.near;let e=t*Math.tan(.5*jn.DEG2RAD*this.fov)/this.zoom,n=2*e,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,s=o.fullHeight;i+=o.offsetX*r/t,e-=o.offsetY*n/s,r*=o.width/t,n*=o.height/s}const s=this.filmOffset;0!==s&&(i+=t*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()},toJSON:function(t){const e=$r.prototype.toJSON.call(this,t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}});class wo extends $r{constructor(t,e,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const r=new xo(90,1,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new qn(1,0,0)),this.add(r);const i=new xo(90,1,t,e);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new qn(-1,0,0)),this.add(i);const o=new xo(90,1,t,e);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(new qn(0,1,0)),this.add(o);const s=new xo(90,1,t,e);s.layers=this.layers,s.up.set(0,0,-1),s.lookAt(new qn(0,-1,0)),this.add(s);const a=new xo(90,1,t,e);a.layers=this.layers,a.up.set(0,-1,0),a.lookAt(new qn(0,0,1)),this.add(a);const c=new xo(90,1,t,e);c.layers=this.layers,c.up.set(0,-1,0),c.lookAt(new qn(0,0,-1)),this.add(c)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,o,s,a,c]=this.children,l=t.xr.enabled,u=t.getRenderTarget();t.xr.enabled=!1;const h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,r),t.setRenderTarget(n,1),t.render(e,i),t.setRenderTarget(n,2),t.render(e,o),t.setRenderTarget(n,3),t.render(e,s),t.setRenderTarget(n,4),t.render(e,a),n.texture.generateMipmaps=h,t.setRenderTarget(n,5),t.render(e,c),t.setRenderTarget(u),t.xr.enabled=l}}class So extends Vn{constructor(t,e,n,r,i,o,s,a,c,l){super(t=void 0!==t?t:[],e=void 0!==e?e:ot,n,r,i,o,s=void 0!==s?s:Ft,a,c,l),this._needsFlipEnvMap=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}So.prototype.isCubeTexture=!0;class Mo extends Xn{constructor(t,e,n){Number.isInteger(e)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),e=n),super(t,t,e),e=e||{},this.texture=new So(void 0,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:_t,this.texture._needsFlipEnvMap=!1}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.format=Nt,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={tEquirect:{value:null}},r="\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",i="\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",o=new mo(5,5,5),s=new _o({name:"CubemapFromEquirect",uniforms:go(n),vertexShader:r,fragmentShader:i,side:m,blending:_});s.uniforms.tEquirect.value=e;const a=new fo(o,s),c=e.minFilter;return e.minFilter===wt&&(e.minFilter=_t),new wo(1,10,this).update(t,a),e.minFilter=c,a.geometry.dispose(),a.material.dispose(),this}clear(t,e,n,r){const i=t.getRenderTarget();for(let i=0;i<6;i++)t.setRenderTarget(this,i),t.clear(e,n,r);t.setRenderTarget(i)}}Mo.prototype.isWebGLCubeRenderTarget=!0;class Ao extends Vn{constructor(t,e,n,r,i,o,s,a,c,l,u,h){super(null,o,s,a,c,l,r,i,u,h),this.image={data:t||null,width:e||1,height:n||1},this.magFilter=void 0!==c?c:pt,this.minFilter=void 0!==l?l:pt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}}Ao.prototype.isDataTexture=!0;const Co=new _r,Eo=new qn;class To{constructor(t=new ri,e=new ri,n=new ri,r=new ri,i=new ri,o=new ri){this.planes=[t,e,n,r,i,o]}set(t,e,n,r,i,o){const s=this.planes;return s[0].copy(t),s[1].copy(e),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[5].copy(o),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],l=n[6],u=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14],y=n[15];return e[0].setComponents(s-r,u-a,p-h,y-m).normalize(),e[1].setComponents(s+r,u+a,p+h,y+m).normalize(),e[2].setComponents(s+i,u+c,p+d,y+g).normalize(),e[3].setComponents(s-i,u-c,p-d,y-g).normalize(),e[4].setComponents(s-o,u-l,p-f,y-v).normalize(),e[5].setComponents(s+o,u+l,p+f,y+v).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Co.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Co)}intersectsSprite(t){return Co.center.set(0,0,0),Co.radius=.7071067811865476,Co.applyMatrix4(t.matrixWorld),this.intersectsSphere(Co)}intersectsSphere(t){const e=this.planes,n=t.center,r=-t.radius;for(let t=0;t<6;t++)if(e[t].distanceToPoint(n)<r)return!1;return!0}intersectsBox(t){const e=this.planes;for(let n=0;n<6;n++){const r=e[n];if(Eo.x=r.normal.x>0?t.max.x:t.min.x,Eo.y=r.normal.y>0?t.max.y:t.min.y,Eo.z=r.normal.z>0?t.max.z:t.min.z,r.distanceToPoint(Eo)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Io(){let t=null,e=!1,n=null,r=null;function i(e,o){n(e,o),r=t.requestAnimationFrame(i)}return{start:function(){!0!==e&&null!==n&&(r=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Po(t,e){const n=e.isWebGL2,r=new WeakMap;function i(e,r){const i=e.array,o=e.usage,s=t.createBuffer();t.bindBuffer(r,s),t.bufferData(r,i,o),e.onUploadCallback();let a=5126;return i instanceof Float32Array?a=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?e.isFloat16BufferAttribute?n?a=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):a=5123:i instanceof Int16Array?a=5122:i instanceof Uint32Array?a=5125:i instanceof Int32Array?a=5124:i instanceof Int8Array?a=5120:i instanceof Uint8Array&&(a=5121),{buffer:s,type:a,bytesPerElement:i.BYTES_PER_ELEMENT,version:e.version}}function o(e,r,i){const o=r.array,s=r.updateRange;t.bindBuffer(i,e),-1===s.count?t.bufferSubData(i,0,o):(n?t.bufferSubData(i,s.offset*o.BYTES_PER_ELEMENT,o,s.offset,s.count):t.bufferSubData(i,s.offset*o.BYTES_PER_ELEMENT,o.subarray(s.offset,s.offset+s.count)),s.count=-1)}return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),r.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=r.get(e);n&&(t.deleteBuffer(n.buffer),r.delete(e))},update:function(t,e){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 n=r.get(t);void 0===n?r.set(t,i(t,e)):n.version<t.version&&(o(n.buffer,t,e),n.version=t.version)}}}class Lo extends Xi{constructor(t=1,e=1,n=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:r};const i=t/2,o=e/2,s=Math.floor(n),a=Math.floor(r),c=s+1,l=a+1,u=t/s,h=e/a,d=[],f=[],p=[],m=[];for(let t=0;t<l;t++){const e=t*h-o;for(let n=0;n<c;n++){const r=n*u-i;f.push(r,-e,0),p.push(0,0,1),m.push(n/s),m.push(1-t/a)}}for(let t=0;t<a;t++)for(let e=0;e<s;e++){const n=e+c*t,r=e+c*(t+1),i=e+1+c*(t+1),o=e+1+c*t;d.push(n,r,o),d.push(r,i,o)}this.setIndex(d),this.setAttribute("position",new Di(f,3)),this.setAttribute("normal",new Di(p,3)),this.setAttribute("uv",new Di(m,2))}}const Ro={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\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 );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\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\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_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}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * 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}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat 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_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\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( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + 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 = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\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; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\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 max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\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};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\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}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\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 linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.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}",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.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\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\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\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + 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 ), m0, cubeUV_maxMipLevel );\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, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( 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 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\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#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\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\tuniform int maxMipLevel;\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 )\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 )\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:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\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} 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\tfogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\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 fogDepth;\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 texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\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 GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\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 getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.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 getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.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 getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.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 GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",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;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\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 GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).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_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\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.specularRoughness;\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 GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * 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:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\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\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, 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\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\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, 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\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( 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, geometry, 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, geometry, 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\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\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 ], geometry );\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, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, 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 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\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\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\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, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).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( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.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 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",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}\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 linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( 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 invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - 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, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#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\tvarying vec4 vSpotShadowCoord[ 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\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\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;\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}\n#endif",shadowmap_pars_vertex:"#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\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ 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 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:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\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, vSpotShadowCoord[ 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\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\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, vUv );\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;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn 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; }",transmissionmap_fragment:"#ifdef USE_TRANSMISSIONMAP\n\ttotalTransmission *= texture2D( transmissionMap, vUv ).r;\n#endif",transmissionmap_pars_fragment:"#ifdef USE_TRANSMISSIONMAP\n\tuniform sampler2D transmissionMap;\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",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}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_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}",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 <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 <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}",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}",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 <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\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\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}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\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}",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 <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 <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\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>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_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}",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 <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_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 <cube_uv_reflection_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 <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\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\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\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_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 <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\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 <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_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 <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_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 <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_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 <uv2_vertex>\n\t#include <color_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 <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 <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\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 <fog_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 <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;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_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#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\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 <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 <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\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\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\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 <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_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 <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 <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\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_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#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_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 <uv2_vertex>\n\t#include <color_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#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#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\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_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 <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_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 <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\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 <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\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_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 <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_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#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#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\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n\t#define TRANSMISSION\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef TRANSMISSION\n\tuniform float transmission;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#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\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <transmissionmap_pars_fragment>\n#include <bsdfs>\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 <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_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#ifdef TRANSMISSION\n\t\tfloat totalTransmission = transmission;\n\t#endif\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 <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 <transmissionmap_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 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#ifdef TRANSMISSION\n\t\tdiffuseColor.a *= mix( saturate( 1. - totalTransmission + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) ), 1.0, metalness );\n\t#endif\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_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#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\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_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 <uv2_vertex>\n\t#include <color_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#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\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}",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#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\n#include <packing>\n#include <uv_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}",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#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\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 <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#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\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( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\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 <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\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_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>\nvoid main() {\n\t#include <color_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}",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 <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_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 <shadowmap_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 <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\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_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}"},Oo={common:{diffuse:{value:new Si(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new zn},uv2Transform:{value:new zn},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new Un(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Si(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:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{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 Si(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new zn}},sprite:{diffuse:{value:new Si(15658734)},opacity:{value:1},center:{value:new Un(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new zn}}},Bo={basic:{uniforms:vo([Oo.common,Oo.specularmap,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.fog]),vertexShader:Ro.meshbasic_vert,fragmentShader:Ro.meshbasic_frag},lambert:{uniforms:vo([Oo.common,Oo.specularmap,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)}}]),vertexShader:Ro.meshlambert_vert,fragmentShader:Ro.meshlambert_frag},phong:{uniforms:vo([Oo.common,Oo.specularmap,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)},specular:{value:new Si(1118481)},shininess:{value:30}}]),vertexShader:Ro.meshphong_vert,fragmentShader:Ro.meshphong_frag},standard:{uniforms:vo([Oo.common,Oo.envmap,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.roughnessmap,Oo.metalnessmap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ro.meshphysical_vert,fragmentShader:Ro.meshphysical_frag},toon:{uniforms:vo([Oo.common,Oo.aomap,Oo.lightmap,Oo.emissivemap,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.gradientmap,Oo.fog,Oo.lights,{emissive:{value:new Si(0)}}]),vertexShader:Ro.meshtoon_vert,fragmentShader:Ro.meshtoon_frag},matcap:{uniforms:vo([Oo.common,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,Oo.fog,{matcap:{value:null}}]),vertexShader:Ro.meshmatcap_vert,fragmentShader:Ro.meshmatcap_frag},points:{uniforms:vo([Oo.points,Oo.fog]),vertexShader:Ro.points_vert,fragmentShader:Ro.points_frag},dashed:{uniforms:vo([Oo.common,Oo.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ro.linedashed_vert,fragmentShader:Ro.linedashed_frag},depth:{uniforms:vo([Oo.common,Oo.displacementmap]),vertexShader:Ro.depth_vert,fragmentShader:Ro.depth_frag},normal:{uniforms:vo([Oo.common,Oo.bumpmap,Oo.normalmap,Oo.displacementmap,{opacity:{value:1}}]),vertexShader:Ro.normal_vert,fragmentShader:Ro.normal_frag},sprite:{uniforms:vo([Oo.sprite,Oo.fog]),vertexShader:Ro.sprite_vert,fragmentShader:Ro.sprite_frag},background:{uniforms:{uvTransform:{value:new zn},t2D:{value:null}},vertexShader:Ro.background_vert,fragmentShader:Ro.background_frag},cube:{uniforms:vo([Oo.envmap,{opacity:{value:1}}]),vertexShader:Ro.cube_vert,fragmentShader:Ro.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ro.equirect_vert,fragmentShader:Ro.equirect_frag},distanceRGBA:{uniforms:vo([Oo.common,Oo.displacementmap,{referencePosition:{value:new qn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ro.distanceRGBA_vert,fragmentShader:Ro.distanceRGBA_frag},shadow:{uniforms:vo([Oo.lights,Oo.fog,{color:{value:new Si(0)},opacity:{value:1}}]),vertexShader:Ro.shadow_vert,fragmentShader:Ro.shadow_frag}};function ko(t,e,n,r,i){const o=new Si(0);let s,a,c=0,l=null,u=0,h=null;function d(t,e){n.buffers.color.setClear(t.r,t.g,t.b,e,i)}return{getClearColor:function(){return o},setClearColor:function(t,e=1){o.set(t),c=e,d(o,c)},getClearAlpha:function(){return c},setClearAlpha:function(t){c=t,d(o,c)},render:function(n,i,f,g){let v=!0===i.isScene?i.background:null;v&&v.isTexture&&(v=e.get(v));const y=t.xr,_=y.getSession&&y.getSession();_&&"additive"===_.environmentBlendMode&&(v=null),null===v?d(o,c):v&&v.isColor&&(d(v,1),g=!0),(t.autoClear||g)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===lt)?(void 0===a&&(a=new fo(new mo(1,1,1),new _o({name:"BackgroundCubeMaterial",uniforms:go(Bo.cube.uniforms),vertexShader:Bo.cube.vertexShader,fragmentShader:Bo.cube.fragmentShader,side:m,depthTest:!1,depthWrite:!1,fog:!1})),a.geometry.deleteAttribute("normal"),a.geometry.deleteAttribute("uv"),a.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(a.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(a)),a.material.uniforms.envMap.value=v,a.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v._needsFlipEnvMap?-1:1,l===v&&u===v.version&&h===t.toneMapping||(a.material.needsUpdate=!0,l=v,u=v.version,h=t.toneMapping),n.unshift(a,a.geometry,a.material,0,0,null)):v&&v.isTexture&&(void 0===s&&(s=new fo(new Lo(2,2),new _o({name:"BackgroundMaterial",uniforms:go(Bo.background.uniforms),vertexShader:Bo.background.vertexShader,fragmentShader:Bo.background.fragmentShader,side:p,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),Object.defineProperty(s.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(s)),s.material.uniforms.t2D.value=v,!0===v.matrixAutoUpdate&&v.updateMatrix(),s.material.uniforms.uvTransform.value.copy(v.matrix),l===v&&u===v.version&&h===t.toneMapping||(s.material.needsUpdate=!0,l=v,u=v.version,h=t.toneMapping),n.unshift(s,s.geometry,s.material,0,0,null))}}}function Do(t,e,n,r){const i=t.getParameter(34921),o=r.isWebGL2?null:e.get("OES_vertex_array_object"),s=r.isWebGL2||null!==o,a={},c=p(null);let l=c;function u(){return r.isWebGL2?t.createVertexArray():o.createVertexArrayOES()}function h(e){return r.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function d(e){return r.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function f(t,e,n){const r=!0===n.wireframe;let i=a[t.id];void 0===i&&(i={},a[t.id]=i);let o=i[e.id];void 0===o&&(o={},i[e.id]=o);let s=o[r];return void 0===s&&(s=p(u()),o[r]=s),s}function p(t){const e=[],n=[],r=[];for(let t=0;t<i;t++)e[t]=0,n[t]=0,r[t]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:n,attributeDivisors:r,object:t,attributes:{},index:null}}function m(){const t=l.newAttributes;for(let e=0,n=t.length;e<n;e++)t[e]=0}function g(t){v(t,0)}function v(n,i){const o=l.newAttributes,s=l.enabledAttributes,a=l.attributeDivisors;o[n]=1,0===s[n]&&(t.enableVertexAttribArray(n),s[n]=1),a[n]!==i&&((r.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[r.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,i),a[n]=i)}function y(){const e=l.newAttributes,n=l.enabledAttributes;for(let r=0,i=n.length;r<i;r++)n[r]!==e[r]&&(t.disableVertexAttribArray(r),n[r]=0)}function _(e,n,i,o,s,a){!0!==r.isWebGL2||5124!==i&&5125!==i?t.vertexAttribPointer(e,n,i,o,s,a):t.vertexAttribIPointer(e,n,i,s,a)}function b(i,o,s,a){if(!1===r.isWebGL2&&(i.isInstancedMesh||a.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;m();const c=a.attributes,l=s.getAttributes(),u=o.defaultAttributeValues;for(const e in l){const r=l[e];if(r>=0){const o=c[e];if(void 0!==o){const e=o.normalized,i=o.itemSize,s=n.get(o);if(void 0===s)continue;const c=s.buffer,l=s.type,u=s.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,s=n.stride,h=o.offset;n&&n.isInstancedInterleavedBuffer?(v(r,n.meshPerAttribute),void 0===a._maxInstanceCount&&(a._maxInstanceCount=n.meshPerAttribute*n.count)):g(r),t.bindBuffer(34962,c),_(r,i,l,e,s*u,h*u)}else o.isInstancedBufferAttribute?(v(r,o.meshPerAttribute),void 0===a._maxInstanceCount&&(a._maxInstanceCount=o.meshPerAttribute*o.count)):g(r),t.bindBuffer(34962,c),_(r,i,l,e,0,0)}else if("instanceMatrix"===e){const e=n.get(i.instanceMatrix);if(void 0===e)continue;const o=e.buffer,s=e.type;v(r+0,1),v(r+1,1),v(r+2,1),v(r+3,1),t.bindBuffer(34962,o),t.vertexAttribPointer(r+0,4,s,!1,64,0),t.vertexAttribPointer(r+1,4,s,!1,64,16),t.vertexAttribPointer(r+2,4,s,!1,64,32),t.vertexAttribPointer(r+3,4,s,!1,64,48)}else if("instanceColor"===e){const e=n.get(i.instanceColor);if(void 0===e)continue;const o=e.buffer,s=e.type;v(r,1),t.bindBuffer(34962,o),t.vertexAttribPointer(r,3,s,!1,12,0)}else if(void 0!==u){const n=u[e];if(void 0!==n)switch(n.length){case 2:t.vertexAttrib2fv(r,n);break;case 3:t.vertexAttrib3fv(r,n);break;case 4:t.vertexAttrib4fv(r,n);break;default:t.vertexAttrib1fv(r,n)}}}}y()}function x(){w(),l!==c&&(l=c,h(l.object))}function w(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:function(e,r,i,o,a){let c=!1;if(s){const t=f(o,i,r);l!==t&&(l=t,h(l.object)),c=function(t,e){const n=l.attributes,r=t.attributes;let i=0;for(const t in r){const e=n[t],o=r[t];if(void 0===e)return!0;if(e.attribute!==o)return!0;if(e.data!==o.data)return!0;i++}return l.attributesNum!==i||l.index!==e}(o,a),c&&function(t,e){const n={},r=t.attributes;let i=0;for(const t in r){const e=r[t],o={};o.attribute=e,e.data&&(o.data=e.data),n[t]=o,i++}l.attributes=n,l.attributesNum=i,l.index=e}(o,a)}else{const t=!0===r.wireframe;l.geometry===o.id&&l.program===i.id&&l.wireframe===t||(l.geometry=o.id,l.program=i.id,l.wireframe=t,c=!0)}!0===e.isInstancedMesh&&(c=!0),null!==a&&n.update(a,34963),c&&(b(e,r,i,o),null!==a&&t.bindBuffer(34963,n.get(a).buffer))},reset:x,resetDefaultState:w,dispose:function(){x();for(const t in a){const e=a[t];for(const t in e){const n=e[t];for(const t in n)d(n[t].object),delete n[t];delete e[t]}delete a[t]}},releaseStatesOfGeometry:function(t){if(void 0===a[t.id])return;const e=a[t.id];for(const t in e){const n=e[t];for(const t in n)d(n[t].object),delete n[t];delete e[t]}delete a[t.id]},releaseStatesOfProgram:function(t){for(const e in a){const n=a[e];if(void 0===n[t.id])continue;const r=n[t.id];for(const t in r)d(r[t].object),delete r[t];delete n[t.id]}},initAttributes:m,enableAttribute:g,disableUnusedAttributes:y}}function Fo(t,e,n,r){const i=r.isWebGL2;let o;this.setMode=function(t){o=t},this.render=function(e,r){t.drawArrays(o,e,r),n.update(r,o,1)},this.renderInstances=function(r,s,a){if(0===a)return;let c,l;if(i)c=t,l="drawArraysInstanced";else if(c=e.get("ANGLE_instanced_arrays"),l="drawArraysInstancedANGLE",null===c)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");c[l](o,r,s,a),n.update(s,o,a)}}function No(t,e,n){let r;function i(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const o="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let s=void 0!==n.precision?n.precision:"highp";const a=i(s);a!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",a,"instead."),s=a);const c=!0===n.logarithmicDepthBuffer,l=t.getParameter(34930),u=t.getParameter(35660),h=t.getParameter(3379),d=t.getParameter(34076),f=t.getParameter(34921),p=t.getParameter(36347),m=t.getParameter(36348),g=t.getParameter(36349),v=u>0,y=o||e.has("OES_texture_float");return{isWebGL2:o,getMaxAnisotropy:function(){if(void 0!==r)return r;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");r=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else r=0;return r},getMaxPrecision:i,precision:s,logarithmicDepthBuffer:c,maxTextures:l,maxVertexTextures:u,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:g,vertexTextures:v,floatFragmentTextures:y,floatVertexTextures:v&&y,maxSamples:o?t.getParameter(36183):0}}function jo(t){const e=this;let n=null,r=0,i=!1,o=!1;const s=new ri,a=new zn,c={value:null,needsUpdate:!1};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(t,n,r,i){const o=null!==t?t.length:0;let l=null;if(0!==o){if(l=c.value,!0!==i||null===l){const e=r+4*o,i=n.matrixWorldInverse;a.getNormalMatrix(i),(null===l||l.length<e)&&(l=new Float32Array(e));for(let e=0,n=r;e!==o;++e,n+=4)s.copy(t[e]).applyMatrix4(i,a),s.normal.toArray(l,n),l[n+3]=s.constant}c.value=l,c.needsUpdate=!0}return e.numPlanes=o,e.numIntersection=0,l}this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,o){const s=0!==t.length||e||0!==r||i;return i=e,n=u(t,o,0),r=t.length,s},this.beginShadows=function(){o=!0,u(null)},this.endShadows=function(){o=!1,l()},this.setState=function(e,s,a){const h=e.clippingPlanes,d=e.clipIntersection,f=e.clipShadows,p=t.get(e);if(!i||null===h||0===h.length||o&&!f)o?u(null):l();else{const t=o?0:r,e=4*t;let i=p.clippingState||null;c.value=i,i=u(h,s,e,a);for(let t=0;t!==e;++t)i[t]=n[t];p.clippingState=i,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function Uo(t){let e=new WeakMap;function n(t,e){return e===at?t.mapping=ot:e===ct&&(t.mapping=st),t}function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping;if(o===at||o===ct){if(e.has(i))return n(e.get(i).texture,i.mapping);{const o=i.image;if(o&&o.height>0){const s=t.getRenderTarget(),a=new Mo(o.height/2);return a.fromEquirectangularTexture(t,i),e.set(i,a),t.setRenderTarget(s),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){e=new WeakMap}}}function zo(t){const e={};function n(n){if(void 0!==e[n])return e[n];let r;switch(n){case"WEBGL_depth_texture":r=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=t.getExtension(n)}return e[n]=r,r}return{has:function(t){return null!==n(t)},init:function(t){t.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")},get:function(t){const e=n(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function Go(t,e,n,r){const i={},o=new WeakMap;function s(t){const a=t.target;null!==a.index&&e.remove(a.index);for(const t in a.attributes)e.remove(a.attributes[t]);a.removeEventListener("dispose",s),delete i[a.id];const c=o.get(a);c&&(e.remove(c),o.delete(a)),r.releaseStatesOfGeometry(a),!0===a.isInstancedBufferGeometry&&delete a._maxInstanceCount,n.memory.geometries--}function a(t){const n=[],r=t.index,i=t.attributes.position;let s=0;if(null!==r){const t=r.array;s=r.version;for(let e=0,r=t.length;e<r;e+=3){const r=t[e+0],i=t[e+1],o=t[e+2];n.push(r,i,i,o,o,r)}}else{const t=i.array;s=i.version;for(let e=0,r=t.length/3-1;e<r;e+=3){const t=e+0,r=e+1,i=e+2;n.push(t,r,r,i,i,t)}}const a=new(Ni(n)>65535?Bi:Ri)(n,1);a.version=s;const c=o.get(t);c&&e.remove(c),o.set(t,a)}return{get:function(t,e){return!0===i[e.id]||(e.addEventListener("dispose",s),i[e.id]=!0,n.memory.geometries++),e},update:function(t){const n=t.attributes;for(const t in n)e.update(n[t],34962);const r=t.morphAttributes;for(const t in r){const n=r[t];for(let t=0,r=n.length;t<r;t++)e.update(n[t],34962)}},getWireframeAttribute:function(t){const e=o.get(t);if(e){const n=t.index;null!==n&&e.version<n.version&&a(t)}else a(t);return o.get(t)}}}function Ho(t,e,n,r){const i=r.isWebGL2;let o,s,a;this.setMode=function(t){o=t},this.setIndex=function(t){s=t.type,a=t.bytesPerElement},this.render=function(e,r){t.drawElements(o,r,s,e*a),n.update(r,o,1)},this.renderInstances=function(r,c,l){if(0===l)return;let u,h;if(i)u=t,h="drawElementsInstanced";else if(u=e.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[h](o,c,s,r*a,l),n.update(c,o,l)}}function Wo(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,n,r){switch(e.calls++,n){case 4:e.triangles+=r*(t/3);break;case 1:e.lines+=r*(t/2);break;case 3:e.lines+=r*(t-1);break;case 2:e.lines+=r*t;break;case 0:e.points+=r*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}function Vo(t,e){return t[0]-e[0]}function Zo(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Qo(t){const e={},n=new Float32Array(8),r=[];for(let t=0;t<8;t++)r[t]=[t,0];return{update:function(i,o,s,a){const c=i.morphTargetInfluences,l=void 0===c?0:c.length;let u=e[o.id];if(void 0===u){u=[];for(let t=0;t<l;t++)u[t]=[t,0];e[o.id]=u}for(let t=0;t<l;t++){const e=u[t];e[0]=t,e[1]=c[t]}u.sort(Zo);for(let t=0;t<8;t++)t<l&&u[t][1]?(r[t][0]=u[t][0],r[t][1]=u[t][1]):(r[t][0]=Number.MAX_SAFE_INTEGER,r[t][1]=0);r.sort(Vo);const h=s.morphTargets&&o.morphAttributes.position,d=s.morphNormals&&o.morphAttributes.normal;let f=0;for(let t=0;t<8;t++){const e=r[t],i=e[0],s=e[1];i!==Number.MAX_SAFE_INTEGER&&s?(h&&o.getAttribute("morphTarget"+t)!==h[i]&&o.setAttribute("morphTarget"+t,h[i]),d&&o.getAttribute("morphNormal"+t)!==d[i]&&o.setAttribute("morphNormal"+t,d[i]),n[t]=s,f+=s):(h&&!0===o.hasAttribute("morphTarget"+t)&&o.deleteAttribute("morphTarget"+t),d&&!0===o.hasAttribute("morphNormal"+t)&&o.deleteAttribute("morphNormal"+t),n[t]=0)}const p=o.morphTargetsRelative?1:1-f;a.getUniforms().setValue(t,"morphTargetBaseInfluence",p),a.getUniforms().setValue(t,"morphTargetInfluences",n)}}}function Xo(t,e,n,r){let i=new WeakMap;function o(t){const e=t.target;e.removeEventListener("dispose",o),n.remove(e.instanceMatrix),null!==e.instanceColor&&n.remove(e.instanceColor)}return{update:function(t){const s=r.render.frame,a=t.geometry,c=e.get(t,a);return i.get(c)!==s&&(e.update(c),i.set(c,s)),t.isInstancedMesh&&(!1===t.hasEventListener("dispose",o)&&t.addEventListener("dispose",o),n.update(t.instanceMatrix,34962),null!==t.instanceColor&&n.update(t.instanceColor,34962)),c},dispose:function(){i=new WeakMap}}}Bo.physical={uniforms:vo([Bo.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Un(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new Si(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:Ro.meshphysical_vert,fragmentShader:Ro.meshphysical_frag};class Yo extends Vn{constructor(t=null,e=1,n=1,r=1){super(null),this.image={data:t,width:e,height:n,depth:r},this.magFilter=pt,this.minFilter=pt,this.wrapR=dt,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}}Yo.prototype.isDataTexture2DArray=!0;class Jo extends Vn{constructor(t=null,e=1,n=1,r=1){super(null),this.image={data:t,width:e,height:n,depth:r},this.magFilter=pt,this.minFilter=pt,this.wrapR=dt,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}}Jo.prototype.isDataTexture3D=!0;const qo=new Vn,Ko=new Yo,$o=new Jo,ts=new So,es=[],ns=[],rs=new Float32Array(16),is=new Float32Array(9),os=new Float32Array(4);function ss(t,e,n){const r=t[0];if(r<=0||r>0)return t;const i=e*n;let o=es[i];if(void 0===o&&(o=new Float32Array(i),es[i]=o),0!==e){r.toArray(o,0);for(let r=1,i=0;r!==e;++r)i+=n,t[r].toArray(o,i)}return o}function as(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function cs(t,e){for(let n=0,r=e.length;n<r;n++)t[n]=e[n]}function ls(t,e){let n=ns[e];void 0===n&&(n=new Int32Array(e),ns[e]=n);for(let r=0;r!==e;++r)n[r]=t.allocateTextureUnit();return n}function us(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function hs(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(as(n,e))return;t.uniform2fv(this.addr,e),cs(n,e)}}function ds(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(as(n,e))return;t.uniform3fv(this.addr,e),cs(n,e)}}function fs(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(as(n,e))return;t.uniform4fv(this.addr,e),cs(n,e)}}function ps(t,e){const n=this.cache,r=e.elements;if(void 0===r){if(as(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),cs(n,e)}else{if(as(n,r))return;os.set(r),t.uniformMatrix2fv(this.addr,!1,os),cs(n,r)}}function ms(t,e){const n=this.cache,r=e.elements;if(void 0===r){if(as(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),cs(n,e)}else{if(as(n,r))return;is.set(r),t.uniformMatrix3fv(this.addr,!1,is),cs(n,r)}}function gs(t,e){const n=this.cache,r=e.elements;if(void 0===r){if(as(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),cs(n,e)}else{if(as(n,r))return;rs.set(r),t.uniformMatrix4fv(this.addr,!1,rs),cs(n,r)}}function vs(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function ys(t,e){const n=this.cache;as(n,e)||(t.uniform2iv(this.addr,e),cs(n,e))}function _s(t,e){const n=this.cache;as(n,e)||(t.uniform3iv(this.addr,e),cs(n,e))}function bs(t,e){const n=this.cache;as(n,e)||(t.uniform4iv(this.addr,e),cs(n,e))}function xs(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function ws(t,e){const n=this.cache;as(n,e)||(t.uniform2uiv(this.addr,e),cs(n,e))}function Ss(t,e){const n=this.cache;as(n,e)||(t.uniform3uiv(this.addr,e),cs(n,e))}function Ms(t,e){const n=this.cache;as(n,e)||(t.uniform4uiv(this.addr,e),cs(n,e))}function As(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.safeSetTexture2D(e||qo,i)}function Cs(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture3D(e||$o,i)}function Es(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.safeSetTextureCube(e||ts,i)}function Ts(t,e,n){const r=this.cache,i=n.allocateTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture2DArray(e||Ko,i)}function Is(t,e){t.uniform1fv(this.addr,e)}function Ps(t,e){const n=ss(e,this.size,2);t.uniform2fv(this.addr,n)}function Ls(t,e){const n=ss(e,this.size,3);t.uniform3fv(this.addr,n)}function Rs(t,e){const n=ss(e,this.size,4);t.uniform4fv(this.addr,n)}function Os(t,e){const n=ss(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function Bs(t,e){const n=ss(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function ks(t,e){const n=ss(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function Ds(t,e){t.uniform1iv(this.addr,e)}function Fs(t,e){t.uniform2iv(this.addr,e)}function Ns(t,e){t.uniform3iv(this.addr,e)}function js(t,e){t.uniform4iv(this.addr,e)}function Us(t,e){t.uniform1uiv(this.addr,e)}function zs(t,e){t.uniform2uiv(this.addr,e)}function Gs(t,e){t.uniform3uiv(this.addr,e)}function Hs(t,e){t.uniform4uiv(this.addr,e)}function Ws(t,e,n){const r=e.length,i=ls(n,r);t.uniform1iv(this.addr,i);for(let t=0;t!==r;++t)n.safeSetTexture2D(e[t]||qo,i[t])}function Vs(t,e,n){const r=e.length,i=ls(n,r);t.uniform1iv(this.addr,i);for(let t=0;t!==r;++t)n.safeSetTextureCube(e[t]||ts,i[t])}function Zs(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=function(t){switch(t){case 5126:return us;case 35664:return hs;case 35665:return ds;case 35666:return fs;case 35674:return ps;case 35675:return ms;case 35676:return gs;case 5124:case 35670:return vs;case 35667:case 35671:return ys;case 35668:case 35672:return _s;case 35669:case 35673:return bs;case 5125:return xs;case 36294:return ws;case 36295:return Ss;case 36296:return Ms;case 35678:case 36198:case 36298:case 36306:case 35682:return As;case 35679:case 36299:case 36307:return Cs;case 35680:case 36300:case 36308:case 36293:return Es;case 36289:case 36303:case 36311:case 36292:return Ts}}(e.type)}function Qs(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return Is;case 35664:return Ps;case 35665:return Ls;case 35666:return Rs;case 35674:return Os;case 35675:return Bs;case 35676:return ks;case 5124:case 35670:return Ds;case 35667:case 35671:return Fs;case 35668:case 35672:return Ns;case 35669:case 35673:return js;case 5125:return Us;case 36294:return zs;case 36295:return Gs;case 36296:return Hs;case 35678:case 36198:case 36298:case 36306:case 35682:return Ws;case 35680:case 36300:case 36308:case 36293:return Vs}}(e.type)}function Xs(t){this.id=t,this.seq=[],this.map={}}Qs.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),cs(e,t)},Xs.prototype.setValue=function(t,e,n){const r=this.seq;for(let i=0,o=r.length;i!==o;++i){const o=r[i];o.setValue(t,e[o.id],n)}};const Ys=/(\w+)(\])?(\[|\.)?/g;function Js(t,e){t.seq.push(e),t.map[e.id]=e}function qs(t,e,n){const r=t.name,i=r.length;for(Ys.lastIndex=0;;){const o=Ys.exec(r),s=Ys.lastIndex;let a=o[1];const c="]"===o[2],l=o[3];if(c&&(a|=0),void 0===l||"["===l&&s+2===i){Js(n,void 0===l?new Zs(a,t,e):new Qs(a,t,e));break}{let t=n.map[a];void 0===t&&(t=new Xs(a),Js(n,t)),n=t}}}function Ks(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,35718);for(let r=0;r<n;++r){const n=t.getActiveUniform(e,r);qs(n,t.getUniformLocation(e,n.name),this)}}function $s(t,e,n){const r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),r}Ks.prototype.setValue=function(t,e,n,r){const i=this.map[e];void 0!==i&&i.setValue(t,n,r)},Ks.prototype.setOptional=function(t,e,n){const r=e[n];void 0!==r&&this.setValue(t,n,r)},Ks.upload=function(t,e,n,r){for(let i=0,o=e.length;i!==o;++i){const o=e[i],s=n[o.id];!1!==s.needsUpdate&&o.setValue(t,s.value,r)}},Ks.seqWithValue=function(t,e){const n=[];for(let r=0,i=t.length;r!==i;++r){const i=t[r];i.id in e&&n.push(i)}return n};let ta=0;function ea(t){switch(t){case Je:return["Linear","( value )"];case qe:return["sRGB","( value )"];case $e:return["RGBE","( value )"];case en:return["RGBM","( value, 7.0 )"];case nn:return["RGBM","( value, 16.0 )"];case rn:return["RGBD","( value, 256.0 )"];case Ke:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case tn:return["LogLuv","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}function na(t,e,n){const r=t.getShaderParameter(e,35713),i=t.getShaderInfoLog(e).trim();return r&&""===i?"":"THREE.WebGLShader: gl.getShaderInfoLog() "+n+"\n"+i+function(t){const e=t.split("\n");for(let t=0;t<e.length;t++)e[t]=t+1+": "+e[t];return e.join("\n")}(t.getShaderSource(e))}function ra(t,e){const n=ea(e);return"vec4 "+t+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function ia(t,e){const n=ea(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function oa(t,e){let n;switch(e){case $:n="Linear";break;case tt:n="Reinhard";break;case et:n="OptimizedCineon";break;case nt:n="ACESFilmic";break;case rt:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function sa(t){return""!==t}function aa(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function ca(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const la=/^[ \t]*#include +<([\w\d./]+)>/gm;function ua(t){return t.replace(la,ha)}function ha(t,e){const n=Ro[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return ua(n)}const da=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,fa=/#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 pa(t){return t.replace(fa,ga).replace(da,ma)}function ma(t,e,n,r){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),ga(0,e,n,r)}function ga(t,e,n,r){let i="";for(let t=parseInt(e);t<parseInt(n);t++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+t+" ]").replace(/UNROLLED_LOOP_INDEX/g,t);return i}function va(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function ya(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===h?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===d?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===f&&(e="SHADOWMAP_TYPE_VSM"),e}function _a(t,e,n,r){const i=t.getContext(),o=n.defines;let s=n.vertexShader,a=n.fragmentShader;const c=ya(n),l=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case ot:case st:e="ENVMAP_TYPE_CUBE";break;case lt:case ut:e="ENVMAP_TYPE_CUBE_UV"}return e}(n),u=function(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case st:case ut:e="ENVMAP_MODE_REFRACTION"}return e}(n),h=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case Y:e="ENVMAP_BLENDING_MULTIPLY";break;case J:e="ENVMAP_BLENDING_MIX";break;case q:e="ENVMAP_BLENDING_ADD"}return e}(n),d=t.gammaFactor>0?t.gammaFactor:1,f=n.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUV||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(sa).join("\n")}(n),p=function(t){const e=[];for(const n in t){const r=t[n];!1!==r&&e.push("#define "+n+" "+r)}return e.join("\n")}(o),m=i.createProgram();let g,v,y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=[p].filter(sa).join("\n"),g.length>0&&(g+="\n"),v=[f,p].filter(sa).join("\n"),v.length>0&&(v+="\n")):(g=[va(n),"#define SHADER_NAME "+n.shaderName,p,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+d,"#define MAX_BONES "+n.maxBones,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 "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",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_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\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(sa).join("\n"),v=[f,va(n),"#define SHADER_NAME "+n.shaderName,p,n.alphaTest?"#define ALPHATEST "+n.alphaTest+(n.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+d,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 "+l:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.sheen?"#define USE_SHEEN":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",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 "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==K?"#define TONE_MAPPING":"",n.toneMapping!==K?Ro.tonemapping_pars_fragment:"",n.toneMapping!==K?oa("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",Ro.encodings_pars_fragment,n.map?ra("mapTexelToLinear",n.mapEncoding):"",n.matcap?ra("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?ra("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?ra("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.lightMap?ra("lightMapTexelToLinear",n.lightMapEncoding):"",ia("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(sa).join("\n")),s=ua(s),s=aa(s,n),s=ca(s,n),a=ua(a),a=aa(a,n),a=ca(a,n),s=pa(s),a=pa(a),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",g=["#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===kn?"":"out highp vec4 pc_fragColor;",n.glslVersion===kn?"":"#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"+v);const _=y+v+a,b=$s(i,35633,y+g+s),x=$s(i,35632,_);if(i.attachShader(m,b),i.attachShader(m,x),void 0!==n.index0AttributeName?i.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(m,0,"position"),i.linkProgram(m),t.debug.checkShaderErrors){const t=i.getProgramInfoLog(m).trim(),e=i.getShaderInfoLog(b).trim(),n=i.getShaderInfoLog(x).trim();let r=!0,o=!0;if(!1===i.getProgramParameter(m,35714)){r=!1;const e=na(i,b,"vertex"),n=na(i,x,"fragment");console.error("THREE.WebGLProgram: shader error: ",i.getError(),"35715",i.getProgramParameter(m,35715),"gl.getProgramInfoLog",t,e,n)}else""!==t?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",t):""!==e&&""!==n||(o=!1);o&&(this.diagnostics={runnable:r,programLog:t,vertexShader:{log:e,prefix:g},fragmentShader:{log:n,prefix:v}})}let w,S;return i.deleteShader(b),i.deleteShader(x),this.getUniforms=function(){return void 0===w&&(w=new Ks(i,m)),w},this.getAttributes=function(){return void 0===S&&(S=function(t,e){const n={},r=t.getProgramParameter(e,35721);for(let i=0;i<r;i++){const r=t.getActiveAttrib(e,i).name;n[r]=t.getAttribLocation(e,r)}return n}(i,m)),S},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(m),this.program=void 0},this.name=n.shaderName,this.id=ta++,this.cacheKey=e,this.usedTimes=1,this.program=m,this.vertexShader=b,this.fragmentShader=x,this}function ba(t,e,n,r,i,o){const s=[],a=r.isWebGL2,c=r.logarithmicDepthBuffer,l=r.floatVertexTextures,u=r.maxVertexUniforms,h=r.vertexTextures;let d=r.precision;const f={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"},p=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexAlphas","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","sheen","transmissionMap"];function v(t){const e=t.skeleton.bones;if(l)return 1024;{const t=u,n=Math.floor((t-20)/4),r=Math.min(n,e.length);return r<e.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+e.length+" bones. This GPU supports "+r+"."),0):r}}function y(t){let e;return t&&t.isTexture?e=t.encoding:t&&t.isWebGLRenderTarget?(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),e=t.texture.encoding):e=Je,e}return{getParameters:function(i,s,u,p,_){const b=p.fog,x=i.isMeshStandardMaterial?p.environment:null,w=e.get(i.envMap||x),S=f[i.type],M=_.isSkinnedMesh?v(_):0;let A,C;if(null!==i.precision&&(d=r.getMaxPrecision(i.precision),d!==i.precision&&console.warn("THREE.WebGLProgram.getParameters:",i.precision,"not supported, using",d,"instead.")),S){const t=Bo[S];A=t.vertexShader,C=t.fragmentShader}else A=i.vertexShader,C=i.fragmentShader;const E=t.getRenderTarget();return{isWebGL2:a,shaderID:S,shaderName:i.type,vertexShader:A,fragmentShader:C,defines:i.defines,isRawShaderMaterial:!0===i.isRawShaderMaterial,glslVersion:i.glslVersion,precision:d,instancing:!0===_.isInstancedMesh,instancingColor:!0===_.isInstancedMesh&&null!==_.instanceColor,supportsVertexTextures:h,outputEncoding:null!==E?y(E.texture):t.outputEncoding,map:!!i.map,mapEncoding:y(i.map),matcap:!!i.matcap,matcapEncoding:y(i.matcap),envMap:!!w,envMapMode:w&&w.mapping,envMapEncoding:y(w),envMapCubeUV:!!w&&(w.mapping===lt||w.mapping===ut),lightMap:!!i.lightMap,lightMapEncoding:y(i.lightMap),aoMap:!!i.aoMap,emissiveMap:!!i.emissiveMap,emissiveMapEncoding:y(i.emissiveMap),bumpMap:!!i.bumpMap,normalMap:!!i.normalMap,objectSpaceNormalMap:i.normalMapType===cn,tangentSpaceNormalMap:i.normalMapType===an,clearcoatMap:!!i.clearcoatMap,clearcoatRoughnessMap:!!i.clearcoatRoughnessMap,clearcoatNormalMap:!!i.clearcoatNormalMap,displacementMap:!!i.displacementMap,roughnessMap:!!i.roughnessMap,metalnessMap:!!i.metalnessMap,specularMap:!!i.specularMap,alphaMap:!!i.alphaMap,gradientMap:!!i.gradientMap,sheen:!!i.sheen,transmissionMap:!!i.transmissionMap,combine:i.combine,vertexTangents:i.normalMap&&i.vertexTangents,vertexColors:i.vertexColors,vertexAlphas:!0===i.vertexColors&&_.geometry.attributes.color&&4===_.geometry.attributes.color.itemSize,vertexUvs:!!(i.map||i.bumpMap||i.normalMap||i.specularMap||i.alphaMap||i.emissiveMap||i.roughnessMap||i.metalnessMap||i.clearcoatMap||i.clearcoatRoughnessMap||i.clearcoatNormalMap||i.displacementMap||i.transmissionMap),uvsVertexOnly:!(i.map||i.bumpMap||i.normalMap||i.specularMap||i.alphaMap||i.emissiveMap||i.roughnessMap||i.metalnessMap||i.clearcoatNormalMap||i.transmissionMap||!i.displacementMap),fog:!!b,useFog:i.fog,fogExp2:b&&b.isFogExp2,flatShading:!!i.flatShading,sizeAttenuation:i.sizeAttenuation,logarithmicDepthBuffer:c,skinning:i.skinning&&M>0,maxBones:M,useVertexTexture:l,morphTargets:i.morphTargets,morphNormals:i.morphNormals,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:i.dithering,shadowMapEnabled:t.shadowMap.enabled&&u.length>0,shadowMapType:t.shadowMap.type,toneMapping:i.toneMapped?t.toneMapping:K,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:i.premultipliedAlpha,alphaTest:i.alphaTest,doubleSided:i.side===g,flipSided:i.side===m,depthPacking:void 0!==i.depthPacking&&i.depthPacking,index0AttributeName:i.index0AttributeName,extensionDerivatives:i.extensions&&i.extensions.derivatives,extensionFragDepth:i.extensions&&i.extensions.fragDepth,extensionDrawBuffers:i.extensions&&i.extensions.drawBuffers,extensionShaderTextureLOD:i.extensions&&i.extensions.shaderTextureLOD,rendererExtensionFragDepth:a||n.has("EXT_frag_depth"),rendererExtensionDrawBuffers:a||n.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:a||n.has("EXT_shader_texture_lod"),customProgramCacheKey:i.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.fragmentShader),n.push(e.vertexShader)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);if(!1===e.isRawShaderMaterial){for(let t=0;t<p.length;t++)n.push(e[p[t]]);n.push(t.outputEncoding),n.push(t.gammaFactor)}return n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=f[t.type];let n;if(e){const t=Bo[e];n=yo.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let r;for(let t=0,e=s.length;t<e;t++){const e=s[t];if(e.cacheKey===n){r=e,++r.usedTimes;break}}return void 0===r&&(r=new _a(t,n,e,i),s.push(r)),r},releaseProgram:function(t){if(0==--t.usedTimes){const e=s.indexOf(t);s[e]=s[s.length-1],s.pop(),t.destroy()}},programs:s}}function xa(){let t=new WeakMap;return{get:function(e){let n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,r){t.get(e)[n]=r},dispose:function(){t=new WeakMap}}}function wa(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function Sa(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Ma(t){const e=[];let n=0;const r=[],i=[],o={id:-1};function s(r,i,s,a,c,l){let u=e[n];const h=t.get(s);return void 0===u?(u={id:r.id,object:r,geometry:i,material:s,program:h.program||o,groupOrder:a,renderOrder:r.renderOrder,z:c,group:l},e[n]=u):(u.id=r.id,u.object=r,u.geometry=i,u.material=s,u.program=h.program||o,u.groupOrder=a,u.renderOrder=r.renderOrder,u.z=c,u.group=l),n++,u}return{opaque:r,transparent:i,init:function(){n=0,r.length=0,i.length=0},push:function(t,e,n,o,a,c){const l=s(t,e,n,o,a,c);(!0===n.transparent?i:r).push(l)},unshift:function(t,e,n,o,a,c){const l=s(t,e,n,o,a,c);(!0===n.transparent?i:r).unshift(l)},finish:function(){for(let t=n,r=e.length;t<r;t++){const n=e[t];if(null===n.id)break;n.id=null,n.object=null,n.geometry=null,n.material=null,n.program=null,n.group=null}},sort:function(t,e){r.length>1&&r.sort(t||wa),i.length>1&&i.sort(e||Sa)}}}function Aa(t){let e=new WeakMap;return{get:function(n,r){let i;return!1===e.has(n)?(i=new Ma(t),e.set(n,[i])):r>=e.get(n).length?(i=new Ma(t),e.get(n).push(i)):i=e.get(n)[r],i},dispose:function(){e=new WeakMap}}}function Ca(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new qn,color:new Si};break;case"SpotLight":n={position:new qn,direction:new qn,color:new Si,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new qn,color:new Si,distance:0,decay:0};break;case"HemisphereLight":n={direction:new qn,skyColor:new Si,groundColor:new Si};break;case"RectAreaLight":n={color:new Si,position:new qn,halfWidth:new qn,halfHeight:new qn}}return t[e.id]=n,n}}}let Ea=0;function Ta(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function Ia(t,e){const n=new Ca,r=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Un};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Un,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let t=0;t<9;t++)i.probe.push(new qn);const o=new qn,s=new Tr,a=new Tr;return{setup:function(o){let s=0,a=0,c=0;for(let t=0;t<9;t++)i.probe[t].set(0,0,0);let l=0,u=0,h=0,d=0,f=0,p=0,m=0,g=0;o.sort(Ta);for(let t=0,e=o.length;t<e;t++){const e=o[t],v=e.color,y=e.intensity,_=e.distance,b=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)s+=v.r*y,a+=v.g*y,c+=v.b*y;else if(e.isLightProbe)for(let t=0;t<9;t++)i.probe[t].addScaledVector(e.sh.coefficients[t],y);else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity),e.castShadow){const t=e.shadow,n=r.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,i.directionalShadow[l]=n,i.directionalShadowMap[l]=b,i.directionalShadowMatrix[l]=e.shadow.matrix,p++}i.directional[l]=t,l++}else if(e.isSpotLight){const t=n.get(e);if(t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(v).multiplyScalar(y),t.distance=_,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,e.castShadow){const t=e.shadow,n=r.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,i.spotShadow[h]=n,i.spotShadowMap[h]=b,i.spotShadowMatrix[h]=e.shadow.matrix,g++}i.spot[h]=t,h++}else if(e.isRectAreaLight){const t=n.get(e);t.color.copy(v).multiplyScalar(y),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),i.rectArea[d]=t,d++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,n=r.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,i.pointShadow[u]=n,i.pointShadowMap[u]=b,i.pointShadowMatrix[u]=e.shadow.matrix,m++}i.point[u]=t,u++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(y),t.groundColor.copy(e.groundColor).multiplyScalar(y),i.hemi[f]=t,f++}}d>0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(i.rectAreaLTC1=Oo.LTC_FLOAT_1,i.rectAreaLTC2=Oo.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=Oo.LTC_HALF_1,i.rectAreaLTC2=Oo.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=s,i.ambient[1]=a,i.ambient[2]=c;const v=i.hash;v.directionalLength===l&&v.pointLength===u&&v.spotLength===h&&v.rectAreaLength===d&&v.hemiLength===f&&v.numDirectionalShadows===p&&v.numPointShadows===m&&v.numSpotShadows===g||(i.directional.length=l,i.spot.length=h,i.rectArea.length=d,i.point.length=u,i.hemi.length=f,i.directionalShadow.length=p,i.directionalShadowMap.length=p,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=g,i.spotShadowMap.length=g,i.directionalShadowMatrix.length=p,i.pointShadowMatrix.length=m,i.spotShadowMatrix.length=g,v.directionalLength=l,v.pointLength=u,v.spotLength=h,v.rectAreaLength=d,v.hemiLength=f,v.numDirectionalShadows=p,v.numPointShadows=m,v.numSpotShadows=g,i.version=Ea++)},setupView:function(t,e){let n=0,r=0,c=0,l=0,u=0;const h=e.matrixWorldInverse;for(let e=0,d=t.length;e<d;e++){const d=t[e];if(d.isDirectionalLight){const t=i.directional[n];t.direction.setFromMatrixPosition(d.matrixWorld),o.setFromMatrixPosition(d.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(h),n++}else if(d.isSpotLight){const t=i.spot[c];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(h),t.direction.setFromMatrixPosition(d.matrixWorld),o.setFromMatrixPosition(d.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(h),c++}else if(d.isRectAreaLight){const t=i.rectArea[l];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(h),a.identity(),s.copy(d.matrixWorld),s.premultiply(h),a.extractRotation(s),t.halfWidth.set(.5*d.width,0,0),t.halfHeight.set(0,.5*d.height,0),t.halfWidth.applyMatrix4(a),t.halfHeight.applyMatrix4(a),l++}else if(d.isPointLight){const t=i.point[r];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(h),r++}else if(d.isHemisphereLight){const t=i.hemi[u];t.direction.setFromMatrixPosition(d.matrixWorld),t.direction.transformDirection(h),t.direction.normalize(),u++}}},state:i}}function Pa(t,e){const n=new Ia(t,e),r=[],i=[];return{init:function(){r.length=0,i.length=0},state:{lightsArray:r,shadowsArray:i,lights:n},setupLights:function(){n.setup(r)},setupLightsView:function(t){n.setupView(r,t)},pushLight:function(t){r.push(t)},pushShadow:function(t){i.push(t)}}}function La(t,e){let n=new WeakMap;return{get:function(r,i=0){let o;return!1===n.has(r)?(o=new Pa(t,e),n.set(r,[o])):i>=n.get(r).length?(o=new Pa(t,e),n.get(r).push(o)):o=n.get(r)[i],o},dispose:function(){n=new WeakMap}}}class Ra extends gi{constructor(t){super(),this.type="MeshDepthMaterial",this.depthPacking=on,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}Ra.prototype.isMeshDepthMaterial=!0;class Oa extends gi{constructor(t){super(),this.type="MeshDistanceMaterial",this.referencePosition=new qn,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function Ba(t,e,n){let r=new To;const i=new Un,o=new Un,s=new Qn,a=[],c=[],l={},u=n.maxTextureSize,d={0:m,1:p,2:g},v=new _o({defines:{SAMPLE_RATE:2/8,HALF_SAMPLE_RATE:1/8},uniforms:{shadow_pass:{value:null},resolution:{value:new Un},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\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 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, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const b=new Xi;b.setAttribute("position",new Ei(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new fo(b,v),w=this;function S(n,r){const i=e.update(x);v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(r,null,i,v,x,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(r,null,i,y,x,null)}function M(t,e,n){const r=t<<0|e<<1|n<<2;let i=a[r];return void 0===i&&(i=new Ra({depthPacking:sn,morphTargets:t,skinning:e}),a[r]=i),i}function A(t,e,n){const r=t<<0|e<<1|n<<2;let i=c[r];return void 0===i&&(i=new Oa({morphTargets:t,skinning:e}),c[r]=i),i}function C(e,n,r,i,o,s,a){let c=null,u=M,h=e.customDepthMaterial;if(!0===i.isPointLight&&(u=A,h=e.customDistanceMaterial),void 0===h){let t=!1;!0===r.morphTargets&&(t=n.morphAttributes&&n.morphAttributes.position&&n.morphAttributes.position.length>0);let i=!1;!0===e.isSkinnedMesh&&(!0===r.skinning?i=!0:console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",e)),c=u(t,i,!0===e.isInstancedMesh)}else c=h;if(t.localClippingEnabled&&!0===r.clipShadows&&0!==r.clippingPlanes.length){const t=c.uuid,e=r.uuid;let n=l[t];void 0===n&&(n={},l[t]=n);let i=n[e];void 0===i&&(i=c.clone(),n[e]=i),c=i}return c.visible=r.visible,c.wireframe=r.wireframe,c.side=a===f?null!==r.shadowSide?r.shadowSide:r.side:null!==r.shadowSide?r.shadowSide:d[r.side],c.clipShadows=r.clipShadows,c.clippingPlanes=r.clippingPlanes,c.clipIntersection=r.clipIntersection,c.wireframeLinewidth=r.wireframeLinewidth,c.linewidth=r.linewidth,!0===i.isPointLight&&!0===c.isMeshDistanceMaterial&&(c.referencePosition.setFromMatrixPosition(i.matrixWorld),c.nearDistance=o,c.farDistance=s),c}function E(n,i,o,s,a){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&a===f)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=e.update(n),i=n.material;if(Array.isArray(i)){const e=r.groups;for(let c=0,l=e.length;c<l;c++){const l=e[c],u=i[l.materialIndex];if(u&&u.visible){const e=C(n,r,u,s,o.near,o.far,a);t.renderBufferDirect(o,null,r,e,n,l)}}}else if(i.visible){const e=C(n,r,i,s,o.near,o.far,a);t.renderBufferDirect(o,null,r,e,n,null)}}const c=n.children;for(let t=0,e=c.length;t<e;t++)E(c[t],i,o,s,a)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=h,this.render=function(e,n,a){if(!1===w.enabled)return;if(!1===w.autoUpdate&&!1===w.needsUpdate)return;if(0===e.length)return;const c=t.getRenderTarget(),l=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),d=t.state;d.setBlending(_),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(let c=0,l=e.length;c<l;c++){const l=e[c],h=l.shadow;if(void 0===h){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===h.autoUpdate&&!1===h.needsUpdate)continue;i.copy(h.mapSize);const p=h.getFrameExtents();if(i.multiply(p),o.copy(h.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/p.x),i.x=o.x*p.x,h.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/p.y),i.y=o.y*p.y,h.mapSize.y=o.y)),null===h.map&&!h.isPointLightShadow&&this.type===f){const t={minFilter:_t,magFilter:_t,format:Nt};h.map=new Xn(i.x,i.y,t),h.map.texture.name=l.name+".shadowMap",h.mapPass=new Xn(i.x,i.y,t),h.camera.updateProjectionMatrix()}if(null===h.map){const t={minFilter:pt,magFilter:pt,format:Nt};h.map=new Xn(i.x,i.y,t),h.map.texture.name=l.name+".shadowMap",h.camera.updateProjectionMatrix()}t.setRenderTarget(h.map),t.clear();const m=h.getViewportCount();for(let t=0;t<m;t++){const e=h.getViewport(t);s.set(o.x*e.x,o.y*e.y,o.x*e.z,o.y*e.w),d.viewport(s),h.updateMatrices(l,t),r=h.getFrustum(),E(n,a,h.camera,l,this.type)}h.isPointLightShadow||this.type!==f||S(h,a),h.needsUpdate=!1}w.needsUpdate=!1,t.setRenderTarget(c,l,h)}}function ka(t,e,n){const r=n.isWebGL2,i=new function(){let e=!1;const n=new Qn;let r=null;const i=new Qn(0,0,0,0);return{setMask:function(n){r===n||e||(t.colorMask(n,n,n,n),r=n)},setLocked:function(t){e=t},setClear:function(e,r,o,s,a){!0===a&&(e*=s,r*=s,o*=s),n.set(e,r,o,s),!1===i.equals(n)&&(t.clearColor(e,r,o,s),i.copy(n))},reset:function(){e=!1,r=null,i.set(-1,0,0,0)}}},o=new function(){let e=!1,n=null,r=null,i=null;return{setTest:function(t){t?gt(2929):vt(2929)},setMask:function(r){n===r||e||(t.depthMask(r),n=r)},setFunc:function(e){if(r!==e){if(e)switch(e){case z:t.depthFunc(512);break;case G:t.depthFunc(519);break;case H:t.depthFunc(513);break;case W:t.depthFunc(515);break;case V:t.depthFunc(514);break;case Z:t.depthFunc(518);break;case Q:t.depthFunc(516);break;case X:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);r=e}},setLocked:function(t){e=t},setClear:function(e){i!==e&&(t.clearDepth(e),i=e)},reset:function(){e=!1,n=null,r=null,i=null}}},l=new function(){let e=!1,n=null,r=null,i=null,o=null,s=null,a=null,c=null,l=null;return{setTest:function(t){e||(t?gt(2960):vt(2960))},setMask:function(r){n===r||e||(t.stencilMask(r),n=r)},setFunc:function(e,n,s){r===e&&i===n&&o===s||(t.stencilFunc(e,n,s),r=e,i=n,o=s)},setOp:function(e,n,r){s===e&&a===n&&c===r||(t.stencilOp(e,n,r),s=e,a=n,c=r)},setLocked:function(t){e=t},setClear:function(e){l!==e&&(t.clearStencil(e),l=e)},reset:function(){e=!1,n=null,r=null,i=null,o=null,s=null,a=null,c=null,l=null}}};let u={},h=null,d={},f=null,p=!1,v=null,y=null,Y=null,J=null,q=null,K=null,$=null,tt=!1,et=null,nt=null,rt=null,it=null,ot=null;const st=t.getParameter(35661);let at=!1,ct=0;const lt=t.getParameter(7938);-1!==lt.indexOf("WebGL")?(ct=parseFloat(/^WebGL (\d)/.exec(lt)[1]),at=ct>=1):-1!==lt.indexOf("OpenGL ES")&&(ct=parseFloat(/^OpenGL ES (\d)/.exec(lt)[1]),at=ct>=2);let ut=null,ht={};const dt=new Qn(0,0,t.canvas.width,t.canvas.height),ft=new Qn(0,0,t.canvas.width,t.canvas.height);function pt(e,n,r){const i=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;e<r;e++)t.texImage2D(n+e,0,6408,1,1,0,6408,5121,i);return o}const mt={};function gt(e){!0!==u[e]&&(t.enable(e),u[e]=!0)}function vt(e){!1!==u[e]&&(t.disable(e),u[e]=!1)}mt[3553]=pt(3553,3553,1),mt[34067]=pt(34067,34069,6),i.setClear(0,0,0,1),o.setClear(1),l.setClear(0),gt(2929),o.setFunc(W),xt(!1),wt(a),gt(2884),bt(_);const yt={[A]:32774,[C]:32778,[E]:32779};if(r)yt[T]=32775,yt[I]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(yt[T]=t.MIN_EXT,yt[I]=t.MAX_EXT)}const _t={[P]:0,[L]:1,[R]:768,[B]:770,[U]:776,[N]:774,[D]:772,[O]:769,[k]:771,[j]:775,[F]:773};function bt(e,n,r,i,o,s,a,c){if(e!==_){if(!1===p&&(gt(3042),p=!0),e===M)o=o||n,s=s||r,a=a||i,n===y&&o===q||(t.blendEquationSeparate(yt[n],yt[o]),y=n,q=o),r===Y&&i===J&&s===K&&a===$||(t.blendFuncSeparate(_t[r],_t[i],_t[s],_t[a]),Y=r,J=i,K=s,$=a),v=e,tt=null;else if(e!==v||c!==tt){if(y===A&&q===A||(t.blendEquation(32774),y=A,q=A),c)switch(e){case b:t.blendFuncSeparate(1,771,1,771);break;case x:t.blendFunc(1,1);break;case w:t.blendFuncSeparate(0,0,769,771);break;case S:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case b:t.blendFuncSeparate(770,771,1,771);break;case x:t.blendFunc(770,1);break;case w:t.blendFunc(0,769);break;case S:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}Y=null,J=null,K=null,$=null,v=e,tt=c}}else!0===p&&(vt(3042),p=!1)}function xt(e){et!==e&&(e?t.frontFace(2304):t.frontFace(2305),et=e)}function wt(e){e!==s?(gt(2884),e!==nt&&(e===a?t.cullFace(1029):e===c?t.cullFace(1028):t.cullFace(1032))):vt(2884),nt=e}function St(e,n,r){e?(gt(32823),it===n&&ot===r||(t.polygonOffset(n,r),it=n,ot=r)):vt(32823)}function Mt(e){void 0===e&&(e=33984+st-1),ut!==e&&(t.activeTexture(e),ut=e)}return{buffers:{color:i,depth:o,stencil:l},enable:gt,disable:vt,bindFramebuffer:function(e,n){null===n&&null!==h&&(n=h),d[e]!==n&&(t.bindFramebuffer(e,n),d[e]=n)},bindXRFramebuffer:function(e){e!==h&&(t.bindFramebuffer(36160,e),h=e)},useProgram:function(e){return f!==e&&(t.useProgram(e),f=e,!0)},setBlending:bt,setMaterial:function(t,e){t.side===g?vt(2884):gt(2884);let n=t.side===m;e&&(n=!n),xt(n),t.blending===b&&!1===t.transparent?bt(_):bt(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),i.setMask(t.colorWrite);const r=t.stencilWrite;l.setTest(r),r&&(l.setMask(t.stencilWriteMask),l.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),l.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),St(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?gt(32926):vt(32926)},setFlipSided:xt,setCullFace:wt,setLineWidth:function(e){e!==rt&&(at&&t.lineWidth(e),rt=e)},setPolygonOffset:St,setScissorTest:function(t){t?gt(3089):vt(3089)},activeTexture:Mt,bindTexture:function(e,n){null===ut&&Mt();let r=ht[ut];void 0===r&&(r={type:void 0,texture:void 0},ht[ut]=r),r.type===e&&r.texture===n||(t.bindTexture(e,n||mt[e]),r.type=e,r.texture=n)},unbindTexture:function(){const e=ht[ut];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===dt.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),dt.copy(e))},viewport:function(e){!1===ft.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),ft.copy(e))},reset:function(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),!0===r&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),u={},ut=null,ht={},h=null,d={},f=null,p=!1,v=null,y=null,Y=null,J=null,q=null,K=null,$=null,tt=!1,et=null,nt=null,rt=null,it=null,ot=null,dt.set(0,0,t.canvas.width,t.canvas.height),ft.set(0,0,t.canvas.width,t.canvas.height),i.reset(),o.reset(),l.reset()}}}function Da(t,e,n,r,i,o,s){const a=i.isWebGL2,c=i.maxTextures,l=i.maxCubemapSize,u=i.maxTextureSize,h=i.maxSamples,d=new WeakMap;let f,p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(t){}function m(t,e){return p?new OffscreenCanvas(t,e):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function g(t,e,n,r){let i=1;if((t.width>r||t.height>r)&&(i=r/Math.max(t.width,t.height)),i<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const r=e?jn.floorPowerOfTwo:Math.floor,o=r(i*t.width),s=r(i*t.height);void 0===f&&(f=m(o,s));const a=n?m(o,s):f;return a.width=o,a.height=s,a.getContext("2d").drawImage(t,0,0,o,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+s+")."),a}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function v(t){return jn.isPowerOfTwo(t.width)&&jn.isPowerOfTwo(t.height)}function y(t,e){return t.generateMipmaps&&e&&t.minFilter!==pt&&t.minFilter!==_t}function _(e,n,i,o){t.generateMipmap(e),r.get(n).__maxMipLevel=Math.log2(Math.max(i,o))}function b(n,r,i){if(!1===a)return r;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let o=r;return 6403===r&&(5126===i&&(o=33326),5131===i&&(o=33325),5121===i&&(o=33321)),6407===r&&(5126===i&&(o=34837),5131===i&&(o=34843),5121===i&&(o=32849)),6408===r&&(5126===i&&(o=34836),5131===i&&(o=34842),5121===i&&(o=32856)),33325!==o&&33326!==o&&34842!==o&&34836!==o||e.get("EXT_color_buffer_float"),o}function x(t){return t===pt||t===mt||t===vt?9728:9729}function w(t){const e=t.target;e.removeEventListener("dispose",w),M(e),e.isVideoTexture&&d.delete(e),s.memory.textures--}function S(t){const e=t.target;e.removeEventListener("dispose",S),A(e),s.memory.textures--}function M(e){const n=r.get(e);void 0!==n.__webglInit&&(t.deleteTexture(n.__webglTexture),r.remove(e))}function A(e){const n=e.texture,i=r.get(e),o=r.get(n);if(e){if(void 0!==o.__webglTexture&&t.deleteTexture(o.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(i.__webglFramebuffer[e]),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer[e]);else t.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&t.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&t.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&t.deleteRenderbuffer(i.__webglDepthRenderbuffer);r.remove(n),r.remove(e)}}let C=0;function E(t,e){const i=r.get(t);if(t.isVideoTexture&&function(t){const e=s.render.frame;d.get(t)!==e&&(d.set(t,e),t.update())}(t),t.version>0&&i.__version!==t.version){const n=t.image;if(void 0===n)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==n.complete)return void O(i,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+e),n.bindTexture(3553,i.__webglTexture)}function T(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?B(i,t,e):(n.activeTexture(33984+e),n.bindTexture(34067,i.__webglTexture))}const I={[ht]:10497,[dt]:33071,[ft]:33648},P={[pt]:9728,[mt]:9984,[vt]:9986,[_t]:9729,[bt]:9985,[wt]:9987};function L(n,o,s){if(s?(t.texParameteri(n,10242,I[o.wrapS]),t.texParameteri(n,10243,I[o.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,I[o.wrapR]),t.texParameteri(n,10240,P[o.magFilter]),t.texParameteri(n,10241,P[o.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),o.wrapS===dt&&o.wrapT===dt||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,x(o.magFilter)),t.texParameteri(n,10241,x(o.minFilter)),o.minFilter!==pt&&o.minFilter!==_t&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const s=e.get("EXT_texture_filter_anisotropic");if(o.type===Pt&&!1===e.has("OES_texture_float_linear"))return;if(!1===a&&o.type===Lt&&!1===e.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||r.get(o).__currentAnisotropy)&&(t.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy)}}function R(e,n){void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",w),e.__webglTexture=t.createTexture(),s.memory.textures++)}function O(e,r,i){let s=3553;r.isDataTexture2DArray&&(s=35866),r.isDataTexture3D&&(s=32879),R(e,r),n.activeTexture(33984+i),n.bindTexture(s,e.__webglTexture),t.pixelStorei(37440,r.flipY),t.pixelStorei(37441,r.premultiplyAlpha),t.pixelStorei(3317,r.unpackAlignment),t.pixelStorei(37443,0);const c=function(t){return!a&&(t.wrapS!==dt||t.wrapT!==dt||t.minFilter!==pt&&t.minFilter!==_t)}(r)&&!1===v(r.image),l=g(r.image,c,!1,u),h=v(l)||a,d=o.convert(r.format);let f,p=o.convert(r.type),m=b(r.internalFormat,d,p);L(s,r,h);const x=r.mipmaps;if(r.isDepthTexture)m=6402,a?m=r.type===Pt?36012:r.type===It?33190:r.type===kt?35056:33189:r.type===Pt&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===Gt&&6402===m&&r.type!==Et&&r.type!==It&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=Et,p=o.convert(r.type)),r.format===Ht&&6402===m&&(m=34041,r.type!==kt&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=kt,p=o.convert(r.type))),n.texImage2D(3553,0,m,l.width,l.height,0,d,p,null);else if(r.isDataTexture)if(x.length>0&&h){for(let t=0,e=x.length;t<e;t++)f=x[t],n.texImage2D(3553,t,m,f.width,f.height,0,d,p,f.data);r.generateMipmaps=!1,e.__maxMipLevel=x.length-1}else n.texImage2D(3553,0,m,l.width,l.height,0,d,p,l.data),e.__maxMipLevel=0;else if(r.isCompressedTexture){for(let t=0,e=x.length;t<e;t++)f=x[t],r.format!==Nt&&r.format!==Ft?null!==d?n.compressedTexImage2D(3553,t,m,f.width,f.height,0,f.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(3553,t,m,f.width,f.height,0,d,p,f.data);e.__maxMipLevel=x.length-1}else if(r.isDataTexture2DArray)n.texImage3D(35866,0,m,l.width,l.height,l.depth,0,d,p,l.data),e.__maxMipLevel=0;else if(r.isDataTexture3D)n.texImage3D(32879,0,m,l.width,l.height,l.depth,0,d,p,l.data),e.__maxMipLevel=0;else if(x.length>0&&h){for(let t=0,e=x.length;t<e;t++)f=x[t],n.texImage2D(3553,t,m,d,p,f);r.generateMipmaps=!1,e.__maxMipLevel=x.length-1}else n.texImage2D(3553,0,m,d,p,l),e.__maxMipLevel=0;y(r,h)&&_(s,r,l.width,l.height),e.__version=r.version,r.onUpdate&&r.onUpdate(r)}function B(e,r,i){if(6!==r.image.length)return;R(e,r),n.activeTexture(33984+i),n.bindTexture(34067,e.__webglTexture),t.pixelStorei(37440,r.flipY),t.pixelStorei(37441,r.premultiplyAlpha),t.pixelStorei(3317,r.unpackAlignment),t.pixelStorei(37443,0);const s=r&&(r.isCompressedTexture||r.image[0].isCompressedTexture),c=r.image[0]&&r.image[0].isDataTexture,u=[];for(let t=0;t<6;t++)u[t]=s||c?c?r.image[t].image:r.image[t]:g(r.image[t],!1,!0,l);const h=u[0],d=v(h)||a,f=o.convert(r.format),p=o.convert(r.type),m=b(r.internalFormat,f,p);let x;if(L(34067,r,d),s){for(let t=0;t<6;t++){x=u[t].mipmaps;for(let e=0;e<x.length;e++){const i=x[e];r.format!==Nt&&r.format!==Ft?null!==f?n.compressedTexImage2D(34069+t,e,m,i.width,i.height,0,i.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(34069+t,e,m,i.width,i.height,0,f,p,i.data)}}e.__maxMipLevel=x.length-1}else{x=r.mipmaps;for(let t=0;t<6;t++)if(c){n.texImage2D(34069+t,0,m,u[t].width,u[t].height,0,f,p,u[t].data);for(let e=0;e<x.length;e++){const r=x[e].image[t].image;n.texImage2D(34069+t,e+1,m,r.width,r.height,0,f,p,r.data)}}else{n.texImage2D(34069+t,0,m,f,p,u[t]);for(let e=0;e<x.length;e++){const r=x[e];n.texImage2D(34069+t,e+1,m,f,p,r.image[t])}}e.__maxMipLevel=x.length}y(r,d)&&_(34067,r,h.width,h.height),e.__version=r.version,r.onUpdate&&r.onUpdate(r)}function k(e,i,s,a){const c=i.texture,l=o.convert(c.format),u=o.convert(c.type),h=b(c.internalFormat,l,u);32879===a||35866===a?n.texImage3D(a,0,h,i.width,i.height,i.depth,0,l,u,null):n.texImage2D(a,0,h,i.width,i.height,0,l,u,null),n.bindFramebuffer(36160,e),t.framebufferTexture2D(36160,s,a,r.get(c).__webglTexture,0),n.bindFramebuffer(36160,null)}function D(e,n,r){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===Pt?i=36012:e.type===It&&(i=33190));const r=N(n);t.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else t.renderbufferStorage(36161,i,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){if(r){const e=N(n);t.renderbufferStorageMultisample(36161,e,35056,n.width,n.height)}else t.renderbufferStorage(36161,34041,n.width,n.height);t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=n.texture,i=o.convert(e.format),s=o.convert(e.type),a=b(e.internalFormat,i,s);if(r){const e=N(n);t.renderbufferStorageMultisample(36161,e,a,n.width,n.height)}else t.renderbufferStorage(36161,a,n.width,n.height)}t.bindRenderbuffer(36161,null)}function F(e){const i=r.get(e),o=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture){if(o)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,e),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),E(i.depthTexture,0);const o=r.get(i.depthTexture).__webglTexture;if(i.depthTexture.format===Gt)t.framebufferTexture2D(36160,36096,3553,o,0);else{if(i.depthTexture.format!==Ht)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(36160,33306,3553,o,0)}}(i.__webglFramebuffer,e)}else if(o){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)n.bindFramebuffer(36160,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]=t.createRenderbuffer(),D(i.__webglDepthbuffer[r],e,!1)}else n.bindFramebuffer(36160,i.__webglFramebuffer),i.__webglDepthbuffer=t.createRenderbuffer(),D(i.__webglDepthbuffer,e,!1);n.bindFramebuffer(36160,null)}function N(t){return a&&t.isWebGLMultisampleRenderTarget?Math.min(h,t.samples):0}let j=!1,U=!1;this.allocateTextureUnit=function(){const t=C;return t>=c&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+c),C+=1,t},this.resetTextureUnits=function(){C=0},this.setTexture2D=E,this.setTexture2DArray=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?O(i,t,e):(n.activeTexture(33984+e),n.bindTexture(35866,i.__webglTexture))},this.setTexture3D=function(t,e){const i=r.get(t);t.version>0&&i.__version!==t.version?O(i,t,e):(n.activeTexture(33984+e),n.bindTexture(32879,i.__webglTexture))},this.setTextureCube=T,this.setupRenderTarget=function(e){const i=e.texture,c=r.get(e),l=r.get(i);e.addEventListener("dispose",S),l.__webglTexture=t.createTexture(),l.__version=i.version,s.memory.textures++;const u=!0===e.isWebGLCubeRenderTarget,h=!0===e.isWebGLMultisampleRenderTarget,d=i.isDataTexture3D||i.isDataTexture2DArray,f=v(e)||a;if(!a||i.format!==Ft||i.type!==Pt&&i.type!==Lt||(i.format=Nt,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")),u){c.__webglFramebuffer=[];for(let e=0;e<6;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else if(c.__webglFramebuffer=t.createFramebuffer(),h)if(a){c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const r=o.convert(i.format),s=o.convert(i.type),a=b(i.internalFormat,r,s),l=N(e);t.renderbufferStorageMultisample(36161,l,a,e.width,e.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),D(c.__webglDepthRenderbuffer,e,!0)),n.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(u){n.bindTexture(34067,l.__webglTexture),L(34067,i,f);for(let t=0;t<6;t++)k(c.__webglFramebuffer[t],e,36064,34069+t);y(i,f)&&_(34067,i,e.width,e.height),n.bindTexture(34067,null)}else{let t=3553;d&&(a?t=i.isDataTexture3D?32879:35866:console.warn("THREE.DataTexture3D and THREE.DataTexture2DArray only supported with WebGL2.")),n.bindTexture(t,l.__webglTexture),L(t,i,f),k(c.__webglFramebuffer,e,36064,t),y(i,f)&&_(3553,i,e.width,e.height),n.bindTexture(3553,null)}e.depthBuffer&&F(e)},this.updateRenderTargetMipmap=function(t){const e=t.texture;if(y(e,v(t)||a)){const i=t.isWebGLCubeRenderTarget?34067:3553,o=r.get(e).__webglTexture;n.bindTexture(i,o),_(i,e,t.width,t.height),n.bindTexture(i,null)}},this.updateMultisampleRenderTarget=function(e){if(e.isWebGLMultisampleRenderTarget)if(a){const i=r.get(e);n.bindFramebuffer(36008,i.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,i.__webglFramebuffer);const o=e.width,s=e.height;let a=16384;e.depthBuffer&&(a|=256),e.stencilBuffer&&(a|=1024),t.blitFramebuffer(0,0,o,s,0,0,o,s,a,9728),n.bindFramebuffer(36160,i.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.safeSetTexture2D=function(t,e){t&&t.isWebGLRenderTarget&&(!1===j&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),j=!0),t=t.texture),E(t,e)},this.safeSetTextureCube=function(t,e){t&&t.isWebGLCubeRenderTarget&&(!1===U&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),U=!0),t=t.texture),T(t,e)}}function Fa(t,e,n){const r=n.isWebGL2;return{convert:function(t){let n;if(t===Mt)return 5121;if(t===Rt)return 32819;if(t===Ot)return 32820;if(t===Bt)return 33635;if(t===At)return 5120;if(t===Ct)return 5122;if(t===Et)return 5123;if(t===Tt)return 5124;if(t===It)return 5125;if(t===Pt)return 5126;if(t===Lt)return r?5131:(n=e.get("OES_texture_half_float"),null!==n?n.HALF_FLOAT_OES:null);if(t===Dt)return 6406;if(t===Ft)return 6407;if(t===Nt)return 6408;if(t===jt)return 6409;if(t===Ut)return 6410;if(t===Gt)return 6402;if(t===Ht)return 34041;if(t===Wt)return 6403;if(t===Vt)return 36244;if(t===Zt)return 33319;if(t===Qt)return 33320;if(t===Xt)return 36248;if(t===Yt)return 36249;if(t===Jt||t===qt||t===Kt||t===$t){if(n=e.get("WEBGL_compressed_texture_s3tc"),null===n)return null;if(t===Jt)return n.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===qt)return n.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Kt)return n.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===$t)return n.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(t===te||t===ee||t===ne||t===re){if(n=e.get("WEBGL_compressed_texture_pvrtc"),null===n)return null;if(t===te)return n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===ee)return n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===ne)return n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===re)return n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===ie)return n=e.get("WEBGL_compressed_texture_etc1"),null!==n?n.COMPRESSED_RGB_ETC1_WEBGL:null;if((t===oe||t===se)&&(n=e.get("WEBGL_compressed_texture_etc"),null!==n)){if(t===oe)return n.COMPRESSED_RGB8_ETC2;if(t===se)return n.COMPRESSED_RGBA8_ETC2_EAC}return t===ae||t===ce||t===le||t===ue||t===he||t===de||t===fe||t===pe||t===me||t===ge||t===ve||t===ye||t===_e||t===be||t===we||t===Se||t===Me||t===Ae||t===Ce||t===Ee||t===Te||t===Ie||t===Pe||t===Le||t===Re||t===Oe||t===Be||t===ke?(n=e.get("WEBGL_compressed_texture_astc"),null!==n?t:null):t===xe?(n=e.get("EXT_texture_compression_bptc"),null!==n?t:null):t===kt?r?34042:(n=e.get("WEBGL_depth_texture"),null!==n?n.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}Oa.prototype.isMeshDistanceMaterial=!0;class Na extends xo{constructor(t=[]){super(),this.cameras=t}}Na.prototype.isArrayCamera=!0;class ja extends $r{constructor(){super(),this.type="Group"}}function Ua(){this._targetRay=null,this._grip=null,this._hand=null}function za(t,e){const n=this,r=t.state;let i=null,o=1,s=null,a="local-floor",c=null;const l=[],u=new Map,h=new xo;h.layers.enable(1),h.viewport=new Qn;const d=new xo;d.layers.enable(2),d.viewport=new Qn;const f=[h,d],p=new Na;p.layers.enable(1),p.layers.enable(2);let m=null,g=null;function v(t){const e=u.get(t.inputSource);e&&e.dispatchEvent({type:t.type,data:t.inputSource})}function y(){u.forEach((function(t,e){t.disconnect(e)})),u.clear(),m=null,g=null,r.bindXRFramebuffer(null),t.setRenderTarget(t.getRenderTarget()),M.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function _(t){const e=i.inputSources;for(let t=0;t<l.length;t++)u.set(e[t],l[t]);for(let e=0;e<t.removed.length;e++){const n=t.removed[e],r=u.get(n);r&&(r.dispatchEvent({type:"disconnected",data:n}),u.delete(n))}for(let e=0;e<t.added.length;e++){const n=t.added[e],r=u.get(n);r&&r.dispatchEvent({type:"connected",data:n})}}this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=l[t];return void 0===e&&(e=new Ua,l[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=l[t];return void 0===e&&(e=new Ua,l[t]=e),e.getGripSpace()},this.getHand=function(t){let e=l[t];return void 0===e&&(e=new Ua,l[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){o=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return s},this.getSession=function(){return i},this.setSession=async function(t){if(i=t,null!==i){i.addEventListener("select",v),i.addEventListener("selectstart",v),i.addEventListener("selectend",v),i.addEventListener("squeeze",v),i.addEventListener("squeezestart",v),i.addEventListener("squeezeend",v),i.addEventListener("end",y),i.addEventListener("inputsourceschange",_);const t=e.getContextAttributes();!0!==t.xrCompatible&&await e.makeXRCompatible();const r={antialias:t.antialias,alpha:t.alpha,depth:t.depth,stencil:t.stencil,framebufferScaleFactor:o},c=new XRWebGLLayer(i,e,r);i.updateRenderState({baseLayer:c}),s=await i.requestReferenceSpace(a),M.setContext(i),M.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const b=new qn,x=new qn;function w(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.getCamera=function(t){p.near=d.near=h.near=t.near,p.far=d.far=h.far=t.far,m===p.near&&g===p.far||(i.updateRenderState({depthNear:p.near,depthFar:p.far}),m=p.near,g=p.far);const e=t.parent,n=p.cameras;w(p,e);for(let t=0;t<n.length;t++)w(n[t],e);t.matrixWorld.copy(p.matrixWorld),t.matrix.copy(p.matrix),t.matrix.decompose(t.position,t.quaternion,t.scale);const r=t.children;for(let t=0,e=r.length;t<e;t++)r[t].updateMatrixWorld(!0);return 2===n.length?function(t,e,n){b.setFromMatrixPosition(e.matrixWorld),x.setFromMatrixPosition(n.matrixWorld);const r=b.distanceTo(x),i=e.projectionMatrix.elements,o=n.projectionMatrix.elements,s=i[14]/(i[10]-1),a=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],h=(o[8]+1)/o[0],d=s*u,f=s*h,p=r/(-u+h),m=p*-u;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(m),t.translateZ(p),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const g=s+p,v=a+p,y=d-m,_=f+(r-m),w=c*a/v*g,S=l*a/v*g;t.projectionMatrix.makePerspective(y,_,w,S,g,v)}(p,h,d):p.projectionMatrix.copy(h.projectionMatrix),p};let S=null;const M=new Io;M.setAnimationLoop((function(t,e){if(c=e.getViewerPose(s),null!==c){const t=c.views,e=i.renderState.baseLayer;r.bindXRFramebuffer(e.framebuffer);let n=!1;t.length!==p.cameras.length&&(p.cameras.length=0,n=!0);for(let r=0;r<t.length;r++){const i=t[r],o=e.getViewport(i),s=f[r];s.matrix.fromArray(i.transform.matrix),s.projectionMatrix.fromArray(i.projectionMatrix),s.viewport.set(o.x,o.y,o.width,o.height),0===r&&p.matrix.copy(s.matrix),!0===n&&p.cameras.push(s)}}const n=i.inputSources;for(let t=0;t<l.length;t++){const r=l[t],i=n[t];r.update(i,e,s)}S&&S(t,e)})),this.setAnimationLoop=function(t){S=t},this.dispose=function(){}}function Ga(t){function e(e,n){e.opacity.value=n.opacity,n.color&&e.diffuse.value.copy(n.color),n.emissive&&e.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(e.map.value=n.map),n.alphaMap&&(e.alphaMap.value=n.alphaMap),n.specularMap&&(e.specularMap.value=n.specularMap);const r=t.get(n).envMap;if(r){e.envMap.value=r,e.flipEnvMap.value=r.isCubeTexture&&r._needsFlipEnvMap?-1:1,e.reflectivity.value=n.reflectivity,e.refractionRatio.value=n.refractionRatio;const i=t.get(r).__maxMipLevel;void 0!==i&&(e.maxMipLevel.value=i)}let i,o;n.lightMap&&(e.lightMap.value=n.lightMap,e.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(e.aoMap.value=n.aoMap,e.aoMapIntensity.value=n.aoMapIntensity),n.map?i=n.map:n.specularMap?i=n.specularMap:n.displacementMap?i=n.displacementMap:n.normalMap?i=n.normalMap:n.bumpMap?i=n.bumpMap:n.roughnessMap?i=n.roughnessMap:n.metalnessMap?i=n.metalnessMap:n.alphaMap?i=n.alphaMap:n.emissiveMap?i=n.emissiveMap:n.clearcoatMap?i=n.clearcoatMap:n.clearcoatNormalMap?i=n.clearcoatNormalMap:n.clearcoatRoughnessMap&&(i=n.clearcoatRoughnessMap),void 0!==i&&(i.isWebGLRenderTarget&&(i=i.texture),!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix)),n.aoMap?o=n.aoMap:n.lightMap&&(o=n.lightMap),void 0!==o&&(o.isWebGLRenderTarget&&(o=o.texture),!0===o.matrixAutoUpdate&&o.updateMatrix(),e.uv2Transform.value.copy(o.matrix))}function n(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function r(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function i(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(e.emissiveMap.value=n.emissiveMap),n.bumpMap&&(e.bumpMap.value=n.bumpMap,e.bumpScale.value=n.bumpScale,n.side===m&&(e.bumpScale.value*=-1)),n.normalMap&&(e.normalMap.value=n.normalMap,e.normalScale.value.copy(n.normalScale),n.side===m&&e.normalScale.value.negate()),n.displacementMap&&(e.displacementMap.value=n.displacementMap,e.displacementScale.value=n.displacementScale,e.displacementBias.value=n.displacementBias),t.get(n).envMap&&(e.envMapIntensity.value=n.envMapIntensity)}function o(t,e){i(t,e),t.reflectivity.value=e.reflectivity,t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.sheen&&t.sheen.value.copy(e.sheen),e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap),e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,e.side===m&&t.clearcoatNormalScale.value.negate()),t.transmission.value=e.transmission,e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap)}function s(t,e){e.matcap&&(t.matcap.value=e.matcap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function a(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===m&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===m&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}return{refreshFogUniforms:function(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)},refreshMaterialUniforms:function(t,c,l,u){c.isMeshBasicMaterial?e(t,c):c.isMeshLambertMaterial?(e(t,c),function(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}(t,c)):c.isMeshToonMaterial?(e(t,c),r(t,c)):c.isMeshPhongMaterial?(e(t,c),n(t,c)):c.isMeshStandardMaterial?(e(t,c),c.isMeshPhysicalMaterial?o(t,c):i(t,c)):c.isMeshMatcapMaterial?(e(t,c),s(t,c)):c.isMeshDepthMaterial?(e(t,c),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,c)):c.isMeshDistanceMaterial?(e(t,c),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(t,c)):c.isMeshNormalMaterial?(e(t,c),a(t,c)):c.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}(t,c),c.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,c)):c.isPointsMaterial?function(t,e,n,r){let i;t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*n,t.scale.value=.5*r,e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.map?i=e.map:e.alphaMap&&(i=e.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uvTransform.value.copy(i.matrix))}(t,c,l,u):c.isSpriteMaterial?function(t,e){let n;t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.map?n=e.map:e.alphaMap&&(n=e.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}(t,c):c.isShadowMaterial?(t.color.value.copy(c.color),t.opacity.value=c.opacity):c.isShaderMaterial&&(c.uniformsNeedUpdate=!1)}}}function Ha(t){const e=void 0!==(t=t||{}).canvas?t.canvas:function(){const t=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return t.style.display="block",t}(),n=void 0!==t.context?t.context:null,r=void 0!==t.alpha&&t.alpha,i=void 0===t.depth||t.depth,o=void 0===t.stencil||t.stencil,s=void 0!==t.antialias&&t.antialias,a=void 0===t.premultipliedAlpha||t.premultipliedAlpha,c=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,l=void 0!==t.powerPreference?t.powerPreference:"default",u=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let h=null,d=null;const f=[],p=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=Je,this.physicallyCorrectLights=!1,this.toneMapping=K,this.toneMappingExposure=1;const m=this;let g=!1,v=0,y=0,_=null,b=-1,x=null;const w=new Qn,S=new Qn;let M=null,A=e.width,C=e.height,E=1,T=null,I=null;const P=new Qn(0,0,A,C),L=new Qn(0,0,A,C);let R=!1;const O=new To;let B=!1,k=!1;const D=new Tr,F=new qn,N={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function j(){return null===_?E:1}let U,z,G,H,W,V,Z,Q,X,Y,J,q,$,tt,et,nt,rt,it,ot,st,at,ct,lt=n;function ut(t,n){for(let r=0;r<t.length;r++){const i=t[r],o=e.getContext(i,n);if(null!==o)return o}return null}try{const t={alpha:r,depth:i,stencil:o,antialias:s,premultipliedAlpha:a,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(e.addEventListener("webglcontextlost",ft,!1),e.addEventListener("webglcontextrestored",pt,!1),null===lt){const e=["webgl2","webgl","experimental-webgl"];if(!0===m.isWebGL1Renderer&&e.shift(),lt=ut(e,t),null===lt)throw ut(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===lt.getShaderPrecisionFormat&&(lt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){throw console.error("THREE.WebGLRenderer: "+t.message),t}function ht(){U=new zo(lt),z=new No(lt,U,t),U.init(z),at=new Fa(lt,U,z),G=new ka(lt,U,z),H=new Wo(lt),W=new xa,V=new Da(lt,U,G,W,z,at,H),Z=new Uo(m),Q=new Po(lt,z),ct=new Do(lt,U,Q,z),X=new Go(lt,Q,H,ct),Y=new Xo(lt,X,Q,H),it=new Qo(lt),et=new jo(W),J=new ba(m,Z,U,z,ct,et),q=new Ga(W),$=new Aa(W),tt=new La(U,z),rt=new ko(m,Z,G,Y,a),nt=new Ba(m,Y,z),ot=new Fo(lt,U,H,z),st=new Ho(lt,U,H,z),H.programs=J.programs,m.capabilities=z,m.extensions=U,m.properties=W,m.renderLists=$,m.shadowMap=nt,m.state=G,m.info=H}ht();const dt=new za(m,lt);function ft(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),g=!0}function pt(){console.log("THREE.WebGLRenderer: Context Restored."),g=!1;const t=H.autoReset,e=nt.enabled,n=nt.autoUpdate,r=nt.needsUpdate,i=nt.type;ht(),H.autoReset=t,nt.enabled=e,nt.autoUpdate=n,nt.needsUpdate=r,nt.type=i}function mt(t){const e=t.target;e.removeEventListener("dispose",mt),function(t){(function(t){const e=W.get(t).programs;void 0!==e&&e.forEach((function(t){J.releaseProgram(t)}))})(t),W.remove(t)}(e)}this.xr=dt,this.getContext=function(){return lt},this.getContextAttributes=function(){return lt.getContextAttributes()},this.forceContextLoss=function(){const t=U.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=U.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return E},this.setPixelRatio=function(t){void 0!==t&&(E=t,this.setSize(A,C,!1))},this.getSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),t=new Un),t.set(A,C)},this.setSize=function(t,n,r){dt.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(A=t,C=n,e.width=Math.floor(t*E),e.height=Math.floor(n*E),!1!==r&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),t=new Un),t.set(A*E,C*E).floor()},this.setDrawingBufferSize=function(t,n,r){A=t,C=n,E=r,e.width=Math.floor(t*r),e.height=Math.floor(n*r),this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),t=new Qn),t.copy(w)},this.getViewport=function(t){return t.copy(P)},this.setViewport=function(t,e,n,r){t.isVector4?P.set(t.x,t.y,t.z,t.w):P.set(t,e,n,r),G.viewport(w.copy(P).multiplyScalar(E).floor())},this.getScissor=function(t){return t.copy(L)},this.setScissor=function(t,e,n,r){t.isVector4?L.set(t.x,t.y,t.z,t.w):L.set(t,e,n,r),G.scissor(S.copy(L).multiplyScalar(E).floor())},this.getScissorTest=function(){return R},this.setScissorTest=function(t){G.setScissorTest(R=t)},this.setOpaqueSort=function(t){T=t},this.setTransparentSort=function(t){I=t},this.getClearColor=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getClearColor() now requires a Color as an argument"),t=new Si),t.copy(rt.getClearColor())},this.setClearColor=function(){rt.setClearColor.apply(rt,arguments)},this.getClearAlpha=function(){return rt.getClearAlpha()},this.setClearAlpha=function(){rt.setClearAlpha.apply(rt,arguments)},this.clear=function(t,e,n){let r=0;(void 0===t||t)&&(r|=16384),(void 0===e||e)&&(r|=256),(void 0===n||n)&&(r|=1024),lt.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(){e.removeEventListener("webglcontextlost",ft,!1),e.removeEventListener("webglcontextrestored",pt,!1),$.dispose(),tt.dispose(),W.dispose(),Z.dispose(),Y.dispose(),ct.dispose(),dt.dispose(),dt.removeEventListener("sessionstart",vt),dt.removeEventListener("sessionend",yt),_t.stop()},this.renderBufferImmediate=function(t,e){ct.initAttributes();const n=W.get(t);t.hasPositions&&!n.position&&(n.position=lt.createBuffer()),t.hasNormals&&!n.normal&&(n.normal=lt.createBuffer()),t.hasUvs&&!n.uv&&(n.uv=lt.createBuffer()),t.hasColors&&!n.color&&(n.color=lt.createBuffer());const r=e.getAttributes();t.hasPositions&&(lt.bindBuffer(34962,n.position),lt.bufferData(34962,t.positionArray,35048),ct.enableAttribute(r.position),lt.vertexAttribPointer(r.position,3,5126,!1,0,0)),t.hasNormals&&(lt.bindBuffer(34962,n.normal),lt.bufferData(34962,t.normalArray,35048),ct.enableAttribute(r.normal),lt.vertexAttribPointer(r.normal,3,5126,!1,0,0)),t.hasUvs&&(lt.bindBuffer(34962,n.uv),lt.bufferData(34962,t.uvArray,35048),ct.enableAttribute(r.uv),lt.vertexAttribPointer(r.uv,2,5126,!1,0,0)),t.hasColors&&(lt.bindBuffer(34962,n.color),lt.bufferData(34962,t.colorArray,35048),ct.enableAttribute(r.color),lt.vertexAttribPointer(r.color,3,5126,!1,0,0)),ct.disableUnusedAttributes(),lt.drawArrays(4,0,t.count),t.count=0},this.renderBufferDirect=function(t,e,n,r,i,o){null===e&&(e=N);const s=i.isMesh&&i.matrixWorld.determinant()<0,a=Ct(t,e,r,i);G.setMaterial(r,s);let c=n.index;const l=n.attributes.position;if(null===c){if(void 0===l||0===l.count)return}else if(0===c.count)return;let u,h=1;!0===r.wireframe&&(c=X.getWireframeAttribute(n),h=2),(r.morphTargets||r.morphNormals)&&it.update(i,n,r,a),ct.setup(i,r,a,n,c);let d=ot;null!==c&&(u=Q.get(c),d=st,d.setIndex(u));const f=null!==c?c.count:l.count,p=n.drawRange.start*h,m=n.drawRange.count*h,g=null!==o?o.start*h:0,v=null!==o?o.count*h:1/0,y=Math.max(p,g),_=Math.min(f,p+m,g+v)-1,b=Math.max(0,_-y+1);if(0!==b){if(i.isMesh)!0===r.wireframe?(G.setLineWidth(r.wireframeLinewidth*j()),d.setMode(1)):d.setMode(4);else if(i.isLine){let t=r.linewidth;void 0===t&&(t=1),G.setLineWidth(t*j()),i.isLineSegments?d.setMode(1):i.isLineLoop?d.setMode(2):d.setMode(3)}else i.isPoints?d.setMode(0):i.isSprite&&d.setMode(4);if(i.isInstancedMesh)d.renderInstances(y,b,i.count);else if(n.isInstancedBufferGeometry){const t=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(y,b,t)}else d.render(y,b)}},this.compile=function(t,e){d=tt.get(t),d.init(),t.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(d.pushLight(t),t.castShadow&&d.pushShadow(t))})),d.setupLights(),t.traverse((function(e){const n=e.material;if(n)if(Array.isArray(n))for(let r=0;r<n.length;r++)St(n[r],t,e);else St(n,t,e)}))};let gt=null;function vt(){_t.stop()}function yt(){_t.start()}const _t=new Io;function bt(t,e,n,r){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)n=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)d.pushLight(t),t.castShadow&&d.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||O.intersectsSprite(t)){r&&F.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D);const e=Y.update(t),i=t.material;i.visible&&h.push(t,e,i,n,F.z,null)}}else if(t.isImmediateRenderObject)r&&F.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D),h.push(t,null,t.material,n,F.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==H.render.frame&&(t.skeleton.update(),t.skeleton.frame=H.render.frame),!t.frustumCulled||O.intersectsObject(t))){r&&F.setFromMatrixPosition(t.matrixWorld).applyMatrix4(D);const e=Y.update(t),i=t.material;if(Array.isArray(i)){const r=e.groups;for(let o=0,s=r.length;o<s;o++){const s=r[o],a=i[s.materialIndex];a&&a.visible&&h.push(t,e,a,n,F.z,s)}}else i.visible&&h.push(t,e,i,n,F.z,null)}const i=t.children;for(let t=0,o=i.length;t<o;t++)bt(i[t],e,n,r)}function xt(t,e,n){const r=!0===e.isScene?e.overrideMaterial:null;for(let i=0,o=t.length;i<o;i++){const o=t[i],s=o.object,a=o.geometry,c=null===r?o.material:r,l=o.group;if(n.isArrayCamera){const t=n.cameras;for(let n=0,r=t.length;n<r;n++){const r=t[n];s.layers.test(r.layers)&&(G.viewport(w.copy(r.viewport)),d.setupLightsView(r),wt(s,e,r,a,c,l))}}else wt(s,e,n,a,c,l)}}function wt(t,e,n,r,i,o){if(t.onBeforeRender(m,e,n,r,i,o),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){const r=Ct(n,e,i,t);G.setMaterial(i),ct.reset(),function(t,e){t.render((function(t){m.renderBufferImmediate(t,e)}))}(t,r)}else m.renderBufferDirect(n,e,r,i,t,o);t.onAfterRender(m,e,n,r,i,o)}function St(t,e,n){!0!==e.isScene&&(e=N);const r=W.get(t),i=d.state.lights,o=d.state.shadowsArray,s=i.state.version,a=J.getParameters(t,i.state,o,e,n),c=J.getProgramCacheKey(a);let l=r.programs;r.environment=t.isMeshStandardMaterial?e.environment:null,r.fog=e.fog,r.envMap=Z.get(t.envMap||r.environment),void 0===l&&(t.addEventListener("dispose",mt),l=new Map,r.programs=l);let u=l.get(c);if(void 0!==u){if(r.currentProgram===u&&r.lightsStateVersion===s)return At(t,a),u}else a.uniforms=J.getUniforms(t),t.onBeforeCompile(a,m),u=J.acquireProgram(a,c),l.set(c,u),r.uniforms=a.uniforms;const h=r.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(h.clippingPlanes=et.uniform),At(t,a),r.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),r.lightsStateVersion=s,r.needsLights&&(h.ambientLightColor.value=i.state.ambient,h.lightProbe.value=i.state.probe,h.directionalLights.value=i.state.directional,h.directionalLightShadows.value=i.state.directionalShadow,h.spotLights.value=i.state.spot,h.spotLightShadows.value=i.state.spotShadow,h.rectAreaLights.value=i.state.rectArea,h.ltc_1.value=i.state.rectAreaLTC1,h.ltc_2.value=i.state.rectAreaLTC2,h.pointLights.value=i.state.point,h.pointLightShadows.value=i.state.pointShadow,h.hemisphereLights.value=i.state.hemi,h.directionalShadowMap.value=i.state.directionalShadowMap,h.directionalShadowMatrix.value=i.state.directionalShadowMatrix,h.spotShadowMap.value=i.state.spotShadowMap,h.spotShadowMatrix.value=i.state.spotShadowMatrix,h.pointShadowMap.value=i.state.pointShadowMap,h.pointShadowMatrix.value=i.state.pointShadowMatrix);const f=u.getUniforms(),p=Ks.seqWithValue(f.seq,h);return r.currentProgram=u,r.uniformsList=p,u}function At(t,e){const n=W.get(t);n.outputEncoding=e.outputEncoding,n.instancing=e.instancing,n.numClippingPlanes=e.numClippingPlanes,n.numIntersection=e.numClipIntersection,n.vertexAlphas=e.vertexAlphas}function Ct(t,e,n,r){!0!==e.isScene&&(e=N),V.resetTextureUnits();const i=e.fog,o=n.isMeshStandardMaterial?e.environment:null,s=null===_?m.outputEncoding:_.texture.encoding,a=Z.get(n.envMap||o),c=!0===n.vertexColors&&r.geometry.attributes.color&&4===r.geometry.attributes.color.itemSize,l=W.get(n),u=d.state.lights;if(!0===B&&(!0===k||t!==x)){const e=t===x&&n.id===b;et.setState(n,t,e)}let h=!1;n.version===l.__version?l.needsLights&&l.lightsStateVersion!==u.state.version||l.outputEncoding!==s||r.isInstancedMesh&&!1===l.instancing?h=!0:r.isInstancedMesh||!0!==l.instancing?l.envMap!==a||n.fog&&l.fog!==i?h=!0:void 0===l.numClippingPlanes||l.numClippingPlanes===et.numPlanes&&l.numIntersection===et.numIntersection?l.vertexAlphas!==c&&(h=!0):h=!0:h=!0:(h=!0,l.__version=n.version);let f=l.currentProgram;!0===h&&(f=St(n,e,r));let p=!1,g=!1,v=!1;const y=f.getUniforms(),w=l.uniforms;if(G.useProgram(f.program)&&(p=!0,g=!0,v=!0),n.id!==b&&(b=n.id,g=!0),p||x!==t){if(y.setValue(lt,"projectionMatrix",t.projectionMatrix),z.logarithmicDepthBuffer&&y.setValue(lt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),x!==t&&(x=t,g=!0,v=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshStandardMaterial||n.envMap){const e=y.map.cameraPosition;void 0!==e&&e.setValue(lt,F.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial)&&y.setValue(lt,"isOrthographic",!0===t.isOrthographicCamera),(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.isShadowMaterial||n.skinning)&&y.setValue(lt,"viewMatrix",t.matrixWorldInverse)}if(n.skinning){y.setOptional(lt,r,"bindMatrix"),y.setOptional(lt,r,"bindMatrixInverse");const t=r.skeleton;if(t){const e=t.bones;if(z.floatVertexTextures){if(null===t.boneTexture){let n=Math.sqrt(4*e.length);n=jn.ceilPowerOfTwo(n),n=Math.max(n,4);const r=new Float32Array(n*n*4);r.set(t.boneMatrices);const i=new Ao(r,n,n,Nt,Pt);t.boneMatrices=r,t.boneTexture=i,t.boneTextureSize=n}y.setValue(lt,"boneTexture",t.boneTexture,V),y.setValue(lt,"boneTextureSize",t.boneTextureSize)}else y.setOptional(lt,t,"boneMatrices")}}return(g||l.receiveShadow!==r.receiveShadow)&&(l.receiveShadow=r.receiveShadow,y.setValue(lt,"receiveShadow",r.receiveShadow)),g&&(y.setValue(lt,"toneMappingExposure",m.toneMappingExposure),l.needsLights&&function(t,e){t.ambientLightColor.needsUpdate=e,t.lightProbe.needsUpdate=e,t.directionalLights.needsUpdate=e,t.directionalLightShadows.needsUpdate=e,t.pointLights.needsUpdate=e,t.pointLightShadows.needsUpdate=e,t.spotLights.needsUpdate=e,t.spotLightShadows.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}(w,v),i&&n.fog&&q.refreshFogUniforms(w,i),q.refreshMaterialUniforms(w,n,E,C),Ks.upload(lt,l.uniformsList,w,V)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(Ks.upload(lt,l.uniformsList,w,V),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&y.setValue(lt,"center",r.center),y.setValue(lt,"modelViewMatrix",r.modelViewMatrix),y.setValue(lt,"normalMatrix",r.normalMatrix),y.setValue(lt,"modelMatrix",r.matrixWorld),f}_t.setAnimationLoop((function(t){gt&&gt(t)})),"undefined"!=typeof window&&_t.setContext(window),this.setAnimationLoop=function(t){gt=t,dt.setAnimationLoop(t),null===t?_t.stop():_t.start()},dt.addEventListener("sessionstart",vt),dt.addEventListener("sessionend",yt),this.render=function(t,e){let n,r;if(void 0!==arguments[2]&&(console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."),n=arguments[2]),void 0!==arguments[3]&&(console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."),r=arguments[3]),void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===g)return;!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===dt.enabled&&!0===dt.isPresenting&&(e=dt.getCamera(e)),!0===t.isScene&&t.onBeforeRender(m,t,e,n||_),d=tt.get(t,p.length),d.init(),p.push(d),D.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),O.setFromProjectionMatrix(D),k=this.localClippingEnabled,B=et.init(this.clippingPlanes,k,e),h=$.get(t,f.length),h.init(),f.push(h),bt(t,e,0,m.sortObjects),h.finish(),!0===m.sortObjects&&h.sort(T,I),!0===B&&et.beginShadows();const i=d.state.shadowsArray;nt.render(i,t,e),d.setupLights(),d.setupLightsView(e),!0===B&&et.endShadows(),!0===this.info.autoReset&&this.info.reset(),void 0!==n&&this.setRenderTarget(n),rt.render(h,t,e,r);const o=h.opaque,s=h.transparent;o.length>0&&xt(o,t,e),s.length>0&&xt(s,t,e),null!==_&&(V.updateRenderTargetMipmap(_),V.updateMultisampleRenderTarget(_)),!0===t.isScene&&t.onAfterRender(m,t,e),G.buffers.depth.setTest(!0),G.buffers.depth.setMask(!0),G.buffers.color.setMask(!0),G.setPolygonOffset(!1),ct.resetDefaultState(),b=-1,x=null,p.pop(),d=p.length>0?p[p.length-1]:null,f.pop(),h=f.length>0?f[f.length-1]:null},this.getActiveCubeFace=function(){return v},this.getActiveMipmapLevel=function(){return y},this.getRenderTarget=function(){return _},this.setRenderTarget=function(t,e=0,n=0){_=t,v=e,y=n,t&&void 0===W.get(t).__webglFramebuffer&&V.setupRenderTarget(t);let r=null,i=!1,o=!1;if(t){const n=t.texture;(n.isDataTexture3D||n.isDataTexture2DArray)&&(o=!0);const s=W.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=s[e],i=!0):r=t.isWebGLMultisampleRenderTarget?W.get(t).__webglMultisampledFramebuffer:s,w.copy(t.viewport),S.copy(t.scissor),M=t.scissorTest}else w.copy(P).multiplyScalar(E).floor(),S.copy(L).multiplyScalar(E).floor(),M=R;if(G.bindFramebuffer(36160,r),G.viewport(w),G.scissor(S),G.setScissorTest(M),i){const r=W.get(t.texture);lt.framebufferTexture2D(36160,36064,34069+e,r.__webglTexture,n)}else if(o){const r=W.get(t.texture),i=e||0;lt.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}},this.readRenderTargetPixels=function(t,e,n,r,i,o,s){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let a=W.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==s&&(a=a[s]),a){G.bindFramebuffer(36160,a);try{const s=t.texture,a=s.format,c=s.type;if(a!==Nt&&at.convert(a)!==lt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const l=c===Lt&&(U.has("EXT_color_buffer_half_float")||z.isWebGL2&&U.has("EXT_color_buffer_float"));if(!(c===Mt||at.convert(c)===lt.getParameter(35738)||c===Pt&&(z.isWebGL2||U.has("OES_texture_float")||U.has("WEBGL_color_buffer_float"))||l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===lt.checkFramebufferStatus(36160)?e>=0&&e<=t.width-r&&n>=0&&n<=t.height-i&&lt.readPixels(e,n,r,i,at.convert(a),at.convert(c),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const t=null!==_?W.get(_).__webglFramebuffer:null;G.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const r=Math.pow(2,-n),i=Math.floor(e.image.width*r),o=Math.floor(e.image.height*r),s=at.convert(e.format);V.setTexture2D(e,0),lt.copyTexImage2D(3553,n,s,t.x,t.y,i,o,0),G.unbindTexture()},this.copyTextureToTexture=function(t,e,n,r=0){const i=e.image.width,o=e.image.height,s=at.convert(n.format),a=at.convert(n.type);V.setTexture2D(n,0),lt.pixelStorei(37440,n.flipY),lt.pixelStorei(37441,n.premultiplyAlpha),lt.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?lt.texSubImage2D(3553,r,t.x,t.y,i,o,s,a,e.image.data):e.isCompressedTexture?lt.compressedTexSubImage2D(3553,r,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,s,e.mipmaps[0].data):lt.texSubImage2D(3553,r,t.x,t.y,s,a,e.image),0===r&&n.generateMipmaps&&lt.generateMipmap(3553),G.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,r,i=0){if(m.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const{width:o,height:s,data:a}=n.image,c=at.convert(r.format),l=at.convert(r.type);let u;if(r.isDataTexture3D)V.setTexture3D(r,0),u=32879;else{if(!r.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");V.setTexture2DArray(r,0),u=35866}lt.pixelStorei(37440,r.flipY),lt.pixelStorei(37441,r.premultiplyAlpha),lt.pixelStorei(3317,r.unpackAlignment);const h=lt.getParameter(3314),d=lt.getParameter(32878),f=lt.getParameter(3316),p=lt.getParameter(3315),g=lt.getParameter(32877);lt.pixelStorei(3314,o),lt.pixelStorei(32878,s),lt.pixelStorei(3316,t.min.x),lt.pixelStorei(3315,t.min.y),lt.pixelStorei(32877,t.min.z),lt.texSubImage3D(u,i,e.x,e.y,e.z,t.max.x-t.min.x+1,t.max.y-t.min.y+1,t.max.z-t.min.z+1,c,l,a),lt.pixelStorei(3314,h),lt.pixelStorei(32878,d),lt.pixelStorei(3316,f),lt.pixelStorei(3315,p),lt.pixelStorei(32877,g),0===i&&r.generateMipmaps&&lt.generateMipmap(u),G.unbindTexture()},this.initTexture=function(t){V.setTexture2D(t,0),G.unbindTexture()},this.resetState=function(){v=0,y=0,_=null,G.reset(),ct.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}ja.prototype.isGroup=!0,Object.assign(Ua.prototype,{constructor:Ua,getHandSpace:function(){return null===this._hand&&(this._hand=new ja,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand},getTargetRaySpace:function(){return null===this._targetRay&&(this._targetRay=new ja,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1),this._targetRay},getGripSpace:function(){return null===this._grip&&(this._grip=new ja,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1),this._grip},dispatchEvent:function(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this},disconnect:function(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this},update:function(t,e,n){let r=null,i=null,o=null;const s=this._targetRay,a=this._grip,c=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState)if(null!==s&&(r=e.getPose(t.targetRaySpace,n),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale))),c&&t.hand){o=!0;for(const r of t.hand.values()){const t=e.getJointPose(r,n);if(void 0===c.joints[r.jointName]){const t=new ja;t.matrixAutoUpdate=!1,t.visible=!1,c.joints[r.jointName]=t,c.add(t)}const i=c.joints[r.jointName];null!==t&&(i.matrix.fromArray(t.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=t.radius),i.visible=null!==t}const r=c.joints["index-finger-tip"],i=c.joints["thumb-tip"],s=r.position.distanceTo(i.position),a=.02,l=.005;c.inputState.pinching&&s>a+l?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!c.inputState.pinching&&s<=a-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==a&&t.gripSpace&&(i=e.getPose(t.gripSpace,n),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale)));return null!==s&&(s.visible=null!==r),null!==a&&(a.visible=null!==i),null!==c&&(c.visible=null!==o),this}}),Object.assign(za.prototype,Dn.prototype);class Wa extends Ha{}Wa.prototype.isWebGL1Renderer=!0;class Va{constructor(t,e=25e-5){this.name="",this.color=new Si(t),this.density=e}clone(){return new Va(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}Va.prototype.isFogExp2=!0;class Za{constructor(t,e=1,n=1e3){this.name="",this.color=new Si(t),this.near=e,this.far=n}clone(){return new Za(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}Za.prototype.isFog=!0;class Qa extends $r{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.background&&(e.object.background=this.background.toJSON(t)),null!==this.environment&&(e.object.environment=this.environment.toJSON(t)),null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}function Xa(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=An,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=jn.generateUUID()}Qa.prototype.isScene=!0,Object.defineProperty(Xa.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Xa.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this},copyAt:function(t,e,n){t*=this.stride,n*=e.stride;for(let r=0,i=this.stride;r<i;r++)this.array[t+r]=e.array[n+r];return this},set:function(t,e=0){return this.array.set(t,e),this},clone:function(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=jn.generateUUID()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new Xa(new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),this.stride);return e.setUsage(this.usage),e},onUpload:function(t){return this.onUploadCallback=t,this},toJSON:function(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=jn.generateUUID()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});const Ya=new qn;function Ja(t,e,n,r){this.name="",this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===r}Object.defineProperties(Ja.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}},needsUpdate:{set:function(t){this.data.needsUpdate=t}}}),Object.assign(Ja.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(t){for(let e=0,n=this.data.count;e<n;e++)Ya.x=this.getX(e),Ya.y=this.getY(e),Ya.z=this.getZ(e),Ya.applyMatrix4(t),this.setXYZ(e,Ya.x,Ya.y,Ya.z);return this},applyNormalMatrix:function(t){for(let e=0,n=this.count;e<n;e++)Ya.x=this.getX(e),Ya.y=this.getY(e),Ya.z=this.getZ(e),Ya.applyNormalMatrix(t),this.setXYZ(e,Ya.x,Ya.y,Ya.z);return this},transformDirection:function(t){for(let e=0,n=this.count;e<n;e++)Ya.x=this.getX(e),Ya.y=this.getY(e),Ya.z=this.getZ(e),Ya.transformDirection(t),this.setXYZ(e,Ya.x,Ya.y,Ya.z);return this},setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this},setXYZ:function(t,e,n,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=r,this},setXYZW:function(t,e,n,r,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=r,this.data.array[t+3]=i,this},clone:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return new Ei(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new Ja(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}});class qa extends gi{constructor(t){super(),this.type="SpriteMaterial",this.color=new Si(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this}}let Ka;qa.prototype.isSpriteMaterial=!0;const $a=new qn,tc=new qn,ec=new qn,nc=new Un,rc=new Un,ic=new Tr,oc=new qn,sc=new qn,ac=new qn,cc=new Un,lc=new Un,uc=new Un;class hc extends $r{constructor(t){if(super(),this.type="Sprite",void 0===Ka){Ka=new Xi;const t=new Xa(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);Ka.setIndex([0,1,2,0,2,3]),Ka.setAttribute("position",new Ja(t,3,0,!1)),Ka.setAttribute("uv",new Ja(t,2,3,!1))}this.geometry=Ka,this.material=void 0!==t?t:new qa,this.center=new Un(.5,.5)}raycast(t,e){null===t.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),tc.setFromMatrixScale(this.matrixWorld),ic.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),ec.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&tc.multiplyScalar(-ec.z);const n=this.material.rotation;let r,i;0!==n&&(i=Math.cos(n),r=Math.sin(n));const o=this.center;dc(oc.set(-.5,-.5,0),ec,o,tc,r,i),dc(sc.set(.5,-.5,0),ec,o,tc,r,i),dc(ac.set(.5,.5,0),ec,o,tc,r,i),cc.set(0,0),lc.set(1,0),uc.set(1,1);let s=t.ray.intersectTriangle(oc,sc,ac,!1,$a);if(null===s&&(dc(sc.set(-.5,.5,0),ec,o,tc,r,i),lc.set(0,1),s=t.ray.intersectTriangle(oc,ac,sc,!1,$a),null===s))return;const a=t.ray.origin.distanceTo($a);a<t.near||a>t.far||e.push({distance:a,point:$a.clone(),uv:pi.getUV($a,oc,sc,ac,cc,lc,uc,new Un),face:null,object:this})}copy(t){return super.copy(t),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function dc(t,e,n,r,i,o){nc.subVectors(t,n).addScalar(.5).multiply(r),void 0!==i?(rc.x=o*nc.x-i*nc.y,rc.y=i*nc.x+o*nc.y):rc.copy(nc),t.copy(e),t.x+=rc.x,t.y+=rc.y,t.applyMatrix4(ic)}hc.prototype.isSprite=!0;const fc=new qn,pc=new qn;class mc extends $r{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(t){super.copy(t,!1);const e=t.levels;for(let t=0,n=e.length;t<n;t++){const n=e[t];this.addLevel(n.object.clone(),n.distance)}return this.autoUpdate=t.autoUpdate,this}addLevel(t,e=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,object:t}),this.add(t),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(t){const e=this.levels;if(e.length>0){let n,r;for(n=1,r=e.length;n<r&&!(t<e[n].distance);n++);return e[n-1].object}return null}raycast(t,e){if(this.levels.length>0){fc.setFromMatrixPosition(this.matrixWorld);const n=t.ray.origin.distanceTo(fc);this.getObjectForDistance(n).raycast(t,e)}}update(t){const e=this.levels;if(e.length>1){fc.setFromMatrixPosition(t.matrixWorld),pc.setFromMatrixPosition(this.matrixWorld);const n=fc.distanceTo(pc)/t.zoom;let r,i;for(e[0].object.visible=!0,r=1,i=e.length;r<i&&n>=e[r].distance;r++)e[r-1].object.visible=!1,e[r].object.visible=!0;for(this._currentLevel=r-1;r<i;r++)e[r].object.visible=!1}}toJSON(t){const e=super.toJSON(t);!1===this.autoUpdate&&(e.object.autoUpdate=!1),e.object.levels=[];const n=this.levels;for(let t=0,r=n.length;t<r;t++){const r=n[t];e.object.levels.push({object:r.object.uuid,distance:r.distance})}return e}}const gc=new qn,vc=new Qn,yc=new Qn,_c=new qn,bc=new Tr;function xc(t,e){fo.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Tr,this.bindMatrixInverse=new Tr}function wc(){$r.call(this),this.type="Bone"}xc.prototype=Object.assign(Object.create(fo.prototype),{constructor:xc,isSkinnedMesh:!0,copy:function(t){return fo.prototype.copy.call(this,t),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this},bind:function(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.copy(e).invert()},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){const t=new Qn,e=this.geometry.attributes.skinWeight;for(let n=0,r=e.count;n<r;n++){t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.w=e.getW(n);const r=1/t.manhattanLength();r!==1/0?t.multiplyScalar(r):t.set(1,0,0,0),e.setXYZW(n,t.x,t.y,t.z,t.w)}},updateMatrixWorld:function(t){fo.prototype.updateMatrixWorld.call(this,t),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},boneTransform:function(t,e){const n=this.skeleton,r=this.geometry;vc.fromBufferAttribute(r.attributes.skinIndex,t),yc.fromBufferAttribute(r.attributes.skinWeight,t),gc.fromBufferAttribute(r.attributes.position,t).applyMatrix4(this.bindMatrix),e.set(0,0,0);for(let t=0;t<4;t++){const r=yc.getComponent(t);if(0!==r){const i=vc.getComponent(t);bc.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),e.addScaledVector(_c.copy(gc).applyMatrix4(bc),r)}}return e.applyMatrix4(this.bindMatrixInverse)}}),wc.prototype=Object.assign(Object.create($r.prototype),{constructor:wc,isBone:!0});const Sc=new Tr,Mc=new Tr;class Ac{constructor(t=[],e=[]){this.uuid=jn.generateUUID(),this.bones=t.slice(0),this.boneInverses=e,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const t=this.bones,e=this.boneInverses;if(this.boneMatrices=new Float32Array(16*t.length),0===e.length)this.calculateInverses();else if(t.length!==e.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new Tr)}}calculateInverses(){this.boneInverses.length=0;for(let t=0,e=this.bones.length;t<e;t++){const e=new Tr;this.bones[t]&&e.copy(this.bones[t].matrixWorld).invert(),this.boneInverses.push(e)}}pose(){for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&e.matrixWorld.copy(this.boneInverses[t]).invert()}for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];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 t=this.bones,e=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let r=0,i=t.length;r<i;r++){const i=t[r]?t[r].matrixWorld:Mc;Sc.multiplyMatrices(i,e[r]),Sc.toArray(n,16*r)}null!==r&&(r.needsUpdate=!0)}clone(){return new Ac(this.bones,this.boneInverses)}getBoneByName(t){for(let e=0,n=this.bones.length;e<n;e++){const n=this.bones[e];if(n.name===t)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(t,e){this.uuid=t.uuid;for(let n=0,r=t.bones.length;n<r;n++){const r=t.bones[n];let i=e[r];void 0===i&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),i=new wc),this.bones.push(i),this.boneInverses.push((new Tr).fromArray(t.boneInverses[n]))}return this.init(),this}toJSON(){const t={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};t.uuid=this.uuid;const e=this.bones,n=this.boneInverses;for(let r=0,i=e.length;r<i;r++){const i=e[r];t.bones.push(i.uuid);const o=n[r];t.boneInverses.push(o.toArray())}return t}}const Cc=new Tr,Ec=new Tr,Tc=[],Ic=new fo;function Pc(t,e,n){fo.call(this,t,e),this.instanceMatrix=new Ei(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}Pc.prototype=Object.assign(Object.create(fo.prototype),{constructor:Pc,isInstancedMesh:!0,copy:function(t){return fo.prototype.copy.call(this,t),this.instanceMatrix.copy(t.instanceMatrix),null!==t.instanceColor&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,this},getColorAt:function(t,e){e.fromArray(this.instanceColor.array,3*t)},getMatrixAt:function(t,e){e.fromArray(this.instanceMatrix.array,16*t)},raycast:function(t,e){const n=this.matrixWorld,r=this.count;if(Ic.geometry=this.geometry,Ic.material=this.material,void 0!==Ic.material)for(let i=0;i<r;i++){this.getMatrixAt(i,Cc),Ec.multiplyMatrices(n,Cc),Ic.matrixWorld=Ec,Ic.raycast(t,Tc);for(let t=0,n=Tc.length;t<n;t++){const n=Tc[t];n.instanceId=i,n.object=this,e.push(n)}Tc.length=0}},setColorAt:function(t,e){null===this.instanceColor&&(this.instanceColor=new Ei(new Float32Array(3*this.count),3)),e.toArray(this.instanceColor.array,3*t)},setMatrixAt:function(t,e){e.toArray(this.instanceMatrix.array,16*t)},updateMorphTargets:function(){},dispose:function(){this.dispatchEvent({type:"dispose"})}});class Lc extends gi{constructor(t){super(),this.type="LineBasicMaterial",this.color=new Si(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.morphTargets=t.morphTargets,this}}Lc.prototype.isLineBasicMaterial=!0;const Rc=new qn,Oc=new qn,Bc=new Tr,kc=new Er,Dc=new _r;function Fc(t=new Xi,e=new Lc){$r.call(this),this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}Fc.prototype=Object.assign(Object.create($r.prototype),{constructor:Fc,isLine:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.material=t.material,this.geometry=t.geometry,this},computeLineDistances:function(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[0];for(let t=1,r=e.count;t<r;t++)Rc.fromBufferAttribute(e,t-1),Oc.fromBufferAttribute(e,t),n[t]=n[t-1],n[t]+=Rc.distanceTo(Oc);t.setAttribute("lineDistance",new Di(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this},raycast:function(t,e){const n=this.geometry,r=this.matrixWorld,i=t.params.Line.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Dc.copy(n.boundingSphere),Dc.applyMatrix4(r),Dc.radius+=i,!1===t.ray.intersectsSphere(Dc))return;Bc.copy(r).invert(),kc.copy(t.ray).applyMatrix4(Bc);const s=i/((this.scale.x+this.scale.y+this.scale.z)/3),a=s*s,c=new qn,l=new qn,u=new qn,h=new qn,d=this.isLineSegments?2:1;if(n.isBufferGeometry){const r=n.index,i=n.attributes.position;if(null!==r){const n=Math.max(0,o.start),s=Math.min(r.count,o.start+o.count);for(let o=n,f=s-1;o<f;o+=d){const n=r.getX(o),s=r.getX(o+1);if(c.fromBufferAttribute(i,n),l.fromBufferAttribute(i,s),kc.distanceSqToSegment(c,l,h,u)>a)continue;h.applyMatrix4(this.matrixWorld);const d=t.ray.origin.distanceTo(h);d<t.near||d>t.far||e.push({distance:d,point:u.clone().applyMatrix4(this.matrixWorld),index:o,face:null,faceIndex:null,object:this})}}else for(let n=Math.max(0,r.start),r=Math.min(i.count,r.start+r.count)-1;n<r;n+=d){if(c.fromBufferAttribute(i,n),l.fromBufferAttribute(i,n+1),kc.distanceSqToSegment(c,l,h,u)>a)continue;h.applyMatrix4(this.matrixWorld);const r=t.ray.origin.distanceTo(h);r<t.near||r>t.far||e.push({distance:r,point:u.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}});const Nc=new qn,jc=new qn;function Uc(t,e){Fc.call(this,t,e),this.type="LineSegments"}Uc.prototype=Object.assign(Object.create(Fc.prototype),{constructor:Uc,isLineSegments:!0,computeLineDistances:function(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[];for(let t=0,r=e.count;t<r;t+=2)Nc.fromBufferAttribute(e,t),jc.fromBufferAttribute(e,t+1),n[t]=0===t?0:n[t-1],n[t+1]=n[t]+Nc.distanceTo(jc);t.setAttribute("lineDistance",new Di(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}});class zc extends Fc{constructor(t,e){super(t,e),this.type="LineLoop"}}zc.prototype.isLineLoop=!0;class Gc extends gi{constructor(t){super(),this.type="PointsMaterial",this.color=new Si(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this}}Gc.prototype.isPointsMaterial=!0;const Hc=new Tr,Wc=new Er,Vc=new _r,Zc=new qn;function Qc(t=new Xi,e=new Gc){$r.call(this),this.type="Points",this.geometry=t,this.material=e,this.updateMorphTargets()}function Xc(t,e,n,r,i,o,s){const a=Wc.distanceSqToPoint(t);if(a<n){const n=new qn;Wc.closestPointToPoint(t,n),n.applyMatrix4(r);const c=i.ray.origin.distanceTo(n);if(c<i.near||c>i.far)return;o.push({distance:c,distanceToRay:Math.sqrt(a),point:n,index:e,face:null,object:s})}}Qc.prototype=Object.assign(Object.create($r.prototype),{constructor:Qc,isPoints:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.material=t.material,this.geometry=t.geometry,this},raycast:function(t,e){const n=this.geometry,r=this.matrixWorld,i=t.params.Points.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Vc.copy(n.boundingSphere),Vc.applyMatrix4(r),Vc.radius+=i,!1===t.ray.intersectsSphere(Vc))return;Hc.copy(r).invert(),Wc.copy(t.ray).applyMatrix4(Hc);const s=i/((this.scale.x+this.scale.y+this.scale.z)/3),a=s*s;if(n.isBufferGeometry){const i=n.index,s=n.attributes.position;if(null!==i){const n=Math.max(0,o.start),c=Math.min(i.count,o.start+o.count);for(let o=n,l=c;o<l;o++){const n=i.getX(o);Zc.fromBufferAttribute(s,n),Xc(Zc,n,a,r,t,e,this)}}else{const n=Math.max(0,o.start),i=Math.min(s.count,o.start+o.count);for(let o=n,c=i;o<c;o++)Zc.fromBufferAttribute(s,o),Xc(Zc,o,a,r,t,e,this)}}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}});class Yc extends Vn{constructor(t,e,n,r,i,o,s,a,c){super(t,e,n,r,i,o,s,a,c),this.format=void 0!==s?s:Ft,this.minFilter=void 0!==o?o:_t,this.magFilter=void 0!==i?i:_t,this.generateMipmaps=!1;const l=this;"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback((function e(){l.needsUpdate=!0,t.requestVideoFrameCallback(e)}))}clone(){return new this.constructor(this.image).copy(this)}update(){const t=this.image;!1=="requestVideoFrameCallback"in t&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}Yc.prototype.isVideoTexture=!0;class Jc extends Vn{constructor(t,e,n,r,i,o,s,a,c,l,u,h){super(null,o,s,a,c,l,r,i,u,h),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}Jc.prototype.isCompressedTexture=!0;class qc extends Vn{constructor(t,e,n,r,i,o,s,a,c){super(t,e,n,r,i,o,s,a,c),this.needsUpdate=!0}}qc.prototype.isCanvasTexture=!0;class Kc extends Vn{constructor(t,e,n,r,i,o,s,a,c,l){if((l=void 0!==l?l:Gt)!==Gt&&l!==Ht)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===Gt&&(n=Et),void 0===n&&l===Ht&&(n=kt),super(null,r,i,o,s,a,l,n,c),this.image={width:t,height:e},this.magFilter=void 0!==s?s:pt,this.minFilter=void 0!==a?a:pt,this.flipY=!1,this.generateMipmaps=!1}}Kc.prototype.isDepthTexture=!0;class $c extends Xi{constructor(t=1,e=8,n=0,r=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:r},e=Math.max(3,e);const i=[],o=[],s=[],a=[],c=new qn,l=new Un;o.push(0,0,0),s.push(0,0,1),a.push(.5,.5);for(let i=0,u=3;i<=e;i++,u+=3){const h=n+i/e*r;c.x=t*Math.cos(h),c.y=t*Math.sin(h),o.push(c.x,c.y,c.z),s.push(0,0,1),l.x=(o[u]/t+1)/2,l.y=(o[u+1]/t+1)/2,a.push(l.x,l.y)}for(let t=1;t<=e;t++)i.push(t,t+1,0);this.setIndex(i),this.setAttribute("position",new Di(o,3)),this.setAttribute("normal",new Di(s,3)),this.setAttribute("uv",new Di(a,2))}}class tl extends Xi{constructor(t=1,e=1,n=1,r=8,i=1,o=!1,s=0,a=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:r,heightSegments:i,openEnded:o,thetaStart:s,thetaLength:a};const c=this;r=Math.floor(r),i=Math.floor(i);const l=[],u=[],h=[],d=[];let f=0;const p=[],m=n/2;let g=0;function v(n){const i=f,o=new Un,p=new qn;let v=0;const y=!0===n?t:e,_=!0===n?1:-1;for(let t=1;t<=r;t++)u.push(0,m*_,0),h.push(0,_,0),d.push(.5,.5),f++;const b=f;for(let t=0;t<=r;t++){const e=t/r*a+s,n=Math.cos(e),i=Math.sin(e);p.x=y*i,p.y=m*_,p.z=y*n,u.push(p.x,p.y,p.z),h.push(0,_,0),o.x=.5*n+.5,o.y=.5*i*_+.5,d.push(o.x,o.y),f++}for(let t=0;t<r;t++){const e=i+t,r=b+t;!0===n?l.push(r,r+1,e):l.push(r+1,r,e),v+=3}c.addGroup(g,v,!0===n?1:2),g+=v}(function(){const o=new qn,v=new qn;let y=0;const _=(e-t)/n;for(let c=0;c<=i;c++){const l=[],g=c/i,y=g*(e-t)+t;for(let t=0;t<=r;t++){const e=t/r,i=e*a+s,c=Math.sin(i),p=Math.cos(i);v.x=y*c,v.y=-g*n+m,v.z=y*p,u.push(v.x,v.y,v.z),o.set(c,_,p).normalize(),h.push(o.x,o.y,o.z),d.push(e,1-g),l.push(f++)}p.push(l)}for(let t=0;t<r;t++)for(let e=0;e<i;e++){const n=p[e][t],r=p[e+1][t],i=p[e+1][t+1],o=p[e][t+1];l.push(n,r,o),l.push(r,i,o),y+=6}c.addGroup(g,y,0),g+=y})(),!1===o&&(t>0&&v(!0),e>0&&v(!1)),this.setIndex(l),this.setAttribute("position",new Di(u,3)),this.setAttribute("normal",new Di(h,3)),this.setAttribute("uv",new Di(d,2))}}class el extends tl{constructor(t=1,e=1,n=8,r=1,i=!1,o=0,s=2*Math.PI){super(0,t,e,n,r,i,o,s),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:o,thetaLength:s}}}class nl extends Xi{constructor(t,e,n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:r};const i=[],o=[];function s(t,e,n,r){const i=r+1,o=[];for(let r=0;r<=i;r++){o[r]=[];const s=t.clone().lerp(n,r/i),a=e.clone().lerp(n,r/i),c=i-r;for(let t=0;t<=c;t++)o[r][t]=0===t&&r===i?s:s.clone().lerp(a,t/c)}for(let t=0;t<i;t++)for(let e=0;e<2*(i-t)-1;e++){const n=Math.floor(e/2);e%2==0?(a(o[t][n+1]),a(o[t+1][n]),a(o[t][n])):(a(o[t][n+1]),a(o[t+1][n+1]),a(o[t+1][n]))}}function a(t){i.push(t.x,t.y,t.z)}function c(e,n){const r=3*e;n.x=t[r+0],n.y=t[r+1],n.z=t[r+2]}function l(t,e,n,r){r<0&&1===t.x&&(o[e]=t.x-1),0===n.x&&0===n.z&&(o[e]=r/2/Math.PI+.5)}function u(t){return Math.atan2(t.z,-t.x)}function h(t){return Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))}(function(t){const n=new qn,r=new qn,i=new qn;for(let o=0;o<e.length;o+=3)c(e[o+0],n),c(e[o+1],r),c(e[o+2],i),s(n,r,i,t)})(r),function(t){const e=new qn;for(let n=0;n<i.length;n+=3)e.x=i[n+0],e.y=i[n+1],e.z=i[n+2],e.normalize().multiplyScalar(t),i[n+0]=e.x,i[n+1]=e.y,i[n+2]=e.z}(n),function(){const t=new qn;for(let e=0;e<i.length;e+=3){t.x=i[e+0],t.y=i[e+1],t.z=i[e+2];const n=u(t)/2/Math.PI+.5,r=h(t)/Math.PI+.5;o.push(n,1-r)}(function(){const t=new qn,e=new qn,n=new qn,r=new qn,s=new Un,a=new Un,c=new Un;for(let h=0,d=0;h<i.length;h+=9,d+=6){t.set(i[h+0],i[h+1],i[h+2]),e.set(i[h+3],i[h+4],i[h+5]),n.set(i[h+6],i[h+7],i[h+8]),s.set(o[d+0],o[d+1]),a.set(o[d+2],o[d+3]),c.set(o[d+4],o[d+5]),r.copy(t).add(e).add(n).divideScalar(3);const f=u(r);l(s,d+0,t,f),l(a,d+2,e,f),l(c,d+4,n,f)}})(),function(){for(let t=0;t<o.length;t+=6){const e=o[t+0],n=o[t+2],r=o[t+4],i=Math.max(e,n,r),s=Math.min(e,n,r);i>.9&&s<.1&&(e<.2&&(o[t+0]+=1),n<.2&&(o[t+2]+=1),r<.2&&(o[t+4]+=1))}}()}(),this.setAttribute("position",new Di(i,3)),this.setAttribute("normal",new Di(i.slice(),3)),this.setAttribute("uv",new Di(o,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}}class rl extends nl{constructor(t=1,e=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,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e}}}const il=new qn,ol=new qn,sl=new qn,al=new pi;class cl extends Xi{constructor(t,e){if(super(),this.type="EdgesGeometry",this.parameters={thresholdAngle:e},e=void 0!==e?e:1,!0===t.isGeometry)return void console.error("THREE.EdgesGeometry no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");const n=Math.pow(10,4),r=Math.cos(jn.DEG2RAD*e),i=t.getIndex(),o=t.getAttribute("position"),s=i?i.count:o.count,a=[0,0,0],c=["a","b","c"],l=new Array(3),u={},h=[];for(let t=0;t<s;t+=3){i?(a[0]=i.getX(t),a[1]=i.getX(t+1),a[2]=i.getX(t+2)):(a[0]=t,a[1]=t+1,a[2]=t+2);const{a:e,b:s,c:d}=al;if(e.fromBufferAttribute(o,a[0]),s.fromBufferAttribute(o,a[1]),d.fromBufferAttribute(o,a[2]),al.getNormal(sl),l[0]=`${Math.round(e.x*n)},${Math.round(e.y*n)},${Math.round(e.z*n)}`,l[1]=`${Math.round(s.x*n)},${Math.round(s.y*n)},${Math.round(s.z*n)}`,l[2]=`${Math.round(d.x*n)},${Math.round(d.y*n)},${Math.round(d.z*n)}`,l[0]!==l[1]&&l[1]!==l[2]&&l[2]!==l[0])for(let t=0;t<3;t++){const e=(t+1)%3,n=l[t],i=l[e],o=al[c[t]],s=al[c[e]],d=`${n}_${i}`,f=`${i}_${n}`;f in u&&u[f]?(sl.dot(u[f].normal)<=r&&(h.push(o.x,o.y,o.z),h.push(s.x,s.y,s.z)),u[f]=null):d in u||(u[d]={index0:a[t],index1:a[e],normal:sl.clone()})}}for(const t in u)if(u[t]){const{index0:e,index1:n}=u[t];il.fromBufferAttribute(o,e),ol.fromBufferAttribute(o,n),h.push(il.x,il.y,il.z),h.push(ol.x,ol.y,ol.z)}this.setAttribute("position",new Di(h,3))}}const ll=function(t,e,n){n=n||2;const r=e&&e.length,i=r?e[0]*n:t.length;let o=ul(t,0,i,n,!0);const s=[];if(!o||o.next===o.prev)return s;let a,c,l,u,h,d,f;if(r&&(o=function(t,e,n,r){const i=[];let o,s,a,c,l;for(o=0,s=e.length;o<s;o++)a=e[o]*r,c=o<s-1?e[o+1]*r:t.length,l=ul(t,a,c,r,!1),l===l.next&&(l.steiner=!0),i.push(xl(l));for(i.sort(vl),o=0;o<i.length;o++)yl(i[o],n),n=hl(n,n.next);return n}(t,e,o,n)),t.length>80*n){a=l=t[0],c=u=t[1];for(let e=n;e<i;e+=n)h=t[e],d=t[e+1],h<a&&(a=h),d<c&&(c=d),h>l&&(l=h),d>u&&(u=d);f=Math.max(l-a,u-c),f=0!==f?1/f:0}return dl(o,s,n,a,c,f),s};function ul(t,e,n,r,i){let o,s;if(i===function(t,e,n,r){let i=0;for(let o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}(t,e,n,r)>0)for(o=e;o<n;o+=r)s=Ll(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=Ll(o,t[o],t[o+1],s);return s&&Al(s,s.next)&&(Rl(s),s=s.next),s}function hl(t,e){if(!t)return t;e||(e=t);let n,r=t;do{if(n=!1,r.steiner||!Al(r,r.next)&&0!==Ml(r.prev,r,r.next))r=r.next;else{if(Rl(r),r=e=r.prev,r===r.next)break;n=!0}}while(n||r!==e);return e}function dl(t,e,n,r,i,o,s){if(!t)return;!s&&o&&function(t,e,n,r){let i=t;do{null===i.z&&(i.z=bl(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n,r,i,o,s,a,c,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<l&&(a++,r=r.nextZ,r);e++);for(c=l;a>0||c>0&&r;)0!==a&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,r,i,o);let a,c,l=t;for(;t.prev!==t.next;)if(a=t.prev,c=t.next,o?pl(t,r,i,o):fl(t))e.push(a.i/n),e.push(t.i/n),e.push(c.i/n),Rl(t),t=c.next,l=c.next;else if((t=c)===l){s?1===s?dl(t=ml(hl(t),e,n),e,n,r,i,o,2):2===s&&gl(t,e,n,r,i,o):dl(hl(t),e,n,r,i,o,1);break}}function fl(t){const e=t.prev,n=t,r=t.next;if(Ml(e,n,r)>=0)return!1;let i=t.next.next;for(;i!==t.prev;){if(wl(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ml(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function pl(t,e,n,r){const i=t.prev,o=t,s=t.next;if(Ml(i,o,s)>=0)return!1;const a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,c=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,l=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,u=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=bl(a,c,e,n,r),d=bl(l,u,e,n,r);let f=t.prevZ,p=t.nextZ;for(;f&&f.z>=h&&p&&p.z<=d;){if(f!==t.prev&&f!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,f.x,f.y)&&Ml(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==t.prev&&p!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Ml(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=h;){if(f!==t.prev&&f!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,f.x,f.y)&&Ml(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&wl(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&Ml(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function ml(t,e,n){let r=t;do{const i=r.prev,o=r.next.next;!Al(i,o)&&Cl(i,r,r.next,o)&&Il(i,o)&&Il(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),Rl(r),Rl(r.next),r=t=o),r=r.next}while(r!==t);return hl(r)}function gl(t,e,n,r,i,o){let s=t;do{let t=s.next.next;for(;t!==s.prev;){if(s.i!==t.i&&Sl(s,t)){let a=Pl(s,t);return s=hl(s,s.next),a=hl(a,a.next),dl(s,e,n,r,i,o),void dl(a,e,n,r,i,o)}t=t.next}s=s.next}while(s!==t)}function vl(t,e){return t.x-e.x}function yl(t,e){if(e=function(t,e){let n=e;const r=t.x,i=t.y;let o,s=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){const t=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=r&&t>s){if(s=t,t===r){if(i===n.y)return n;if(i===n.next.y)return n.next}o=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!o)return null;if(r===s)return o;const a=o,c=o.x,l=o.y;let u,h=1/0;n=o;do{r>=n.x&&n.x>=c&&r!==n.x&&wl(i<l?r:s,i,c,l,i<l?s:r,i,n.x,n.y)&&(u=Math.abs(i-n.y)/(r-n.x),Il(n,t)&&(u<h||u===h&&(n.x>o.x||n.x===o.x&&_l(o,n)))&&(o=n,h=u)),n=n.next}while(n!==a);return o}(t,e)){const n=Pl(e,t);hl(e,e.next),hl(n,n.next)}}function _l(t,e){return Ml(t.prev,t,e.prev)<0&&Ml(e.next,t,t.next)<0}function bl(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function xl(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function wl(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function Sl(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Cl(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Il(t,e)&&Il(e,t)&&function(t,e){let n=t,r=!1;const i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(Ml(t.prev,t,e.prev)||Ml(t,e.prev,e))||Al(t,e)&&Ml(t.prev,t,t.next)>0&&Ml(e.prev,e,e.next)>0)}function Ml(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Al(t,e){return t.x===e.x&&t.y===e.y}function Cl(t,e,n,r){const i=Tl(Ml(t,e,n)),o=Tl(Ml(t,e,r)),s=Tl(Ml(n,r,t)),a=Tl(Ml(n,r,e));return i!==o&&s!==a||!(0!==i||!El(t,n,e))||!(0!==o||!El(t,r,e))||!(0!==s||!El(n,t,r))||!(0!==a||!El(n,e,r))}function El(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Tl(t){return t>0?1:t<0?-1:0}function Il(t,e){return Ml(t.prev,t,t.next)<0?Ml(t,e,t.next)>=0&&Ml(t,t.prev,e)>=0:Ml(t,e,t.prev)<0||Ml(t,t.next,e)<0}function Pl(t,e){const n=new Ol(t.i,t.x,t.y),r=new Ol(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Ll(t,e,n,r){const i=new Ol(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Rl(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Ol(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}const Bl={area:function(t){const e=t.length;let n=0;for(let r=e-1,i=0;i<e;r=i++)n+=t[r].x*t[i].y-t[i].x*t[r].y;return.5*n},isClockWise:function(t){return Bl.area(t)<0},triangulateShape:function(t,e){const n=[],r=[],i=[];kl(t),Dl(n,t);let o=t.length;e.forEach(kl);for(let t=0;t<e.length;t++)r.push(o),o+=e[t].length,Dl(n,e[t]);const s=ll(n,r);for(let t=0;t<s.length;t+=3)i.push(s.slice(t,t+3));return i}};function kl(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function Dl(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class Fl extends Xi{constructor(t,e){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const n=this,r=[],i=[];for(let e=0,n=t.length;e<n;e++)o(t[e]);function o(t){const o=[],s=void 0!==e.curveSegments?e.curveSegments:12,a=void 0!==e.steps?e.steps:1;let c=void 0!==e.depth?e.depth:100,l=void 0===e.bevelEnabled||e.bevelEnabled,u=void 0!==e.bevelThickness?e.bevelThickness:6,h=void 0!==e.bevelSize?e.bevelSize:u-2,d=void 0!==e.bevelOffset?e.bevelOffset:0,f=void 0!==e.bevelSegments?e.bevelSegments:3;const p=e.extrudePath,m=void 0!==e.UVGenerator?e.UVGenerator:Nl;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),c=e.amount);let g,v,y,_,b,x=!1;p&&(g=p.getSpacedPoints(a),x=!0,l=!1,v=p.computeFrenetFrames(a,!1),y=new qn,_=new qn,b=new qn),l||(f=0,u=0,h=0,d=0);const w=t.extractPoints(s);let S=w.shape;const M=w.holes;if(!Bl.isClockWise(S)){S=S.reverse();for(let t=0,e=M.length;t<e;t++){const e=M[t];Bl.isClockWise(e)&&(M[t]=e.reverse())}}const A=Bl.triangulateShape(S,M),C=S;for(let t=0,e=M.length;t<e;t++){const e=M[t];S=S.concat(e)}function E(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}const T=S.length,I=A.length;function P(t,e,n){let r,i,o;const s=t.x-e.x,a=t.y-e.y,c=n.x-t.x,l=n.y-t.y,u=s*s+a*a,h=s*l-a*c;if(Math.abs(h)>Number.EPSILON){const h=Math.sqrt(u),d=Math.sqrt(c*c+l*l),f=e.x-a/h,p=e.y+s/h,m=((n.x-l/d-f)*l-(n.y+c/d-p)*c)/(s*l-a*c);r=f+s*m-t.x,i=p+a*m-t.y;const g=r*r+i*i;if(g<=2)return new Un(r,i);o=Math.sqrt(g/2)}else{let t=!1;s>Number.EPSILON?c>Number.EPSILON&&(t=!0):s<-Number.EPSILON?c<-Number.EPSILON&&(t=!0):Math.sign(a)===Math.sign(l)&&(t=!0),t?(r=-a,i=s,o=Math.sqrt(u)):(r=s,i=a,o=Math.sqrt(u/2))}return new Un(r/o,i/o)}const L=[];for(let t=0,e=C.length,n=e-1,r=t+1;t<e;t++,n++,r++)n===e&&(n=0),r===e&&(r=0),L[t]=P(C[t],C[n],C[r]);const R=[];let O,B=L.concat();for(let t=0,e=M.length;t<e;t++){const e=M[t];O=[];for(let t=0,n=e.length,r=n-1,i=t+1;t<n;t++,r++,i++)r===n&&(r=0),i===n&&(i=0),O[t]=P(e[t],e[r],e[i]);R.push(O),B=B.concat(O)}for(let t=0;t<f;t++){const e=t/f,n=u*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=C.length;t<e;t++){const e=E(C[t],L[t],r);F(e.x,e.y,-n)}for(let t=0,e=M.length;t<e;t++){const e=M[t];O=R[t];for(let t=0,i=e.length;t<i;t++){const i=E(e[t],O[t],r);F(i.x,i.y,-n)}}}const k=h+d;for(let t=0;t<T;t++){const e=l?E(S[t],B[t],k):S[t];x?(_.copy(v.normals[0]).multiplyScalar(e.x),y.copy(v.binormals[0]).multiplyScalar(e.y),b.copy(g[0]).add(_).add(y),F(b.x,b.y,b.z)):F(e.x,e.y,0)}for(let t=1;t<=a;t++)for(let e=0;e<T;e++){const n=l?E(S[e],B[e],k):S[e];x?(_.copy(v.normals[t]).multiplyScalar(n.x),y.copy(v.binormals[t]).multiplyScalar(n.y),b.copy(g[t]).add(_).add(y),F(b.x,b.y,b.z)):F(n.x,n.y,c/a*t)}for(let t=f-1;t>=0;t--){const e=t/f,n=u*Math.cos(e*Math.PI/2),r=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=C.length;t<e;t++){const e=E(C[t],L[t],r);F(e.x,e.y,c+n)}for(let t=0,e=M.length;t<e;t++){const e=M[t];O=R[t];for(let t=0,i=e.length;t<i;t++){const i=E(e[t],O[t],r);x?F(i.x,i.y+g[a-1].y,g[a-1].x+n):F(i.x,i.y,c+n)}}}function D(t,e){let n=t.length;for(;--n>=0;){const r=n;let i=n-1;i<0&&(i=t.length-1);for(let t=0,n=a+2*f;t<n;t++){const n=T*t,o=T*(t+1);j(e+r+n,e+i+n,e+i+o,e+r+o)}}}function F(t,e,n){o.push(t),o.push(e),o.push(n)}function N(t,e,i){U(t),U(e),U(i);const o=r.length/3,s=m.generateTopUV(n,r,o-3,o-2,o-1);z(s[0]),z(s[1]),z(s[2])}function j(t,e,i,o){U(t),U(e),U(o),U(e),U(i),U(o);const s=r.length/3,a=m.generateSideWallUV(n,r,s-6,s-3,s-2,s-1);z(a[0]),z(a[1]),z(a[3]),z(a[1]),z(a[2]),z(a[3])}function U(t){r.push(o[3*t+0]),r.push(o[3*t+1]),r.push(o[3*t+2])}function z(t){i.push(t.x),i.push(t.y)}(function(){const t=r.length/3;if(l){let t=0,e=T*t;for(let t=0;t<I;t++){const n=A[t];N(n[2]+e,n[1]+e,n[0]+e)}t=a+2*f,e=T*t;for(let t=0;t<I;t++){const n=A[t];N(n[0]+e,n[1]+e,n[2]+e)}}else{for(let t=0;t<I;t++){const e=A[t];N(e[2],e[1],e[0])}for(let t=0;t<I;t++){const e=A[t];N(e[0]+T*a,e[1]+T*a,e[2]+T*a)}}n.addGroup(t,r.length/3-t,0)})(),function(){const t=r.length/3;let e=0;D(C,e),e+=C.length;for(let t=0,n=M.length;t<n;t++){const n=M[t];D(n,e),e+=n.length}n.addGroup(t,r.length/3-t,1)}()}this.setAttribute("position",new Di(r,3)),this.setAttribute("uv",new Di(i,2)),this.computeVertexNormals()}toJSON(){const t=Xi.prototype.toJSON.call(this);return function(t,e,n){if(n.shapes=[],Array.isArray(t))for(let e=0,r=t.length;e<r;e++){const r=t[e];n.shapes.push(r.uuid)}else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}(this.parameters.shapes,this.parameters.options,t)}}const Nl={generateTopUV:function(t,e,n,r,i){const o=e[3*n],s=e[3*n+1],a=e[3*r],c=e[3*r+1],l=e[3*i],u=e[3*i+1];return[new Un(o,s),new Un(a,c),new Un(l,u)]},generateSideWallUV:function(t,e,n,r,i,o){const s=e[3*n],a=e[3*n+1],c=e[3*n+2],l=e[3*r],u=e[3*r+1],h=e[3*r+2],d=e[3*i],f=e[3*i+1],p=e[3*i+2],m=e[3*o],g=e[3*o+1],v=e[3*o+2];return Math.abs(a-u)<.01?[new Un(s,1-c),new Un(l,1-h),new Un(d,1-p),new Un(m,1-v)]:[new Un(a,1-c),new Un(u,1-h),new Un(f,1-p),new Un(g,1-v)]}};class jl extends nl{constructor(t=1,e=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],t,e),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e}}}class Ul extends Xi{constructor(t,e=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:r},e=Math.floor(e),r=jn.clamp(r,0,2*Math.PI);const i=[],o=[],s=[],a=1/e,c=new qn,l=new Un;for(let i=0;i<=e;i++){const u=n+i*a*r,h=Math.sin(u),d=Math.cos(u);for(let n=0;n<=t.length-1;n++)c.x=t[n].x*h,c.y=t[n].y,c.z=t[n].x*d,o.push(c.x,c.y,c.z),l.x=i/e,l.y=n/(t.length-1),s.push(l.x,l.y)}for(let n=0;n<e;n++)for(let e=0;e<t.length-1;e++){const r=e+n*t.length,o=r,s=r+t.length,a=r+t.length+1,c=r+1;i.push(o,s,c),i.push(s,a,c)}if(this.setIndex(i),this.setAttribute("position",new Di(o,3)),this.setAttribute("uv",new Di(s,2)),this.computeVertexNormals(),r===2*Math.PI){const n=this.attributes.normal.array,r=new qn,i=new qn,o=new qn,s=e*t.length*3;for(let e=0,a=0;e<t.length;e++,a+=3)r.x=n[a+0],r.y=n[a+1],r.z=n[a+2],i.x=n[s+a+0],i.y=n[s+a+1],i.z=n[s+a+2],o.addVectors(r,i).normalize(),n[a+0]=n[s+a+0]=o.x,n[a+1]=n[s+a+1]=o.y,n[a+2]=n[s+a+2]=o.z}}}class zl extends nl{constructor(t=1,e=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],t,e),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e}}}function Gl(t,e,n){Xi.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:n};const r=[],i=[],o=[],s=[],a=1e-5,c=new qn,l=new qn,u=new qn,h=new qn,d=new qn;t.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");const f=e+1;for(let r=0;r<=n;r++){const f=r/n;for(let n=0;n<=e;n++){const r=n/e;t(r,f,l),i.push(l.x,l.y,l.z),r-a>=0?(t(r-a,f,u),h.subVectors(l,u)):(t(r+a,f,u),h.subVectors(u,l)),f-a>=0?(t(r,f-a,u),d.subVectors(l,u)):(t(r,f+a,u),d.subVectors(u,l)),c.crossVectors(h,d).normalize(),o.push(c.x,c.y,c.z),s.push(r,f)}}for(let t=0;t<n;t++)for(let n=0;n<e;n++){const e=t*f+n,i=t*f+n+1,o=(t+1)*f+n+1,s=(t+1)*f+n;r.push(e,i,s),r.push(i,o,s)}this.setIndex(r),this.setAttribute("position",new Di(i,3)),this.setAttribute("normal",new Di(o,3)),this.setAttribute("uv",new Di(s,2))}Gl.prototype=Object.create(Xi.prototype),Gl.prototype.constructor=Gl;class Hl extends Xi{constructor(t=.5,e=1,n=8,r=1,i=0,o=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:o},n=Math.max(3,n);const s=[],a=[],c=[],l=[];let u=t;const h=(e-t)/(r=Math.max(1,r)),d=new qn,f=new Un;for(let t=0;t<=r;t++){for(let t=0;t<=n;t++){const r=i+t/n*o;d.x=u*Math.cos(r),d.y=u*Math.sin(r),a.push(d.x,d.y,d.z),c.push(0,0,1),f.x=(d.x/e+1)/2,f.y=(d.y/e+1)/2,l.push(f.x,f.y)}u+=h}for(let t=0;t<r;t++){const e=t*(n+1);for(let t=0;t<n;t++){const r=t+e,i=r,o=r+n+1,a=r+n+2,c=r+1;s.push(i,o,c),s.push(o,a,c)}}this.setIndex(s),this.setAttribute("position",new Di(a,3)),this.setAttribute("normal",new Di(c,3)),this.setAttribute("uv",new Di(l,2))}}class Wl extends Xi{constructor(t,e=12){super(),this.type="ShapeGeometry",this.parameters={shapes:t,curveSegments:e};const n=[],r=[],i=[],o=[];let s=0,a=0;if(!1===Array.isArray(t))c(t);else for(let e=0;e<t.length;e++)c(t[e]),this.addGroup(s,a,e),s+=a,a=0;function c(t){const s=r.length/3,c=t.extractPoints(e);let l=c.shape;const u=c.holes;!1===Bl.isClockWise(l)&&(l=l.reverse());for(let t=0,e=u.length;t<e;t++){const e=u[t];!0===Bl.isClockWise(e)&&(u[t]=e.reverse())}const h=Bl.triangulateShape(l,u);for(let t=0,e=u.length;t<e;t++){const e=u[t];l=l.concat(e)}for(let t=0,e=l.length;t<e;t++){const e=l[t];r.push(e.x,e.y,0),i.push(0,0,1),o.push(e.x,e.y)}for(let t=0,e=h.length;t<e;t++){const e=h[t],r=e[0]+s,i=e[1]+s,o=e[2]+s;n.push(r,i,o),a+=3}}this.setIndex(n),this.setAttribute("position",new Di(r,3)),this.setAttribute("normal",new Di(i,3)),this.setAttribute("uv",new Di(o,2))}toJSON(){const t=Xi.prototype.toJSON.call(this);return function(t,e){if(e.shapes=[],Array.isArray(t))for(let n=0,r=t.length;n<r;n++){const r=t[n];e.shapes.push(r.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}}class Vl extends Xi{constructor(t=1,e=8,n=6,r=0,i=2*Math.PI,o=0,s=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:r,phiLength:i,thetaStart:o,thetaLength:s},e=Math.max(3,Math.floor(e)),n=Math.max(2,Math.floor(n));const a=Math.min(o+s,Math.PI);let c=0;const l=[],u=new qn,h=new qn,d=[],f=[],p=[],m=[];for(let d=0;d<=n;d++){const g=[],v=d/n;let y=0;0==d&&0==o?y=.5/e:d==n&&a==Math.PI&&(y=-.5/e);for(let n=0;n<=e;n++){const a=n/e;u.x=-t*Math.cos(r+a*i)*Math.sin(o+v*s),u.y=t*Math.cos(o+v*s),u.z=t*Math.sin(r+a*i)*Math.sin(o+v*s),f.push(u.x,u.y,u.z),h.copy(u).normalize(),p.push(h.x,h.y,h.z),m.push(a+y,1-v),g.push(c++)}l.push(g)}for(let t=0;t<n;t++)for(let r=0;r<e;r++){const e=l[t][r+1],i=l[t][r],s=l[t+1][r],c=l[t+1][r+1];(0!==t||o>0)&&d.push(e,i,c),(t!==n-1||a<Math.PI)&&d.push(i,s,c)}this.setIndex(d),this.setAttribute("position",new Di(f,3)),this.setAttribute("normal",new Di(p,3)),this.setAttribute("uv",new Di(m,2))}}class Zl extends nl{constructor(t=1,e=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],t,e),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e}}}class Ql extends Fl{constructor(t,e={}){const n=e.font;if(!n||!n.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new Xi;const r=n.generateShapes(t,e.size);e.depth=void 0!==e.height?e.height:50,void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),super(r,e),this.type="TextGeometry"}}class Xl extends Xi{constructor(t=1,e=.4,n=8,r=6,i=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:r,arc:i},n=Math.floor(n),r=Math.floor(r);const o=[],s=[],a=[],c=[],l=new qn,u=new qn,h=new qn;for(let o=0;o<=n;o++)for(let d=0;d<=r;d++){const f=d/r*i,p=o/n*Math.PI*2;u.x=(t+e*Math.cos(p))*Math.cos(f),u.y=(t+e*Math.cos(p))*Math.sin(f),u.z=e*Math.sin(p),s.push(u.x,u.y,u.z),l.x=t*Math.cos(f),l.y=t*Math.sin(f),h.subVectors(u,l).normalize(),a.push(h.x,h.y,h.z),c.push(d/r),c.push(o/n)}for(let t=1;t<=n;t++)for(let e=1;e<=r;e++){const n=(r+1)*t+e-1,i=(r+1)*(t-1)+e-1,s=(r+1)*(t-1)+e,a=(r+1)*t+e;o.push(n,i,a),o.push(i,s,a)}this.setIndex(o),this.setAttribute("position",new Di(s,3)),this.setAttribute("normal",new Di(a,3)),this.setAttribute("uv",new Di(c,2))}}class Yl extends Xi{constructor(t=1,e=.4,n=64,r=8,i=2,o=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:r,p:i,q:o},n=Math.floor(n),r=Math.floor(r);const s=[],a=[],c=[],l=[],u=new qn,h=new qn,d=new qn,f=new qn,p=new qn,m=new qn,g=new qn;for(let s=0;s<=n;++s){const y=s/n*i*Math.PI*2;v(y,i,o,t,d),v(y+.01,i,o,t,f),m.subVectors(f,d),g.addVectors(f,d),p.crossVectors(m,g),g.crossVectors(p,m),p.normalize(),g.normalize();for(let t=0;t<=r;++t){const i=t/r*Math.PI*2,o=-e*Math.cos(i),f=e*Math.sin(i);u.x=d.x+(o*g.x+f*p.x),u.y=d.y+(o*g.y+f*p.y),u.z=d.z+(o*g.z+f*p.z),a.push(u.x,u.y,u.z),h.subVectors(u,d).normalize(),c.push(h.x,h.y,h.z),l.push(s/n),l.push(t/r)}}for(let t=1;t<=n;t++)for(let e=1;e<=r;e++){const n=(r+1)*(t-1)+(e-1),i=(r+1)*t+(e-1),o=(r+1)*t+e,a=(r+1)*(t-1)+e;s.push(n,i,a),s.push(i,o,a)}function v(t,e,n,r,i){const o=Math.cos(t),s=Math.sin(t),a=n/e*t,c=Math.cos(a);i.x=r*(2+c)*.5*o,i.y=r*(2+c)*s*.5,i.z=r*Math.sin(a)*.5}this.setIndex(s),this.setAttribute("position",new Di(a,3)),this.setAttribute("normal",new Di(c,3)),this.setAttribute("uv",new Di(l,2))}}class Jl extends Xi{constructor(t,e=64,n=1,r=8,i=!1){super(),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:r,closed:i};const o=t.computeFrenetFrames(e,i);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals;const s=new qn,a=new qn,c=new Un;let l=new qn;const u=[],h=[],d=[],f=[];function p(i){l=t.getPointAt(i/e,l);const c=o.normals[i],d=o.binormals[i];for(let t=0;t<=r;t++){const e=t/r*Math.PI*2,i=Math.sin(e),o=-Math.cos(e);a.x=o*c.x+i*d.x,a.y=o*c.y+i*d.y,a.z=o*c.z+i*d.z,a.normalize(),h.push(a.x,a.y,a.z),s.x=l.x+n*a.x,s.y=l.y+n*a.y,s.z=l.z+n*a.z,u.push(s.x,s.y,s.z)}}(function(){for(let t=0;t<e;t++)p(t);p(!1===i?e:0),function(){for(let t=0;t<=e;t++)for(let n=0;n<=r;n++)c.x=t/e,c.y=n/r,d.push(c.x,c.y)}(),function(){for(let t=1;t<=e;t++)for(let e=1;e<=r;e++){const n=(r+1)*(t-1)+(e-1),i=(r+1)*t+(e-1),o=(r+1)*t+e,s=(r+1)*(t-1)+e;f.push(n,i,s),f.push(i,o,s)}}()})(),this.setIndex(f),this.setAttribute("position",new Di(u,3)),this.setAttribute("normal",new Di(h,3)),this.setAttribute("uv",new Di(d,2))}toJSON(){const t=Xi.prototype.toJSON.call(this);return t.path=this.parameters.path.toJSON(),t}}class ql extends Xi{constructor(t){if(super(),this.type="WireframeGeometry",!0===t.isGeometry)return void console.error("THREE.WireframeGeometry no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");const e=[],n=[0,0],r={},i=new qn;if(null!==t.index){const o=t.attributes.position,s=t.index;let a=t.groups;0===a.length&&(a=[{start:0,count:s.count,materialIndex:0}]);for(let t=0,e=a.length;t<e;++t){const e=a[t],i=e.start;for(let t=i,o=i+e.count;t<o;t+=3)for(let e=0;e<3;e++){const i=s.getX(t+e),o=s.getX(t+(e+1)%3);n[0]=Math.min(i,o),n[1]=Math.max(i,o);const a=n[0]+","+n[1];void 0===r[a]&&(r[a]={index1:n[0],index2:n[1]})}}for(const t in r){const n=r[t];i.fromBufferAttribute(o,n.index1),e.push(i.x,i.y,i.z),i.fromBufferAttribute(o,n.index2),e.push(i.x,i.y,i.z)}}else{const n=t.attributes.position;for(let t=0,r=n.count/3;t<r;t++)for(let r=0;r<3;r++){const o=3*t+r;i.fromBufferAttribute(n,o),e.push(i.x,i.y,i.z);const s=3*t+(r+1)%3;i.fromBufferAttribute(n,s),e.push(i.x,i.y,i.z)}}this.setAttribute("position",new Di(e,3))}}var Kl=Object.freeze({__proto__:null,BoxGeometry:mo,BoxBufferGeometry:mo,CircleGeometry:$c,CircleBufferGeometry:$c,ConeGeometry:el,ConeBufferGeometry:el,CylinderGeometry:tl,CylinderBufferGeometry:tl,DodecahedronGeometry:rl,DodecahedronBufferGeometry:rl,EdgesGeometry:cl,ExtrudeGeometry:Fl,ExtrudeBufferGeometry:Fl,IcosahedronGeometry:jl,IcosahedronBufferGeometry:jl,LatheGeometry:Ul,LatheBufferGeometry:Ul,OctahedronGeometry:zl,OctahedronBufferGeometry:zl,ParametricGeometry:Gl,ParametricBufferGeometry:Gl,PlaneGeometry:Lo,PlaneBufferGeometry:Lo,PolyhedronGeometry:nl,PolyhedronBufferGeometry:nl,RingGeometry:Hl,RingBufferGeometry:Hl,ShapeGeometry:Wl,ShapeBufferGeometry:Wl,SphereGeometry:Vl,SphereBufferGeometry:Vl,TetrahedronGeometry:Zl,TetrahedronBufferGeometry:Zl,TextGeometry:Ql,TextBufferGeometry:Ql,TorusGeometry:Xl,TorusBufferGeometry:Xl,TorusKnotGeometry:Yl,TorusKnotBufferGeometry:Yl,TubeGeometry:Jl,TubeBufferGeometry:Jl,WireframeGeometry:ql});class $l extends gi{constructor(t){super(),this.type="ShadowMaterial",this.color=new Si(0),this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this}}$l.prototype.isShadowMaterial=!0;class tu extends _o{constructor(t){super(t),this.type="RawShaderMaterial"}}function eu(t){gi.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Si(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 Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(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.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.vertexTangents=!1,this.setValues(t)}function nu(t){eu.call(this),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoat=0,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Un(1,1),this.clearcoatNormalMap=null,this.reflectivity=.5,Object.defineProperty(this,"ior",{get:function(){return(1+.4*this.reflectivity)/(1-.4*this.reflectivity)},set:function(t){this.reflectivity=jn.clamp(2.5*(t-1)/(t+1),0,1)}}),this.sheen=null,this.transmission=0,this.transmissionMap=null,this.setValues(t)}tu.prototype.isRawShaderMaterial=!0,eu.prototype=Object.create(gi.prototype),eu.prototype.constructor=eu,eu.prototype.isMeshStandardMaterial=!0,eu.prototype.copy=function(t){return gi.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this.vertexTangents=t.vertexTangents,this},nu.prototype=Object.create(eu.prototype),nu.prototype.constructor=nu,nu.prototype.isMeshPhysicalMaterial=!0,nu.prototype.copy=function(t){return eu.prototype.copy.call(this,t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.reflectivity=t.reflectivity,t.sheen?this.sheen=(this.sheen||new Si).copy(t.sheen):this.sheen=null,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this};class ru extends gi{constructor(t){super(),this.type="MeshPhongMaterial",this.color=new Si(16777215),this.specular=new Si(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}ru.prototype.isMeshPhongMaterial=!0;class iu extends gi{constructor(t){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Si(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(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.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this}}iu.prototype.isMeshToonMaterial=!0;class ou extends gi{constructor(t){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}ou.prototype.isMeshNormalMaterial=!0;class su extends gi{constructor(t){super(),this.type="MeshLambertMaterial",this.color=new Si(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Si(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Y,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this}}su.prototype.isMeshLambertMaterial=!0;class au extends gi{constructor(t){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Si(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=an,this.normalScale=new Un(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.flatShading=t.flatShading,this}}au.prototype.isMeshMatcapMaterial=!0;class cu extends Lc{constructor(t){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}cu.prototype.isLineDashedMaterial=!0;var lu=Object.freeze({__proto__:null,ShadowMaterial:$l,SpriteMaterial:qa,RawShaderMaterial:tu,ShaderMaterial:_o,PointsMaterial:Gc,MeshPhysicalMaterial:nu,MeshStandardMaterial:eu,MeshPhongMaterial:ru,MeshToonMaterial:iu,MeshNormalMaterial:ou,MeshLambertMaterial:su,MeshDepthMaterial:Ra,MeshDistanceMaterial:Oa,MeshBasicMaterial:Mi,MeshMatcapMaterial:au,LineDashedMaterial:cu,LineBasicMaterial:Lc,Material:gi});const uu={arraySlice:function(t,e,n){return uu.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){const e=t.length,n=new Array(e);for(let t=0;t!==e;++t)n[t]=t;return n.sort((function(e,n){return t[e]-t[n]})),n},sortedArray:function(t,e,n){const r=t.length,i=new t.constructor(r);for(let o=0,s=0;s!==r;++o){const r=n[o]*e;for(let n=0;n!==e;++n)i[s++]=t[r+n]}return i},flattenJSON:function(t,e,n,r){let i=1,o=t[0];for(;void 0!==o&&void 0===o[r];)o=t[i++];if(void 0===o)return;let s=o[r];if(void 0!==s)if(Array.isArray(s))do{s=o[r],void 0!==s&&(e.push(o.time),n.push.apply(n,s)),o=t[i++]}while(void 0!==o);else if(void 0!==s.toArray)do{s=o[r],void 0!==s&&(e.push(o.time),s.toArray(n,n.length)),o=t[i++]}while(void 0!==o);else do{s=o[r],void 0!==s&&(e.push(o.time),n.push(s)),o=t[i++]}while(void 0!==o)},subclip:function(t,e,n,r,i=30){const o=t.clone();o.name=e;const s=[];for(let t=0;t<o.tracks.length;++t){const e=o.tracks[t],a=e.getValueSize(),c=[],l=[];for(let t=0;t<e.times.length;++t){const o=e.times[t]*i;if(!(o<n||o>=r)){c.push(e.times[t]);for(let n=0;n<a;++n)l.push(e.values[t*a+n])}}0!==c.length&&(e.times=uu.convertArray(c,e.times.constructor),e.values=uu.convertArray(l,e.values.constructor),s.push(e))}o.tracks=s;let a=1/0;for(let t=0;t<o.tracks.length;++t)a>o.tracks[t].times[0]&&(a=o.tracks[t].times[0]);for(let t=0;t<o.tracks.length;++t)o.tracks[t].shift(-1*a);return o.resetDuration(),o},makeClipAdditive:function(t,e=0,n=t,r=30){r<=0&&(r=30);const i=n.tracks.length,o=e/r;for(let e=0;e<i;++e){const r=n.tracks[e],i=r.ValueTypeName;if("bool"===i||"string"===i)continue;const s=t.tracks.find((function(t){return t.name===r.name&&t.ValueTypeName===i}));if(void 0===s)continue;let a=0;const c=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(a=c/3);let l=0;const u=s.getValueSize();s.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(l=u/3);const h=r.times.length-1;let d;if(o<=r.times[0]){const t=a,e=c-a;d=uu.arraySlice(r.values,t,e)}else if(o>=r.times[h]){const t=h*c+a,e=t+c-a;d=uu.arraySlice(r.values,t,e)}else{const t=r.createInterpolant(),e=a,n=c-a;t.evaluate(o),d=uu.arraySlice(t.resultBuffer,e,n)}"quaternion"===i&&(new Jn).fromArray(d).normalize().conjugate().toArray(d);const f=s.times.length;for(let t=0;t<f;++t){const e=t*u+l;if("quaternion"===i)Jn.multiplyQuaternionsFlat(s.values,e,d,0,s.values,e);else{const t=u-2*l;for(let n=0;n<t;++n)s.values[e+n]-=d[n]}}}return t.blendMode=Ze,t}};function hu(t,e,n,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function du(t,e,n,r){hu.call(this,t,e,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function fu(t,e,n,r){hu.call(this,t,e,n,r)}function pu(t,e,n,r){hu.call(this,t,e,n,r)}Object.assign(hu.prototype,{evaluate:function(t){const e=this.parameterPositions;let n=this._cachedIndex,r=e[n],i=e[n-1];t:{e:{let o;n:{r:if(!(t<r)){for(let o=n+2;;){if(void 0===r){if(t<i)break r;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,i)}if(n===o)break;if(i=r,r=e[++n],t<r)break e}o=e.length;break n}if(t>=i)break t;{const s=e[1];t<s&&(n=2,i=s);for(let o=n-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,t,r);if(n===o)break;if(r=i,i=e[--n-1],t>=i)break e}o=n,n=0}}for(;n<o;){const r=n+o>>>1;t<e[r]?o=r:n=r+1}if(r=e[n],i=e[n-1],void 0===i)return this._cachedIndex=0,this.beforeStart_(0,t,r);if(void 0===r)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,i,t)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,t,r)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){const e=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=t*r;for(let t=0;t!==r;++t)e[t]=n[i+t];return e},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(hu.prototype,{beforeStart_:hu.prototype.copySampleValue_,afterEnd_:hu.prototype.copySampleValue_}),du.prototype=Object.assign(Object.create(hu.prototype),{constructor:du,DefaultSettings_:{endingStart:Ge,endingEnd:Ge},intervalChanged_:function(t,e,n){const r=this.parameterPositions;let i=t-2,o=t+1,s=r[i],a=r[o];if(void 0===s)switch(this.getSettings_().endingStart){case He:i=t,s=2*e-n;break;case We:i=r.length-2,s=e+r[i]-r[i+1];break;default:i=t,s=n}if(void 0===a)switch(this.getSettings_().endingEnd){case He:o=t,a=2*n-e;break;case We:o=1,a=n+r[1]-r[0];break;default:o=t-1,a=e}const c=.5*(n-e),l=this.valueSize;this._weightPrev=c/(e-s),this._weightNext=c/(a-n),this._offsetPrev=i*l,this._offsetNext=o*l},interpolate_:function(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=t*s,c=a-s,l=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,d=this._weightNext,f=(n-e)/(r-e),p=f*f,m=p*f,g=-h*m+2*h*p-h*f,v=(1+h)*m+(-1.5-2*h)*p+(-.5+h)*f+1,y=(-1-d)*m+(1.5+d)*p+.5*f,_=d*m-d*p;for(let t=0;t!==s;++t)i[t]=g*o[l+t]+v*o[c+t]+y*o[a+t]+_*o[u+t];return i}}),fu.prototype=Object.assign(Object.create(hu.prototype),{constructor:fu,interpolate_:function(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=t*s,c=a-s,l=(n-e)/(r-e),u=1-l;for(let t=0;t!==s;++t)i[t]=o[c+t]*u+o[a+t]*l;return i}}),pu.prototype=Object.assign(Object.create(hu.prototype),{constructor:pu,interpolate_:function(t){return this.copySampleValue_(t-1)}});class mu{constructor(t,e,n,r){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=uu.convertArray(e,this.TimeBufferType),this.values=uu.convertArray(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let n;if(e.toJSON!==this.toJSON)n=e.toJSON(t);else{n={name:t.name,times:uu.convertArray(t.times,Array),values:uu.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(n.interpolation=e)}return n.type=t.ValueTypeName,n}InterpolantFactoryMethodDiscrete(t){return new pu(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new fu(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new du(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case je:e=this.InterpolantFactoryMethodDiscrete;break;case Ue:e=this.InterpolantFactoryMethodLinear;break;case ze:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return je;case this.InterpolantFactoryMethodLinear:return Ue;case this.InterpolantFactoryMethodSmooth:return ze}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let n=0,r=e.length;n!==r;++n)e[n]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let n=0,r=e.length;n!==r;++n)e[n]*=t}return this}trim(t,e){const n=this.times,r=n.length;let i=0,o=r-1;for(;i!==r&&n[i]<t;)++i;for(;-1!==o&&n[o]>e;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const t=this.getValueSize();this.times=uu.arraySlice(n,i,o),this.values=uu.arraySlice(this.values,i*t,o*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let e=0;e!==i;e++){const r=n[e];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,r),t=!1;break}if(null!==o&&o>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,r,o),t=!1;break}o=r}if(void 0!==r&&uu.isTypedArray(r))for(let e=0,n=r.length;e!==n;++e){const n=r[e];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,n),t=!1;break}}return t}optimize(){const t=uu.arraySlice(this.times),e=uu.arraySlice(this.values),n=this.getValueSize(),r=this.getInterpolation()===ze,i=t.length-1;let o=1;for(let s=1;s<i;++s){let i=!1;const a=t[s];if(a!==t[s+1]&&(1!==s||a!==t[0]))if(r)i=!0;else{const t=s*n,r=t-n,o=t+n;for(let s=0;s!==n;++s){const n=e[t+s];if(n!==e[r+s]||n!==e[o+s]){i=!0;break}}}if(i){if(s!==o){t[o]=t[s];const r=s*n,i=o*n;for(let t=0;t!==n;++t)e[i+t]=e[r+t]}++o}}if(i>0){t[o]=t[i];for(let t=i*n,r=o*n,s=0;s!==n;++s)e[r+s]=e[t+s];++o}return o!==t.length?(this.times=uu.arraySlice(t,0,o),this.values=uu.arraySlice(e,0,o*n)):(this.times=t,this.values=e),this}clone(){const t=uu.arraySlice(this.times,0),e=uu.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}mu.prototype.TimeBufferType=Float32Array,mu.prototype.ValueBufferType=Float32Array,mu.prototype.DefaultInterpolation=Ue;class gu extends mu{}gu.prototype.ValueTypeName="bool",gu.prototype.ValueBufferType=Array,gu.prototype.DefaultInterpolation=je,gu.prototype.InterpolantFactoryMethodLinear=void 0,gu.prototype.InterpolantFactoryMethodSmooth=void 0;class vu extends mu{}vu.prototype.ValueTypeName="color";class yu extends mu{}function _u(t,e,n,r){hu.call(this,t,e,n,r)}yu.prototype.ValueTypeName="number",_u.prototype=Object.assign(Object.create(hu.prototype),{constructor:_u,interpolate_:function(t,e,n,r){const i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=(n-e)/(r-e);let c=t*s;for(let t=c+s;c!==t;c+=4)Jn.slerpFlat(i,0,o,c-s,o,c,a);return i}});class bu extends mu{InterpolantFactoryMethodLinear(t){return new _u(this.times,this.values,this.getValueSize(),t)}}bu.prototype.ValueTypeName="quaternion",bu.prototype.DefaultInterpolation=Ue,bu.prototype.InterpolantFactoryMethodSmooth=void 0;class xu extends mu{}xu.prototype.ValueTypeName="string",xu.prototype.ValueBufferType=Array,xu.prototype.DefaultInterpolation=je,xu.prototype.InterpolantFactoryMethodLinear=void 0,xu.prototype.InterpolantFactoryMethodSmooth=void 0;class wu extends mu{}wu.prototype.ValueTypeName="vector";class Su{constructor(t,e=-1,n,r=Ve){this.name=t,this.tracks=n,this.duration=e,this.blendMode=r,this.uuid=jn.generateUUID(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,r=1/(t.fps||1);for(let t=0,i=n.length;t!==i;++t)e.push(Mu(n[t]).scale(r));const i=new this(t.name,t.duration,e,t.blendMode);return i.uuid=t.uuid,i}static toJSON(t){const e=[],n=t.tracks,r={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,r=n.length;t!==r;++t)e.push(mu.toJSON(n[t]));return r}static CreateFromMorphTargetSequence(t,e,n,r){const i=e.length,o=[];for(let t=0;t<i;t++){let s=[],a=[];s.push((t+i-1)%i,t,(t+1)%i),a.push(0,1,0);const c=uu.getKeyframeOrder(s);s=uu.sortedArray(s,1,c),a=uu.sortedArray(a,1,c),r||0!==s[0]||(s.push(i),a.push(a[0])),o.push(new yu(".morphTargetInfluences["+e[t].name+"]",s,a).scale(1/n))}return new this(t,-1,o)}static findByName(t,e){let n=t;if(!Array.isArray(t)){const e=t;n=e.geometry&&e.geometry.animations||e.animations}for(let t=0;t<n.length;t++)if(n[t].name===e)return n[t];return null}static CreateClipsFromMorphTargetSequences(t,e,n){const r={},i=/^([\w-]*?)([\d]+)$/;for(let e=0,n=t.length;e<n;e++){const n=t[e],o=n.name.match(i);if(o&&o.length>1){const t=o[1];let e=r[t];e||(r[t]=e=[]),e.push(n)}}const o=[];for(const t in r)o.push(this.CreateFromMorphTargetSequence(t,r[t],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,r,i){if(0!==n.length){const o=[],s=[];uu.flattenJSON(n,o,s,r),0!==o.length&&i.push(new t(e,o,s))}},r=[],i=t.name||"default",o=t.fps||30,s=t.blendMode;let a=t.length||-1;const c=t.hierarchy||[];for(let t=0;t<c.length;t++){const i=c[t].keys;if(i&&0!==i.length)if(i[0].morphTargets){const t={};let e;for(e=0;e<i.length;e++)if(i[e].morphTargets)for(let n=0;n<i[e].morphTargets.length;n++)t[i[e].morphTargets[n]]=-1;for(const n in t){const t=[],o=[];for(let r=0;r!==i[e].morphTargets.length;++r){const r=i[e];t.push(r.time),o.push(r.morphTarget===n?1:0)}r.push(new yu(".morphTargetInfluence["+n+"]",t,o))}a=t.length*(o||1)}else{const o=".bones["+e[t].name+"]";n(wu,o+".position",i,"pos",r),n(bu,o+".quaternion",i,"rot",r),n(wu,o+".scale",i,"scl",r)}}return 0===r.length?null:new this(i,a,r,s)}resetDuration(){let t=0;for(let e=0,n=this.tracks.length;e!==n;++e){const n=this.tracks[e];t=Math.max(t,n.times[n.times.length-1])}return this.duration=t,this}trim(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this}validate(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t}optimize(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}clone(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new this.constructor(this.name,this.duration,t,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Mu(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return yu;case"vector":case"vector2":case"vector3":case"vector4":return wu;case"color":return vu;case"quaternion":return bu;case"bool":case"boolean":return gu;case"string":return xu}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){const e=[],n=[];uu.flattenJSON(t.keys,e,n,"value"),t.times=e,t.values=n}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const Au={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};function Cu(t,e,n){const r=this;let i=!1,o=0,s=0,a=void 0;const c=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){s++,!1===i&&void 0!==r.onStart&&r.onStart(t,o,s),i=!0},this.itemEnd=function(t){o++,void 0!==r.onProgress&&r.onProgress(t,o,s),o===s&&(i=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(t){void 0!==r.onError&&r.onError(t)},this.resolveURL=function(t){return a?a(t):t},this.setURLModifier=function(t){return a=t,this},this.addHandler=function(t,e){return c.push(t,e),this},this.removeHandler=function(t){const e=c.indexOf(t);return-1!==e&&c.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=c.length;e<n;e+=2){const n=c[e],r=c[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return r}return null}}const Eu=new Cu;function Tu(t){this.manager=void 0!==t?t:Eu,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}Object.assign(Tu.prototype,{load:function(){},loadAsync:function(t,e){const n=this;return new Promise((function(r,i){n.load(t,r,e,i)}))},parse:function(){},setCrossOrigin:function(t){return this.crossOrigin=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}});const Iu={};function Pu(t){Tu.call(this,t)}Pu.prototype=Object.assign(Object.create(Tu.prototype),{constructor:Pu,load:function(t,e,n,r){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Au.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;if(void 0!==Iu[t])return void Iu[t].push({onLoad:e,onProgress:n,onError:r});const s=t.match(/^data:(.*?)(;base64)?,(.*)$/);let a;if(s){const n=s[1],o=!!s[2];let a=s[3];a=decodeURIComponent(a),o&&(a=atob(a));try{let r;const o=(this.responseType||"").toLowerCase();switch(o){case"arraybuffer":case"blob":const t=new Uint8Array(a.length);for(let e=0;e<a.length;e++)t[e]=a.charCodeAt(e);r="blob"===o?new Blob([t.buffer],{type:n}):t.buffer;break;case"document":const e=new DOMParser;r=e.parseFromString(a,n);break;case"json":r=JSON.parse(a);break;default:r=a}setTimeout((function(){e&&e(r),i.manager.itemEnd(t)}),0)}catch(e){setTimeout((function(){r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)}),0)}}else{Iu[t]=[],Iu[t].push({onLoad:e,onProgress:n,onError:r}),a=new XMLHttpRequest,a.open("GET",t,!0),a.addEventListener("load",(function(e){const n=this.response,r=Iu[t];if(delete Iu[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),Au.add(t,n);for(let t=0,e=r.length;t<e;t++){const e=r[t];e.onLoad&&e.onLoad(n)}i.manager.itemEnd(t)}else{for(let t=0,n=r.length;t<n;t++){const n=r[t];n.onError&&n.onError(e)}i.manager.itemError(t),i.manager.itemEnd(t)}}),!1),a.addEventListener("progress",(function(e){const n=Iu[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];r.onProgress&&r.onProgress(e)}}),!1),a.addEventListener("error",(function(e){const n=Iu[t];delete Iu[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];r.onError&&r.onError(e)}i.manager.itemError(t),i.manager.itemEnd(t)}),!1),a.addEventListener("abort",(function(e){const n=Iu[t];delete Iu[t];for(let t=0,r=n.length;t<r;t++){const r=n[t];r.onError&&r.onError(e)}i.manager.itemError(t),i.manager.itemEnd(t)}),!1),void 0!==this.responseType&&(a.responseType=this.responseType),void 0!==this.withCredentials&&(a.withCredentials=this.withCredentials),a.overrideMimeType&&a.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain");for(const t in this.requestHeader)a.setRequestHeader(t,this.requestHeader[t]);a.send(null)}return i.manager.itemStart(t),a},setResponseType:function(t){return this.responseType=t,this},setMimeType:function(t){return this.mimeType=t,this}});class Lu extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(n){try{e(i.parse(JSON.parse(n)))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}parse(t){const e=[];for(let n=0;n<t.length;n++){const r=Su.parse(t[n]);e.push(r)}return e}}function Ru(t){Tu.call(this,t)}Ru.prototype=Object.assign(Object.create(Tu.prototype),{constructor:Ru,load:function(t,e,n,r){const i=this,o=[],s=new Jc,a=new Pu(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(i.withCredentials);let c=0;function l(l){a.load(t[l],(function(t){const n=i.parse(t,!0);o[l]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},c+=1,6===c&&(1===n.mipmapCount&&(s.minFilter=_t),s.image=o,s.format=n.format,s.needsUpdate=!0,e&&e(s))}),n,r)}if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)l(e);else a.load(t,(function(t){const n=i.parse(t,!0);if(n.isCubemap){const t=n.mipmaps.length/n.mipmapCount;for(let e=0;e<t;e++){o[e]={mipmaps:[]};for(let t=0;t<n.mipmapCount;t++)o[e].mipmaps.push(n.mipmaps[e*n.mipmapCount+t]),o[e].format=n.format,o[e].width=n.width,o[e].height=n.height}s.image=o}else s.image.width=n.width,s.image.height=n.height,s.mipmaps=n.mipmaps;1===n.mipmapCount&&(s.minFilter=_t),s.format=n.format,s.needsUpdate=!0,e&&e(s)}),n,r);return s}});class Ou extends Tu{constructor(t){super(t)}load(t,e,n,r){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Au.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;const s=document.createElementNS("http://www.w3.org/1999/xhtml","img");function a(){s.removeEventListener("load",a,!1),s.removeEventListener("error",c,!1),Au.add(t,this),e&&e(this),i.manager.itemEnd(t)}function c(e){s.removeEventListener("load",a,!1),s.removeEventListener("error",c,!1),r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)}return s.addEventListener("load",a,!1),s.addEventListener("error",c,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),i.manager.itemStart(t),s.src=t,s}}class Bu extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=new So,o=new Ou(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);let s=0;function a(n){o.load(t[n],(function(t){i.images[n]=t,s++,6===s&&(i.needsUpdate=!0,e&&e(i))}),void 0,r)}for(let e=0;e<t.length;++e)a(e);return i}}function ku(t){Tu.call(this,t)}function Du(t){Tu.call(this,t)}function Fu(){this.type="Curve",this.arcLengthDivisions=200}ku.prototype=Object.assign(Object.create(Tu.prototype),{constructor:ku,load:function(t,e,n,r){const i=this,o=new Ao,s=new Pu(this.manager);return s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setPath(this.path),s.setWithCredentials(i.withCredentials),s.load(t,(function(t){const n=i.parse(t);n&&(void 0!==n.image?o.image=n.image:void 0!==n.data&&(o.image.width=n.width,o.image.height=n.height,o.image.data=n.data),o.wrapS=void 0!==n.wrapS?n.wrapS:dt,o.wrapT=void 0!==n.wrapT?n.wrapT:dt,o.magFilter=void 0!==n.magFilter?n.magFilter:_t,o.minFilter=void 0!==n.minFilter?n.minFilter:_t,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.encoding&&(o.encoding=n.encoding),void 0!==n.flipY&&(o.flipY=n.flipY),void 0!==n.format&&(o.format=n.format),void 0!==n.type&&(o.type=n.type),void 0!==n.mipmaps&&(o.mipmaps=n.mipmaps,o.minFilter=wt),1===n.mipmapCount&&(o.minFilter=_t),void 0!==n.generateMipmaps&&(o.generateMipmaps=n.generateMipmaps),o.needsUpdate=!0,e&&e(o,n))}),n,r),o}}),Du.prototype=Object.assign(Object.create(Tu.prototype),{constructor:Du,load:function(t,e,n,r){const i=new Vn,o=new Ou(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,(function(n){i.image=n;const r=t.search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/);i.format=r?Ft:Nt,i.needsUpdate=!0,void 0!==e&&e(i)}),n,r),i}}),Object.assign(Fu.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)},getPoints:function(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e},getSpacedPoints:function(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e},getLength:function(){const t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,r=this.getPoint(0),i=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),i+=n.distanceTo(r),e.push(i),r=n;return this.cacheArcLengths=e,e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){const n=this.getLengths();let r=0;const i=n.length;let o;o=e||t*n[i-1];let s,a=0,c=i-1;for(;a<=c;)if(r=Math.floor(a+(c-a)/2),s=n[r]-o,s<0)a=r+1;else{if(!(s>0)){c=r;break}c=r-1}if(r=c,n[r]===o)return r/(i-1);const l=n[r];return(r+(o-l)/(n[r+1]-l))/(i-1)},getTangent:function(t,e){const n=1e-4;let r=t-n,i=t+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),s=this.getPoint(i),a=e||(o.isVector2?new Un:new qn);return a.copy(s).sub(o).normalize(),a},getTangentAt:function(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)},computeFrenetFrames:function(t,e){const n=new qn,r=[],i=[],o=[],s=new qn,a=new Tr;for(let e=0;e<=t;e++){const n=e/t;r[e]=this.getTangentAt(n,new qn),r[e].normalize()}i[0]=new qn,o[0]=new qn;let c=Number.MAX_VALUE;const l=Math.abs(r[0].x),u=Math.abs(r[0].y),h=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),h<=c&&n.set(0,0,1),s.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],s),o[0].crossVectors(r[0],i[0]);for(let e=1;e<=t;e++){if(i[e]=i[e-1].clone(),o[e]=o[e-1].clone(),s.crossVectors(r[e-1],r[e]),s.length()>Number.EPSILON){s.normalize();const t=Math.acos(jn.clamp(r[e-1].dot(r[e]),-1,1));i[e].applyMatrix4(a.makeRotationAxis(s,t))}o[e].crossVectors(r[e],i[e])}if(!0===e){let e=Math.acos(jn.clamp(i[0].dot(i[t]),-1,1));e/=t,r[0].dot(s.crossVectors(i[0],i[t]))>0&&(e=-e);for(let n=1;n<=t;n++)i[n].applyMatrix4(a.makeRotationAxis(r[n],e*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}});class Nu extends Fu{constructor(t=0,e=0,n=1,r=1,i=0,o=2*Math.PI,s=!1,a=0){super(),this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=s,this.aRotation=a}getPoint(t,e){const n=e||new Un,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const o=Math.abs(i)<Number.EPSILON;for(;i<0;)i+=r;for(;i>r;)i-=r;i<Number.EPSILON&&(i=o?0:r),!0!==this.aClockwise||o||(i===r?i=-r:i-=r);const s=this.aStartAngle+t*i;let a=this.aX+this.xRadius*Math.cos(s),c=this.aY+this.yRadius*Math.sin(s);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),n=a-this.aX,r=c-this.aY;a=n*t-r*e+this.aX,c=n*e+r*t+this.aY}return n.set(a,c)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}Nu.prototype.isEllipseCurve=!0;class ju extends Nu{constructor(t,e,n,r,i,o){super(t,e,n,n,r,i,o),this.type="ArcCurve"}}function Uu(){let t=0,e=0,n=0,r=0;function i(i,o,s,a){t=i,e=s,n=-3*i+3*o-2*s-a,r=2*i-2*o+s+a}return{initCatmullRom:function(t,e,n,r,o){i(e,n,o*(n-t),o*(r-e))},initNonuniformCatmullRom:function(t,e,n,r,o,s,a){let c=(e-t)/o-(n-t)/(o+s)+(n-e)/s,l=(n-e)/s-(r-e)/(s+a)+(r-n)/a;c*=s,l*=s,i(e,n,c,l)},calc:function(i){const o=i*i;return t+e*i+n*o+r*(o*i)}}}ju.prototype.isArcCurve=!0;const zu=new qn,Gu=new Uu,Hu=new Uu,Wu=new Uu;class Vu extends Fu{constructor(t=[],e=!1,n="centripetal",r=.5){super(),this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=n,this.tension=r}getPoint(t,e=new qn){const n=e,r=this.points,i=r.length,o=(i-(this.closed?0:1))*t;let s,a,c=Math.floor(o),l=o-c;this.closed?c+=c>0?0:(Math.floor(Math.abs(c)/i)+1)*i:0===l&&c===i-1&&(c=i-2,l=1),this.closed||c>0?s=r[(c-1)%i]:(zu.subVectors(r[0],r[1]).add(r[0]),s=zu);const u=r[c%i],h=r[(c+1)%i];if(this.closed||c+2<i?a=r[(c+2)%i]:(zu.subVectors(r[i-1],r[i-2]).add(r[i-1]),a=zu),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(s.distanceToSquared(u),t),n=Math.pow(u.distanceToSquared(h),t),r=Math.pow(h.distanceToSquared(a),t);n<1e-4&&(n=1),e<1e-4&&(e=n),r<1e-4&&(r=n),Gu.initNonuniformCatmullRom(s.x,u.x,h.x,a.x,e,n,r),Hu.initNonuniformCatmullRom(s.y,u.y,h.y,a.y,e,n,r),Wu.initNonuniformCatmullRom(s.z,u.z,h.z,a.z,e,n,r)}else"catmullrom"===this.curveType&&(Gu.initCatmullRom(s.x,u.x,h.x,a.x,this.tension),Hu.initCatmullRom(s.y,u.y,h.y,a.y,this.tension),Wu.initCatmullRom(s.z,u.z,h.z,a.z,this.tension));return n.set(Gu.calc(l),Hu.calc(l),Wu.calc(l)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new qn).fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function Zu(t,e,n,r,i){const o=.5*(r-e),s=.5*(i-n),a=t*t;return(2*n-2*r+o+s)*(t*a)+(-3*n+3*r-2*o-s)*a+o*t+n}function Qu(t,e,n,r){return function(t,e){const n=1-t;return n*n*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,n)+function(t,e){return t*t*e}(t,r)}function Xu(t,e,n,r,i){return function(t,e){const n=1-t;return n*n*n*e}(t,e)+function(t,e){const n=1-t;return 3*n*n*t*e}(t,n)+function(t,e){return 3*(1-t)*t*t*e}(t,r)+function(t,e){return t*t*t*e}(t,i)}Vu.prototype.isCatmullRomCurve3=!0;class Yu extends Fu{constructor(t=new Un,e=new Un,n=new Un,r=new Un){super(),this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=n,this.v3=r}getPoint(t,e=new Un){const n=e,r=this.v0,i=this.v1,o=this.v2,s=this.v3;return n.set(Xu(t,r.x,i.x,o.x,s.x),Xu(t,r.y,i.y,o.y,s.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}Yu.prototype.isCubicBezierCurve=!0;class Ju extends Fu{constructor(t=new qn,e=new qn,n=new qn,r=new qn){super(),this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=n,this.v3=r}getPoint(t,e=new qn){const n=e,r=this.v0,i=this.v1,o=this.v2,s=this.v3;return n.set(Xu(t,r.x,i.x,o.x,s.x),Xu(t,r.y,i.y,o.y,s.y),Xu(t,r.z,i.z,o.z,s.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}Ju.prototype.isCubicBezierCurve3=!0;class qu extends Fu{constructor(t=new Un,e=new Un){super(),this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new Un){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const n=e||new Un;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}qu.prototype.isLineCurve=!0;class Ku extends Fu{constructor(t=new qn,e=new qn){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=t,this.v2=e}getPoint(t,e=new qn){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class $u extends Fu{constructor(t=new Un,e=new Un,n=new Un){super(),this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new Un){const n=e,r=this.v0,i=this.v1,o=this.v2;return n.set(Qu(t,r.x,i.x,o.x),Qu(t,r.y,i.y,o.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}$u.prototype.isQuadraticBezierCurve=!0;class th extends Fu{constructor(t=new qn,e=new qn,n=new qn){super(),this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new qn){const n=e,r=this.v0,i=this.v1,o=this.v2;return n.set(Qu(t,r.x,i.x,o.x),Qu(t,r.y,i.y,o.y),Qu(t,r.z,i.z,o.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}th.prototype.isQuadraticBezierCurve3=!0;class eh extends Fu{constructor(t=[]){super(),this.type="SplineCurve",this.points=t}getPoint(t,e=new Un){const n=e,r=this.points,i=(r.length-1)*t,o=Math.floor(i),s=i-o,a=r[0===o?o:o-1],c=r[o],l=r[o>r.length-2?r.length-1:o+1],u=r[o>r.length-3?r.length-1:o+2];return n.set(Zu(s,a.x,c.x,l.x,u.x),Zu(s,a.y,c.y,l.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new Un).fromArray(n))}return this}}eh.prototype.isSplineCurve=!0;var nh=Object.freeze({__proto__:null,ArcCurve:ju,CatmullRomCurve3:Vu,CubicBezierCurve:Yu,CubicBezierCurve3:Ju,EllipseCurve:Nu,LineCurve:qu,LineCurve3:Ku,QuadraticBezierCurve:$u,QuadraticBezierCurve3:th,SplineCurve:eh});class rh extends Fu{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(t){this.curves.push(t)}closePath(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new qu(e,t))}getPoint(t){const e=t*this.getLength(),n=this.getCurveLengths();let r=0;for(;r<n.length;){if(n[r]>=e){const t=n[r]-e,i=this.curves[r],o=i.getLength(),s=0===o?0:1-t/o;return i.getPointAt(s)}r++}return null}getLength(){const t=this.getCurveLengths();return t[t.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 t=[];let e=0;for(let n=0,r=this.curves.length;n<r;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t,t}getSpacedPoints(t=40){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e}getPoints(t=12){const e=[];let n;for(let r=0,i=this.curves;r<i.length;r++){const o=i[r],s=o&&o.isEllipseCurve?2*t:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?t*o.points.length:t,a=o.getPoints(s);for(let t=0;t<a.length;t++){const r=a[t];n&&n.equals(r)||(e.push(r),n=r)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push(n.clone())}return this.autoClose=t.autoClose,this}toJSON(){const t=super.toJSON();t.autoClose=this.autoClose,t.curves=[];for(let e=0,n=this.curves.length;e<n;e++){const n=this.curves[e];t.curves.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push((new nh[n.type]).fromJSON(n))}return this}}class ih extends rh{constructor(t){super(),this.type="Path",this.currentPoint=new Un,t&&this.setFromPoints(t)}setFromPoints(t){this.moveTo(t[0].x,t[0].y);for(let e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y);return this}moveTo(t,e){return this.currentPoint.set(t,e),this}lineTo(t,e){const n=new qu(this.currentPoint.clone(),new Un(t,e));return this.curves.push(n),this.currentPoint.set(t,e),this}quadraticCurveTo(t,e,n,r){const i=new $u(this.currentPoint.clone(),new Un(t,e),new Un(n,r));return this.curves.push(i),this.currentPoint.set(n,r),this}bezierCurveTo(t,e,n,r,i,o){const s=new Yu(this.currentPoint.clone(),new Un(t,e),new Un(n,r),new Un(i,o));return this.curves.push(s),this.currentPoint.set(i,o),this}splineThru(t){const e=[this.currentPoint.clone()].concat(t),n=new eh(e);return this.curves.push(n),this.currentPoint.copy(t[t.length-1]),this}arc(t,e,n,r,i,o){const s=this.currentPoint.x,a=this.currentPoint.y;return this.absarc(t+s,e+a,n,r,i,o),this}absarc(t,e,n,r,i,o){return this.absellipse(t,e,n,n,r,i,o),this}ellipse(t,e,n,r,i,o,s,a){const c=this.currentPoint.x,l=this.currentPoint.y;return this.absellipse(t+c,e+l,n,r,i,o,s,a),this}absellipse(t,e,n,r,i,o,s,a){const c=new Nu(t,e,n,r,i,o,s,a);if(this.curves.length>0){const t=c.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(c);const l=c.getPoint(1);return this.currentPoint.copy(l),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class oh extends ih{constructor(t){super(t),this.uuid=jn.generateUUID(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,r=this.holes.length;n<r;n++)e[n]=this.holes[n].getPoints(t);return e}extractPoints(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}}copy(t){super.copy(t),this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.uuid=this.uuid,t.holes=[];for(let e=0,n=this.holes.length;e<n;e++){const n=this.holes[e];t.holes.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.uuid=t.uuid,this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push((new ih).fromJSON(n))}return this}}class sh extends $r{constructor(t,e=1){super(),this.type="Light",this.color=new Si(t),this.intensity=e}copy(t){return super.copy(t),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}sh.prototype.isLight=!0;class ah extends sh{constructor(t,e,n){super(t,n),this.type="HemisphereLight",this.position.copy($r.DefaultUp),this.updateMatrix(),this.groundColor=new Si(e)}copy(t){return sh.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}ah.prototype.isHemisphereLight=!0;const ch=new Tr,lh=new qn,uh=new qn;class hh{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.mapSize=new Un(512,512),this.map=null,this.mapPass=null,this.matrix=new Tr,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new To,this._frameExtents=new Un(1,1),this._viewportCount=1,this._viewports=[new Qn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;lh.setFromMatrixPosition(t.matrixWorld),e.position.copy(lh),uh.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(uh),e.updateMatrixWorld(),ch.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ch),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(e.projectionMatrix),n.multiply(e.matrixWorldInverse)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class dh extends hh{constructor(){super(new xo(50,1,.5,500)),this.focus=1}updateMatrices(t){const e=this.camera,n=2*jn.RAD2DEG*t.angle*this.focus,r=this.mapSize.width/this.mapSize.height,i=t.distance||e.far;n===e.fov&&r===e.aspect&&i===e.far||(e.fov=n,e.aspect=r,e.far=i,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}dh.prototype.isSpotLightShadow=!0;class fh extends sh{constructor(t,e,n=0,r=Math.PI/3,i=0,o=1){super(t,e),this.type="SpotLight",this.position.copy($r.DefaultUp),this.updateMatrix(),this.target=new $r,this.distance=n,this.angle=r,this.penumbra=i,this.decay=o,this.shadow=new dh}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}copy(t){return super.copy(t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}fh.prototype.isSpotLight=!0;const ph=new Tr,mh=new qn,gh=new qn;class vh extends hh{constructor(){super(new xo(90,1,.5,500)),this._frameExtents=new Un(4,2),this._viewportCount=6,this._viewports=[new Qn(2,1,1,1),new Qn(0,1,1,1),new Qn(3,1,1,1),new Qn(1,1,1,1),new Qn(3,0,1,1),new Qn(1,0,1,1)],this._cubeDirections=[new qn(1,0,0),new qn(-1,0,0),new qn(0,0,1),new qn(0,0,-1),new qn(0,1,0),new qn(0,-1,0)],this._cubeUps=[new qn(0,1,0),new qn(0,1,0),new qn(0,1,0),new qn(0,1,0),new qn(0,0,1),new qn(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,r=this.matrix,i=t.distance||n.far;i!==n.far&&(n.far=i,n.updateProjectionMatrix()),mh.setFromMatrixPosition(t.matrixWorld),n.position.copy(mh),gh.copy(n.position),gh.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(gh),n.updateMatrixWorld(),r.makeTranslation(-mh.x,-mh.y,-mh.z),ph.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ph)}}vh.prototype.isPointLightShadow=!0;class yh extends sh{constructor(t,e,n=0,r=1){super(t,e),this.type="PointLight",this.distance=n,this.decay=r,this.shadow=new vh}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}copy(t){return super.copy(t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}yh.prototype.isPointLight=!0;class _h extends bo{constructor(t=-1,e=1,n=1,r=-1,i=.1,o=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,r,i,o){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=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-t,o=n+t,s=r+e,a=r-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=t*this.view.offsetX,o=i+t*this.view.width,s-=e*this.view.offsetY,a=s-e*this.view.height}this.projectionMatrix.makeOrthographic(i,o,s,a,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=$r.prototype.toJSON.call(this,t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}_h.prototype.isOrthographicCamera=!0;class bh extends hh{constructor(){super(new _h(-5,5,5,-5,.5,500))}}bh.prototype.isDirectionalLightShadow=!0;class xh extends sh{constructor(t,e){super(t,e),this.type="DirectionalLight",this.position.copy($r.DefaultUp),this.updateMatrix(),this.target=new $r,this.shadow=new bh}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}xh.prototype.isDirectionalLight=!0;class wh extends sh{constructor(t,e){super(t,e),this.type="AmbientLight"}}wh.prototype.isAmbientLight=!0;class Sh extends sh{constructor(t,e,n=10,r=10){super(t,e),this.type="RectAreaLight",this.width=n,this.height=r}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}Sh.prototype.isRectAreaLight=!0;class Mh{constructor(){this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new qn)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const n=t.x,r=t.y,i=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.282095),e.addScaledVector(o[1],.488603*r),e.addScaledVector(o[2],.488603*i),e.addScaledVector(o[3],.488603*n),e.addScaledVector(o[4],n*r*1.092548),e.addScaledVector(o[5],r*i*1.092548),e.addScaledVector(o[6],.315392*(3*i*i-1)),e.addScaledVector(o[7],n*i*1.092548),e.addScaledVector(o[8],.546274*(n*n-r*r)),e}getIrradianceAt(t,e){const n=t.x,r=t.y,i=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.886227),e.addScaledVector(o[1],1.023328*r),e.addScaledVector(o[2],1.023328*i),e.addScaledVector(o[3],1.023328*n),e.addScaledVector(o[4],.858086*n*r),e.addScaledVector(o[5],.858086*r*i),e.addScaledVector(o[6],.743125*i*i-.247708),e.addScaledVector(o[7],.858086*n*i),e.addScaledVector(o[8],.429043*(n*n-r*r)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(t.coefficients[n],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let n=0;n<9;n++)this.coefficients[n].lerp(t.coefficients[n],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].fromArray(t,e+3*r);return this}toArray(t=[],e=0){const n=this.coefficients;for(let r=0;r<9;r++)n[r].toArray(t,e+3*r);return t}static getBasisAt(t,e){const n=t.x,r=t.y,i=t.z;e[0]=.282095,e[1]=.488603*r,e[2]=.488603*i,e[3]=.488603*n,e[4]=1.092548*n*r,e[5]=1.092548*r*i,e[6]=.315392*(3*i*i-1),e[7]=1.092548*n*i,e[8]=.546274*(n*n-r*r)}}Mh.prototype.isSphericalHarmonics3=!0;class Ah extends sh{constructor(t=new Mh,e=1){super(void 0,e),this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}Ah.prototype.isLightProbe=!0;class Ch extends Tu{constructor(t){super(t),this.textures={}}load(t,e,n,r){const i=this,o=new Pu(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(t,(function(n){try{e(i.parse(JSON.parse(n)))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}parse(t){const e=this.textures;function n(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}const r=new lu[t.type];if(void 0!==t.uuid&&(r.uuid=t.uuid),void 0!==t.name&&(r.name=t.name),void 0!==t.color&&void 0!==r.color&&r.color.setHex(t.color),void 0!==t.roughness&&(r.roughness=t.roughness),void 0!==t.metalness&&(r.metalness=t.metalness),void 0!==t.sheen&&(r.sheen=(new Si).setHex(t.sheen)),void 0!==t.emissive&&void 0!==r.emissive&&r.emissive.setHex(t.emissive),void 0!==t.specular&&void 0!==r.specular&&r.specular.setHex(t.specular),void 0!==t.shininess&&(r.shininess=t.shininess),void 0!==t.clearcoat&&(r.clearcoat=t.clearcoat),void 0!==t.clearcoatRoughness&&(r.clearcoatRoughness=t.clearcoatRoughness),void 0!==t.fog&&(r.fog=t.fog),void 0!==t.flatShading&&(r.flatShading=t.flatShading),void 0!==t.blending&&(r.blending=t.blending),void 0!==t.combine&&(r.combine=t.combine),void 0!==t.side&&(r.side=t.side),void 0!==t.shadowSide&&(r.shadowSide=t.shadowSide),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.transparent&&(r.transparent=t.transparent),void 0!==t.alphaTest&&(r.alphaTest=t.alphaTest),void 0!==t.depthTest&&(r.depthTest=t.depthTest),void 0!==t.depthWrite&&(r.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(r.colorWrite=t.colorWrite),void 0!==t.stencilWrite&&(r.stencilWrite=t.stencilWrite),void 0!==t.stencilWriteMask&&(r.stencilWriteMask=t.stencilWriteMask),void 0!==t.stencilFunc&&(r.stencilFunc=t.stencilFunc),void 0!==t.stencilRef&&(r.stencilRef=t.stencilRef),void 0!==t.stencilFuncMask&&(r.stencilFuncMask=t.stencilFuncMask),void 0!==t.stencilFail&&(r.stencilFail=t.stencilFail),void 0!==t.stencilZFail&&(r.stencilZFail=t.stencilZFail),void 0!==t.stencilZPass&&(r.stencilZPass=t.stencilZPass),void 0!==t.wireframe&&(r.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(r.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(r.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(r.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(r.rotation=t.rotation),1!==t.linewidth&&(r.linewidth=t.linewidth),void 0!==t.dashSize&&(r.dashSize=t.dashSize),void 0!==t.gapSize&&(r.gapSize=t.gapSize),void 0!==t.scale&&(r.scale=t.scale),void 0!==t.polygonOffset&&(r.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(r.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(r.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.skinning&&(r.skinning=t.skinning),void 0!==t.morphTargets&&(r.morphTargets=t.morphTargets),void 0!==t.morphNormals&&(r.morphNormals=t.morphNormals),void 0!==t.dithering&&(r.dithering=t.dithering),void 0!==t.alphaToCoverage&&(r.alphaToCoverage=t.alphaToCoverage),void 0!==t.premultipliedAlpha&&(r.premultipliedAlpha=t.premultipliedAlpha),void 0!==t.vertexTangents&&(r.vertexTangents=t.vertexTangents),void 0!==t.visible&&(r.visible=t.visible),void 0!==t.toneMapped&&(r.toneMapped=t.toneMapped),void 0!==t.userData&&(r.userData=t.userData),void 0!==t.vertexColors&&("number"==typeof t.vertexColors?r.vertexColors=t.vertexColors>0:r.vertexColors=t.vertexColors),void 0!==t.uniforms)for(const e in t.uniforms){const i=t.uniforms[e];switch(r.uniforms[e]={},i.type){case"t":r.uniforms[e].value=n(i.value);break;case"c":r.uniforms[e].value=(new Si).setHex(i.value);break;case"v2":r.uniforms[e].value=(new Un).fromArray(i.value);break;case"v3":r.uniforms[e].value=(new qn).fromArray(i.value);break;case"v4":r.uniforms[e].value=(new Qn).fromArray(i.value);break;case"m3":r.uniforms[e].value=(new zn).fromArray(i.value);break;case"m4":r.uniforms[e].value=(new Tr).fromArray(i.value);break;default:r.uniforms[e].value=i.value}}if(void 0!==t.defines&&(r.defines=t.defines),void 0!==t.vertexShader&&(r.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(r.fragmentShader=t.fragmentShader),void 0!==t.extensions)for(const e in t.extensions)r.extensions[e]=t.extensions[e];if(void 0!==t.shading&&(r.flatShading=1===t.shading),void 0!==t.size&&(r.size=t.size),void 0!==t.sizeAttenuation&&(r.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(r.map=n(t.map)),void 0!==t.matcap&&(r.matcap=n(t.matcap)),void 0!==t.alphaMap&&(r.alphaMap=n(t.alphaMap)),void 0!==t.bumpMap&&(r.bumpMap=n(t.bumpMap)),void 0!==t.bumpScale&&(r.bumpScale=t.bumpScale),void 0!==t.normalMap&&(r.normalMap=n(t.normalMap)),void 0!==t.normalMapType&&(r.normalMapType=t.normalMapType),void 0!==t.normalScale){let e=t.normalScale;!1===Array.isArray(e)&&(e=[e,e]),r.normalScale=(new Un).fromArray(e)}return void 0!==t.displacementMap&&(r.displacementMap=n(t.displacementMap)),void 0!==t.displacementScale&&(r.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(r.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(r.roughnessMap=n(t.roughnessMap)),void 0!==t.metalnessMap&&(r.metalnessMap=n(t.metalnessMap)),void 0!==t.emissiveMap&&(r.emissiveMap=n(t.emissiveMap)),void 0!==t.emissiveIntensity&&(r.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(r.specularMap=n(t.specularMap)),void 0!==t.envMap&&(r.envMap=n(t.envMap)),void 0!==t.envMapIntensity&&(r.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(r.reflectivity=t.reflectivity),void 0!==t.refractionRatio&&(r.refractionRatio=t.refractionRatio),void 0!==t.lightMap&&(r.lightMap=n(t.lightMap)),void 0!==t.lightMapIntensity&&(r.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(r.aoMap=n(t.aoMap)),void 0!==t.aoMapIntensity&&(r.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(r.gradientMap=n(t.gradientMap)),void 0!==t.clearcoatMap&&(r.clearcoatMap=n(t.clearcoatMap)),void 0!==t.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(t.clearcoatRoughnessMap)),void 0!==t.clearcoatNormalMap&&(r.clearcoatNormalMap=n(t.clearcoatNormalMap)),void 0!==t.clearcoatNormalScale&&(r.clearcoatNormalScale=(new Un).fromArray(t.clearcoatNormalScale)),void 0!==t.transmission&&(r.transmission=t.transmission),void 0!==t.transmissionMap&&(r.transmissionMap=n(t.transmissionMap)),r}setTextures(t){return this.textures=t,this}}const Eh={decodeText:function(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let n=0,r=t.length;n<r;n++)e+=String.fromCharCode(t[n]);try{return decodeURIComponent(escape(e))}catch(t){return e}},extractUrlBase:function(t){const e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}};function Th(){Xi.call(this),this.type="InstancedBufferGeometry",this.instanceCount=1/0}function Ih(t,e,n,r){"number"==typeof n&&(r=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),Ei.call(this,t,e,n),this.meshPerAttribute=r||1}Th.prototype=Object.assign(Object.create(Xi.prototype),{constructor:Th,isInstancedBufferGeometry:!0,copy:function(t){return Xi.prototype.copy.call(this,t),this.instanceCount=t.instanceCount,this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){const t=Xi.prototype.toJSON.call(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}),Ih.prototype=Object.assign(Object.create(Ei.prototype),{constructor:Ih,isInstancedBufferAttribute:!0,copy:function(t){return Ei.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},toJSON:function(){const t=Ei.prototype.toJSON.call(this);return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}});class Ph extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(i.manager);o.setPath(i.path),o.setRequestHeader(i.requestHeader),o.setWithCredentials(i.withCredentials),o.load(t,(function(n){try{e(i.parse(JSON.parse(n)))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}parse(t){const e={},n={};function r(t,n){if(void 0!==e[n])return e[n];const r=t.interleavedBuffers[n],o=i(t,r.buffer),s=new Xa(Ui(r.type,o),r.stride);return s.uuid=r.uuid,e[n]=s,s}function i(t,e){if(void 0!==n[e])return n[e];const r=t.arrayBuffers[e],i=new Uint32Array(r).buffer;return n[e]=i,i}const o=t.isInstancedBufferGeometry?new Th:new Xi,s=t.data.index;if(void 0!==s){const t=Ui(s.type,s.array);o.setIndex(new Ei(t,1))}const a=t.data.attributes;for(const e in a){const n=a[e];let i;if(n.isInterleavedBufferAttribute)i=new Ja(r(t.data,n.data),n.itemSize,n.offset,n.normalized);else{const t=Ui(n.type,n.array);i=new(n.isInstancedBufferAttribute?Ih:Ei)(t,n.itemSize,n.normalized)}void 0!==n.name&&(i.name=n.name),void 0!==n.usage&&i.setUsage(n.usage),void 0!==n.updateRange&&(i.updateRange.offset=n.updateRange.offset,i.updateRange.count=n.updateRange.count),o.setAttribute(e,i)}const c=t.data.morphAttributes;if(c)for(const e in c){const n=c[e],i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e];let s;s=o.isInterleavedBufferAttribute?new Ja(r(t.data,o.data),o.itemSize,o.offset,o.normalized):new Ei(Ui(o.type,o.array),o.itemSize,o.normalized),void 0!==o.name&&(s.name=o.name),i.push(s)}o.morphAttributes[e]=i}t.data.morphTargetsRelative&&(o.morphTargetsRelative=!0);const l=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==l)for(let t=0,e=l.length;t!==e;++t){const e=l[t];o.addGroup(e.start,e.count,e.materialIndex)}const u=t.data.boundingSphere;if(void 0!==u){const t=new qn;void 0!==u.center&&t.fromArray(u.center),o.boundingSphere=new _r(t,u.radius)}return t.name&&(o.name=t.name),t.userData&&(o.userData=t.userData),o}}class Lh extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=""===this.path?Eh.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||o;const s=new Pu(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,(function(n){let o=null;try{o=JSON.parse(n)}catch(e){return void 0!==r&&r(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}const s=o.metadata;void 0!==s&&void 0!==s.type&&"geometry"!==s.type.toLowerCase()?i.parse(o,e):console.error("THREE.ObjectLoader: Can't load "+t)}),n,r)}parse(t,e){const n=this.parseAnimations(t.animations),r=this.parseShapes(t.shapes),i=this.parseGeometries(t.geometries,r),o=this.parseImages(t.images,(function(){void 0!==e&&e(c)})),s=this.parseTextures(t.textures,o),a=this.parseMaterials(t.materials,s),c=this.parseObject(t.object,i,a,n),l=this.parseSkeletons(t.skeletons,c);if(this.bindSkeletons(c,l),void 0!==e){let t=!1;for(const e in o)if(o[e]instanceof HTMLImageElement){t=!0;break}!1===t&&e(c)}return c}parseShapes(t){const e={};if(void 0!==t)for(let n=0,r=t.length;n<r;n++){const r=(new oh).fromJSON(t[n]);e[r.uuid]=r}return e}parseSkeletons(t,e){const n={},r={};if(e.traverse((function(t){t.isBone&&(r[t.uuid]=t)})),void 0!==t)for(let e=0,i=t.length;e<i;e++){const i=(new Ac).fromJSON(t[e],r);n[i.uuid]=i}return n}parseGeometries(t,e){const n={};let r;if(void 0!==t){const i=new Ph;for(let o=0,s=t.length;o<s;o++){let s;const a=t[o];switch(a.type){case"PlaneGeometry":case"PlaneBufferGeometry":s=new Kl[a.type](a.width,a.height,a.widthSegments,a.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":s=new Kl[a.type](a.width,a.height,a.depth,a.widthSegments,a.heightSegments,a.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":s=new Kl[a.type](a.radius,a.segments,a.thetaStart,a.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":s=new Kl[a.type](a.radiusTop,a.radiusBottom,a.height,a.radialSegments,a.heightSegments,a.openEnded,a.thetaStart,a.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":s=new Kl[a.type](a.radius,a.height,a.radialSegments,a.heightSegments,a.openEnded,a.thetaStart,a.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":s=new Kl[a.type](a.radius,a.widthSegments,a.heightSegments,a.phiStart,a.phiLength,a.thetaStart,a.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":s=new Kl[a.type](a.radius,a.detail);break;case"RingGeometry":case"RingBufferGeometry":s=new Kl[a.type](a.innerRadius,a.outerRadius,a.thetaSegments,a.phiSegments,a.thetaStart,a.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":s=new Kl[a.type](a.radius,a.tube,a.radialSegments,a.tubularSegments,a.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":s=new Kl[a.type](a.radius,a.tube,a.tubularSegments,a.radialSegments,a.p,a.q);break;case"TubeGeometry":case"TubeBufferGeometry":s=new Kl[a.type]((new nh[a.path.type]).fromJSON(a.path),a.tubularSegments,a.radius,a.radialSegments,a.closed);break;case"LatheGeometry":case"LatheBufferGeometry":s=new Kl[a.type](a.points,a.segments,a.phiStart,a.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":s=new Kl[a.type](a.vertices,a.indices,a.radius,a.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":r=[];for(let t=0,n=a.shapes.length;t<n;t++){const n=e[a.shapes[t]];r.push(n)}s=new Kl[a.type](r,a.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":r=[];for(let t=0,n=a.shapes.length;t<n;t++){const n=e[a.shapes[t]];r.push(n)}const t=a.options.extrudePath;void 0!==t&&(a.options.extrudePath=(new nh[t.type]).fromJSON(t)),s=new Kl[a.type](r,a.options);break;case"BufferGeometry":case"InstancedBufferGeometry":s=i.parse(a);break;case"Geometry":console.error('THREE.ObjectLoader: Loading "Geometry" is not supported anymore.');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+a.type+'"');continue}s.uuid=a.uuid,void 0!==a.name&&(s.name=a.name),!0===s.isBufferGeometry&&void 0!==a.userData&&(s.userData=a.userData),n[a.uuid]=s}}return n}parseMaterials(t,e){const n={},r={};if(void 0!==t){const i=new Ch;i.setTextures(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];if("MultiMaterial"===o.type){const t=[];for(let e=0;e<o.materials.length;e++){const r=o.materials[e];void 0===n[r.uuid]&&(n[r.uuid]=i.parse(r)),t.push(n[r.uuid])}r[o.uuid]=t}else void 0===n[o.uuid]&&(n[o.uuid]=i.parse(o)),r[o.uuid]=n[o.uuid]}}return r}parseAnimations(t){const e={};if(void 0!==t)for(let n=0;n<t.length;n++){const r=t[n],i=Su.parse(r);e[i.uuid]=i}return e}parseImages(t,e){const n=this,r={};let i;function o(t){if("string"==typeof t){const e=t;return function(t){return n.manager.itemStart(t),i.load(t,(function(){n.manager.itemEnd(t)}),void 0,(function(){n.manager.itemError(t),n.manager.itemEnd(t)}))}(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(e)?e:n.resourcePath+e)}return t.data?{data:Ui(t.type,t.data),width:t.width,height:t.height}:null}if(void 0!==t&&t.length>0){const n=new Cu(e);i=new Ou(n),i.setCrossOrigin(this.crossOrigin);for(let e=0,n=t.length;e<n;e++){const n=t[e],i=n.url;if(Array.isArray(i)){r[n.uuid]=[];for(let t=0,e=i.length;t<e;t++){const e=o(i[t]);null!==e&&(e instanceof HTMLImageElement?r[n.uuid].push(e):r[n.uuid].push(new Ao(e.data,e.width,e.height)))}}else{const t=o(n.url);null!==t&&(r[n.uuid]=t)}}}return r}parseTextures(t,e){function n(t,e){return"number"==typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),e[t])}const r={};if(void 0!==t)for(let i=0,o=t.length;i<o;i++){const o=t[i];let s;void 0===o.image&&console.warn('THREE.ObjectLoader: No "image" specified for',o.uuid),void 0===e[o.image]&&console.warn("THREE.ObjectLoader: Undefined image",o.image);const a=e[o.image];Array.isArray(a)?(s=new So(a),6===a.length&&(s.needsUpdate=!0)):(s=a&&a.data?new Ao(a.data,a.width,a.height):new Vn(a),a&&(s.needsUpdate=!0)),s.uuid=o.uuid,void 0!==o.name&&(s.name=o.name),void 0!==o.mapping&&(s.mapping=n(o.mapping,Rh)),void 0!==o.offset&&s.offset.fromArray(o.offset),void 0!==o.repeat&&s.repeat.fromArray(o.repeat),void 0!==o.center&&s.center.fromArray(o.center),void 0!==o.rotation&&(s.rotation=o.rotation),void 0!==o.wrap&&(s.wrapS=n(o.wrap[0],Oh),s.wrapT=n(o.wrap[1],Oh)),void 0!==o.format&&(s.format=o.format),void 0!==o.type&&(s.type=o.type),void 0!==o.encoding&&(s.encoding=o.encoding),void 0!==o.minFilter&&(s.minFilter=n(o.minFilter,Bh)),void 0!==o.magFilter&&(s.magFilter=n(o.magFilter,Bh)),void 0!==o.anisotropy&&(s.anisotropy=o.anisotropy),void 0!==o.flipY&&(s.flipY=o.flipY),void 0!==o.premultiplyAlpha&&(s.premultiplyAlpha=o.premultiplyAlpha),void 0!==o.unpackAlignment&&(s.unpackAlignment=o.unpackAlignment),r[o.uuid]=s}return r}parseObject(t,e,n,r){let i,o,s;function a(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function c(t){if(void 0!==t){if(Array.isArray(t)){const e=[];for(let r=0,i=t.length;r<i;r++){const i=t[r];void 0===n[i]&&console.warn("THREE.ObjectLoader: Undefined material",i),e.push(n[i])}return e}return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),n[t]}}switch(t.type){case"Scene":i=new Qa,void 0!==t.background&&Number.isInteger(t.background)&&(i.background=new Si(t.background)),void 0!==t.fog&&("Fog"===t.fog.type?i.fog=new Za(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(i.fog=new Va(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":i=new xo(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(i.focus=t.focus),void 0!==t.zoom&&(i.zoom=t.zoom),void 0!==t.filmGauge&&(i.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(i.filmOffset=t.filmOffset),void 0!==t.view&&(i.view=Object.assign({},t.view));break;case"OrthographicCamera":i=new _h(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(i.zoom=t.zoom),void 0!==t.view&&(i.view=Object.assign({},t.view));break;case"AmbientLight":i=new wh(t.color,t.intensity);break;case"DirectionalLight":i=new xh(t.color,t.intensity);break;case"PointLight":i=new yh(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":i=new Sh(t.color,t.intensity,t.width,t.height);break;case"SpotLight":i=new fh(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":i=new ah(t.color,t.groundColor,t.intensity);break;case"LightProbe":i=(new Ah).fromJSON(t);break;case"SkinnedMesh":o=a(t.geometry),s=c(t.material),i=new xc(o,s),void 0!==t.bindMode&&(i.bindMode=t.bindMode),void 0!==t.bindMatrix&&i.bindMatrix.fromArray(t.bindMatrix),void 0!==t.skeleton&&(i.skeleton=t.skeleton);break;case"Mesh":o=a(t.geometry),s=c(t.material),i=new fo(o,s);break;case"InstancedMesh":o=a(t.geometry),s=c(t.material);const e=t.count,n=t.instanceMatrix,r=t.instanceColor;i=new Pc(o,s,e),i.instanceMatrix=new Ei(new Float32Array(n.array),16),void 0!==r&&(i.instanceColor=new Ei(new Float32Array(r.array),r.itemSize));break;case"LOD":i=new mc;break;case"Line":i=new Fc(a(t.geometry),c(t.material));break;case"LineLoop":i=new zc(a(t.geometry),c(t.material));break;case"LineSegments":i=new Uc(a(t.geometry),c(t.material));break;case"PointCloud":case"Points":i=new Qc(a(t.geometry),c(t.material));break;case"Sprite":i=new hc(c(t.material));break;case"Group":i=new ja;break;case"Bone":i=new wc;break;default:i=new $r}if(i.uuid=t.uuid,void 0!==t.name&&(i.name=t.name),void 0!==t.matrix?(i.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(i.matrixAutoUpdate=t.matrixAutoUpdate),i.matrixAutoUpdate&&i.matrix.decompose(i.position,i.quaternion,i.scale)):(void 0!==t.position&&i.position.fromArray(t.position),void 0!==t.rotation&&i.rotation.fromArray(t.rotation),void 0!==t.quaternion&&i.quaternion.fromArray(t.quaternion),void 0!==t.scale&&i.scale.fromArray(t.scale)),void 0!==t.castShadow&&(i.castShadow=t.castShadow),void 0!==t.receiveShadow&&(i.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(i.shadow.bias=t.shadow.bias),void 0!==t.shadow.normalBias&&(i.shadow.normalBias=t.shadow.normalBias),void 0!==t.shadow.radius&&(i.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&i.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(i.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(i.visible=t.visible),void 0!==t.frustumCulled&&(i.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(i.renderOrder=t.renderOrder),void 0!==t.userData&&(i.userData=t.userData),void 0!==t.layers&&(i.layers.mask=t.layers),void 0!==t.children){const o=t.children;for(let t=0;t<o.length;t++)i.add(this.parseObject(o[t],e,n,r))}if(void 0!==t.animations){const e=t.animations;for(let t=0;t<e.length;t++){const n=e[t];i.animations.push(r[n])}}if("LOD"===t.type){void 0!==t.autoUpdate&&(i.autoUpdate=t.autoUpdate);const e=t.levels;for(let t=0;t<e.length;t++){const n=e[t],r=i.getObjectByProperty("uuid",n.object);void 0!==r&&i.addLevel(r,n.distance)}}return i}bindSkeletons(t,e){0!==Object.keys(e).length&&t.traverse((function(t){if(!0===t.isSkinnedMesh&&void 0!==t.skeleton){const n=e[t.skeleton];void 0===n?console.warn("THREE.ObjectLoader: No skeleton found with UUID:",t.skeleton):t.bind(n,t.bindMatrix)}}))}setTexturePath(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}const Rh={UVMapping:it,CubeReflectionMapping:ot,CubeRefractionMapping:st,EquirectangularReflectionMapping:at,EquirectangularRefractionMapping:ct,CubeUVReflectionMapping:lt,CubeUVRefractionMapping:ut},Oh={RepeatWrapping:ht,ClampToEdgeWrapping:dt,MirroredRepeatWrapping:ft},Bh={NearestFilter:pt,NearestMipmapNearestFilter:mt,NearestMipmapLinearFilter:vt,LinearFilter:_t,LinearMipmapNearestFilter:bt,LinearMipmapLinearFilter:wt};function kh(t){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),Tu.call(this,t),this.options={premultiplyAlpha:"none"}}kh.prototype=Object.assign(Object.create(Tu.prototype),{constructor:kh,isImageBitmapLoader:!0,setOptions:function(t){return this.options=t,this},load:function(t,e,n,r){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const i=this,o=Au.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout((function(){e&&e(o),i.manager.itemEnd(t)}),0),o;const s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader,fetch(t,s).then((function(t){return t.blob()})).then((function(t){return createImageBitmap(t,Object.assign(i.options,{colorSpaceConversion:"none"}))})).then((function(n){Au.add(t,n),e&&e(n),i.manager.itemEnd(t)})).catch((function(e){r&&r(e),i.manager.itemError(t),i.manager.itemEnd(t)})),i.manager.itemStart(t)}});class Dh{constructor(){this.type="ShapePath",this.color=new Si,this.subPaths=[],this.currentPath=null}moveTo(t,e){return this.currentPath=new ih,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e),this}lineTo(t,e){return this.currentPath.lineTo(t,e),this}quadraticCurveTo(t,e,n,r){return this.currentPath.quadraticCurveTo(t,e,n,r),this}bezierCurveTo(t,e,n,r,i,o){return this.currentPath.bezierCurveTo(t,e,n,r,i,o),this}splineThru(t){return this.currentPath.splineThru(t),this}toShapes(t,e){function n(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n],i=new oh;i.curves=r.curves,e.push(i)}return e}function r(t,e){const n=e.length;let r=!1;for(let i=n-1,o=0;o<n;i=o++){let n=e[i],s=e[o],a=s.x-n.x,c=s.y-n.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(n=e[o],a=-a,s=e[i],c=-c),t.y<n.y||t.y>s.y)continue;if(t.y===n.y){if(t.x===n.x)return!0}else{const e=c*(t.x-n.x)-a*(t.y-n.y);if(0===e)return!0;if(e<0)continue;r=!r}}else{if(t.y!==n.y)continue;if(s.x<=t.x&&t.x<=n.x||n.x<=t.x&&t.x<=s.x)return!0}}return r}const i=Bl.isClockWise,o=this.subPaths;if(0===o.length)return[];if(!0===e)return n(o);let s,a,c;const l=[];if(1===o.length)return a=o[0],c=new oh,c.curves=a.curves,l.push(c),l;let u=!i(o[0].getPoints());u=t?!u:u;const h=[],d=[];let f,p,m=[],g=0;d[g]=void 0,m[g]=[];for(let e=0,n=o.length;e<n;e++)a=o[e],f=a.getPoints(),s=i(f),s=t?!s:s,s?(!u&&d[g]&&g++,d[g]={s:new oh,p:f},d[g].s.curves=a.curves,u&&g++,m[g]=[]):m[g].push({h:a,p:f[0]});if(!d[0])return n(o);if(d.length>1){let t=!1;const e=[];for(let t=0,e=d.length;t<e;t++)h[t]=[];for(let n=0,i=d.length;n<i;n++){const i=m[n];for(let o=0;o<i.length;o++){const s=i[o];let a=!0;for(let i=0;i<d.length;i++)r(s.p,d[i].p)&&(n!==i&&e.push({froms:n,tos:i,hole:o}),a?(a=!1,h[i].push(s)):t=!0);a&&h[n].push(s)}}e.length>0&&(t||(m=h))}for(let t=0,e=d.length;t<e;t++){c=d[t].s,l.push(c),p=m[t];for(let t=0,e=p.length;t<e;t++)c.holes.push(p[t].h)}return l}}class Fh{constructor(t){this.type="Font",this.data=t}generateShapes(t,e=100){const n=[],r=function(t,e,n){const r=Array.from(t),i=e/n.resolution,o=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*i,s=[];let a=0,c=0;for(let t=0;t<r.length;t++){const e=r[t];if("\n"===e)a=0,c-=o;else{const t=Nh(e,i,a,c,n);a+=t.offsetX,s.push(t.path)}}return s}(t,e,this.data);for(let t=0,e=r.length;t<e;t++)Array.prototype.push.apply(n,r[t].toShapes());return n}}function Nh(t,e,n,r,i){const o=i.glyphs[t]||i.glyphs["?"];if(!o)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+i.familyName+".");const s=new Dh;let a,c,l,u,h,d,f,p;if(o.o){const t=o._cachedOutline||(o._cachedOutline=o.o.split(" "));for(let i=0,o=t.length;i<o;)switch(t[i++]){case"m":a=t[i++]*e+n,c=t[i++]*e+r,s.moveTo(a,c);break;case"l":a=t[i++]*e+n,c=t[i++]*e+r,s.lineTo(a,c);break;case"q":l=t[i++]*e+n,u=t[i++]*e+r,h=t[i++]*e+n,d=t[i++]*e+r,s.quadraticCurveTo(h,d,l,u);break;case"b":l=t[i++]*e+n,u=t[i++]*e+r,h=t[i++]*e+n,d=t[i++]*e+r,f=t[i++]*e+n,p=t[i++]*e+r,s.bezierCurveTo(h,d,f,p,l,u)}}return{offsetX:o.ha*e,path:s}}Fh.prototype.isFont=!0;class jh extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(i.withCredentials),o.load(t,(function(t){let n;try{n=JSON.parse(t)}catch(e){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(t.substring(65,t.length-2))}const r=i.parse(n);e&&e(r)}),n,r)}parse(t){return new Fh(t)}}let Uh;const zh={getContext:function(){return void 0===Uh&&(Uh=new(window.AudioContext||window.webkitAudioContext)),Uh},setContext:function(t){Uh=t}};class Gh extends Tu{constructor(t){super(t)}load(t,e,n,r){const i=this,o=new Pu(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(n){try{const t=n.slice(0);zh.getContext().decodeAudioData(t,(function(t){e(t)}))}catch(e){r?r(e):console.error(e),i.manager.itemError(t)}}),n,r)}}class Hh extends Ah{constructor(t,e,n=1){super(void 0,n);const r=(new Si).set(t),i=(new Si).set(e),o=new qn(r.r,r.g,r.b),s=new qn(i.r,i.g,i.b),a=Math.sqrt(Math.PI),c=a*Math.sqrt(.75);this.sh.coefficients[0].copy(o).add(s).multiplyScalar(a),this.sh.coefficients[1].copy(o).sub(s).multiplyScalar(c)}}Hh.prototype.isHemisphereLightProbe=!0;class Wh extends Ah{constructor(t,e=1){super(void 0,e);const n=(new Si).set(t);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}Wh.prototype.isAmbientLightProbe=!0;const Vh=new Tr,Zh=new Tr;class Qh{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new xo,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new xo,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(t){const e=this._cache;if(e.focus!==t.focus||e.fov!==t.fov||e.aspect!==t.aspect*this.aspect||e.near!==t.near||e.far!==t.far||e.zoom!==t.zoom||e.eyeSep!==this.eyeSep){e.focus=t.focus,e.fov=t.fov,e.aspect=t.aspect*this.aspect,e.near=t.near,e.far=t.far,e.zoom=t.zoom,e.eyeSep=this.eyeSep;const n=t.projectionMatrix.clone(),r=e.eyeSep/2,i=r*e.near/e.focus,o=e.near*Math.tan(jn.DEG2RAD*e.fov*.5)/e.zoom;let s,a;Zh.elements[12]=-r,Vh.elements[12]=r,s=-o*e.aspect+i,a=o*e.aspect+i,n.elements[0]=2*e.near/(a-s),n.elements[8]=(a+s)/(a-s),this.cameraL.projectionMatrix.copy(n),s=-o*e.aspect-i,a=o*e.aspect-i,n.elements[0]=2*e.near/(a-s),n.elements[8]=(a+s)/(a-s),this.cameraR.projectionMatrix.copy(n)}this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(Zh),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(Vh)}}class Xh{constructor(t){this.autoStart=void 0===t||t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Yh(),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 t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Yh();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Yh(){return("undefined"==typeof performance?Date:performance).now()}const Jh=new qn,qh=new Jn,Kh=new qn,$h=new qn;class td extends $r{constructor(){super(),this.type="AudioListener",this.context=zh.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Xh}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(t){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}updateMatrixWorld(t){super.updateMatrixWorld(t);const e=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Jh,qh,Kh),$h.set(0,0,-1).applyQuaternion(qh),e.positionX){const t=this.context.currentTime+this.timeDelta;e.positionX.linearRampToValueAtTime(Jh.x,t),e.positionY.linearRampToValueAtTime(Jh.y,t),e.positionZ.linearRampToValueAtTime(Jh.z,t),e.forwardX.linearRampToValueAtTime($h.x,t),e.forwardY.linearRampToValueAtTime($h.y,t),e.forwardZ.linearRampToValueAtTime($h.z,t),e.upX.linearRampToValueAtTime(n.x,t),e.upY.linearRampToValueAtTime(n.y,t),e.upZ.linearRampToValueAtTime(n.z,t)}else e.setPosition(Jh.x,Jh.y,Jh.z),e.setOrientation($h.x,$h.y,$h.z,n.x,n.y,n.z)}}class ed extends $r{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.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(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,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;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);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(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t.slice(),this.connect()):this.filters=t.slice(),this}setDetune(t){if(this.detune=t,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(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}const nd=new qn,rd=new Jn,id=new qn,od=new qn;class sd extends ed{constructor(t){super(t),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(t){return this.panner.refDistance=t,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(t){return this.panner.rolloffFactor=t,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(t){return this.panner.distanceModel=t,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(t){return this.panner.maxDistance=t,this}setDirectionalCone(t,e,n){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=n,this}updateMatrixWorld(t){if(super.updateMatrixWorld(t),!0===this.hasPlaybackControl&&!1===this.isPlaying)return;this.matrixWorld.decompose(nd,rd,id),od.set(0,0,1).applyQuaternion(rd);const e=this.panner;if(e.positionX){const t=this.context.currentTime+this.listener.timeDelta;e.positionX.linearRampToValueAtTime(nd.x,t),e.positionY.linearRampToValueAtTime(nd.y,t),e.positionZ.linearRampToValueAtTime(nd.z,t),e.orientationX.linearRampToValueAtTime(od.x,t),e.orientationY.linearRampToValueAtTime(od.y,t),e.orientationZ.linearRampToValueAtTime(od.z,t)}else e.setPosition(nd.x,nd.y,nd.z),e.setOrientation(od.x,od.y,od.z)}}class ad{constructor(t,e=2048){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let t=0;const e=this.getFrequencyData();for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}}class cd{constructor(t,e,n){let r,i,o;switch(this.binding=t,this.valueSize=n,e){case"quaternion":r=this._slerp,i=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":r=this._select,i=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:r=this._lerp,i=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=r,this._mixBufferRegionAdditive=i,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(t,e){const n=this.buffer,r=this.valueSize,i=t*r+r;let o=this.cumulativeWeight;if(0===o){for(let t=0;t!==r;++t)n[i+t]=n[t];o=e}else{o+=e;const t=e/o;this._mixBufferRegion(n,i,0,t,r)}this.cumulativeWeight=o}accumulateAdditive(t){const e=this.buffer,n=this.valueSize,r=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,r,0,t,n),this.cumulativeWeightAdditive+=t}apply(t){const e=this.valueSize,n=this.buffer,r=t*e+e,i=this.cumulativeWeight,o=this.cumulativeWeightAdditive,s=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,i<1){const t=e*this._origIndex;this._mixBufferRegion(n,r,t,1-i,e)}o>0&&this._mixBufferRegionAdditive(n,r,this._addIndex*e,1,e);for(let t=e,i=e+e;t!==i;++t)if(n[t]!==n[t+e]){s.setValue(n,r);break}}saveOriginalState(){const t=this.binding,e=this.buffer,n=this.valueSize,r=n*this._origIndex;t.getValue(e,r);for(let t=n,i=r;t!==i;++t)e[t]=e[r+t%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let n=t;n<e;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[e+n]=this.buffer[t+n]}_select(t,e,n,r,i){if(r>=.5)for(let r=0;r!==i;++r)t[e+r]=t[n+r]}_slerp(t,e,n,r){Jn.slerpFlat(t,e,t,e,t,n,r)}_slerpAdditive(t,e,n,r,i){const o=this._workIndex*i;Jn.multiplyQuaternionsFlat(t,o,t,e,t,n),Jn.slerpFlat(t,e,t,e,t,o,r)}_lerp(t,e,n,r,i){const o=1-r;for(let s=0;s!==i;++s){const i=e+s;t[i]=t[i]*o+t[n+s]*r}}_lerpAdditive(t,e,n,r,i){for(let o=0;o!==i;++o){const i=e+o;t[i]=t[i]+t[n+o]*r}}}const ld="\\[\\]\\.:\\/",ud=new RegExp("["+ld+"]","g"),hd="[^"+ld+"]",dd="[^"+ld.replace("\\.","")+"]",fd=/((?:WC+[\/:])*)/.source.replace("WC",hd),pd=/(WCOD+)?/.source.replace("WCOD",dd),md=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",hd),gd=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",hd),vd=new RegExp("^"+fd+pd+md+gd+"$"),yd=["material","materials","bones"];function _d(t,e,n){const r=n||bd.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,r)}function bd(t,e,n){this.path=e,this.parsedPath=n||bd.parseTrackName(e),this.node=bd.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}Object.assign(_d.prototype,{getValue:function(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(t,e)},setValue:function(t,e){const n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(t,e)},bind:function(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()},unbind:function(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}),Object.assign(bd,{Composite:_d,create:function(t,e,n){return t&&t.isAnimationObjectGroup?new bd.Composite(t,e,n):new bd(t,e,n)},sanitizeNodeName:function(t){return t.replace(/\s/g,"_").replace(ud,"")},parseTrackName:function(t){const e=vd.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const t=n.nodeName.substring(r+1);-1!==yd.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n},findNode:function(t,e){if(!e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let r=0;r<t.length;r++){const i=t[r];if(i.name===e||i.uuid===e)return i;const o=n(i.children);if(o)return o}return null},r=n(t.children);if(r)return r}return null}}),Object.assign(bd.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)t[e++]=n[r]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=t[e++]},function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){const n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){let t=this.node;const e=this.parsedPath,n=e.objectName,r=e.propertyName;let i=e.propertyIndex;if(t||(t=bd.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let r=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===r){r=e;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==r){if(void 0===t[r])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[r]}}const o=t[r];if(void 0===o){const n=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+r+" but it wasn't found.",t)}let s=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?s=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(s=this.Versioning.MatrixWorldNeedsUpdate);let a=this.BindingType.Direct;if(void 0!==i){if("morphTargetInfluences"===r){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[i]&&(i=t.morphTargetDictionary[i])}a=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=i}else void 0!==o.fromArray&&void 0!==o.toArray?(a=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(a=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=r;this.getValue=this.GetterByBindingType[a],this.setValue=this.SetterByBindingTypeAndVersioning[a][s]},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(bd.prototype,{_getValue_unbound:bd.prototype.getValue,_setValue_unbound:bd.prototype.setValue});class xd{constructor(){this.uuid=jn.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const t={};this._indicesByUUID=t;for(let e=0,n=arguments.length;e!==n;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const e=this;this.stats={objects:{get total(){return e._objects.length},get inUse(){return this.total-e.nCachedObjects_}},get bindingsPerObject(){return e._bindings.length}}}add(){const t=this._objects,e=this._indicesByUUID,n=this._paths,r=this._parsedPaths,i=this._bindings,o=i.length;let s=void 0,a=t.length,c=this.nCachedObjects_;for(let l=0,u=arguments.length;l!==u;++l){const u=arguments[l],h=u.uuid;let d=e[h];if(void 0===d){d=a++,e[h]=d,t.push(u);for(let t=0,e=o;t!==e;++t)i[t].push(new bd(u,n[t],r[t]))}else if(d<c){s=t[d];const a=--c,l=t[a];e[l.uuid]=d,t[d]=l,e[h]=a,t[a]=u;for(let t=0,e=o;t!==e;++t){const e=i[t],o=e[a];let s=e[d];e[d]=o,void 0===s&&(s=new bd(u,n[t],r[t])),e[a]=s}}else t[d]!==s&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=c}remove(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_;for(let o=0,s=arguments.length;o!==s;++o){const s=arguments[o],a=s.uuid,c=e[a];if(void 0!==c&&c>=i){const o=i++,l=t[o];e[l.uuid]=c,t[c]=l,e[a]=o,t[o]=s;for(let t=0,e=r;t!==e;++t){const e=n[t],r=e[o],i=e[c];e[c]=r,e[o]=i}}}this.nCachedObjects_=i}uncache(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,o=t.length;for(let s=0,a=arguments.length;s!==a;++s){const a=arguments[s].uuid,c=e[a];if(void 0!==c)if(delete e[a],c<i){const s=--i,a=t[s],l=--o,u=t[l];e[a.uuid]=c,t[c]=a,e[u.uuid]=s,t[s]=u,t.pop();for(let t=0,e=r;t!==e;++t){const e=n[t],r=e[s],i=e[l];e[c]=r,e[s]=i,e.pop()}}else{const i=--o,s=t[i];i>0&&(e[s.uuid]=c),t[c]=s,t.pop();for(let t=0,e=r;t!==e;++t){const e=n[t];e[c]=e[i],e.pop()}}}this.nCachedObjects_=i}subscribe_(t,e){const n=this._bindingsIndicesByPath;let r=n[t];const i=this._bindings;if(void 0!==r)return i[r];const o=this._paths,s=this._parsedPaths,a=this._objects,c=a.length,l=this.nCachedObjects_,u=new Array(c);r=i.length,n[t]=r,o.push(t),s.push(e),i.push(u);for(let n=l,r=a.length;n!==r;++n){const r=a[n];u[n]=new bd(r,t,e)}return u}unsubscribe_(t){const e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){const r=this._paths,i=this._parsedPaths,o=this._bindings,s=o.length-1,a=o[s];e[t[s]]=n,o[n]=a,o.pop(),i[n]=i[s],i.pop(),r[n]=r[s],r.pop()}}}xd.prototype.isAnimationObjectGroup=!0;class wd{constructor(t,e,n=null,r=e.blendMode){this._mixer=t,this._clip=e,this._localRoot=n,this.blendMode=r;const i=e.tracks,o=i.length,s=new Array(o),a={endingStart:Ge,endingEnd:Ge};for(let t=0;t!==o;++t){const e=i[t].createInterpolant(null);s[t]=e,e.settings=a}this._interpolantSettings=a,this._interpolants=s,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Fe,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(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){const n=this._clip.duration,r=t._clip.duration,i=r/n,o=n/r;t.warp(1,i,e),this.warp(o,1,e)}return this}crossFadeTo(t,e,n){return t.crossFadeFrom(this,e,n)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,n){const r=this._mixer,i=r.time,o=this.timeScale;let s=this._timeScaleInterpolant;null===s&&(s=r._lendControlInterpolant(),this._timeScaleInterpolant=s);const a=s.parameterPositions,c=s.sampleValues;return a[0]=i,a[1]=i+n,c[0]=t/o,c[1]=e/o,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,n,r){if(!this.enabled)return void this._updateWeight(t);const i=this._startTime;if(null!==i){const r=(t-i)*n;if(r<0||0===n)return;this._startTime=null,e=n*r}e*=this._updateTimeScale(t);const o=this._updateTime(e),s=this._updateWeight(t);if(s>0){const t=this._interpolants,e=this._propertyBindings;switch(this.blendMode){case Ze:for(let n=0,r=t.length;n!==r;++n)t[n].evaluate(o),e[n].accumulateAdditive(s);break;case Ve:default:for(let n=0,i=t.length;n!==i;++n)t[n].evaluate(o),e[n].accumulate(r,s)}}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(t)[0];e*=r,t>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const n=this._timeScaleInterpolant;null!==n&&(e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e))}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,n=this.loop;let r=this.time+t,i=this._loopCount;const o=n===Ne;if(0===t)return-1===i?r:o&&1==(1&i)?e-r:r;if(n===De){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(r>=e)r=e;else{if(!(r<0)){this.time=r;break t}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===i&&(t>=0?(i=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=e||r<0){const n=Math.floor(r/e);r-=e*n,i+=Math.abs(n);const s=this.repetitions-i;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=t>0?e:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===s){const e=t<0;this._setEndings(e,!e,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(o&&1==(1&i))return e-r}return r}_setEndings(t,e,n){const r=this._interpolantSettings;n?(r.endingStart=He,r.endingEnd=He):(r.endingStart=t?this.zeroSlopeAtStart?He:Ge:We,r.endingEnd=e?this.zeroSlopeAtEnd?He:Ge:We)}_scheduleFading(t,e,n){const r=this._mixer,i=r.time;let o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);const s=o.parameterPositions,a=o.sampleValues;return s[0]=i,a[0]=e,s[1]=i+t,a[1]=n,this}}class Sd extends Dn{constructor(t){super(),this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(t,e){const n=t._localRoot||this._root,r=t._clip.tracks,i=r.length,o=t._propertyBindings,s=t._interpolants,a=n.uuid,c=this._bindingsByRootAndName;let l=c[a];void 0===l&&(l={},c[a]=l);for(let t=0;t!==i;++t){const i=r[t],c=i.name;let u=l[c];if(void 0!==u)o[t]=u;else{if(u=o[t],void 0!==u){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,a,c));continue}const r=e&&e._propertyBindings[t].binding.parsedPath;u=new cd(bd.create(n,c,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,a,c),o[t]=u}s[t].resultBuffer=u.buffer}}_activateAction(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,n=t._clip.uuid,r=this._actionsByClip[n];this._bindAction(t,r&&r.knownActions[0]),this._addInactiveAction(t,n,e)}const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0==n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(t)}}_deactivateAction(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0==--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(t)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}}_isActiveAction(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions}_addInactiveAction(t,e,n){const r=this._actions,i=this._actionsByClip;let o=i[e];if(void 0===o)o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,i[e]=o;else{const e=o.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=r.length,r.push(t),o.actionByRoot[n]=t}_removeInactiveAction(t){const e=this._actions,n=e[e.length-1],r=t._cacheIndex;n._cacheIndex=r,e[r]=n,e.pop(),t._cacheIndex=null;const i=t._clip.uuid,o=this._actionsByClip,s=o[i],a=s.knownActions,c=a[a.length-1],l=t._byClipCacheIndex;c._byClipCacheIndex=l,a[l]=c,a.pop(),t._byClipCacheIndex=null,delete s.actionByRoot[(t._localRoot||this._root).uuid],0===a.length&&delete o[i],this._removeInactiveBindingsForAction(t)}_removeInactiveBindingsForAction(t){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0==--n.referenceCount&&this._removeInactiveBinding(n)}}_lendAction(t){const e=this._actions,n=t._cacheIndex,r=this._nActiveActions++,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_takeBackAction(t){const e=this._actions,n=t._cacheIndex,r=--this._nActiveActions,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_addInactiveBinding(t,e,n){const r=this._bindingsByRootAndName,i=this._bindings;let o=r[e];void 0===o&&(o={},r[e]=o),o[n]=t,t._cacheIndex=i.length,i.push(t)}_removeInactiveBinding(t){const e=this._bindings,n=t.binding,r=n.rootNode.uuid,i=n.path,o=this._bindingsByRootAndName,s=o[r],a=e[e.length-1],c=t._cacheIndex;a._cacheIndex=c,e[c]=a,e.pop(),delete s[i],0===Object.keys(s).length&&delete o[r]}_lendBinding(t){const e=this._bindings,n=t._cacheIndex,r=this._nActiveBindings++,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_takeBackBinding(t){const e=this._bindings,n=t._cacheIndex,r=--this._nActiveBindings,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i}_lendControlInterpolant(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let n=t[e];return void 0===n&&(n=new fu(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=e,t[e]=n),n}_takeBackControlInterpolant(t){const e=this._controlInterpolants,n=t.__cacheIndex,r=--this._nActiveControlInterpolants,i=e[r];t.__cacheIndex=r,e[r]=t,i.__cacheIndex=n,e[n]=i}clipAction(t,e,n){const r=e||this._root,i=r.uuid;let o="string"==typeof t?Su.findByName(r,t):t;const s=null!==o?o.uuid:t,a=this._actionsByClip[s];let c=null;if(void 0===n&&(n=null!==o?o.blendMode:Ve),void 0!==a){const t=a.actionByRoot[i];if(void 0!==t&&t.blendMode===n)return t;c=a.knownActions[0],null===o&&(o=c._clip)}if(null===o)return null;const l=new wd(this,o,e,n);return this._bindAction(l,c),this._addInactiveAction(l,s,i),l}existingAction(t,e){const n=e||this._root,r=n.uuid,i="string"==typeof t?Su.findByName(n,t):t,o=i?i.uuid:t,s=this._actionsByClip[o];return void 0!==s&&s.actionByRoot[r]||null}stopAllAction(){const t=this._actions;for(let e=this._nActiveActions-1;e>=0;--e)t[e].stop();return this}update(t){t*=this.timeScale;const e=this._actions,n=this._nActiveActions,r=this.time+=t,i=Math.sign(t),o=this._accuIndex^=1;for(let s=0;s!==n;++s)e[s]._update(r,t,i,o);const s=this._bindings,a=this._nActiveBindings;for(let t=0;t!==a;++t)s[t].apply(o);return this}setTime(t){this.time=0;for(let t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(t)}getRoot(){return this._root}uncacheClip(t){const e=this._actions,n=t.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){const t=i.knownActions;for(let n=0,r=t.length;n!==r;++n){const r=t[n];this._deactivateAction(r);const i=r._cacheIndex,o=e[e.length-1];r._cacheIndex=null,r._byClipCacheIndex=null,o._cacheIndex=i,e[i]=o,e.pop(),this._removeInactiveBindingsForAction(r)}delete r[n]}}uncacheRoot(t){const e=t.uuid,n=this._actionsByClip;for(const t in n){const r=n[t].actionByRoot[e];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}const r=this._bindingsByRootAndName[e];if(void 0!==r)for(const t in r){const e=r[t];e.restoreOriginalState(),this._removeInactiveBinding(e)}}uncacheAction(t,e){const n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}Sd.prototype._controlInterpolantsResultBuffer=new Float32Array(1);class Md{constructor(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new Md(void 0===this.value.clone?this.value:this.value.clone())}}function Ad(t,e,n){Xa.call(this,t,e),this.meshPerAttribute=n||1}function Cd(t,e,n,r,i){this.buffer=t,this.type=e,this.itemSize=n,this.elementSize=r,this.count=i,this.version=0}function Ed(t,e,n=0,r=1/0){this.ray=new Er(t,e),this.near=n,this.far=r,this.camera=null,this.layers=new jr,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function Td(t,e){return t.distance-e.distance}function Id(t,e,n,r){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===r){const r=t.children;for(let t=0,i=r.length;t<i;t++)Id(r[t],e,n,!0)}}Ad.prototype=Object.assign(Object.create(Xa.prototype),{constructor:Ad,isInstancedInterleavedBuffer:!0,copy:function(t){return Xa.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},clone:function(t){const e=Xa.prototype.clone.call(this,t);return e.meshPerAttribute=this.meshPerAttribute,e},toJSON:function(t){const e=Xa.prototype.toJSON.call(this,t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}),Object.defineProperty(Cd.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Cd.prototype,{isGLBufferAttribute:!0,setBuffer:function(t){return this.buffer=t,this},setType:function(t,e){return this.type=t,this.elementSize=e,this},setItemSize:function(t){return this.itemSize=t,this},setCount:function(t){return this.count=t,this}}),Object.assign(Ed.prototype,{set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)},intersectObject:function(t,e=!1,n=[]){return Id(t,this,n,e),n.sort(Td),n},intersectObjects:function(t,e=!1,n=[]){for(let r=0,i=t.length;r<i;r++)Id(t[r],this,n,e);return n.sort(Td),n}});class Pd{constructor(t=1,e=0,n=0){return this.radius=t,this.phi=e,this.theta=n,this}set(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){const t=1e-6;return this.phi=Math.max(t,Math.min(Math.PI-t,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+e*e+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,n),this.phi=Math.acos(jn.clamp(e/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}class Ld{constructor(t=1,e=0,n=0){return this.radius=t,this.theta=e,this.y=n,this}set(t,e,n){return this.radius=t,this.theta=e,this.y=n,this}copy(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+n*n),this.theta=Math.atan2(t,n),this.y=e,this}clone(){return(new this.constructor).copy(this)}}const Rd=new Un;class Od{constructor(t=new Un(1/0,1/0),e=new Un(-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=Rd.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.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(t){return void 0===t&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new Un),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return void 0===t&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new Un),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return void 0===e&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new Un),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return void 0===e&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new Un),e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return Rd.copy(t).clamp(this.min,this.max).sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}Od.prototype.isBox2=!0;const Bd=new qn,kd=new qn;class Dd{constructor(t=new qn,e=new qn){this.start=t,this.end=e}set(t,e){return this.start.copy(t),this.end.copy(e),this}copy(t){return this.start.copy(t.start),this.end.copy(t.end),this}getCenter(t){return void 0===t&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new qn),t.addVectors(this.start,this.end).multiplyScalar(.5)}delta(t){return void 0===t&&(console.warn("THREE.Line3: .delta() target is now required"),t=new qn),t.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(t,e){return void 0===e&&(console.warn("THREE.Line3: .at() target is now required"),e=new qn),this.delta(e).multiplyScalar(t).add(this.start)}closestPointToPointParameter(t,e){Bd.subVectors(t,this.start),kd.subVectors(this.end,this.start);const n=kd.dot(kd);let r=kd.dot(Bd)/n;return e&&(r=jn.clamp(r,0,1)),r}closestPointToPoint(t,e,n){const r=this.closestPointToPointParameter(t,e);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new qn),this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this}equals(t){return t.start.equals(this.start)&&t.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}function Fd(t){$r.call(this),this.material=t,this.render=function(){},this.hasPositions=!1,this.hasNormals=!1,this.hasColors=!1,this.hasUvs=!1,this.positionArray=null,this.normalArray=null,this.colorArray=null,this.uvArray=null,this.count=0}Fd.prototype=Object.create($r.prototype),Fd.prototype.constructor=Fd,Fd.prototype.isImmediateRenderObject=!0;const Nd=new qn;class jd extends $r{constructor(t,e){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;const n=new Xi,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 t=0,e=1,n=32;t<n;t++,e++){const i=t/n*Math.PI*2,o=e/n*Math.PI*2;r.push(Math.cos(i),Math.sin(i),1,Math.cos(o),Math.sin(o),1)}n.setAttribute("position",new Di(r,3));const i=new Lc({fog:!1,toneMapped:!1});this.cone=new Uc(n,i),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateMatrixWorld();const t=this.light.distance?this.light.distance:1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),Nd.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(Nd),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const Ud=new qn,zd=new Tr,Gd=new Tr;class Hd extends Uc{constructor(t){const e=function t(e){const n=[];e&&e.isBone&&n.push(e);for(let r=0;r<e.children.length;r++)n.push.apply(n,t(e.children[r]));return n}(t),n=new Xi,r=[],i=[],o=new Si(0,0,1),s=new Si(0,1,0);for(let t=0;t<e.length;t++){const n=e[t];n.parent&&n.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(o.r,o.g,o.b),i.push(s.r,s.g,s.b))}n.setAttribute("position",new Di(r,3)),n.setAttribute("color",new Di(i,3)),super(n,new Lc({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,n=this.geometry,r=n.getAttribute("position");Gd.copy(this.root.matrixWorld).invert();for(let t=0,n=0;t<e.length;t++){const i=e[t];i.parent&&i.parent.isBone&&(zd.multiplyMatrices(Gd,i.matrixWorld),Ud.setFromMatrixPosition(zd),r.setXYZ(n,Ud.x,Ud.y,Ud.z),zd.multiplyMatrices(Gd,i.parent.matrixWorld),Ud.setFromMatrixPosition(zd),r.setXYZ(n+1,Ud.x,Ud.y,Ud.z),n+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}}class Wd extends fo{constructor(t,e,n){super(new Vl(e,4,2),new Mi({wireframe:!0,fog:!1,toneMapped:!1})),this.light=t,this.light.updateMatrixWorld(),this.color=n,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const Vd=new qn,Zd=new Si,Qd=new Si;class Xd extends $r{constructor(t,e,n){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;const r=new zl(e);r.rotateY(.5*Math.PI),this.material=new Mi({wireframe:!0,fog:!1,toneMapped:!1}),void 0===this.color&&(this.material.vertexColors=!0);const i=r.getAttribute("position"),o=new Float32Array(3*i.count);r.setAttribute("color",new Ei(o,3)),this.add(new fo(r,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const t=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{const e=t.geometry.getAttribute("color");Zd.copy(this.light.color),Qd.copy(this.light.groundColor);for(let t=0,n=e.count;t<n;t++){const r=t<n/2?Zd:Qd;e.setXYZ(t,r.r,r.g,r.b)}e.needsUpdate=!0}t.lookAt(Vd.setFromMatrixPosition(this.light.matrixWorld).negate())}}class Yd extends Uc{constructor(t=10,e=10,n=4473924,r=8947848){n=new Si(n),r=new Si(r);const i=e/2,o=t/e,s=t/2,a=[],c=[];for(let t=0,l=0,u=-s;t<=e;t++,u+=o){a.push(-s,0,u,s,0,u),a.push(u,0,-s,u,0,s);const e=t===i?n:r;e.toArray(c,l),l+=3,e.toArray(c,l),l+=3,e.toArray(c,l),l+=3,e.toArray(c,l),l+=3}const l=new Xi;l.setAttribute("position",new Di(a,3)),l.setAttribute("color",new Di(c,3)),super(l,new Lc({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}}class Jd extends Uc{constructor(t=10,e=16,n=8,r=64,i=4473924,o=8947848){i=new Si(i),o=new Si(o);const s=[],a=[];for(let n=0;n<=e;n++){const r=n/e*(2*Math.PI),c=Math.sin(r)*t,l=Math.cos(r)*t;s.push(0,0,0),s.push(c,0,l);const u=1&n?i:o;a.push(u.r,u.g,u.b),a.push(u.r,u.g,u.b)}for(let e=0;e<=n;e++){const c=1&e?i:o,l=t-t/n*e;for(let t=0;t<r;t++){let e=t/r*(2*Math.PI),n=Math.sin(e)*l,i=Math.cos(e)*l;s.push(n,0,i),a.push(c.r,c.g,c.b),e=(t+1)/r*(2*Math.PI),n=Math.sin(e)*l,i=Math.cos(e)*l,s.push(n,0,i),a.push(c.r,c.g,c.b)}}const c=new Xi;c.setAttribute("position",new Di(s,3)),c.setAttribute("color",new Di(a,3)),super(c,new Lc({vertexColors:!0,toneMapped:!1})),this.type="PolarGridHelper"}}const qd=new qn,Kd=new qn,$d=new qn;class tf extends $r{constructor(t,e,n){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===e&&(e=1);let r=new Xi;r.setAttribute("position",new Di([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3));const i=new Lc({fog:!1,toneMapped:!1});this.lightPlane=new Fc(r,i),this.add(this.lightPlane),r=new Xi,r.setAttribute("position",new Di([0,0,0,0,0,1],3)),this.targetLine=new Fc(r,i),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){qd.setFromMatrixPosition(this.light.matrixWorld),Kd.setFromMatrixPosition(this.light.target.matrixWorld),$d.subVectors(Kd,qd),this.lightPlane.lookAt(Kd),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(Kd),this.targetLine.scale.z=$d.length()}}const ef=new qn,nf=new bo;class rf extends Uc{constructor(t){const e=new Xi,n=new Lc({color:16777215,vertexColors:!0,toneMapped:!1}),r=[],i=[],o={},s=new Si(16755200),a=new Si(16711680),c=new Si(43775),l=new Si(16777215),u=new Si(3355443);function h(t,e,n){d(t,n),d(e,n)}function d(t,e){r.push(0,0,0),i.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(r.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",a),h("p","n2",a),h("p","n3",a),h("p","n4",a),h("u1","u2",c),h("u2","u3",c),h("u3","u1",c),h("c","t",l),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),e.setAttribute("position",new Di(r,3)),e.setAttribute("color",new Di(i,3)),super(e,n),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){const t=this.geometry,e=this.pointMap;nf.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),of("c",e,t,nf,0,0,-1),of("t",e,t,nf,0,0,1),of("n1",e,t,nf,-1,-1,-1),of("n2",e,t,nf,1,-1,-1),of("n3",e,t,nf,-1,1,-1),of("n4",e,t,nf,1,1,-1),of("f1",e,t,nf,-1,-1,1),of("f2",e,t,nf,1,-1,1),of("f3",e,t,nf,-1,1,1),of("f4",e,t,nf,1,1,1),of("u1",e,t,nf,.7,1.1,-1),of("u2",e,t,nf,-.7,1.1,-1),of("u3",e,t,nf,0,2,-1),of("cf1",e,t,nf,-1,0,1),of("cf2",e,t,nf,1,0,1),of("cf3",e,t,nf,0,-1,1),of("cf4",e,t,nf,0,1,1),of("cn1",e,t,nf,-1,0,-1),of("cn2",e,t,nf,1,0,-1),of("cn3",e,t,nf,0,-1,-1),of("cn4",e,t,nf,0,1,-1),t.getAttribute("position").needsUpdate=!0}}function of(t,e,n,r,i,o,s){ef.set(i,o,s).unproject(r);const a=e[t];if(void 0!==a){const t=n.getAttribute("position");for(let e=0,n=a.length;e<n;e++)t.setXYZ(a[e],ef.x,ef.y,ef.z)}}const sf=new tr;class af extends Uc{constructor(t,e=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 Float32Array(24),i=new Xi;i.setIndex(new Ei(n,1)),i.setAttribute("position",new Ei(r,3)),super(i,new Lc({color:e,toneMapped:!1})),this.object=t,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&sf.setFromObject(this.object),sf.isEmpty())return;const e=sf.min,n=sf.max,r=this.geometry.attributes.position,i=r.array;i[0]=n.x,i[1]=n.y,i[2]=n.z,i[3]=e.x,i[4]=n.y,i[5]=n.z,i[6]=e.x,i[7]=e.y,i[8]=n.z,i[9]=n.x,i[10]=e.y,i[11]=n.z,i[12]=n.x,i[13]=n.y,i[14]=e.z,i[15]=e.x,i[16]=n.y,i[17]=e.z,i[18]=e.x,i[19]=e.y,i[20]=e.z,i[21]=n.x,i[22]=e.y,i[23]=e.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(t){return this.object=t,this.update(),this}copy(t){return Uc.prototype.copy.call(this,t),this.object=t.object,this}}class cf extends Uc{constructor(t,e=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 Xi;r.setIndex(new Ei(n,1)),r.setAttribute("position",new Di([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 Lc({color:e,toneMapped:!1})),this.box=t,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(t){const e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(t))}}class lf extends Fc{constructor(t,e=1,n=16776960){const r=n,i=new Xi;i.setAttribute("position",new Di([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,0,1,0,0,0],3)),i.computeBoundingSphere(),super(i,new Lc({color:r,toneMapped:!1})),this.type="PlaneHelper",this.plane=t,this.size=e;const o=new Xi;o.setAttribute("position",new Di([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),o.computeBoundingSphere(),this.add(new fo(o,new Mi({color:r,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(t){let e=-this.plane.constant;Math.abs(e)<1e-8&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=e<0?m:p,this.lookAt(this.plane.normal),super.updateMatrixWorld(t)}}const uf=new qn;let hf,df;class ff extends $r{constructor(t=new qn(0,0,1),e=new qn(0,0,0),n=1,r=16776960,i=.2*n,o=.2*i){super(),this.type="ArrowHelper",void 0===hf&&(hf=new Xi,hf.setAttribute("position",new Di([0,0,0,0,1,0],3)),df=new tl(0,.5,1,5,1),df.translate(0,-.5,0)),this.position.copy(e),this.line=new Fc(hf,new Lc({color:r,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new fo(df,new Mi({color:r,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,i,o)}setDirection(t){if(t.y>.99999)this.quaternion.set(0,0,0,1);else if(t.y<-.99999)this.quaternion.set(1,0,0,0);else{uf.set(t.z,0,-t.x).normalize();const e=Math.acos(t.y);this.quaternion.setFromAxisAngle(uf,e)}}setLength(t,e=.2*t,n=.2*e){this.line.scale.set(1,Math.max(1e-4,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()}setColor(t){this.line.material.color.set(t),this.cone.material.color.set(t)}copy(t){return super.copy(t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this}}class pf extends Uc{constructor(t=1){const e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t],n=new Xi;n.setAttribute("position",new Di(e,3)),n.setAttribute("color",new Di([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(n,new Lc({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}}const mf=new Float32Array(1),gf=new Int32Array(mf.buffer),vf={toHalfFloat:function(t){mf[0]=t;const e=gf[0];let n=e>>16&32768,r=e>>12&2047;const i=e>>23&255;return i<103?n:i>142?(n|=31744,n|=(255==i?0:1)&&8388607&e,n):i<113?(r|=2048,n|=(r>>114-i)+(r>>113-i&1),n):(n|=i-112<<10|r>>1,n+=1&r,n)}},yf=Math.pow(2,8),_f=[.125,.215,.35,.446,.526,.582],bf=5+_f.length,xf={[Je]:0,[qe]:1,[$e]:2,[en]:3,[nn]:4,[rn]:5,[Ke]:6},wf=new Mi({side:m,depthWrite:!1,depthTest:!1}),Sf=new fo(new mo,wf),Mf=new _h,{_lodPlanes:Af,_sizeLods:Cf,_sigmas:Ef}=function(){const t=[],e=[],n=[];let r=8;for(let i=0;i<bf;i++){const o=Math.pow(2,r);e.push(o);let s=1/o;i>4?s=_f[i-8+4-1]:0==i&&(s=0),n.push(s);const a=1/(o-1),c=-a/2,l=1+a/2,u=[c,c,l,c,l,l,c,c,l,l,c,l],h=6,d=6,f=3,p=2,m=1,g=new Float32Array(f*d*h),v=new Float32Array(p*d*h),y=new Float32Array(m*d*h);for(let t=0;t<h;t++){const e=t%3*2/3-1,n=t>2?0:-1,r=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];g.set(r,f*d*t),v.set(u,p*d*t);const i=[t,t,t,t,t,t];y.set(i,m*d*t)}const _=new Xi;_.setAttribute("position",new Ei(g,f)),_.setAttribute("uv",new Ei(v,p)),_.setAttribute("faceIndex",new Ei(y,m)),t.push(_),r>4&&r--}return{_lodPlanes:t,_sizeLods:e,_sigmas:n}}(),Tf=new Si;let If=null;const Pf=(1+Math.sqrt(5))/2,Lf=1/Pf,Rf=[new qn(1,1,1),new qn(-1,1,1),new qn(1,1,-1),new qn(-1,1,-1),new qn(0,Pf,Lf),new qn(0,Pf,-Lf),new qn(Lf,0,Pf),new qn(-Lf,0,Pf),new qn(Pf,Lf,0),new qn(-Pf,Lf,0)];function Of(t){const e=Math.max(t.r,t.g,t.b),n=Math.min(Math.max(Math.ceil(Math.log2(e)),-128),127);return t.multiplyScalar(Math.pow(2,-n)),(n+128)/255}class Bf{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=function(t){const e=new Float32Array(t),n=new qn(0,1,0);return new tu({name:"SphericalGaussianBlur",defines:{n:t},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:e},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n},inputEncoding:{value:xf[Je]},outputEncoding:{value:xf[Je]}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\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",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\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t\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\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",blending:_,depthTest:!1,depthWrite:!1})}(20),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,r=100){If=this._renderer.getRenderTarget();const i=this._allocateTargets();return this._sceneToCubeUV(t,n,r,i),e>0&&this._blur(i,0,0,e),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(t){return this._fromTexture(t)}fromCubemap(t){return this._fromTexture(t)}compileCubemapShader(){null===this._cubemapShader&&(this._cubemapShader=jf(),this._compileMaterial(this._cubemapShader))}compileEquirectangularShader(){null===this._equirectShader&&(this._equirectShader=Nf(),this._compileMaterial(this._equirectShader))}dispose(){this._blurMaterial.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(let t=0;t<Af.length;t++)Af[t].dispose()}_cleanup(t){this._pingPongRenderTarget.dispose(),this._renderer.setRenderTarget(If),t.scissorTest=!1,Ff(t,0,0,t.width,t.height)}_fromTexture(t){If=this._renderer.getRenderTarget();const e=this._allocateTargets(t);return this._textureToCubeUV(t,e),this._applyPMREM(e),this._cleanup(e),e}_allocateTargets(t){const e={magFilter:pt,minFilter:pt,generateMipmaps:!1,type:Mt,format:zt,encoding:kf(t)?t.encoding:$e,depthBuffer:!1},n=Df(e);return n.depthBuffer=!t,this._pingPongRenderTarget=Df(e),n}_compileMaterial(t){const e=new fo(Af[0],t);this._renderer.compile(e,Mf)}_sceneToCubeUV(t,e,n,r){const i=new xo(90,1,e,n),o=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],a=this._renderer,c=a.autoClear,l=a.outputEncoding,u=a.toneMapping;a.getClearColor(Tf),a.toneMapping=K,a.outputEncoding=Je,a.autoClear=!1;let h=!1;const d=t.background;if(d){if(d.isColor){wf.color.copy(d).convertSRGBToLinear(),t.background=null;const e=Of(wf.color);wf.opacity=e,h=!0}}else{wf.color.copy(Tf).convertSRGBToLinear();const t=Of(wf.color);wf.opacity=t,h=!0}for(let e=0;e<6;e++){const n=e%3;0==n?(i.up.set(0,o[e],0),i.lookAt(s[e],0,0)):1==n?(i.up.set(0,0,o[e]),i.lookAt(0,s[e],0)):(i.up.set(0,o[e],0),i.lookAt(0,0,s[e])),Ff(r,n*yf,e>2?yf:0,yf,yf),a.setRenderTarget(r),h&&a.render(Sf,i),a.render(t,i)}a.toneMapping=u,a.outputEncoding=l,a.autoClear=c}_textureToCubeUV(t,e){const n=this._renderer;t.isCubeTexture?null==this._cubemapShader&&(this._cubemapShader=jf()):null==this._equirectShader&&(this._equirectShader=Nf());const r=t.isCubeTexture?this._cubemapShader:this._equirectShader,i=new fo(Af[0],r),o=r.uniforms;o.envMap.value=t,t.isCubeTexture||o.texelSize.value.set(1/t.image.width,1/t.image.height),o.inputEncoding.value=xf[t.encoding],o.outputEncoding.value=xf[e.texture.encoding],Ff(e,0,0,3*yf,2*yf),n.setRenderTarget(e),n.render(i,Mf)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let e=1;e<bf;e++){const n=Math.sqrt(Ef[e]*Ef[e]-Ef[e-1]*Ef[e-1]),r=Rf[(e-1)%Rf.length];this._blur(t,e-1,e,n,r)}e.autoClear=n}_blur(t,e,n,r,i){const o=this._pingPongRenderTarget;this._halfBlur(t,o,e,n,r,"latitudinal",i),this._halfBlur(o,t,n,n,r,"longitudinal",i)}_halfBlur(t,e,n,r,i,o,s){const a=this._renderer,c=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const l=new fo(Af[r],c),u=c.uniforms,h=Cf[n]-1,d=isFinite(i)?Math.PI/(2*h):2*Math.PI/39,f=i/d,p=isFinite(i)?1+Math.floor(3*f):20;p>20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to 20`);const m=[];let g=0;for(let t=0;t<20;++t){const e=t/f,n=Math.exp(-e*e/2);m.push(n),0==t?g+=n:t<p&&(g+=2*n)}for(let t=0;t<m.length;t++)m[t]=m[t]/g;u.envMap.value=t.texture,u.samples.value=p,u.weights.value=m,u.latitudinal.value="latitudinal"===o,s&&(u.poleAxis.value=s),u.dTheta.value=d,u.mipInt.value=8-n,u.inputEncoding.value=xf[t.texture.encoding],u.outputEncoding.value=xf[t.texture.encoding];const v=Cf[r];Ff(e,3*Math.max(0,yf-2*v),(0===r?0:2*yf)+2*v*(r>4?r-8+4:0),3*v,2*v),a.setRenderTarget(e),a.render(l,Mf)}}function kf(t){return void 0!==t&&t.type===Mt&&(t.encoding===Je||t.encoding===qe||t.encoding===Ke)}function Df(t){const e=new Xn(3*yf,3*yf,t);return e.texture.mapping=lt,e.texture.name="PMREM.cubeUv",e.scissorTest=!0,e}function Ff(t,e,n,r,i){t.viewport.set(e,n,r,i),t.scissor.set(e,n,r,i)}function Nf(){const t=new Un(1,1);return new tu({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:t},inputEncoding:{value:xf[Je]},outputEncoding:{value:xf[Je]}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\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",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 vec2 texelSize;\n\n\t\t\t\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",blending:_,depthTest:!1,depthWrite:!1})}function jf(){return new tu({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:xf[Je]},outputEncoding:{value:xf[Je]}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\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",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 samplerCube envMap;\n\n\t\t\t\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",blending:_,depthTest:!1,depthWrite:!1})}const Uf=0,zf=1,Gf=0,Hf=1,Wf=2;function Vf(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t}function Zf(t=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t}function Qf(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new Qc(t,e)}function Xf(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new hc(t)}function Yf(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new Qc(t,e)}function Jf(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Gc(t)}function qf(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Gc(t)}function Kf(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Gc(t)}function $f(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new qn(t,e,n)}function tp(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new Ei(t,e).setUsage(Cn)}function ep(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Ti(t,e)}function np(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Ii(t,e)}function rp(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new Pi(t,e)}function ip(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Li(t,e)}function op(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new Ri(t,e)}function sp(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new Oi(t,e)}function ap(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Bi(t,e)}function cp(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Di(t,e)}function lp(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new Fi(t,e)}function up(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new pf(t)}function hp(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new af(t,e)}function dp(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new Uc(new cl(t.geometry),new Lc({color:void 0!==e?e:16777215}))}function fp(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new Uc(new ql(t.geometry),new Lc({color:void 0!==e?e:16777215}))}function pp(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new Pu(t)}function mp(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new ku(t)}function gp(t,e,n){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new Mo(t,n)}function vp(){console.error("THREE.CanvasRenderer has been removed")}function yp(){console.error("THREE.JSONLoader has been removed.")}Fu.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Fu.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},ih.prototype.fromPoints=function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)},Yd.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Hd.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Tu.prototype.extractUrlBase=function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Eh.extractUrlBase(t)},Tu.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Od.prototype.center=function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},Od.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Od.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Od.prototype.size=function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)},tr.prototype.center=function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},tr.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},tr.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},tr.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},tr.prototype.size=function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)},_r.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},To.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)},Dd.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},jn.random16=function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},jn.nearestPowerOfTwo=function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),jn.floorPowerOfTwo(t)},jn.nextPowerOfTwo=function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),jn.ceilPowerOfTwo(t)},zn.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},zn.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},zn.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},zn.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},zn.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},zn.prototype.getInverse=function(t){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},Tr.prototype.extractPosition=function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},Tr.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},Tr.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new qn).setFromMatrixColumn(this,3)},Tr.prototype.setRotationFromQuaternion=function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},Tr.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Tr.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.multiplyVector4=function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Tr.prototype.rotateAxis=function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},Tr.prototype.crossVector=function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Tr.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Tr.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Tr.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Tr.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Tr.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Tr.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Tr.prototype.makeFrustum=function(t,e,n,r,i,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,r,n,i,o)},Tr.prototype.getInverse=function(t){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},ri.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},Jn.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Jn.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Er.prototype.isIntersectionBox=function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Er.prototype.isIntersectionPlane=function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},Er.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},pi.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},pi.prototype.barycoordFromPoint=function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},pi.prototype.midpoint=function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},pi.prototypenormal=function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},pi.prototype.plane=function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)},pi.barycoordFromPoint=function(t,e,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),pi.getBarycoord(t,e,n,r,i)},pi.normal=function(t,e,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),pi.getNormal(t,e,n,r)},oh.prototype.extractAllPoints=function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},oh.prototype.extrude=function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new Fl(this,t)},oh.prototype.makeGeometry=function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Wl(this,t)},Un.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},Un.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},Un.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},qn.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},qn.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},qn.prototype.getPositionFromMatrix=function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},qn.prototype.getScaleFromMatrix=function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},qn.prototype.getColumnFromMatrix=function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},qn.prototype.applyProjection=function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},qn.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},qn.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},qn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},Qn.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},Qn.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},$r.prototype.getChildByName=function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},$r.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},$r.prototype.translate=function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},$r.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},$r.prototype.applyMatrix=function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties($r.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),fo.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(fo.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),Qe},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),xc.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(Fu.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),xo.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(sh.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(Ei.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===Cn},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(Cn)}}}),Ei.prototype.setDynamic=function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?Cn:An),this},Ei.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Ei.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Xi.prototype.addIndex=function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},Xi.prototype.addAttribute=function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new Ei(arguments[1],arguments[2])))},Xi.prototype.addDrawCall=function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},Xi.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},Xi.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},Xi.prototype.removeAttribute=function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)},Xi.prototype.applyMatrix=function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(Xi.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(Th.prototype,{maxInstancedCount:{get:function(){return console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount},set:function(t){console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount=t}}}),Object.defineProperties(Ed.prototype,{linePrecision:{get:function(){return console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold},set:function(t){console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold=t}}}),Object.defineProperties(Xa.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===Cn},set:function(t){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(t)}}}),Xa.prototype.setDynamic=function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?Cn:An),this},Xa.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},Fl.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},Fl.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},Fl.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Qa.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Md.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(gi.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Si}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===v}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}}}),Object.defineProperties(nu.prototype,{transparency:{get:function(){return console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission},set:function(t){console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission=t}}}),Object.defineProperties(_o.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Ha.prototype.clearTarget=function(t,e,n,r){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,r)},Ha.prototype.animate=function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},Ha.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Ha.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Ha.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Ha.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Ha.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Ha.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Ha.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Ha.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Ha.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Ha.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Ha.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Ha.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Ha.prototype.enableScissorTest=function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},Ha.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Ha.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Ha.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Ha.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Ha.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Ha.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Ha.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Ha.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Ha.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Ha.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Ha.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===t?qe:Je}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(Ba.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Xn.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),ed.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this;return(new Gh).load(t,(function(t){e.setBuffer(t)})),this},ad.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},wo.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},wo.prototype.clear=function(t,e,n,r){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(t,e,n,r)},Hn.crossOrigin=void 0,Hn.loadTexture=function(t,e,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const i=new Du;i.setCrossOrigin(this.crossOrigin);const o=i.load(t,n,void 0,r);return e&&(o.mapping=e),o},Hn.loadTextureCube=function(t,e,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const i=new Bu;i.setCrossOrigin(this.crossOrigin);const o=i.load(t,n,void 0,r);return e&&(o.mapping=e),o},Hn.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},Hn.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};const _p={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function bp(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:r}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=r)},"11b2":function(t,e,n){var r=n("2774"),i=n("c197"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"11c3":function(t,e,n){var r=n("349c"),i=n("688d");t.exports=function(t){return r(i(t))}},1231:function(t,e,n){var r=n("bed0"),i=n("065f"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},"138f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("1183");e.textAlign={center:new r.Vector2(0,0),left:new r.Vector2(1,0),top:new r.Vector2(0,-1),topLeft:new r.Vector2(1,-1),topRight:new r.Vector2(-1,-1),right:new r.Vector2(-1,0),bottom:new r.Vector2(0,1),bottomLeft:new r.Vector2(1,1),bottomRight:new r.Vector2(-1,1)};var i={};e.getFontHeight=function(t){var e=i[t];if(!e){var n=document.getElementsByTagName("body")[0],r=document.createElement("div"),o=document.createTextNode("MÉq");r.appendChild(o),r.setAttribute("style","font:"+t+";position:absolute;top:0;left:0"),n.appendChild(r),e=r.offsetHeight,i[t]=e,n.removeChild(r)}return e}},"149f":function(t,e,n){"use strict";var r=n("6dec"),i=n("c197"),o=n("1cc9"),s=n("e300"),a=n("7f69"),c=n("bd71")((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||l},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return s(e,n),n}})},"152f":function(t,e,n){"use strict";var r="_erd";function i(t){return t[r]}t.exports={initState:function(t){return t[r]={},i(t)},getState:i,cleanState:function(t){delete t[r]}}},1671:function(t,e,n){var r=n("93b0");r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals),(0,n("5925").default)("dcc90e9e",r,!0,{sourceMap:!1,shadowMode:!1})},"17e0":function(t,e,n){var r=n("58bc"),i=n("bd71"),o=n("c09a");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1803:function(t,e,n){"use strict";var r=n("5451"),i=n("1cc9"),o=n("350d"),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=s(this),n=i(e),r=o(t),a=r>=0?r:n+r;return a<0||a>=n?void 0:e[a]}))},"1cba":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("2409"))},"1cbe":function(t,e,n){(function(e){(function(){var n,r,i,o,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-s)/1e6},r=e.hrtime,o=(n=function(){var t;return 1e9*(t=r())[0]+t[1]})(),a=1e9*e.uptime(),s=o-a):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n("eef6"))},"1cc9":function(t,e,n){var r=n("0e3d");t.exports=function(t){return r(t.length)}},"1def":function(t,e,n){var r=n("cea5").f,i=n("11b2"),o=n("20e2")("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},"1e0a":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];return null!=r||void 0===n?r:n}},"1e74":function(t,e,n){var r=n("2774"),i=n("065f"),o=n("1f1f"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"1f1f":function(t,e,n){var r=n("bed0"),i=n("df5a"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},"1f97":function(t,e,n){var r=n("58bc"),i=n("cea5"),o=n("3b98");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},2063:function(t,e,n){var r=n("91920"),i=n("065f"),o=n("9887"),s=n("20e2")("toStringTag"),a=Object,c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},"20e2":function(t,e,n){var r=n("bed0"),i=n("fddf"),o=n("11b2"),s=n("e435"),a=n("0d67"),c=n("d258"),l=i("wks"),u=r.Symbol,h=u&&u.for,d=c?u:u&&u.withoutSetter||s;t.exports=function(t){if(!o(l,t)||!a&&"string"!=typeof l[t]){var e="Symbol."+t;a&&o(u,t)?l[t]=u[t]:l[t]=c&&h?h(e):d(e)}return l[t]}},2269:function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,o,a,c,l,u,d,f=e&&e.length,p=f?e[0]*n:t.length,m=i(t,0,p,n,!0),g=[];if(!m||m.next===m.prev)return g;if(f&&(m=h(t,e,m,n)),t.length>80*n){r=a=t[0],o=c=t[1];for(var v=n;v<p;v+=n)(l=t[v])<r&&(r=l),(u=t[v+1])<o&&(o=u),l>a&&(a=l),u>c&&(c=u);d=0!==(d=Math.max(a-r,c-o))?32767/d:0}return s(m,g,n,r,o,d,0),g}function i(t,e,n,r,i){var o,s;if(i===I(t,e,n,r)>0)for(o=e;o<n;o+=r)s=C(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=C(o,t[o],t[o+1],s);return s&&b(s,s.next)&&(E(s),s=s.next),s}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==_(r.prev,r,r.next))r=r.next;else{if(E(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function s(t,e,n,r,i,h,d){if(t){!d&&h&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=m(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,c,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<l&&(a++,r=r.nextZ);e++);for(c=l;a>0||c>0&&r;)0!==a&&(0===c||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,r,i,h);for(var f,p,g=t;t.prev!==t.next;)if(f=t.prev,p=t.next,h?c(t,r,i,h):a(t))e.push(f.i/n|0),e.push(t.i/n|0),e.push(p.i/n|0),E(t),t=p.next,g=p.next;else if((t=p)===g){d?1===d?s(t=l(o(t),e,n),e,n,r,i,h,2):2===d&&u(t,e,n,r,i,h):s(o(t),e,n,r,i,h,1);break}}}function a(t){var e=t.prev,n=t,r=t.next;if(_(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,s=r.x,a=e.y,c=n.y,l=r.y,u=i<o?i<s?i:s:o<s?o:s,h=a<c?a<l?a:l:c<l?c:l,d=i>o?i>s?i:s:o>s?o:s,f=a>c?a>l?a:l:c>l?c:l,p=r.next;p!==e;){if(p.x>=u&&p.x<=d&&p.y>=h&&p.y<=f&&v(i,a,o,c,s,l,p.x,p.y)&&_(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function c(t,e,n,r){var i=t.prev,o=t,s=t.next;if(_(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,l=s.x,u=i.y,h=o.y,d=s.y,f=a<c?a<l?a:l:c<l?c:l,p=u<h?u<d?u:d:h<d?h:d,g=a>c?a>l?a:l:c>l?c:l,y=u>h?u>d?u:d:h>d?h:d,b=m(f,p,e,n,r),x=m(g,y,e,n,r),w=t.prevZ,S=t.nextZ;w&&w.z>=b&&S&&S.z<=x;){if(w.x>=f&&w.x<=g&&w.y>=p&&w.y<=y&&w!==i&&w!==s&&v(a,u,c,h,l,d,w.x,w.y)&&_(w.prev,w,w.next)>=0)return!1;if(w=w.prevZ,S.x>=f&&S.x<=g&&S.y>=p&&S.y<=y&&S!==i&&S!==s&&v(a,u,c,h,l,d,S.x,S.y)&&_(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;w&&w.z>=b;){if(w.x>=f&&w.x<=g&&w.y>=p&&w.y<=y&&w!==i&&w!==s&&v(a,u,c,h,l,d,w.x,w.y)&&_(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;S&&S.z<=x;){if(S.x>=f&&S.x<=g&&S.y>=p&&S.y<=y&&S!==i&&S!==s&&v(a,u,c,h,l,d,S.x,S.y)&&_(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function l(t,e,n){var r=t;do{var i=r.prev,s=r.next.next;!b(i,s)&&x(i,r,r.next,s)&&M(i,s)&&M(s,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(s.i/n|0),E(r),E(r.next),r=t=s),r=r.next}while(r!==t);return o(r)}function u(t,e,n,r,i,a){var c=t;do{for(var l=c.next.next;l!==c.prev;){if(c.i!==l.i&&y(c,l)){var u=A(c,l);return c=o(c,c.next),u=o(u,u.next),s(c,e,n,r,i,a,0),void s(u,e,n,r,i,a,0)}l=l.next}c=c.next}while(c!==t)}function h(t,e,n,r){var o,s,a,c=[];for(o=0,s=e.length;o<s;o++)(a=i(t,e[o]*r,o<s-1?e[o+1]*r:t.length,r,!1))===a.next&&(a.steiner=!0),c.push(g(a));for(c.sort(d),o=0;o<c.length;o++)n=f(c[o],n);return n}function d(t,e){return t.x-e.x}function f(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s&&(s=a,n=r.x<r.next.x?r:r.next,a===i))return n}r=r.next}while(r!==e);if(!n)return null;var c,l=n,u=n.x,h=n.y,d=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&v(o<h?i:s,o,u,h,o<h?s:i,o,r.x,r.y)&&(c=Math.abs(o-r.y)/(i-r.x),M(r,t)&&(c<d||c===d&&(r.x>n.x||r.x===n.x&&p(n,r)))&&(n=r,d=c)),r=r.next}while(r!==l);return n}(t,e);if(!n)return e;var r=A(n,t);return o(r,r.next),o(n,n.next)}function p(t,e){return _(t.prev,t,e.prev)<0&&_(e.next,t,t.next)<0}function m(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function v(t,e,n,r,i,o,s,a){return(i-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(r-a)>=(n-s)*(e-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&x(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(M(t,e)&&M(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(_(t.prev,t,e.prev)||_(t,e.prev,e))||b(t,e)&&_(t.prev,t,t.next)>0&&_(e.prev,e,e.next)>0)}function _(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,n,r){var i=S(_(t,e,n)),o=S(_(t,e,r)),s=S(_(n,r,t)),a=S(_(n,r,e));return i!==o&&s!==a||!(0!==i||!w(t,n,e))||!(0!==o||!w(t,r,e))||!(0!==s||!w(n,t,r))||!(0!==a||!w(n,e,r))}function w(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function S(t){return t>0?1:t<0?-1:0}function M(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function A(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function C(t,e,n,r){var i=new T(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}t.exports=r,t.exports.default=r,r.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(I(t,0,o,n));if(i)for(var a=0,c=e.length;a<c;a++){var l=e[a]*n,u=a<c-1?e[a+1]*n:t.length;s-=Math.abs(I(t,l,u,n))}var h=0;for(a=0;a<r.length;a+=3){var d=r[a]*n,f=r[a+1]*n,p=r[a+2]*n;h+=Math.abs((t[d]-t[p])*(t[f+1]-t[d+1])-(t[d]-t[f])*(t[p+1]-t[d+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},2409:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},2721:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},2774:function(t,e,n){var r=n("db68"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},"287f":function(t,e,n){"use strict";n("cc6c")},"2a97":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxY2VjNGU4ZS1iOGY2LTliNGQtOTI4Ny00NDllN2M2NDNlOTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MkI4MDFBOTY3RTk2MTFFODhENTE4NERCOTYxNjg4MjUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MkI4MDFBOTU3RTk2MTFFODhENTE4NERCOTYxNjg4MjUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MWNlYzRlOGUtYjhmNi05YjRkLTkyODctNDQ5ZTdjNjQzZTk0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjFjZWM0ZThlLWI4ZjYtOWI0ZC05Mjg3LTQ0OWU3YzY0M2U5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmUmXhQAAADFSURBVHjaYshKSpK/fOnS1/9kgNOnTr1KT0+XZgCBmsrKsJcvX5JkwJUrV/7k5OTYMiCDCRMm9P/48YMoA27duvWvuLjYmwELYFy0aNERQgY8evTof111dSQDLhASEsK5a+fO57gMePHixf/6+voMBkIgLS1N7tKlSz/RDXj37t3/zvb2KgZiQWNjozvIVhj49OnT/97u7m4GUsH0qVPrvn///h+EJ0+YMJeBXLBkyZItM6dNW8tACbC3t2cBxRohdQABBgAt8yx0KlQQZgAAAABJRU5ErkJggg=="},"2ad0":function(t,e,n){"use strict";var r=n("1183"),i=n("bc28"),o=n("f29c"),s=n("f7a6");class a extends r.Mesh{constructor(t,e){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2",this.geometry=void 0!==t?t:new i.a,this.material=void 0!==e?e:new s.a({color:16777215*Math.random()})}computeLineDistances(){for(var t=new r.Vector3,e=new r.Vector3,n=this.geometry,i=n.attributes.instanceStart,s=n.attributes.instanceEnd,a=new Float32Array(2*i.data.count),c=0,l=0,u=i.data.count;c<u;c++,l+=2)t.fromBufferAttribute(i,c),e.fromBufferAttribute(s,c),a[l]=0===l?0:a[l-1],a[l+1]=a[l]+t.distanceTo(e);var h=new r.InstancedInterleavedBuffer(a,2,1);return Object(o.a)(n,"instanceDistanceStart",new r.InterleavedBufferAttribute(h,1,0)),Object(o.a)(n,"instanceDistanceEnd",new r.InterleavedBufferAttribute(h,1,1)),this}}var c=a,l=n("8ca7");e.a=class extends c{constructor(t,e){super(t,e),this.isLine2=!0,this.type="Line2",this.geometry=void 0!==t?t:new l.a,this.material=void 0!==e?e:new s.a({color:16777215*Math.random()})}copy(t){return this}}},"2ed2":function(t,e,n){var r=n("dc9b"),i=n("f227"),o=n("d92c"),s=Function.prototype,a=Object.prototype,c=s.toString,l=a.hasOwnProperty,u=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},"2ffc":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},3284:function(t,e,n){"use strict";var r=n("bed0"),i=n("e058"),o=n("5451"),s=n("1cc9"),a=n("42a4"),c=n("c197"),l=n("bd71"),u=r.RangeError,h=r.Int8Array,d=h&&h.prototype,f=d&&d.set,p=o.aTypedArray,m=o.exportTypedArrayMethod,g=!l((function(){var t=new Uint8ClampedArray(2);return i(f,t,{length:1,0:3},1),3!==t[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(g)return i(f,this,n,e);var r=this.length,o=s(n),l=0;if(o+e>r)throw u("Wrong length");for(;l<o;)this[e+l]=n[l++]}),!g||v)},3471:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAKCAYAAABSfLWiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0NTE4ZWRhOC03NjQ5LTNjNGUtYjYxZi0xNjVhZmQzNmJmMzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MUJCN0UxQjY3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MUJCN0UxQjU3RTk2MTFFOEFCNzVFRTYzMkFGMUE2MUIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDUxOGVkYTgtNzY0OS0zYzRlLWI2MWYtMTY1YWZkMzZiZjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjQ1MThlZGE4LTc2NDktM2M0ZS1iNjFmLTE2NWFmZDM2YmYzNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pvm07Z8AAADSSURBVHjaYvj//z8DPswIBI6Ojiz41LAwEAAzpk1bw83Lyw5k+uBUhM+GyRMnzv3+/ft/EJ4+dWodLnU4Dejr6en+9OnTfxh48eLF/6amJneiDelsb6969+7df3Rw+fLln+np6XIEDWloaMgA2YoL7N6163lYWBgnTkPqa2oiHz169J8QWLx48RFQrGEYUlpa6n379u1//4kAP378+D9xwoR+FEPy8vJsr1y58uc/CeDly5f/66qrw8CGZGZmSp85ffrVfzLA5UuXvuakpMgDBBgAQbLv2dsvRWYAAAAASUVORK5CYII="},"349c":function(t,e,n){var r=n("2774"),i=n("bd71"),o=n("9887"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},"34af":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n("1183"),o=n("138f"),s=n("3a5e"),a=function(t){function e(e,n){void 0===e&&(e=""),void 0===n&&(n={});var r=t.call(this)||this;return r._align=new i.Vector2,r._font=n.font||"30px Arial",r._fillStyle=n.fillStyle||"#FFFFFF",r._shadowColor=n.shadowColor||"rgba(0, 0, 0, 0)",r._shadowBlur=n.shadowBlur||0,r._shadowOffsetX=n.shadowOffsetX||0,r._shadowOffsetY=n.shadowOffsetY||0,r._lineHeight=n.lineHeight||1.2,r._backgroundColor=n.backgroundColor||"transparent",r._horizontalPadding=n.horizontalPadding||0,r._verticalPadding=n.verticalPadding||0,r.canvas=new s.CanvasText,r.align=n.align||o.textAlign.center,r.side=n.side||i.DoubleSide,r.antialias=void 0===n.antialias||n.antialias,r.text=e,r}return r(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.textWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.textHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text!==t&&(this._text=t,this.updateText())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this._font},set:function(t){this._font!==t&&(this._font=t,this.updateText())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(t){this._fillStyle!==t&&(this._fillStyle=t,this.updateText())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align.copy(t)},enumerable:!0,configurable:!0}),e.prototype.cleanUp=function(){this.texture&&this.texture.dispose()},e.prototype.applyAntiAlias=function(){!1===this.antialias&&(this.texture.magFilter=i.NearestFilter,this.texture.minFilter=i.LinearMipMapLinearFilter)},e}(i.Object3D);e.Text2D=a},"350d":function(t,e,n){var r=n("8cc2");t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},3552:function(t,e){t.exports={name:"memoryStorage",read:function(t){return n[t]},write:function(t,e){n[t]=e},each:function(t){for(var e in n)n.hasOwnProperty(e)&&t(n[e],e)},remove:function(t){delete n[t]},clearAll:function(t){n={}}};var n={}},3560:function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),s=r[0],a=r[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(h(t,a,a+s>c?c:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function h(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(u(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},3734:function(t,e,n){var r=n("bd71"),i=n("065f"),o=n("11b2"),s=n("58bc"),a=n("0152").CONFIGURABLE,c=n("1e74"),l=n("fbfa"),u=l.enforce,h=l.get,d=Object.defineProperty,f=s&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),f&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=u(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return i(this)&&h(this).source||c(this)}),"toString")},3772:function(t,e,n){"use strict";var r=n("bd71");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},"37b0":function(t,e){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"3a40":function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t,e,n,r){for(var i=1;i<arguments.length;i++)a(Object(arguments[i]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=s(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var a=s(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(a))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function s(t,e){return Array.prototype.slice.call(t,e||0)}function a(t,e){c(t,(function(t,n){return e(t,n),!1}))}function c(t,e){if(l(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function l(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:s,each:a,map:function(t,e){var n=l(t)?[]:{};return c(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:c,isList:l,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n("2409"))},"3a5e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("1183"),i=n("138f"),o=function(){function t(){this.textWidth=null,this.textHeight=null,this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d")}return Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},enumerable:!0,configurable:!0}),t.prototype.drawText=function(t,e){var n=this;this.ctx.font=e.font;var o=i.getFontHeight(e.font),s=(t||"").toString().split("\n");this.textWidth=Math.max.apply(null,s.map((function(t){return Math.ceil(n.ctx.measureText(t).width)}))),this.textHeight=o+o*e.lineHeight*(s.length-1),this.canvas.width=Math.max(2,r.Math.ceilPowerOfTwo(this.textWidth+2*e.horizontalPadding)),this.canvas.height=Math.max(2,r.Math.ceilPowerOfTwo(this.textHeight+2*e.verticalPadding)),this.ctx.font=e.font,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),e.backgroundColor&&(this.ctx.fillStyle=e.backgroundColor,this.ctx.fillRect(0,0,this.textWidth+2*e.horizontalPadding,this.textHeight+2*e.verticalPadding)),this.ctx.fillStyle=e.fillStyle,1===e.align.x?this.ctx.textAlign="left":0===e.align.x?this.ctx.textAlign="center":this.ctx.textAlign="right",this.ctx.textBaseline="top",this.ctx.shadowColor=e.shadowColor,this.ctx.shadowBlur=e.shadowBlur,this.ctx.shadowOffsetX=e.shadowOffsetX,this.ctx.shadowOffsetY=e.shadowOffsetY;for(var a=this.textWidth*(.5-.5*e.align.x),c=.5*(o*e.lineHeight-o),l=0;l<s.length;l++)this.ctx.fillText(s[l],a+e.horizontalPadding,o*e.lineHeight*l+e.verticalPadding+c);return this.canvas},t}();e.CanvasText=o},"3ac5":function(t,e,n){var r=n("3a40").Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(!a){var n=l(t);s((function(t){t.setAttribute(n,e),t.save(i)}))}},read:function(t){if(!a){var e=l(t),n=null;return s((function(t){n=t.getAttribute(e)})),n}},each:function(t){s((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=l(t);s((function(t){t.removeAttribute(e),t.save(i)}))},clearAll:function(){s((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(i);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(i)}))}};var i="storejs",o=r.document,s=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=o.createElement("div"),t=o.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(i),e.apply(this,r),t.removeChild(n)}}(),a=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),c=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function l(t){return t.replace(/^\d/,"___$&").replace(c,"___")}},"3b21":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n("f7eb"),i=n("1183");function o(t,e,n={}){return void 0===n[t]&&(n[t]=e.distanceToVector3(t,t).x),n[t]}function s(t=[]){let e=0,n=0;const i=t.length;for(let o=0;o<i;o++){const{coordinate:i,lnglat:s,lnglats:a,xy:c,xys:l}=t[o],u=i||s||a||c||l||t[o];let h,d;Array.isArray(u)?(h=u[0],d=u[1]):u instanceof r.Coordinate&&(h=u.x,d=u.y),e+=h,n+=d}return new r.Coordinate(e/i,n/i)}function a(t,e,n,r){if(void 0===e||"number"!=typeof e||0===e)return 0;let o;o=t instanceof i.BufferGeometry?t.attributes.position.array:Array.isArray(t)?t:t.position;let s=0;if(o){r?(void 0===r[e]&&(r[e]=n.distanceToVector3(e,e).x),s=r[e]):s=n.distanceToVector3(e,e).x;const t=o.length;if(o[0]instanceof i.Vector3)for(let e=0;e<t;e++)o[e].z+=s;else for(let e=0;e<t;e+=3)o[e+2]+=s}return s}function c(t){const e=t.length;let n=0;for(let r=0;r<e;r++){const{count:e}=t[r].position;n+=e}return new Float32Array(3*n)}},"3b56":function(t,e,n){"use strict";(function(t,r,i){n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p}));var o=null;try{var s="function"==typeof t.require&&n(!function(){var t=new Error("Cannot find module 'worker_threads'");throw t.code="MODULE_NOT_FOUND",t}())||__webpack_require__(!function(){var t=new Error("Cannot find module 'worker_threads'");throw t.code="MODULE_NOT_FOUND",t}())||n(!function(){var t=new Error("Cannot find module 'worker_threads'");throw t.code="MODULE_NOT_FOUND",t}());o=s.Worker}catch(t){}function a(t,e){return r.from(t,"base64").toString(e?"utf16":"utf8")}function c(t,e,n){var r=void 0===e?null:e,i=function(t,e){var n=atob(t);if(e){for(var r=new Uint8Array(n.length),i=0,o=n.length;i<o;++i)r[i]=n.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(t,void 0!==n&&n),o=i.indexOf("\n",10)+1,s=i.substring(o)+(r?"//# sourceMappingURL="+r:""),a=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(a)}var l="[object process]"===Object.prototype.toString.call(void 0!==i?i:0),u=function(t,e,n){return l?function(t,e,n){var r=void 0===e?null:e,i=a(t,void 0!==n&&n),s=i.indexOf("\n",10)+1,c=i.substring(s)+(r?"//# sourceMappingURL="+r:"");return function(t){return new o(c,Object.assign({},t,{eval:!0}))}}(t,e,n):function(t,e,n){var r;return function(i){return r=r||c(t,e,n),new Worker(r,i)}}(t,e,n)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgZnVuY3Rpb24gY2FsY01pbk1heChhcnJheSkgewogICAgbGV0IG1pbiA9IEluZmluaXR5OwogICAgbGV0IG1heCA9IEluZmluaXR5OwogICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcnJheS5sZW5ndGg7IGkrKykgewogICAgICBjb25zdCB2YWwgPSBhcnJheVtpXTsKICAgICAgaWYgKG1pbiA9PT0gSW5maW5pdHkpIHsKICAgICAgICBtaW4gPSB2YWw7CiAgICAgIH0gZWxzZSBpZiAobWF4ID09PSBJbmZpbml0eSkgewogICAgICAgIG1heCA9IHZhbDsKICAgICAgICBtaW4gPSBNYXRoLm1pbihtaW4sIG1heCk7CiAgICAgICAgbWF4ID0gTWF0aC5tYXgobWluLCBtYXgpOwogICAgICB9IGVsc2UgewogICAgICAgIG1pbiA9IE1hdGgubWluKHZhbCwgbWluKTsKICAgICAgICBtYXggPSBNYXRoLm1heCh2YWwsIG1heCk7CiAgICAgIH0KICAgIH0KICAgIHJldHVybiBbbWluLCBtYXhdOwogIH0KCiAgY29uc3QgY3R4ID0gc2VsZjsKICBjdHguYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsIGFzeW5jICh7IGRhdGE6IHBheWxvYWQgfSkgPT4gewogICAgY29uc3QgcmVuZGVyRm9ybSA9IHBheWxvYWRbMF07CiAgICBpZiAocmVuZGVyRm9ybSA9PT0gInJnIikgewogICAgICBjb25zdCB1RGF0YSA9IHBheWxvYWRbMV07CiAgICAgIGNvbnN0IHZEYXRhID0gcGF5bG9hZFsyXTsKICAgICAgY29uc3QgW3VNaW4sIHVNYXhdID0gY2FsY01pbk1heCh1RGF0YSk7CiAgICAgIGNvbnN0IFt2TWluLCB2TWF4XSA9IGNhbGNNaW5NYXgodkRhdGEpOwogICAgICBjb25zdCB2ZWxvY2l0eURhdGEgPSBuZXcgVWludDhBcnJheSh1RGF0YS5sZW5ndGggKiA0KTsKICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB1RGF0YS5sZW5ndGg7IGkrKykgewogICAgICAgIGNvbnN0IHIgPSAyNTUgKiAodURhdGFbaV0gLSB1TWluKSAvICh1TWF4IC0gdU1pbik7CiAgICAgICAgY29uc3QgZyA9IDI1NSAqICh2RGF0YVtpXSAtIHZNaW4pIC8gKHZNYXggLSB2TWluKTsKICAgICAgICB2ZWxvY2l0eURhdGEuc2V0KFtyLCBnLCAwLCAyNTVdLCBpICogNCk7CiAgICAgIH0KICAgICAgY3R4LnBvc3RNZXNzYWdlKFt2ZWxvY2l0eURhdGEuYnVmZmVyLCB1TWluLCB1TWF4LCB2TWluLCB2TWF4XSwgW3ZlbG9jaXR5RGF0YS5idWZmZXJdKTsKICAgIH0gZWxzZSB7CiAgICAgIGNvbnN0IHNpbmdsZURhdGEgPSBwYXlsb2FkWzFdOwogICAgICBjb25zdCBbbWluLCBtYXhdID0gY2FsY01pbk1heChzaW5nbGVEYXRhKTsKICAgICAgY29uc3QgdmVsb2NpdHlEYXRhID0gbmV3IFVpbnQ4QXJyYXkoc2luZ2xlRGF0YS5sZW5ndGggKiA0KTsKICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBzaW5nbGVEYXRhLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgY29uc3QgciA9IDI1NSAqIChzaW5nbGVEYXRhW2ldIC0gbWluKSAvIChtYXggLSBtaW4pOwogICAgICAgIHZlbG9jaXR5RGF0YS5zZXQoW3IsIDAsIDAsIDI1NV0sIGkgKiA0KTsKICAgICAgfQogICAgICBjdHgucG9zdE1lc3NhZ2UoW3ZlbG9jaXR5RGF0YS5idWZmZXIsIG1pbiwgbWF4XSwgW3ZlbG9jaXR5RGF0YS5idWZmZXJdKTsKICAgIH0KICB9KTsKCn0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPURhdGFQcm9jZXNzZS5qcy5tYXAKCg==","data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0YVByb2Nlc3NlLmpzIiwic291cmNlcyI6WyJ3b3JrZXI6Ly93ZWItd29ya2VyL3V0aWxzL2NvbW1vbi50cyIsIndvcmtlcjovL3dlYi13b3JrZXIvd29ya2Vycy9EYXRhUHJvY2Vzc2UudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGNhbGNNaW5NYXgoYXJyYXk6IG51bWJlcltdKTogW251bWJlciwgbnVtYmVyXSB7XG4gIGxldCBtaW4gPSBJbmZpbml0eTtcbiAgbGV0IG1heCA9IEluZmluaXR5O1xuICAvLyBAZnJvbTogaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMTM1NDQ0NzYvaG93LXRvLWZpbmQtbWF4LWFuZC1taW4taW4tYXJyYXktdXNpbmctbWluaW11bS1jb21wYXJpc29uc1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGFycmF5Lmxlbmd0aDsgaSsrKSB7XG4gICAgY29uc3QgdmFsID0gYXJyYXlbaV07XG5cbiAgICBpZiAobWluID09PSBJbmZpbml0eSkge1xuICAgICAgbWluID0gdmFsO1xuICAgIH0gZWxzZSBpZiAobWF4ID09PSBJbmZpbml0eSkge1xuICAgICAgbWF4ID0gdmFsO1xuICAgICAgLy8gdXBkYXRlIG1pbiBtYXhcbiAgICAgIC8vIDEuIFBpY2sgMiBlbGVtZW50cyhhLCBiKSwgY29tcGFyZSB0aGVtLiAoc2F5IGEgPiBiKVxuICAgICAgbWluID0gTWF0aC5taW4obWluLCBtYXgpO1xuICAgICAgbWF4ID0gTWF0aC5tYXgobWluLCBtYXgpO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyAyLiBVcGRhdGUgbWluIGJ5IGNvbXBhcmluZyAobWluLCBiKVxuICAgICAgLy8gMy4gVXBkYXRlIG1heCBieSBjb21wYXJpbmcgKG1heCwgYSlcbiAgICAgIG1pbiA9IE1hdGgubWluKHZhbCwgbWluKTtcbiAgICAgIG1heCA9IE1hdGgubWF4KHZhbCwgbWF4KTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIFttaW4sIG1heF07XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc051bWJlcih2YWw6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gdHlwZW9mIHZhbCA9PT0gJ251bWJlcicgJiYgIWlzTmFOKHZhbCk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1ZhbGlkZSh2YWw6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gdmFsICE9PSB1bmRlZmluZWQgJiYgdmFsICE9PSBudWxsICYmICFpc05hTih2YWwpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZmluZFN0b3BMZXNzVGhhbk9yRXF1YWxUbyhzdG9wczogbnVtYmVyW10sIGlucHV0OiBudW1iZXIpIHtcbiAgY29uc3QgbGFzdEluZGV4ID0gc3RvcHMubGVuZ3RoIC0gMTtcbiAgbGV0IGxvd2VySW5kZXggPSAwO1xuICBsZXQgdXBwZXJJbmRleCA9IGxhc3RJbmRleDtcbiAgbGV0IGN1cnJlbnRJbmRleCA9IDA7XG4gIGxldCBjdXJyZW50VmFsdWU7XG4gIGxldCBuZXh0VmFsdWU7XG5cbiAgd2hpbGUgKGxvd2VySW5kZXggPD0gdXBwZXJJbmRleCkge1xuICAgIGN1cnJlbnRJbmRleCA9IE1hdGguZmxvb3IoKGxvd2VySW5kZXggKyB1cHBlckluZGV4KSAvIDIpO1xuICAgIGN1cnJlbnRWYWx1ZSA9IHN0b3BzW2N1cnJlbnRJbmRleF07XG4gICAgbmV4dFZhbHVlID0gc3RvcHNbY3VycmVudEluZGV4ICsgMV07XG5cbiAgICBpZiAoY3VycmVudFZhbHVlIDw9IGlucHV0KSB7XG4gICAgICBpZiAoY3VycmVudEluZGV4ID09PSBsYXN0SW5kZXggfHwgaW5wdXQgPCBuZXh0VmFsdWUpIHtcbiAgICAgICAgLy8gU2VhcmNoIGNvbXBsZXRlXG4gICAgICAgIHJldHVybiBjdXJyZW50SW5kZXg7XG4gICAgICB9XG5cbiAgICAgIGxvd2VySW5kZXggPSBjdXJyZW50SW5kZXggKyAxO1xuICAgIH0gZWxzZSBpZiAoY3VycmVudFZhbHVlID4gaW5wdXQpIHtcbiAgICAgIHVwcGVySW5kZXggPSBjdXJyZW50SW5kZXggLSAxO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ0lucHV0IGlzIG5vdCBhIG51bWJlci4nKTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gMDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGZwNjRMb3dQYXJ0KHg6IG51bWJlcikge1xuICByZXR1cm4geCAtIE1hdGguZnJvdW5kKHgpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gbWF0NEludmVydChvdXQ6IG51bWJlcltdLCBhOiBudW1iZXJbXSkge1xuICBjb25zdCBhMDAgPSBhWzBdO1xuICBjb25zdCBhMDEgPSBhWzFdO1xuICBjb25zdCBhMDIgPSBhWzJdO1xuICBjb25zdCBhMDMgPSBhWzNdO1xuICBjb25zdCBhMTAgPSBhWzRdO1xuICBjb25zdCBhMTEgPSBhWzVdO1xuICBjb25zdCBhMTIgPSBhWzZdO1xuICBjb25zdCBhMTMgPSBhWzddO1xuICBjb25zdCBhMjAgPSBhWzhdO1xuICBjb25zdCBhMjEgPSBhWzldO1xuICBjb25zdCBhMjIgPSBhWzEwXTtcbiAgY29uc3QgYTIzID0gYVsxMV07XG4gIGNvbnN0IGEzMCA9IGFbMTJdO1xuICBjb25zdCBhMzEgPSBhWzEzXTtcbiAgY29uc3QgYTMyID0gYVsxNF07XG4gIGNvbnN0IGEzMyA9IGFbMTVdO1xuXG4gIGNvbnN0IGIwMCA9IGEwMCAqIGExMSAtIGEwMSAqIGExMDtcbiAgY29uc3QgYjAxID0gYTAwICogYTEyIC0gYTAyICogYTEwO1xuICBjb25zdCBiMDIgPSBhMDAgKiBhMTMgLSBhMDMgKiBhMTA7XG4gIGNvbnN0IGIwMyA9IGEwMSAqIGExMiAtIGEwMiAqIGExMTtcbiAgY29uc3QgYjA0ID0gYTAxICogYTEzIC0gYTAzICogYTExO1xuICBjb25zdCBiMDUgPSBhMDIgKiBhMTMgLSBhMDMgKiBhMTI7XG4gIGNvbnN0IGIwNiA9IGEyMCAqIGEzMSAtIGEyMSAqIGEzMDtcbiAgY29uc3QgYjA3ID0gYTIwICogYTMyIC0gYTIyICogYTMwO1xuICBjb25zdCBiMDggPSBhMjAgKiBhMzMgLSBhMjMgKiBhMzA7XG4gIGNvbnN0IGIwOSA9IGEyMSAqIGEzMiAtIGEyMiAqIGEzMTtcbiAgY29uc3QgYjEwID0gYTIxICogYTMzIC0gYTIzICogYTMxO1xuICBjb25zdCBiMTEgPSBhMjIgKiBhMzMgLSBhMjMgKiBhMzI7XG5cbiAgLy8gQ2FsY3VsYXRlIHRoZSBkZXRlcm1pbmFudFxuICBsZXQgZGV0ID1cbiAgICBiMDAgKiBiMTEgLSBiMDEgKiBiMTAgKyBiMDIgKiBiMDkgKyBiMDMgKiBiMDggLSBiMDQgKiBiMDcgKyBiMDUgKiBiMDY7XG5cbiAgaWYgKCFkZXQpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuICBkZXQgPSAxLjAgLyBkZXQ7XG5cbiAgb3V0WzBdID0gKGExMSAqIGIxMSAtIGExMiAqIGIxMCArIGExMyAqIGIwOSkgKiBkZXQ7XG4gIG91dFsxXSA9IChhMDIgKiBiMTAgLSBhMDEgKiBiMTEgLSBhMDMgKiBiMDkpICogZGV0O1xuICBvdXRbMl0gPSAoYTMxICogYjA1IC0gYTMyICogYjA0ICsgYTMzICogYjAzKSAqIGRldDtcbiAgb3V0WzNdID0gKGEyMiAqIGIwNCAtIGEyMSAqIGIwNSAtIGEyMyAqIGIwMykgKiBkZXQ7XG4gIG91dFs0XSA9IChhMTIgKiBiMDggLSBhMTAgKiBiMTEgLSBhMTMgKiBiMDcpICogZGV0O1xuICBvdXRbNV0gPSAoYTAwICogYjExIC0gYTAyICogYjA4ICsgYTAzICogYjA3KSAqIGRldDtcbiAgb3V0WzZdID0gKGEzMiAqIGIwMiAtIGEzMCAqIGIwNSAtIGEzMyAqIGIwMSkgKiBkZXQ7XG4gIG91dFs3XSA9IChhMjAgKiBiMDUgLSBhMjIgKiBiMDIgKyBhMjMgKiBiMDEpICogZGV0O1xuICBvdXRbOF0gPSAoYTEwICogYjEwIC0gYTExICogYjA4ICsgYTEzICogYjA2KSAqIGRldDtcbiAgb3V0WzldID0gKGEwMSAqIGIwOCAtIGEwMCAqIGIxMCAtIGEwMyAqIGIwNikgKiBkZXQ7XG4gIG91dFsxMF0gPSAoYTMwICogYjA0IC0gYTMxICogYjAyICsgYTMzICogYjAwKSAqIGRldDtcbiAgb3V0WzExXSA9IChhMjEgKiBiMDIgLSBhMjAgKiBiMDQgLSBhMjMgKiBiMDApICogZGV0O1xuICBvdXRbMTJdID0gKGExMSAqIGIwNyAtIGExMCAqIGIwOSAtIGExMiAqIGIwNikgKiBkZXQ7XG4gIG91dFsxM10gPSAoYTAwICogYjA5IC0gYTAxICogYjA3ICsgYTAyICogYjA2KSAqIGRldDtcbiAgb3V0WzE0XSA9IChhMzEgKiBiMDEgLSBhMzAgKiBiMDMgLSBhMzIgKiBiMDApICogZGV0O1xuICBvdXRbMTVdID0gKGEyMCAqIGIwMyAtIGEyMSAqIGIwMSArIGEyMiAqIGIwMCkgKiBkZXQ7XG5cbiAgcmV0dXJuIG91dDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHRyYW5zZm9ybU1hdDQob3V0OiBudW1iZXJbXSwgYTogbnVtYmVyW10sIG06IG51bWJlcltdKSB7XG4gIGNvbnN0IHggPSBhWzBdO1xuICBjb25zdCB5ID0gYVsxXTtcbiAgY29uc3QgeiA9IGFbMl07XG4gIGNvbnN0IHcgPSBhWzNdO1xuICBvdXRbMF0gPSBtWzBdICogeCArIG1bNF0gKiB5ICsgbVs4XSAqIHogKyBtWzEyXSAqIHc7IC8vIDBcbiAgb3V0WzFdID0gbVsxXSAqIHggKyBtWzVdICogeSArIG1bOV0gKiB6ICsgbVsxM10gKiB3OyAvLyAwXG4gIG91dFsyXSA9IG1bMl0gKiB4ICsgbVs2XSAqIHkgKyBtWzEwXSAqIHogKyBtWzE0XSAqIHc7IC8vIDBcbiAgb3V0WzNdID0gbVszXSAqIHggKyBtWzddICogeSArIG1bMTFdICogeiArIG1bMTVdICogdzsgLy8gMVxuICByZXR1cm4gb3V0O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0RXllKG1hdHJpeDogbnVtYmVyW10pIHtcbiAgY29uc3QgZGVmYXVsdE1hdDQgPSBbMSwgMCwgMCwgMCwgMCwgMSwgMCwgMCwgMCwgMCwgMSwgMCwgMCwgMCwgMCwgMV07IC8vIGluc3RlZCBvZiBtYXQ0LmNyZWF0ZSgpXG4gIGxldCBleWUgPSB0cmFuc2Zvcm1NYXQ0KFxuICAgIFtdLFxuICAgIFswLCAwLCAwLCAxXSxcbiAgICBtYXQ0SW52ZXJ0KGRlZmF1bHRNYXQ0LCBtYXRyaXgpIGFzIG51bWJlcltdLFxuICApO1xuICBjb25zdCBjbGlwVyA9IDEuMCAvIGV5ZVszXTtcbiAgZXllID0gZXllLm1hcCgoaXRlbTogbnVtYmVyKSA9PiBpdGVtIC8gZXllWzNdKTtcbiAgZXllWzNdID0gY2xpcFc7XG4gIHJldHVybiBleWU7XG59XG4iLCJpbXBvcnQgeyBjYWxjTWluTWF4IH0gZnJvbSAnLi4vdXRpbHMvY29tbW9uJztcblxuY29uc3QgY3R4OiBXb3JrZXIgPSBzZWxmIGFzIGFueTtcblxuY3R4LmFkZEV2ZW50TGlzdGVuZXIoJ21lc3NhZ2UnLCBhc3luYyAoeyBkYXRhOiBwYXlsb2FkIH0pID0+IHtcbiAgY29uc3QgcmVuZGVyRm9ybSA9IHBheWxvYWRbMF07XG4gIGlmIChyZW5kZXJGb3JtID09PSAncmcnKSB7XG4gICAgY29uc3QgdURhdGEgPSBwYXlsb2FkWzFdO1xuICAgIGNvbnN0IHZEYXRhID0gcGF5bG9hZFsyXTtcbiAgICBjb25zdCBbdU1pbiwgdU1heF0gPSBjYWxjTWluTWF4KHVEYXRhKTtcbiAgICBjb25zdCBbdk1pbiwgdk1heF0gPSBjYWxjTWluTWF4KHZEYXRhKTtcbiAgICBjb25zdCB2ZWxvY2l0eURhdGEgPSBuZXcgVWludDhBcnJheSh1RGF0YS5sZW5ndGggKiA0KTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IHVEYXRhLmxlbmd0aDsgaSsrKSB7XG4gICAgICBjb25zdCByID0gMjU1ICogKHVEYXRhW2ldIC0gdU1pbikgLyAodU1heCAtIHVNaW4pO1xuICAgICAgY29uc3QgZyA9IDI1NSAqICh2RGF0YVtpXSAtIHZNaW4pIC8gKHZNYXggLSB2TWluKTtcbiAgICAgIHZlbG9jaXR5RGF0YS5zZXQoW3IsIGcsIDAsIDI1NV0sIGkgKiA0KTtcbiAgICB9XG5cbiAgICBjdHgucG9zdE1lc3NhZ2UoW3ZlbG9jaXR5RGF0YS5idWZmZXIsIHVNaW4sIHVNYXgsIHZNaW4sIHZNYXhdLCBbdmVsb2NpdHlEYXRhLmJ1ZmZlcl0pO1xuICB9IGVsc2Uge1xuICAgIGNvbnN0IHNpbmdsZURhdGEgPSBwYXlsb2FkWzFdO1xuICAgIGNvbnN0IFttaW4sIG1heF0gPSBjYWxjTWluTWF4KHNpbmdsZURhdGEpO1xuICAgIGNvbnN0IHZlbG9jaXR5RGF0YSA9IG5ldyBVaW50OEFycmF5KHNpbmdsZURhdGEubGVuZ3RoICogNCk7XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBzaW5nbGVEYXRhLmxlbmd0aDsgaSsrKSB7XG4gICAgICBjb25zdCByID0gMjU1ICogKHNpbmdsZURhdGFbaV0gLSBtaW4pIC8gKG1heCAtIG1pbik7XG4gICAgICB2ZWxvY2l0eURhdGEuc2V0KFtyLCAwLCAwLCAyNTVdLCBpICogNCk7XG4gICAgfVxuXG4gICAgY3R4LnBvc3RNZXNzYWdlKFt2ZWxvY2l0eURhdGEuYnVmZmVyLCBtaW4sIG1heF0sIFt2ZWxvY2l0eURhdGEuYnVmZmVyXSk7XG4gIH1cbn0pO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztFQUFPLFNBQVMsV0FBVyxLQUFtQyxFQUFBO0VBQzVELEVBQUEsSUFBSSxHQUFNLEdBQUEsUUFBQSxDQUFBO0VBQ1YsRUFBQSxJQUFJLEdBQU0sR0FBQSxRQUFBLENBQUE7RUFFVixFQUFBLEtBQUEsSUFBUyxDQUFJLEdBQUEsQ0FBQSxFQUFHLENBQUksR0FBQSxLQUFBLENBQU0sUUFBUSxDQUFLLEVBQUEsRUFBQTtFQUNyQyxJQUFBLE1BQU0sTUFBTSxLQUFNLENBQUEsQ0FBQSxDQUFBLENBQUE7RUFFbEIsSUFBQSxJQUFJLFFBQVEsUUFBVSxFQUFBO0VBQ3BCLE1BQU0sR0FBQSxHQUFBLEdBQUEsQ0FBQTtFQUFBLEtBQ1IsTUFBQSxJQUFXLFFBQVEsUUFBVSxFQUFBO0VBQzNCLE1BQU0sR0FBQSxHQUFBLEdBQUEsQ0FBQTtFQUdOLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQ3ZCLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQUEsS0FDbEIsTUFBQTtFQUdMLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQ3ZCLE1BQU0sR0FBQSxHQUFBLElBQUEsQ0FBSyxHQUFJLENBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBQSxDQUFBO0VBQUEsS0FDekI7RUFBQSxHQUNGO0VBQ0EsRUFBTyxPQUFBLENBQUMsS0FBSyxHQUFHLENBQUEsQ0FBQTtFQUNsQjs7RUNyQkEsTUFBTSxHQUFjLEdBQUEsSUFBQSxDQUFBO0VBRXBCLEdBQUEsQ0FBSSxpQkFBaUIsU0FBVyxFQUFBLE9BQU8sRUFBRSxJQUFBLEVBQU0sU0FBYyxLQUFBO0VBQzNELEVBQUEsTUFBTSxhQUFhLE9BQVEsQ0FBQSxDQUFBLENBQUEsQ0FBQTtFQUMzQixFQUFBLElBQUksZUFBZSxJQUFNLEVBQUE7RUFDdkIsSUFBQSxNQUFNLFFBQVEsT0FBUSxDQUFBLENBQUEsQ0FBQSxDQUFBO0VBQ3RCLElBQUEsTUFBTSxRQUFRLE9BQVEsQ0FBQSxDQUFBLENBQUEsQ0FBQTtFQUN0QixJQUFBLE1BQU0sQ0FBQyxJQUFBLEVBQU0sSUFBSSxDQUFBLEdBQUksV0FBVyxLQUFLLENBQUEsQ0FBQTtFQUNyQyxJQUFBLE1BQU0sQ0FBQyxJQUFBLEVBQU0sSUFBSSxDQUFBLEdBQUksV0FBVyxLQUFLLENBQUEsQ0FBQTtFQUNyQyxJQUFBLE1BQU0sWUFBZSxHQUFBLElBQUksVUFBVyxDQUFBLEtBQUEsQ0FBTSxTQUFTLENBQUMsQ0FBQSxDQUFBO0VBQ3BELElBQUEsS0FBQSxJQUFTLENBQUksR0FBQSxDQUFBLEVBQUcsQ0FBSSxHQUFBLEtBQUEsQ0FBTSxRQUFRLENBQUssRUFBQSxFQUFBO0VBQ3JDLE1BQUEsTUFBTSxDQUFJLEdBQUEsR0FBQSxJQUFPLEtBQU0sQ0FBQSxDQUFBLENBQUEsR0FBSyxTQUFTLElBQU8sR0FBQSxJQUFBLENBQUEsQ0FBQTtFQUM1QyxNQUFBLE1BQU0sQ0FBSSxHQUFBLEdBQUEsSUFBTyxLQUFNLENBQUEsQ0FBQSxDQUFBLEdBQUssU0FBUyxJQUFPLEdBQUEsSUFBQSxDQUFBLENBQUE7RUFDNUMsTUFBYSxZQUFBLENBQUEsR0FBQSxDQUFJLENBQUMsQ0FBRyxFQUFBLENBQUEsRUFBRyxHQUFHLEdBQUcsQ0FBQSxFQUFHLElBQUksQ0FBQyxDQUFBLENBQUE7RUFBQSxLQUN4QztFQUVBLElBQUEsR0FBQSxDQUFJLFdBQVksQ0FBQSxDQUFDLFlBQWEsQ0FBQSxNQUFBLEVBQVEsSUFBTSxFQUFBLElBQUEsRUFBTSxJQUFNLEVBQUEsSUFBSSxDQUFHLEVBQUEsQ0FBQyxZQUFhLENBQUEsTUFBTSxDQUFDLENBQUEsQ0FBQTtFQUFBLEdBQy9FLE1BQUE7RUFDTCxJQUFBLE1BQU0sYUFBYSxPQUFRLENBQUEsQ0FBQSxDQUFBLENBQUE7RUFDM0IsSUFBQSxNQUFNLENBQUMsR0FBQSxFQUFLLEdBQUcsQ0FBQSxHQUFJLFdBQVcsVUFBVSxDQUFBLENBQUE7RUFDeEMsSUFBQSxNQUFNLFlBQWUsR0FBQSxJQUFJLFVBQVcsQ0FBQSxVQUFBLENBQVcsU0FBUyxDQUFDLENBQUEsQ0FBQTtFQUN6RCxJQUFBLEtBQUEsSUFBUyxDQUFJLEdBQUEsQ0FBQSxFQUFHLENBQUksR0FBQSxVQUFBLENBQVcsUUFBUSxDQUFLLEVBQUEsRUFBQTtFQUMxQyxNQUFBLE1BQU0sQ0FBSSxHQUFBLEdBQUEsSUFBTyxVQUFXLENBQUEsQ0FBQSxDQUFBLEdBQUssUUFBUSxHQUFNLEdBQUEsR0FBQSxDQUFBLENBQUE7RUFDL0MsTUFBYSxZQUFBLENBQUEsR0FBQSxDQUFJLENBQUMsQ0FBRyxFQUFBLENBQUEsRUFBRyxHQUFHLEdBQUcsQ0FBQSxFQUFHLElBQUksQ0FBQyxDQUFBLENBQUE7RUFBQSxLQUN4QztFQUVBLElBQUksR0FBQSxDQUFBLFdBQUEsQ0FBWSxDQUFDLFlBQUEsQ0FBYSxNQUFRLEVBQUEsR0FBQSxFQUFLLEdBQUcsQ0FBRyxFQUFBLENBQUMsWUFBYSxDQUFBLE1BQU0sQ0FBQyxDQUFBLENBQUE7RUFBQSxHQUN4RTtFQUNGLENBQUMsQ0FBQTs7Ozs7OyJ9",!1);function h(t){return"number"==typeof t&&!isNaN(t)}function d(t){return t-Math.fround(t)}function f(t,e){if(!t)return!1;if(e=e||devicePixelRatio||1,t instanceof HTMLCanvasElement){const n=t.clientWidth*e,r=t.clientHeight*e;if(n<=0||r<=0)return!1;if(t.width!==n||t.height!==r)return t.width=n,t.height=r,!0}return!1}function p(t,e={}){const n=["webgl","experimental-webgl"];let r=null;function i(t){console.error(t.statusMessage)}t.addEventListener("webglcontextcreationerror",i,!1);for(let i=0;i<n.length;++i){try{r=t.getContext(n[i],e)}catch(t){}if(r)break}return t.removeEventListener("webglcontextcreationerror",i,!1),r&&r.getExtension("OES_texture_float")?r:null}function m(t,e,n){const r=t.createShader(e);if(t.shaderSource(r,n),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS)){const e=t.getShaderInfoLog(r)||"";throw t.deleteShader(r),new Error(e)}return r}function g(t,e,n,r,i){const o=t.createTexture();return t.bindTexture(t.TEXTURE_2D,o),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),n instanceof Uint8Array?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,r,i,0,t.RGBA,t.UNSIGNED_BYTE,n):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.bindTexture(t.TEXTURE_2D,null),o}function v(t,e){const n=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,n),e&&t.bufferData(t.ARRAY_BUFFER,e,t.STATIC_DRAW),n}function y(t,e,n=1,r=0,i){const[o,s,a,c]=e;let l=0;t.clearColor(o,s,a,c),l|=t.COLOR_BUFFER_BIT,void 0!==n&&(t.clearDepth(n),l|=t.DEPTH_BUFFER_BIT),void 0!==r&&(t.clearStencil(0|r),l|=t.STENCIL_BUFFER_BIT),t.clear(l)}class _{constructor(t,e,n,r){this.vertShader="",this.fragShader="",e&&(this.vertShader=e),n&&(this.fragShader=n),this.program=function(t,e,n){const r=m(t,t.VERTEX_SHADER,e),i=m(t,t.FRAGMENT_SHADER,n),o=t.createProgram();if(null!==o&&(t.attachShader(o,r),t.attachShader(o,i),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)))throw new Error(t.getProgramInfoLog(o)||"");return o}(t,function(t,e={}){return Object.keys(e).map(n=>{e[n]&&(t=t.replace(new RegExp(n,"g"),e[n]+" \n"))}),t}(this.vertShader,r),this.fragShader),this.gl=t,this.textureUnit=0,this.uniformSetters=this.createUniformSetters(),this.attribSetters=this.createAttributeSetters(),this.transfromStack=[]}active(){return this.gl.useProgram(this.program),this}deactive(){return this.gl.deleteProgram(this.program),this}getBindPointForSamplerType(t,e){return e===t.SAMPLER_2D?t.TEXTURE_2D:e===t.SAMPLER_CUBE?t.TEXTURE_CUBE_MAP:void 0}createUniformSetter(t,e){const{gl:n}=this,r=n.getUniformLocation(t,e.name),i=e.type,o=e.size>1&&"[0]"===e.name.substr(-3);if(i===n.FLOAT&&o)return function(t){n.uniform1fv(r,t)};if(i===n.FLOAT)return function(t){n.uniform1f(r,t)};if(i===n.FLOAT_VEC2)return function(t){n.uniform2fv(r,t)};if(i===n.FLOAT_VEC3)return function(t){n.uniform3fv(r,t)};if(i===n.FLOAT_VEC4)return function(t){n.uniform4fv(r,t)};if(i===n.INT&&o)return function(t){n.uniform1iv(r,t)};if(i===n.INT)return function(t){n.uniform1i(r,t)};if(i===n.INT_VEC2)return function(t){n.uniform2iv(r,t)};if(i===n.INT_VEC3)return function(t){n.uniform3iv(r,t)};if(i===n.INT_VEC4)return function(t){n.uniform4iv(r,t)};if(i===n.BOOL)return function(t){n.uniform1iv(r,t)};if(i===n.BOOL_VEC2)return function(t){n.uniform2iv(r,t)};if(i===n.BOOL_VEC3)return function(t){n.uniform3iv(r,t)};if(i===n.BOOL_VEC4)return function(t){n.uniform4iv(r,t)};if(i===n.FLOAT_MAT2)return function(t){n.uniformMatrix2fv(r,!1,t)};if(i===n.FLOAT_MAT3)return function(t){n.uniformMatrix3fv(r,!1,t)};if(i===n.FLOAT_MAT4)return function(t){n.uniformMatrix4fv(r,!1,t)};if((i===n.SAMPLER_2D||i===n.SAMPLER_CUBE)&&o){const t=[];for(let n=0;n<e.size;++n)t.push(this.textureUnit++);return function(t,e){return function(i){n.uniform1iv(r,e),i.forEach((function(r,i){n.activeTexture(n.TEXTURE0+e[i]),void 0!==t&&n.bindTexture(t,r)}))}}(this.getBindPointForSamplerType(n,i),t)}if(i===n.SAMPLER_2D||i===n.SAMPLER_CUBE)return function(t,e){return function(i){n.uniform1i(r,e),n.activeTexture(n.TEXTURE0+e),void 0!==t&&n.bindTexture(t,i)}}(this.getBindPointForSamplerType(n,i),this.textureUnit++);throw new Error("unknown type: 0x"+i.toString(16))}createUniformSetters(){const{gl:t}=this;this.textureUnit=0;const e={};if(null!==this.program){const n=t.getProgramParameter(this.program,t.ACTIVE_UNIFORMS);for(let r=0;r<n;++r){const n=t.getActiveUniform(this.program,r);if(!n)break;let i=n.name;"[0]"===i.substr(-3)&&(i=i.substr(0,i.length-3));const o=this.createUniformSetter(this.program,n);e[i]=o}}return e}createAttribSetter(t){const{gl:e}=this;return function(n){e.bindBuffer(e.ARRAY_BUFFER,n.buffer),e.enableVertexAttribArray(t),void 0===n.numComponents&&void 0===n.size||e.vertexAttribPointer(t,n.numComponents||n.size,n.type||e.FLOAT,n.normalize||!1,n.stride||0,n.offset||0)}}createAttributeSetters(){const{gl:t}=this,e={};if(null!==this.program){const n=t.getProgramParameter(this.program,t.ACTIVE_ATTRIBUTES);for(let r=0;r<n;++r){const n=t.getActiveAttrib(this.program,r);if(!n)break;const i=t.getAttribLocation(this.program,n.name);e[n.name]=this.createAttribSetter(i)}}return e}setAttributes(t,e){return e=e?e.attribSetters||e:this.attribSetters,Object.keys(t).forEach((function(n){const r=e[n];r&&r(t[n])})),this}setUniforms(t,e){return e=e?e.uniformSetters||e:this.uniformSetters,Object.keys(t).forEach((function(n){const r=e[n];r&&r(t[n])})),this}elements(t){return this.elementsBuffer||(this.elementsBuffer=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.elementsBuffer),t.data&&this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,t.data,t.usage||this.gl.STATIC_DRAW),void 0!==t.count&&this.runTimes(t.count),t.primitive&&this.setPrimitive(t.primitive),this}clear(t){return y(this.gl,t),this.transfromStack=[],this}runTimes(t){return this.count=t||0,this}setPrimitive(t){return this.primitive=t||this.gl.TRIANGLES,this}resize(t,e){return void 0===t||void 0===e?(f(this.gl.canvas),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height)):this.gl.viewport(0,0,t,e),this}draw(){throw new Error("should override")}translate(){throw new Error("should override")}rotate(){throw new Error("should override")}scale(){throw new Error("should override")}destroyed(){throw new Error("should override")}}var b="precision highp float;\n#define GLSLIFY 1\nuniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform vec2 u_image_res;uniform vec2 u_range;uniform vec2 u_color_range;uniform vec2 u_display_range;uniform float u_opacity;varying vec2 v_tex_pos;float calcTexture(const vec2 uv){return texture2D(u_image,uv).r;}float bilinear(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=calcTexture(vc);float tr=calcTexture(vc+vec2(px.x,0));float bl=calcTexture(vc+vec2(0,px.y));float br=calcTexture(vc+px);return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getValue(const vec2 uv){float min=u_range.x;float max=u_range.y;float r=bilinear(uv);return r*(max-min)+min;}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}void main(){vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=getValue(globalWGS84);float value_t=(value-u_color_range.x)/(u_color_range.y-u_color_range.x);vec2 ramp_pos=vec2(fract(16.0*value_t),floor(16.0*value_t)/16.0);vec4 color=texture2D(u_color_ramp,ramp_pos);bool display=value<u_display_range.y&&value>u_display_range.x;if(display){gl_FragColor=vec4(floor(255.0*color*u_opacity)/255.0);}else{gl_FragColor=vec4(0.0,0.0,0.0,0.0);}}",x="#define GLSLIFY 1\nattribute vec3 instancePositions;attribute vec3 instancePositions64Low;attribute vec2 a_texCoord;uniform mat4 u_matrix;uniform vec4 u_cameraEye;uniform vec4 u_cameraEye64Low;uniform float u_offset;uniform sampler2D u_image;uniform vec2 u_image_res;uniform vec2 u_range;uniform vec2 u_mapping_range;varying vec2 v_tex_pos;varying float v_value;float calcTexture(const vec2 uv){return texture2D(u_image,uv).r;}float bilinear(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=calcTexture(vc);float tr=calcTexture(vc+vec2(px.x,0));float bl=calcTexture(vc+vec2(0,px.y));float br=calcTexture(vc+px);return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getValue(const vec2 uv){float min=u_mapping_range.x;float max=u_mapping_range.y;float r=bilinear(uv);return r*(max-min)+min;}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}\n#modules-transformZ\nvoid main(){v_tex_pos=a_texCoord;vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=getValue(globalWGS84);float z=transformZ(value,instancePositions);vec4 pos=vec4(instancePositions-u_cameraEye.xyz,0.0);pos+=vec4(instancePositions64Low-u_cameraEye64Low.xyz,0.0);\n#modules-project\n}";class w extends _{constructor(t,e,n,r){super(t,e||x,n||b,r||{}),this.vertShader=x,this.fragShader=b}draw(){if(void 0!==this.checkExt){const t=this.primitive||this.gl.TRIANGLES;this.checkExt?this.gl.drawElements(t,this.count,this.gl.UNSIGNED_INT,0):this.gl.drawElements(t,this.count,this.gl.UNSIGNED_SHORT,0)}else this.checkExt=this.gl.getExtension("OES_element_index_uint");return this}translate(){return this}rotate(){return this}scale(){return this}}function S(t,e){const n=document.createElement("canvas"),r=n.getContext("2d");n.width=256,n.height=1;const{input:i}=function(t){if(Array.isArray(t)&&t.length>3){const e=t[0],n=t[1],r=[];for(let e=3;e<t.length;e+=2){const n=t[e],i=t[e+1];r.push({key:n,value:i})}return{operator:e,interpolation:{name:n[0],base:n[1]},input:r}}return console.warn("[wind-core]: style-parser style config invalid"),{}}(e);if(r&&i&&Array.isArray(i)){const e=i.map(t=>parseFloat(t.key)),n=[Math.min(...e),Math.max(...e)],[o,s]=[t[0]||n[0],t[1]||n[1]],a=r.createLinearGradient(0,0,256,0);for(let t=0;t<i.length;t+=1){const e=i[t].key,n=i[t].value;a.addColorStop((e-o)/(s-o),n)}return r.fillStyle=a,r.fillRect(0,0,256,1),{data:new Uint8Array(r.getImageData(0,0,256,1).data),colorRange:n}}return{}}function M(t,e,n,r){const i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}const A={};function C(t,e,n,r,i){const o=`${t}_${n}`,s=r[n];if(h(s))return A[o]&&delete A[o],s;if(s&&Array.isArray(s)&&(!A[o]||i)&&(A[o]=function(t){if(Array.isArray(t)&&t.length>3){const e=t[0],n=t[1],r=[];for(let e=3;e<t.length;e+=2){const n=t[e],i=t[e+1];r.push({key:n,value:i})}return{operator:e,interpolation:{name:n[0],base:n[1]},input:r}}return console.warn("[wind-core]: style-parser style config invalid"),{}}(s)),A[o]){const{input:t,interpolation:n}=A[o]||{};if(t&&Array.isArray(t)){const r=t.map(t=>t.key),i=t.map(t=>t.value);if(e<=r[0])return i[0];const o=r.length;if(e>=r[o-1])return i[o-1];const s=function(t,e){const n=t.length-1;let r,i,o=0,s=n,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),r=t[a],i=t[a+1],r<=e){if(a===n||e<i)return a;o=a+1}else{if(!(r>e))throw new Error("Input is not a number.");s=a-1}return 0}(r,e),a=r.length-1,c=function(t,e,n,r){let i=0;return"exponential"===t.name?i=M(e,t.base,n,r):"linear"===t.name?i=M(e,1,n,r):"cubic-bezier"===t.name&&console.warn("interpolationFactor"),i}(n,e,r[s],r[s>=a?a:s+1]);return function(t,e,n){return t*(1-n)+e*n}(i[s],i[s>=a?a:s+1],c)}return 1}return 1}var E="precision highp float;\n#define GLSLIFY 1\nuniform sampler2D u_wind;uniform sampler2D u_color_ramp;uniform vec2 u_image_res;uniform vec2 u_wind_min;uniform vec2 u_wind_max;uniform vec2 u_color_range;uniform vec2 u_display_range;uniform float u_opacity;varying vec2 v_tex_pos;vec2 windTexture(const vec2 uv){return texture2D(u_wind,uv).rg;}float bilinearU(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).r;float tr=windTexture(vc+vec2(px.x,0)).r;float bl=windTexture(vc+vec2(0,px.y)).r;float br=windTexture(vc+px).r;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float bilinearV(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).g;float tr=windTexture(vc+vec2(px.x,0.0)).g;float bl=windTexture(vc+vec2(0.0,px.y)).g;float br=windTexture(vc+px).g;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getV(const vec2 uv){float min=u_wind_min.y;float max=u_wind_max.y;float r=bilinearV(uv);return r*(max-min)+min;}float getU(const vec2 uv){float min=u_wind_min.x;float max=u_wind_max.x;float r=bilinearU(uv);return r*(max-min)+min;}float windSpeed(const vec2 uv){float u=getU(uv);float v=getV(uv);return length(vec2(u,v));}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}void main(){vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=windSpeed(globalWGS84);float value_t=(value-u_color_range.x)/(u_color_range.y-u_color_range.x);vec2 ramp_pos=vec2(fract(16.0*value_t),floor(16.0*value_t)/16.0);vec4 color=texture2D(u_color_ramp,ramp_pos);bool display=value<u_display_range.y&&value>u_display_range.x;if(display){gl_FragColor=vec4(floor(255.0*color*u_opacity)/255.0);}else{gl_FragColor=vec4(0.0,0.0,0.0,0.0);}}",T="#define GLSLIFY 1\nattribute vec3 instancePositions;attribute vec3 instancePositions64Low;attribute vec2 a_texCoord;uniform mat4 u_matrix;uniform vec4 u_cameraEye;uniform vec4 u_cameraEye64Low;uniform float u_offset;uniform sampler2D u_wind;uniform vec2 u_image_res;uniform vec2 u_wind_min;uniform vec2 u_wind_max;uniform vec2 u_mapping_range;varying vec2 v_tex_pos;varying float v_value;vec2 windTexture(const vec2 uv){return texture2D(u_wind,uv).rg;}float bilinearU(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).r;float tr=windTexture(vc+vec2(px.x,0)).r;float bl=windTexture(vc+vec2(0,px.y)).r;float br=windTexture(vc+px).r;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float bilinearV(const vec2 uv){vec2 px=1.0/u_image_res;vec2 vc=(floor(uv*u_image_res))*px;vec2 f=fract(uv*u_image_res);float tl=windTexture(vc).g;float tr=windTexture(vc+vec2(px.x,0.0)).g;float bl=windTexture(vc+vec2(0.0,px.y)).g;float br=windTexture(vc+px).g;return mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);}float getV(const vec2 uv){float min=u_wind_min.y;float max=u_wind_max.y;float r=bilinearV(uv);return r*(max-min)+min;}float getU(const vec2 uv){float min=u_wind_min.x;float max=u_wind_max.x;float r=bilinearU(uv);return r*(max-min)+min;}float windSpeed(const vec2 uv){float u=getU(uv);float v=getV(uv);float min=u_mapping_range.x;float max=u_mapping_range.y;float val=length(vec2(u,v));return val*(max-min)+min;}const float PI=3.14159265359;vec2 mercatorToWGS84(vec2 xy){float y=radians(180.0-xy.y*360.0);y=360.0/PI*atan(exp(y))-90.0;y=y/-180.0+0.5;return vec2(xy.x,y);}\n#modules-transformZ\nvoid main(){v_tex_pos=a_texCoord;vec2 globalWGS84=mercatorToWGS84(v_tex_pos);float value=windSpeed(globalWGS84);float z=transformZ(value,instancePositions);vec4 pos=vec4(instancePositions-u_cameraEye.xyz,0.0);pos+=vec4(instancePositions64Low-u_cameraEye64Low.xyz,0.0);\n#modules-project\n}";class I extends _{constructor(t,e,n,r){super(t,e||T,n||E,r||{}),this.vertShader=T,this.fragShader=E}draw(){if(void 0!==this.checkExt){const t=this.primitive||this.gl.TRIANGLES;this.checkExt?this.gl.drawElements(t,this.count,this.gl.UNSIGNED_INT,0):this.gl.drawElements(t,this.count,this.gl.UNSIGNED_SHORT,0)}else this.checkExt=this.gl.getExtension("OES_element_index_uint");return this}translate(){return this}rotate(){return this}scale(){return this}destroyed(){}}const P={renderForm:"r",styleSpec:{"fill-color":["interpolate",["linear"],["get","value"],0,"#3288bd",10,"#66c2a5",20,"#abdda4",30,"#e6f598",40,"#fee08b",50,"#fdae61",60,"#f46d43",100,"#d53e4f"],opacity:1},displayRange:[1/0,1/0],mappingRange:[0,0],widthSegments:1,heightSegments:1,wireframe:!1,createPlaneBuffer:(t,e,n)=>{const[r,i,o,s]=[t[0][0],t[2][0],t[0][1],t[1][1]];return function(t,e,n,r,i,o){const s=e-t,a=r-n,c=s/2,l=a/2,u=Math.floor(i),h=Math.floor(o),f=u+1,p=h+1,m=s/u,g=a/h,v=[],y=[],_=[],b=[],x=[];for(let e=0;e<p;e++){const r=e*g;for(let i=0;i<f;i++){const o=t+i*m/c/2*s,f=n+r/l/2*a;_.push(o,f,0),b.push(d(o),d(f),0),x.push(i/u,e/h)}}for(let t=0;t<h;t++)for(let e=0;e<u;e++){const n=e+f*t,r=e+f*(t+1),i=e+1+f*(t+1),o=e+1+f*t;v.push(n,r,o),v.push(r,i,o)}for(let t=0,e=v.length;t<e;t+=3){const e=v[t],n=v[t+1],r=v[t+2];y.push(e,n,n,r,r,e)}return{uvs:{data:x,size:2},elements:{data:v,count:v.length},wireframeElements:{data:y,count:y.length},position:{data:_,size:3},positionLow:{data:b,size:3}}}(r,i,o,s,e,n)},injectShaderModules:{"#modules-transformZ":"\nfloat transformZ(float value, vec3 pos) {\n return 0.0;\n}\n ","#modules-project":"\ngl_Position = u_matrix * vec4(pos.xy + vec2(u_offset, 0.0), pos.z + z, 1.0);\n "}};let L=0;class R{constructor(t,e){if(this.gl=t,this.uid="ScalarFill_"+L,L++,!this.gl)throw new Error("initialize error");e||(e={}),this.options={...P,...e},this.opacity=this.options.opacity||1}updateOptions(t){this.options={...this.options,...t},this.buildColorRamp(),"function"==typeof this.options.getZoom&&this.setOpacity(C(this.uid,this.options.getZoom(),"opacity",this.options.styleSpec,!0))}setFillColor(){this.buildColorRamp()}setOpacity(t){this.opacity=t}handleZoom(){"function"==typeof this.options.getZoom&&this.setOpacity(C(this.uid,this.options.getZoom(),"opacity",this.options.styleSpec))}buildColorRamp(){var t;const{data:e,colorRange:n}=S([],null==(t=this.options.styleSpec)?void 0:t["fill-color"]);n&&(this.colorRange=n),e&&(this.colorRampTexture=g(this.gl,this.gl.NEAREST,e,16,16))}initialize(t){this.drawCommand||("rg"===this.options.renderForm?this.drawCommand=new I(t,void 0,void 0,this.options.injectShaderModules):"r"===this.options.renderForm?this.drawCommand=new w(t,void 0,void 0,this.options.injectShaderModules):console.warn("This type is not supported temporarily")),this.buildColorRamp(),"function"==typeof this.options.getZoom&&this.setOpacity(C(this.uid,this.options.getZoom(),"opacity",this.options.styleSpec))}initializeVertex(t){let e=0;const n=t.length,r=[];for(;e<n;e++){const n=t[e],i=this.getMercatorCoordinate(n);r.push([i[0],i[1]])}const i=(this.options.createPlaneBuffer||P.createPlaneBuffer)(r,this.options.widthSegments||1,this.options.heightSegments||1);return{indexes:i.elements.data,wireframeIndexes:i.wireframeElements.data,quadBuffer:v(this.gl,new Float32Array(i.position.data)),quad64LowBuffer:v(this.gl,new Float32Array(i.positionLow.data)),texCoordBuffer:v(this.gl,new Float32Array(i.uvs.data))}}getTextureData(t){return new Promise((e,n)=>{if("image"===t.type&&t.url)(function(t){return new Promise((e,n)=>{t||n(new Event("url is null"));const r=new Image;r.crossOrigin="anonymous",r.onload=()=>e(r),r.onerror=n,r.src=t,r.complete&&e(r)})})(t.url).then(n=>{const r={width:n.width,height:n.height,texture:g(this.gl,this.gl.LINEAR,n,n.width,n.height),...this.initializeVertex(t.extent)};"rg"===this.options.renderForm?(r.uMin=t.uMin,r.uMax=t.uMax,r.vMin=t.vMin,r.vMax=t.vMax):"r"===this.options.renderForm?(r.min=t.min,r.max=t.max):console.warn("This type is not supported temporarily"),e(r)}).catch(t=>n(t));else if("jsonArray"===t.type&&t.data){const n=t.data;let r;r=t.extent?t.extent:[[n[0].header.lo1,n[0].header.la1],[n[0].header.lo1,n[0].header.la2],[n[0].header.lo2,n[0].header.la1],[n[0].header.lo2,n[0].header.la2]];const i={width:n[0].header.nx,height:n[0].header.ny,...this.initializeVertex(r)};if(this.worker||(this.worker=new u,this.worker.addEventListener("message",({data:t})=>{"rg"===this.options.renderForm?(i.uMin=t[1],i.uMax=t[2],i.vMin=t[3],i.vMax=t[4],i.texture=g(this.gl,this.gl.LINEAR,new Uint8Array(t[0]),i.width,i.height)):"r"===this.options.renderForm?(i.min=t[1],i.max=t[2],i.texture=g(this.gl,this.gl.LINEAR,new Uint8Array(t[0]),i.width,i.height)):console.warn("This type is not supported temporarily"),e(i)})),"rg"===this.options.renderForm){let t,e;n.forEach(n=>{switch(n.header.parameterCategory+","+n.header.parameterNumber){case"1,2":case"2,2":t=n;break;case"1,3":case"2,3":e=n}});const r=new Float32Array(t.data),i=new Float32Array(e.data);this.worker.postMessage(["rg",r,i])}else if("r"===this.options.renderForm){const t=new Float32Array(n[0].data);this.worker.postMessage(["r",t])}else console.warn("This type is not supported temporarily")}})}setData(t,e){this.gl&&t&&this.getTextureData(t).then(t=>{this.data=t,e&&e(!0),this.data&&this.initialize(this.gl),this.options.triggerRepaint&&(this.handleZoom(),this.options.triggerRepaint())}).catch(t=>{e&&e(!1),console.error(t)})}getData(){return this.data}getMercatorCoordinate([t,e]){return[t,e]}prerender(){}render(t,e,n){if(this.data&&this.drawCommand&&this.data.texture&&this.colorRampTexture){const r=this.opacity,i={u_opacity:h(r)?r:1,u_image_res:[this.data.width,this.data.height],u_matrix:t,u_offset:h(e)?e:0,u_color_ramp:this.colorRampTexture,u_color_range:this.colorRange,u_mapping_range:this.options.mappingRange||[0,0]};if(n&&(i.u_cameraEye=n.cameraEye,i.u_cameraEye64Low=n.cameraEye64Low),"rg"===this.options.renderForm){i.u_wind_min=[this.data.uMin,this.data.vMin],i.u_wind_max=[this.data.uMax,this.data.vMax],i.u_wind=this.data.texture;const t=[Math.sqrt(this.data.uMin*this.data.uMin+this.data.vMin*this.data.vMin),Math.sqrt(this.data.uMin*this.data.uMin+this.data.vMax*this.data.vMax),Math.sqrt(this.data.uMax*this.data.uMax+this.data.vMax*this.data.vMax),Math.sqrt(this.data.uMax*this.data.uMax+this.data.vMin*this.data.vMin)],e=0,n=Math.max(...t);i.u_display_range=this.options.displayRange||[e,n]}else"r"===this.options.renderForm?(i.u_range=[this.data.min,this.data.max],i.u_image=this.data.texture,i.u_display_range=this.options.displayRange||[i.u_range[0]-1,i.u_range[1]+1]):console.warn("This type is not supported temporarily");const o=this.gl.isEnabled(this.gl.DEPTH_TEST);this.gl.enable(this.gl.DEPTH_TEST),this.gl.depthMask(!0),this.gl.depthFunc(this.gl.LEQUAL);const s=this.options.wireframe?this.data.wireframeIndexes:this.data.indexes;this.drawCommand.active().setUniforms(i).setAttributes({instancePositions:{buffer:this.data.quadBuffer,numComponents:3},instancePositions64Low:{buffer:this.data.quad64LowBuffer,numComponents:3},a_texCoord:{buffer:this.data.texCoordBuffer,numComponents:2}}).elements({data:new Uint32Array(s),primitive:this.options.wireframe?this.gl.LINES:this.gl.TRIANGLES,count:null==s?void 0:s.length,usage:this.gl.STATIC_DRAW}).draw(),o||this.gl.disable(this.gl.DEPTH_TEST)}}postrender(){}destroyData(){this.data}destroyed(){this.destroyData(),this.worker&&this.worker.terminate()}}}).call(this,n("2ffc")(t),n("fd40").Buffer,n("eef6"))},"3b98":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"3d2a":function(t,e,n){"use strict";var r=n("5451"),i=n("b92d").findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3f61":function(t,e,n){var r=n("a25b"),i=n("41dc");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},"41dc":function(t,e){t.exports=function(t){return null==t}},"42a4":function(t,e,n){var r=n("8325"),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw i("Wrong offset");return n}},"42ef":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"442c":function(t,e,n){"use strict";n("149f"),n("6e9f");var r=n("1183"),i=n("f7eb"),o=n("d3f4"),s=n.n(o),a=n("bb7e");e.a=class{constructor(t,e,n){const{altitude:o,isLabel:a,labelMinZoom:c,labelMaxZoom:l,labelLayerName:u,labelVisible:h,canvasSize:d,markSize:f,pointMinZoom:p,pointOrder:m,isToolTip:g,isPointNum:v,sizeType:y,iconFile:_}=e;if(0==t.length)return void console.error("需要绘制的点位数量为0");const b=new r.PointsMaterial({sizeAttenuation:!1,transparent:!0,depthTest:!1});a&&u&&(this.layerLabel=new i.VectorLayer(u,{minZoom:c||15,maxZoom:e.pointMaxZoom||20,geometryEvents:!1,hitDetect:!1,visible:h||!1,zIndex:1001}).addTo(n.map),this.all_labels=[]);const x=[];if(this.typeValues={},this.ptcolors={},this.colorIndex=0,this.initTypeValue=-.9,this.canvasSize=d||48,this.markSize=f||40,this.threeLayer=n,this.map=n.map,this._initChildVar(e,n),t.slice(0,1/0).map(t=>{if(1*t.longitude>70&&1*t.longitude<138&&1*t.latitude>0&&1*t.latitude<56){const n=this._getImgType(t.businessType,t.imgSrc,t);if(this._bindDataItem(x,t,n),this.layerLabel){const n=1,r=new i.Marker([parseFloat(t.longitude),parseFloat(t.latitude)],{properties:{name:t.name,type:t.businessType,code:t.code,status:n},symbol:{textFaceName:e.nameFaceName||"microsoft yahei",textName:"{name}",textSize:e.nameFontSize||12,textFill:e.nameFontColor||"#cbd3ff",textDx:void 0!==e.nameDx?e.nameDx:0,textDy:void 0!==e.nameDy?e.nameDy:30}});1==t.visibility&&this.layerLabel.addGeometry(r),this.all_labels.push(r)}}}),this.textures=null,this.m=b,this.dataItems=x,this.point=[],this.shader=null,this.minZoom=p||8,this.maxZoom=e.pointMaxZoom||20,this.order=m||0,this.isToolTip=g||!1,this.customTooltip=e.customTooltip||!1,this.clickFunc=e.clickFunc||null,this.cFunc=e.cFunc||null,this.mouseMoveFunc=e.mouseMoveFunc||null,this.mouseOutFunc=e.mouseOutFunc||null,this.mMoveFunc=e.mMoveFunc||null,this.clickInfoFlag=void 0!==e.clickInfoFlag&&e.clickInfoFlag,this.iconFile=_||null,this.iconW=e.iconW||48,this.iconH=e.iconH||48,this.iconDx=e.iconDx||0,this.iconDy=e.iconDy||0,this.isPointNum=v||!1,this.iconFile&&(this.Infolayer=this.map.getLayer("infoLayer"),this.Infolayer||(this.Infolayer=new i.VectorLayer("infoLayer",{geometryEvents:!1,hitDetect:!1,zIndex:1001,iconCode:null,enableAltitude:!0}).addTo(n.map))),this.clickInfoFlag){const t={custom:!0,dy:e.infoDy||-48,content:"",animation:!1,autoOpenOn:null};this.infoWindow=new i.ui.InfoWindow(t).addTo(this.map)}this.layerPointNumLabel=new i.VectorLayer(i.Util.GUID(),{hitDetect:!1,zIndex:1001}).addTo(n.map),this.selectItems=[],this.funcsNew={},this.fitZoom=null,this.isCtrol=!0,this.selectMesh=[],this.rbush=new s.a,this.GLOBALSCALE=32768,this.XMAX=178,this.YMAX=85,this.MAXZOOM=31,this.SCALES=[];for(let t=0;t<this.MAXZOOM;t++)this.SCALES.push(129202.08021/Math.pow(2,t));this.clusterItemsCache={},this.clusterMinZoom=9,this.clusterMaxZoom=18,this.altitude=o,this.labelMaxZoom=l}_initChildVar(t,e){throw new Error(e,"需要在派生类中实现")}_bindMapEvents(){this.map.on("zooming zoomend",this._setSizeOn,this),this.point.forEach(t=>{t.on("click mousemove mouseout",this._setPointEvent,this)})}_setSizeOn(){const t=this._getRate();this.shader&&(this.shader.uniforms.size1.value=this.markSize*t),this.highlightmaterial&&(this.highlightmaterial.uniforms.size1.value=this.selectMarkSize*t);for(const t in this.funcsNew)this.funcsNew[t]()}_addOtherIcon(t,e){this.Infolayer&&e.iconFile&&new i.Marker([t.coordinate[0],t.coordinate[1]],{properties:{code:t.code},symbol:{markerFile:e.iconFile,markerWidth:e.iconW||this.iconW,markerHeight:e.iconH||this.iconH,markerDx:e.iconDx||this.iconDx,markerDy:e.iconDy||this.iconDy,markerOpacity:1}}).addTo(this.Infolayer)}_addIcon(t){this.Infolayer&&(this.Infolayer.clear(),new i.Marker([t.coordinate[0],t.coordinate[1]],{properties:{code:t.code,altitude:t.height},symbol:{markerFile:this.iconFile,markerWidth:this.iconW,markerHeight:this.iconH,markerDx:this.iconDx,markerDy:this.iconDy,markerOpacity:1}}).addTo(this.Infolayer),this.Infolayer.options.iconCode=t.code)}async addMouseOutFunc(t){await this.mouseOutFunc(t)}async addMMoveFunc(t){await this.mMoveFunc(this.point,t,this.threeLayer)}async addMouseMoveFunc(t){this.clickInfoFlag?await this.mouseMoveFunc(this.infoWindow,t):await this.mouseMoveFunc(t),this.clickInfoFlag&&(!1===this.infosCustom&&this.hideInfoWindows(),this.infoWindow.show({x:t.coordinate.x,y:t.coordinate.y}))}async addContent(t){this.clickInfoFlag&&!this.customTooltip?await this.clickFunc(this.infoWindow,t.target.data):await this.clickFunc(t.target.data),this.iconFile&&this._addIcon(t.target.data),this.clickInfoFlag&&!this.customTooltip&&(!1===this.infosCustom&&this.hideInfoWindows(),this.infoWindow.show({x:t.coordinate.x,y:t.coordinate.y}))}async addCFunc(t){await this.cFunc(t,this.threeLayer)}destroySecObjects(){for(let t=0;t<this.selectMesh.length;t++){const e=this.selectMesh[t];e.object3d.geometry&&e.object3d.geometry.dispose()}this.selectMesh=[]}_setPointEvent(t){const e=t.target;if("mousemove"===t.type&&e){const t=e.data.value;this.isToolTip&&(e.getToolTip()._content=""+t),this.customTooltip&&this.mouseMoveFunc&&this.addMouseMoveFunc(e),this.mMoveFunc&&!1===this.isToolTip&&!1===this.customTooltip&&this.addMMoveFunc(e)}"mouseout"===t.type&&this.customTooltip&&(this.infoWindow.hide(),this.mouseOutFunc&&this.addMouseOutFunc(e)),"click"===t.type&&t&&(this.clickFunc&&!this.cFunc&&this.addContent(t),this.cFunc&&this.addCFunc(t))}_bindDataItem(t,e,n){throw new Error(t,e,n,"需要在派生类中实现")}_getImgType(t,e,n){throw new Error(t,e,"需要在派生类中实现")}_deleteFunsKey(t){if(t){for(const e in this.funcsNew)if(t&&t===e){delete this.funcsNew[e];break}}else for(const t in this.funcsNew)delete this.funcsNew[t]}dispose(t){for(var e in this.isToolTip&&this.point&&this.point.forEach(t=>{t.removeToolTip()}),this.clearIcon(t),this.rbush&&(this.rbush.clear(),delete this.rbush),this.layerLabel&&(this.map.removeLayer(this.layerLabel),delete this.layerLabel,this.all_labels=[]),this.layerPointNumLabel&&this.map&&(this.map.removeLayer(this.layerPointNumLabel),delete this.layerPointNumLabel),this._closeEvent(),this._deleteFunsKey(),this.typeValues)delete this.typeValues[e];this.typeValues={},this.point&&(this.threeLayer.removeMesh(this.point),this.point.forEach(t=>{if(t.object3d.geometry&&t.object3d.geometry.dispose(),t.object3d.material&&t.object3d.material.dispose(),t._indexs_hide){for(const e in t._indexs_hide)delete t._indexs_hide[e];delete t._indexs_hide}t._datas=[],t._geometriesAttributes=[],t.toolTip&&delete t.toolTip,t.options.points=[],t.options.positions=[]})),this.infoWindow&&(this.infoWindow.remove(),delete this.infoWindow),this.clickFunc&&delete this.clickFunc,this.mouseMoveFunc&&delete this.mouseMoveFunc,this.mouseOutFunc&&delete this.mouseOutFunc,this.textures&&this.textures.length>0&&(this.textures.forEach(t=>{t.dispose()}),delete this.textures),this.dataItems=[],this.threeLayer=null,this.map=null,delete this.shader,this.m&&(this.m.dispose(),delete this.m),this.selectItems=[]}findItemByCode(t){for(let e=0;e<this.dataItems.length;e++)if(this.dataItems[e].code===t)return e}changePointMinZoom(t){this.point&&(this.point.options.minZoom=t)}_closeEvent(){this.point&&this.map.off("zooming zoomend",this._setSizeOn,this),this.point&&this.point.forEach(t=>{t.off("click mousemove mouseout",this._setPointEvent,this)})}clearIconByCode(t){if(this.Infolayer){const e=this.Infolayer.getGeometries();for(let n=0;n<e.length;n++)if(e[n].properties.code===t){this.Infolayer.removeGeometry(e[n]);break}}}clearIcon(t){void 0!==t&&!0!==t||this.Infolayer&&(this.Infolayer.clear(),this.Infolayer.options.iconCode=null),this.infoWindow&&this.infoWindow.hide()}hideInfoWindows(t){throw new Error("需要在派生类中实现")}async _loadTexture(){throw new Error("需要在派生类中实现")}pointShowHide(t,e,n,r,i){this.point&&(this.layerPointNumLabel&&this.layerPointNumLabel.clear(),this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear(),this._deleteFunsKey(),this.selectItems=[],this.point.show(),this._pointShowHide(t,e,n,r,i))}_pointShowHide(t,e,n,r,i){throw new Error(t,e,n,r,i,"需要在派生类中实现")}_changePtVisible(t){this.layerLabel&&this.layerLabel.clear();const e=this.point.object3d.geometry.attributes.visibility.array;if(0===t.length)for(let t=0;t<this.dataItems.length;t++)1===this.dataItems[t].visibility?(e[t]=1,this.point._indexs_hide[t]=!0,this.layerLabel&&this.layerLabel.addGeometry(this.all_labels[t]),this.bzlayerNum&&this.bzlayerNum.addGeometry(this.bz_all_nums[t])):(e[t]=.1,this.point._indexs_hide[t]=!1);else{this.dataItems.forEach(t=>{t.visibility=.1}),t.forEach(t=>{this.dataItems[t].visibility=1});for(let t=0;t<this.dataItems.length;t++)1===this.dataItems[t].visibility?(e[t]=1,this.point._indexs_hide[t]=!0,this.layerLabel&&this.layerLabel.addGeometry(this.all_labels[t]),this.bzlayerNum&&this.bzlayerNum.addGeometry(this.bz_all_nums[t])):(e[t]=.1,this.point._indexs_hide[t]=!1)}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0}pointShowHideByCode(t,e){if(!this.point)return;this.layerPointNumLabel&&this.layerPointNumLabel.clear(),this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear(),this._deleteFunsKey(),this.point.show();let n=1/0,r=1/0,o=-1/0,s=-1/0;for(let e=0;e<this.dataItems.length;e++){const i=this.dataItems[e];t.includes(i.code)?(n=Math.min(n,this.dataItems[e].coordinate[0]),r=Math.min(r,this.dataItems[e].coordinate[1]),o=Math.max(o,this.dataItems[e].coordinate[0]),s=Math.max(s,this.dataItems[e].coordinate[1]),i.visibility=1):i.visibility=.1}this._changePtVisible([]),e&&this.map.fitExtent(new i.Extent(n,r,o,s),0)}_itemHide(t,e,n,r,i,o){const s=null==n||n,c=null==r||r;let l;e&&"MultiPolygon"===e.getType()&&(l=e.toGeoJSON());const u=this.point.object3d.geometry.attributes.visibility.array;if(t.length>0){for(let t=0;t<this.dataItems.length;t++){const n=this.dataItems[t];let r=!0;if(1*n.status==1?r=!0===s:1*n.status==0&&(r=!0===c),e){let n=!0;"MultiPolygon"===e.getType()?n=a.a.containsCoordinate2(this.dataItems[t].coordinate,l):"Circle"===e.getJSONType()?n=a.a.containsCoordinate1(this.dataItems[t].coordinate,e):"Sector"===e.getJSONType()&&(n=a.a.containsCoordinate3(this.dataItems[t].coordinate,e,this.threeLayer)),r&=!!n}if(i&&i.rangeArr.length>0){const e=1*this.dataItems[t].pvalue;r&=!!a.a.isInLevels(i,e)}n.imgflag==o&&(r?(u[t]=1,this.point._indexs_hide[t]=!0,this.selectItems.push(t),this.layerLabel&&this.layerLabel.addGeometry(this.all_labels[t]),this.bzlayerNum&&this.bzlayerNum.addGeometry(this.bz_all_nums[t])):(u[t]=.1,this.point._indexs_hide[t]=!1))}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0}else{for(let t=0;t<this.dataItems.length;t++)this.dataItems[t].imgflag==o&&(u[t]=.1,this.point._indexs_hide[t]=!1);this.point.object3d.geometry.attributes.visibility.needsUpdate=!0}}_getRate(){let t=this.map.getZoom()-8;return t=t>4?4:t,.2*t+.2}_getMarkSize(t){const e=t.parent;return e.markSize*e._getRate()}async addPoint(){throw new Error("需要在派生类中实现")}pointShowHideShowNumSingle(t,e,n){const r=n||12;this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey(),this.selectItems=[],this._pointShowHide(t,e);let o=1/0,s=1/0,a=-1/0,c=-1/0;this.selectItems.forEach(t=>{o=Math.min(o,this.dataItems[t].coordinate[0]),s=Math.min(s,this.dataItems[t].coordinate[1]),a=Math.max(a,this.dataItems[t].coordinate[0]),c=Math.max(c,this.dataItems[t].coordinate[1])});const l=[(o+a)/2,(s+c)/2];this._addClusterLabel(l,this.selectItems.length,{}).on("click",()=>{this.layerPointNumLabel.hide(),this.map.fitExtent(new i.Extent(o,s,a,c),0),setTimeout(()=>{this.point.show()},500)}),this.point.hide(),this.funcsNew.a=()=>{this.map.getZoom()<r?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide())}}_clearClusterCache(){for(const t in this.clusterItemsCache)delete this.clusterItemsCache[t];this.clusterItemsCache={}}pointShowHideShowNumbyCodeMultiple(t,e){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();const n=[],r=[];for(let r=0;r<e.length;r++)n.push({code:r,geo:e[r],geojson:e[r].toGeoJSON(),ptnum:0,val:t,ptids:[]});this.dataItems.forEach(t=>{t.visibility=.1}),n.forEach(e=>{for(let n=0;n<this.dataItems.length;n++){const i=this.dataItems[n];t.includes(i.code)&&a.a.containsCoordinate2(this.dataItems[n].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(n),r.push(n),i.visibility=1)}}),n.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.ptnum,t).on("click",t=>{this.selectItems=[];const e=t.target.properties.item;e.ptnum>0&&(setTimeout(()=>{this.point.show()},500),this._changePtVisible(e.ptids),this._zoomSelect1(e.ptids,e.geo,r))})}),this._changePtVisible(r),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=()=>{this.isCtrol&&(this.map.getZoom()<9.4?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide()))}}pointShowHideShowNumMultiple(t,e){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();const n=[],r=[];for(let r=0;r<e.length;r++)n.push({code:r,geo:e[r],geojson:e[r].toGeoJSON(),ptnum:0,val:t,ptids:[]});this.dataItems.forEach(t=>{t.visibility=.1}),n.forEach(e=>{for(let n=0;n<this.dataItems.length;n++){const i=this.dataItems[n];t.filter(t=>t===i.type).length>0&&a.a.containsCoordinate2(this.dataItems[n].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(n),r.push(n),i.visibility=1)}}),n.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.ptnum,t).on("click",t=>{this.selectItems=[];const e=t.target.properties.item;e.ptnum>0&&(setTimeout(()=>{this.point.show()},500),this._changePtVisible(e.ptids),this._zoomSelect1(e.ptids,e.geo,r))})}),this._changePtVisible(r),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=()=>{this.isCtrol&&(this.map.getZoom()<9.4?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide()))}}_zoomSelect1(t,e,n){let r=1/0,o=1/0,s=-1/0,a=-1/0;t.forEach(t=>{r=Math.min(r,this.dataItems[t].coordinate[0]),o=Math.min(o,this.dataItems[t].coordinate[1]),s=Math.max(s,this.dataItems[t].coordinate[0]),a=Math.max(a,this.dataItems[t].coordinate[1])}),this.layerPointNumLabel.hide(),this.map.fitExtent(new i.Extent(r,o,s,a),0),this.isCtrol=!1,setTimeout(()=>{this.funcsNew.a=()=>{this.fitZoom||(this.fitZoom=this.map.getZoom()),this.map.getZoom()<this.fitZoom-.5&&(this.point.hide(),this.layerPointNumLabel.show(),this._deleteFunsKey("a"),this.fitZoom=null,this.isCtrol=!0,this._changePtVisible(n))}},500)}_addClusterLabelSmall(t,e,n,r,o){const s=r||"#50fcfc",a=o||"#000",c=new i.Marker(t,{properties:{item:n},symbol:[{type:"1",markerType:"ellipse",markerFill:s,markerFillOpacity:1,markerLineWidth:0,markerLineOpacity:1,markerWidth:{stops:[[9,32],[12,52]]},markerHeight:{stops:[[9,32],[12,52]]}}]});return this.layerPointNumLabel.addGeometry(c),new i.Marker(t,{properties:{name:e},symbol:{textFaceName:"sans-serif",textName:"{name}",textSize:{stops:[[9,12],[12,18],[15,24]]},textFill:a}}).addTo(this.layerPointNumLabel),c}_addClusterLabel(t,e,n,r,o){const s=r||"#50fcfc",a=o||"#000",c=new i.Marker(t,{properties:{item:n},symbol:[{type:"1",markerType:"ellipse",markerFill:s,markerFillOpacity:1,markerLineWidth:0,markerLineOpacity:1,markerWidth:{stops:[[9,32],[12,52],[15,82]]},markerHeight:{stops:[[9,32],[12,52],[15,82]]}},{type:"2",markerType:"ellipse",markerFill:s,markerFillOpacity:"0.4",markerLineWidth:0,markerLineOpacity:1,markerWidth:{stops:[[9,54],[12,74],[15,104]]},markerHeight:{stops:[[9,54],[12,74],[15,104]]}}]});return this.layerPointNumLabel.addGeometry(c),new i.Marker(t,{properties:{name:e},symbol:{textFaceName:"sans-serif",textName:"{name}",textSize:{stops:[[9,12],[12,18],[15,24]]},textFill:a}}).addTo(this.layerPointNumLabel),c}getClosestZoom(t){for(let e=0;e<this.MAXZOOM-1;e++){const n=this.SCALES[e],r=this.SCALES[e+1];if(n===t)return e;if(r===t)return e+1;if(t<n&&r<t)return Math.abs(t-n)<=Math.abs(t-r)?e:e+1}}calColNum(t,e,n){this.rbush.clear();let r=[],i=[];for(let t=0;t<this.dataItems.length;t++)if(e&&e.length>0&&e.includes(t)){const e=this.getRect(this.dataItems[t],t);this.rbush.insert(e)}for(let n=0;n<this.dataItems.length;n++)if(e.includes(n))if(t>=18){const t=[n];i.push(t)}else if(!r.includes(n)){const t=this.getRect(this.dataItems[n]),e=this.rbush.search(t),o=[];if(e.forEach(t=>{o.push(t.idx)}),i.length>0){const t=[];for(let e=0;e<i.length;e++)i[e].filter(t=>o.includes(t)).length>0&&t.push(e);if(0===t.length)i.push(o.sort((function(t,e){return t-e})));else if(1===t.length){const e=i[t[0]].concat(o.filter(e=>!i[t[0]].includes(e)));i[t[0]]=e.sort((function(t,e){return t-e}))}else{const e=[],n=[];for(let r=0;r<i.length;r++)t.includes(r)?n.push(i[r]):e.push(i[r]);const r=n.flat(),s=r.concat(o.filter(t=>!r.includes(t)));i=[],e.forEach(t=>{i.push(t)}),i.push(s)}}else i.push(o);r=i.flat()}n.push(i)}testCluster(t){this.layerPointNumLabel.clear(),t.forEach(t=>{if(t.length>1){let e=1/0,n=1/0,r=-1/0,i=-1/0;t.forEach(t=>{e=Math.min(e,this.dataItems[t].coordinate[0]),n=Math.min(n,this.dataItems[t].coordinate[1]),r=Math.max(r,this.dataItems[t].coordinate[0]),i=Math.max(i,this.dataItems[t].coordinate[1]),this.dataItems[t].visibility=.1});const o=[(e+r)/2,(n+i)/2];this._addClusterLabelSmall(o,t.length,{})}else this.dataItems[t[0]].visibility=1}),this._changePtVisible([])}testMinClusterZoom(t){this.layerPointNumLabel.clear(),t.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.ptnum,t)}),this.dataItems.forEach(t=>{t.visibility=.1}),this._changePtVisible([])}getRect(t,e){const n=this.threeLayer.coordinateToVector3(t.coordinate,0),{x:r,y:i}=this.getPixel(n),o=this._getRate(),s=this.markSize*o;return{minX:r-s/2,minY:i-s/2,maxX:r+s/2,maxY:i+s/2,idx:e}}getPixel(t){const e=this.map.getSize(),n=this.threeLayer.getCamera();return a.a.vector2Pixel(t,e,n)}}},4472:function(t,e,n){var r=n("065f"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"450c":function(t,e,n){(e=n("a1a8")(!1)).push([t.i,".compass[data-v-eb938560]{width:28px;height:28px;border:10px solid rgba(0,0,0,.6);border-radius:50%;position:relative;box-sizing:content-box}.compass[data-v-eb938560],.compass-left[data-v-eb938560],.compass-right[data-v-eb938560]{display:flex;justify-content:center;align-items:center}.compass-left[data-v-eb938560],.compass-right[data-v-eb938560]{width:12px;position:absolute;top:50%;transform:translateY(-50%);cursor:pointer;z-index:9999}.compass-left .rk-map-compass-icon[data-v-eb938560],.compass-right .rk-map-compass-icon[data-v-eb938560]{width:16px;height:40px}.compass-left .rk-map-compass-icon[data-v-eb938560] svg,.compass-right .rk-map-compass-icon[data-v-eb938560] svg{width:16px;height:40px;fill:#989898}.compass-left .rk-map-compass-icon[data-v-eb938560]:active svg,.compass-right .rk-map-compass-icon[data-v-eb938560]:active svg{fill:#0f6eff!important}.compass-left[data-v-eb938560]{left:-10px}.compass-right[data-v-eb938560]{right:-10px}.compass-circle[data-v-eb938560]{cursor:pointer;display:flex;justify-content:center;align-items:center}.compass-circle .rk-map-compass-icon[data-v-eb938560]{box-sizing:content-box;border:2px solid rgba(101,120,155,.6);border-radius:50%;width:22px;height:22px}.compass-circle-inner[data-v-eb938560]{display:flex;justify-content:center;align-items:center}",""]),t.exports=e},"45fc":function(t,e,n){(function(e){for(var r=n("1cbe"),i="undefined"==typeof window?e:window,o=["moz","webkit"],s="AnimationFrame",a=i["request"+s],c=i["cancel"+s]||i["cancelRequest"+s],l=0;!a&&l<o.length;l++)a=i[o[l]+"Request"+s],c=i[o[l]+"Cancel"+s]||i[o[l]+"CancelRequest"+s];if(!a||!c){var u=0,h=0,d=[];a=function(t){if(0===d.length){var e=r(),n=Math.max(0,1e3/60-(e-u));u=n+e,setTimeout((function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(n))}return d.push({handle:++h,callback:t,cancelled:!1}),h},c=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}t.exports=function(t){return a.call(i,t)},t.exports.cancel=function(){c.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=a,t.cancelAnimationFrame=c}}).call(this,n("2409"))},"45fd":function(t,e,n){var r=n("11b2"),i=n("9a5f"),o=n("c763"),s=n("cea5");t.exports=function(t,e,n){for(var a=i(e),c=s.f,l=o.f,u=0;u<a.length;u++){var h=a[u];r(t,h)||n&&r(n,h)||c(t,h,l(e,h))}}},"46d7":function(t,e,n){"use strict";function r(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function i(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function o(t){return"Feature"===t.type?t.geometry:t}function s(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n("96a7")},4744:function(t,e,n){"use strict";var r=n("aaee");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},"47ab":function(t,e,n){var r=n("2774"),i=n("aaee"),o=n("4472");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"47c9":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("149f"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("1803"),core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_typed_array_at_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("baa4"),core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_typed_array_find_last_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("3d2a"),core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_typed_array_find_last_index_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("3284"),core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("491b"),core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_string_replace_all_js__WEBPACK_IMPORTED_MODULE_5__),_gisCommon__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("bb7e"),_Points__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("0514"),_baseMark_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("f62a"),_pollutionFactors__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("a6a2"),three__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("1183"),maptalks__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("f7eb");class simpleMark extends _baseMark_js__WEBPACK_IMPORTED_MODULE_8__.a{constructor(t,e,n){super(t,e,n),this.InforItems=[],this.curZoom=9,this.clusterMinZoom=9,this.name=e.labelLayerName,this.zoomPara=.05,this.canvasSize=e.canvasSize||40,this._bound=e.bound,this.pLen=t.length-1,this.updateIndex=0}_initChildVar(t,e){!0===t.addValueLabel&&(this.bzlayerNum=new maptalks__WEBPACK_IMPORTED_MODULE_11__.VectorLayer(maptalks__WEBPACK_IMPORTED_MODULE_11__.Util.GUID(),{minZoom:t.valueMinZoom||11,maxZoom:t.pointMaxZoom||20,geometryEvents:!1,hitDetect:!1,visible:!1,zIndex:1001}).addTo(e.map),this.bz_all_nums=[],this.valueFaceName=t.valueFaceName||"microsoft yahei",void 0===t.valueFontSize?this.valueFontSize=12:Array.isArray(t.valueFontSize)?this.valueFontSize={stops:t.valueFontSize}:this.valueFontSize=t.valueFontSize,this.valueDy=t.valueDy||0,this.valueDx=t.valueDx||0),!0===t.addPtNumLabel&&(this.bzlayerPtNum=new maptalks__WEBPACK_IMPORTED_MODULE_11__.VectorLayer(maptalks__WEBPACK_IMPORTED_MODULE_11__.Util.GUID(),{minZoom:t.pointMinZoom||11,maxZoom:t.pointMaxZoom||20,geometryEvents:!1,hitDetect:!1,visible:!0,zIndex:1005}).addTo(e.map),this.bz_all_ptnums=[],this.ptNumFaceName=t.ptNumFaceName||"microsoft yahei",void 0===t.ptNumFontSize?this.ptNumFontSize=12:Array.isArray(t.ptNumFontSize)?this.ptNumFontSize={stops:t.ptNumFontSize}:this.ptNumFontSize=t.ptNumFontSize,this.ptNumDy=t.ptNumDy||0,this.ptNumDx=t.ptNumDx||0,this.isAddLabelItems={},this.ptNumColor=t.ptNumColor||"#000"),this.interactive=void 0===t.interactive||t.interactive,this.beginSizeZoom=t.beginSizeZoom||3,this.endSizeZoom=t.endSizeZoom||12,this.spanSizeZoom=this.endSizeZoom-this.beginSizeZoom,this.stepSize=1/(this.endSizeZoom-this.beginSizeZoom+1),this.paraName=t.paraName||"pm25",this.typeImgNum=-1,this.highlightmaterial=null,this.selectMarkSize=t.selectSize||this.markSize,t.selectImg&&this._createSelMaterial(t.selectImg),this.infosCustom=void 0!==t.infosCustom&&t.infosCustom}_bindDataItem(t,e,n){const r=isNaN(parseFloat(e.value))?e.value?e.value:"--":e.value,i=parseFloat(e.opavalue)?parseFloat(e.opavalue):1;let o=0;e.imgSrc&&(o=e.imgSrc.length);let s=.9,a="#fff",c=0,l=.9,u="#fff",h=0,d=.9,f="#fff",p=0;if(e.imgColor)if(Array.isArray(e.imgColor))e.imgColor.length>=1&&(s=1.9,a=e.imgColor[0]),e.imgColor.length>=2&&(l=1.9,u=e.imgColor[1]),e.imgColor.length>=3&&(d=1.9,f=e.imgColor[2]);else{const t=e.imgColor;t.b&&(s=1.9,a=t.b),t.m&&(l=1.9,u=t.m),t.f&&(d=1.9,f=t.f)}c=this._pushColor(a),h=this._pushColor(u),p=this._pushColor(f);const m=(parseFloat(e.windDirection)||0)+.01,g=parseFloat(m*(Math.PI/180));if(t.push({coordinate:[parseFloat(e.longitude),parseFloat(e.latitude)],height:0,colorflag:s,colorIndex:c,fcolorflag:d,fcolorIndex:p,midflag:l,mcolorIndex:h,imgnum:o,value:e.name,imgflag:n,rotation:g,visibility:1==e.visibility?1:.1,code:e.code,opavalue:i,rotationflag:1==e.rotationflag?1.9:.1,pvalue:r,status:void 0!==e.status?e.status:1,data:e.data}),this.bzlayerNum){const t=e.valueFontColr||"#000",n=new maptalks__WEBPACK_IMPORTED_MODULE_11__.Marker([parseFloat(e.longitude),parseFloat(e.latitude)],{properties:{name:r,type:e.businessType,pvalue:r},symbol:{textFaceName:this.valueFaceName,textName:"{name}",textSize:this.valueFontSize,textFill:t,textDx:this.valueDx,textDy:this.valueDy}});1==e.visibility&&this.bzlayerNum.addGeometry(n),this.bz_all_nums.push(n)}if(this.bzlayerPtNum){const t=void 0!==e.ptNumValue?e.ptNumValue:1,n=`${e.longitude},${e.latitude}`;if(t>1&&null==this.isAddLabelItems[n]){const n=new maptalks__WEBPACK_IMPORTED_MODULE_11__.Marker([parseFloat(e.longitude),parseFloat(e.latitude)],{properties:{name:t,type:e.businessType,pvalue:t},symbol:{textFaceName:this.ptNumFaceName,textName:"{name}",textSize:this.ptNumFontSize,textFill:this.ptNumColor,textDx:this.ptNumDx,textDy:this.ptNumDy}});1==e.visibility&&this.bzlayerPtNum.addGeometry(n),this.bz_all_ptnums.push(n)}}}_pushColor(t){let e=0;const n=t instanceof three__WEBPACK_IMPORTED_MODULE_10__.Color?t:new three__WEBPACK_IMPORTED_MODULE_10__.Color(t),r=_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.getIntColor(n);return null==this.ptcolors[r]?(this.ptcolors[r]=this.colorIndex,e=this.colorIndex,this.colorIndex+=1):e=this.ptcolors[r],e}_getRate(){let t=this.map.getZoom()-this.beginSizeZoom;return t=t>this.spanSizeZoom?this.spanSizeZoom:t,t*this.stepSize+this.stepSize}_getImgType(t,e,n){return void 0===this.typeValues[t]&&(0===Object.keys(this.typeValues).length?this.initTypeValue=.9:this.initTypeValue+=this.typeImgNum,this.typeImgNum=e.length,this.typeValues[t]={v:this.initTypeValue,img:e,inImgWidth:parseInt(n.inImgWidth)||16,secImgWidth:parseInt(n.secImgWidth)||16,inOffx:parseInt(n.inOffx)||0,inOffy:parseInt(n.inOffy)||0,secOffx:parseInt(n.secOffx)||0,secOffy:parseInt(n.secOffy)||0}),this.typeValues[t].v}changeLabelTextColor(t){t&&this.all_labels.forEach(e=>{e.updateSymbol({textFill:t})})}_pointShowHide(t,e,n,r,i){this.layerLabel&&this.layerLabel.clear();for(const o in this.typeValues){const s=t.filter(t=>t===o);this._itemHide(s,e,n,r,i,this.typeValues[o].v)}}pointFindByCode(val,isZoom,isAddIcon,zoomPara,iconConfig){const item=this.dataItems.filter(t=>t.code===val);item.length>0&&(isZoom&&("function"==typeof eval(isZoom)?isZoom(item):zoomPara?this.map.setCenterAndZoom(item[0].coordinate,zoomPara):this.map.fitExtent(new maptalks__WEBPACK_IMPORTED_MODULE_11__.Extent(item[0].coordinate[0]-this.zoomPara,item[0].coordinate[1]-this.zoomPara,item[0].coordinate[0]+this.zoomPara,item[0].coordinate[1]+this.zoomPara),0)),isAddIcon&&(iconConfig?this._addOtherIcon(item[0],iconConfig):this.iconFile&&this._addIcon(item[0])))}_isExsitInfo(t){for(let e=0;e<this.InforItems.length;e++){const n=this.InforItems[e];if(n.options.data.code===t)return n}return null}pointAddInfos(t,e,n,r,i){if(void 0===e)return;this.clearIcon(i);const o=[];for(let e=0;e<this.dataItems.length;e++){const n=this.dataItems[e];t.includes(n.code)&&!this._isExsitInfo(n.code)&&o.push(e)}o.length>0&&this.addInfoNew(o,e,n,r)}async _createSelMaterial(t){let e=t;if(t.includes(".svg")){const n=await fetch(t);e=await n.text()}const n=(new DOMParser).parseFromString(e,"image/svg+xml"),r=1*(n.documentElement.getAttribute("width")||1),i=1*(n.documentElement.getAttribute("height")||1)/r,o=parseInt(this.selectMarkSize/i),s=parseInt(o*i),a=await _gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.addImageProcess(e);this.secTexture=_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.generateTextureOne(a,o,s);const c=this._getRate();this.highlightmaterial=new three__WEBPACK_IMPORTED_MODULE_10__.ShaderMaterial({uniforms:{pointTexture:{value:this.secTexture},size1:{value:this.selectMarkSize*c}},vertexShader:"\n uniform float size1;\n void main() {\n vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n gl_PointSize = size1 * ( 1.0);\n gl_Position = projectionMatrix * mvPosition;\n }\n ",fragmentShader:"\n uniform sampler2D pointTexture;\n void main() {\n gl_FragColor = texture2D( pointTexture, gl_PointCoord );\n }\n ",transparent:!0,depthTest:!1,depthWrite:!1})}async _loadTexture(){const t=[];for(const e in this.typeValues)if(this.typeValues[e].img&&Array.isArray(this.typeValues[e].img))for(let n=0;n<this.typeValues[e].img.length;n++){const r=this.typeValues[e].img[n];let i=r;if(r.includes(".svg")){const t=await fetch(r);i=await t.text()}const o=(new DOMParser).parseFromString(i,"image/svg+xml"),s=1*(o.documentElement.getAttribute("width")||1),a=1*(o.documentElement.getAttribute("height")||1)/s;let c=parseInt(this.canvasSize/a),l=parseInt(c*a);const u=await _gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.addImageProcess(i);0===n?t.push({type:"img",src:u,w:this.canvasSize,h:this.canvasSize,iw:c,ih:l}):1===n?(c=parseInt(this.typeValues[e].inImgWidth/a),l=parseInt(c*a),t.push({type:"img1",src:u,w:this.canvasSize,h:this.canvasSize,iw:c,ih:l,offx:this.typeValues[e].inOffx,offy:this.typeValues[e].inOffy})):(c=parseInt(this.typeValues[e].secImgWidth/a),l=parseInt(c*a),t.push({type:"img1",src:u,w:this.canvasSize,h:this.canvasSize,iw:c,ih:l,offx:this.typeValues[e].secOffx,offy:this.typeValues[e].secOffy}))}return _gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.generateTexture(t)}async _loadRGBTexture(){this.colorsArray=new Float32Array(3*Object.keys(this.ptcolors).length);var t=Object.keys(this.ptcolors).map(t=>[t,this.ptcolors[t]]);t.sort((t,e)=>t[1]-e[1]);let e=0;return t.forEach(t=>{const n=_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.colorIntToRGB(t[0]);this.colorsArray[3*e]=n.r,this.colorsArray[3*e+1]=n.g,this.colorsArray[3*e+2]=n.b,e+=1}),new three__WEBPACK_IMPORTED_MODULE_10__.DataTexture(this.colorsArray,Object.keys(this.ptcolors).length,1,three__WEBPACK_IMPORTED_MODULE_10__.RGBFormat,three__WEBPACK_IMPORTED_MODULE_10__.FloatType)}async addPoint(){if(!this.dataItems)return null;const t=await this._loadTexture();this.textures||(this.textures=[]),this.textures.push(t.texture),this.rgbTexture=await this._loadRGBTexture();const e=this._getRate();let n;this.m.onBeforeCompile=r=>{n=this._createShaderPol(r,t.texture,t.textureSize,this.markSize*e,this.rgbTexture,Object.keys(this.ptcolors).length),this.shader=n},this.dataItems.forEach(e=>{const n=parseInt(e.imgflag);e.wwItem=[],e.hhItem=[],e.uuItem=[],e.vvItem=[];for(let r=0;r<e.imgnum;r++)e.wwItem.push(t.xys[n+r].w),e.hhItem.push(t.xys[n+r].h),e.uuItem.push(t.xys[n+r].u),e.vvItem.push(t.xys[n+r].v)});const r=new _Points__WEBPACK_IMPORTED_MODULE_7__.a(this.dataItems,{minZoom:this.minZoom,maxZoom:this.maxZoom,bound:this._bound,interactive:this.interactive},this.m,this._getMarkSize,this.threeLayer);return this.bzlayerPtNum&&(r.zoomChange=()=>{if(this.ptNumRate){const t=this._getRate()-this.ptNumRate,e=this.ptNumDx*(1+t),n=this.ptNumDy*(1+t);this.bz_all_ptnums.forEach(t=>{t.updateSymbol({textDx:e,textDy:n})})}else this.ptNumRate=this._getRate()}),this.isToolTip&&r.setToolTip("hello",{showTimeout:0,eventsPropagation:!0,dx:10}),r.object3d.renderOrder=this.order,this.point=r,this.point.parent=this,this.threeLayer.addMesh(this.point),this._bindMapEvents(),r}async addInfoNew(t,e,n,r){if(t.length!==this.InforItems.length)for(let i=0;i<this.dataItems.length;i++)if(t.includes(i)){const t=this.dataItems[i],o={single:!1,custom:!0,dx:n||0,dy:r||-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,data:t,content:""},s=new maptalks__WEBPACK_IMPORTED_MODULE_11__.ui.InfoWindow(o);this.InforItems.push(s),s.addTo(this.map),await e(s,t),s.show({x:t.coordinate[0],y:t.coordinate[1]})}}addInfo(t){if(t.length!==this.InforItems.length)for(let e=0;e<this.dataItems.length;e++)if(t.includes(e)){const t=this.dataItems[e];let n=t.data.infoWindowData;if(t.data.law_num&&t.data.punish_num&&(n=[{key:"案件数",value:t.data.law_num},{key:"处罚金额",value:t.data.punish_num+"万元"}]),!n||!n.length)continue;const r={single:!1,custom:!0,dy:-16,autoOpenOn:null,animation:!1,autoPanDuration:!1,autoPan:!1,content:`<div style="background: rgba(0,0,0,0.42); border-radius: 6px; font-size: 12px; color: #ffffff; padding: 6px;display: flex;\n flex-direction: column;\n align-items: center; width: 128px">\n <span>${n[0].key}:${n[0].value}</span>\n <span>${n[1].key}:${n[1].value}</span>\n </div>`},i=new maptalks__WEBPACK_IMPORTED_MODULE_11__.ui.InfoWindow(r);this.InforItems.push(i),i.addTo(this.map).show({x:t.coordinate[0],y:t.coordinate[1]})}}async showInfoWindows(t,e){if(this.InforItems.length>0&&t){const n=this._isExsitInfo(t);e&&await e(n,n.options.data),n.show({x:n.options.data.coordinate[0],y:n.options.data.coordinate[1]})}}hideInfoWindows(t){this.InforItems.length>0&&(t?this.InforItems.forEach(e=>{e.options.data.code===t&&e.hide()}):(this.InforItems.forEach(t=>{t.remove()}),this.InforItems=[]))}pointShowStatisticsByeCodeMultiple(t,e,n,r,i){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this.hideInfoWindows(),this._deleteFunsKey();const o=[],s=[];for(let n=0;n<e.length;n++)o.push({code:n,geo:e[n],geojson:e[n].toGeoJSON(),ptnum:0,val:t,sum:0,ptids:[]});o.forEach(e=>{for(let r=0;r<this.dataItems.length;r++){const i=this.dataItems[r];t.includes(i.code)&&_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.containsCoordinate2(this.dataItems[r].coordinate,e.geojson)&&(e.ptnum+=1,e.ptids.push(r),s.push(r),this.dataItems[r].data[n]?(e.sum+=parseFloat(this.dataItems[r].data[n])||0,e.sum=Math.floor(100*e.sum)/100):e.sum+=0)}}),this._clearClusterCache();const a=this.clusterMinZoom;this.clusterItemsCache[a]=o,this.testMinClusterZoom1(this.clusterItemsCache[a],r,i),this.funcsNew.c=()=>{const t=this.getClosestZoom(this.map.pixelToDistance(1,0));if(!(t<9||t>18)&&this.curZoom!==t)if(this.curZoom=t,this.clusterItemsCache[t])if(t===this.clusterMinZoom)this.hideInfoWindows(),this.testMinClusterZoom1(this.clusterItemsCache[t],r,i);else{const e=this.clusterItemsCache[t];this.testCluster1(e,r,i,n)}else{const e=[];o.forEach(n=>{this.calColNum(t,n.ptids,e)}),this.clusterItemsCache[t]=e.flat(),this.testCluster1(this.clusterItemsCache[t],r,i,n)}}}testMinClusterZoom1(t,e,n){this.layerPointNumLabel.clear(),t.forEach(t=>{this._addClusterLabel(t.geo.getCenter(),t.sum,t,e,n)}),this.dataItems.forEach(t=>{t.visibility=.1}),this._changePtVisible([])}testCluster1(t,e,n,r){this.layerPointNumLabel.clear();const i=[];t.forEach(t=>{if(t.length>1){let i=1/0,o=1/0,s=-1/0,a=-1/0,c=0;t.forEach(t=>{i=Math.min(i,this.dataItems[t].coordinate[0]),o=Math.min(o,this.dataItems[t].coordinate[1]),s=Math.max(s,this.dataItems[t].coordinate[0]),a=Math.max(a,this.dataItems[t].coordinate[1]),this.dataItems[t].visibility=.1,this.dataItems[t].data[r]?(c+=parseFloat(this.dataItems[t].data[r])||0,c=Math.floor(100*c)/100):c+=0});const l=[(i+s)/2,(o+a)/2];this._addClusterLabelSmall(l,c,{},e,n)}else this.dataItems[t[0]].visibility=1,i.push(t[0])}),this._changePtVisible([]),this.hideInfoWindows(),this.addInfo(i)}pointShowStatisticsByeTypeMultiple(t,e,n){this.layerPointNumLabel.clear(),this.layerPointNumLabel.show(),this._deleteFunsKey();const r=[];for(let n=0;n<e.length;n++)r.push({code:n,geo:e[n],geojson:e[n].toGeoJSON(),sum:0,val:t,ptnum:0});r.forEach(e=>{for(let r=0;r<this.dataItems.length;r++){const i=this.dataItems[r];t.filter(t=>t.includes(i.type)).length>0&&_gisCommon__WEBPACK_IMPORTED_MODULE_6__.a.containsCoordinate2(this.dataItems[r].coordinate,e.geojson)&&(e.ptnum+=1,this.dataItems[r].data[n]?e.sum+=parseFloat(this.dataItems[r].data[n])||0:e.sum+=0)}}),r.forEach(e=>{this._addClusterLabel(e.geo.getCenter(),e.sum,e).on("click",e=>{this.selectItems=[];const n=e.target.properties.item;n.ptnum>0&&(setTimeout(()=>{this.point.show()},500),this._pointShowHide(n.val,n.geo),this._zoomSelect(t,n.geo))})}),this._pointShowHide(t),this.map.getZoom()<9.4?this.point.hide():(this.point.show(),this.layerPointNumLabel.hide()),this.funcsNew.b=()=>{this.isCtrol&&(this.map.getZoom()<9.4?(this.point.hide(),this.layerPointNumLabel.show()):(this.point.show(),this.layerPointNumLabel.hide()))}}showValue(flag,closeForeFlag,where){if(void 0===closeForeFlag&&this.shader){const t=!0===flag?0:1;this.shader.uniforms.flag.value=t}if(where){this.bzlayerNum&&this.bzlayerNum.clear();for(let i=0;i<this.dataItems.length;i++){const item=this.dataItems[i];let boolFlag;try{boolFlag=eval(where.replaceAll("{}",item.pvalue))}catch{boolFlag=!1}1===item.visibility&&!0===boolFlag&&this.bzlayerNum.addGeometry(this.bz_all_nums[i])}}this.bzlayerNum&&(this.bzlayerNum.options.visible=flag)}show(){this.layerLabel&&this.layerLabel.clear(),this.bzlayerNum&&this.bzlayerNum.clear(),this.bzlayerPtNum&&this.bzlayerPtNum.show();const t=[];for(let e=0;e<this.dataItems.length;e++)t.push(e);this._changePtVisible(t)}hide(){this.pointShowHide([]),this.bzlayerPtNum&&this.bzlayerPtNum.hide()}showName(t){this.layerLabel&&(this.layerLabel.options.visible=t)}getVectorLayerZindex(){return this.layerLabel?this.layerLabel.getZIndex():this.bzlayerNum?this.bzlayerNum.getZIndex():void 0}setVectorLayerZindex(t){return this.layerLabel?this.layerLabel.setZIndex(t):this.bzlayerNum?this.bzlayerNum.setZIndex(t):void 0}setPointsOn(t,e,n){if(!this.point)return;const r=[],i=this.point.object3d.geometry.attributes.visibility.array;for(let n=0;n<this.dataItems.length;n++){const o=this.dataItems[n];o.data[t]&&1*o.data[t]===e&&(r.push(n),i[n]=1,this.point._indexs_hide[n]=!0)}this.point.object3d.geometry.attributes.visibility.needsUpdate=!0,n&&n(r)}changePositionValueOne(t,e){if(!this.point)return;this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];this.colorIndex=0,this.paraName=e||this.paraName;const n=isNaN(parseFloat(t.value))?t.value?t.value:"--":t.value;let r="#fff",i=0;t.imgColor&&t.imgColor.length>=1&&(r=t.imgColor[0]),i=this._pushColor(r);let o="#fff",s=0;t.imgColor&&t.imgColor.length>=2&&(o=t.imgColor[1]),s=this._pushColor(o);let a="#fff",c=0;t.imgColor&&t.imgColor.length>=3&&(a=t.imgColor[2]),c=this._pushColor(a),void 0!==this.updateIndex&&(this.dataItems[this.updateIndex].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],this.dataItems[this.updateIndex].colorIndex=i,this.dataItems[this.updateIndex].fcolorIndex=c,this.dataItems[this.updateIndex].mcolorIndex=s,this.dataItems[this.updateIndex].pvalue=n,this.bz_all_nums[this.updateIndex].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]));try{const t=this.point.object3d.geometry.attributes.colorIndexs.array;this.point.updatepoints(this.dataItems);for(let e=0;e<this.dataItems.length;e++)t[3*e+0]=this.dataItems[e].colorIndex,t[3*e+1]=this.dataItems[e].mcolorIndex,t[3*e+2]=this.dataItems[e].fcolorIndex;this.point.object3d.geometry.attributes.colorIndexs.needsUpdate=!0,this.updateIndex=this.updateIndex+1>this.pLen?0:this.updateIndex+1}catch(t){throw t}}async changePositionValue(t,e){if(this.point){this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];this.colorIndex=0,this.paraName=e||this.paraName,t.slice(0,1/0).map(t=>{const e=isNaN(parseFloat(t.value))?t.value?t.value:"--":t.value,n=parseFloat(t.opavalue)?parseFloat(t.opavalue):1;let r="#fff",i=0;t.imgColor&&t.imgColor.length>=1&&(r=t.imgColor[0]),i=this._pushColor(r);let o="#fff",s=0;t.imgColor&&t.imgColor.length>=2&&(o=t.imgColor[1]),s=this._pushColor(o);let a="#fff",c=0;t.imgColor&&t.imgColor.length>=3&&(a=t.imgColor[2]),c=this._pushColor(a);const l=(parseFloat(t.windDirection)||0)+.01,u=parseFloat(l*(Math.PI/180)),h=this.findItemByCode(t.code);void 0!==h&&(this.dataItems[h].coordinate=[parseFloat(t.longitude),parseFloat(t.latitude)],this.dataItems[h].colorIndex=i,this.dataItems[h].rotation=u,this.dataItems[h].fcolorIndex=c,this.dataItems[h].mcolorIndex=s,this.dataItems[h].pvalue=e,this.dataItems[h].opavalue=n,this.layerLabel&&this.all_labels[h].setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)]),this.Infolayer&&this.Infolayer.options.iconCode===t.code)&&this.Infolayer.getGeometries().forEach(e=>{e.setCoordinates([parseFloat(t.longitude),parseFloat(t.latitude)])})});try{const t=this.point.object3d.geometry.attributes.colorIndexs.array,e=this.point.object3d.geometry.attributes.markconfig.array;this.point.updatepoints(this.dataItems),this.rgbTexture=await this._loadRGBTexture(),this.shader.uniforms.colorstexture.value=this.rgbTexture,this.shader.uniforms.colorNum.value=Object.keys(this.ptcolors).length-1;for(let n=0;n<this.dataItems.length;n++)t[3*n+0]=this.dataItems[n].colorIndex,t[3*n+1]=this.dataItems[n].mcolorIndex,t[3*n+2]=this.dataItems[n].fcolorIndex,e[3*n+0]=this.dataItems[n].opavalue,e[3*n+1]=this.dataItems[n].rotation;this.point.object3d.geometry.attributes.colorIndexs.needsUpdate=!0,this.point.object3d.geometry.attributes.markconfig.needsUpdate=!0}catch(t){throw t}}}async changeParaValue(t,e){if(this.point){this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];if(this.colorIndex=0,this.paraName=e||this.paraName,t.slice(0,1/0).map(t=>{const e=isNaN(parseFloat(t.value))?t.value?t.value:"--":t.value,n=parseFloat(t.opavalue)?parseFloat(t.opavalue):1;let r="#fff",i=0,o="#fff",s=0,a="#fff",c=0;if(t.imgColor)if(Array.isArray(t.imgColor))t.imgColor.length>=1&&(r=t.imgColor[0]),t.imgColor.length>=2&&(o=t.imgColor[1]),t.imgColor.length>=3&&(a=t.imgColor[2]);else{const e=t.imgColor;e.b&&(r=e.b),e.m&&(o=e.m),e.f&&(a=e.f)}i=this._pushColor(r),s=this._pushColor(o),c=this._pushColor(a);const l=(parseFloat(t.windDirection)||0)+.01,u=parseFloat(l*(Math.PI/180)),h=this.findItemByCode(t.code);if(void 0!==h&&(this.dataItems[h].colorIndex=i,this.dataItems[h].rotation=u,this.dataItems[h].fcolorIndex=c,this.dataItems[h].mcolorIndex=s,this.dataItems[h].pvalue=e,this.dataItems[h].opavalue=n,this.bzlayerNum&&(this.bz_all_nums[h].getProperties().name=e,t.valueFontColr))){const e=t.valueFontColr;this.bz_all_nums[h].updateSymbol({textName:"{name}",textFill:e})}}),this.rgbTexture=await this._loadRGBTexture(),this.shader){this.shader.uniforms.colorstexture.value=this.rgbTexture,this.shader.uniforms.colorNum.value=Object.keys(this.ptcolors).length-1;const t=this.point.object3d.geometry.attributes.colorIndexs.array,e=this.point.object3d.geometry.attributes.markconfig.array;for(let n=0;n<this.dataItems.length;n++)t[3*n+0]=this.dataItems[n].colorIndex,t[3*n+1]=this.dataItems[n].mcolorIndex,t[3*n+2]=this.dataItems[n].fcolorIndex,e[3*n+0]=this.dataItems[n].opavalue,e[3*n+1]=this.dataItems[n].rotation;this.point.object3d.geometry.attributes.colorIndexs.needsUpdate=!0,this.point.object3d.geometry.attributes.markconfig.needsUpdate=!0}}}dispose(t){this.InforItems.length>0&&this.hideInfoWindows(),this.bzlayerNum&&(this.map.removeLayer(this.bzlayerNum),this.bz_all_nums=[]),this.bound&&delete this.bound,this.highlightmaterial&&this.highlightmaterial.dispose(),this.secTexture&&this.secTexture.dispose(),this._geometryCache&&this._geometryCache.dispose(),this.destroySecObjects(),this.rgbTexture&&this.rgbTexture.dispose(),this.colorsArray&&delete this.colorsArray;for(const t in this.ptcolors)delete this.ptcolors[t];if(this.bzlayerPtNum){this.map.removeLayer(this.bzlayerPtNum),this.bz_all_ptnums=[];for(const t in this.isAddLabelItems)delete this.isAddLabelItems[t];this.isAddLabelItems=null}super.dispose(t)}_createShaderPol(t,e,n,r,i,o){return t.uniforms.texture1={value:e},t.uniforms.textureSize={value:n},t.uniforms.size1={value:r},t.uniforms.flag={value:1},t.uniforms.colorstexture={value:i},t.uniforms.colorNum={value:o-1},t.vertexShader="uniform float size1;\n attribute vec3 colorIndexs;\n attribute vec4 imgconfig;\n attribute vec4 imgv;\n attribute vec4 imgm;\n attribute vec4 imgf;\n attribute float visibility;\n attribute vec3 markconfig; //opavalue,rotation\n\n varying vec3 vColorIndexs;\n varying vec4 vImgv;\n varying vec4 vImgm;\n varying vec4 vImgf;\n varying vec4 vimgconfig;\n varying float vVisible;\n varying vec3 vMarkconfig;\n "+t.vertexShader,t.vertexShader=t.vertexShader.replace("#include <project_vertex>","\n #include <project_vertex>\n vVisible = visibility;\n vColorIndexs = colorIndexs;\n vImgv = imgv;\n vImgm = imgm;\n vImgf = imgf;\n vimgconfig = imgconfig;\n vMarkconfig = markconfig;\n ").replace("gl_PointSize = size;","\n gl_PointSize = size1;\n "),t.fragmentShader="\n uniform sampler2D texture1;\n uniform float textureSize;\n uniform sampler2D colorstexture;\n uniform float colorNum;\n varying float vVisible;\n varying vec3 vMarkconfig;\n varying vec3 vColorIndexs; // 第一个是背景色索引\n varying vec4 vimgconfig; //num,背景颜色flag,中间颜色flag,前景颜色flag\n varying vec4 vImgv;\n varying vec4 vImgm;\n varying vec4 vImgf;\n uniform int flag;\n "+t.fragmentShader,t.fragmentShader=t.fragmentShader.replace("gl_FragColor = vec4( outgoingLight, diffuseColor.a );","\n float width = gl_PointCoord.x / textureSize * vImgv.x;\n float height = gl_PointCoord.y / textureSize * vImgv.y;\n float x = vImgv.z;\n float y = 1.0 - vImgv.w;\n vec2 uv = vec2(x + width, y - height);\n\n float xx = x + 0.5 / textureSize * vImgv.x;\n float yy = y - 0.5 / textureSize * vImgv.y;\n float angle = 1.0;\n float s = sin(vMarkconfig.y);\n float c = cos(vMarkconfig.y);\n mat2 rotationMatrix = mat2( c, s,\n -s, c);\n vec2 pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n\n\n vec4 rotatedTexture = texture2D( texture1, uv);\n vec4 texColor;\n if (vimgconfig.y > 1.0) {\n vec3 c = texture2D(colorstexture, vec2(vColorIndexs.x / colorNum, 0.)).rgb;\n texColor = vec4(c, 1.0) * rotatedTexture;\n } else {\n texColor = rotatedTexture;\n }\n // 图片数大于1\n if (vimgconfig.x > 1.0 && flag == 1) {\n /*width = gl_PointCoord.x / textureSize * vImgv1.x;\n height = gl_PointCoord.y / textureSize * vImgv1.y;\n x = vImgv1.z;\n y = 1.0 - vImgv1.w;\n vec4 img = texture2D( texture1, vec2(x + width, y - height) );\n vec4 Ca;\n img.a *= img.r;\n if(vimgconfig.z > 1.0){\n Ca = vec4(vFcolor, 1.0) * img;\n }\n else{\n Ca = img;\n }\n //Ca.a *= Ca.r;\n vec3 rgb = mix(texColor.xyz * texColor.a, Ca.xyz, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb / a, a);\n gl_FragColor = dst;*/\n\n width = gl_PointCoord.x / textureSize * vImgm.x;\n height = gl_PointCoord.y / textureSize * vImgm.y;\n x = vImgm.z;\n y = 1.0 - vImgm.w;\n\n vec4 img;\n if (vMarkconfig.z > 1.0) {\n uv = vec2(x + width, y - height);\n xx = x + 0.5 / textureSize * vImgm.x;\n yy = y - 0.5 / textureSize * vImgm.y;\n pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n img = texture2D( texture1, uv);\n } else {\n img = texture2D( texture1, vec2(x + width, y - height) );\n }\n\n vec4 Ca;\n //img.a *= img.r; //有这一行代码,图片中有黑色的话,会过滤掉\n if(vimgconfig.z > 1.0){\n vec3 c1 = texture2D(colorstexture, vec2(vColorIndexs.y / colorNum, 0.)).rgb;\n Ca = vec4(c1, 1.0) * img;\n }\n else{\n Ca = img;\n }\n //Ca.a *= Ca.r;\n vec3 rgb = mix(texColor.xyz * texColor.a, Ca.xyz, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb / a, a);\n\n if (vimgconfig.x > 2.0) {\n width = gl_PointCoord.x / textureSize * vImgf.x;\n height = gl_PointCoord.y / textureSize * vImgf.y;\n x = vImgf.z;\n y = 1.0 - vImgf.w;\n\n vec4 img1;\n if (vMarkconfig.z > 1.0) {\n uv = vec2(x + width, y - height);\n xx = x + 0.5 / textureSize * vImgf.x;\n yy = y - 0.5 / textureSize * vImgf.y;\n pivot = vec2( xx, yy);\n uv = rotationMatrix * (uv - pivot) + pivot;\n img1 = texture2D( texture1, uv);\n } else {\n img1 = texture2D( texture1, vec2(x + width, y - height) );\n }\n\n vec4 Ca1;\n //img1.a *= img1.r; //有这一行代码,图片中有黑色的话,会过滤掉\n if(vimgconfig.w > 1.0){\n vec3 c1 = texture2D(colorstexture, vec2(vColorIndexs.z / colorNum, 0.)).rgb;\n Ca1 = vec4(c1, 1.0) * img1;\n }\n else{\n Ca1 = img1;\n }\n //Ca.a *= Ca.r;\n vec3 rgb1 = mix(dst.xyz * dst.a, Ca1.xyz, Ca1.a);\n float a1 = Ca1.a + dst.a * (1. - Ca1.a);\n vec4 dst1 = vec4(rgb1 / a1, a1);\n\n gl_FragColor = dst1;\n } else {\n gl_FragColor = dst;\n }\n\n // 第三种\n /*texColor.xyz *= texColor.a; //premultiply source\n gl_FragColor = mix(texColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n\n\n /*vec3 rgb = mix(texColor.xyz * texColor.a, Ca.rgb, Ca.a);\n float a = Ca.a + texColor.a * (1. - Ca.a);\n vec4 dst = vec4(rgb, a);\n gl_FragColor = dst;*/\n\n // 第一种\n /*vec4 out_Color;\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n gl_FragColor = mix(gl_FragColor, Ca, Ca.a);\n gl_FragColor.rgb /= gl_FragColor.a;*/\n\n } else {\n outgoingLight *= texColor.xyz;\n gl_FragColor = vec4( outgoingLight, texColor.a * diffuseColor.a );\n }\n gl_FragColor.a *= vMarkconfig.x;\n\n if (vVisible < 0.5) discard;\n "),t}}__webpack_exports__.a=simpleMark},4870:function(t,e,n){"use strict";n("88a3")},"491b":function(t,e,n){"use strict";var r=n("6dec"),i=n("e058"),o=n("2774"),s=n("688d"),a=n("065f"),c=n("41dc"),l=n("b136"),u=n("a47a"),h=n("3f61"),d=n("f189"),f=n("548d"),p=n("20e2"),m=n("cfa6"),g=p("replace"),v=TypeError,y=o("".indexOf),_=o("".replace),b=o("".slice),x=Math.max,w=function(t,e,n){return n>t.length?-1:""===e?n:y(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,o,p,S,M,A,C,E,T=s(this),I=0,P=0,L="";if(!c(t)){if((n=l(t))&&(r=u(s(d(t))),!~y(r,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(o=h(t,g))return i(o,t,T,e);if(m&&n)return _(u(T),t,e)}for(p=u(T),S=u(t),(M=a(e))||(e=u(e)),A=S.length,C=x(1,A),I=w(p,S,0);-1!==I;)E=M?u(e(S,I,p)):f(S,p,I,[],void 0,e),L+=b(p,P,I)+E,P=I+A,I=w(p,S,I+C);return P<p.length&&(L+=b(p,P)),L}})},"4c9f":function(t,e,n){var r=n("e058"),i=n("9bf6"),o=n("f5c1"),s=n("3f61"),a=n("cf6f"),c=n("20e2"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=s(t,u);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},"4d7d":function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==u.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var a=i.test(t);return a||o.test(t)?s(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,s,a,c,l=0,u=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,o=i;return r=i=void 0,l=e,s=t.apply(o,n)}function _(t){return l=t,a=setTimeout(x,e),u?y(t):s}function b(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-l>=o}function x(){var t=f();if(b(t))return w(t);a=setTimeout(x,function(t){var n=e-(t-c);return g?d(n,o-(t-l)):n}(t))}function w(t){return a=void 0,v&&r?y(t):(r=i=void 0,s)}function S(){var t=f(),n=b(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return _(c);if(g)return a=setTimeout(x,e),y(c)}return void 0===a&&(a=setTimeout(x,e)),s}return e=m(e)||0,p(n)&&(u=!!n.leading,o=(g="maxWait"in n)?h(m(n.maxWait)||0,e):o,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=i=a=void 0},S.flush=function(){return void 0===a?s:w(f())},S}}).call(this,n("2409"))},"4e5e":function(t,e,n){var r=n("9887");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"53e9":function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},5451:function(t,e,n){"use strict";var r,i,o,s=n("42ef"),a=n("58bc"),c=n("bed0"),l=n("065f"),u=n("9bf6"),h=n("11b2"),d=n("2063"),f=n("597a"),p=n("1f97"),m=n("7ccd"),g=n("cea5").f,v=n("d133"),y=n("d424"),_=n("47ab"),b=n("20e2"),x=n("e435"),w=n("fbfa"),S=w.enforce,M=w.get,A=c.Int8Array,C=A&&A.prototype,E=c.Uint8ClampedArray,T=E&&E.prototype,I=A&&y(A),P=C&&y(C),L=Object.prototype,R=c.TypeError,O=b("toStringTag"),B=x("TYPED_ARRAY_TAG"),k="TypedArrayConstructor",D=s&&!!_&&"Opera"!==d(c.opera),F=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},j={BigInt64Array:8,BigUint64Array:8},U=function(t){var e=y(t);if(u(e)){var n=M(e);return n&&h(n,k)?n[k]:U(e)}},z=function(t){if(!u(t))return!1;var e=d(t);return h(N,e)||h(j,e)};for(r in N)(o=(i=c[r])&&i.prototype)?S(o)[k]=i:D=!1;for(r in j)(o=(i=c[r])&&i.prototype)&&(S(o)[k]=i);if((!D||!l(I)||I===Function.prototype)&&(I=function(){throw R("Incorrect invocation")},D))for(r in N)c[r]&&_(c[r],I);if((!D||!P||P===L)&&(P=I.prototype,D))for(r in N)c[r]&&_(c[r].prototype,P);if(D&&y(T)!==P&&_(T,P),a&&!h(P,O))for(r in F=!0,g(P,O,{get:function(){return u(this)?this[B]:void 0}}),N)c[r]&&p(c[r],B,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&B,aTypedArray:function(t){if(z(t))return t;throw R("Target is not a typed array")},aTypedArrayConstructor:function(t){if(l(t)&&(!_||v(I,t)))return t;throw R(f(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(a){if(n)for(var i in N){var o=c[i];if(o&&h(o.prototype,t))try{delete o.prototype[t]}catch(n){try{o.prototype[t]=e}catch(t){}}}P[t]&&!n||m(P,t,n?e:D&&C[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(a){if(_){if(n)for(r in N)if((i=c[r])&&h(i,t))try{delete i[t]}catch(t){}if(I[t]&&!n)return;try{return m(I,t,n?e:D&&I[t]||e)}catch(t){}}for(r in N)!(i=c[r])||i[t]&&!n||m(i,t,e)}},getTypedArrayConstructor:U,isView:function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||h(N,e)||h(j,e)},isTypedArray:z,TypedArray:I,TypedArrayPrototype:P}},"548d":function(t,e,n){var r=n("2774"),i=n("c197"),o=Math.floor,s=r("".charAt),a=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,d){var f=n+t.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=l),a(d,m,(function(i,a){var l;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,n);case"'":return c(e,f);case"<":l=h[c(a,1,-1)];break;default:var u=+a;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?s(a,1):r[d-1]+s(a,1):i}l=r[u-1]}return void 0===l?"":l}))}},"562f":function(t,e,n){(function(t,n){var r="[object Map]",i="[object Promise]",o="[object Set]",s="[object WeakMap]",a="[object DataView]",c=/^\[object .+?Constructor\]$/,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,h=l||u||Function("return this")(),d=e&&!e.nodeType&&e,f=d&&"object"==typeof n&&n&&!n.nodeType&&n,p=f&&f.exports===d,m=Function.prototype,g=Object.prototype,v=h["__core-js_shared__"],y=function(){var t=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),_=m.toString,b=g.hasOwnProperty,x=g.toString,w=RegExp("^"+_.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=p?h.Buffer:void 0,M=g.propertyIsEnumerable,A=S?S.isBuffer:void 0,C=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),E=j(h,"DataView"),T=j(h,"Map"),I=j(h,"Promise"),P=j(h,"Set"),L=j(h,"WeakMap"),R=!M.call({valueOf:1},"valueOf"),O=z(E),B=z(T),k=z(I),D=z(P),F=z(L);function N(t){return!(!Q(t)||function(t){return!!y&&y in t}(t))&&(Z(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?w:c).test(z(t))}function j(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return N(n)?n:void 0}var U=function(t){return x.call(t)};function z(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function G(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&W(t)}(t)&&b.call(t,"callee")&&(!M.call(t,"callee")||"[object Arguments]"==x.call(t))}(E&&U(new E(new ArrayBuffer(1)))!=a||T&&U(new T)!=r||I&&U(I.resolve())!=i||P&&U(new P)!=o||L&&U(new L)!=s)&&(U=function(t){var e=x.call(t),n="[object Object]"==e?t.constructor:void 0,c=n?z(n):void 0;if(c)switch(c){case O:return a;case B:return r;case k:return i;case D:return o;case F:return s}return e});var H=Array.isArray;function W(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Z(t)}var V=A||function(){return!1};function Z(t){var e=Q(t)?x.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Q(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}n.exports=function(t){if(W(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||V(t)||G(t)))return!t.length;var e=U(t);if(e==r||e==o)return!t.size;if(R||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||g)}(t))return!C(t).length;for(var n in t)if(b.call(t,n))return!1;return!0}}).call(this,n("2409"),n("adb6")(t))},"566f":function(t,e,n){var r=n("9887"),i=n("bed0");t.exports="process"==r(i.process)},"571a":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"58bc":function(t,e,n){var r=n("bd71");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5925:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,l=!1,u=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){l=n,h=i||{};var s=r(t,e);return m(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i],c=o[a.id];c.refs--,n.push(c)}for(e?m(s=r(t,e)):s=[],i=0;i<n.length;i++)if(0===(c=n[i]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,r=document.querySelector("style["+d+'~="'+t.id+'"]');if(r){if(l)return u;r.parentNode.removeChild(r)}if(f){var i=c++;r=a||(a=g()),e=_.bind(null,r,i,!1),n=_.bind(null,r,i,!0)}else r=g(),e=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function _(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function b(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(d,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"597a":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},"5b01":function(t,e,n){var r=n("9bf6"),i=n("1f97");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},"5cb9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAKN2lDQ1BzUkdCIElFQzYxOTY2LTIuMQAAeJydlndUU9kWh8+9N71QkhCKlNBraFICSA29SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioUBUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3Wfvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA2wA4HCzs0IW+EYCmQJ82IxsmRP4F726DiD5+yrTP4zBAP+flLlZIjEAUJiM5/L42VwZF8k4PVecJbdPyZi2NE3OMErOIlmCMlaTc/IsW3z2mWUPOfMyhDwZy3PO4mXw5Nwn4405Er6MkWAZF+cI+LkyviZjg3RJhkDGb+SxGXxONgAoktwu5nNTZGwtY5IoMoIt43kA4EjJX/DSL1jMzxPLD8XOzFouEiSniBkmXFOGjZMTi+HPz03ni8XMMA43jSPiMdiZGVkc4XIAZs/8WRR5bRmyIjvYODk4MG0tbb4o1H9d/JuS93aWXoR/7hlEH/jD9ld+mQ0AsKZltdn6h21pFQBd6wFQu/2HzWAvAIqyvnUOfXEeunxeUsTiLGcrq9zcXEsBn2spL+jv+p8Of0NffM9Svt3v5WF485M4knQxQ143bmZ6pkTEyM7icPkM5p+H+B8H/nUeFhH8JL6IL5RFRMumTCBMlrVbyBOIBZlChkD4n5r4D8P+pNm5lona+BHQllgCpSEaQH4eACgqESAJe2Qr0O99C8ZHA/nNi9GZmJ37z4L+fVe4TP7IFiR/jmNHRDK4ElHO7Jr8WgI0IABFQAPqQBvoAxPABLbAEbgAD+ADAkEoiARxYDHgghSQAUQgFxSAtaAYlIKtYCeoBnWgETSDNnAYdIFj4DQ4By6By2AE3AFSMA6egCnwCsxAEISFyBAVUod0IEPIHLKFWJAb5AMFQxFQHJQIJUNCSAIVQOugUqgcqobqoWboW+godBq6AA1Dt6BRaBL6FXoHIzAJpsFasBFsBbNgTzgIjoQXwcnwMjgfLoK3wJVwA3wQ7oRPw5fgEVgKP4GnEYAQETqiizARFsJGQpF4JAkRIauQEqQCaUDakB6kH7mKSJGnyFsUBkVFMVBMlAvKHxWF4qKWoVahNqOqUQdQnag+1FXUKGoK9RFNRmuizdHO6AB0LDoZnYsuRlegm9Ad6LPoEfQ4+hUGg6FjjDGOGH9MHCYVswKzGbMb0445hRnGjGGmsVisOtYc64oNxXKwYmwxtgp7EHsSewU7jn2DI+J0cLY4X1w8TogrxFXgWnAncFdwE7gZvBLeEO+MD8Xz8MvxZfhGfA9+CD+OnyEoE4wJroRIQiphLaGS0EY4S7hLeEEkEvWITsRwooC4hlhJPEQ8TxwlviVRSGYkNimBJCFtIe0nnSLdIr0gk8lGZA9yPFlM3kJuJp8h3ye/UaAqWCoEKPAUVivUKHQqXFF4pohXNFT0VFysmK9YoXhEcUjxqRJeyUiJrcRRWqVUo3RU6YbStDJV2UY5VDlDebNyi/IF5UcULMWI4kPhUYoo+yhnKGNUhKpPZVO51HXURupZ6jgNQzOmBdBSaaW0b2iDtCkVioqdSrRKnkqNynEVKR2hG9ED6On0Mvph+nX6O1UtVU9Vvuom1TbVK6qv1eaoeajx1UrU2tVG1N6pM9R91NPUt6l3qd/TQGmYaYRr5Grs0Tir8XQObY7LHO6ckjmH59zWhDXNNCM0V2ju0xzQnNbS1vLTytKq0jqj9VSbru2hnaq9Q/uE9qQOVcdNR6CzQ+ekzmOGCsOTkc6oZPQxpnQ1df11Jbr1uoO6M3rGelF6hXrtevf0Cfos/ST9Hfq9+lMGOgYhBgUGrQa3DfGGLMMUw12G/YavjYyNYow2GHUZPTJWMw4wzjduNb5rQjZxN1lm0mByzRRjyjJNM91tetkMNrM3SzGrMRsyh80dzAXmu82HLdAWThZCiwaLG0wS05OZw2xljlrSLYMtCy27LJ9ZGVjFW22z6rf6aG1vnW7daH3HhmITaFNo02Pzq62ZLde2xvbaXPJc37mr53bPfW5nbse322N3055qH2K/wb7X/oODo4PIoc1h0tHAMdGx1vEGi8YKY21mnXdCO3k5rXY65vTW2cFZ7HzY+RcXpkuaS4vLo3nG8/jzGueNueq5clzrXaVuDLdEt71uUnddd457g/sDD30PnkeTx4SnqWeq50HPZ17WXiKvDq/XbGf2SvYpb8Tbz7vEe9CH4hPlU+1z31fPN9m31XfKz95vhd8pf7R/kP82/xsBWgHcgOaAqUDHwJWBfUGkoAVB1UEPgs2CRcE9IXBIYMj2kLvzDecL53eFgtCA0O2h98KMw5aFfR+OCQ8Lrwl/GGETURDRv4C6YMmClgWvIr0iyyLvRJlESaJ6oxWjE6Kbo1/HeMeUx0hjrWJXxl6K04gTxHXHY+Oj45vipxf6LNy5cDzBPqE44foi40V5iy4s1licvvj4EsUlnCVHEtGJMYktie85oZwGzvTSgKW1S6e4bO4u7hOeB28Hb5Lvyi/nTyS5JpUnPUp2Td6ePJninlKR8lTAFlQLnqf6p9alvk4LTduf9ik9Jr09A5eRmHFUSBGmCfsytTPzMoezzLOKs6TLnJftXDYlChI1ZUPZi7K7xTTZz9SAxESyXjKa45ZTk/MmNzr3SJ5ynjBvYLnZ8k3LJ/J9879egVrBXdFboFuwtmB0pefK+lXQqqWrelfrry5aPb7Gb82BtYS1aWt/KLQuLC98uS5mXU+RVtGaorH1futbixWKRcU3NrhsqNuI2ijYOLhp7qaqTR9LeCUXS61LK0rfb+ZuvviVzVeVX33akrRlsMyhbM9WzFbh1uvb3LcdKFcuzy8f2x6yvXMHY0fJjpc7l+y8UGFXUbeLsEuyS1oZXNldZVC1tep9dUr1SI1XTXutZu2m2te7ebuv7PHY01anVVda926vYO/Ner/6zgajhop9mH05+x42Rjf2f836urlJo6m06cN+4X7pgYgDfc2Ozc0tmi1lrXCrpHXyYMLBy994f9Pdxmyrb6e3lx4ChySHHn+b+O31w0GHe4+wjrR9Z/hdbQe1o6QT6lzeOdWV0iXtjusePhp4tLfHpafje8vv9x/TPVZzXOV42QnCiaITn07mn5w+lXXq6enk02O9S3rvnIk9c60vvG/wbNDZ8+d8z53p9+w/ed71/LELzheOXmRd7LrkcKlzwH6g4wf7HzoGHQY7hxyHui87Xe4Znjd84or7ldNXva+euxZw7dLI/JHh61HXb95IuCG9ybv56Fb6ree3c27P3FlzF3235J7SvYr7mvcbfjT9sV3qID0+6j068GDBgztj3LEnP2X/9H686CH5YcWEzkTzI9tHxyZ9Jy8/Xvh4/EnWk5mnxT8r/1z7zOTZd794/DIwFTs1/lz0/NOvm1+ov9j/0u5l73TY9P1XGa9mXpe8UX9z4C3rbf+7mHcTM7nvse8rP5h+6PkY9PHup4xPn34D94Tz+49wZioAAAAJcEhZcwAACxIAAAsSAdLdfvwAAALeSURBVHicVZPNaxNBGMbfnZ3srmuakCZpGpNSWjDZYgqW3LzYgkir1kDBHPwHBA96UHrUkwdBT56KFPFv6KEWpBUMtBFaanuoVULSpMQkzUeTNNtssh/OmxrBuQ0zz/PM+76/oZZlAa7JSSIYhiKyvSgBDFiEuIhlOUyOa3CmWWsDNDmO03j+h7a/b3ZQQ/tCXQ87ZJ64QNdljudlKghuSZbdeqdTb6uqKBuGA3heVfVwjd1voAHtCy/xvM/kDJ8oi+6Z23PvBUGwsySLJ8Q6b7fr28nNV6WT4h67J5zrYQxsUHwqJqLw5vStR3fuzce7eheOsllo1Ovg9XpBURRPLBZ782F5+W1yK7Em83zn3FA0ijXiU5VI5MazxcUHkiRBOpOGcrkMzUYD7HY7DA0NwejoKO/xep8/efzod+HouGJxnEixOVhjbGHhRSAQ4Cy4aGClXOkZ+P1+CAaDgH11uVxk9u791x+XlqYl0xyg2FWv3389rCh8tVoFTB4cHISpqSnIHecgEolAu92GWq0GrVYLxsbGiNPtvlqpVDSK47CJ4khLVUkqlYKLxQEhHESuRSD5LQl6V4f+SJkRL0pSgOmyFOfITtRMJsPOLU5VVWg2z3rieDwOiUQCsrkcCDYbsAmAYRiWZZqnqKMIQPP0dDudTuuiKNq63W7vUig0AU6nE6LRKHQ6HSgWi6BpGk7AaDWbv1BHkZxGtZrP53J7V0ZGosyg193h4WHGBA9ejxfGx8fBNE3AnhTy+WSrXj9pc1yTInJIztbm18WZy7MrysSE7PF4YMDhAHYGoiSCz+eDs7MzODw4KO5sJ18SSlWWrFFkFZFDcjY+f5onAO/cbndIFIQeuoQQKJVKnS/r6z/XVleeMuaKqmHUKD3UKDKKqCFySM7G6urD/d3dkD8YnGMmAVbrQa1S2Slks98x8a/wgm10/2fAkENySoVCo1gqpf77VazG3lNZYv9X/QEJM4cEk5QMqQAAAABJRU5ErkJggg=="},"5d0e":function(t,e,n){var r=n("4c9f"),i=n("f5c1");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},"5d56":function(t,e,n){"use strict";(function(t,r,i){n.d(e,"a",(function(){return it}));var o=n("f7eb"),s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
19
19
  /*!
20
- * author: sakitam-fdd <smilefdd@gmail.com>
20
+ * author: sakitam-fdd <smilefdd@gmail.com>
21
21
  * @sakitam-gis/maptalks-wind v1.1.1-alpha.1
22
22
  * build-time: 2021-4-9 18:12
23
23
  * LICENSE: MIT
@@ -38,7 +38,7 @@ See the Apache Version 2.0 License for specific language governing permissions
38
38
  and limitations under the License.
39
39
  ***************************************************************************** */function a(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){return(c=Object.assign||function(t){for(var e,n=arguments,r=1,i=arguments.length;r<i;r++)for(var o in e=n[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};
40
40
  /*!
41
- * author: sakitam-fdd <smilefdd@gmail.com>
41
+ * author: sakitam-fdd <smilefdd@gmail.com>
42
42
  * wind-core v1.1.1-alpha.1
43
43
  * build-time: 2021-3-30 18:18
44
44
  * LICENSE: MIT
@@ -59,7 +59,7 @@ See the Apache Version 2.0 License for specific language governing permissions
59
59
  and limitations under the License.
60
60
  ***************************************************************************** */function l(){for(var t=arguments,e=0,n=0,r=arguments.length;n<r;n++)e+=t[n].length;var i=Array(e),o=0;for(n=0;n<r;n++)for(var s=arguments[n],a=0,c=s.length;a<c;a++,o++)i[o]=s[a];return i}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){var n=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),i=1;i<arguments.length;i++){var o=n[i];if(null!=o)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},writable:!0,configurable:!0});var u=Object.prototype.hasOwnProperty,h="undefined"!=typeof Symbol?Symbol.toStringTag:void 0;function d(t){if(!function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}(t))return!1;var e=function(t){if(null===t)return void 0===t?"[object Undefined]":"[object Null]";if(!h||!(h in Object(t)))return toString.call(t);var e=u.call(t,h),n=t[h],r=!1;try{t[h]=void 0,r=!0}catch(t){}var i=Object.prototype.toString.call(t);return r&&(e?t[h]=n:delete t[h]),i}(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object Proxy]"===e}function f(t){return"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)}function p(t){for(var e=arguments,n=[],r=1;r<arguments.length;r++)n[r-1]=e[r];return Object.assign.apply(Object,l([t],n))}function m(t){console.warn("wind-layer: "+t)}function g(t){return null!=t&&!isNaN(t)}var v=function(){function t(t,e){this.u=t,this.v=e,this.m=this.magnitude()}return t.prototype.magnitude=function(){return Math.sqrt(this.u*this.u+this.v*this.v)},t.prototype.directionTo=function(){var t=Math.atan2(this.u,this.v)*(180/Math.PI);return t<0&&(t+=360),t},t.prototype.directionFrom=function(){return(this.directionTo()+180)%360},t}(),y=function(){function t(t){this.grid=[],this.xmin=t.xmin,this.xmax=t.xmax,this.ymin=t.ymin,this.ymax=t.ymax,this.cols=t.cols,this.rows=t.rows,this.us=t.us,this.vs=t.vs,this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaY<0&&this.ymin<this.ymax?console.warn("[wind-core]: The data is flipY"):(this.ymin=Math.min(t.ymax,t.ymin),this.ymax=Math.max(t.ymax,t.ymin)),this.isFields=!0;var e=Math.ceil((this.xmax-this.xmin)/t.deltaX),n=Math.ceil((this.ymax-this.ymin)/t.deltaY);e===this.cols&&n===this.rows||console.warn("[wind-core]: The data grid not equal"),this.isContinuous=Math.floor(this.cols*t.deltaX)>=360,this.wrappedX="wrappedX"in t?t.wrappedX:this.xmax>180,this.grid=this.buildGrid(),this.range=this.calculateRange()}return t.prototype.buildGrid=function(){for(var t=[],e=0,n=this,r=n.rows,i=n.cols,o=n.us,s=n.vs,a=0;a<r;a++){for(var c=[],l=0;l<i;l++,e++){var u=o[e],h=s[e],d=this.isValid(u)&&this.isValid(h);c[l]=d?new v(u,h):null}this.isContinuous&&c.push(c[0]),t[a]=c}return t},t.prototype.release=function(){this.grid=[]},t.prototype.extent=function(){return[this.xmin,this.ymin,this.xmax,this.ymax]},t.prototype.bilinearInterpolateVector=function(t,e,n,r,i,o){var s=1-t,a=1-e,c=s*a,l=t*a,u=s*e,h=t*e,d=n.u*c+r.u*l+i.u*u+o.u*h,f=n.v*c+r.v*l+i.v*u+o.v*h;return new v(d,f)},t.prototype.calculateRange=function(){if(this.grid&&this.grid[0]){for(var t,e,n=this.grid.length,r=this.grid[0].length,i=0;i<n;i++)for(var o=0;o<r;o++){var s=this.grid[i][o];if(null!==s){var a=s.m||s.magnitude();void 0===t?t=a:void 0===e?(e=a,t=Math.min(t,e),e=Math.max(t,e)):(t=Math.min(a,t),e=Math.max(a,e))}}return[t,e]}},t.prototype.isValid=function(t){return null!=t},t.prototype.getWrappedLongitudes=function(){var t=this.xmin,e=this.xmax;return this.wrappedX&&(this.isContinuous?(t=-180,e=180):(e=this.xmax-360,t=this.xmin-360)),[t,e]},t.prototype.contains=function(t,e){var n,r=this.getWrappedLongitudes(),i=r[0],o=r[1],s=t>=i&&t<=o;return n=this.deltaY>=0?e>=this.ymin&&e<=this.ymax:e>=this.ymax&&e<=this.ymin,s&&n},t.prototype.getDecimalIndexes=function(t,e){return[function(t,e){return t-e*Math.floor(t/e)}(t-this.xmin,360)/this.deltaX,(this.ymax-e)/this.deltaY]},t.prototype.valueAt=function(t,e){if(!this.contains(t,e))return null;var n=this.getDecimalIndexes(t,e),r=Math.floor(n[0]),i=Math.floor(n[1]),o=this.clampColumnIndex(r),s=this.clampRowIndex(i);return this.valueAtIndexes(o,s)},t.prototype.interpolatedValueAt=function(t,e){if(!this.contains(t,e))return null;var n=this.getDecimalIndexes(t,e),r=n[0],i=n[1];return this.interpolatePoint(r,i)},t.prototype.hasValueAt=function(t,e){return null!==this.valueAt(t,e)},t.prototype.interpolatePoint=function(t,e){var n=this.getFourSurroundingIndexes(t,e),r=n[0],i=n[1],o=n[2],s=n[3],a=this.getFourSurroundingValues(r,i,o,s);if(a){var c=a[0],l=a[1],u=a[2],h=a[3];return this.bilinearInterpolateVector(t-r,e-o,c,l,u,h)}return null},t.prototype.clampColumnIndex=function(t){var e=t;t<0&&(e=0);var n=this.cols-1;return t>n&&(e=n),e},t.prototype.clampRowIndex=function(t){var e=t;t<0&&(e=0);var n=this.rows-1;return t>n&&(e=n),e},t.prototype.getFourSurroundingIndexes=function(t,e){var n=Math.floor(t),r=n+1;this.isContinuous&&r>=this.cols&&(r=0),r=this.clampColumnIndex(r);var i=this.clampRowIndex(Math.floor(e));return[n,r,i,this.clampRowIndex(i+1)]},t.prototype.getFourSurroundingValues=function(t,e,n,r){var i;if(i=this.grid[n]){var o=i[t],s=i[e];if(this.isValid(o)&&this.isValid(s)&&(i=this.grid[r])){var a=i[t],c=i[e];if(this.isValid(a)&&this.isValid(c))return[o,s,a,c]}}return null},t.prototype.valueAtIndexes=function(t,e){return this.grid[e][t]},t.prototype.lonLatAtIndexes=function(t,e){return[this.longitudeAtX(t),this.latitudeAtY(e)]},t.prototype.longitudeAtX=function(t){var e=this.deltaX/2,n=this.xmin+e+t*this.deltaX;return this.wrappedX&&(n=n>180?n-360:n),n},t.prototype.latitudeAtY=function(t){var e=this.deltaY/2;return this.ymax-e-t*this.deltaY},t.prototype.randomize=function(t,e,n,r){void 0===t&&(t={});var i=Math.random()*(e||this.cols)|0,o=Math.random()*(n||this.rows)|0,s=r([i,o]);return null!==s?(t.x=s[0],t.y=s[1]):(t.x=this.longitudeAtX(i),t.y=this.latitudeAtY(o)),t},t.prototype.checkFields=function(){return this.isFields},t.prototype.startBatchInterpolate=function(t,e,n){},t}(),_={globalAlpha:.9,lineWidth:1,colorScale:"#fff",velocityScale:.04,maxAge:90,paths:800,frameRate:20,useCoordsDraw:!0,gpet:!0};function b(t,e,n,r){return Math.max(0,Math.min(r.length-1,Math.round((t-e)/(n-e)*(r.length-1))))}var x=function(){function t(t,e,n){if(this.particles=[],this.generated=!1,this.ctx=t,!this.ctx)throw new Error("ctx error");this.animate=this.animate.bind(this),this.setOptions(e),n&&this.updateData(n)}return t.prototype.setOptions=function(t){this.options=Object.assign({},_,t);var e=this.ctx.canvas,n=e.width,r=e.height;"particleAge"in t&&!("maxAge"in t)&&f(this.options.particleAge)&&(this.options.maxAge=this.options.particleAge),"particleMultiplier"in t&&!("paths"in t)&&f(this.options.particleMultiplier)&&(this.options.paths=Math.round(n*r*this.options.particleMultiplier)),this.prerender()},t.prototype.getOptions=function(){return this.options},t.prototype.updateData=function(t){this.field=t,this.generated&&(this.particles=this.prepareParticlePaths())},t.prototype.moveParticles=function(){for(var t=this.ctx.canvas,e=t.width,n=t.height,r=this.particles,i=this.options.maxAge,o=d(this.options.velocityScale)?this.options.velocityScale():this.options.velocityScale,s=0,a=r.length;s<a;s++){var c=r[s];c.age>i&&(c.age=0,this.field.randomize(c,e,n,this.unproject));var l=c.x,u=c.y,h=this.field.interpolatedValueAt(l,u);if(null===h)c.age=i;else{var f=l+h.u*o,p=u+h.v*o;this.field.hasValueAt(f,p)?(c.xt=f,c.yt=p,c.m=h.m):(c.x=f,c.y=p,c.age=i)}c.age++}},t.prototype.fadeIn=function(){var t=this.ctx.globalCompositeOperation;this.ctx.globalCompositeOperation="destination-in",this.ctx.fillRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.globalCompositeOperation=t},t.prototype.drawParticles=function(){var t,e=this.particles;this.fadeIn(),this.ctx.globalAlpha=this.options.globalAlpha,this.ctx.fillStyle="rgba(0, 0, 0, "+this.options.globalAlpha+")",this.ctx.lineWidth=f(this.options.lineWidth)?this.options.lineWidth:1,this.ctx.strokeStyle=function(t){return null!=t&&("string"==typeof t||null!==t.constructor&&t.constructor===String)}(this.options.colorScale)?this.options.colorScale:"#fff";var n=0,r=e.length;if(this.field&&r>0){var i=void 0,o=void 0;for(g(this.options.minVelocity)&&g(this.options.maxVelocity)?(i=this.options.minVelocity,o=this.options.maxVelocity):(i=(t=this.field.range)[0],o=t[1]);n<r;n++)this[this.options.useCoordsDraw?"drawCoordsParticle":"drawPixelParticle"](e[n],i,o)}},t.prototype.drawPixelParticle=function(t,e,n){var r=[t.x,t.y],i=[t.xt,t.yt];if(i&&r&&g(i[0])&&g(i[1])&&g(r[0])&&g(r[1])&&t.age<=this.options.maxAge){if(this.ctx.beginPath(),this.ctx.moveTo(r[0],r[1]),this.ctx.lineTo(i[0],i[1]),d(this.options.colorScale))this.ctx.strokeStyle=this.options.colorScale(t.m);else if(Array.isArray(this.options.colorScale)){var o=b(t.m,e,n,this.options.colorScale);this.ctx.strokeStyle=this.options.colorScale[o]}d(this.options.lineWidth)&&(this.ctx.lineWidth=this.options.lineWidth(t.m)),t.x=t.xt,t.y=t.yt,this.ctx.stroke()}},t.prototype.drawCoordsParticle=function(t,e,n){var r=[t.x,t.y],i=[t.xt,t.yt];if(i&&r&&g(i[0])&&g(i[1])&&g(r[0])&&g(r[1])&&this.intersectsCoordinate(i)&&t.age<=this.options.maxAge){var o=this.project(r),s=this.project(i);if(o&&s){if(this.ctx.beginPath(),this.ctx.moveTo(o[0],o[1]),this.ctx.lineTo(s[0],s[1]),t.x=t.xt,t.y=t.yt,d(this.options.colorScale))this.ctx.strokeStyle=this.options.colorScale(t.m);else if(Array.isArray(this.options.colorScale)){var a=b(t.m,e,n,this.options.colorScale);this.ctx.strokeStyle=this.options.colorScale[a]}d(this.options.lineWidth)&&(this.ctx.lineWidth=this.options.lineWidth(t.m)),this.ctx.stroke()}}},t.prototype.prepareParticlePaths=function(){var t=this.ctx.canvas,e=t.width,n=t.height,r="function"==typeof this.options.paths?this.options.paths(this):this.options.paths,i=[];if(!this.field)return[];"startBatchInterpolate"in this.field&&this.field.startBatchInterpolate(e,n,this.unproject);for(var o=0;o<r;o++)i.push(this.field.randomize({age:this.randomize()},e,n,this.unproject));return i},t.prototype.randomize=function(){return Math.floor(Math.random()*this.options.maxAge)},t.prototype.project=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];throw new Error("project must be overriden")},t.prototype.unproject=function(){for(var t=arguments,e=[],n=0;n<arguments.length;n++)e[n]=t[n];throw new Error("unproject must be overriden")},t.prototype.intersectsCoordinate=function(t){throw new Error("must be overriden")},t.prototype.clearCanvas=function(){this.stop(),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.forceStop=!1},t.prototype.start=function(){this.starting=!0,this.forceStop=!1,this._then=Date.now(),this.animate()},t.prototype.stop=function(){cancelAnimationFrame(this.animationLoop),this.starting=!1,this.forceStop=!0},t.prototype.animate=function(){this.animationLoop&&cancelAnimationFrame(this.animationLoop),this.animationLoop=requestAnimationFrame(this.animate);var t=Date.now(),e=t-this._then;e>this.options.frameRate&&(this._then=t-e%this.options.frameRate,this.render())},t.prototype.prerender=function(){this.generated=!1,this.field&&(this.particles=this.prepareParticlePaths(),this.generated=!0,this.starting||this.forceStop||(this.starting=!0,this._then=Date.now(),this.animate()))},t.prototype.render=function(){this.moveParticles(),this.drawParticles(),this.postrender()},t.prototype.postrender=function(){},t.Field=y,t}(),w=function(t,e){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
61
61
  /*!
62
- * author: sakitam-fdd <smilefdd@gmail.com>
62
+ * author: sakitam-fdd <smilefdd@gmail.com>
63
63
  * wind-gl-core v1.1.1-alpha.1
64
64
  * build-time: 2021-3-30 18:18
65
65
  * LICENSE: MIT
@@ -134,10 +134,7 @@ var i="_maptalks__internal_layer_",o=["MultiPoint","MultiLineString","MultiPolyg
134
134
  */
135
135
  var r=n("3560"),i=n("e248"),o=n("571a");function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=a(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var u=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(l(t,o+d)!==l(e,d)){h=!1;break}if(h)return o}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function b(t,e,n,r){return G(U(e,t.length-n),t,n,r)}function x(t,e,n,r){return G(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return x(t,e,n,r)}function S(t,e,n,r){return G(z(e),t,n,r)}function M(t,e,n,r){return G(function(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,s,a,c,l=t[i],u=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=j(t[o]);return i}function P(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function O(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function k(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||k(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,o){return o||k(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0?a(t,e):void 0!==n?"string"==typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(r,i),u=t.slice(e,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):O(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=c.isBuffer(t)?t:U(new c(t,r).toString()),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function j(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("2409"))},fddf:function(t,e,n){var r=n("cfa6"),i=n("1f1f");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}})},module.exports=e()}).call(this,__webpack_require__(165).setImmediate)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return ct})),n.d(e,"Axios",(function(){return lt})),n.d(e,"AxiosError",(function(){return ut})),n.d(e,"CanceledError",(function(){return ht})),n.d(e,"isCancel",(function(){return dt})),n.d(e,"CancelToken",(function(){return ft})),n.d(e,"VERSION",(function(){return pt})),n.d(e,"all",(function(){return mt})),n.d(e,"Cancel",(function(){return gt})),n.d(e,"isAxiosError",(function(){return vt})),n.d(e,"spread",(function(){return yt})),n.d(e,"toFormData",(function(){return _t})),n.d(e,"AxiosHeaders",(function(){return bt})),n.d(e,"HttpStatusCode",(function(){return xt})),n.d(e,"formToJSON",(function(){return wt})),n.d(e,"getAdapter",(function(){return St})),n.d(e,"mergeConfig",(function(){return Mt}));var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return v})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return b})),n.d(r,"hasStandardBrowserEnv",(function(){return y}));var i=n(0),o=n(85),s=n(32);function a(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function c(t,e){this._pairs=[],t&&Object(s.a)(t,this,e)}const l=c.prototype;l.append=function(t,e){this._pairs.push([t,e])},l.toString=function(t){const e=t?function(e){return t.call(this,e,a)}:a;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var u=c;function h(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d(t,e,n){if(!e)return t;const r=n&&n.encode||h,o=n&&n.serialize;let s;if(s=o?o(e,n):i.a.isURLSearchParams(e)?e.toString():new u(e,n).toString(r),s){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}var f=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){i.a.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},p=n(1),m={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:u,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const v="undefined"!=typeof window&&"undefined"!=typeof document,y=(_="undefined"!=typeof navigator&&navigator.product,v&&["ReactNative","NativeScript","NS"].indexOf(_)<0);var _;const b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var x={...r,...g};var w=function(t){function e(t,n,r,o){let s=t[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=t.length;if(s=!s&&i.a.isArray(r)?r.length:s,c)return i.a.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!a;r[s]&&i.a.isObject(r[s])||(r[s]=[]);return e(t,n,r[s],o)&&i.a.isArray(r[s])&&(r[s]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[s])),!a}if(i.a.isFormData(t)&&i.a.isFunction(t.entries)){const n={};return i.a.forEachEntry(t,(t,r)=>{e(function(t){return i.a.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null};const S={transitional:m,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=i.a.isObject(t);o&&i.a.isHTMLForm(t)&&(t=new FormData(t));if(i.a.isFormData(t))return r?JSON.stringify(w(t)):t;if(i.a.isArrayBuffer(t)||i.a.isBuffer(t)||i.a.isStream(t)||i.a.isFile(t)||i.a.isBlob(t))return t;if(i.a.isArrayBufferView(t))return t.buffer;if(i.a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Object(s.a)(t,new x.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return x.isNode&&i.a.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((a=i.a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Object(s.a)(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(i.a.isString(t))try{return(e||JSON.parse)(t),i.a.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||S.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&i.a.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw p.a.from(t,p.a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};i.a.forEach(["delete","get","head","post","put","patch"],t=>{S.headers[t]={}});var M=S;const A=i.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const C=Symbol("internals");function E(t){return t&&String(t).trim().toLowerCase()}function T(t){return!1===t||null==t?t:i.a.isArray(t)?t.map(T):String(t)}function I(t,e,n,r,o){return i.a.isFunction(r)?r.call(this,e,n):(o&&(e=n),i.a.isString(e)?i.a.isString(r)?-1!==e.indexOf(r):i.a.isRegExp(r)?r.test(e):void 0:void 0)}class P{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=E(e);if(!o)throw new Error("header name must be a non-empty string");const s=i.a.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||e]=T(t))}const s=(t,e)=>i.a.forEach(t,(t,n)=>o(t,n,e));return i.a.isPlainObject(t)||t instanceof this.constructor?s(t,e):i.a.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?s((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&A[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=E(t)){const n=i.a.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(i.a.isFunction(e))return e.call(this,t,n);if(i.a.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=E(t)){const n=i.a.findKey(this,t);return!(!n||void 0===this[n]||e&&!I(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=E(t)){const o=i.a.findKey(n,t);!o||e&&!I(0,n[o],o,e)||(delete n[o],r=!0)}}return i.a.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!I(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return i.a.forEach(this,(r,o)=>{const s=i.a.findKey(n,o);if(s)return e[s]=T(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=T(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return i.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&i.a.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[C]=this[C]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=E(t);e[r]||(!function(t,e){const n=i.a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})})}(n,t),e[r]=!0)}return i.a.isArray(t)?t.forEach(r):r(t),this}}P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),i.a.reduceDescriptors(P.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),i.a.freezeMethods(P);var L=P;function R(t,e){const n=this||M,r=e||n,o=L.from(r.headers);let s=r.data;return i.a.forEach(t,(function(t){s=t.call(n,s,o.normalize(),e?e.status:void 0)})),o.normalize(),s}function O(t){return!(!t||!t.__CANCEL__)}function B(t,e,n){p.a.call(this,null==t?"canceled":t,p.a.ERR_CANCELED,e,n),this.name="CanceledError"}i.a.inherits(B,p.a,{__CANCEL__:!0});var k=B,D=n(86);var F=x.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const a=[t+"="+encodeURIComponent(e)];i.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.a.isString(r)&&a.push("path="+r),i.a.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function N(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var j=x.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=i.a.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};var U=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),l=r[s];i||(i=c),n[o]=a,r[o]=c;let u=s,h=0;for(;u!==o;)h+=n[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const d=l&&c-l;return d?Math.round(1e3*h/d):void 0}};function z(t,e){let n=0;const r=U(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,c=r(a);n=o;const l={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:i};l[e?"download":"upload"]=!0,t(l)}}var G="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=L.from(t.headers).normalize();let s,a,{responseType:c,withXSRFToken:l}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}if(i.a.isFormData(r))if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[t,...e]=a?a.split(";").map(t=>t.trim()).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let h=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const f=N(t.baseURL,t.url);function g(){if(!h)return;const r=L.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new p.a("Request failed with status code "+n.status,[p.a.ERR_BAD_REQUEST,p.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),u()}),(function(t){n(t),u()}),{data:c&&"text"!==c&&"json"!==c?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h}),h=null}if(h.open(t.method.toUpperCase(),d(f,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new p.a("Request aborted",p.a.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new p.a("Network Error",p.a.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||m;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new p.a(e,r.clarifyTimeoutError?p.a.ETIMEDOUT:p.a.ECONNABORTED,t,h)),h=null},x.hasStandardBrowserEnv&&(l&&i.a.isFunction(l)&&(l=l(t)),l||!1!==l&&j(f))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&F.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in h&&i.a.forEach(o.toJSON(),(function(t,e){h.setRequestHeader(e,t)})),i.a.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),c&&"json"!==c&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",z(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",z(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{h&&(n(!e||e.type?new k(null,t,h):e),h.abort(),h=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(f);v&&-1===x.protocols.indexOf(v)?n(new p.a("Unsupported protocol "+v+":",p.a.ERR_BAD_REQUEST,t)):h.send(r||null)}))};const H={http:D.a,xhr:G};i.a.forEach(H,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const W=t=>"- "+t,V=t=>i.a.isFunction(t)||null===t||!1===t;var Z=t=>{t=i.a.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!V(n)&&(r=H[(e=String(n)).toLowerCase()],void 0===r))throw new p.a(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let n=e?t.length>1?"since :\n"+t.map(W).join("\n"):" "+W(t[0]):"as no adapter specified";throw new p.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Q(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new k(null,t)}function X(t){Q(t),t.headers=L.from(t.headers),t.data=R.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Z(t.adapter||M.adapter)(t).then((function(e){return Q(t),e.data=R.call(t,t.transformResponse,e),e.headers=L.from(e.headers),e}),(function(e){return O(e)||(Q(t),e&&e.response&&(e.response.data=R.call(t,t.transformResponse,e.response),e.response.headers=L.from(e.response.headers))),Promise.reject(e)}))}const Y=t=>t instanceof L?t.toJSON():t;function J(t,e){e=e||{};const n={};function r(t,e,n){return i.a.isPlainObject(t)&&i.a.isPlainObject(e)?i.a.merge.call({caseless:n},t,e):i.a.isPlainObject(e)?i.a.merge({},e):i.a.isArray(e)?e.slice():e}function o(t,e,n){return i.a.isUndefined(e)?i.a.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function s(t,e){if(!i.a.isUndefined(e))return r(void 0,e)}function a(t,e){return i.a.isUndefined(e)?i.a.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function c(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(t,e)=>o(Y(t),Y(e),!0)};return i.a.forEach(Object.keys(Object.assign({},t,e)),(function(r){const s=l[r]||o,a=s(t[r],e[r],r);i.a.isUndefined(a)&&s!==c||(n[r]=a)})),n}const q={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{q[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const K={};q.transitional=function(t,e,n){function r(t,e){return"[Axios v1.6.7] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new p.a(r(i," has been removed"+(e?" in "+e:"")),p.a.ERR_DEPRECATED);return e&&!K[i]&&(K[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var $={assertOptions:function(t,e,n){if("object"!=typeof t)throw new p.a("options must be an object",p.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const e=t[o],n=void 0===e||s(e,o,t);if(!0!==n)throw new p.a("option "+o+" must be "+n,p.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new p.a("Unknown option "+o,p.a.ERR_BAD_OPTION)}},validators:q};const tt=$.validators;class et{constructor(t){this.defaults=t,this.interceptors={request:new f,response:new f}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=J(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&$.assertOptions(n,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),null!=r&&(i.a.isFunction(r)?e.paramsSerializer={serialize:r}:$.assertOptions(r,{encode:tt.function,serialize:tt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let s=o&&i.a.merge(o.common,o[e.method]);o&&i.a.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=L.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(c=c&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let h,d=0;if(!c){const t=[X.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),h=t.length,u=Promise.resolve(e);d<h;)u=u.then(t[d++],t[d++]);return u}h=a.length;let f=e;for(d=0;d<h;){const t=a[d++],e=a[d++];try{f=t(f)}catch(t){e.call(this,t);break}}try{u=X.call(this,f)}catch(t){return Promise.reject(t)}for(d=0,h=l.length;d<h;)u=u.then(l[d++],l[d++]);return u}getUri(t){return d(N((t=J(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}i.a.forEach(["delete","get","head","options"],(function(t){et.prototype[t]=function(e,n){return this.request(J(n||{},{method:t,url:e,data:(n||{}).data}))}})),i.a.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(J(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}et.prototype[t]=e(),et.prototype[t+"Form"]=e(!0)}));var nt=et;class rt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new k(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new rt((function(e){t=e})),cancel:t}}}var it=rt;const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ot).forEach(([t,e])=>{ot[e]=t});var st=ot;const at=function t(e){const n=new nt(e),r=Object(o.a)(nt.prototype.request,n);return i.a.extend(r,nt.prototype,n,{allOwnKeys:!0}),i.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(J(e,n))},r}(M);at.Axios=nt,at.CanceledError=k,at.CancelToken=it,at.isCancel=O,at.VERSION="1.6.7",at.toFormData=s.a,at.AxiosError=p.a,at.Cancel=at.CanceledError,at.all=function(t){return Promise.all(t)},at.spread=function(t){return function(e){return t.apply(null,e)}},at.isAxiosError=function(t){return i.a.isObject(t)&&!0===t.isAxiosError},at.mergeConfig=J,at.AxiosHeaders=L,at.formToJSON=t=>w(i.a.isHTMLForm(t)?new FormData(t):t),at.getAdapter=Z,at.HttpStatusCode=st,at.default=at;var ct=at;const{Axios:lt,AxiosError:ut,CanceledError:ht,isCancel:dt,CancelToken:ft,VERSION:pt,all:mt,Cancel:gt,isAxiosError:vt,spread:yt,toFormData:_t,AxiosHeaders:bt,HttpStatusCode:xt,formToJSON:wt,getAdapter:St,mergeConfig:Mt}=ct},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r,i=n(33),o=n(118),s=void 0!==t?null===(r=t.env)||void 0===r?void 0:r.npm_package_version:void 0,a=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new o.a(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(Object(i.a)(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return Object(i.b)(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return Object(i.b)(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Object(i.a)(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new o.a,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=s,t}()}).call(this,n(166))},function(t,e,n){"use strict";n.d(e,"a",(function(){return J}));var r,i,o=n(33),s=function(t){var e;if(void 0===r){var n="0123456789ABCDEF";for(r={},e=0;e<16;++e)r[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)r[n.charAt(e)]=e;for(e=0;e<" \f\n\r\t \u2028\u2029".length;++e)r[" \f\n\r\t \u2028\u2029".charAt(e)]=-1}var i=[],o=0,s=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=r[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},a={decode:function(t){var e;if(void 0===i){for(i=Object.create(null),e=0;e<64;++e)i["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(i["-"]=62,i._=63,e=0;e<"= \f\n\r\t \u2028\u2029".length;++e)i["= \f\n\r\t \u2028\u2029".charAt(e)]=-1}var n=[],r=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=i[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);r|=s,++o>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,o=0):r<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=a.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return a.decode(t)}},c=1e13,l=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<c?e=0:r-=(e=0|r/c)*c,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=c,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(c+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*c+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),u=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,h=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function d(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var f,p=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?u:h).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,s="";r==o&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(s=r,n<<=3;0==(128&(+s^o));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var a=new l(r),c=t+1;c<e;++c)a.mulAdd(256,this.get(c));return s+a.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",s=t+1;s<e;++s){for(var a=this.get(s),c=s==e-1?r:0,l=7;l>=c;--l)o+=a>>l&1?"1":"0";if(o.length>n)return i+d(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return d(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new l,o=0,s=t;s<e;++s){var a=this.get(s);if(i.mulAdd(128,127&a),o+=7,!(128&a)){if(""===r)if((i=i.simplify())instanceof l)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return d(r,n);i=new l,o=0}}return o>0&&(r+=".incomplete"),r},t}(),m=function(){function t(t,e,n,r,i){if(!(r instanceof g))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return d(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return d(this.stream.parseStringISO(e,e+n),t);case 30:return d(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof p?e:new p(e,0);var r=new p(n),i=new g(n),o=t.decodeLength(n),s=n.pos,a=s-r.pos,c=null,l=function(){var e=[];if(null!==o){for(var r=s+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=s-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)c=l();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=l();for(var u=0;u<c.length;++u)if(c[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(o)}return new t(r,a,o,i,c)},t}(),g=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new l;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),v=n(7),y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],_=(1<<26)/y[y.length-1],b=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(n=this[s]>>a)>0&&(i=!0,o=Object(v.b)(n));s>=0;)a<e?(n=(this[s]&(1<<a)-1)<<e-a,n|=this[--s]>>(a+=this.DB-e)):(n=this[s]>>(a-=e)&r,a<=0&&(a+=this.DB,--s)),n>0&&(i=!0),i&&(o+=Object(v.b)(n));return i?o:"0"},t.prototype.negate=function(){var e=A();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+O(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=A();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new w(e):new S(e),this.exp(t,n)},t.prototype.clone=function(){var t=A();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=A();return this.bitwiseTo(t,v.d,e),e},t.prototype.or=function(t){var e=A();return this.bitwiseTo(t,v.f,e),e},t.prototype.xor=function(t){var e=A();return this.bitwiseTo(t,v.g,e),e},t.prototype.andNot=function(t){var e=A();return this.bitwiseTo(t,v.e,e),e},t.prototype.not=function(){for(var t=A(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=A();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=A();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Object(v.c)(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Object(v.a)(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,v.f)},t.prototype.clearBit=function(t){return this.changeBit(t,v.e)},t.prototype.flipBit=function(t){return this.changeBit(t,v.g)},t.prototype.add=function(t){var e=A();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=A();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=A();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=A();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=A();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=A(),n=A();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=R(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new w(e):e.isEven()?new M(e):new S(e);var s=[],a=3,c=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var u=A();for(r.sqrTo(s[1],u);a<=l;)s[a]=A(),r.mulTo(u,s[a-2],s[a]),a+=2}var h,d,f=t.t-1,p=!0,m=A();for(i=O(t[f])-1;f>=0;){for(i>=c?h=t[f]>>i-c&l:(h=(t[f]&(1<<i+1)-1)<<c-i,f>0&&(h|=t[f-1]>>this.DB+i-c)),a=n;0==(1&h);)h>>=1,--a;if((i-=a)<0&&(i+=this.DB,--f),p)s[h].copyTo(o),p=!1;else{for(;a>1;)r.sqrTo(o,m),r.sqrTo(m,o),a-=2;a>0?r.sqrTo(o,m):(d=o,o=m,m=d),r.mulTo(m,s[h],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,m),d=o,o=m,m=d,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=R(1),s=R(0),a=R(0),c=R(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?(a.isEven()&&c.isEven()||(a.addTo(this,a),c.subTo(e,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(a,o),s.subTo(c,s)):(i.subTo(r,i),n&&a.subTo(o,a),c.subTo(s,c))}return 0!=i.compareTo(t.ONE)?t.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new x)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=y[y.length-1]){for(e=0;e<y.length;++e)if(n[0]==y[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<y.length;){for(var r=y[e],i=e+1;i<y.length&&r<_;)r*=y[i++];for(r=n.modInt(r);e<i;)if(r%y[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,s=0;--i>=0;){var a=8==r?255&+e[i]:L(e,i);a<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),s=this.s<<n&this.DM,a=this.t-1;a>=0;--a)e[a+o+1]=this[a]>>r|s,s=(this[a]&i)<<n;for(a=o-1;a>=0;--a)e[a]=0;e[o]=s,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&o)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=A());var s=A(),a=this.s,c=e.s,l=this.DB-O(i[i.t-1]);l>0?(i.lShiftTo(l,s),o.lShiftTo(l,r)):(i.copyTo(s),o.copyTo(r));var u=s.t,h=s[u-1];if(0!=h){var d=h*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,m=1<<this.F2,g=r.t,v=g-u,y=null==n?A():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--v>=0;){var _=r[--g]==h?this.DM:Math.floor(r[g]*f+(r[g-1]+m)*p);if((r[g]+=s.am(0,_,r,v,0,u))<_)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(u,n),a!=c&&t.ZERO.subTo(n,n)),r.t=u,r.clamp(),l>0&&r.rShiftTo(l,r),a<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=A(),i=A(),o=n.convert(this),s=O(e)-1;for(o.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(e&1<<s)>0)n.mulTo(i,o,r);else{var a=r;r=i,i=a}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=R(n),i=A(),o=A(),s="";for(this.divRemTo(r,i,o);i.signum()>0;)s=(n+o.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,o);return o.intValue().toString(t)+s},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,s=0,a=0,c=0;c<e.length;++c){var l=L(e,c);l<0?"-"==e.charAt(c)&&0==this.signum()&&(o=!0):(a=n*a+l,++s>=r&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(a,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),v.f,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>y.length&&(e=y.length);for(var o=A(),s=0;s<e;++s){o.fromInt(y[Math.floor(Math.random()*y.length)]);var a=o.modPow(i,this);if(0!=a.compareTo(t.ONE)&&0!=a.compareTo(n)){for(var c=1;c++<r&&0!=a.compareTo(n);)if(0==(a=a.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=a.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=A();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)e(n);else{o<s&&(s=o),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var a=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(a,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){e(r)}),0))};setTimeout(a,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),v.f,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],c=7&e;a.length=1+(e>>3),n.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},t}(),x=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),w=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),S=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=A();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(b.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=A();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),M=function(){function t(t){this.m=t,this.r2=A(),this.q3=A(),b.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=A();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function A(){return new b(null)}function C(t,e){return new b(t,e)}var E="undefined"!=typeof navigator;E&&"Microsoft Internet Explorer"==navigator.appName?(b.prototype.am=function(t,e,n,r,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var c=32767&this[t],l=this[t++]>>15,u=a*c+l*s;i=((c=s*c+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+a*l+(i>>>30),n[r++]=1073741823&c}return i},f=30):E&&"Netscape"!=navigator.appName?(b.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},f=26):(b.prototype.am=function(t,e,n,r,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var c=16383&this[t],l=this[t++]>>14,u=a*c+l*s;i=((c=s*c+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+a*l,n[r++]=268435455&c}return i},f=28),b.prototype.DB=f,b.prototype.DM=(1<<f)-1,b.prototype.DV=1<<f;b.prototype.FV=Math.pow(2,52),b.prototype.F1=52-f,b.prototype.F2=2*f-52;var T,I,P=[];for(T="0".charCodeAt(0),I=0;I<=9;++I)P[T++]=I;for(T="a".charCodeAt(0),I=10;I<36;++I)P[T++]=I;for(T="A".charCodeAt(0),I=10;I<36;++I)P[T++]=I;function L(t,e){var n=P[t.charCodeAt(e)];return null==n?-1:n}function R(t){var e=A();return e.fromInt(t),e}function O(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}b.ZERO=R(0),b.ONE=R(1);var B=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var k,D,F=null;if(null==F){F=[],D=0;var N=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var j=new Uint32Array(256);for(window.crypto.getRandomValues(j),N=0;N<j.length;++N)F[D++]=255&j[N]}var U=0,z=function(t){if((U=U||0)>=256||D>=256)window.removeEventListener?window.removeEventListener("mousemove",z,!1):window.detachEvent&&window.detachEvent("onmousemove",z);else try{var e=t.x+t.y;F[D++]=255&e,U+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",z,!1):window.attachEvent&&window.attachEvent("onmousemove",z))}function G(){if(null==k){for(k=new B;D<256;){var t=Math.floor(65536*Math.random());F[D++]=255&t}for(k.init(F),D=0;D<F.length;++D)F[D]=0;D=0}return k.next()}var H=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=G()},t}();var W=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=C(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new H,s=[];e>2;){for(s[0]=0;0==s[0];)o.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new b(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,s=0;s<2*e-o;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=C(t,16),this.e=parseInt(e,16),this.d=C(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,s,a){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=C(t,16),this.e=parseInt(e,16),this.d=C(n,16),this.p=C(r,16),this.q=C(i,16),this.dmp1=C(o,16),this.dmq1=C(s,16),this.coeff=C(a,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new H,r=t>>1;this.e=parseInt(e,16);for(var i=new b(e,16);;){for(;this.p=new b(t-r,1,n),0!=this.p.subtract(b.ONE).gcd(i).compareTo(b.ONE)||!this.p.isProbablePrime(10););for(;this.q=new b(r,1,n),0!=this.q.subtract(b.ONE).gcd(i).compareTo(b.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(b.ONE),a=this.q.subtract(b.ONE),c=s.multiply(a);if(0==c.gcd(i).compareTo(b.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=C(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new H,i=t>>1;this.e=parseInt(e,16);var o=new b(e,16),s=this,a=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(b.ONE),r=s.q.subtract(b.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(b.ONE)?(s.n=s.p.multiply(s.q),s.d=o.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(a,0)},c=function(){s.q=A(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(b.ONE).gcda(o,(function(t){0==t.compareTo(b.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},l=function(){s.p=A(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(b.ONE).gcda(o,(function(t){0==t.compareTo(b.ONE)&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(a,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return C("0001"+r+"00"+t,16)}((V[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=C(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in V)if(V.hasOwnProperty(e)){var n=V[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
136
136
  /*!
137
- Copyright (c) 2011, Yahoo! Inc. All rights reserved.
138
- Code licensed under the BSD License:
139
- http://developer.yahoo.com/yui/license.html
140
- version: 2.9.0
137
+
141
138
  */(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var V={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var Z={};Z.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<s.length;i+=1){var n=s[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};
142
139
  /**
143
140
  * @fileOverview
@@ -147,7 +144,7 @@ version: 2.9.0
147
144
  * @since jsrsasign 2.1
148
145
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
149
146
  */
150
- var Q={};void 0!==Q.asn1&&Q.asn1||(Q.asn1={}),Q.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new b(r,16).xor(t).add(b.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Q.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,a=e.DERObjectIdentifier,c=e.DEREnumerated,l=e.DERUTF8String,u=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var x=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":"))throw"undefined key: "+x;if("bool"==x)return new n(t[x]);if("int"==x)return new r(t[x]);if("bitstr"==x)return new i(t[x]);if("octstr"==x)return new o(t[x]);if("null"==x)return new s(t[x]);if("oid"==x)return new a(t[x]);if("enum"==x)return new c(t[x]);if("utf8str"==x)return new l(t[x]);if("numstr"==x)return new u(t[x]);if("prnstr"==x)return new h(t[x]);if("telstr"==x)return new d(t[x]);if("ia5str"==x)return new f(t[x]);if("utctime"==x)return new p(t[x]);if("gentime"==x)return new m(t[x]);if("seq"==x){for(var w=t[x],S=[],M=0;M<w.length;M++){var A=_(w[M]);S.push(A)}return new g({array:S})}if("set"==x){for(w=t[x],S=[],M=0;M<w.length;M++){A=_(w[M]);S.push(A)}return new v({array:S})}if("tag"==x){var C=t[x];if("[object Array]"===Object.prototype.toString.call(C)&&3==C.length){var E=_(C[2]);return new y({tag:C[0],explicit:C[1],obj:E})}var T={};if(void 0!==C.explicit&&(T.explicit=C.explicit),void 0!==C.tag&&(T.tag=C.tag),void 0===C.obj)throw"obj shall be specified for 'tag'.";return T.obj=_(C.obj),new y(T)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Q.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new b(r,2).toString(10),r=""}return e},Q.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},Q.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Q.asn1.DERAbstractString=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Z.lang.extend(Q.asn1.DERAbstractString,Q.asn1.ASN1Object),Q.asn1.DERAbstractTime=function(t){Q.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var a=i.getMilliseconds();if(0!=a){var c=r(String(a),3);s=s+"."+(c=c.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var s=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Z.lang.extend(Q.asn1.DERAbstractTime,Q.asn1.ASN1Object),Q.asn1.DERAbstractStructured=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Z.lang.extend(Q.asn1.DERAbstractStructured,Q.asn1.ASN1Object),Q.asn1.DERBoolean=function(){Q.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Z.lang.extend(Q.asn1.DERBoolean,Q.asn1.ASN1Object),Q.asn1.DERInteger=function(t){Q.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DERInteger,Q.asn1.ASN1Object),Q.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Q.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Z.lang.extend(Q.asn1.DERBitString,Q.asn1.ASN1Object),Q.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Q.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Z.lang.extend(Q.asn1.DEROctetString,Q.asn1.DERAbstractString),Q.asn1.DERNull=function(){Q.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Z.lang.extend(Q.asn1.DERNull,Q.asn1.ASN1Object),Q.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};Q.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Q.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Z.lang.extend(Q.asn1.DERObjectIdentifier,Q.asn1.ASN1Object),Q.asn1.DEREnumerated=function(t){Q.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DEREnumerated,Q.asn1.ASN1Object),Q.asn1.DERUTF8String=function(t){Q.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Z.lang.extend(Q.asn1.DERUTF8String,Q.asn1.DERAbstractString),Q.asn1.DERNumericString=function(t){Q.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Z.lang.extend(Q.asn1.DERNumericString,Q.asn1.DERAbstractString),Q.asn1.DERPrintableString=function(t){Q.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Z.lang.extend(Q.asn1.DERPrintableString,Q.asn1.DERAbstractString),Q.asn1.DERTeletexString=function(t){Q.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Z.lang.extend(Q.asn1.DERTeletexString,Q.asn1.DERAbstractString),Q.asn1.DERIA5String=function(t){Q.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Z.lang.extend(Q.asn1.DERIA5String,Q.asn1.DERAbstractString),Q.asn1.DERUTCTime=function(t){Q.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Z.lang.extend(Q.asn1.DERUTCTime,Q.asn1.DERAbstractTime),Q.asn1.DERGeneralizedTime=function(t){Q.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Z.lang.extend(Q.asn1.DERGeneralizedTime,Q.asn1.DERAbstractTime),Q.asn1.DERSequence=function(t){Q.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Z.lang.extend(Q.asn1.DERSequence,Q.asn1.DERAbstractStructured),Q.asn1.DERSet=function(t){Q.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Z.lang.extend(Q.asn1.DERSet,Q.asn1.DERAbstractStructured),Q.asn1.DERTaggedObject=function(t){Q.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Z.lang.extend(Q.asn1.DERTaggedObject,Q.asn1.ASN1Object);var X,Y=(X=function(t,e){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}X(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),J=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Y(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?s(t):a.unarmor(t),i=m.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=C(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=C(o,16);var c=i.sub[4].getHexStringValue();this.p=C(c,16);var l=i.sub[5].getHexStringValue();this.q=C(l,16);var u=i.sub[6].getHexStringValue();this.dmp1=C(u,16);var h=i.sub[7].getHexStringValue();this.dmq1=C(h,16);var d=i.sub[8].getHexStringValue();this.coeff=C(d,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var f=i.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=C(e,16),n=f.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=C(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Q.asn1.DERInteger({int:0}),new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e}),new Q.asn1.DERInteger({bigint:this.d}),new Q.asn1.DERInteger({bigint:this.p}),new Q.asn1.DERInteger({bigint:this.q}),new Q.asn1.DERInteger({bigint:this.dmp1}),new Q.asn1.DERInteger({bigint:this.dmq1}),new Q.asn1.DERInteger({bigint:this.coeff})]};return new Q.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Object(o.b)(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Q.asn1.DERSequence({array:[new Q.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Q.asn1.DERNull]}),e=new Q.asn1.DERSequence({array:[new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e})]}),n=new Q.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Q.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Object(o.b)(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(W)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{class:e.prefixCls+"-app-setting-layout"},[r("a-layout-header",{class:e.headerClasses},[r("div",{class:e.prefixCls+"-header-"+e.theme+"-inner "+e.prefixCls+"-header-inner"},[r("div",{class:e.prefixCls+"-app-setting-header-title"},[e._v("个人设置")]),e._v(" "),r("div",{ref:"rightDom",class:e.prefixCls+"-header-right"},[r("div",{class:e.prefixCls+"-header-right-nav"}),e._v(" "),r("div",{class:e.prefixCls+"-header-right-extra"},[r("HeaderInfoGroup",{attrs:{theme:e.theme}}),e._v(" "),r("AppUser",{attrs:{theme:e.theme,userName:e.userNameModify,userAvatar:e.userAvatar}})],1)])])]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-box"},[r("div",{class:e.prefixCls+"-app-setting-tips"},[r("div",{class:e.prefixCls+"-app-setting-tips-left",on:{click:e.goBack}},[r("a-icon",{attrs:{type:"left"}}),e._v("\n 返回\n ")],1),e._v(" "),e.tipsState?r("div",{class:e.prefixCls+"-app-setting-tips-right"},[r("span",[r("a-icon",{staticClass:"tips-icon",attrs:{type:"info-circle",theme:"filled"}}),e._v("\n 你好!您已进入个人设置模块,修改密码将改变全局系统密码\n ")],1),e._v(" "),r("span",[r("a-icon",{staticClass:"close-icon",attrs:{type:"close"},on:{click:function(){return e.tipsState=!1}}})],1)]):e._e()]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting"},[r("div",{class:e.prefixCls+"-app-setting-left"},e._l(e.settingMes,(function(t,n){return r("div",{key:n,class:e.prefixCls+"-app-setting-left-item "+(n===e.settingMes.length-1?"":"mb40")+" "+(e.defaultActive===n?"active":""),on:{click:function(t){return e.hanldeSelect(n)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right"},[0===e.defaultActive?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("个人资料")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("名称")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"nameForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"name"}},[r("a-input",{attrs:{disabled:e.editNameState},model:{value:e.userNameMes.name,callback:function(t){e.$set(e.userNameMes,"name",t)},expression:"userNameMes.name"}})],1)],1),e._v(" "),e.editNameState?r("a-button",{on:{click:function(){e.editNameState=!1}}},[e._v("\n 编辑\n ")]):r("a-button",{attrs:{type:"primary"},on:{click:e.handleEditName}},[e._v(" 保存 ")])],1)]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定手机号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v(e._s(e.phoneMes))]),e._v(" "),1===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",[r("a-form-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1)],1),e._v(" "),r("a-button",{on:{click:function(t){e.delPhone(2)}}},[e._v("更换手机号")])],1):e._e(),e._v(" "),2===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"verCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"verCode"}},[r("a-input",{model:{value:e.userNameMes.verCode,callback:function(t){e.$set(e.userNameMes,"verCode",t)},expression:"userNameMes.verCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(3)}}},[e._v(" 下一步 ")])],1)]):e._e(),e._v(" "),3===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newPhoneForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"newPhone"}},[r("a-input",{model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(4)}}},[e._v(" 下一步 ")])],1):e._e(),e._v(" "),4===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newVerCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newVerCode"}},[r("a-input",{model:{value:e.userNameMes.newVerCode,callback:function(t){e.$set(e.userNameMes,"newVerCode",t)},expression:"userNameMes.newVerCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendNewPhoneVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:e.verPhone}},[e._v(" 绑定 ")]),e._v(" "),r("a-button",{on:{click:e.backStep}},[e._v("返回")])],1)]):e._e()]),e._v(" "),e.userMes.wechatSwitch||e.userMes.wechatgzhSwitch?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定第三方账号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("\n 绑定第三方帐号,可以直接扫码登录系统。如果当前帐号在对应站点处于登录状态,需退出登录后,才能重新绑定。\n ")]),e._v(" "),e.userMes.wechatSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除微信绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatSwitch&&!e.wxUnionid||e.userMes.wechatgzhSwitch&&!e.wxUnionid?r("a-space",{attrs:{direction:"vertical"}},[e.userMes.wechatSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addWechat}},[e._v("微信绑定")])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addPublicWechat}},[e._v("绑定")])],1):e._e(),e._v(" "),r("a-modal",{attrs:{visible:e.visible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handleWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"},attrs:{id:"qrcode-container-app-setting"}})]),e._v(" "),r("a-modal",{attrs:{visible:e.publicVisible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handlePublicWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"}},[r("img",{attrs:{src:e.wxInfo.qrcodeUrl}})])])],1):e._e()],1)]):e._e()]):e._e(),e._v(" "),1===e.defaultActive?r("div",{class:e.prefixCls+"-app-setting-right-password"},[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("修改密码")]),e._v(" "),r("a-form-model",{ref:"forgetForm",attrs:{model:e.passwordForm,rules:e.passWordRule}},[r("a-form-model-item",{attrs:{prop:"passWord"}},[r("a-input-password",{attrs:{placeholder:"当前密码",type:"password"},model:{value:e.passwordForm.passWord,callback:function(t){e.$set(e.passwordForm,"passWord",t)},expression:"passwordForm.passWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newPassWord"}},[r("a-input-password",{attrs:{placeholder:"新密码",type:"password"},model:{value:e.passwordForm.newPassWord,callback:function(t){e.$set(e.passwordForm,"newPassWord",t)},expression:"passwordForm.newPassWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"repeatPassWord"}},[r("a-input-password",{attrs:{placeholder:"确认新密码",type:"password"},model:{value:e.passwordForm.repeatPassWord,callback:function(t){e.$set(e.passwordForm,"repeatPassWord",t)},expression:"passwordForm.repeatPassWord"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:e.verPas}},[e._v(" 保存 ")])],1):e._e()])])]),e._v(" "),r("a-modal",{attrs:{visible:e.wechatModel,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.delWeChat,cancel:function(){e.wechatModel=!1}}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示")],1),e._v(" "),r("div",{staticClass:"modal-item"},[e._v("您将解绑微信账号,解除后无法使用此微信号登录")])]),e._v(" "),r("a-modal",{attrs:{visible:e.reloadState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:function(t){return e.delPhone(1)},cancel:function(){e.reloadState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改绑定手机号,确定需要重新登录,是否继续?")])],1),e._v(" "),r("a-modal",{attrs:{visible:e.reloadPasState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.savePass,cancel:function(){e.reloadPasState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改密码,确定需要重新登录,是否继续?")])],1)],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t._v(" "),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])},i=[]},function(t,e,n){"use strict";n.r(e);var r=n(120),i=n(80);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThreeLayer=e.BaseObject=e.three=e.maptalks=e.Loading=e.amapLayer=e.getCache=e.setCache=e.IepNav=e.AppNav=e.Sidebar=e.HeaderInfoGroup=e.AppExternal=e.AppLogo=e.iamGoToPage=e.microApp=e.AppUser=e.RkVersionList=e.BlockView=e.appTrack=e.frameInterface=e.Request=e.GMap=e.AppLayout=e.install=e.toType=void 0;var r=J(n(69)),i=J(n(13)),o=J(n(23)),s=J(n(39)),a=J(n(40)),c=J(n(4)),l=J(n(134)),u=J(n(50)),h=J(n(135)),d=n(136),f=J(n(203)),p=n(204),m=n(342),g=J(m),v=n(344),y=n(17),_=J(y),b=n(378),x=n(43),w=J(n(116)),S=J(n(379)),M=J(n(384)),A=J(n(385)),C=J(n(386)),E=J(n(387)),T=J(n(78)),I=J(n(182)),P=J(n(179));n(388);var L=n(115),R=J(L),O=n(407),B=J(O),k=J(n(184)),D=J(n(408)),F=J(n(409)),N=J(n(410)),j=J(n(22)),U=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(12)),z=J(n(55)),G=J(n(183)),H=J(n(411)),W=J(n(414)),V=n(415),Z=n(65),Q=n(8),X=n(5),Y=J(n(164));function J(t){return t&&t.__esModule?t:{default:t}}var q=e.toType=function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},K={appId:"rk-web-core",loadView:void 0,store:{},filters:[],vueConfig:{},authToken:void 0,svgFile:"https://at.alicdn.com/t/font_614860_f0motpq03e.js",isNeedMapTalks:!1,mapOptions:{},routerOptions:{},oauthType:"iam",microOptions:{},extension:!1,axiosAuthKey:void 0,depositRouter:!0,routesWhiteListFirstIsRedirect:!1,requestLoading:!1,iamJumpIsFullPath:!1,routes:[],routesWhiteList:[],requestError:function(){},routerTrusteeship:!0,dynamicStructRouter:function(t,e,n,r,i){},requestResponseDataFunc:null,requestRequestDataFunc:null},$=function(){function t(e,n){(0,s.default)(this,t),e&&n&&(this.vueInstance=e,this.basicRouter=f.default,this.initOptions(n))}return(0,a.default)(t,[{key:"initOptions",value:function(t){var e=(0,o.default)(K);this.basicOptions=(0,h.default)((0,x.mergeProps)(K,t),e),window.__RK_WEB_CORE_APPID__=this.basicOptions.appId,window.__RK_WEB_CORE_AXIOS_AUTH_KEY=this.basicOptions.axiosAuthKey,this.storeInstance=this.basicOptions.store,this.useInstance(),this.filterInstance(),this.vueConfigPick()}},{key:"getRequestInstance",value:function(){return _.default}},{key:"useInstance",value:function(){var t=this;if(this.vueInstance.use(this.basicRouter),this.vueInstance.use(D.default),this.storeInstance.registerModule("user",g.default),this.routerInstance=(0,p.routerInit)(this.basicRouter,this.basicOptions.routerOptions),this.vueInstance.prototype.$isExtension=this.basicOptions.extension,this.vueInstance.prototype.$getDb=G.default.getLocalRecord,window.$requestError=this.basicOptions.requestError,window.$requestLoading=this.basicOptions.requestLoading,window.$requestResponseDataFunc=this.basicOptions.requestResponseDataFunc,window.$requestRequestDataFunc=this.basicOptions.requestRequestDataFunc,this.vueInstance.prototype.$saveDb=G.default.saveIndexDb,this.vueInstance.prototype.$logout=y.logOut,this.vueInstance.prototype.$authorize=y.authorize,this.vueInstance.prototype.$iamGoToPage=x.iamGoToPage,this.vueInstance.prototype.$treeRouter=V.treeRouter,this.vueInstance.prototype.$dynamicChangeRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"replace",n=j.default.parse(window.location.search.replace("?",""));if("object"===q(t)){var r=j.default.stringify((0,i.default)(n,t)),o=window.location,s=o.origin,a=o.pathname,c=s+a;"replace"===e?window.history.replaceState("",document.title,c+"?"+r):window.history.pushState("",document.title,c+"?"+r)}},this.vueInstance.prototype.$clearDynamicRouteParams=function(){var t=window.location,e=t.origin+t.pathname;window.history.replaceState("",document.title,e)},this.vueInstance.prototype.$getDynamicRouteParams=function(){return j.default.parse(window.location.search.replace("?",""))},this.tempPkRouter=(0,p.pkRouter)(this.basicRouter,this.basicOptions.routerOptions),!(0,c.default)(this.basicOptions.routesWhiteList)){var e=this.basicOptions.routesWhiteList.map((function(e){return{path:e,component:t.basicOptions.loadView?t.basicOptions.loadView(e):(0,x.loadView)(e,t.basicOptions.routerPathPrefix,t.basicOptions.routerContext)}}));this.tempPkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(e)))}this.vueInstance.prototype.$pkRouter=this.tempPkRouter,this.vueInstance.prototype.$basicOptions=this.basicOptions;var n=[];if(window.__MICRO_APP_ENVIRONMENT__?d.version.includes("0.13")&&(n=X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST)):n=d.version.includes("0.13")&&X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST),!(0,c.default)(n))if(this.storeInstance.commit("user/SET_MENU_LIST",n),this.basicOptions.routerTrusteeship)(0,Z.setAsyncRoutes)(this.routerInstance,this.storeInstance,n,p.pkRouter,this.basicOptions);else if((0,u.default)(this.basicOptions.dynamicStructRouter)){var o=this.basicOptions.dynamicStructRouter((0,Z.businessSystemToTree)(n));if(!o&&!(0,l.default)(o))return console.error("Routing menu construct build failed");p.pkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(o),[x.redirectRouter,x.noAllowRouter])),this.storeInstance.commit("user/SET_ROUTERS",o),this.storeInstance.commit("user/SET_APP_ROUTERS",o)}else console.error("basicOptions.dynamicStructRouter must is a function");(0,v.registerPermission)(this,this.tempPkRouter),this.basicOptions.isNeedMapTalks&&this.loadAMap()}},{key:"loadAMap",value:function(){var t=this;this.routerInstance.onReady((function(){(0,R.default)((0,x.mergeProps)({svgFile:t.basicOptions.svgFile,zoom:9.6},t.basicOptions.mapOptions))}))}},{key:"filterInstance",value:function(){var t=this;(0,o.default)(this.basicOptions.filters).forEach((function(e){t.vueInstance.filter(e,t.basicOptions.filters[e])}))}},{key:"vueConfigPick",value:function(){var t=this;(0,o.default)(this.basicOptions.vueConfig).forEach((function(e){t.vueInstance.config[e]=t.basicOptions.vueConfig[e]}))}},{key:"mount",value:function(){return(0,N.default)("RK-WEB-CORE",d.version),{version:d.version,router:this.routerInstance,store:this.storeInstance,resetRouter:(0,p.pkRouter)(this.basicRouter),request:this.getRequestInstance(),axios:w.default,vueInstance:this.vueInstance,bootstrap:(0,b.noLogin)(this.routerInstance,this.basicOptions.authToken),action:D.default,utils:(0,F.default)(this.storeInstance,this.routerInstance,this.vueInstance)}}},{key:"loadMicro",value:function(){return{micro:B.default,microOne:O.microOne,microTwo:O.microTwo,microThree:O.microThree}}}]),t}(),tt=function(t){t.use(S.default),t.use(M.default),t.use(H.default),t.use(A.default),t.use(C.default),t.use(E.default),t.use(I.default),t.use(P.default)};"undefined"!=typeof window&&window.Vue&&tt(window.Vue),S.default.install=function(t){t.component(S.default.name,S.default)},M.default.install=function(t){t.component("AppUser",M.default)},H.default.install=function(t){t.component(H.default.name,H.default)},A.default.install=function(t){t.component("AppLogo",A.default)},C.default.install=function(t){t.component("AppExternal",C.default)},T.default.install=function(t){t.component("Sidebar",T.default)},E.default.install=function(t){t.component("HeaderInfoGroup",E.default)},I.default.install=function(t){t.component("AppNav",I.default)},P.default.install=function(t){t.component("IepNav",P.default)};e.install=tt,e.AppLayout=S.default,e.GMap=L.GMap,e.Request=_.default,e.frameInterface=U,e.appTrack=function(t,e){return(0,z.default)(t,e,null,!1)},e.BlockView=W.default,e.RkVersionList=H.default,e.AppUser=M.default,e.microApp=k.default,e.iamGoToPage=x.iamGoToPage,e.AppLogo=A.default,e.AppExternal=C.default,e.HeaderInfoGroup=E.default,e.Sidebar=T.default,e.AppNav=I.default,e.IepNav=P.default,e.setCache=Q.setCache,e.getCache=Q.getCache,e.amapLayer=L.amapLayer,e.Loading=Y.default,e.maptalks=L.maptalks,e.three=L.three,e.BaseObject=L.BaseObject,e.ThreeLayer=L.ThreeLayer,e.default=function(t,e){return new $(t,e)}},function(t,e,n){t.exports={default:n(187),__esModule:!0}},function(t,e,n){t.exports=!n(18)&&!n(35)((function(){return 7!=Object.defineProperty(n(90)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=n(27)},function(t,e,n){var r=n(36),i=n(37),o=n(191)(!1),s=n(94)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(15).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36),i=n(38),o=n(94)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(24);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(48),i=n(16)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(16)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){var r=n(9),i=n(6),o=n(35);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},function(t,e,n){t.exports={default:n(201),__esModule:!0}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();function o(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var a=Object.prototype,c=a.hasOwnProperty,l=a.toString,u=i.Symbol,h=a.propertyIsEnumerable,d=u?u.isConcatSpreadable:void 0,f=Math.max;function p(t){return g(t)||function(t){return function(t){return v(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?l.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}(t)}(t)&&c.call(t,"callee")&&(!h.call(t,"callee")||"[object Arguments]"==l.call(t))}(t)||!!(d&&t&&t[d])}function m(t){if("string"==typeof t||function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==l.call(t)}(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var g=Array.isArray;function v(t){return!!t&&"object"==typeof t}var y,_,b=(y=function(t,e){return null==t?{}:function(t,e){return function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=t[s];n(a,s)&&(o[s]=a)}return o}(t=Object(t),e,(function(e,n){return n in t}))}(t,function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=p),o||(o=[]);++a<c;){var l=e[a];n>0&&r(l)?n>1?t(l,n-1,r,i,o):s(o,l):i||(o[o.length]=l)}return o}(e,1),m))},_=f(void 0===_?y.length-1:_,0),function(){for(var t=arguments,e=-1,n=f(t.length-_,0),r=Array(n);++e<n;)r[e]=t[_+e];e=-1;for(var i=Array(_+1);++e<_;)i[e]=t[e];return i[_]=r,o(y,this,i)});t.exports=b}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.version="0.15.2"},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(24),i=n(57),o=n(16)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(26),a=n(210),c=n(127),l=n(90),u=n(15),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},f=function(t){delete v[t]},"process"==n(59)(h)?r=function(t){h.nextTick(s(y,t,1))}:m&&m.now?r=function(t){m.now(s(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(24),i=n(20),o=n(100);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(15),i=n(6),o=n(19),s=n(18),a=n(16)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(42)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,n){"use strict";var r=n(42)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},function(t,e,n){"use strict";var r=n(103),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var l=a[c],u=s[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:s,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=s[u]:u<2048?c+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?c+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=a(e,r)),o(e)&&o(n)?(n.forEach((function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e}),s)}}},function(t,e,n){"use strict";var r=n(19).f,i=n(92),o=n(101),s=n(26),a=n(99),c=n(62),l=n(89),u=n(137),h=n(142),d=n(18),f=n(104).fastKey,p=n(105),m=d?"_s":"size",g=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){a(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&c(r,n,t[l],t)}));return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(t){p(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(15),i=n(9),o=n(104),s=n(35),a=n(27),c=n(101),l=n(62),u=n(99),h=n(20),d=n(60),f=n(19).f,p=n(236)(0),m=n(18);t.exports=function(t,e,n,g,v,y){var _=r[t],b=_,x=v?"set":"add",w=b&&b.prototype,S={};return m&&"function"==typeof b&&(y||w.forEach&&!s((function(){(new b).entries().next()})))?(b=e((function(e,n){u(e,b,t,"_c"),e._c=new _,null!=n&&l(n,v,e[x],e)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in w)||y&&"clear"==t||a(b.prototype,t,(function(n,r){if(u(this,b,t),!e&&y&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i}))})),y||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=g.getConstructor(e,t,v,x),c(b.prototype,n),o.NEED=!0),d(b,t),S[t]=b,i(i.G+i.W+i.F,S),y||g.setStrong(b,t,v),b}},function(t,e,n){var r=n(59);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(72),i=n(240);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(9);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(9),i=n(57),o=n(26),s=n(62);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return i(this),(e=void 0!==c)&&i(c),null==t?new this:(n=[],e?(r=0,a=o(c,arguments[2],2),s(t,!1,(function(t){n.push(a(t,r++))}))):s(t,!1,n.push,n),new this(n))}})}},function(t,e,n){var r=n(52),i=r.slice,o=r.pluck,s=r.each,a=r.bind,c=r.create,l=r.isList,u=r.isFunction,h=r.isObject;t.exports={createStore:f};var d={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return f.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return f(this.storage,this.plugins,t)}};function f(t,e,n){n||(n=""),t&&!l(t)&&(t=[t]),e&&!l(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",f=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p=c({_namespacePrefix:r,_namespaceRegexp:f,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=i(arguments,0),r=this;function o(){if(n)return s(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}var a=[o].concat(e);return t.apply(r,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(l(t))s(t,(function(t){e._addPlugin(t)}));else if(!o(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!u(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!h(n))throw new Error("Plugins must return an object of function properties");s(n,(function(n,r){if(!u(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},d,{plugins:[]});return p.raw={},s(p,(function(t,e){u(t)&&(p.raw[e]=a(p,t))})),s(t,(function(t){p._addStorage(t)})),s(e,(function(t){p._addPlugin(t)})),p}},function(t,e,n){var r=n(52).Global;function i(){return r.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){var r=n(52),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!l(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;s.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:c,clearAll:function(){a((function(t,e){c(e)}))}};var s=i.document;function a(t){for(var e=s.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]);t(unescape(r[1]),i)}}function c(t){t&&l(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function l(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},function(t,e,n){var r=n(52).Global;function i(){return r.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){t.exports={default:n(251),__esModule:!0}},function(t,e,n){var r=n(18),i=n(49),o=n(37),s=n(61).f;t.exports=function(t){return function(e){for(var n,a=o(e),c=i(a),l=c.length,u=0,h=[];l>u;)n=c[u++],r&&!s.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}}},function(t,e,n){"use strict";e.__esModule=!0;var r=o(n(255)),i=o(n(53));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(Array.isArray(t))return t;if((0,r.default)(Object(t)))return function(t,e){var n=[],r=!0,o=!1,s=void 0;try{for(var a,c=(0,i.default)(t);!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw s}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e){var n,r,i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,c=s.call(Object),l=o.toString,u=(n=Object.getPrototypeOf,r=Object,function(t){return n(r(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=l.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=u(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},function(t,e,n){t.exports={default:n(258),__esModule:!0}},function(t,e,n){var r=n(126),i=n(96).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r,i,o,s,a,c,l,u;t.exports=(u=n(2),i=(r=u).lib,o=i.WordArray,s=i.Hasher,a=r.algo,c=[],l=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=0;l<80;l++){if(l<16)c[l]=0|t[e+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+a+c[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=s._createHelper(l),r.HmacSHA1=s._createHmacHelper(l),u.SHA1)},function(t,e,n){var r;t.exports=(r=n(2),n(75),function(){var t=r,e=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,s=t.algo;function a(){return i.create.apply(i,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=a()}();var u=s.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=o.high,y=o.low,_=s.high,b=s.low,x=a.high,w=a.low,S=u.high,M=u.low,A=h.high,C=h.low,E=d.high,T=d.low,I=f,P=p,L=m,R=g,O=v,B=y,k=_,D=b,F=x,N=w,j=S,U=M,z=A,G=C,H=E,W=T,V=0;V<80;V++){var Z,Q,X=l[V];if(V<16)Q=X.high=0|t[e+2*V],Z=X.low=0|t[e+2*V+1];else{var Y=l[V-15],J=Y.high,q=Y.low,K=(J>>>1|q<<31)^(J>>>8|q<<24)^J>>>7,$=(q>>>1|J<<31)^(q>>>8|J<<24)^(q>>>7|J<<25),tt=l[V-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=l[V-7],st=ot.high,at=ot.low,ct=l[V-16],lt=ct.high,ut=ct.low;Q=(Q=(Q=K+st+((Z=$+at)>>>0<$>>>0?1:0))+rt+((Z+=it)>>>0<it>>>0?1:0))+lt+((Z+=ut)>>>0<ut>>>0?1:0),X.high=Q,X.low=Z}var ht,dt=F&j^~F&z,ft=N&U^~N&G,pt=I&L^I&O^L&O,mt=P&R^P&B^R&B,gt=(I>>>28|P<<4)^(I<<30|P>>>2)^(I<<25|P>>>7),vt=(P>>>28|I<<4)^(P<<30|I>>>2)^(P<<25|I>>>7),yt=(F>>>14|N<<18)^(F>>>18|N<<14)^(F<<23|N>>>9),_t=(N>>>14|F<<18)^(N>>>18|F<<14)^(N<<23|F>>>9),bt=c[V],xt=bt.high,wt=bt.low,St=H+yt+((ht=W+_t)>>>0<W>>>0?1:0),Mt=vt+mt;H=z,W=G,z=j,G=U,j=F,U=N,F=k+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+xt+((ht+=wt)>>>0<wt>>>0?1:0))+Q+((ht+=Z)>>>0<Z>>>0?1:0))+((N=D+ht|0)>>>0<D>>>0?1:0)|0,k=O,D=B,O=L,B=R,L=I,R=P,I=St+(gt+pt+(Mt>>>0<vt>>>0?1:0))+((P=ht+Mt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+P,r.high=f+I+(p>>>0<P>>>0?1:0),g=i.low=g+R,i.high=m+L+(g>>>0<R>>>0?1:0),y=o.low=y+B,o.high=v+O+(y>>>0<B>>>0?1:0),b=s.low=b+D,s.high=_+k+(b>>>0<D>>>0?1:0),w=a.low=w+N,a.high=x+F+(w>>>0<N>>>0?1:0),M=u.low=M+U,u.high=S+j+(M>>>0<U>>>0?1:0),C=h.low=C+G,h.high=A+z+(C>>>0<G>>>0?1:0),T=d.low=T+W,d.high=E+H+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),r.SHA512)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(296)),i=o(n(300));function o(t){return t&&t.__esModule?t:{default:t}}e.default={install:function(t){t.use(r.default)},directive:r.default,service:i.default}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(297),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupManager=void 0;var r=c(n(21)),i=c(n(168)),o=c(n(298)),s=c(n(299)),a=n(77);function c(t){return t&&t.__esModule?t:{default:t}}var l=1,u=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+l++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),u=(0,s.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,c=(0,a.getStyle)(document.body,"overflowY");u>0&&(i||"scroll"===c)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+u+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(307)),i=s(n(310)),o=s(n(311));function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,o.default)(t)||"[object Object]"!=(0,i.default)(t))return!1;if(null===(0,r.default)(t))return!0;for(var e=t;null!==(0,r.default)(e);)e=(0,r.default)(e);return(0,r.default)(t)===e}},function(t,e,n){t.exports={default:n(328),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WindIcon",render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1646186453304",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1115",width:"200",height:"200"},class:"rk-web-core-normal-icon"},[t("path",{attrs:{d:"M489.728 787.456a32 32 0 0 0 58.848 0L760.16 296.128a32 32 0 0 0-41.536-42.144l-200 82.368-195.584-84.064a32 32 0 0 0-42.08 41.856z","p-id":"1116"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"skin",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"}},[t("path",{attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=u(n(25)),o=u(n(330)),s=u(n(331)),a=u(n(332)),c=u(n(333)),l=u(n(111));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Skin",props:{visible:i.default.bool.def(!1)},data:function(){return{localVisible:!1,colorList:c.default}},computed:{skin:function(){return this.$store.state.user.skin}},watch:{visible:{handler:function(t){this.localVisible=t},deep:!0,immediate:!0}},methods:{onClose:function(){this.$emit("close")},changeSkin:function(t){this.$store.commit("user/SET_SKIN",{style:this.skin.style===t?"":t,color:this.skin.color}),this.onClose()},changeColor:function(t){document.documentElement.style.setProperty("--antd-wave-shadow-color",t),document.documentElement.style.setProperty("--antd-wave-shadow-color-o",l.default.formatColor(t,.1)),this.$store.commit("user/SET_SKIN",{color:t,style:this.skin.style}),this.onClose()}},render:function(){var t=this,e=arguments[0],n={props:{wrapClassName:r.prefixCls+"-drawer",title:"",placement:"right",closable:!1,visible:this.localVisible},on:{close:function(){return t.onClose()}}},i=this.colorList.map((function(n){return e("a-tooltip",[e("template",{slot:"title"},[n.key]),e("div",{class:[r.prefixCls+"-skin-color-item",t.skin.color===n.color?r.prefixCls+"-skin-active":null],on:{click:function(){return t.changeColor(n.color)}}},[e("span",{style:{backgroundColor:n.color}}),t.skin.color===n.color?e("div",{class:r.prefixCls+"-skin-color-mask"},[e("a-icon",{attrs:{type:"check"}})]):null])])}));return e("a-drawer",n,[e("div",{class:"theme"},[e(o.default,{attrs:{title:"主题风格设置",closable:!0},on:{close:function(){return t.onClose()}}},[e("div",{class:r.prefixCls+"-skin-style"},[e("div",{on:{click:function(){return t.changeSkin("dark")}},class:[r.prefixCls+"-skin-style-item","dark"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(s.default),"dark"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["暗色"])]),e("div",{on:{click:function(){return t.changeSkin("light")}},class:[r.prefixCls+"-skin-style-item","light"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(a.default),"light"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["亮色"])])])]),e(o.default,{attrs:{title:"系统主色设置"}},[e("div",{class:r.prefixCls+"-skin-color"},[i])])])])}}},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(14)),i=n(3),o=m(n(113)),s=m(n(4)),a=m(n(114)),c=m(n(67)),l=m(n(178)),u=m(n(68)),h=m(n(55)),d=m(n(111)),f=m(n(179)),p=m(n(182));function m(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapAndBasicHeader",inject:["slotsList","propsList"],props:{theme:{type:String,default:"light"},fixed:{type:Boolean,default:!1},navList:{type:Array,default:function(){return[]}}},data:function(){return{currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},computed:{skin:function(){return this.$store.state.user.skin.color}},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=o>-1?o:0,t.$store.commit("user/SET_NAV_INDEX",t.currentIndex)}}),{immediate:!0,deep:!0})},watch:{skin:{handler:function(t){this.propsList.nav&&this.renderNavActive(t,d.default.toNum3(t))},immediate:!0}},methods:{setChildrenWidthAndResize:function(){if(this.navList&&!(0,s.default)(this.navList)){var t=this.navList.filter((function(t){return 1===t.type}));this.menuItemSizes=t,this.overflowedItems=[]}},onResize:function(t){var e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var i=this.$store.state.user.skin;i&&!(0,s.default)(i.color)?this.renderNavActive(i.color,d.default.toNum3(i.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,s.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){l.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,o){var s="dark"!==t.theme?(0,r.default)([i.prefixCls+"-header-right-nav-item",n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,r.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,o)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,h.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){n.propsList.nav&&l.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,h.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.theme,n=this.fixed,s=this.slotsList,l=this.propsList,h=(0,r.default)([i.prefixCls+"-header",i.prefixCls+"-header-"+e,i.prefixCls+"-header-"+l.navVersion+"-"+e,i.prefixCls+"-header-"+l.navVersion,i.prefixCls+"-header-"+l.navVersion+"-"+l.navTheme,i.prefixCls+"-header-"+l.navTheme,n?i.prefixCls+"-header-fixed":"",i.prefixCls+"-header-inner-"+this.currentIndex]);return t("a-layout-header",{class:h},[t("div",{class:[i.prefixCls+"-header-"+e+"-inner",i.prefixCls+"-header-inner"]},[s.logo?s.logo:t(o.default,{attrs:{prefix:"basic",theme:e}}),s.prefix,t("div",{class:i.prefixCls+"-header-right",ref:"rightDom"},[l.nav?"v1"===l.navVersion?t(f.default,{attrs:{theme:e}}):t(p.default,{attrs:{theme:e,mode:l.navTheme}}):null,l.right?t("div",{class:i.prefixCls+"-header-right-extra"},[s.header,t(a.default,{attrs:{theme:e}}),s.extends,t(c.default,{attrs:{theme:e}}),s.user?s.user:t(u.default,{attrs:{theme:e}})]):null]),s.suffix]),this.slotsList.headerBottom])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(13)),i=u(n(30)),o=u(n(31)),s=n(8),a=n(5),c=n(12),l=u(n(14));function u(t){return t&&t.__esModule?t:{default:t}}var h,d="data:image/webp;base64,UklGRk4KAABXRUJQVlA4WAoAAAAwAAAAPwAAPwAASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANkFMUEhMAwAADaAtybZp26rW51rHuLZt27Zt27Zt27Zt27bv4eY11+j9YWnvOX4gIiaA9iUcTTHTDAvNM8vk1QHwV8dnn37y9dc9jsmDflc4E6+58tSJ5kMmm2vueSatjHv20Y6Qop+MxHSbb0NAuKQ6IsImnHHO1Ra+79ofMbw/LMW8uyxMBCEzmkrCEVPsvsZH178u8z6TasP2XwPcJNo2IHyadTd56aJei+gbkVY8knAq9LXkMeKwJc54xoi+MPfDlyMVRn8akZY49vUz3Ly94v8JziC8Sn/LfNgxExzVY96O/T/VebgZJbRIe6584Cjz1qw2xSmkCuWU0ppbHNZh3orSROeRBlBWWVpru326Fc0UOok0gBIXac0Vjvtf0cyPxCuUuvC9hp3TzGorLY4ouTjxzUfM65QmPIhUKV0afNglPYq62Is0gNIXaZmFL6mz2kIrYWRoHP7M2+bADniRg3zElle7rDbj/GS74edfCDYlVfOwNOVSD+ATb4mRqbHPXeNYk8hGMc3CD7EaoVwIrfTcVBOR9XzdMwnlI6YZNhNeZOQTTjofoXwIzbUgImMx9yy5zTpRbpMMJfOByq0g+1Bm//0+PLeeiUIZhbq+njWzrz6cP5tQgw8WMDIVIL76YcIJQqULhQCi+HXUt5qpfCFEA436c1zXPJReNA19As+tpNK1aDwLDy8yVSiTsI43sM6793DLxO0qDO5YYWq3LLza+TRyffnhpuQZehglFDdsNEEog6j8dRNy3N559lC3DNxOx2rUX7HI4qkonVfffJ+Gbh0XHjUsVLIwPxWr1eH22LtHZ3AqSjQOzph491SUKlXv+JoWQ7WjV18lFSVKA16+D3kzwrr222nVZCpJ+ICXr8ASrbqNOmr7VRyVw6svX4XVaN2LH/Zfe9dwK4Grcv39WI12k/UcPslxg5Opn8KrfsoorEb7Lj/9reMWDcf6wbHinROREn0Z2ONnLXn00HCpjyIq/Hvy65gHfRthvZc8t+W6U0YEWBsRYbLOR69FVqPv3fTatV+ussfkiHBJDQI3E4y98mnDItGfjvjqlnsXW23uaScoaCqM3376/Jk3kJTo71ARHQ8/0z1kstnnnnuCISL+6P36869++qcAw4O2AVZQOCC8BAAA0BUAnQEqQABAAD5tLJJGpCIhoTAUCwCADYlsALElQX4Bxr0MfC+aBS/8jsxxs4Vvie+aT7APMh50e5AewtvJHlLXe7+LQSHh39GDPb9SewP+r/pAey30AP1PSO88Jm4eK/divBnLnHrz4CVEn6AxAZjff34I/VSZtrOPtclJYA9AbN52d961SZIkPoPsASAVkvDN9uDDdCn9QGtBQgHej972sJ4ZgA87s4gft5odSw1cDTkFuVIAAP7/OkF2JfyXlUqa8sMsM+cPy8TEO+WtIS+RueaS3TlAr6SNyT/4tfZoEnBzFJz3oxBBvWuXuNpy35PSR/7rhoh0m4xGhyrgqGk+YTGhqIx6dJnMP0/AonghGybbxS+bXsXUU0jdC7adMIFiaAX2SHV37RJkHsmMzcCozzVHVKL5IkRjAJ2jz2NZ3skOvfXA6Ik3OYAhwHkU4bFqp7C5OzpfS+TwA4Z0728VAU2m9uSn8vghqhi1+NIbM5MGl+7NelaUTqvMcT7NMXlH8CpkVExt/N+h11LZy5V9ypUla0IU2j4cQlfnQ+8VzGqtCgxQfxSaV3Z6iJEL8uot3FvIdXJVO0pz1eZT2GKMMDO4E4OHWr0rO5JaZaUIZ4hEACBSHzXfiGelUmyTY7sGf2APWkZs3cKmAoo5zqyWRvo8b73XHT89H76av1P5E8f3w9FFpn3y3ip+fLllYa8uWygj0CR8w8DXN7xUyWVR65gRyo/0Y//54yK/fs8xAW3WtpLgrBPj8Z1R3PaHxsoLC9hcGyiAWW3vi7ZwIex/bknwePmjwbtZkemX9qrWm6OoGs3rydXgLH8PBYZgy06DLr7t3DeMTYudDqk64DUviNPlSIw/QdBTtUu4gCNWGUN1AvNI20NKcVG8AROIBdfNw/EKl5ndo/bdzGLVh5Z/5x6B5aEa7li35K+gIFTUCRY28rbqscfWSIpOKXiOHk8sqM5F/xHcabsuPE8yEDhm3PPPD6r/M2ZJfn/28zq0t7kF0fAz/+/k/01qEldX/pr/3je/h4f/HbtG20fn7/5+P9V/8c0y1BE/9mhkOGb3Kgv4hFi8X/Zjf+qjNsAP/e+/721/qdBPqYg2KDenvxcU8fKcOEhmWP0fGru4dWmba6XnQqvj6yU/uyBXsR7ADCif7pTtpD5nfbO5AnXVP9JUKqqTINt/+4k8+bgfnN2XuUkrOGwcO3Hyw3+r/u6UT6HUIu09yWbBtmFZLqk9my7ZrKWvidcuXKeRxRrq1gpYUXIY7SXNnibsp0NGV3hTTbQb1CwIXH2XbfobV4BpWO6FFYE3EEBMnS2UoIuo+cFw5o7U0UiZu/f4kf5sGHiQey4pEi0aP7r+4Qr9rw1Fu/DZm1NBrCn/rN/YOv6rTvsuq5RuRWj5/WyF/dHtvNXAWBA8p+NgsDkhglrla4Am6BMMg6BqmOhl42xNVUv/5W6seYyqRaqYIc5Jmwjfe7wV948cc6+gzcYbRRo33W3EjCyuX8t9ZlDcb/nE9Pw9E1isHwVJSjdF0v+zRl3FQH+zNKcvK/r99LnWhQWXaowpq8WYUAWYJsjn5AphibAaFwrX7YzpngkGDwv85praR2z/EGqoiMHssNjRWwAA";e.default={name:"HeaderExtend",props:{theme:{type:String,default:"light"}},data:function(){return{projectList:[]}},computed:{currentCode:function(){return(0,s.getCache)("CLIENT_ID",s.sessionEngine)}},mounted:function(){this.getProject()},methods:{getProject:(h=(0,o.default)(i.default.mark((function t(){var e,n,r=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.getByCuser)();case 2:e=t.sent,(n=e.data).forEach((function(t,e){r.currentCode===t.code&&n.unshift(n.splice(e,1)[0])})),this.projectList=n;case 6:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)}),goToPage:function(t){var e=a.localStore.get("IAM_OATH_TYPE");if(t.domain)if(t.domain.indexOf("http")>-1||t.domain.indexOf("https")>-1){var n={redirectUri:t.domain,clientId:t.code,scope:"all",state:"hello"};e&&"idp"===e&&(n=(0,r.default)(n,{oauthType:e})),(0,c.iamRedirect)(n).then((function(t){0===t.code&&window.location.replace(t.data,"_self")}))}else this.$router.push(t.domain)}},render:function(){var t=this,e=arguments[0],n=this.projectList.length?this.projectList.map((function(n){var r=(0,l.default)(["header-extend-content-footer-item",t.currentCode===n.code?"header-extend-content-footer-item-active":""]);return e("div",{class:r,on:{click:function(){return t.goToPage(n)}}},["dark"===t.theme?n.whiteIcon?e("img",{attrs:{src:n.whiteIcon,alt:""}}):e("a-avatar",{slot:"avatar"}):n.icon?e("img",{attrs:{src:n.icon,alt:""}}):e("a-avatar",{slot:"avatar"}),e("span",[n.name])])})):e("div",{class:"header-extend-content-footer-item"},[e("a-skeleton",{attrs:{avatar:!0,active:!0,paragraph:{rows:0}}})]);return e("div",{class:"header-extend"},[e("a-popover",{attrs:{trigger:"hover","arrow-point-at-center":!0,overlayClassName:"header-extend-popover app-dropdown-"+this.theme}},[e("div",{class:"header-extend-content",slot:"content"},[e("div",{class:"header-extend-content-header"},[e("img",{attrs:{src:d,alt:""}}),e("div",{class:"header-extend-content-header-title"},[e("span",["智慧环保"]),e("span",["creative"])])]),e("div",{class:"header-extend-content-footer"},[e("a-scrollbar",[e("div",{class:"header-extend-content-footer-inner"},[n])])])]),e("div",{class:"header-extend-inner"},[e("a-icon",{attrs:{type:"caret-down"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(355)),i=a(n(39)),o=a(n(40)),s=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t),this.c=Math.min,this.h=r.default,this.m=Math.max,this.n=Math.abs,this.j=.85,this.k=10,this.l=4,this.opt={},this.opt.currentIndex=1}return(0,o.default)(t,[{key:"calcAVGSpeed",value:function(t){var e=(this.l*this.j*t+this.k*(1-this.j)*t)/(this.k*this.l*20);return e=this.m(this.n(e),2.5)*this.h(e)}},{key:"getCurSpeed",value:function(t,e){return this.n(t)>this.n(this.j*e)?this.l*this.opt.avgSpeed:this.k*this.opt.avgSpeed}},{key:"_calCurve",value:function(t,e,n,r,i,o){i.bezierCurveTo(t+o,e,n-o,r,n,r)}},{key:"_initCanvas",value:function(t,e,n){var r=window.devicePixelRatio,i=t.getContext("2d");t.width=e*r,t.height=n*r,t.style.width=e+20+"px",t.style.height=n+"px",i.scale(r,r)}},{key:"resize",value:function(){this.opt.timer&&cancelAnimationFrame(this.opt.timer),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height)}},{key:"_toggle",value:function(t){return this.opt.tabWidthList&&this.opt&&this.opt.tabWidthList&&this.opt.tabWidthList.length&&(!this.opt.animating||t!==this.opt.nextIndex)&&(this.opt.animating=!0,this.opt.distance=this.opt.tabWidthList[t]-this.opt.tabWidthList[this.opt.currentIndex],this.opt.avgSpeed=this.calcAVGSpeed(this.opt.distance),this.opt.curDisX=0,this.opt.nextIndex=t),!1}},{key:"_createPattern",value:function(t){var e=document.createElement("canvas");e.width=140,e.height=63,e.style.width="140px",e.style.height="63px";var n=e.getContext("2d");n.scale(1,1),n.lineWidth=.4;for(var r=.8,i=1;30>i;i++)n.strokeStyle="RGBA(22, 120, 160, "+r+")",n.beginPath(),n.moveTo(0,3*i),n.lineTo(140,3*i),n.stroke(),n.closePath(),10<i&&(r-=.1);var o=t.getContext("2d").createPattern(e,"repeat-x");this.opt.pattern=o,e=null}},{key:"_drawHightlight",value:function(t){var e=this.opt.canvas.getContext("2d");e.clearRect(0,0,2*this.opt.width,2*this.opt.height),e.shadowColor="rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+",1)",e.shadowBlur=5,e.strokeStyle=this.opt.color,e.lineWidth=.8,e.fillStyle="none",this._draw(e,!1);var n=e.createLinearGradient(this.opt.tabWidthList[this.opt.currentIndex]-this.opt.tabWidth/2,0,this.opt.tabWidthList[this.opt.currentIndex+1]+this.opt.tabWidth/2,this.opt.height),r=t-.3,i=this.c(1,this.m(0,0+r)),o=this.c(1,this.m(0,0+r+.1)),s=this.c(1,0+r+.3),a=this.c(1,0+r+.3+.1),c=1-i;n.addColorStop(i,"rgba(0,0,0,0)"),n.addColorStop(o,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(s,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(a,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,0)"),e.lineWidth=1.5,e.strokeStyle=n,e.fillStyle=this.opt.pattern,this._draw(e,!0)}},{key:"draw",value:function(t){this._drawHightlight(t),this.opt.timer=requestAnimationFrame(function(){this.draw((t+.005)%1.6)}.bind(this))}},{key:"_draw",value:function(t,e){var n=this.opt.currentIndex,r=this.opt.tabHeight,i=.5,o=0,s=this.opt.tabWidthList[n]-(e?this.opt.tabWidth/2:0);if(t.beginPath(),t.moveTo(s,this.opt.height+10),t.lineTo(s,r+i),this.opt.animating){var a=this.getCurSpeed(this.opt.curDisX,this.opt.distance);o=this.c(this.n(this.opt.distance),this.n(this.opt.curDisX+a))*this.h(a)}if(t.lineTo(0+this.opt.tabWidthList[n]+o-20,r+i),this._calCurve(0+this.opt.tabWidthList[n]+o-20,r+i,0+this.opt.tabWidthList[n]+o+20,3,t,20),this.opt.animating){var c=this.opt.tabWidthList[this.opt.nextIndex+1]-this.opt.tabWidthList[this.opt.nextIndex];t.lineTo(0+this.opt.tabWidthList[n]+c+o-20,3),this._calCurve(0+this.opt.tabWidthList[n]+c+o-20,3,0+this.opt.tabWidthList[n]+c+o+20,r+i,t,20)}else t.lineTo(0+this.opt.tabWidthList[n+1]+o-20,3),this._calCurve(0+this.opt.tabWidthList[n+1]+o-20,3,0+this.opt.tabWidthList[n+1]+o+20,r+i,t,20);e&&(t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,r+i),t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,this.opt.height)),t.closePath(),t.stroke(),e&&t.fill(),this.opt.animating&&e&&(this.opt.curDisX=o,this.n(o)>=this.n(this.opt.distance)&&(this.opt.animating=!1,this.opt.currentIndex=this.opt.nextIndex))}},{key:"initTabs",value:function(){var t=this.opt.navItemList[this.opt.currentIndex];if(!(0,s.default)(t)){this.opt.tabHeight=t.offsetHeight,this.opt.tabWidth=t.offsetWidth,this.opt.height=.9*t.offsetHeight,this.opt.tabWidthList=[],this.opt.width=0;for(var e=[],n=0;n<this.opt.navItemList.length;n++){var r=this.opt.navItemList[n];e.push(0===n?r.offsetLeft+10:r.offsetLeft),this.opt.width+=r.offsetWidth}this.opt.tabWidthList=[].concat(e,[this.opt.navItemList[this.opt.navItemList.length-1].offsetLeft+this.opt.navItemList[this.opt.navItemList.length-1].offsetWidth-16]),this.opt.canvas.style.left="-10px"}}},{key:"drawNav",value:function(t){this.opt.canvas=t.canvas,this.opt.navItem=t.navItem,this.opt.navCount=t.navCount,this.opt.rgb=t.rgb,this.opt.color=t.color,this.opt.navWidthList=t.navWidthList,this.opt.navItemList=t.navItemList,(0,s.default)(this.opt.canvas)||(this.initTabs(),this._toggle(t.index),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height),this._createPattern(this.opt.canvas),this.draw(0),window.addEventListener("resize",function(){this.resize()}.bind(this),!1))}}]),t}();e.default=new c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(4)),i=n(3),o=n(43),s=h(n(111)),a=h(n(178)),c=h(n(14)),l=h(n(55)),u=h(n(180));h(n(181));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"IepNav",props:{theme:{type:String,default:"dark"}},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,r.default)(t.navList)&&n.length){var o=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=o[0].path;var s=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=s>-1?s:0,t.$nextTick((function(){t.onResize()}))}}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,r.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var i=Math.round(t.width/e);i>0?(this.menuItemSizes=n.slice(0,i-1),this.overflowedItems=n.slice(i-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var o=this.$store.state.user.skin;o&&!(0,r.default)(o.color)?this.renderNavActive(o.color,s.default.toNum3(o.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,r.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){a.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,r.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,r){var s="dark"!==t.theme?(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,r)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,l.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){a.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,l.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.$props,n=e.theme;e.version;return t("div",{class:[i.prefixCls+"-header-right-nav","dark"===n?i.prefixCls+"-header-dark":""],ref:"navDom"},[t("canvas",{attrs:{id:"navCanvas"},style:"position: absolute; z-index: -1"}),this.renderNav(),(0,r.default)(this.overflowedItems)?null:t(u.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(n(14)),o=a(n(359)),s=a(n(360));function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Nav",props:{columns:{type:Array,default:function(){return[]}}},data:function(){return{visible:!1}},methods:{handleChange:function(t){this.visible=t},onNavClick:function(){this.visible=!1}},render:function(){var t=this,e=arguments[0],n=this.columns,a=this.visible,c=this.handleChange,l=n&&n.length?n.filter((function(t){return 1===t.type})).map((function(n,r){return e(o.default,{attrs:{index:r,title:n.meta.name,path:n.path,"data-source":n.children},on:{navClick:function(){return t.onNavClick()}}})})):null,u=(0,i.default)([r.prefixCls+"-dropdown-menu",a?r.prefixCls+"-dropdown-menu-actove":""]);return e("a-popover",{attrs:{trigger:["hover"],overlayClassName:r.prefixCls+"-dropdown"},on:{visibleChange:c}},[e("div",{class:u},[e(s.default)]),e("div",{class:r.prefixCls+"-dropdown-content",slot:"content"},[e("a-scrollbar",[e("div",{class:r.prefixCls+"-dropdown-content-inner"},[l])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(110),o=(r=i)&&r.__esModule?r:{default:r};var s={name:"IepResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){if(this.$props.disabled)this.destroyObserver();else{var t=this.$el;t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(t))}},onResize:function(t){var e=t[0].target.getBoundingClientRect(),n=e.width,r=e.height,i=Math.floor(n),o=Math.floor(r);if(this.width!==i||this.height!==o){var s={width:i,height:o};this.width=i,this.height=o,this.$emit("resize",s)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(25)),i=n(3),o=u(n(361)),s=u(n(4)),a=u(n(46)),c=u(n(55)),l=u(n(180));u(n(181));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppNav",props:{mode:r.default.oneOf(["iep","park"]).def("iep"),theme:r.default.oneOf(["dark","light"]).def("dark")},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[],selectedKeys:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));if(t.currentIndex=o>-1?o:0,r.length>=2){var c=(0,a.default)(r,{layout:"BlankLayout"});(0,s.default)(c)?t.selectedKeys=[r[r.length-1].path]:t.selectedKeys=[c.path]}else t.selectedKeys=[r[0].path]}t.$nextTick((function(){t.onResize()}))}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[]}},renderNav:function(){var t=this,e=this.$createElement,n=this.$props,r=n.mode,a=n.theme;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,c){var l=(0,s.default)(n.children)?null:n.children.map((function(n){return 1===n.type?e("a-menu-item",{key:n.path,on:{click:function(){return t.handleTap(n,c)}}},[e("span",[n.meta.title])]):null})),u=n.path===t.currentPath?e("div",{class:[i.prefixCls+"-nav-item",i.prefixCls+"-nav-item-active"]},"iep"===r?[e("span",[" ",n.meta.title])]:[e(o.default),e("span",[" ",n.meta.title])]):e("div",{class:[i.prefixCls+"-nav-item"]},[e("span",[" ",n.meta.title])]),h="SidebarWrapper"===n.layout?e("a-dropdown",{attrs:{overlayClassName:i.prefixCls+"-nav-item-dropdown"}},[u,e("a-menu",{slot:"overlay",class:[i.prefixCls+"-nav-menu",i.prefixCls+"-nav-menu-"+a],attrs:{selectedKeys:t.selectedKeys}},[l])]):u;return e("div",{ref:"navItem",class:[i.prefixCls+"-nav-"+t.theme,i.prefixCls+"-nav-"+t.mode],on:{click:function(){return t.handleTap(n,c)}}},[h])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,c.default)(this,{},null,!1),window.open(r,"_blank")}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){1!==t.meta.functionType&&(0,c.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:[i.prefixCls+"-nav",i.prefixCls+"-header-right-nav"],ref:"navDom"},[this.renderNav(),(0,s.default)(this.overflowedItems)?null:t(l.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(41)),i=a(n(39)),o=a(n(40)),s=n(122);function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"saveIndexDb",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r,i){(new t).initIndexedDb().then((function(t){var o=t.transaction(n,"readwrite").objectStore(n);"array"===(0,s.toType)(e)?e.map((function(t){o.put(t)})):o.put(e),t.onsuccess=function(e){r(t)},t.onerror=function(t){i(t)}}))}))}},{key:"initIndexedDb",value:function(){return new r.default((function(t,e){var n=window.indexedDB.open("rk-web-core",1);n.onupgradeneeded=function(e){var n=e.target.result;if(!n.objectStoreNames.contains("app_db")){var r=n.createObjectStore("app_db",{keyPath:"tag"});r.createIndex("tag","tag",{unique:!0}),r.createIndex("value","value",{unique:!1}),r.createIndex("remarks","remarks",{unique:!1})}if(n.objectStoreNames.contains("rk_db"))t(n);else{var i=n.createObjectStore("rk_db",{keyPath:"tag"});i.createIndex("tag","tag",{unique:!0}),i.createIndex("val","val",{unique:!1}),i.createIndex("desc","desc",{unique:!1}),i.createIndex("created","created",{unique:!1}),i.createIndex("isTop","isTop",{unique:!1}),t(n)}},n.onsuccess=function(e){var n=e.target.result;t(n)},n.onerror=function(t){e(t)},n.onerror=function(t){console.log("Can not open indexedDB",t)}}))}},{key:"getLocalRecord",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r){(new t).initIndexedDb().then((function(t){var i=t.transaction(n,"readwrite").objectStore(n).get(e);i.onsuccess=function(t){r(t.target.result)},i.onerror=function(t){r()}}))}))}}]),t}();e.default=new c},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"EventCenterForMicroApp",(function(){return he})),n.d(e,"MicroApp",(function(){return tr})),n.d(e,"getActiveApps",(function(){return Qn})),n.d(e,"getAllApps",(function(){return Xn})),n.d(e,"getAppStatus",(function(){return $n})),n.d(e,"preFetch",(function(){return Vn})),n.d(e,"pureCreateElement",(function(){return J})),n.d(e,"reload",(function(){return qn})),n.d(e,"removeDomScope",(function(){return X})),n.d(e,"renderApp",(function(){return Kn})),n.d(e,"unmountAllApps",(function(){return Jn})),n.d(e,"unmountApp",(function(){return Yn})),n.d(e,"version",(function(){return r}));const r="1.0.0-rc.4",i="undefined"!=typeof window,o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Function("return this")(),s=()=>!1,a=Array.isArray,c=Object.assign,l=Object.defineProperty,u=Object.defineProperties,h=Object.prototype.toString,d=Object.prototype.hasOwnProperty,f=t=>h.call(t);function p(t){return void 0===t}function m(t){return null===t}function g(t){return"string"==typeof t}function v(t){return"boolean"==typeof t}function y(t){return"number"==typeof t}function _(t){return"function"==typeof t}function b(t){return"[object Object]"===f(t)}function x(t){return!m(t)&&"object"==typeof t}function w(t){return"[object Promise]"===f(t)}function S(t){var e;if(_(t)){const n=t.toString();return(null===(e=t.prototype)||void 0===e?void 0:e.constructor)===t&&Object.getOwnPropertyNames(t.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n)}return!1}function M(t){var e;return t instanceof URL||!!(null===(e=t)||void 0===e?void 0:e.href)}function A(t){var e;return t instanceof Element||g(null===(e=t)||void 0===e?void 0:e.tagName)}function C(t){var e;return t instanceof Node||y(null===(e=t)||void 0===e?void 0:e.nodeType)}function E(t){return"[object HTMLLinkElement]"===f(t)}function T(t){return"[object HTMLStyleElement]"===f(t)}function I(t){return"[object HTMLScriptElement]"===f(t)}function P(t){return A(t)&&"MICRO-APP-BODY"===t.tagName.toUpperCase()}function L(t,e,n){if(null==t)throw new TypeError("includes target is null or undefined");const r=Object(t),i=parseInt(r.length,10)||0;if(0===i)return!1;n=parseInt(n,10)||0;let o=Math.max(n>=0?n:i+n,0);for(;o<i;){if(e===r[o]||e!=e&&r[o]!=r[o])return!0;o++}return!1}function R(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.error(`[micro-app]${r} ${t}`,...n):console.error("[micro-app]"+r,t,...n)}function O(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.warn(`[micro-app]${r} ${t}`,...n):console.warn("[micro-app]"+r,t,...n)}function B(t,...e){Promise.resolve().then(t.bind(null,...e))}const k=function(){class t extends URL{}return(e,n)=>n?new t(""+e,n):new t(""+e)}();function D(t){return t.startsWith("//")?`${o.location.protocol}${t}`:t}function F(t,e=null){if(!g(t)||!t)return"";try{const{origin:e,pathname:n,search:r}=k(D(t),(window.rawWindow||window).location.href);if(/\.(\w+)$/.test(n))return`${e}${n}${r}`;const i=`${e}${n}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(i)?`${i}${r}`:""}catch(t){return R(t,e),""}}function N(t){return g(t)&&t?t.replace(/(^\d+)|([^\w\d-_])/gi,""):""}function j(t){const{origin:e,pathname:n}=k(t);if(/\.(\w+)$/.test(n)){const t=`${e}${n}`.split("/");return t.pop(),t.join("/")+"/"}return`${e}${n}/`.replace(/\/\/$/,"/")}function U(t,e){return!t||/^((((ht|f)tps?)|file):)?\/\//.test(t)||/^(data|blob):/.test(t)?t:k(t,j(D(e))).toString()}function z(t,e,n,r){let i=0;function o(){++i===t.length&&r&&r()}t.forEach((t,r)=>{w(t)?t.then(t=>{e({data:t,index:r}),o()}).catch(t=>{n({error:t,index:r}),o()}):(e({data:t,index:r}),o())})}const G=o.requestIdleCallback||function(t){const e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))})}),1)};function H(t){return new Promise(e=>{G(()=>{t(e)})})}let W=null;function V(t){W=t}function Z(){return W}let Q=!1;function X(t){V(null),t&&!Q&&(Q=!0,B(()=>{Q=!1}))}function Y(t){W===t||Q||(V(t),B(()=>{V(null)}))}function J(t,e){const n=(window.rawDocument||document).createElement(t,e);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n.__PURE_ELEMENT__=!0,n}function q(t){return!t||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(t)}function K(t){return/^body$/i.test(t)||/^head$/i.test(t)||/^html$/i.test(t)||/^title$/i.test(t)||/^:root$/i.test(t)}function $(t){return function(t){return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot}(t)?t.host:t}function tt(t){return t?t.replace(/^\s+|\s+$/g,""):""}function et(){return navigator.userAgent.indexOf("Firefox")>-1}function nt(t){const e={},n=t.split("&");for(const t of n){const n=t.indexOf("="),r=n<0?t:t.slice(0,n),i=n<0?null:t.slice(n+1);if(r in e){let t=e[r];a(t)||(t=e[r]=[t]),t.push(i)}else e[r]=i}return e}function rt(t){let e="";for(const n in t){const r=t[n];if(m(r))e+=(e.length?"&":"")+n;else{(a(r)?r:[r]).forEach(t=>{p(t)||(e+=(e.length?"&":"")+n,m(t)||(e+="="+t))})}}return e}function it(){const t=new Set;return{add:function(e){return t.add(e),()=>!!t.has(e)&&t.delete(e)},list:()=>t}}function ot(t){const e=t.attributes,n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,e[t].value);return n}function st(t,e){t?t.push(()=>H(t=>{e(),t()})):e()}function at(t){return(null==t?void 0:t.reduce((t,e)=>t.then(e),Promise.resolve()))||null}function ct(t){return t.startsWith("inline-")}function lt(t,e,n,...r){try{_(t)&&t(...r)}catch(t){R(`An error occurred in app ${e} window.${n} \n`,null,t)}}function ut(t,e,n,r){var i;if(!t)return R("element does not exist in lifecycle "+n,e);t=$(t),X();const o=c({name:e,container:t},r&&{error:r}),s=new CustomEvent(n,{detail:o});!function(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},target:{get:()=>e}})}(s,t),_(null===(i=er.options.lifeCycles)||void 0===i?void 0:i[n])&&er.options.lifeCycles[n](s),t.dispatchEvent(s)}function ht(t,e,n={}){var r;const i=new CustomEvent(e,{detail:n});null===(r=t.sandBox)||void 0===r||r.microAppWindow.dispatchEvent(i)}function dt(t,e=null,n={}){return X(),_(er.options.fetch)?er.options.fetch(t,n,e):window.fetch(t,n).then(t=>t.text())}class ft{static getInstance(){return this.instance||(this.instance=new ft),this.instance}run(t,e){const n=t.name,r=t.ssrUrl||t.url;(r.includes(".js")?Promise.resolve(`<micro-app-head><script src='${r}'><\/script></micro-app-head><micro-app-body></micro-app-body>`):dt(r,n,{cache:"no-cache"})).then(i=>{if(!i){const e="html is empty, please check in detail";return t.onerror(new Error(e)),R(e,n)}i=this.formatHTML(r,i,n),e(i,t)}).catch(e=>{R(`Failed to fetch data from ${t.url}, micro-app stop rendering`,n,e),t.onLoadError(e)})}formatHTML(t,e,n){return this.processHtml(t,e,n,er.options.plugins).replace(/<head[^>]*>[\s\S]*?<\/head>/i,t=>t.replace(/<head/i,"<micro-app-head").replace(/<\/head>/i,"</micro-app-head>")).replace(/<body[^>]*>[\s\S]*?<\/body>/i,t=>t.replace(/<body/i,"<micro-app-body").replace(/<\/body>/i,"</micro-app-body>"))}processHtml(t,e,n,r){var i;if(!r)return e;const o=[];return r.global&&o.push(...r.global),(null===(i=r.modules)||void 0===i?void 0:i[n])&&o.push(...r.modules[n]),o.length>0?o.reduce((e,n)=>b(n)&&_(n.processHtml)?n.processHtml(e,t):e,e):e}}const pt=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,mt=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function gt(t,e){t=e?`${e} ${t}`:t;const n=new Error(t);throw n.reason=t,e&&(n.filename=e),n}class vt{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForRuleWithChildRule(/^@media *([^{]+)/,"@media"),this.supportsRule=this.createMatcherForRuleWithChildRule(/^@supports *([^{]+)/,"@supports"),this.documentRule=this.createMatcherForRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"@document"),this.hostRule=this.createMatcherForRuleWithChildRule(/^@host\s*/,"@host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace"),this.containerRule=this.createMatcherForRuleWithChildRule(/^@container *([^{]+)/,"@container")}exec(t,e,n,r){return this.cssText=t,this.prefix=e,this.baseURI=n,this.linkPath=r||"",this.matchRules(),et()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&"}"!==this.cssText.charAt(0)&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):gt("selector missing",this.linkPath)}formatSelector(t){const e=this.commonMatch(/^[^{]+/,t);return!!e&&e[0].replace(/(^|,[\n\s]*)([^,]+)/g,(t,e,n)=>(n=tt(n),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(n))||pt.test(n)||(n=mt.test(n)?n.replace(mt,this.prefix+" micro-app-body"):this.prefix+" "+n),e+n))}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),!!this.matchCloseBrace()||gt("Declaration missing '}'",this.linkPath)):gt("Declaration missing '{'",this.linkPath)}matchAllDeclarations(t=1){let e=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^{}/])*/,!0)[0];if(e&&(this.scopecssDisableNextLine||this.scopecssDisable&&!this.scopecssDisableSelectors.length||(e=e.replace(/url\(["']?([^)"']+)["']?\)/gm,(t,e)=>/^((data|blob):|#)/.test(e)||/^(https?:)?\/\//.test(e)?t:(/^((\.\.?\/)|[^/])/.test(e)&&this.linkPath&&(this.baseURI=function(t){const e=t.split("/");return e.pop(),D(e.join("/")+"/")}(this.linkPath)),`url("${U(e,this.baseURI)}")`))),this.recordResult(e)),this.scopecssDisableNextLine=!1,this.cssText){if("}"===this.cssText.charAt(0)){if(!t)return;return t>1&&this.commonMatch(/}+/),this.matchAllDeclarations(t-1)}return"/"===this.cssText.charAt(0)&&("*"===this.cssText.charAt(1)?this.matchComments():this.commonMatch(/\/+/)),"{"===this.cssText.charAt(0)&&(this.commonMatch(/{+\s*/),t++),this.matchAllDeclarations(t)}}matchAtRule(){return"@"===this.cssText[0]&&(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.containerRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^[^{]+/))return gt("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return gt("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const e=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),this.commonMatch(/^,\s*/);return!!e.length&&(this.styleDeclarations(),this.matchLeadingSpaces(),!0)}customMediaRule(){return!!this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)&&(this.matchLeadingSpaces(),!0)}pageRule(){return!!this.commonMatch(/^@page */)&&(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page"))}fontFaceRule(){return!!this.commonMatch(/^@font-face\s*/)&&this.commonHandlerForAtRuleWithSelfRule("font-face")}createMatcherForRuleWithChildRule(t,e){return()=>!!this.commonMatch(t)&&(this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(e+" missing '}'",this.linkPath)):gt(e+" missing '{'",this.linkPath))}createMatcherForNoneBraceAtRule(t){const e=new RegExp("^@"+t+"\\s*([^;]+);");return()=>!!this.commonMatch(e)&&(this.matchLeadingSpaces(),!0)}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(`@${t} missing '}'`,this.linkPath)):gt(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if("/"!==this.cssText.charAt(0)||"*"!==this.cssText.charAt(1))return!1;this.scopecssDisableNextLine=!1;let t=2;for(;""!==this.cssText.charAt(t)&&("*"!==this.cssText.charAt(t)||"/"!==this.cssText.charAt(t+1));)++t;if(t+=2,""===this.cssText.charAt(t-1))return gt("End of comment missing",this.linkPath);let e=this.cssText.slice(2,t-2);if(this.recordResult(`/*${e}*/`),e=tt(e.replace(/^\s*!/,"")),"scopecss-disable-next-line"===e)this.scopecssDisableNextLine=!0;else if(/^scopecss-disable/.test(e))if("scopecss-disable"===e)this.scopecssDisable=!0;else{this.scopecssDisable=!0;e.replace("scopecss-disable","").split(",").forEach(t=>{this.scopecssDisableSelectors.push(tt(t))})}else"scopecss-enable"===e&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]);return this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,e=!1){const n=t.exec(this.cssText);if(!n)return;const r=n[0];return this.cssText=this.cssText.slice(r.length),e||this.recordResult(r),n}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){et()?this.result+=encodeURIComponent(t):this.result+=t}}function yt(t,e,n,r,i){if(!t.__MICRO_APP_HAS_SCOPED__){t.__MICRO_APP_HAS_SCOPED__=!0;let o=null;try{o=_t.exec(t.textContent,n,r,i),_t.reset()}catch(t){_t.reset(),R("An error occurred while parsing CSS:\n",e,t)}o&&(t.textContent=o)}}let _t;function bt(t,e,n){if(e.scopecss){const r=xt(e.name);if(_t||(_t=new vt),t.textContent)yt(t,e.name,r,e.url,n);else{const i=new MutationObserver((function(){i.disconnect(),t.textContent&&!t.hasAttribute("data-styled")&&yt(t,e.name,r,e.url,n)}));i.observe(t,{childList:!0})}}return t}function xt(t,e=!1){const n=e?"\\":"";return`${er.tagName}${n}[name=${t}${n}]`}function wt(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},srcElement:{get:()=>e},target:{get:()=>e}})}function St(t){const e=new CustomEvent("load");wt(e,t),_(t.onload)?t.onload(e):t.dispatchEvent(e)}function Mt(t){const e=new CustomEvent("error");wt(e,t),_(t.onerror)?t.onerror(e):t.dispatchEvent(e)}var At,Ct,Et,Tt,It,Pt,Lt=function(){const t=new Map,e=new Map;function n(t){return{setInfo(e,n){t.set(e,n)},getInfo(e){var n;return null!==(n=t.get(e))&&void 0!==n?n:null},hasInfo:e=>t.has(e),deleteInfo:e=>t.delete(e)}}return{link:n(t),script:Object.assign(Object.assign({},n(e)),{deleteInlineInfo(t){t.forEach(t=>{ct(t)&&e.delete(t)})}})}}();function Rt(t,e,n,r=!1){const i=t.getAttribute("rel");let o=t.getAttribute("href"),s=null;if("stylesheet"===i&&o){o=U(o,n.url);let e=Lt.link.getInfo(o);const i={attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",appSpace:{[n.name]:i}},Lt.link.setInfo(o,e),r)return{address:o,linkInfo:e};n.source.links.add(o),s=document.createComment(`link element with href=${o} move to micro-app-head as style element`),e.appSpace[n.name].placeholder=s}else i&&["prefetch","preload","prerender"].includes(i)?r?s=document.createComment(`link element with rel=${i}${o?" & href="+o:""} removed by micro-app`):null==e||e.removeChild(t):o&&Gn.rawSetAttribute.call(t,"href",U(o,n.url));return r?{replaceComment:s}:s?null==e?void 0:e.replaceChild(s,t):void 0}function Ot(t,e,n,r){const i=Array.from(e.source.links),o=i.map(t=>{const n=Lt.link.getInfo(t);return n.code?n.code:dt(t,e.name)}),s=r?[]:null;z(o,t=>{st(s,()=>function(t,e,n,r){const i=Lt.link.getInfo(t);i.code=e;const o=i.appSpace[r.name],s=o.placeholder;if(s){const e=J("style");Bt(r,t,e,i,o.attrs),s.parentNode?s.parentNode.replaceChild(e,s):n.appendChild(e),o.placeholder=null}}(i[t.index],t.data,n,e))},t=>{R(t,e.name)},()=>{r?r.then(()=>{s.push(()=>Promise.resolve(e.onLoad({html:t}))),at(s)}):e.onLoad({html:t})})}function Bt(t,e,n,r,i){if(t.scopecss){const i=r.appSpace[t.name];if(i.prefix=i.prefix||xt(t.name),i.parsedCode)n.textContent=i.parsedCode;else{const o=function(t,e,n){const r=n.appSpace;for(const n in r)if(n!==t){const t=r[n];if(t.parsedCode)return t.parsedCode.replace(new RegExp(xt(n,!0),"g"),e)}}(t.name,i.prefix,r);o?n.textContent=o:(n.textContent=r.code,bt(n,t,e)),i.parsedCode=n.textContent}}else n.textContent=r.code;!function(t,e){e.forEach((e,n)=>{"rel"!==n&&("href"===n&&(n="data-origin-href"),Gn.rawSetAttribute.call(t,n,e))})}(n,i)}!function(t){t.NAME="name",t.URL="url"}(At||(At={})),function(t){t.CREATED="created",t.LOADING="loading",t.LOAD_FAILED="load_failed",t.BEFORE_MOUNT="before_mount",t.MOUNTING="mounting",t.MOUNTED="mounted",t.UNMOUNT="unmount"}(Ct||(Ct={})),function(t){t.CREATED="created",t.BEFOREMOUNT="beforemount",t.MOUNTED="mounted",t.UNMOUNT="unmount",t.ERROR="error",t.BEFORESHOW="beforeshow",t.AFTERSHOW="aftershow",t.AFTERHIDDEN="afterhidden"}(Et||(Et={})),function(t){t.ONMOUNT="onmount",t.ONUNMOUNT="onunmount"}(Tt||(Tt={})),function(t){t.KEEP_ALIVE_SHOW="keep_alive_show",t.KEEP_ALIVE_HIDDEN="keep_alive_hidden"}(It||(It={})),function(t){t.DESTROY="destroy",t.DESTORY="destory",t.INLINE="inline",t.DISABLESCOPECSS="disableScopecss",t.DISABLESANDBOX="disableSandbox",t.DISABLE_SCOPECSS="disable-scopecss",t.DISABLE_SANDBOX="disable-sandbox",t.DISABLE_MEMORY_ROUTER="disable-memory-router",t.DISABLE_PATCH_REQUEST="disable-patch-request",t.KEEP_ROUTER_STATE="keep-router-state",t.HIDDEN_ROUTER="hidden-router",t.KEEP_ALIVE="keep-alive",t.CLEAR_DATA="clear-data",t.SSR="ssr",t.FIBER="fiber"}(Pt||(Pt={}));const kt=[1,2,3],Dt=["search","native","native-scope","pure"],Ft=["popstate","hashchange","load","beforeunload","unload","unmount","appstate-change","statechange","mounted"],Nt=["onpopstate","onhashchange","onload","onbeforeunload","onunload","onerror"],jt=["DOMContentLoaded","readystatechange"],Ut=["onreadystatechange"],zt=["window","self","globalThis"],Gt=["rawWindow","rawDocument"],Ht="window,self,globalThis,document,Document,Array,Object,String,Boolean,Math,Number,Symbol,Date,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,navigator,undefined,location,history",Wt=["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"];function Vt(t,e){return e.appSpace[t.name].module&&(!t.useSandbox||t.iframe)}function Zt(t,e){return t.inline||e.appSpace[t.name].inline||Vt(t,e)||function(t,e){return e.appSpace[t.name].attrs.has("id")}(t,e)}function Qt(t){return t.iframe?t.sandBox.microAppWindow:Gn.rawWindow}function Xt(t,e,n){return function(t,e,n){const r=e.appSpace;for(const e in r)if(e!==t.name){const t=r[e];if(t.parsedCode===n&&t.parsedFunction)return t.parsedFunction}}(t,e,n)||function(t,e){return new(Qt(t).Function)(e)}(t,n)}function Yt(){const t="inline-"+Math.random().toString(36).substr(2,15);return Lt.script.hasInfo(t)?Yt():t}function Jt(t,e){return t.useSandbox&&!Vt(t,e)}function qt(t,e){return Jt(t,e)?t.iframe?"iframe":"with":"disable"}function Kt(t,e,n,r=!1){var i;let o=null,s=t.getAttribute("src");if(s&&(s=U(s,n.url)),t.hasAttribute("exclude")||te(s,n.name))o=document.createComment("script element with exclude attribute removed by micro-app");else{if(t.type&&!Wt.includes(t.type)||t.hasAttribute("ignore")||ee(s,n.name))return(null===(i=Gn.rawDocument)||void 0===i?void 0:i.currentScript)&&delete Gn.rawDocument.currentScript,null;if(Gn.supportModuleScript&&t.noModule||!Gn.supportModuleScript&&"module"===t.type)o=document.createComment((t.noModule?"noModule":"module")+" script ignored by micro-app");else if(s){let e=Lt.script.getInfo(s);const i={async:t.hasAttribute("async"),defer:t.defer||"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",isExternal:!0,appSpace:{[n.name]:i}},Lt.script.setInfo(s,e),r)return{address:s,scriptInfo:e};n.source.scripts.add(s),o=document.createComment(`script with src='${s}' extract by micro-app`)}else if(t.textContent){const e=Yt(),i={code:t.textContent,isExternal:!1,appSpace:{[n.name]:{async:!1,defer:"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)}}};if(r)return{address:e,scriptInfo:i};n.source.scripts.add(e),Lt.script.setInfo(e,i),o=document.createComment("inline script extract by micro-app")}else r||(o=document.createComment("script element removed by micro-app"))}return r?{replaceComment:o}:null==e?void 0:e.replaceChild(o,t)}function $t(t){var e,n,r;return[...(null===(e=er.options.plugins)||void 0===e?void 0:e.global)||[],...(null===(r=null===(n=er.options.plugins)||void 0===n?void 0:n.modules)||void 0===r?void 0:r[t])||[]]}function te(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.excludeChecker&&e.excludeChecker(t))}function ee(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.ignoreChecker&&e.ignoreChecker(t))}function ne(t,e){const n=Array.from(e.source.scripts),r=[],i=[];for(const t of n){const n=Lt.script.getInfo(t),o=n.appSpace[e.name];(!o.defer&&!o.async||e.isPrefetch&&!e.isPrerender)&&(r.push(n.code?n.code:dt(t,e.name)),i.push([t,n]))}const o=e.isPrefetch||e.fiber?[]:null;r.length?z(r,t=>{st(o,()=>function(t,e,n,r){if(e.code=n,r.isPrefetch&&2===r.prefetchLevel){const i=e.appSpace[r.name];if(!i.parsedCode&&(i.parsedCode=ie(t,r,n,e),i.sandboxType=qt(r,e),!Zt(r,e)))try{i.parsedFunction=Xt(r,e,i.parsedCode)}catch(t){R("Something went wrong while handling preloaded resources",r.name,"\n",t)}}}(i[t.index][0],i[t.index][1],t.data,e))},t=>{R(t,e.name)},()=>{o?(o.push(()=>Promise.resolve(e.onLoad({html:t}))),at(o)):e.onLoad({html:t})}):e.onLoad({html:t})}function re(t,e,n,r,i){try{!function(t){!function(t){t.sandBox&&(Gn.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow)}(t)}(e);const o=n.appSpace[e.name],s=qt(e,n);if(o.parsedCode&&o.sandboxType===s||(o.parsedCode=ie(t,e,n.code,n),o.sandboxType=s,o.parsedFunction=null),Zt(e,n)){const s=i||J("script");if(function(t,e,n,r,i,o){if(n){if(Gn.rawSetAttribute.call(r,"type","module"),ct(t)?r.textContent=e:r.src=t,o){const e=()=>{o.moduleCount&&o.moduleCount--,o(0===o.moduleCount)};ct(t)?B(e):r.onload=e}}else r.textContent=e;!function(t,e){e.forEach((e,n)=>{"type"===n&&"module"===e||"defer"===n||"async"===n||("src"===n&&(n="data-origin-src"),Gn.rawSetAttribute.call(t,n,e))})}(r,i)}(t,o.parsedCode,Vt(e,n),s,o.attrs,r),!i){const t=e.iframe?e.sandBox.microBody:e.querySelector("micro-app-body");null==t||t.appendChild(s)}}else!function(t,e){const n=e.appSpace[t.name];n.parsedFunction||(n.parsedFunction=Xt(t,e,n.parsedCode));n.parsedFunction.call(Qt(t))}(e,n)}catch(n){throw console.error(`[micro-app from ${i?"runDynamicScript":"runScript"}] app ${e.name}: `,n,t),n}}function ie(t,e,n,r){return b(er.options.plugins)&&(n=function(t,e,n,r){var i;const o=oe(r.global,e,t);return oe(null===(i=r.modules)||void 0===i?void 0:i[n],o,t)}(t,n,e.name,er.options.plugins)),Jt(e,r)?e.iframe?`(function(window,self,global,location){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyLocation);`:`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${Ht}){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(proxyWindow,${Ht})}})(window.__MICRO_APP_PROXY_WINDOW__);`:n}function oe(t,e,n){return a(t)?t.reduce((t,e)=>b(e)&&_(e.loader)?e.loader(t,n):t,e):e}function se(t,e){const n=e.parseHtmlString(t),r=Gn.rawElementQuerySelector.call(n,"micro-app-head"),i=Gn.rawElementQuerySelector.call(n,"micro-app-body");if(!r||!i){const t=`element ${r?"body":"head"} is missing`;return e.onerror(new Error(t)),R(t,e.name)}const o=e.isPrefetch||e.fiber?[]:null;!function t(e,n,r,i){const o=Array.from(e.children);o.length&&o.forEach(e=>{t(e,n,r,i)});for(const t of o)E(t)?t.hasAttribute("exclude")||te(t.getAttribute("href"),n.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),t):t.hasAttribute("ignore")||ee(t.getAttribute("href"),n.name)?t.hasAttribute("href")&&Gn.rawSetAttribute.call(t,"href",U(t.getAttribute("href"),n.url)):Rt(t,e,n):T(t)?t.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),t):n.scopecss&&!t.hasAttribute("ignore")&&st(i,()=>bt(t,n)):I(t)?Kt(t,e,n):"[object HTMLImageElement]"===f(t)&&t.hasAttribute("src")&&Gn.rawSetAttribute.call(t,"src",U(t.getAttribute("src"),n.url))}(n,e,r,o);const s=at(o);e.source.links.size?Ot(n,e,r,s):s?s.then(()=>e.onLoad({html:n})):e.onLoad({html:n}),e.source.scripts.size?ne(n,e):e.onLoad({html:n})}const ae=new class{constructor(){this.eventList=new Map,this.queue=[],this.recordStep={},this.process=()=>{var t,e;let n;const r=this.recordStep,i=this.queue;for(this.recordStep={},this.queue=[];n=i.shift();){const i=this.eventList.get(n),o=i.tempData,s=i.force;let a;if(i.tempData=null,i.force=!1,s||!this.isEqual(i.data,o)){i.data=o||i.data;for(const t of i.callbacks){const e=t(i.data);e&&(null!=a?a:a=[]).push(e)}null===(e=(t=r[n]).dispatchDataEvent)||void 0===e||e.call(t),r[n].nextStepList.forEach(t=>t(a))}}}}isLegalName(t){return!!t||(R("event-center: Invalid name"),!1)}enqueue(t,e,n){this.recordStep[t]?(this.recordStep[t].nextStepList.push(e),n&&(this.recordStep[t].dispatchDataEvent=n)):this.recordStep[t]={nextStepList:[e],dispatchDataEvent:n},!this.queue.includes(t)&&1===this.queue.push(t)&&B(this.process)}isEqual(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]!==e[n])return!1;return!0}on(t,e,n=!1){if(this.isLegalName(t)){if(!_(e))return R("event-center: Invalid callback function");let r=this.eventList.get(t);r?n&&Object.keys(r.data).length&&(!this.queue.includes(t)||this.isEqual(r.data,r.tempData))&&e(r.data):(r={data:{},callbacks:new Set},this.eventList.set(t,r)),r.callbacks.add(e)}}off(t,e){if(this.isLegalName(t)){const n=this.eventList.get(t);n&&(_(e)?n.callbacks.delete(e):n.callbacks.clear())}}clearData(t){if(this.isLegalName(t)){const e=this.eventList.get(t);e&&(e.data={})}}dispatch(t,e,n,r,i){if(this.isLegalName(t)){if(!b(e))return R("event-center: data must be object");let o=this.eventList.get(t);o?(o.tempData=c({},o.tempData||o.data,e),!o.force&&(o.force=!!r)):(o={data:e,callbacks:new Set},this.eventList.set(t,o),o.force=!0),this.enqueue(t,n,i)}}getData(t){var e;const n=this.eventList.get(t);return null!==(e=null==n?void 0:n.data)&&void 0!==e?e:null}};function ce(t,e){return g(t)&&t?e?`__from_base_app_${t}__`:`__from_micro_app_${t}__`:""}class le{addGlobalDataListener(t,e){const n=this.appName;n&&(t.__APP_NAME__=n,t.__AUTO_TRIGGER__=e),ae.on("global",t,e)}removeGlobalDataListener(t){_(t)&&ae.off("global",t)}setGlobalData(t,e,n){X(),ae.dispatch("global",t,t=>_(e)&&e(t),n)}forceSetGlobalData(t,e){this.setGlobalData(t,e,!0)}getGlobalData(){return ae.getData("global")}clearGlobalData(){ae.clearData("global")}clearGlobalDataListener(){const t=this.appName,e=ae.eventList.get("global");if(e)for(const n of e.callbacks)(t&&t===n.__APP_NAME__||!t&&!n.__APP_NAME__)&&e.callbacks.delete(n)}}class ue extends le{addDataListener(t,e,n){ae.on(ce(N(t),!1),e,n)}removeDataListener(t,e){_(e)&&ae.off(ce(N(t),!1),e)}getData(t,e=!1){return ae.getData(ce(N(t),e))}setData(t,e,n,r){ae.dispatch(ce(N(t),!0),e,t=>_(n)&&n(t),r)}forceSetData(t,e,n){this.setData(t,e,n,!0)}clearData(t,e=!0){ae.clearData(ce(N(t),e))}clearDataListener(t){ae.off(ce(N(t),!1))}}class he extends le{constructor(t){super(),this.appName=N(t),!this.appName&&R("Invalid appName "+t)}addDataListener(t,e){t.__AUTO_TRIGGER__=e,ae.on(ce(this.appName,!0),t,e)}removeDataListener(t){_(t)&&ae.off(ce(this.appName,!0),t)}getData(t=!0){return ae.getData(ce(this.appName,t))}dispatch(t,e,n){X(),ae.dispatch(ce(this.appName,!1),t,t=>_(e)&&e(t),n,()=>{const e=Tn.get(this.appName);if((null==e?void 0:e.container)&&b(t)){const t=new CustomEvent("datachange",{detail:{data:ae.getData(ce(this.appName,!1))}});$(e.container).dispatchEvent(t)}})}forceDispatch(t,e){this.dispatch(t,e,!0)}clearData(t=!1){ae.clearData(ce(this.appName,t))}clearDataListener(){ae.off(ce(this.appName,!0))}}function de(t){var e,n;if(t){t.umdDataListeners={global:new Set(null===(e=t.umdDataListeners)||void 0===e?void 0:e.global),normal:new Set(null===(n=t.umdDataListeners)||void 0===n?void 0:n.normal)};const r=ae.eventList.get("global");if(r)for(const e of r.callbacks)t.appName===e.__APP_NAME__&&t.umdDataListeners.global.add(e);const i=ae.eventList.get(ce(t.appName,!0));if(i)for(const e of i.callbacks)t.umdDataListeners.normal.add(e)}}function fe(t){if(null==t?void 0:t.umdDataListeners){for(const e of t.umdDataListeners.global)t.addGlobalDataListener(e,e.__AUTO_TRIGGER__);for(const e of t.umdDataListeners.normal)t.addDataListener(e,e.__AUTO_TRIGGER__);pe(t)}}function pe(t){null==t||delete t.umdDataListeners}class me{constructor(){this.appInstanceMap=Tn}static getInstance(){return this.instance||(this.instance=new me),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,e){this.appInstanceMap.set(t,e)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function ge(){ve(),me.getInstance().getAll().forEach(t=>{t.container&&$(t.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&me.getInstance().clear()}function ve(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",ge,!1)}function ye(t){return v(t.__MICRO_APP_IS_BOUND_FUNCTION__)?t.__MICRO_APP_IS_BOUND_FUNCTION__:t.__MICRO_APP_IS_BOUND_FUNCTION__=_(e=t)&&0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");var e}function _e(t,e,n="WINDOW"){if(_(t)&&!function(t){return v(t.__MICRO_APP_IS_CONSTRUCTOR__)?t.__MICRO_APP_IS_CONSTRUCTOR__:t.__MICRO_APP_IS_CONSTRUCTOR__=S(t)}(t)&&!ye(t)){const r=`__MICRO_APP_BOUND_${n}_FUNCTION__`;if(t[r])return t[r];const i=t.bind(e);for(const e in t)i[e]=t[e];return t.hasOwnProperty("prototype")&&l(i,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t[r]=i}return t}function be(t,e,n){const{proxyDocument:r,documentEffect:i}=function(t,e){const n=new Map,r=new Map;let i=null,o=null;const{rawDocument:s,rawCreateElement:a,rawCreateElementNS:c,rawAddEventListener:l,rawRemoveEventListener:u}=Gn;function h(e,n){const r=a.call(s,e,n);return r.__MICRO_APP_NAME__=t,r}function d(e,n,r){const i=c.call(s,e,n,r);return i.__MICRO_APP_NAME__=t,i}function f(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),l.call(s,t,e,r)}function p(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),u.call(s,t,e,r)}const m=()=>{r.clear(),o=null},g=(()=>{var t;const e=new Map([["onclick",t=>{_(i)&&u.call(s,"click",i,!1),_(t)&&l.call(s,"click",t,!1),i=t}]]),n=(null===(t=er.options)||void 0===t?void 0:t.customProxyDocumentProps)||new Map;return new Map([...e,...n])})(),v=new Proxy(s,{get:(n,r)=>{var o;return Y(t),"createElement"===r?h:"createElementNS"===r?d:r===Symbol.toStringTag?"ProxyDocument":"defaultView"===r?e.proxyWindow:"onclick"===r?i:"addEventListener"===r?f:"removeEventListener"===r?p:"microAppElement"===r?null===(o=Tn.get(t))||void 0===o?void 0:o.container:"__MICRO_APP_NAME__"===r?t:_e(Reflect.get(n,r),s,"DOCUMENT")},set:(t,e,n)=>{if(g.has(e)){g.get(e)(n)}else"microAppElement"!==e&&Reflect.set(t,e,n);return!0}});return{proxyDocument:v,documentEffect:{reset:m,record:()=>{o=i||o,n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{o&&!i&&(v.onclick=o),r.forEach((t,e)=>{for(const n of t)v.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),m()},release:()=>{_(i)&&u.call(s,"click",i),i=null,n.size&&(n.forEach((t,e)=>{for(const n of t)u.call(s,e,n)}),n.clear())}}}}(t,n),o=function(t,e){const{rawDocument:n,rawRootDocument:r}=Gn;class i{static[Symbol.hasInstance](t){let n=t;for(;n;)if(n=Object.getPrototypeOf(n),n===i.prototype)return!0;return t===e||t instanceof r}}return Object.setPrototypeOf(i,r),Object.setPrototypeOf(i.prototype,new Proxy(r.prototype,{get:(e,r)=>(Y(t),_e(Reflect.get(e,r),n,"DOCUMENT")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})),i}(t,r);return u(e,{document:{configurable:!1,enumerable:!0,get:()=>r},Document:{configurable:!1,enumerable:!1,get:()=>o}}),i}function xe(t,e,n){return function(t){const e=Gn.rawWindow;Object.getOwnPropertyNames(e).filter(t=>/^on/.test(t)&&!Nt.includes(t)).forEach(n=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,writable:!0};l(t,n,{enumerable:r,configurable:!0,get:()=>e[n],set:(null!=i?i:o)?t=>{e[n]=t}:void 0})})}(e),function(t,e,n){const r=Gn.rawWindow,i=new Map,o=new Proxy(e,{get:(e,i)=>(Y(t),Reflect.has(e,i)||g(i)&&/^__MICRO_APP_/.test(i)||L(n.scopeProperties,i)?(L(Gt,i)&&X(),Reflect.get(e,i)):_e(Reflect.get(r,i),r)),set:(t,e,i)=>{if(L(n.rawWindowScopeKeyList,e))Reflect.set(r,e,i);else if(d.call(t,e)||!d.call(r,e)||L(n.scopeProperties,e))Reflect.has(t,e)&&!L(n.scopeProperties,e)||n.injectedKeys.add(e),Reflect.set(t,e,i);else{const o=Object.getOwnPropertyDescriptor(r,e),{configurable:s,enumerable:a,writable:c,set:u}=o;l(t,e,{value:i,configurable:s,enumerable:a,writable:null!=c?c:!!u}),n.injectedKeys.add(e)}return(L(n.escapeProperties,e)||L(n.staticEscapeProperties,e)&&!Reflect.has(r,e))&&!L(n.scopeProperties,e)&&(!Reflect.has(r,e)&&n.escapeKeys.add(e),Reflect.set(r,e,i)),!0},has:(t,e)=>L(n.scopeProperties,e)?n.injectedKeys.has(e)?Reflect.has(t,e):!!t[e]:Reflect.has(t,e)||Reflect.has(r,e),getOwnPropertyDescriptor:(t,e)=>{if(d.call(t,e))return i.set(e,"target"),Object.getOwnPropertyDescriptor(t,e);if(d.call(r,e)){i.set(e,"rawWindow");const t=Object.getOwnPropertyDescriptor(r,e);return t&&!t.configurable&&(t.configurable=!0),t}},defineProperty:(t,e,n)=>"rawWindow"===i.get(e)?Reflect.defineProperty(r,e,n):Reflect.defineProperty(t,e,n),ownKeys:t=>Reflect.ownKeys(r).concat(Reflect.ownKeys(t)).filter((function(t){return!(t in this)&&(this[t]=!0)}),Object.create(null)),deleteProperty:(t,e)=>!d.call(t,e)||(n.injectedKeys.has(e)&&n.injectedKeys.delete(e),n.escapeKeys.has(e)&&Reflect.deleteProperty(r,e),Reflect.deleteProperty(t,e))});n.proxyWindow=o}(t,e,n),function(t,e){const n=new Map,r=new Map,i=new Map,o=new Map,{rawWindow:s,rawAddEventListener:a,rawRemoveEventListener:c,rawDispatchEvent:l,rawSetInterval:u,rawSetTimeout:h,rawClearInterval:d,rawClearTimeout:f}=Gn;function p(t){var n;return Ft.includes(t)&&(null===(n=Tn.get(e))||void 0===n?void 0:n.container)?$(Tn.get(e).container):s}t.addEventListener=function(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),a.call(p(t),t,e,r)},t.removeEventListener=function(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),c.call(p(t),t,e,r)},t.dispatchEvent=function(t){return l.call(p(null==t?void 0:t.type),t)},t.setInterval=function(t,e,...n){const r=u.call(s,t,e,...n);return i.set(r,{handler:t,timeout:e,args:n}),r},t.setTimeout=function(t,e,...n){const r=h.call(s,t,e,...n);return o.set(r,{handler:t,timeout:e,args:n}),r},t.clearInterval=function(t){i.delete(t),d.call(s,t)},t.clearTimeout=function(t){o.delete(t),f.call(s,t)};const m=()=>{r.clear()};return{reset:m,record:()=>{n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{r.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),m()},release:t=>{n.size&&(n.forEach((t,e)=>{for(const n of t)c.call(p(e),e,n)}),n.clear()),t&&(i.forEach((t,e)=>{d.call(s,e)}),o.forEach((t,e)=>{f.call(s,e)}),i.clear(),o.clear())}}}(e,t)}function we(t,e){if(ke(t)){const n=Gn.rawWindow.history.state,r={microAppState:c({},null==n?void 0:n.microAppState,{[t]:e})};return c({},n,r)}return e}function Se(t){var e;const n=Gn.rawWindow.history.state;return ke(t)?(null===(e=null==n?void 0:n.microAppState)||void 0===e?void 0:e[t])||null:n}const Me=/&/g,Ae=/=/g,Ce=/%M1/g,Ee=/%M2/g;function Te(t){return encodeURIComponent(Pe(t).replace(Me,"%M1").replace(Ae,"%M2"))}function Ie(t){return Pe(t).replace(Ce,"&").replace(Ee,"=")}function Pe(t){try{const e=decodeURIComponent(t);return t===e||Ce.test(e)||Ee.test(e)?e:Pe(e)}catch(e){return t}}function Le(t){var e,n;if(Fe(t))return null;const r=Gn.rawWindow.location;if(ke(t)){const i=Oe(r.search,r.hash),o=(null===(e=i.hashQuery)||void 0===e?void 0:e[t])||(null===(n=i.searchQuery)||void 0===n?void 0:n[t]);return g(o)?Ie(o):null}return r.pathname+r.search+r.hash}function Re(t,e){const n=e.pathname+e.search+e.hash;let r=!1;if(ke(t)){let{pathname:e,search:i,hash:o}=Gn.rawWindow.location;const s=Oe(i,o),a=Te(n);if(o&&!i){r=!0,s.hashQuery?s.hashQuery[t]=a:s.hashQuery={[t]:a};const e=o.includes("?")?o.slice(0,o.indexOf("?")+1):o+"?";o=e+rt(s.hashQuery)}else s.searchQuery?s.searchQuery[t]=a:s.searchQuery={[t]:a},i="?"+rt(s.searchQuery);return{fullPath:e+i+o,isAttach2Hash:r}}return{fullPath:n,isAttach2Hash:r}}function Oe(t,e){const n={};return""!==t&&"?"!==t&&(n.searchQuery=nt(t.slice(1))),e.includes("?")&&(n.hashQuery=nt(e.slice(e.indexOf("?")+1))),n}function Be(t){const e=Tn.get(t);return!(!e||e.isPrefetch)}function ke(t){const e=Tn.get(t);return!(!e||!e.sandBox||"search"!==e.routerMode)}function De(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native"!==e.routerMode)}function Fe(t){const e=Tn.get(t);return!(!e||!e.sandBox||"pure"!==e.routerMode)}function Ne(t){return De(t)||function(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native-scope"!==e.routerMode)}(t)}function je(t,e){const n=(e?"native":t)||er.options["disable-memory-router"]&&"native"||er.options["router-mode"]||"search";return Dt.includes(n)?n:"search"}function Ue(t){const e=Gn.rawWindow,n=e=>{Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(t)&&!e.onlyForBrowser&&ze(t,Le(t))};return e.addEventListener("popstate",n),()=>{e.removeEventListener("popstate",n)}}function ze(t,e){const n=Tn.get(t),r=n.sandBox.proxyWindow,i=n.sandBox.microAppWindow;let o=!1;const s=r.location.href;if(e){const n=r.location.hash;hn(t,e,i.location),o=r.location.hash!==n}!function(t,e,n){const r=new PopStateEvent("popstate",{state:Se(t)});n.dispatchEvent(r),Pn(t)||_(e.onpopstate)&&e.onpopstate(r)}(t,r,i),o&&function(t,e,n,r){const i=new HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:r});n.dispatchEvent(i),Pn(t)||_(e.onhashchange)&&e.onhashchange(i)}(t,r,i,s),X()}function Ge(t,e,n){X(),Be(t)&&(function(t){const e=new PopStateEvent("popstate",{state:null});t&&(e.onlyForBrowser=!0),Gn.rawWindow.dispatchEvent(e)}(e),n&&function(t){const e=new HashChangeEvent("hashchange",{newURL:Gn.rawWindow.location.href,oldURL:t});Gn.rawWindow.dispatchEvent(e)}(n))}function He(t,e){const n=Gn.rawWindow.history;function r(n){return function(...r){var i,o,s;if(g(r[2])||M(r[2])){const a=k(r[2],e.href),c=a.pathname+a.search+a.hash;Fe(t)||Ve(t,n,Re(t,a),!0,we(t,r[0]),r[1]),c!==e.fullPath&&hn(t,c,e),null===(s=null===(i=Tn.get(t))||void 0===i?void 0:(o=i.sandBox).updateIframeBase)||void 0===s||s.call(o)}else We(t,n,r[2],r[0],r[1])}}const i=r("pushState"),o=r("replaceState");return Pn(t)?{pushState:i,replaceState:o}:new Proxy(n,{get:(e,n)=>"state"===n?Se(t):"pushState"===n?i:"replaceState"===n?o:_e(Reflect.get(e,n),e,"HISTORY"),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})}function We(t,e,n,r=null,i=""){if(Be(t)){("pushState"===e?Gn.rawPushState:Gn.rawReplaceState).call(Gn.rawWindow.history,r,i,n)}}function Ve(t,e,n,r,i,o){if(Be(t)){const s=Gn.rawWindow.location,a=s.pathname+s.search+s.hash,c=n.isAttach2Hash&&a!==n.fullPath?s.href:null;We(t,e,n.fullPath,i,o),a!==n.fullPath&&ke(t)&&Ge(t,r,c)}}function Ze(t,e,n){Ve(t,"replaceState",e,!0,n)}function Qe(t){const e=Gn.rawWindow;return function(...n){var r;if((null===(r=e.history.state)||void 0===r?void 0:r.microAppState)&&(!b(n[0])||!n[0].microAppState)&&(g(n[2])||M(n[2]))){const t=e.location.href;k(n[2],t).href===t&&(n[0]=c({},n[0],{microAppState:e.history.state.microAppState}))}t.apply(e.history,n),Qn({excludeHiddenApp:!0,excludePreRender:!0}).forEach(t=>{if(ke(t)&&!Le(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}),X()}}function Xe(){const t=Gn.rawWindow;t.history.pushState=Qe(Gn.rawPushState),t.history.replaceState=Qe(Gn.rawReplaceState)}function Ye(){const t=Gn.rawWindow;t.history.pushState=Gn.rawPushState,t.history.replaceState=Gn.rawReplaceState}const{router:Je,executeNavigationGuard:qe,clearRouterWhenUnmount:Ke}=function(){function t(t,e,n,r){const i=e.sandBox.proxyWindow.location,o=k(n.path,i.href),s=i.pathname+i.search+i.hash,a=o.pathname+o.search+o.hash;if(s!==a||Le(t)!==a){if(!Fe(t)){!function(t,e,n,r){Ve(t,e,Re(t,n),!1,we(t,null!=r?r:null)),X()}(t,r&&!1!==n.replace||!0===n.replace?"replaceState":"pushState",o,n.state)}(Ne(t)||Fe(t))&&ze(t,a)}}function e(e){return function(n){return new Promise((r,i)=>{const o=N(n.name);if(o&&g(n.path))if(Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(o)){const i=Tn.get(o);r(i.sandBox.sandboxReady.then(()=>t(o,i,n,e)))}else i(R("navigation failed, app does not exist or is inactive"));else i(R("navigation failed, name & path are required when use router."+(e?"replace":"push")))})}}function n(t){return function(...e){return Gn.rawWindow.history[t](...e)}}const r=it(),i=it();function o(t,e,n,r){X();for(const i of r)_(i)?i(e,n,t):b(i)&&_(i[t])&&i[t](e,n)}function a(t){if(ke(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}const c=Object.assign(Object.assign({current:new Map,encode:Te,decode:Ie,push:e(!1),replace:e(!0),go:n("go"),back:n("back"),forward:n("forward"),beforeEach:r.add,afterEach:i.add,attachToURL:function(t){(t=N(t))&&Qn().includes(t)&&a(t)},attachAllToURL:function({includeHiddenApp:t=!1,includePreRender:e=!1}){Qn({excludeHiddenApp:!t,excludePreRender:!e}).forEach(t=>a(t))}},function(){const t=function(){const t=new Map;return{add:function(e,n){return t.set(e,n),()=>!!t.has(e)&&t.delete(e)},get:e=>t.get(e),delete:e=>!!t.has(e)&&t.delete(e)}}();return{setDefaultPage:function(e){const n=N(e.name);return n&&e.path?t.add(n,e.path):s},removeDefaultPage:function(e){return!!(e=N(e))&&t.delete(e)},getDefaultPage:t.get}}()),function(){let t=null;return{setBaseAppRouter:function(e){x(e)&&(t=new Proxy(e,{get:(t,e)=>(X(),_e(Reflect.get(t,e),t,"BASEROUTER")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)}))},getBaseAppRouter:()=>t}}());return{router:c,executeNavigationGuard:function(t,e,n){c.current.set(t,e),o(t,e,n,r.list()),G(()=>{o(t,e,n,i.list())})},clearRouterWhenUnmount:function(t){c.current.delete(t)}}}(),$e=["getComputedStyle","visualViewport","matchMedia","ResizeObserver","IntersectionObserver"],tn=[/animationFrame$/i,/mutationObserver$/i,/height$|width$/i,/offset$/i,/selection$/i,/^range/i,/^screen/i,/^scroll/i,/X$|Y$/],en=["body","head","html","title"],nn=["host","hostname","port","protocol","origin"],rn=["childElementCount","children","firstElementChild","firstChild","lastElementChild","activeElement","fullscreenElement","pictureInPictureElement","pointerLockElement","styleSheets"],on=["append","contains","replaceChildren","createRange","getSelection","elementFromPoint","elementsFromPoint","getAnimations"],sn=["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],an=["execCommand","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],cn=["href","pathname","search","hash","host","hostname","port","protocol","search","origin","fullPath"];function ln(t,e,n,r,i,o){const s=Gn.rawWindow.location,a=!!n,c=k(e);function u(){return a?n.location:c}function h(e,n){const r=k(e,v.href);if(r.origin===v.origin){const e=Re(t,r);if(ke(t)){if(r.pathname===v.pathname&&r.search===v.search){let i=null;return r.hash!==v.hash&&(e.isAttach2Hash&&(i=s.href),We(t,n,e.fullPath)),void(r.hash?Ge(t,!1,i):g())}if(e.isAttach2Hash)return We(t,n,e.fullPath),void g()}return e.fullPath}return e}function d(n,r){const i=k(n,e);i[r]===v[r]&&v.hash?Ge(t,!1):(We(t,i[r]===v[r]?"replaceState":"pushState",Re(t,i).fullPath),g())}const f=e=>function(n){if(Be(t)){const t=h(n,"assign"===e?"pushState":"replaceState");t&&s[e](k(t,s.origin).href)}},p=f("assign"),m=f("replace"),g=t=>s.reload(t);l(u(),"fullPath",{enumerable:!0,configurable:!0,get:()=>v.pathname+v.search+v.hash});const v=new Proxy({},{get:(e,n)=>{const c=u();if("assign"===n)return p;if("replace"===n)return m;if("reload"===n)return g;if("self"===n)return c;if("fullPath"===n)return c.fullPath;if(De(t))return _e(Reflect.get(s,n),s,"LOCATION");if(a){if(nn.includes(n))return r[n];if("href"===n)return c[n].replace(i,o)}return _e(Reflect.get(c,n),c,"LOCATION")},set:(n,r,i)=>{if(Be(t)){const n=u();if("href"===r){const t=h(i,"pushState");t&&(s.href=k(t,s.origin).href)}else if("pathname"===r)if(Ne(t))s.pathname=i;else{d(("/"+i).replace(/^\/+/,"/")+v.search+v.hash,"pathname")}else if("search"===r)if(Ne(t))s.search=i;else{d(v.pathname+("?"+i).replace(/^\?+/,"?")+v.hash,"search")}else if("hash"===r)if(Ne(t))s.hash=i;else{const n=v.pathname+v.search+("#"+i).replace(/^#+/,"#"),r=k(n,e);r.hash!==v.hash&&Ve(t,"pushState",Re(t,r),!1)}else Reflect.set(n,r,i)}return!0}});return v}function un(t,e){const n=c({name:t},e);for(const t of cn)n[t]=e[t];return n}function hn(t,e,n,r){var i;const o=un(t,n),s=k(e,n.href);if(Pn(t)){const e=Tn.get(t).sandBox.microAppWindow;null===(i=e.rawReplaceState)||void 0===i||i.call(e.history,Se(t),"",s.href)}else{let t=s.href;n.self.origin!==s.origin&&(t=t.replace(s.origin,n.self.origin)),n.self.href=t}const a=un(t,n);("auto"===r||o.fullPath!==a.fullPath&&"prevent"!==r)&&qe(t,a,o)}function dn(t,e,n){const r=Le(t);r?hn(t,r,e,"auto"):fn(t,e,n)}function fn(t,e,n){n&&hn(t,n,e,"prevent"),Fe(t)||Ze(t,Re(t,e),we(t,null)),function(t,e){qe(t,un(t,e),un(t,e))}(t,e)}function pn(t,e,n,r){if(!Ne(t)){if(!r){const{pathname:r,search:i,hash:o}=k(e);hn(t,r+i+o,n,"prevent")}Fe(t)||mn(t)}Ke(t)}function mn(t){Ze(t,function(t,e){var n,r,i,o;let{pathname:s,search:a,hash:c}=e||Gn.rawWindow.location,l=!1;if(ke(t)){const e=Oe(a,c);if(null===(n=e.hashQuery)||void 0===n?void 0:n[t]){l=!0,null===(r=e.hashQuery)||void 0===r||delete r[t];const n=rt(e.hashQuery);c=c.slice(0,c.indexOf("?")+Number(Boolean(n)))+n}else if(null===(i=e.searchQuery)||void 0===i?void 0:i[t]){null===(o=e.searchQuery)||void 0===o||delete o[t];const n=rt(e.searchQuery);a=n?"?"+n:""}}return{fullPath:s+a+c,isAttach2Hash:l}}(t),function(t,e){return ke(t)?(b(null==e?void 0:e.microAppState)&&(p(e.microAppState[t])||delete e.microAppState[t],Object.keys(e.microAppState).length||delete e.microAppState),c({},e)):e}(t,Gn.rawWindow.history.state))}class gn{}function vn(t,e){const n=Array.from(t.children);n.length&&n.forEach(t=>{vn(t,e)});for(const t of n)yn(t,e)}function yn(t,e){var n,r;const i=null===(r=null===(n=Tn.get(e))||void 0===n?void 0:n.sandBox)||void 0===r?void 0:r.proxyWindow;return C(t)&&!t.__MICRO_APP_NAME__&&!t.__PURE_ELEMENT__&&i&&u(t,{baseURI:{configurable:!0,get:()=>i.location.href},__MICRO_APP_NAME__:{configurable:!0,writable:!0,value:e}}),t}function _n(t,e){const n=p(e)?Gn.rawWindow.fetch:e;return _(n)?function(e,r,...i){return(g(e)||M(e))&&(e=k(e,t).toString()),X(),n.call(Gn.rawWindow,e,r,...i)}:n}function bn(t,e){const n=p(e)?Gn.rawWindow.XMLHttpRequest:e;return S(n)?class extends n{open(e,n,...r){(g(n)&&!/^f(ile|tp):\/\//.test(n)||M(n))&&(n=k(n,t).toString()),X(),super.open(e,n,...r)}}:n}const{createMicroEventSource:xn,clearMicroEventSource:wn}=function(){let t;return{createMicroEventSource:function(e,n,r){const i=p(r)?Gn.rawWindow.EventSource:r;return S(i)?class extends i{constructor(r,i,...o){if((g(r)||M(r))&&(r=k(r,n).toString()),X(),super(r,i,...o),t){const n=t.get(e);n?n.add(this):t.set(e,new Set([this]))}else t=new Map([[e,new Set([this])]])}close(){var n;super.close(),null===(n=t.get(e))||void 0===n||n.delete(this)}}:i},clearMicroEventSource:function(e){const n=null==t?void 0:t.get(e);(null==n?void 0:n.size)&&(n.forEach(t=>{t.close()}),n.clear())}}}();class Sn extends class{constructor(){this.rawWindowScopeKeyList=["location"],this.staticEscapeProperties=["System","__cjsWrapper"],this.staticScopeProperties=["webpackJsonp","webpackHotUpdate","Vue","onpopstate","onhashchange"],this.scopeProperties=Array.from(this.staticScopeProperties),this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.injectReactHMRProperty()}injectReactHMRProperty(){0}}{constructor(t,e){super(),this.active=!1,this.microAppWindow=new gn,this.patchWith(n=>{this.getSpecialProperties(t),this.patchRouter(t,e,this.microAppWindow),this.windowEffect=xe(t,this.microAppWindow,this),this.documentEffect=be(t,this.microAppWindow,this),this.setMappingPropertiesWithRawDescriptor(this.microAppWindow),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}start({umdMode:t,baseroute:e,defaultPage:n,disablePatchRequest:r}){this.active||(this.active=!0,this.initRouteState(n),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=e),t||this.initGlobalKeysWhenStart(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow,r),1==++Gn.activeSandbox&&(Nn(),Xe()),1==++Sn.activeCount&&window.__MICRO_APP_ENVIRONMENT__&&(ve(),window.addEventListener("unmount",ge,!1)),Gn.rawWindow._babelPolyfill&&(Gn.rawWindow._babelPolyfill=!1))}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({umdMode:t,clearData:r,destroy:n},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(wn(this.microAppWindow.__MICRO_APP_NAME__),this.injectedKeys.forEach(t=>{Reflect.deleteProperty(this.microAppWindow,t)}),this.injectedKeys.clear(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--Sn.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="with",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){this.windowEffect.reset(),this.documentEffect.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){this.windowEffect.record(),this.documentEffect.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){this.windowEffect.rebuild(),this.documentEffect.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({umdMode:t=!1,clearData:e=!1,isPrerender:n=!1,keepAlive:r=!1,destroy:i=!1}){var o,s,a;this.windowEffect.release(!t&&!r&&!n||i),this.documentEffect.release(),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearDataListener(),null===(s=this.microAppWindow.microApp)||void 0===s||s.clearGlobalDataListener(),e&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(a=this.microAppWindow.microApp)||void 0===a||a.clearData())}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&(a(e.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(e.scopeProperties)),a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties)))}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchWith(t){this.sandboxReady=new Promise(e=>t(e))}setMappingPropertiesWithRawDescriptor(t){let e,n;const r=Gn.rawWindow;r===r.parent?e=n=this.proxyWindow:(e=r.top,n=r.parent),u(t,{top:this.createDescriptorForMicroAppWindow("top",e),parent:this.createDescriptorForMicroAppWindow("parent",n)}),zt.forEach(e=>{l(t,e,this.createDescriptorForMicroAppWindow(e,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,e){const{configurable:n=!0,enumerable:r=!0,writable:i,set:o}=Object.getOwnPropertyDescriptor(Gn.rawWindow,t)||{writable:!0};return{value:e,configurable:n,enumerable:r,writable:null!=i?i:!!o}}initGlobalKeysWhenStart(t,e,n,r){n.hasOwnProperty=t=>d.call(n,t)||d.call(Gn.rawWindow,t),this.setHijackProperty(t,n),r||this.patchRequestApi(t,e,n),this.setScopeProperties(n)}setHijackProperty(t,e){let n,r;u(e,{eval:{configurable:!0,enumerable:!1,get:()=>(Y(t),n||Gn.rawWindow.eval),set:t=>{n=t}},Image:{configurable:!0,enumerable:!1,get:()=>(Y(t),r||Gn.ImageProxy),set:t=>{r=t}}})}patchRequestApi(t,e,n){let r=_n(e),i=bn(e),o=xn(t,e);u(n,{fetch:{configurable:!0,enumerable:!0,get:()=>r,set(t){r=_n(e,t)}},XMLHttpRequest:{configurable:!0,enumerable:!0,get:()=>i,set(t){i=bn(e,t)}},EventSource:{configurable:!0,enumerable:!0,get:()=>o,set(n){o=xn(t,e,n)}}})}setScopeProperties(t){this.scopeProperties.forEach(e=>{Reflect.set(t,e,t[e])})}patchRouter(t,e,n){const{microLocation:r,microHistory:i}=function(t,e){const n=ln(t,e);return{microLocation:n,microHistory:He(t,n)}}(t,e);u(n,{location:{configurable:!1,enumerable:!0,get:()=>r,set:t=>{Gn.rawWindow.location=t}},history:{configurable:!0,enumerable:!0,get:()=>i}})}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}function Mn(t,e,n){return function(t,e){const n=Gn.rawWindow;$e.forEach(t=>{e[t]=_e(n[t],n)}),Object.getOwnPropertyNames(e).filter(t=>(tn.some(r=>{if(r.test(t)&&t in e.parent){if(_(n[t]))e[t]=_e(n[t],n);else{const{configurable:r,enumerable:i}=Object.getOwnPropertyDescriptor(e,t)||{configurable:!0,enumerable:!0};r&&l(e,t,{configurable:r,enumerable:i,get:()=>n[t],set:e=>{n[t]=e}})}return!0}return!1}),/^on/.test(t)&&!Nt.includes(t))).forEach(r=>{const{enumerable:i,writable:o,set:s}=Object.getOwnPropertyDescriptor(e,r)||{enumerable:!0,writable:!0};try{l(e,r,{enumerable:i,configurable:!0,get:()=>n[r],set:(null!=o?o:s)?t=>{n[r]=_(t)?t.bind(e):t}:void 0})}catch(e){O(e,t)}})}(t,e),function(t,e){const n=Gn.rawWindow,r=new Set,i=new Proxy(t,{get:(t,o)=>"location"===o?e.proxyLocation:L(zt,o)?i:r.has(o)?Reflect.get(t,o):L(e.escapeProperties,o)&&!Reflect.has(t,o)?_e(Reflect.get(n,o),n):_e(Reflect.get(t,o),t),set:(t,i,o)=>"location"===i?Reflect.set(n,i,o):(Reflect.has(t,i)||r.add(i),Reflect.set(t,i,o),L(e.escapeProperties,i)&&(!Reflect.has(n,i)&&e.escapeKeys.add(i),Reflect.set(n,i,o)),!0),has:(t,e)=>e in t,deleteProperty:(t,r)=>!Reflect.has(t,r)||(e.escapeKeys.has(r)&&Reflect.deleteProperty(n,r),Reflect.deleteProperty(t,r))});e.proxyWindow=i}(e,n),function(t){const{rawWindow:e,rawAddEventListener:n,rawRemoveEventListener:r}=Gn,i=new Map,o=new Map;function s(n){return Ft.includes(n)?t:e}t.addEventListener=function(t,e,r){const o=i.get(t);o?o.add(e):i.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),n.call(s(t),t,e,r)},t.removeEventListener=function(t,e,n){const o=i.get(t);(null==o?void 0:o.size)&&o.has(e)&&o.delete(e),r.call(s(t),t,e,n)};const a=()=>{o.clear()};return{reset:a,record:()=>{i.forEach((t,e)=>{if(t.size){const n=o.get(e)||[];o.set(e,new Set([...n,...t]))}})},rebuild:()=>{o.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),a()},release:()=>{i.size&&(i.forEach((t,e)=>{for(const n of t)r.call(s(e),e,n)}),i.clear())}}}(e)}function An(t,e,n){return function(t,e){const n=Gn.rawDocument,r=e.Document,i=e.document,o=r.prototype.createElement,s=r.prototype.createElementNS,a=r.prototype.createTextNode,c=r.prototype.createDocumentFragment,l=r.prototype.createComment,u=r.prototype.querySelector,h=r.prototype.querySelectorAll,d=r.prototype.getElementById,f=r.prototype.getElementsByClassName,p=r.prototype.getElementsByTagName,m=r.prototype.getElementsByName,g=r.prototype.elementFromPoint,v=r.prototype.caretRangeFromPoint;function y(t){return i!==t?t:n}function _(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return u.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelector(e))&&void 0!==r?r:null}function b(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return h.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelectorAll(e))&&void 0!==r?r:[]}r.prototype.caretRangeFromPoint=function(e,r){const i=g.call(n,e,r),o=v.call(n,e,r);return yn(i,t),o},r.prototype.createElement=function(e,n){return yn(o.call(this,e,n),t)},r.prototype.createElementNS=function(e,n,r){return yn(s.call(this,e,n,r),t)},r.prototype.createTextNode=function(e){return yn(a.call(this,e),t)},r.prototype.createDocumentFragment=function(){return yn(c.call(this),t)},r.prototype.createComment=function(e){return yn(l.call(this,e),t)},r.prototype.querySelector=_,r.prototype.querySelectorAll=b,r.prototype.getElementById=function(t){const e=y(this);if(q(t))return d.call(e,t);try{return _.call(this,"#"+t)}catch(n){return d.call(e,t)}},r.prototype.getElementsByClassName=function(t){const e=y(this);if(q(t))return f.call(e,t);try{return b.call(this,"."+t)}catch(n){return f.call(e,t)}},r.prototype.getElementsByTagName=function(t){const e=y(this);if(K(t)||q(t))return p.call(e,t);if(/^script|base$/i.test(t))return p.call(i,t);try{return b.call(this,t)}catch(n){return p.call(e,t)}},r.prototype.getElementsByName=function(t){const e=y(this);if(q(t))return m.call(e,t);try{return b.call(this,`[name=${t}]`)}catch(n){return m.call(e,t)}}}(t,e),function(t,e,n){const r=Gn.rawDocument,i=e.Document,o=e.document,s=(t,e)=>{const{enumerable:n}=Object.getOwnPropertyDescriptor(i.prototype,t)||{enumerable:!0};return{configurable:!0,enumerable:n,get:e}};u(i.prototype,(()=>{const e={};return[["documentURI",()=>n.proxyLocation.href],["URL",()=>n.proxyLocation.href],["documentElement",()=>r.documentElement],["scrollingElement",()=>r.scrollingElement],["forms",()=>i.prototype.querySelectorAll.call(o,"form")],["images",()=>i.prototype.querySelectorAll.call(o,"img")],["links",()=>i.prototype.querySelectorAll.call(o,"a")],["microAppElement",()=>{var e;return null===(e=Tn.get(t))||void 0===e?void 0:e.container}],["__MICRO_APP_NAME__",()=>t]].forEach(t=>{e[t[0]]=s(t[0],t[1])}),rn.forEach(t=>{e[t]=s(t,()=>r[t])}),on.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),sn.forEach(t=>{e[t]=s(t,()=>r[t])}),an.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),e})()),en.forEach(e=>{l(o,e,{enumerable:!0,configurable:!0,get:()=>(Y(t),r[e]),set:t=>{r[e]=t}})})}(t,e,n),function(t,e){const{rawDocument:n,rawAddEventListener:r,rawRemoveEventListener:i}=Gn,o=new Map,s=new Map;let a=null,c=null;const u=e.Document,h=e.document;function d(t,e){return jt.includes(t)?e:n}function f(t){return"onclick"===t?t=>{_(a)&&i.call(n,"click",a,!1),_(t)?(a=t.bind(h),r.call(n,"click",a,!1)):a=t}:e=>{n[t]=_(e)?e.bind(h):e}}u.prototype.addEventListener=function(t,e,n){const i=_(e)?e.__MICRO_APP_BOUND_FUNCTION__=e.__MICRO_APP_BOUND_FUNCTION__||e.bind(this):e,s=o.get(t);s?s.add(e):o.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=n),r.call(d(t,this),t,i,n)},u.prototype.removeEventListener=function(t,e,n){const r=o.get(t);(null==r?void 0:r.size)&&r.has(e)&&r.delete(e);const s=(null==e?void 0:e.__MICRO_APP_BOUND_FUNCTION__)||e;i.call(d(t,this),t,s,n)},Object.getOwnPropertyNames(u.prototype).filter(t=>/^on/.test(t)&&!Ut.includes(t)).forEach(e=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(u.prototype,e)||{enumerable:!0,writable:!0};try{l(u.prototype,e,{enumerable:r,configurable:!0,get:()=>"onclick"===e?a:n[e],set:(null!=i?i:o)?f(e):void 0})}catch(e){O(e,t)}});const p=()=>{s.clear(),c=null};return{reset:p,record:()=>{c=a||c,o.forEach((t,e)=>{if(t.size){const n=s.get(e)||[];s.set(e,new Set([...n,...t]))}})},rebuild:()=>{c&&!a&&(h.onclick=c),s.forEach((t,e)=>{for(const n of t)h.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),p()},release:()=>{_(a)&&i.call(n,"click",a),a=null,o.size&&(o.forEach((t,e)=>{for(const n of t)i.call(d(e,h),e,(null==n?void 0:n.__MICRO_APP_BOUND_FUNCTION__)||n)}),o.clear())}}}(t,e)}function Cn(t,e,n,r){!function(t,e,n){const r=Gn.rawRootElement,i=Gn.rawDocument,o=e.document,s=e.Node,a=e.Element,c=s.prototype.appendChild,u=s.prototype.insertBefore,h=s.prototype.replaceChild,d=s.prototype.removeChild,p=a.prototype.append,m=a.prototype.prepend,g=a.prototype.insertAdjacentElement,v=s.prototype.cloneNode,y=Object.getOwnPropertyDescriptor(a.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(s.prototype,"parentNode"),b=Object.getOwnPropertyDescriptor(s.prototype,"ownerDocument"),x=t=>(I(t)||function(t){return"[object HTMLBaseElement]"===f(t)}(t))&&t.__PURE_ELEMENT__,w=t=>t===n.microHead?i.head:t===n.microBody?i.body:t;s.prototype.getRootNode=function(){return o},s.prototype.appendChild=function(e){return yn(e,t),x(e)?c.call(this,e):r.prototype.appendChild.call(w(this),e)},s.prototype.insertBefore=function(e,n){return yn(e,t),x(e)?u.call(this,e,n):r.prototype.insertBefore.call(w(this),e,n)},s.prototype.replaceChild=function(e,n){return yn(e,t),x(e)?h.call(this,e,n):r.prototype.replaceChild.call(w(this),e,n)},s.prototype.removeChild=function(t){return x(t)||this.contains(t)?d.call(this,t):r.prototype.removeChild.call(w(this),t)},a.prototype.append=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?p.call(this,...t):r.prototype.append.call(w(this),...t)},a.prototype.prepend=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?m.call(this,...t):r.prototype.prepend.call(w(this),...t)},a.prototype.insertAdjacentElement=function(e,n){return yn(n,t),x(n)?g.call(this,e,n):r.prototype.insertAdjacentElement.call(w(this),e,n)},s.prototype.cloneNode=function(e){return yn(v.call(this,e),t)},l(s.prototype,"ownerDocument",{configurable:!0,enumerable:!0,get(){return this.__PURE_ELEMENT__?b.get.call(this):o}}),l(a.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return y.get.call(this)},set(e){y.set.call(this,e),Array.from(this.children).forEach(e=>{A(e)&&yn(e,t)})}}),l(s.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var e,n,r;Y(t);const i=_.get.call(this);return P(i)&&(null===(e=Tn.get(t))||void 0===e?void 0:e.container)?(null===(r=(n=er.options).getRootElementParentNode)||void 0===r?void 0:r.call(n,this,t))||Gn.rawDocument.body:i}});const S=new Proxy(e.Image,{construct(e,n){const r=new e(...n);return yn(r,t),r}});l(e,"Image",{configurable:!0,writable:!0,value:S})}(t,n,r),function(t,e){const n=e.Element,r=n.prototype.setAttribute;n.prototype.setAttribute=function(e,n){(("src"===e||"srcset"===e)&&/^(img|script)$/i.test(this.tagName)||"href"===e&&/^link$/i.test(this.tagName))&&(n=U(n,t)),r.call(this,e,n)};[[e.HTMLImageElement.prototype,"src"],[e.HTMLScriptElement.prototype,"src"],[e.HTMLLinkElement.prototype,"href"]].forEach(([e,n])=>{const{enumerable:r,configurable:i,get:o,set:s}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,configurable:!0};l(e,n,{enumerable:r,configurable:i,get:function(){return null==o?void 0:o.call(this)},set:function(e){null==s||s.call(this,U(e,t))}})})}(e,n)}Sn.activeCount=0;class En{constructor(t,e){this.active=!1,this.escapeProperties=[],this.escapeKeys=new Set,this.updateIframeBase=()=>{var t;null===(t=this.baseElement)||void 0===t||t.setAttribute("href",k(this.url).origin+this.proxyLocation.pathname)},this.appName=t,this.url=e;const n=Gn.rawWindow.location,r=n.protocol+"//"+n.host;this.deleteIframeElement=this.createIframeElement(t,r+n.pathname),this.microAppWindow=this.iframe.contentWindow,this.patchIframe(this.microAppWindow,n=>{this.createIframeTemplate(this.microAppWindow),this.getSpecialProperties(t),this.proxyLocation=function(t,e,n,r){const i=k(e),o=i.protocol+"//"+i.host,s=i.pathname+i.search+i.hash,a=n.history;return n.rawReplaceState=a.replaceState,c(a,He(t,n.location)),hn(t,s,n.location,"prevent"),ln(t,e,n,i,r,o)}(t,e,this.microAppWindow,r),this.windowEffect=Mn(t,this.microAppWindow,this),this.documentEffect=An(t,this.microAppWindow,this),Cn(t,e,this.microAppWindow,this),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}createIframeElement(t,e){this.iframe=J("iframe");const n={src:er.options.iframeSrc||e,style:"display: none",id:t};return Object.keys(n).forEach(t=>this.iframe.setAttribute(t,n[t])),Gn.rawDocument.body.appendChild(this.iframe),()=>B(()=>{var t,e;null===(e=null===(t=this.iframe)||void 0===t?void 0:t.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null})}start({baseroute:t,defaultPage:e,disablePatchRequest:n}){this.active||(this.active=!0,this.initRouteState(e),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t),n||this.createIframeBase(),1==++Gn.activeSandbox&&(Nn(),Xe()),++En.activeCount)}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({clearData:r},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(this.deleteIframeElement(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--En.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="iframe",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,location:this.proxyLocation,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.reset(),null===(e=this.documentEffect)||void 0===e||e.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.record(),null===(e=this.documentEffect)||void 0===e||e.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.rebuild(),null===(e=this.documentEffect)||void 0===e||e.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({clearData:t=!1}){var e,n,r,i,o;null===(e=this.windowEffect)||void 0===e||e.release(),null===(n=this.documentEffect)||void 0===n||n.release(),null===(r=this.microAppWindow.microApp)||void 0===r||r.clearDataListener(),null===(i=this.microAppWindow.microApp)||void 0===i||i.clearGlobalDataListener(),t&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearData())}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchIframe(t,e){const n=t.document;this.sandboxReady=new Promise(r=>{!function i(){setTimeout(()=>{try{t.document===n?i():(t.stop(),e(r))}catch(t){i()}},0)}()})}createIframeTemplate(t){const e=t.document;!function(t){for(;null==t?void 0:t.firstChild;)t.removeChild(t.firstChild)}(e);const n=e.createElement("html");n.innerHTML="<head></head><body></body>",e.appendChild(n),this.microBody=e.body,this.microHead=e.head}createIframeBase(){this.baseElement=J("base"),this.updateIframeBase(),this.microHead.appendChild(this.baseElement)}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties))}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}En.activeCount=0;const Tn=new Map;class In{constructor({name:t,url:e,container:n,scopecss:r,useSandbox:i,inline:o,iframe:s,ssrUrl:a,isPrefetch:c,prefetchLevel:l,routerMode:u}){this.state=Ct.CREATED,this.keepAliveState=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.lifeCycleState=null,this.umdMode=!1,this.sandBox=null,this.fiber=!1,Tn.set(t,this),this.name=t,this.url=e,this.useSandbox=i,this.scopecss=this.useSandbox&&r,this.iframe=null!=s&&s,this.inline=this.getInlineModeState(o),this.routerMode=u||"search",this.container=null!=n?n:null,this.ssrUrl=null!=a?a:"",this.isPrefetch=null!=c&&c,this.isPrerender=3===l,this.prefetchLevel=l,this.source={html:null,links:new Set,scripts:new Set},this.loadSourceCode(),this.createSandbox()}loadSourceCode(){this.setAppState(Ct.LOADING),ft.getInstance().run(this,se)}onLoad({html:t,defaultPage:e,routerMode:n,baseroute:r,disablePatchRequest:i}){var o;if(2==++this.loadSourceLevel)if(this.source.html=t,this.isPrefetch||this.isUnmounted()){if(this.isPrerender){const t=J("div");t.setAttribute("prerender","true"),null===(o=this.sandBox)||void 0===o||o.setPreRenderState(!0),this.mount({container:t,inline:this.inline,fiber:!0,defaultPage:e||"",disablePatchRequest:null!=i&&i,routerMode:n,baseroute:r||""})}}else $(this.container).mount(this)}onLoadError(t){this.loadSourceLevel=-1,this.isUnmounted()||(this.onerror(t),this.setAppState(Ct.LOAD_FAILED))}mount({container:t,inline:e,routerMode:n,defaultPage:r,baseroute:i,disablePatchRequest:o,fiber:s}){if(2!==this.loadSourceLevel)return this.container=t,this.isPrerender=!1,ht(this,"statechange",{appState:Ct.LOADING}),this.setAppState(Ct.LOADING);this.createSandbox(),this.setAppState(Ct.BEFORE_MOUNT);const a=()=>{var a,c,l,u,h,d,m,v;if(this.isPrerender&&(v=this.container,"[object HTMLDivElement]"===f(v))&&this.container.hasAttribute("prerender"))null===(a=this.sandBox)||void 0===a||a.rebuildEffectSnapshot(),this.cloneContainer(t,this.container,!1),this.container=t,null===(c=this.preRenderEvents)||void 0===c||c.forEach(t=>t()),this.isPrerender=!1,this.preRenderEvents=null,Je.attachToURL(this.name),null===(l=this.sandBox)||void 0===l||l.setPreRenderState(!1);else{this.container=t,this.inline=this.getInlineModeState(e),this.fiber=s,this.routerMode=n;const a=()=>{this.setLifeCycleState(Et.BEFOREMOUNT),ut(this.container,this.name,Et.BEFOREMOUNT)};if(this.isPrerender?(null!==(u=this.preRenderEvents)&&void 0!==u?u:this.preRenderEvents=[]).push(a):a(),this.setAppState(Ct.MOUNTING),ht(this,"statechange",{appState:Ct.MOUNTING}),this.cloneContainer(this.container,this.source.html,!this.umdMode),null===(h=this.sandBox)||void 0===h||h.start({umdMode:this.umdMode,baseroute:i,defaultPage:r,disablePatchRequest:o}),this.umdMode){null===(m=this.sandBox)||void 0===m||m.rebuildEffectSnapshot();try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else null===(d=this.sandBox)||void 0===d||d.actionBeforeExecScripts(this.container),function(t,e){const n=t.fiber?[]:null,r=Array.from(t.source.scripts),i=[],o=[];for(const s of r){const r=Lt.script.getInfo(s),a=r.appSpace[t.name];a.defer||a.async?(!r.isExternal||r.code||Vt(t,r)?i.push(r.code):i.push(dt(s,t.name)),o.push([s,r]),Vt(t,r)&&(e.moduleCount=e.moduleCount?++e.moduleCount:1)):st(n,()=>{re(s,t,r),e(!1)})}i.length?z(i,t=>{const e=o[t.index][1];e.code=e.code||t.data},n=>{e.errorCount=e.errorCount?++e.errorCount:1,R(n,t.name)},()=>{o.forEach(([r,i])=>{g(i.code)&&st(n,()=>{re(r,t,i,e),!Vt(t,i)&&e(!1)})}),n?(n.push(()=>Promise.resolve(e(p(e.moduleCount)||e.errorCount===i.length))),at(n)):e(p(e.moduleCount)||e.errorCount===i.length)}):n?(n.push(()=>Promise.resolve(e(!0))),at(n)):e(!0)}(this,t=>{if(!this.umdMode){const{mount:e,unmount:n}=this.getUmdLibraryHooks();if(this.umdHookUnmount=n,_(e)&&_(n)){this.umdHookMount=e,this.sandBox.markUmdMode(this.umdMode=!0);try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else!0===t&&this.handleMounted()}})}};this.sandBox?this.sandBox.sandboxReady.then(a):a()}handleMounted(t){var e,n;const r=()=>{w(t)?t.then(()=>this.dispatchMountedEvent()).catch(t=>{R("An error occurred in window.mount \n",this.name,t),this.dispatchMountedEvent()}):this.dispatchMountedEvent()};this.isPrerender?(null===(e=this.preRenderEvents)||void 0===e||e.push(r),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({isPrerender:!0})):r()}dispatchMountedEvent(){var t;this.isUnmounted()||(this.setAppState(Ct.MOUNTED),lt(this.getMicroAppGlobalHook(Tt.ONMOUNT),this.name,Tt.ONMOUNT,er.getData(this.name,!0)),ht(this,"statechange",{appState:Ct.MOUNTED}),ht(this,"mounted"),this.setLifeCycleState(Et.MOUNTED),ut(this.container,this.name,Et.MOUNTED),this.isHidden()&&(null===(t=this.sandBox)||void 0===t||t.recordAndReleaseEffect({keepAlive:!0})))}unmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;t=t||this.state===Ct.LOAD_FAILED,this.setAppState(Ct.UNMOUNT);let o=null;try{o=null===(i=this.umdHookUnmount)||void 0===i?void 0:i.call(this,er.getData(this.name,!0))}catch(t){R("An error occurred in window.unmount \n",this.name,t)}ht(this,"statechange",{appState:Ct.UNMOUNT}),ht(this,"unmount"),lt(this.getMicroAppGlobalHook(Tt.ONUNMOUNT),this.name,Tt.ONUNMOUNT),this.handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:o})}handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:i}){const o=()=>this.actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r});w(i)?(X(),i.then(o).catch(o)):o()}actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;this.umdMode&&this.container&&!t&&this.cloneContainer(this.source.html,this.container,!1),null===(i=this.sandBox)||void 0===i||i.stop({umdMode:this.umdMode,keepRouteState:n&&!t,destroy:t,clearData:e||t}),this.setLifeCycleState(Et.UNMOUNT),ut(this.container,this.name,Et.UNMOUNT),this.clearOptions(t),null==r||r()}clearOptions(t){this.container.innerHTML="",this.container=null,this.isPrerender=!1,this.preRenderEvents=null,this.setKeepAliveState(null),this.iframe&&!this.umdMode&&(this.sandBox=null),t&&this.actionsForCompletelyDestroy(),X()}actionsForCompletelyDestroy(){var t,e;null===(e=null===(t=this.sandBox)||void 0===t?void 0:t.deleteIframeElement)||void 0===e||e.call(t),Lt.script.deleteInlineInfo(this.source.scripts),Tn.delete(this.name)}hiddenKeepAliveApp(t){var e,n;this.setKeepAliveState(It.KEEP_ALIVE_HIDDEN),ht(this,"appstate-change",{appState:"afterhidden"}),this.setLifeCycleState(Et.AFTERHIDDEN),ut(this.container,this.name,Et.AFTERHIDDEN),ke(this.name)&&(null===(e=this.sandBox)||void 0===e||e.removeRouteInfoForKeepAliveApp()),2!==this.loadSourceLevel?$(this.container).unmount():(this.container=this.cloneContainer(J("div"),this.container,!1),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({keepAlive:!0})),null==t||t()}showKeepAliveApp(t){var e,n;null===(e=this.sandBox)||void 0===e||e.rebuildEffectSnapshot(),ht(this,"appstate-change",{appState:"beforeshow"}),ut(t,this.name,Et.BEFORESHOW),this.setKeepAliveState(It.KEEP_ALIVE_SHOW),this.container=this.cloneContainer(t,this.container,!1),ke(this.name)&&(null===(n=this.sandBox)||void 0===n||n.setRouteInfoForKeepAliveApp()),ht(this,"appstate-change",{appState:"aftershow"}),this.setLifeCycleState(Et.AFTERSHOW),ut(this.container,this.name,Et.AFTERSHOW)}onerror(t){this.setLifeCycleState(Et.ERROR),ht(this,"statechange",{appState:Ct.LOAD_FAILED}),ut(this.container,this.name,Et.ERROR,t)}parseHtmlString(t){var e;return(new((null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)?this.sandBox.proxyWindow.DOMParser:Gn.rawWindow.DOMParser)).parseFromString(t,"text/html").body}cloneContainer(t,e,n){return e&&(t.innerHTML="",Array.from(n?this.parseHtmlString(e.innerHTML).childNodes:e.childNodes).forEach(e=>{t.appendChild(e)})),t}createSandbox(){this.useSandbox&&!this.sandBox&&(this.sandBox=this.iframe?new En(this.name,this.url):new Sn(this.name,this.url))}setAppState(t){var e;this.state=t,null===(e=this.sandBox)||void 0===e||e.setStaticAppState(t)}getAppState(){return this.state}setLifeCycleState(t){this.lifeCycleState=t}getLifeCycleState(){return this.lifeCycleState||""}setKeepAliveState(t){this.keepAliveState=t}getKeepAliveState(){return this.keepAliveState}isUnmounted(){return Ct.UNMOUNT===this.state}isHidden(){return It.KEEP_ALIVE_HIDDEN===this.keepAliveState}getUmdLibraryHooks(){if(!this.isUnmounted()&&this.sandBox){const t=$(this.container).getAttribute("library")||"micro-app-"+this.name,e=this.sandBox.proxyWindow;return x(e[t])?e[t]:{mount:e.mount,unmount:e.unmount}}return{}}getMicroAppGlobalHook(t){var e,n;const r=null===(n=null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n[t];return _(r)?r:null}querySelector(t){return this.container?Gn.rawElementQuerySelector.call(this.container,t):null}querySelectorAll(t){return this.container?Gn.rawElementQuerySelectorAll.call(this.container,t):[]}getInlineModeState(t){var e;return null!==(e=this.iframe||t)&&void 0!==e&&e}}function Pn(t){var e,n;return null!==(n=null===(e=Tn.get(t))||void 0===e?void 0:e.iframe)&&void 0!==n&&n}const Ln=new WeakMap;function Rn(t){var e;return null!==(e=Ln.get(t))&&void 0!==e?e:t}function On(t,e){if(Ln.has(t))return Ln.get(t);if(T(t)){if(t.hasAttribute("exclude")){const e=document.createComment("style element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}return e.scopecss&&!t.hasAttribute("ignore")?bt(t,e):t}if(E(t)){if(t.hasAttribute("exclude")||te(t.getAttribute("href"),e.name)){const e=document.createComment("link element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}if(t.hasAttribute("ignore")||ee(t.getAttribute("href"),e.name)||t.href&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.href))return t;const{address:n,linkInfo:r,replaceComment:i}=Rt(t,null,e,!0);if(n&&r){const i=function(t,e,n,r){const i=J("style"),o=()=>{Bt(e,t,i,n,n.appSpace[e.name].attrs),St(r)};return n.code?B(o):dt(t,e.name).then(t=>{n.code=t,o()}).catch(t=>{R(t,e.name),Mt(r)}),i}(n,e,r,t);return Ln.set(t,i),i}return i?(Ln.set(t,i),i):t}if(I(t)){if(t.src&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.src))return t;const{replaceComment:n,address:r,scriptInfo:i}=Kt(t,null,e,!0)||{};if(r&&i){const n=i.isExternal?function(t,e,n,r){const i=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app"),o=()=>St(r),s=()=>{const s=Object.getOwnPropertyDescriptor(Gn.rawDocument,"currentScript");s&&!s.configurable||Object.defineProperty(Gn.rawDocument,"currentScript",{value:r,configurable:!0}),re(t,e,n,o,i),!Vt(e,n)&&o()};return n.code||Vt(e,n)?B(s):dt(t,e.name).then(t=>{n.code=t,s()}).catch(t=>{R(t,e.name),Mt(r)}),i}(r,e,i,t):function(t,e,n){const r=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app");return re(t,e,n,void 0,r),r}(r,e,i);return Ln.set(t,n),n}return n?(Ln.set(t,n),n):t}return t}function Bn(t,e,n,r,i){const o=kn(n,r,t);if(o){if(!Pn(t.name)&&P(o)&&e!==Gn.rawRemoveChild){const e=Object.getOwnPropertyDescriptor(r,"parentNode");e&&!e.configurable||r.__MICRO_APP_HAS_DPN__||u(r,{parentNode:{configurable:!0,get(){var e,n;const r=Gn.rawParentNodeDesc.get.call(this);return P(r)&&t.container?(null===(n=(e=er.options).getRootElementParentNode)||void 0===n?void 0:n.call(e,this,t.name))||document.body:r}},__MICRO_APP_HAS_DPN__:{configurable:!0,get:()=>!0}})}if(i&&!o.contains(i)){if(e===Gn.rawInsertBefore&&n.contains(i)){const t=Array.from(n.childNodes).indexOf(i);if(o.childNodes[t])return Dn(e,o,r,o.childNodes[t])}return Gn.rawAppendChild.call(o,r)}return e!==Gn.rawRemoveChild||o.contains(r)?Dn(e,o,r,i):n.contains(r)?e.call(n,r):r}return Dn(e,n,r,i)}function kn(t,e,n){if(n){if(t===document.head)return n.iframe&&I(e)?n.sandBox.microHead:n.querySelector("micro-app-head");if(t===document.body||t===document.body.parentNode)return n.iframe&&I(e)?n.sandBox.microBody:n.querySelector("micro-app-body");if(n.iframe&&I(e))return n.sandBox.microBody}return null}function Dn(t,e,n,r){return(i=t)===Gn.rawAppend||i===Gn.rawPrepend?t.call(e,n):t.call(e,n,r);var i}function Fn(t,e,n,r){const i=Z();if(C(e)&&!e.__PURE_ELEMENT__&&(e.__MICRO_APP_NAME__||i)){e.__MICRO_APP_NAME__=e.__MICRO_APP_NAME__||i;const o=Tn.get(e.__MICRO_APP_NAME__);if(T(e)){t.getRootNode()instanceof ShadowRoot&&e.setAttribute("ignore","true")}if(null==o?void 0:o.container)return function(t,e){A(e)&&(/^(img|script)$/i.test(e.tagName)?(e.hasAttribute("src")&&Gn.rawSetAttribute.call(e,"src",U(e.getAttribute("src"),t.url)),e.hasAttribute("srcset")&&Gn.rawSetAttribute.call(e,"srcset",U(e.getAttribute("srcset"),t.url))):/^link$/i.test(e.tagName)&&e.hasAttribute("href")&&Gn.rawSetAttribute.call(e,"href",U(e.getAttribute("href"),t.url)))}(o,e),Bn(o,r,t,On(e,o),n&&Rn(n))}return r===Gn.rawAppend||r===Gn.rawPrepend?r.call(t,e):r.call(t,e,n)}function Nn(){!function(){const t=Gn.rawDocument,e=Gn.rawRootDocument;function n(e){return function(t){return"[object ProxyDocument]"===f(t)}(e)?t:e}function r(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelector(e))&&void 0!==i?i:null:Gn.rawQuerySelector.call(o,e)}function i(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelectorAll(e))&&void 0!==i?i:[]:Gn.rawQuerySelectorAll.call(o,e)}e.prototype.createElement=function(t,e){return jn(Gn.rawCreateElement.call(n(this),t,e))},e.prototype.createElementNS=function(t,e,r){return jn(Gn.rawCreateElementNS.call(n(this),t,e,r))},e.prototype.createDocumentFragment=function(){return jn(Gn.rawCreateDocumentFragment.call(n(this)))},e.prototype.createComment=function(t){return jn(Gn.rawCreateComment.call(n(this),t))},e.prototype.querySelector=r,e.prototype.querySelectorAll=i,e.prototype.getElementById=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementById.call(e,t);try{return r.call(e,"#"+t)}catch(n){return Gn.rawGetElementById.call(e,t)}},e.prototype.getElementsByClassName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByClassName.call(e,t);try{return i.call(e,"."+t)}catch(n){return Gn.rawGetElementsByClassName.call(e,t)}},e.prototype.getElementsByTagName=function(t){var e;const r=n(this),o=Z();if(!o||K(t)||q(t)||!(null===(e=Tn.get(o))||void 0===e?void 0:e.inline)&&/^script$/i.test(t))return Gn.rawGetElementsByTagName.call(r,t);try{return i.call(r,t)}catch(e){return Gn.rawGetElementsByTagName.call(r,t)}},e.prototype.getElementsByName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByName.call(e,t);try{return i.call(e,`[name=${t}]`)}catch(n){return Gn.rawGetElementsByName.call(e,t)}}}();const t=Gn.rawRootElement,e=Gn.rawRootNode;function n(t){const e=Z();if((t===document.body||t===document.head)&&e){const n=Tn.get(e);if(null==n?void 0:n.container){if(t===document.body)return n.querySelector("micro-app-body");if(t===document.head)return n.querySelector("micro-app-head")}}return t}t.prototype.appendChild=function(t){return Fn(this,t,null,Gn.rawAppendChild)},t.prototype.insertBefore=function(t,e){return Fn(this,t,e,Gn.rawInsertBefore)},t.prototype.replaceChild=function(t,e){return Fn(this,t,e,Gn.rawReplaceChild)},t.prototype.append=function(...t){let e=0;for(;e<t.length;){let n=t[e];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawAppend),e++}},t.prototype.prepend=function(...t){let e=t.length;for(;e>0;){let n=t[e-1];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawPrepend),e--}},t.prototype.removeChild=function(t){if(null==t?void 0:t.__MICRO_APP_NAME__){const e=Tn.get(t.__MICRO_APP_NAME__);if(null==e?void 0:e.container)return Bn(e,Gn.rawRemoveChild,this,Rn(t));try{return Gn.rawRemoveChild.call(this,t)}catch(e){return(null==t?void 0:t.parentNode)&&Gn.rawRemoveChild.call(t.parentNode,t)}}return Gn.rawRemoveChild.call(this,t)},t.prototype.insertAdjacentElement=function(t,e){var n;if((null==e?void 0:e.__MICRO_APP_NAME__)&&A(e)){const r=Tn.get(e.__MICRO_APP_NAME__);if(null==r?void 0:r.container){const i=On(e,r);if(!A(i))return e;const o=null!==(n=kn(this,i,r))&&void 0!==n?n:this;return Gn.rawInsertAdjacentElement.call(o,t,i)}}return Gn.rawInsertAdjacentElement.call(this,t,e)},t.prototype.cloneNode=function(t){const e=Gn.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(e.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),e},t.prototype.querySelector=function(t){var e;return Gn.rawElementQuerySelector.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.querySelectorAll=function(t){var e;return Gn.rawElementQuerySelectorAll.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.setAttribute=function(t,e){const n=this.__MICRO_APP_NAME__||Z();if(n&&Tn.has(n)&&(("src"===t||"srcset"===t)&&/^(img|script|video|audio|source|embed)$/i.test(this.tagName)||"href"===t&&/^link$/i.test(this.tagName))){e=U(e,Tn.get(n).url)}Gn.rawSetAttribute.call(this,t,e)},l(t.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return Gn.rawInnerHTMLDesc.get.call(this)},set(t){Gn.rawInnerHTMLDesc.set.call(this,t);const e=Z();Array.from(this.children).forEach(t=>{A(t)&&e&&(t.__MICRO_APP_NAME__=e)})}}),l(e.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var t,e,n;const r=Z();if(r&&this===Gn.rawDocument.firstElementChild){const i=null===(n=null===(e=null===(t=Tn.get(r))||void 0===t?void 0:t.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n.document;if(i)return i}return Gn.rawParentNodeDesc.get.call(this)}})}function jn(t){const e=Z();return e&&(t.__MICRO_APP_NAME__=e),t}function Un(){X(),function(){const t=Gn.rawRootDocument;t.prototype.createElement=Gn.rawCreateElement,t.prototype.createElementNS=Gn.rawCreateElementNS,t.prototype.createDocumentFragment=Gn.rawCreateDocumentFragment,t.prototype.querySelector=Gn.rawQuerySelector,t.prototype.querySelectorAll=Gn.rawQuerySelectorAll,t.prototype.getElementById=Gn.rawGetElementById,t.prototype.getElementsByClassName=Gn.rawGetElementsByClassName,t.prototype.getElementsByTagName=Gn.rawGetElementsByTagName,t.prototype.getElementsByName=Gn.rawGetElementsByName}();const t=Gn.rawRootElement,e=Gn.rawRootNode;t.prototype.appendChild=Gn.rawAppendChild,t.prototype.insertBefore=Gn.rawInsertBefore,t.prototype.replaceChild=Gn.rawReplaceChild,t.prototype.removeChild=Gn.rawRemoveChild,t.prototype.append=Gn.rawAppend,t.prototype.prepend=Gn.rawPrepend,t.prototype.cloneNode=Gn.rawCloneNode,t.prototype.querySelector=Gn.rawElementQuerySelector,t.prototype.querySelectorAll=Gn.rawElementQuerySelectorAll,t.prototype.setAttribute=Gn.rawSetAttribute,l(t.prototype,"innerHTML",Gn.rawInnerHTMLDesc),l(e.prototype,"parentNode",Gn.rawParentNodeDesc)}let zn=!1;const Gn={activeSandbox:0};function Hn(){if(i){const t=window.rawWindow||Function("return window")(),e=window.rawDocument||Function("return document")(),n=t.Document||Function("return Document")(),r=t.Element,i=t.Node,o=t.EventTarget,s=r.prototype.setAttribute,a=r.prototype.appendChild,l=r.prototype.insertBefore,u=r.prototype.replaceChild,h=r.prototype.removeChild,d=r.prototype.append,f=r.prototype.prepend,p=r.prototype.cloneNode,m=r.prototype.querySelector,g=r.prototype.querySelectorAll,v=r.prototype.insertAdjacentElement,y=Object.getOwnPropertyDescriptor(r.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(i.prototype,"parentNode"),b=n.prototype.createElement,x=n.prototype.createElementNS,w=n.prototype.createTextNode,S=n.prototype.createDocumentFragment,M=n.prototype.createComment,A=n.prototype.querySelector,C=n.prototype.querySelectorAll,E=n.prototype.getElementById,T=n.prototype.getElementsByClassName,I=n.prototype.getElementsByTagName,P=n.prototype.getElementsByName,L=new Proxy(Image,{construct(t,e){const n=new t(...e),r=Z();return r&&(n.__MICRO_APP_NAME__=r),n}}),R=t.setInterval,O=t.setTimeout,B=t.clearInterval,k=t.clearTimeout,D=t.history.pushState,F=t.history.replaceState,N=o.prototype.addEventListener,j=o.prototype.removeEventListener,U=o.prototype.dispatchEvent;window.__MICRO_APP_BASE_APPLICATION__=!0,c(Gn,{supportModuleScript:"noModule"in document.createElement("script"),rawWindow:t,rawDocument:e,rawRootDocument:n,rawRootElement:r,rawRootNode:i,rawSetAttribute:s,rawAppendChild:a,rawInsertBefore:l,rawReplaceChild:u,rawRemoveChild:h,rawAppend:d,rawPrepend:f,rawCloneNode:p,rawElementQuerySelector:m,rawElementQuerySelectorAll:g,rawInsertAdjacentElement:v,rawInnerHTMLDesc:y,rawParentNodeDesc:_,rawCreateElement:b,rawCreateElementNS:x,rawCreateDocumentFragment:S,rawCreateTextNode:w,rawCreateComment:M,rawQuerySelector:A,rawQuerySelectorAll:C,rawGetElementById:E,rawGetElementsByClassName:T,rawGetElementsByTagName:I,rawGetElementsByName:P,ImageProxy:L,rawSetInterval:R,rawSetTimeout:O,rawClearInterval:B,rawClearTimeout:k,rawPushState:D,rawReplaceState:F,rawAddEventListener:N,rawRemoveEventListener:j,rawDispatchEvent:U}),function(){if(!zn){zn=!0;const t=J("style");Gn.rawSetAttribute.call(t,"type","text/css"),t.textContent=`\n${er.tagName}, micro-app-body { display: block; } \nmicro-app-head { display: none; }`,Gn.rawDocument.head.appendChild(t)}}()}}function Wn(t){class e extends(function(){var t;return(null===(t=window.rawWindow)||void 0===t?void 0:t.HTMLElement)||window.HTMLElement}()){constructor(){super(...arguments),this.isWaiting=!1,this.cacheData=null,this.connectedCount=0,this.connectStateMap=new Map,this.appName="",this.appUrl="",this.ssrUrl="",this.version=r,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const t=N(this.getAttribute("name")),e=F(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",t)&&this.legalAttribute("url",e)){const n=Tn.get(t);if(t!==this.appName&&n&&!n.isUnmounted()&&!n.isHidden()&&!n.isPrefetch)return this.setAttribute("name",this.appName),R(`app name conflict, an app named ${t} is running`);t===this.appName&&e===this.appUrl||(t===this.appName?this.unmount(!0,()=>{this.actionsForAttributeChange(t,e,n)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(t,e,n)):this.unmount(!1,()=>{this.actionsForAttributeChange(t,e,n)}))}else t!==this.appName&&this.setAttribute("name",this.appName)}}static get observedAttributes(){return["name","url"]}connectedCallback(){const t=++this.connectedCount;this.connectStateMap.set(t,!0);const e=this.appName&&this.appUrl;B(()=>{this.connectStateMap.get(t)&&(ut(this,this.appName,Et.CREATED),e&&this.handleConnected())})}disconnectedCallback(){this.connectStateMap.set(this.connectedCount,!1),this.handleDisconnected()}reload(t){return new Promise(e=>{const n=()=>{this.removeEventListener(Et.MOUNTED,n),this.removeEventListener(Et.AFTERSHOW,n),e(!0)};this.addEventListener(Et.MOUNTED,n),this.addEventListener(Et.AFTERSHOW,n),this.handleDisconnected(t,()=>{this.handleConnected()})})}handleDisconnected(t=!1,e){const n=Tn.get(this.appName);!n||n.isUnmounted()||n.isHidden()||(this.getKeepAliveModeResult()&&!t?this.handleHiddenKeepAliveApp(e):this.unmount(t,e))}attributeChangedCallback(t,e,n){if(this.legalAttribute(t,n)&&this[t===At.NAME?"appName":"appUrl"]!==n)if(t!==At.URL||this.appUrl&&this.connectStateMap.get(this.connectedCount))if(t!==At.NAME||this.appName&&this.connectStateMap.get(this.connectedCount))this.isWaiting||(this.isWaiting=!0,B(this.handleAttributeUpdate));else{const t=N(n);if(!t)return R("Invalid attribute name "+n,this.appName);this.cacheData&&(er.setData(t,this.cacheData),this.cacheData=null),this.appName=t,t!==n&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else{if(!(n=F(n,this.appName)))return R("Invalid attribute url "+n,this.appName);this.appUrl=n,this.handleInitialNameAndUrl()}}handleInitialNameAndUrl(){this.connectStateMap.get(this.connectedCount)&&this.handleConnected()}handleConnected(){if(this.appName&&this.appUrl)if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&_(this.attachShadow)&&this.attachShadow({mode:"open"}),this.updateSsrUrl(this.appUrl),Tn.has(this.appName)){const t=Tn.get(this.appName),e=t.ssrUrl||t.url,n=this.ssrUrl||this.appUrl;t.isHidden()&&t.url===this.appUrl?this.handleShowKeepAliveApp(t):e===n&&(t.isUnmounted()||t.isPrefetch&&this.sameCoreOptions(t))?this.handleMount(t):t.isPrefetch||t.isUnmounted()?this.handleCreateApp():R(`app name conflict, an app named: ${this.appName} with url: ${e} is running`)}else this.handleCreateApp()}actionsForAttributeChange(t,e,n){var r;this.updateSsrUrl(e),this.appName=t,this.appUrl=e,(null!==(r=this.shadowRoot)&&void 0!==r?r:this).innerHTML="",t!==this.getAttribute("name")&&this.setAttribute("name",this.appName),n?n.isHidden()?n.url===this.appUrl?this.handleShowKeepAliveApp(n):R(`app name conflict, an app named ${this.appName} is running`):n.url===this.appUrl&&n.ssrUrl===this.ssrUrl?this.handleMount(n):this.handleCreateApp():this.handleCreateApp()}legalAttribute(t,e){return!(!g(e)||!e)||(R(`unexpected attribute ${t}, please check again`,this.appName),!1)}handleCreateApp(){const t=()=>{var t;return new In({name:this.appName,url:this.appUrl,container:null!==(t=this.shadowRoot)&&void 0!==t?t:this,scopecss:this.useScopecss(),useSandbox:this.useSandbox(),inline:this.getDisposeResult("inline"),iframe:this.getDisposeResult("iframe"),ssrUrl:this.ssrUrl,routerMode:this.getMemoryRouterMode()})},e=Tn.get(this.appName);e?e.isPrerender?this.unmount(!0,t):(e.actionsForCompletelyDestroy(),t()):t()}handleMount(t){t.isPrefetch=!1,t.setAppState(Ct.BEFORE_MOUNT),B(()=>this.mount(t))}mount(t){var e;t.mount({container:null!==(e=this.shadowRoot)&&void 0!==e?e:this,inline:this.getDisposeResult("inline"),routerMode:this.getMemoryRouterMode(),baseroute:this.getBaseRouteCompatible(),defaultPage:this.getDefaultPage(),disablePatchRequest:this.getDisposeResult("disable-patch-request"),fiber:this.getDisposeResult("fiber")})}unmount(t,e){const n=Tn.get(this.appName);n&&!n.isUnmounted()&&n.unmount({destroy:t||this.getDestroyCompatibleResult(),clearData:this.getDisposeResult("clear-data"),keepRouteState:this.getDisposeResult("keep-router-state"),unmountcb:e})}handleHiddenKeepAliveApp(t){const e=Tn.get(this.appName);!e||e.isUnmounted()||e.isHidden()||e.hiddenKeepAliveApp(t)}handleShowKeepAliveApp(t){B(()=>{var e;return t.showKeepAliveApp(null!==(e=this.shadowRoot)&&void 0!==e?e:this)})}getDisposeResult(t){return(this.compatibleProperties(t)||!!er.options[t])&&this.compatibleDisableProperties(t)}compatibleProperties(t){return"disable-scopecss"===t?this.hasAttribute("disable-scopecss")||this.hasAttribute("disableScopecss"):"disable-sandbox"===t?this.hasAttribute("disable-sandbox")||this.hasAttribute("disableSandbox"):this.hasAttribute(t)}compatibleDisableProperties(t){return"disable-scopecss"===t?"false"!==this.getAttribute("disable-scopecss")&&"false"!==this.getAttribute("disableScopecss"):"disable-sandbox"===t?"false"!==this.getAttribute("disable-sandbox")&&"false"!==this.getAttribute("disableSandbox"):"false"!==this.getAttribute(t)}useScopecss(){return!(this.getDisposeResult("disable-scopecss")||this.getDisposeResult("shadowDOM"))}useSandbox(){return!this.getDisposeResult("disable-sandbox")}sameCoreOptions(t){return t.scopecss===this.useScopecss()&&t.useSandbox===this.useSandbox()&&t.iframe===this.getDisposeResult("iframe")}getBaseRouteCompatible(){var t,e;return null!==(e=null!==(t=this.getAttribute("baseroute"))&&void 0!==t?t:this.getAttribute("baseurl"))&&void 0!==e?e:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}updateSsrUrl(t){if(this.getDisposeResult("ssr"))if(this.getDisposeResult("disable-memory-router")||this.getDisposeResult("disableSandbox")){const e=Gn.rawWindow.location;this.ssrUrl=U(e.pathname+e.search,t)}else{let e=function(t,e){const n=Le(t);if(!n)return"";const r=k(n,e);return r.origin+r.pathname+r.search}(this.appName,t);const n=this.getDefaultPage();if(!e&&n){const r=k(n,t);e=r.origin+r.pathname+r.search}this.ssrUrl=e}else this.ssrUrl&&(this.ssrUrl="")}getDefaultPage(){return Je.getDefaultPage(this.appName)||this.getAttribute("default-page")||this.getAttribute("defaultPage")||""}getMemoryRouterMode(){return je(this.getAttribute("router-mode"),this.compatibleProperties("disable-memory-router")&&this.compatibleDisableProperties("disable-memory-router"))}setAttribute(t,e){if("data"===t)if(b(e)){const t={};Object.getOwnPropertyNames(e).forEach(n=>{g(n)&&0===n.indexOf("__")||(t[n]=e[n])}),this.data=t}else"[object Object]"!==e&&O("property data must be an object",this.appName);else Gn.rawSetAttribute.call(this,t,e)}set data(t){this.appName?er.setData(this.appName,t):this.cacheData=t}get data(){return this.appName?er.getData(this.appName,!0):this.cacheData?this.cacheData:null}get publicPath(){return j(this.appUrl)}get baseRoute(){return this.getBaseRouteCompatible()}}Gn.rawWindow.customElements.define(t,e)}function Vn(t,e){if(!i)return R("preFetch is only supported in browser environment");G(()=>{const n=y(e)?e:er.options.prefetchDelay;setTimeout(()=>{!function(t){_(t)&&(t=t()),a(t)&&t.reduce((t,e)=>t.then(()=>{return t=e,H(e=>{var n,r,i,o,s,a;if(b(t)&&navigator.onLine)if(t.name=N(t.name),t.url=F(t.url,t.name),t.name&&t.url&&!Tn.has(t.name)){const l=new In({name:t.name,url:t.url,isPrefetch:!0,scopecss:!(null!==(r=null!==(n=t["disable-scopecss"])&&void 0!==n?n:t.disableScopecss)&&void 0!==r?r:er.options["disable-scopecss"]),useSandbox:!(null!==(o=null!==(i=t["disable-sandbox"])&&void 0!==i?i:t.disableSandbox)&&void 0!==o?o:er.options["disable-sandbox"]),inline:null!==(s=t.inline)&&void 0!==s?s:er.options.inline,iframe:null!==(a=t.iframe)&&void 0!==a?a:er.options.iframe,prefetchLevel:t.level&&kt.includes(t.level)?t.level:er.options.prefetchLevel&&kt.includes(er.options.prefetchLevel)?er.options.prefetchLevel:2}),u=l.onLoad,h=l.onLoadError;l.onLoad=n=>{l.isPrerender&&c(n,{defaultPage:t["default-page"],routerMode:je(t["router-mode"]),baseroute:t.baseroute,disablePatchRequest:t["disable-patch-request"]}),e(),u.call(l,n)},l.onLoadError=(...t)=>{e(),h.call(l,...t)}}else e();else e()});var t}),Promise.resolve())}(t)},y(n)?n:3e3)})}function Zn(t,e,n){if(a(t)){const r=t.filter(t=>g(t)&&t.includes("."+e)&&!n.hasInfo(t));z(r.map(t=>dt(t)),t=>{const i=r[t.index];"js"===e?n.hasInfo(i)||n.setInfo(i,{code:t.data,isExternal:!1,appSpace:{}}):n.hasInfo(i)||n.setInfo(i,{code:t.data,appSpace:{}})},t=>{R(t)})}}function Qn({excludeHiddenApp:t=!1,excludePreRender:e=!1}={}){const n=[];return Tn.forEach((r,i)=>{r.isUnmounted()||r.isPrefetch&&(!r.isPrerender||e)||t&&r.isHidden()||n.push(i)}),n}function Xn(){return Array.from(Tn.keys())}function Yn(t,e){const n=Tn.get(N(t));return new Promise(r=>{if(n)if(n.isUnmounted()||n.isPrefetch)n.isPrerender?n.unmount({destroy:!!(null==e?void 0:e.destroy),clearData:!!(null==e?void 0:e.clearData),keepRouteState:!1,unmountcb:r.bind(null,!0)}):((null==e?void 0:e.destroy)&&n.actionsForCompletelyDestroy(),r(!0));else if(n.isHidden())(null==e?void 0:e.destroy)?n.unmount({destroy:!0,clearData:!0,keepRouteState:!0,unmountcb:r.bind(null,!0)}):(null==e?void 0:e.clearAliveState)?n.unmount({destroy:!1,clearData:!!e.clearData,keepRouteState:!0,unmountcb:r.bind(null,!0)}):r(!0);else{const t=$(n.container),i=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)},o=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)};if(t.addEventListener(Et.UNMOUNT,i),t.addEventListener(Et.AFTERHIDDEN,o),null==e?void 0:e.destroy){let e,n;t.hasAttribute("destroy")&&(e=t.getAttribute("destroy")),t.hasAttribute("destory")&&(n=t.getAttribute("destory")),t.setAttribute("destroy","true"),t.parentNode.removeChild(t),t.removeAttribute("destroy"),g(e)&&t.setAttribute("destroy",e),g(n)&&t.setAttribute("destory",n)}else if((null==e?void 0:e.clearAliveState)&&t.hasAttribute("keep-alive")){const n=t.getAttribute("keep-alive");t.removeAttribute("keep-alive");let r=null;e.clearData&&(r=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),t.setAttribute("keep-alive",n),g(r)&&t.setAttribute("clear-data",r)}else{let n=null;(null==e?void 0:e.clearData)&&(n=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),g(n)&&t.setAttribute("clear-data",n)}}else O(`app ${t} does not exist`),r(!1)})}function Jn(t){return Array.from(Tn.keys()).reduce((e,n)=>e.then(()=>Yn(n,t)),Promise.resolve(!0))}function qn(t,e){return new Promise(n=>{const r=Tn.get(N(t));if(r){const i=r.container&&$(r.container);i?n(i.reload(e)):(O(`app ${t} is not rendered, cannot use reload`),n(!1))}else O(`app ${t} does not exist`),n(!1)})}function Kn(t){return new Promise(e=>{if(!b(t))return R("renderApp options must be an object");const n=A(t.container)?t.container:g(t.container)?document.querySelector(t.container):null;if(!A(n))return R("Target container is not a DOM element.");const r=J(er.tagName);for(const e in t)if("onDataChange"===e)_(t[e])&&r.addEventListener("datachange",t[e]);else if("lifeCycles"===e){const n=t[e];if(b(n))for(const t in n)t.toUpperCase()in Et&&_(n[t])&&r.addEventListener(t.toLowerCase(),n[t])}else"container"!==e&&r.setAttribute(e,t[e]);const i=()=>{s(),e(!0)},o=()=>{s(),e(!1)},s=()=>{r.removeEventListener(Et.MOUNTED,i),r.removeEventListener(Et.ERROR,o)};r.addEventListener(Et.MOUNTED,i),r.addEventListener(Et.ERROR,o),n.appendChild(r)})}function $n(t){const e=Tn.get(N(t));if(e)return e.getLifeCycleState();O(`app ${t} does not exist`)}class tr extends ue{constructor(){super(...arguments),this.tagName="micro-app",this.hasInit=!1,this.options={},this.router=Je,this.preFetch=Vn,this.unmountApp=Yn,this.unmountAllApps=Jn,this.getActiveApps=Qn,this.getAllApps=Xn,this.reload=qn,this.renderApp=Kn,this.getAppStatus=$n}start(t){var e,n,r;if(!i||!window.customElements)return R("micro-app is not supported in this environment");if(this.hasInit)return R("microApp.start executed repeatedly");if(this.hasInit=!0,null==t?void 0:t.tagName){if(!/^micro-app(-\S+)?/.test(t.tagName))return R(t.tagName+" is invalid tagName");this.tagName=t.tagName}if(Hn(),Gn.rawWindow.customElements.get(this.tagName))return O(`element ${this.tagName} is already defined`);if(b(t)&&(this.options=t,t["disable-scopecss"]=null!==(e=t["disable-scopecss"])&&void 0!==e?e:t.disableScopecss,t["disable-sandbox"]=null!==(n=t["disable-sandbox"])&&void 0!==n?n:t.disableSandbox,t.preFetchApps&&Vn(t.preFetchApps),t.globalAssets&&(b(r=t.globalAssets)&&G(()=>{Zn(r.js,"js",Lt.script),Zn(r.css,"css",Lt.link)})),b(t.plugins))){const e=t.plugins.modules;if(b(e))for(const t in e){const n=N(t);n&&t!==n&&(e[n]=e[t],delete e[t])}}Wn(this.tagName)}}const er=new tr;e.default=er}.call(this,n(10))},function(t,e,n){"use strict";n.r(e);var r=n(119),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(341);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,"67ce9f3a",null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(30)),i=u(n(31)),o=n(12),s=n(8),a=u(n(336)),c=u(n(339)),l=n(5);function u(t){return t&&t.__esModule?t:{default:t}}var h,d=new c.default,f=(h=(0,i.default)(r.default.mark((function t(e){var n,i,c,u;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.getTimestamp)();case 2:return n=t.sent,i=n.data,c=window.__RK_WEB_CORE_APPID__&&(0,s.getCache)("CLIENT_ID",s.sessionEngine)?(0,s.getCache)("CLIENT_ID",s.sessionEngine):l.sessionStore.get("CLIENT_ID"),t.next=7,(0,o.getPk)({code:c});case 7:return u=t.sent,d.setPublicKey(u.data),t.abrupt("return",d.encrypt((0,a.default)(e)+" "+i));case 10:case"end":return t.stop()}}),t,void 0)}))),function(t){return h.apply(this,arguments)});e.default=function(t){return f(t)}},function(t,e,n){n(34),n(193),t.exports=n(6).Array.from},function(t,e,n){var r=n(87),i=n(88);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(92),i=n(58),o=n(60),s={};n(27)(s,n(16)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(19),i=n(24),o=n(49);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},function(t,e,n){var r=n(37),i=n(70),o=n(192);t.exports=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(87),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){"use strict";var r=n(26),i=n(9),o=n(38),s=n(129),a=n(130),c=n(70),l=n(194),u=n(97);i(i.S+i.F*!n(131)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&a(y))for(n=new f(e=c(d.length));e>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(i=h.next()).done;v++)l(n,v,g?s(h,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(19),i=n(58);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){t.exports={default:n(196),__esModule:!0}},function(t,e,n){n(197),t.exports=n(6).Object.assign},function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(198)})},function(t,e,n){"use strict";var r=n(18),i=n(49),o=n(98),s=n(61),a=n(38),c=n(93),l=Object.assign;t.exports=!l||n(35)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,h=o.f,d=s.f;l>u;)for(var f,p=c(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;g>v;)f=m[v++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:l},function(t,e,n){n(200),t.exports=n(6).Object.keys},function(t,e,n){var r=n(38),i=n(49);n(132)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(202);var r=n(6).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(18),"Object",{defineProperty:n(19).f})},function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}n.r(e),n.d(e,"NavigationFailureType",(function(){return yt})),n.d(e,"RouterLink",(function(){return Z})),n.d(e,"RouterView",(function(){return x})),n.d(e,"START_LOCATION",(function(){return m})),n.d(e,"default",(function(){return Vt})),n.d(e,"isNavigationFailure",(function(){return Mt})),n.d(e,"version",(function(){return Qt}));var i=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,a=function(t){return encodeURIComponent(t).replace(i,o).replace(s,",")};function c(t){try{return decodeURIComponent(t)}catch(t){0}return t}var l=function(t){return null==t||"object"==typeof t?t:String(t)};function u(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return a(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(a(e)):r.push(a(e)+"="+a(t)))})),r.join("&")}return a(e)+"="+a(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function f(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=p(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:v(e,i),matched:t?g(t):[]};return n&&(s.redirectedFrom=v(n,i)),Object.freeze(s)}function p(t){if(Array.isArray(t))return t.map(p);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=p(t[n]);return e}return t}var m=f(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function v(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||h)(r)+i}function y(t,e,n){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&_(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params))))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?_(o,s):String(o)===String(s)}))}function b(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var x={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,s=e.data;s.routerView=!0;for(var a=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=h,d){var p=u[c],m=p&&p.component;return m?(p.configProps&&w(m,s,p.route,p.configProps),a(m,s,i)):a()}var g=l.matched[h],v=g&&g.components[c];if(!g||!v)return u[c]=null,a();u[c]={component:v},s.registerRouteInstance=function(t,e){var n=g.instances[c];(e&&n!==t||!e&&n===t)&&(g.instances[c]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){g.instances[c]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[c]&&(g.instances[c]=t.componentInstance),b(l)};var y=g.props&&g.props[c];return y&&(r(u[c],{route:l,configProps:y}),w(v,s,l,y)),a(v,s,i)}};function w(t,e,n,i){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(o){o=e.props=r({},o);var s=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(s[a]=o[a],delete o[a])}}function S(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function M(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var A=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},C=U,E=R,T=function(t,e){return B(R(t,e),e)},I=B,P=j,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=L.exec(t));){var c=n[0],l=n[1],u=n.index;if(s+=t.slice(o,u),o=u+c.length,l)s+=l[1];else{var h=t[o],d=n[2],f=n[3],p=n[4],m=n[5],g=n[6],v=n[7];s&&(r.push(s),s="");var y=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,b="?"===g||"*"===g,x=n[2]||a,w=p||m;r.push({name:f||i++,prefix:d||"",delimiter:x,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:w?D(w):v?".*":"[^"+k(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function O(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function B(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",N(e)));return function(e,r){for(var i="",o=e||{},s=(r||{}).pretty?O:encodeURIComponent,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(A(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=s(u[h]),!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):s(u),!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function k(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function F(t,e){return t.keys=e,t}function N(t){return t&&t.sensitive?"":"i"}function j(t,e,n){A(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=k(a);else{var c=k(a.prefix),l="(?:"+a.pattern+")";e.push(a),a.repeat&&(l+="(?:"+c+l+")*"),o+=l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=k(n.delimiter||"/"),h=o.slice(-u.length)===u;return r||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+u+"|$)",F(new RegExp("^"+o,N(n)),e)}function U(t,e,n){return A(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return F(t,e)}(t,e):A(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(U(t[i],e,n).source);return F(new RegExp("(?:"+r.join("|")+")",N(n)),e)}(t,e,n):function(t,e,n){return j(R(t,n),e,n)}(t,e,n)}C.parse=E,C.compile=T,C.tokensToFunction=I,C.tokensToRegExp=P;var z=Object.create(null);function G(t,e,n){e=e||{};try{var r=z[t]||(z[t]=C.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function H(t,e,n,i){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var s=(o=r({},t)).params;return s&&"object"==typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&e){(o=r({},o))._normalized=!0;var a=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=G(c,a,e.path)}else 0;return o}var h=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",f=h.path?S(h.path,d,n||o.append):d,p=function(t,e,n){void 0===e&&(e={});var r,i=n||u;try{r=i(t||"")}catch(t){r={}}for(var o in e){var s=e[o];r[o]=Array.isArray(s)?s.map(l):l(s)}return r}(h.query,o.query,i&&i.options.parseQuery),m=o.hash||h.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:f,query:p,hash:m}}var W,V=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),s=o.location,a=o.route,c=o.href,l={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,m=null==h?"router-link-exact-active":h,g=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?m:this.exactActiveClass,_=a.redirectedFrom?f(null,H(a.redirectedFrom),null,n):a;l[v]=y(i,_,this.exactPath),l[g]=this.exact||this.exactPath?l[v]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,_);var b=l[v]?this.ariaCurrentValue:null,x=function(t){Q(t)&&(e.replace?n.replace(s,V):n.push(s,V))},w={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var S={class:l},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:a,navigate:x,isActive:l[g],isExactActive:l[v]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?t():t("span",{},M)}if("a"===this.tag)S.on=w,S.attrs={href:c,"aria-current":b};else{var A=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(A){A.isStatic=!1;var C=A.data=r({},A.data);for(var E in C.on=C.on||{},C.on){var T=C.on[E];E in w&&(C.on[E]=Array.isArray(T)?T:[T])}for(var I in w)I in C.on?C.on[I].push(w[I]):C.on[I]=x;var P=A.data.attrs=r({},A.data.attrs);P.href=c,P["aria-current"]=b}else S.on=w}return t(this.tag,S,this.$slots.default)}};function Q(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var X="undefined"!=typeof window;function Y(t,e,n,r,i){var o=e||[],s=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,s){var a=i.path,c=i.name;0;var l=i.pathToRegexpOptions||{},u=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(a,o,l.strict);"boolean"==typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var h={path:u,regex:J(u,l),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach((function(i){var o=s?M(s+"/"+i.path):void 0;t(e,n,r,i,h,o)}));n[h.path]||(e.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<d.length;++f){0;var p={path:d[f],children:i.children};t(e,n,r,p,o,h.path||"/")}c&&(r[c]||(r[c]=h))}(o,s,a,t,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function J(t,e){return C(t,[],e)}function q(t,e){var n=Y(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var a=H(t,n,!1,e),l=a.name;if(l){var u=o[l];if(!u)return c(null,a);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in a.params)&&h.indexOf(d)>-1&&(a.params[d]=n.params[d]);return a.path=G(u.path,a.params),c(u,a,s)}if(a.path){a.params={};for(var f=0;f<r.length;f++){var p=r[f],m=i[p];if(K(m.regex,a.path,a.params))return c(m,a,s)}}return c(null,a)}function a(t,n){var r=t.redirect,i="function"==typeof r?r(f(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return c(null,n);var a=i,l=a.name,u=a.path,h=n.query,d=n.hash,p=n.params;if(h=a.hasOwnProperty("query")?a.query:h,d=a.hasOwnProperty("hash")?a.hash:d,p=a.hasOwnProperty("params")?a.params:p,l){o[l];return s({_normalized:!0,name:l,query:h,hash:d,params:p},void 0,n)}if(u){var m=function(t,e){return S(t,e.parent?e.parent.path:"/",!0)}(u,t);return s({_normalized:!0,path:G(m,p),query:h,hash:d},void 0,n)}return c(null,n)}function c(t,n,r){return t&&t.redirect?a(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:G(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,c(o,e)}return c(null,e)}(0,n,t.matchAs):f(t,n,r,e)}return{match:s,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Y([e||t],r,i,o,n),n&&n.alias.length&&Y(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Y(t,r,i,o)}}}function K(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1];s&&(n[s.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var $=X&&window.performance&&window.performance.now?window.performance:Date;function tt(){return $.now().toFixed(3)}var et=tt();function nt(){return et}function rt(t){return et=t}var it=Object.create(null);function ot(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=nt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ct),function(){window.removeEventListener("popstate",ct)}}function st(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=nt();if(t)return it[t]}(),s=i.call(t,e,n,r?o:null);s&&("function"==typeof s.then?s.then((function(t){ft(t,o)})).catch((function(t){0})):ft(s,o))}))}}function at(){var t=nt();t&&(it[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){at(),t.state&&t.state.key&&rt(t.state.key)}function lt(t){return ht(t.x)||ht(t.y)}function ut(t){return{x:ht(t.x)?t.x:window.pageXOffset,y:ht(t.y)?t.y:window.pageYOffset}}function ht(t){return"number"==typeof t}var dt=/^#\d/;function ft(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=dt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:ht((n=o).x)?n.x:0,y:ht(n.y)?n.y:0})}else lt(t)&&(e=ut(t))}else r&&lt(t)&&(e=ut(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var pt,mt=X&&((-1===(pt=window.navigator.userAgent).indexOf("Android 2.")&&-1===pt.indexOf("Android 4.0")||-1===pt.indexOf("Mobile Safari")||-1!==pt.indexOf("Chrome")||-1!==pt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function gt(t,e){at();var n=window.history;try{if(e){var i=r({},n.state);i.key=nt(),n.replaceState(i,"",t)}else n.pushState({key:rt(tt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function vt(t){gt(t,!0)}var yt={redirected:2,aborted:4,cancelled:8,duplicated:16};function _t(t,e){return xt(t,e,yt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function bt(t,e){return xt(t,e,yt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function xt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var wt=["params","query","hash"];function St(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Mt(t,e){return St(t)&&t._isRouter&&(null==e||t.type===e)}function At(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ct(t){return function(e,n,r){var i=!1,o=0,s=null;Et(t,(function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var c,l=Pt((function(e){var i;((i=e).__esModule||It&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:W.extend(e),n.components[a]=e,--o<=0&&r()})),u=Pt((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=St(t)?t:new Error(e),r(s))}));try{c=t(l,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(l,u);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),i||r()}}function Et(t,e){return Tt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Tt(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Lt=function(t,e){this.router=t,this.base=function(t){if(!t)if(X){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Rt(t,e,n,r){var i=Et(t,(function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=W.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return Tt(r?i.reverse():i)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}Lt.prototype.listen=function(t){this.cb=t},Lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Lt.prototype.onError=function(t){this.errorCbs.push(t)},Lt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Mt(t,yt.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Lt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,s,a=function(t){!Mt(t)&&St(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,l=i.matched.length-1;if(y(t,i)&&c===l&&t.matched[c]===i.matched[l])return this.ensureURL(),t.hash&&st(this.router,i,t,!1),a(((s=xt(o=i,t,yt.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=u.updated,d=u.deactivated,f=u.activated,p=[].concat(function(t){return Rt(t,"beforeRouteLeave",Ot,!0)}(d),this.router.beforeHooks,function(t){return Rt(t,"beforeRouteUpdate",Ot)}(h),f.map((function(t){return t.beforeEnter})),Ct(f)),m=function(e,n){if(r.pending!==t)return a(bt(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),a(function(t,e){return xt(t,e,yt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):St(e)?(r.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(_t(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){a(t)}};At(p,m,(function(){At(function(t){return Rt(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f).concat(r.router.resolveHooks),m,(function(){if(r.pending!==t)return a(bt(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){b(t)}))}))}))},Lt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Lt.prototype.setupListeners=function(){},Lt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=m,this.pending=null};var Bt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=kt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=mt&&n;r&&this.listeners.push(ot());var i=function(){var n=t.current,i=kt(t.base);t.current===m&&i===t._startLocation||t.transitionTo(i,(function(t){r&&st(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){gt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){vt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(kt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?gt(e):vt(e)}},e.prototype.getCurrentLocation=function(){return kt(this.base)},e}(Lt);function kt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(M(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Dt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=kt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||Ft()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(ot());var r=function(){var e=t.current;Ft()&&t.transitionTo(Nt(),(function(r){n&&st(t.router,r,e,!0),mt||zt(r.fullPath)}))},i=mt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ut(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){zt(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Nt()!==e&&(t?Ut(e):zt(e))},e.prototype.getCurrentLocation=function(){return Nt()},e}(Lt);function Ft(){var t=Nt();return"/"===t.charAt(0)||(zt("/"+t),!1)}function Nt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function jt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ut(t){mt?gt(jt(t)):window.location.hash=t}function zt(t){mt?vt(jt(t)):window.location.replace(jt(t))}var Gt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Mt(t,yt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Lt),Ht=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),X||(e="abstract"),this.mode=e,e){case"history":this.history=new Bt(this,t.base);break;case"hash":this.history=new Dt(this,t.base,this.fallback);break;case"abstract":this.history=new Gt(this,t.base);break;default:0}},Wt={currentRoute:{configurable:!0}};Ht.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Wt.currentRoute.get=function(){return this.history&&this.history.current},Ht.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Bt||n instanceof Dt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;mt&&i&&"fullPath"in t&&st(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ht.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Ht.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Ht.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Ht.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ht.prototype.onError=function(t){this.history.onError(t)},Ht.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Ht.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Ht.prototype.go=function(t){this.history.go(t)},Ht.prototype.back=function(){this.go(-1)},Ht.prototype.forward=function(){this.go(1)},Ht.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ht.prototype.resolve=function(t,e,n){var r=H(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ht.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ht.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Ht.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ht.prototype,Wt);var Vt=Ht;function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ht.install=function t(e){if(!t.installed||W!==e){t.installed=!0,W=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",x),e.component("RouterLink",Z);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ht.version="3.6.5",Ht.isNavigationFailure=Mt,Ht.NavigationFailureType=yt,Ht.START_LOCATION=m,X&&window.Vue&&window.Vue.use(Ht);var Qt="3.6.5"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkRouter=e.routerInit=void 0;var r=c(n(13)),i=c(n(205)),o=c(n(302)),s=c(n(327)),a=c(n(185));function c(t){return t&&t.__esModule?t:{default:t}}e.routerInit=function(t,e){var n=t.prototype.push,r=t.prototype.replace;t.prototype.push=function(t,e,r){return e||r?n.call(this,t,e,r):n.call(this,t).catch((function(t){return t}))},t.prototype.replace=function(t,e,n){return e||n?r.call(this,t,e,n):r.call(this,t).catch((function(t){return t}))};var i=l(t,e);return u(i),i};var l=e.pkRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[{path:"/404",component:i.default},{path:"/noAllow",component:o.default},{path:"/rkWebCoreSetting",component:a.default},{path:"/refresh",component:s.default,hidden:!0}],c=function(){return new t((0,r.default)({},e,{mode:"history",routes:n,scrollBehavior:function(t,e,n){return n||{x:0,y:0}}}))},l=c(),u=c();return l.matcher=u.matcher,l},u=function(t){t.onError((function(e){console.log("\n *************************ROUTER ERROR BEGIN**********************************\n\n "+e+"\n\n *************************ROUTER ERROR FINAL**********************************\n ");var n=e.message.match(/Loading chunk (\w)+ failed/g),r=t.history.pending.fullPath;n&&t.replace(r).then()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},s=n(17);e.default={render:function(){var t=arguments[0];return t("a-result",{attrs:{status:"404",title:"404","sub-title":"Sorry, the page you visited does not exist."}},[t("a-button",{attrs:{type:"primary"},slot:"extra",on:{click:this.toHome}},["Back Home"])])},methods:{toHome:function(){(0,o.default)(this.$store.state.user.addRouters[0].children)?(0,s.logOut)():this.$router.replace({path:"/"})}}}},function(t,e,n){n(74),n(34),n(51),n(209),n(213),n(214),t.exports=n(6).Promise},function(t,e,n){"use strict";var r=n(208),i=n(137),o=n(48),s=n(37);t.exports=n(89)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r,i,o,s,a=n(56),c=n(15),l=n(26),u=n(72),h=n(9),d=n(20),f=n(57),p=n(99),m=n(62),g=n(138),v=n(139).set,y=n(211)(),_=n(100),b=n(140),x=n(212),w=n(141),S=c.TypeError,M=c.process,A=M&&M.versions,C=A&&A.v8||"",E=c.Promise,T="process"==u(M),I=function(){},P=i=_.f,L=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(16)("species")]=function(t){t(I,I)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==C.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(i||(2==t._h&&D(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&(u.exit(),s=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=R(n))?o.call(n,c,l):c(n)):l(r)}catch(t){u&&!s&&u.exit(),l(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)}))}},B=function(t){v.call(c,(function(){var e,n,r,i=t._v,o=k(t);if(o&&(e=b((function(){T?M.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=T||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){v.call(c,(function(){var e;T?M.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=R(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,l(N,r,1),l(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,O(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};L||(E=function(t){p(this,E,"Promise","_h"),f(t),r.call(this);try{t(l(N,this,1),l(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(101)(E.prototype,{then:function(t,e){var n=P(g(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(N,t,1),this.reject=l(F,t,1)},_.f=P=function(t){return t===E||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!L,{Promise:E}),n(60)(E,"Promise"),n(142)("Promise"),s=n(6).Promise,h(h.S+h.F*!L,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!L),"Promise",{resolve:function(t){return w(a&&this===s?E:this,t)}}),h(h.S+h.F*!(L&&n(131)((function(t){E.all(t).catch(I)}))),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,s=1;m(t,!1,(function(t){var a=o++,c=!1;n.push(void 0),s++,e.resolve(t).then((function(t){c||(c=!0,n[a]=t,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(15),i=n(139).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(59)(s);t.exports=function(){var t,e,n,l=function(){var r,i;for(c&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){i.call(r,l)};else{var h=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(15).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),i=n(6),o=n(15),s=n(138),a=n(141);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(9),i=n(100),o=n(140);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";(function(t){
147
+ var Q={};void 0!==Q.asn1&&Q.asn1||(Q.asn1={}),Q.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new b(r,16).xor(t).add(b.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Q.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,s=e.DERNull,a=e.DERObjectIdentifier,c=e.DEREnumerated,l=e.DERUTF8String,u=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var x=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":"))throw"undefined key: "+x;if("bool"==x)return new n(t[x]);if("int"==x)return new r(t[x]);if("bitstr"==x)return new i(t[x]);if("octstr"==x)return new o(t[x]);if("null"==x)return new s(t[x]);if("oid"==x)return new a(t[x]);if("enum"==x)return new c(t[x]);if("utf8str"==x)return new l(t[x]);if("numstr"==x)return new u(t[x]);if("prnstr"==x)return new h(t[x]);if("telstr"==x)return new d(t[x]);if("ia5str"==x)return new f(t[x]);if("utctime"==x)return new p(t[x]);if("gentime"==x)return new m(t[x]);if("seq"==x){for(var w=t[x],S=[],M=0;M<w.length;M++){var A=_(w[M]);S.push(A)}return new g({array:S})}if("set"==x){for(w=t[x],S=[],M=0;M<w.length;M++){A=_(w[M]);S.push(A)}return new v({array:S})}if("tag"==x){var C=t[x];if("[object Array]"===Object.prototype.toString.call(C)&&3==C.length){var E=_(C[2]);return new y({tag:C[0],explicit:C[1],obj:E})}var T={};if(void 0!==C.explicit&&(T.explicit=C.explicit),void 0!==C.tag&&(T.tag=C.tag),void 0===C.obj)throw"obj shall be specified for 'tag'.";return T.obj=_(C.obj),new y(T)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Q.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new b(r,2).toString(10),r=""}return e},Q.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},Q.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Q.asn1.DERAbstractString=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Z.lang.extend(Q.asn1.DERAbstractString,Q.asn1.ASN1Object),Q.asn1.DERAbstractTime=function(t){Q.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var a=i.getMilliseconds();if(0!=a){var c=r(String(a),3);s=s+"."+(c=c.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var s=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Z.lang.extend(Q.asn1.DERAbstractTime,Q.asn1.ASN1Object),Q.asn1.DERAbstractStructured=function(t){Q.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Z.lang.extend(Q.asn1.DERAbstractStructured,Q.asn1.ASN1Object),Q.asn1.DERBoolean=function(){Q.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Z.lang.extend(Q.asn1.DERBoolean,Q.asn1.ASN1Object),Q.asn1.DERInteger=function(t){Q.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DERInteger,Q.asn1.ASN1Object),Q.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Q.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Z.lang.extend(Q.asn1.DERBitString,Q.asn1.ASN1Object),Q.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Q.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Q.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Z.lang.extend(Q.asn1.DEROctetString,Q.asn1.DERAbstractString),Q.asn1.DERNull=function(){Q.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Z.lang.extend(Q.asn1.DERNull,Q.asn1.ASN1Object),Q.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new b(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";r=o+r;for(s=0;s<r.length-1;s+=7){var a=r.substr(s,7);s!=r.length-7&&(a="1"+a),n+=e(parseInt(a,2))}return n};Q.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Q.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Z.lang.extend(Q.asn1.DERObjectIdentifier,Q.asn1.ASN1Object),Q.asn1.DEREnumerated=function(t){Q.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Q.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new b(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Z.lang.extend(Q.asn1.DEREnumerated,Q.asn1.ASN1Object),Q.asn1.DERUTF8String=function(t){Q.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Z.lang.extend(Q.asn1.DERUTF8String,Q.asn1.DERAbstractString),Q.asn1.DERNumericString=function(t){Q.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Z.lang.extend(Q.asn1.DERNumericString,Q.asn1.DERAbstractString),Q.asn1.DERPrintableString=function(t){Q.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Z.lang.extend(Q.asn1.DERPrintableString,Q.asn1.DERAbstractString),Q.asn1.DERTeletexString=function(t){Q.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Z.lang.extend(Q.asn1.DERTeletexString,Q.asn1.DERAbstractString),Q.asn1.DERIA5String=function(t){Q.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Z.lang.extend(Q.asn1.DERIA5String,Q.asn1.DERAbstractString),Q.asn1.DERUTCTime=function(t){Q.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Z.lang.extend(Q.asn1.DERUTCTime,Q.asn1.DERAbstractTime),Q.asn1.DERGeneralizedTime=function(t){Q.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Z.lang.extend(Q.asn1.DERGeneralizedTime,Q.asn1.DERAbstractTime),Q.asn1.DERSequence=function(t){Q.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Z.lang.extend(Q.asn1.DERSequence,Q.asn1.DERAbstractStructured),Q.asn1.DERSet=function(t){Q.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Z.lang.extend(Q.asn1.DERSet,Q.asn1.DERAbstractStructured),Q.asn1.DERTaggedObject=function(t){Q.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Z.lang.extend(Q.asn1.DERTaggedObject,Q.asn1.ASN1Object);var X,Y=(X=function(t,e){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}X(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),J=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Y(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?s(t):a.unarmor(t),i=m.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=C(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=C(o,16);var c=i.sub[4].getHexStringValue();this.p=C(c,16);var l=i.sub[5].getHexStringValue();this.q=C(l,16);var u=i.sub[6].getHexStringValue();this.dmp1=C(u,16);var h=i.sub[7].getHexStringValue();this.dmq1=C(h,16);var d=i.sub[8].getHexStringValue();this.coeff=C(d,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var f=i.sub[1].sub[0];e=f.sub[0].getHexStringValue(),this.n=C(e,16),n=f.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=C(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Q.asn1.DERInteger({int:0}),new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e}),new Q.asn1.DERInteger({bigint:this.d}),new Q.asn1.DERInteger({bigint:this.p}),new Q.asn1.DERInteger({bigint:this.q}),new Q.asn1.DERInteger({bigint:this.dmp1}),new Q.asn1.DERInteger({bigint:this.dmq1}),new Q.asn1.DERInteger({bigint:this.coeff})]};return new Q.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Object(o.b)(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Q.asn1.DERSequence({array:[new Q.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Q.asn1.DERNull]}),e=new Q.asn1.DERSequence({array:[new Q.asn1.DERInteger({bigint:this.n}),new Q.asn1.DERInteger({int:this.e})]}),n=new Q.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Q.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Object(o.b)(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(W)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{class:e.prefixCls+"-app-setting-layout"},[r("a-layout-header",{class:e.headerClasses},[r("div",{class:e.prefixCls+"-header-"+e.theme+"-inner "+e.prefixCls+"-header-inner"},[r("div",{class:e.prefixCls+"-app-setting-header-title"},[e._v("个人设置")]),e._v(" "),r("div",{ref:"rightDom",class:e.prefixCls+"-header-right"},[r("div",{class:e.prefixCls+"-header-right-nav"}),e._v(" "),r("div",{class:e.prefixCls+"-header-right-extra"},[r("HeaderInfoGroup",{attrs:{theme:e.theme}}),e._v(" "),r("AppUser",{attrs:{theme:e.theme,userName:e.userNameModify,userAvatar:e.userAvatar}})],1)])])]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-box"},[r("div",{class:e.prefixCls+"-app-setting-tips"},[r("div",{class:e.prefixCls+"-app-setting-tips-left",on:{click:e.goBack}},[r("a-icon",{attrs:{type:"left"}}),e._v("\n 返回\n ")],1),e._v(" "),e.tipsState?r("div",{class:e.prefixCls+"-app-setting-tips-right"},[r("span",[r("a-icon",{staticClass:"tips-icon",attrs:{type:"info-circle",theme:"filled"}}),e._v("\n 你好!您已进入个人设置模块,修改密码将改变全局系统密码\n ")],1),e._v(" "),r("span",[r("a-icon",{staticClass:"close-icon",attrs:{type:"close"},on:{click:function(){return e.tipsState=!1}}})],1)]):e._e()]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting"},[r("div",{class:e.prefixCls+"-app-setting-left"},e._l(e.settingMes,(function(t,n){return r("div",{key:n,class:e.prefixCls+"-app-setting-left-item "+(n===e.settingMes.length-1?"":"mb40")+" "+(e.defaultActive===n?"active":""),on:{click:function(t){return e.hanldeSelect(n)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right"},[0===e.defaultActive?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("个人资料")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("名称")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"nameForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"name"}},[r("a-input",{attrs:{disabled:e.editNameState},model:{value:e.userNameMes.name,callback:function(t){e.$set(e.userNameMes,"name",t)},expression:"userNameMes.name"}})],1)],1),e._v(" "),e.editNameState?r("a-button",{on:{click:function(){e.editNameState=!1}}},[e._v("\n 编辑\n ")]):r("a-button",{attrs:{type:"primary"},on:{click:e.handleEditName}},[e._v(" 保存 ")])],1)]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定手机号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v(e._s(e.phoneMes))]),e._v(" "),1===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",[r("a-form-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1)],1),e._v(" "),r("a-button",{on:{click:function(t){e.delPhone(2)}}},[e._v("更换手机号")])],1):e._e(),e._v(" "),2===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"verCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.phone,callback:function(t){e.$set(e.userNameMes,"phone",t)},expression:"userNameMes.phone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"verCode"}},[r("a-input",{model:{value:e.userNameMes.verCode,callback:function(t){e.$set(e.userNameMes,"verCode",t)},expression:"userNameMes.verCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(3)}}},[e._v(" 下一步 ")])],1)]):e._e(),e._v(" "),3===e.stepPhone?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newPhoneForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",{attrs:{prop:"newPhone"}},[r("a-input",{model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.delPhone(4)}}},[e._v(" 下一步 ")])],1):e._e(),e._v(" "),4===e.stepPhone?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("a-form-model",{ref:"newVerCodeForm",attrs:{model:e.userNameMes,rules:e.rules}},[r("a-form-model-item",[r("a-input",{attrs:{disabled:""},model:{value:e.userNameMes.newPhone,callback:function(t){e.$set(e.userNameMes,"newPhone",t)},expression:"userNameMes.newPhone"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newVerCode"}},[r("a-input",{model:{value:e.userNameMes.newVerCode,callback:function(t){e.$set(e.userNameMes,"newVerCode",t)},expression:"userNameMes.newVerCode"}}),e._v(" "),r("a-button",{attrs:{disabled:0!==e.count},on:{click:e.sendNewPhoneVerCode}},[e._v("\n "+e._s(0!==e.count?"重新发送("+e.count+"s)":"发送验证码")+"\n ")])],1)],1)],1),e._v(" "),r("div",[r("a-button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:e.verPhone}},[e._v(" 绑定 ")]),e._v(" "),r("a-button",{on:{click:e.backStep}},[e._v("返回")])],1)]):e._e()]),e._v(" "),e.userMes.wechatSwitch||e.userMes.wechatgzhSwitch?r("div",[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("绑定第三方账号")]),e._v(" "),r("div",{class:e.prefixCls+"-app-setting-right-name"},[r("div",{class:e.prefixCls+"-app-setting-right-name-label"},[e._v("\n 绑定第三方帐号,可以直接扫码登录系统。如果当前帐号在对应站点处于登录状态,需退出登录后,才能重新绑定。\n ")]),e._v(" "),e.userMes.wechatSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch&&e.wxUnionid?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:function(){t.wechatModel=!0}}},[e._v("\n 解除微信绑定\n ")]),e._v(" "),r("div",{staticClass:"wechat-name"},[e._v(e._s(e.userExt.weChatNickName?"("+e.userExt.weChatNickName+")":""))])],1):e._e(),e._v(" "),e.userMes.wechatSwitch&&!e.wxUnionid||e.userMes.wechatgzhSwitch&&!e.wxUnionid?r("a-space",{attrs:{direction:"vertical"}},[e.userMes.wechatSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addWechat}},[e._v("微信绑定")])],1):e._e(),e._v(" "),e.userMes.wechatgzhSwitch?r("div",{class:e.prefixCls+"-app-setting-right-form"},[r("div",{staticClass:"wechat-button"},[r("wechat-icon")],1),e._v(" "),r("a-button",{on:{click:e.addPublicWechat}},[e._v("绑定")])],1):e._e(),e._v(" "),r("a-modal",{attrs:{visible:e.visible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handleWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"},attrs:{id:"qrcode-container-app-setting"}})]),e._v(" "),r("a-modal",{attrs:{visible:e.publicVisible,footer:!1,centered:"",forceRender:""},on:{cancel:e.handlePublicWechatCancel}},[r("div",{staticClass:"rk-web-core-app-setting-flex-center",staticStyle:{height:"400px"}},[r("img",{attrs:{src:e.wxInfo.qrcodeUrl}})])])],1):e._e()],1)]):e._e()]):e._e(),e._v(" "),1===e.defaultActive?r("div",{class:e.prefixCls+"-app-setting-right-password"},[r("div",{class:e.prefixCls+"-app-setting-right-title"},[e._v("修改密码")]),e._v(" "),r("a-form-model",{ref:"forgetForm",attrs:{model:e.passwordForm,rules:e.passWordRule}},[r("a-form-model-item",{attrs:{prop:"passWord"}},[r("a-input-password",{attrs:{placeholder:"当前密码",type:"password"},model:{value:e.passwordForm.passWord,callback:function(t){e.$set(e.passwordForm,"passWord",t)},expression:"passwordForm.passWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"newPassWord"}},[r("a-input-password",{attrs:{placeholder:"新密码",type:"password"},model:{value:e.passwordForm.newPassWord,callback:function(t){e.$set(e.passwordForm,"newPassWord",t)},expression:"passwordForm.newPassWord"}})],1),e._v(" "),r("a-form-model-item",{attrs:{prop:"repeatPassWord"}},[r("a-input-password",{attrs:{placeholder:"确认新密码",type:"password"},model:{value:e.passwordForm.repeatPassWord,callback:function(t){e.$set(e.passwordForm,"repeatPassWord",t)},expression:"passwordForm.repeatPassWord"}})],1)],1),e._v(" "),r("a-button",{attrs:{type:"primary"},on:{click:e.verPas}},[e._v(" 保存 ")])],1):e._e()])])]),e._v(" "),r("a-modal",{attrs:{visible:e.wechatModel,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.delWeChat,cancel:function(){e.wechatModel=!1}}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示")],1),e._v(" "),r("div",{staticClass:"modal-item"},[e._v("您将解绑微信账号,解除后无法使用此微信号登录")])]),e._v(" "),r("a-modal",{attrs:{visible:e.reloadState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:function(t){return e.delPhone(1)},cancel:function(){e.reloadState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改绑定手机号,确定需要重新登录,是否继续?")])],1),e._v(" "),r("a-modal",{attrs:{visible:e.reloadPasState,centered:"",dialogClass:e.prefixCls+"-app-setting-wechat-modal"},on:{ok:e.savePass,cancel:function(){e.reloadPasState=!1}}},[r("a-icon",{attrs:{type:"exclamation-circle",theme:"filled"}}),e._v(" 提示\n "),r("div",{staticClass:"modal-item"},[e._v("您将修改密码,确定需要重新登录,是否继续?")])],1)],1)},i=[]},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":t.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[t.customClass,{"is-fullscreen":t.fullscreen}],style:{backgroundColor:t.background||""}},[n("div",{staticClass:"el-loading-spinner"},[t.spinner?n("i",{class:t.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),t._v(" "),t.text?n("p",{staticClass:"el-loading-text"},[t._v(t._s(t.text))]):t._e()])])])},i=[]},function(t,e,n){"use strict";n.r(e);var r=n(120),i=n(80);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ThreeLayer=e.BaseObject=e.three=e.maptalks=e.Loading=e.amapLayer=e.getCache=e.setCache=e.IepNav=e.AppNav=e.Sidebar=e.HeaderInfoGroup=e.AppExternal=e.AppLogo=e.iamGoToPage=e.microApp=e.AppUser=e.RkVersionList=e.BlockView=e.appTrack=e.frameInterface=e.Request=e.GMap=e.AppLayout=e.install=e.toType=void 0;var r=J(n(69)),i=J(n(13)),o=J(n(23)),s=J(n(39)),a=J(n(40)),c=J(n(4)),l=J(n(134)),u=J(n(50)),h=J(n(135)),d=n(136),f=J(n(203)),p=n(204),m=n(342),g=J(m),v=n(344),y=n(17),_=J(y),b=n(378),x=n(43),w=J(n(116)),S=J(n(379)),M=J(n(384)),A=J(n(385)),C=J(n(386)),E=J(n(387)),T=J(n(78)),I=J(n(182)),P=J(n(179));n(388);var L=n(115),R=J(L),O=n(407),B=J(O),k=J(n(184)),D=J(n(408)),F=J(n(409)),N=J(n(410)),j=J(n(22)),U=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(12)),z=J(n(55)),G=J(n(183)),H=J(n(411)),W=J(n(414)),V=n(415),Z=n(65),Q=n(8),X=n(5),Y=J(n(164));function J(t){return t&&t.__esModule?t:{default:t}}var q=e.toType=function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},K={appId:"rk-web-core",loadView:void 0,store:{},filters:[],vueConfig:{},authToken:void 0,svgFile:"https://at.alicdn.com/t/font_614860_f0motpq03e.js",isNeedMapTalks:!1,mapOptions:{},routerOptions:{},oauthType:"iam",microOptions:{},extension:!1,axiosAuthKey:void 0,depositRouter:!0,routesWhiteListFirstIsRedirect:!1,requestLoading:!1,iamJumpIsFullPath:!1,routes:[],routesWhiteList:[],requestError:function(){},routerTrusteeship:!0,dynamicStructRouter:function(t,e,n,r,i){},requestResponseDataFunc:null,requestRequestDataFunc:null},$=function(){function t(e,n){(0,s.default)(this,t),e&&n&&(this.vueInstance=e,this.basicRouter=f.default,this.initOptions(n))}return(0,a.default)(t,[{key:"initOptions",value:function(t){var e=(0,o.default)(K);this.basicOptions=(0,h.default)((0,x.mergeProps)(K,t),e),window.__RK_WEB_CORE_APPID__=this.basicOptions.appId,window.__RK_WEB_CORE_AXIOS_AUTH_KEY=this.basicOptions.axiosAuthKey,this.storeInstance=this.basicOptions.store,this.useInstance(),this.filterInstance(),this.vueConfigPick()}},{key:"getRequestInstance",value:function(){return _.default}},{key:"useInstance",value:function(){var t=this;if(this.vueInstance.use(this.basicRouter),this.vueInstance.use(D.default),this.storeInstance.registerModule("user",g.default),this.routerInstance=(0,p.routerInit)(this.basicRouter,this.basicOptions.routerOptions),this.vueInstance.prototype.$isExtension=this.basicOptions.extension,this.vueInstance.prototype.$getDb=G.default.getLocalRecord,window.$requestError=this.basicOptions.requestError,window.$requestLoading=this.basicOptions.requestLoading,window.$requestResponseDataFunc=this.basicOptions.requestResponseDataFunc,window.$requestRequestDataFunc=this.basicOptions.requestRequestDataFunc,this.vueInstance.prototype.$saveDb=G.default.saveIndexDb,this.vueInstance.prototype.$logout=y.logOut,this.vueInstance.prototype.$authorize=y.authorize,this.vueInstance.prototype.$iamGoToPage=x.iamGoToPage,this.vueInstance.prototype.$treeRouter=V.treeRouter,this.vueInstance.prototype.$dynamicChangeRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"replace",n=j.default.parse(window.location.search.replace("?",""));if("object"===q(t)){var r=j.default.stringify((0,i.default)(n,t)),o=window.location,s=o.origin,a=o.pathname,c=s+a;"replace"===e?window.history.replaceState("",document.title,c+"?"+r):window.history.pushState("",document.title,c+"?"+r)}},this.vueInstance.prototype.$clearDynamicRouteParams=function(){var t=window.location,e=t.origin+t.pathname;window.history.replaceState("",document.title,e)},this.vueInstance.prototype.$getDynamicRouteParams=function(){return j.default.parse(window.location.search.replace("?",""))},this.tempPkRouter=(0,p.pkRouter)(this.basicRouter,this.basicOptions.routerOptions),!(0,c.default)(this.basicOptions.routesWhiteList)){var e=this.basicOptions.routesWhiteList.map((function(e){return{path:e,component:t.basicOptions.loadView?t.basicOptions.loadView(e):(0,x.loadView)(e,t.basicOptions.routerPathPrefix,t.basicOptions.routerContext)}}));this.tempPkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(e)))}this.vueInstance.prototype.$pkRouter=this.tempPkRouter,this.vueInstance.prototype.$basicOptions=this.basicOptions;var n=[];if(window.__MICRO_APP_ENVIRONMENT__?d.version.includes("0.13")&&(n=X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST)):n=d.version.includes("0.13")&&X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST)?X.localStore.get(this.basicOptions.appId+"_"+m.MENU_LIST):X.localStore.get(""+m.MENU_LIST),!(0,c.default)(n))if(this.storeInstance.commit("user/SET_MENU_LIST",n),this.basicOptions.routerTrusteeship)(0,Z.setAsyncRoutes)(this.routerInstance,this.storeInstance,n,p.pkRouter,this.basicOptions);else if((0,u.default)(this.basicOptions.dynamicStructRouter)){var o=this.basicOptions.dynamicStructRouter((0,Z.businessSystemToTree)(n));if(!o&&!(0,l.default)(o))return console.error("Routing menu construct build failed");p.pkRouter,this.routerInstance.addRoutes([].concat((0,r.default)(o),[x.redirectRouter,x.noAllowRouter])),this.storeInstance.commit("user/SET_ROUTERS",o),this.storeInstance.commit("user/SET_APP_ROUTERS",o)}else console.error("basicOptions.dynamicStructRouter must is a function");(0,v.registerPermission)(this,this.tempPkRouter),this.basicOptions.isNeedMapTalks&&this.loadAMap()}},{key:"loadAMap",value:function(){var t=this;this.routerInstance.onReady((function(){(0,R.default)((0,x.mergeProps)({svgFile:t.basicOptions.svgFile,zoom:9.6},t.basicOptions.mapOptions))}))}},{key:"filterInstance",value:function(){var t=this;(0,o.default)(this.basicOptions.filters).forEach((function(e){t.vueInstance.filter(e,t.basicOptions.filters[e])}))}},{key:"vueConfigPick",value:function(){var t=this;(0,o.default)(this.basicOptions.vueConfig).forEach((function(e){t.vueInstance.config[e]=t.basicOptions.vueConfig[e]}))}},{key:"mount",value:function(){return(0,N.default)("RK-WEB-CORE",d.version),{version:d.version,router:this.routerInstance,store:this.storeInstance,resetRouter:(0,p.pkRouter)(this.basicRouter),request:this.getRequestInstance(),axios:w.default,vueInstance:this.vueInstance,bootstrap:(0,b.noLogin)(this.routerInstance,this.basicOptions.authToken),action:D.default,utils:(0,F.default)(this.storeInstance,this.routerInstance,this.vueInstance)}}},{key:"loadMicro",value:function(){return{micro:B.default,microOne:O.microOne,microTwo:O.microTwo,microThree:O.microThree}}}]),t}(),tt=function(t){t.use(S.default),t.use(M.default),t.use(H.default),t.use(A.default),t.use(C.default),t.use(E.default),t.use(I.default),t.use(P.default)};"undefined"!=typeof window&&window.Vue&&tt(window.Vue),S.default.install=function(t){t.component(S.default.name,S.default)},M.default.install=function(t){t.component("AppUser",M.default)},H.default.install=function(t){t.component(H.default.name,H.default)},A.default.install=function(t){t.component("AppLogo",A.default)},C.default.install=function(t){t.component("AppExternal",C.default)},T.default.install=function(t){t.component("Sidebar",T.default)},E.default.install=function(t){t.component("HeaderInfoGroup",E.default)},I.default.install=function(t){t.component("AppNav",I.default)},P.default.install=function(t){t.component("IepNav",P.default)};e.install=tt,e.AppLayout=S.default,e.GMap=L.GMap,e.Request=_.default,e.frameInterface=U,e.appTrack=function(t,e){return(0,z.default)(t,e,null,!1)},e.BlockView=W.default,e.RkVersionList=H.default,e.AppUser=M.default,e.microApp=k.default,e.iamGoToPage=x.iamGoToPage,e.AppLogo=A.default,e.AppExternal=C.default,e.HeaderInfoGroup=E.default,e.Sidebar=T.default,e.AppNav=I.default,e.IepNav=P.default,e.setCache=Q.setCache,e.getCache=Q.getCache,e.amapLayer=L.amapLayer,e.Loading=Y.default,e.maptalks=L.maptalks,e.three=L.three,e.BaseObject=L.BaseObject,e.ThreeLayer=L.ThreeLayer,e.default=function(t,e){return new $(t,e)}},function(t,e,n){t.exports={default:n(187),__esModule:!0}},function(t,e,n){t.exports=!n(18)&&!n(35)((function(){return 7!=Object.defineProperty(n(90)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){t.exports=n(27)},function(t,e,n){var r=n(36),i=n(37),o=n(191)(!1),s=n(94)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(15).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36),i=n(38),o=n(94)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(24);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(48),i=n(16)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(16)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){var r=n(9),i=n(6),o=n(35);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",s)}},function(t,e,n){t.exports={default:n(201),__esModule:!0}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e,r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();function o(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function s(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var a=Object.prototype,c=a.hasOwnProperty,l=a.toString,u=i.Symbol,h=a.propertyIsEnumerable,d=u?u.isConcatSpreadable:void 0,f=Math.max;function p(t){return g(t)||function(t){return function(t){return v(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?l.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}(t)}(t)&&c.call(t,"callee")&&(!h.call(t,"callee")||"[object Arguments]"==l.call(t))}(t)||!!(d&&t&&t[d])}function m(t){if("string"==typeof t||function(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==l.call(t)}(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var g=Array.isArray;function v(t){return!!t&&"object"==typeof t}var y,_,b=(y=function(t,e){return null==t?{}:function(t,e){return function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=t[s];n(a,s)&&(o[s]=a)}return o}(t=Object(t),e,(function(e,n){return n in t}))}(t,function(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=p),o||(o=[]);++a<c;){var l=e[a];n>0&&r(l)?n>1?t(l,n-1,r,i,o):s(o,l):i||(o[o.length]=l)}return o}(e,1),m))},_=f(void 0===_?y.length-1:_,0),function(){for(var t=arguments,e=-1,n=f(t.length-_,0),r=Array(n);++e<n;)r[e]=t[_+e];e=-1;for(var i=Array(_+1);++e<_;)i[e]=t[e];return i[_]=r,o(y,this,i)});t.exports=b}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.version="0.15.5"},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(24),i=n(57),o=n(16)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||null==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(26),a=n(210),c=n(127),l=n(90),u=n(15),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){a("function"==typeof t?t:Function(t),e)},r(g),g},f=function(t){delete v[t]},"process"==n(59)(h)?r=function(t){h.nextTick(s(y,t,1))}:m&&m.now?r=function(t){m.now(s(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):r="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(24),i=n(20),o=n(100);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(15),i=n(6),o=n(19),s=n(18),a=n(16)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(42)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,n){"use strict";var r=n(42)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},function(t,e,n){"use strict";var r=n(103),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],s=i.obj[i.prop],a=Object.keys(s),c=0;c<a.length;++c){var l=a[c],u=s[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:s,prop:l}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=s[u]:u<2048?c+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?c+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=a(e,r)),o(e)&&o(n)?(n.forEach((function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e}),s)}}},function(t,e,n){"use strict";var r=n(19).f,i=n(92),o=n(101),s=n(26),a=n(99),c=n(62),l=n(89),u=n(137),h=n(142),d=n(18),f=n(104).fastKey,p=n(105),m=d?"_s":"size",g=function(t,e){var n,r=f(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t((function(t,r){a(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[m]=0,null!=r&&c(r,n,t[l],t)}));return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(t){p(this,e);for(var n,r=s(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=f(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,(function(t,n){this._t=p(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(15),i=n(9),o=n(104),s=n(35),a=n(27),c=n(101),l=n(62),u=n(99),h=n(20),d=n(60),f=n(19).f,p=n(236)(0),m=n(18);t.exports=function(t,e,n,g,v,y){var _=r[t],b=_,x=v?"set":"add",w=b&&b.prototype,S={};return m&&"function"==typeof b&&(y||w.forEach&&!s((function(){(new b).entries().next()})))?(b=e((function(e,n){u(e,b,t,"_c"),e._c=new _,null!=n&&l(n,v,e[x],e)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in w)||y&&"clear"==t||a(b.prototype,t,(function(n,r){if(u(this,b,t),!e&&y&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i}))})),y||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=g.getConstructor(e,t,v,x),c(b.prototype,n),o.NEED=!0),d(b,t),S[t]=b,i(i.G+i.W+i.F,S),y||g.setStrong(b,t,v),b}},function(t,e,n){var r=n(59);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(72),i=n(240);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){"use strict";var r=n(9);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";var r=n(9),i=n(57),o=n(26),s=n(62);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return i(this),(e=void 0!==c)&&i(c),null==t?new this:(n=[],e?(r=0,a=o(c,arguments[2],2),s(t,!1,(function(t){n.push(a(t,r++))}))):s(t,!1,n.push,n),new this(n))}})}},function(t,e,n){var r=n(52),i=r.slice,o=r.pluck,s=r.each,a=r.bind,c=r.create,l=r.isList,u=r.isFunction,h=r.isObject;t.exports={createStore:f};var d={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return f.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return f(this.storage,this.plugins,t)}};function f(t,e,n){n||(n=""),t&&!l(t)&&(t=[t]),e&&!l(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",f=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p=c({_namespacePrefix:r,_namespaceRegexp:f,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=i(arguments,0),r=this;function o(){if(n)return s(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}var a=[o].concat(e);return t.apply(r,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(l(t))s(t,(function(t){e._addPlugin(t)}));else if(!o(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!u(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!h(n))throw new Error("Plugins must return an object of function properties");s(n,(function(n,r){if(!u(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},d,{plugins:[]});return p.raw={},s(p,(function(t,e){u(t)&&(p.raw[e]=a(p,t))})),s(t,(function(t){p._addStorage(t)})),s(e,(function(t){p._addPlugin(t)})),p}},function(t,e,n){var r=n(52).Global;function i(){return r.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){var r=n(52),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!l(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;s.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:c,clearAll:function(){a((function(t,e){c(e)}))}};var s=i.document;function a(t){for(var e=s.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]);t(unescape(r[1]),i)}}function c(t){t&&l(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function l(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},function(t,e,n){var r=n(52).Global;function i(){return r.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){t.exports={default:n(251),__esModule:!0}},function(t,e,n){var r=n(18),i=n(49),o=n(37),s=n(61).f;t.exports=function(t){return function(e){for(var n,a=o(e),c=i(a),l=c.length,u=0,h=[];l>u;)n=c[u++],r&&!s.call(a,n)||h.push(t?[n,a[n]]:a[n]);return h}}},function(t,e,n){"use strict";e.__esModule=!0;var r=o(n(255)),i=o(n(53));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(Array.isArray(t))return t;if((0,r.default)(Object(t)))return function(t,e){var n=[],r=!0,o=!1,s=void 0;try{for(var a,c=(0,i.default)(t);!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw s}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e){var n,r,i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,c=s.call(Object),l=o.toString,u=(n=Object.getPrototypeOf,r=Object,function(t){return n(r(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=l.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=u(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},function(t,e,n){t.exports={default:n(258),__esModule:!0}},function(t,e,n){var r=n(126),i=n(96).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r,i,o,s,a,c,l,u;t.exports=(u=n(2),i=(r=u).lib,o=i.WordArray,s=i.Hasher,a=r.algo,c=[],l=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=0;l<80;l++){if(l<16)c[l]=0|t[e+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+a+c[l];h+=l<20?1518500249+(i&o|~i&s):l<40?1859775393+(i^o^s):l<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=s._createHelper(l),r.HmacSHA1=s._createHmacHelper(l),u.SHA1)},function(t,e,n){var r;t.exports=(r=n(2),n(75),function(){var t=r,e=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,s=t.algo;function a(){return i.create.apply(i,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=a()}();var u=s.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=o.high,y=o.low,_=s.high,b=s.low,x=a.high,w=a.low,S=u.high,M=u.low,A=h.high,C=h.low,E=d.high,T=d.low,I=f,P=p,L=m,R=g,O=v,B=y,k=_,D=b,F=x,N=w,j=S,U=M,z=A,G=C,H=E,W=T,V=0;V<80;V++){var Z,Q,X=l[V];if(V<16)Q=X.high=0|t[e+2*V],Z=X.low=0|t[e+2*V+1];else{var Y=l[V-15],J=Y.high,q=Y.low,K=(J>>>1|q<<31)^(J>>>8|q<<24)^J>>>7,$=(q>>>1|J<<31)^(q>>>8|J<<24)^(q>>>7|J<<25),tt=l[V-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=l[V-7],st=ot.high,at=ot.low,ct=l[V-16],lt=ct.high,ut=ct.low;Q=(Q=(Q=K+st+((Z=$+at)>>>0<$>>>0?1:0))+rt+((Z+=it)>>>0<it>>>0?1:0))+lt+((Z+=ut)>>>0<ut>>>0?1:0),X.high=Q,X.low=Z}var ht,dt=F&j^~F&z,ft=N&U^~N&G,pt=I&L^I&O^L&O,mt=P&R^P&B^R&B,gt=(I>>>28|P<<4)^(I<<30|P>>>2)^(I<<25|P>>>7),vt=(P>>>28|I<<4)^(P<<30|I>>>2)^(P<<25|I>>>7),yt=(F>>>14|N<<18)^(F>>>18|N<<14)^(F<<23|N>>>9),_t=(N>>>14|F<<18)^(N>>>18|F<<14)^(N<<23|F>>>9),bt=c[V],xt=bt.high,wt=bt.low,St=H+yt+((ht=W+_t)>>>0<W>>>0?1:0),Mt=vt+mt;H=z,W=G,z=j,G=U,j=F,U=N,F=k+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+xt+((ht+=wt)>>>0<wt>>>0?1:0))+Q+((ht+=Z)>>>0<Z>>>0?1:0))+((N=D+ht|0)>>>0<D>>>0?1:0)|0,k=O,D=B,O=L,B=R,L=I,R=P,I=St+(gt+pt+(Mt>>>0<vt>>>0?1:0))+((P=ht+Mt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+P,r.high=f+I+(p>>>0<P>>>0?1:0),g=i.low=g+R,i.high=m+L+(g>>>0<R>>>0?1:0),y=o.low=y+B,o.high=v+O+(y>>>0<B>>>0?1:0),b=s.low=b+D,s.high=_+k+(b>>>0<D>>>0?1:0),w=a.low=w+N,a.high=x+F+(w>>>0<N>>>0?1:0),M=u.low=M+U,u.high=S+j+(M>>>0<U>>>0?1:0),C=h.low=C+G,h.high=A+z+(C>>>0<G>>>0?1:0),T=d.low=T+W,d.high=E+H+(T>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),r.SHA512)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(296)),i=o(n(300));function o(t){return t&&t.__esModule?t:{default:t}}e.default={install:function(t){t.use(r.default)},directive:r.default,service:i.default}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(297),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupManager=void 0;var r=c(n(21)),i=c(n(168)),o=c(n(298)),s=c(n(299)),a=n(77);function c(t){return t&&t.__esModule?t:{default:t}}var l=1,u=void 0;e.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+l++,o.default.register(this._popupId,this)},beforeDestroy:function(){o.default.deregister(this._popupId),o.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(t){var e=this;if(t){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){e.open()})))}else this.close()}},methods:{open:function(t){var e=this;this.rendered||(this.rendered=!0);var n=(0,i.default)({},this.$props||this,t);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,a.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,a.getStyle)(document.body,"paddingRight"),10)),u=(0,s.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,c=(0,a.getStyle)(document.body,"overflowY");u>0&&(i||"scroll"===c)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+u+"px"),(0,a.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,a.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1,n=arguments.length;e<n;e++){var r=arguments[e]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(t[i]=o)}}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||!e)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,e&&e.apply(null,arguments))};r?t.$once("after-leave",o):t.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(307)),i=s(n(310)),o=s(n(311));function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,o.default)(t)||"[object Object]"!=(0,i.default)(t))return!1;if(null===(0,r.default)(t))return!0;for(var e=t;null!==(0,r.default)(e);)e=(0,r.default)(e);return(0,r.default)(t)===e}},function(t,e,n){t.exports={default:n(328),__esModule:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WindIcon",render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1646186453304",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1115",width:"200",height:"200"},class:"rk-web-core-normal-icon"},[t("path",{attrs:{d:"M489.728 787.456a32 32 0 0 0 58.848 0L760.16 296.128a32 32 0 0 0-41.536-42.144l-200 82.368-195.584-84.064a32 32 0 0 0-42.08 41.856z","p-id":"1116"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"skin",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"}},[t("path",{attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=u(n(25)),o=u(n(330)),s=u(n(331)),a=u(n(332)),c=u(n(333)),l=u(n(111));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Skin",props:{visible:i.default.bool.def(!1)},data:function(){return{localVisible:!1,colorList:c.default}},computed:{skin:function(){return this.$store.state.user.skin}},watch:{visible:{handler:function(t){this.localVisible=t},deep:!0,immediate:!0}},methods:{onClose:function(){this.$emit("close")},changeSkin:function(t){this.$store.commit("user/SET_SKIN",{style:this.skin.style===t?"":t,color:this.skin.color}),this.onClose()},changeColor:function(t){document.documentElement.style.setProperty("--antd-wave-shadow-color",t),document.documentElement.style.setProperty("--antd-wave-shadow-color-o",l.default.formatColor(t,.1)),this.$store.commit("user/SET_SKIN",{color:t,style:this.skin.style}),this.onClose()}},render:function(){var t=this,e=arguments[0],n={props:{wrapClassName:r.prefixCls+"-drawer",title:"",placement:"right",closable:!1,visible:this.localVisible},on:{close:function(){return t.onClose()}}},i=this.colorList.map((function(n){return e("a-tooltip",[e("template",{slot:"title"},[n.key]),e("div",{class:[r.prefixCls+"-skin-color-item",t.skin.color===n.color?r.prefixCls+"-skin-active":null],on:{click:function(){return t.changeColor(n.color)}}},[e("span",{style:{backgroundColor:n.color}}),t.skin.color===n.color?e("div",{class:r.prefixCls+"-skin-color-mask"},[e("a-icon",{attrs:{type:"check"}})]):null])])}));return e("a-drawer",n,[e("div",{class:"theme"},[e(o.default,{attrs:{title:"主题风格设置",closable:!0},on:{close:function(){return t.onClose()}}},[e("div",{class:r.prefixCls+"-skin-style"},[e("div",{on:{click:function(){return t.changeSkin("dark")}},class:[r.prefixCls+"-skin-style-item","dark"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(s.default),"dark"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["暗色"])]),e("div",{on:{click:function(){return t.changeSkin("light")}},class:[r.prefixCls+"-skin-style-item","light"===this.skin.style?r.prefixCls+"-skin-active":null]},[e("div",{class:r.prefixCls+"-skin-style-item-icon"},[e(a.default),"light"===this.skin.style?e("div",{class:r.prefixCls+"-skin-style-mask"},[e("a-icon",{attrs:{type:"check"}})]):null]),e("span",["亮色"])])])]),e(o.default,{attrs:{title:"系统主色设置"}},[e("div",{class:r.prefixCls+"-skin-color"},[i])])])])}}},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=m(n(14)),i=n(3),o=m(n(113)),s=m(n(4)),a=m(n(114)),c=m(n(67)),l=m(n(178)),u=m(n(68)),h=m(n(55)),d=m(n(111)),f=m(n(179)),p=m(n(182));function m(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapAndBasicHeader",inject:["slotsList","propsList"],props:{theme:{type:String,default:"light"},fixed:{type:Boolean,default:!1},navList:{type:Array,default:function(){return[]}}},data:function(){return{currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},computed:{skin:function(){return this.$store.state.user.skin.color}},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=o>-1?o:0,t.$store.commit("user/SET_NAV_INDEX",t.currentIndex)}}),{immediate:!0,deep:!0})},watch:{skin:{handler:function(t){this.propsList.nav&&this.renderNavActive(t,d.default.toNum3(t))},immediate:!0}},methods:{setChildrenWidthAndResize:function(){if(this.navList&&!(0,s.default)(this.navList)){var t=this.navList.filter((function(t){return 1===t.type}));this.menuItemSizes=t,this.overflowedItems=[]}},onResize:function(t){var e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var i=this.$store.state.user.skin;i&&!(0,s.default)(i.color)?this.renderNavActive(i.color,d.default.toNum3(i.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,s.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){l.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,o){var s="dark"!==t.theme?(0,r.default)([i.prefixCls+"-header-right-nav-item",n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,r.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,o)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,h.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){n.propsList.nav&&l.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,h.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.theme,n=this.fixed,s=this.slotsList,l=this.propsList,h=(0,r.default)([i.prefixCls+"-header",i.prefixCls+"-header-"+e,i.prefixCls+"-header-"+l.navVersion+"-"+e,i.prefixCls+"-header-"+l.navVersion,i.prefixCls+"-header-"+l.navVersion+"-"+l.navTheme,i.prefixCls+"-header-"+l.navTheme,n?i.prefixCls+"-header-fixed":"",i.prefixCls+"-header-inner-"+this.currentIndex]);return t("a-layout-header",{class:h},[t("div",{class:[i.prefixCls+"-header-"+e+"-inner",i.prefixCls+"-header-inner"]},[s.logo?s.logo:t(o.default,{attrs:{prefix:"basic",theme:e}}),s.prefix,t("div",{class:i.prefixCls+"-header-right",ref:"rightDom"},[l.nav?"v1"===l.navVersion?t(f.default,{attrs:{theme:e}}):t(p.default,{attrs:{theme:e,mode:l.navTheme}}):null,l.right?t("div",{class:i.prefixCls+"-header-right-extra"},[s.header,t(a.default,{attrs:{theme:e}}),s.extends,t(c.default,{attrs:{theme:e}}),s.user?s.user:t(u.default,{attrs:{theme:e}})]):null]),s.suffix]),this.slotsList.headerBottom])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(13)),i=u(n(30)),o=u(n(31)),s=n(8),a=n(5),c=n(12),l=u(n(14));function u(t){return t&&t.__esModule?t:{default:t}}var h,d="data:image/webp;base64,UklGRk4KAABXRUJQVlA4WAoAAAAwAAAAPwAAPwAASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANkFMUEhMAwAADaAtybZp26rW51rHuLZt27Zt27Zt27Zt27bv4eY11+j9YWnvOX4gIiaA9iUcTTHTDAvNM8vk1QHwV8dnn37y9dc9jsmDflc4E6+58tSJ5kMmm2vueSatjHv20Y6Qop+MxHSbb0NAuKQ6IsImnHHO1Ra+79ofMbw/LMW8uyxMBCEzmkrCEVPsvsZH178u8z6TasP2XwPcJNo2IHyadTd56aJei+gbkVY8knAq9LXkMeKwJc54xoi+MPfDlyMVRn8akZY49vUz3Ly94v8JziC8Sn/LfNgxExzVY96O/T/VebgZJbRIe6584Cjz1qw2xSmkCuWU0ppbHNZh3orSROeRBlBWWVpru326Fc0UOok0gBIXac0Vjvtf0cyPxCuUuvC9hp3TzGorLY4ouTjxzUfM65QmPIhUKV0afNglPYq62Is0gNIXaZmFL6mz2kIrYWRoHP7M2+bADniRg3zElle7rDbj/GS74edfCDYlVfOwNOVSD+ATb4mRqbHPXeNYk8hGMc3CD7EaoVwIrfTcVBOR9XzdMwnlI6YZNhNeZOQTTjofoXwIzbUgImMx9yy5zTpRbpMMJfOByq0g+1Bm//0+PLeeiUIZhbq+njWzrz6cP5tQgw8WMDIVIL76YcIJQqULhQCi+HXUt5qpfCFEA436c1zXPJReNA19As+tpNK1aDwLDy8yVSiTsI43sM6793DLxO0qDO5YYWq3LLza+TRyffnhpuQZehglFDdsNEEog6j8dRNy3N559lC3DNxOx2rUX7HI4qkonVfffJ+Gbh0XHjUsVLIwPxWr1eH22LtHZ3AqSjQOzph491SUKlXv+JoWQ7WjV18lFSVKA16+D3kzwrr222nVZCpJ+ICXr8ASrbqNOmr7VRyVw6svX4XVaN2LH/Zfe9dwK4Grcv39WI12k/UcPslxg5Opn8KrfsoorEb7Lj/9reMWDcf6wbHinROREn0Z2ONnLXn00HCpjyIq/Hvy65gHfRthvZc8t+W6U0YEWBsRYbLOR69FVqPv3fTatV+ussfkiHBJDQI3E4y98mnDItGfjvjqlnsXW23uaScoaCqM3376/Jk3kJTo71ARHQ8/0z1kstnnnnuCISL+6P36869++qcAw4O2AVZQOCC8BAAA0BUAnQEqQABAAD5tLJJGpCIhoTAUCwCADYlsALElQX4Bxr0MfC+aBS/8jsxxs4Vvie+aT7APMh50e5AewtvJHlLXe7+LQSHh39GDPb9SewP+r/pAey30AP1PSO88Jm4eK/divBnLnHrz4CVEn6AxAZjff34I/VSZtrOPtclJYA9AbN52d961SZIkPoPsASAVkvDN9uDDdCn9QGtBQgHej972sJ4ZgA87s4gft5odSw1cDTkFuVIAAP7/OkF2JfyXlUqa8sMsM+cPy8TEO+WtIS+RueaS3TlAr6SNyT/4tfZoEnBzFJz3oxBBvWuXuNpy35PSR/7rhoh0m4xGhyrgqGk+YTGhqIx6dJnMP0/AonghGybbxS+bXsXUU0jdC7adMIFiaAX2SHV37RJkHsmMzcCozzVHVKL5IkRjAJ2jz2NZ3skOvfXA6Ik3OYAhwHkU4bFqp7C5OzpfS+TwA4Z0728VAU2m9uSn8vghqhi1+NIbM5MGl+7NelaUTqvMcT7NMXlH8CpkVExt/N+h11LZy5V9ypUla0IU2j4cQlfnQ+8VzGqtCgxQfxSaV3Z6iJEL8uot3FvIdXJVO0pz1eZT2GKMMDO4E4OHWr0rO5JaZaUIZ4hEACBSHzXfiGelUmyTY7sGf2APWkZs3cKmAoo5zqyWRvo8b73XHT89H76av1P5E8f3w9FFpn3y3ip+fLllYa8uWygj0CR8w8DXN7xUyWVR65gRyo/0Y//54yK/fs8xAW3WtpLgrBPj8Z1R3PaHxsoLC9hcGyiAWW3vi7ZwIex/bknwePmjwbtZkemX9qrWm6OoGs3rydXgLH8PBYZgy06DLr7t3DeMTYudDqk64DUviNPlSIw/QdBTtUu4gCNWGUN1AvNI20NKcVG8AROIBdfNw/EKl5ndo/bdzGLVh5Z/5x6B5aEa7li35K+gIFTUCRY28rbqscfWSIpOKXiOHk8sqM5F/xHcabsuPE8yEDhm3PPPD6r/M2ZJfn/28zq0t7kF0fAz/+/k/01qEldX/pr/3je/h4f/HbtG20fn7/5+P9V/8c0y1BE/9mhkOGb3Kgv4hFi8X/Zjf+qjNsAP/e+/721/qdBPqYg2KDenvxcU8fKcOEhmWP0fGru4dWmba6XnQqvj6yU/uyBXsR7ADCif7pTtpD5nfbO5AnXVP9JUKqqTINt/+4k8+bgfnN2XuUkrOGwcO3Hyw3+r/u6UT6HUIu09yWbBtmFZLqk9my7ZrKWvidcuXKeRxRrq1gpYUXIY7SXNnibsp0NGV3hTTbQb1CwIXH2XbfobV4BpWO6FFYE3EEBMnS2UoIuo+cFw5o7U0UiZu/f4kf5sGHiQey4pEi0aP7r+4Qr9rw1Fu/DZm1NBrCn/rN/YOv6rTvsuq5RuRWj5/WyF/dHtvNXAWBA8p+NgsDkhglrla4Am6BMMg6BqmOhl42xNVUv/5W6seYyqRaqYIc5Jmwjfe7wV948cc6+gzcYbRRo33W3EjCyuX8t9ZlDcb/nE9Pw9E1isHwVJSjdF0v+zRl3FQH+zNKcvK/r99LnWhQWXaowpq8WYUAWYJsjn5AphibAaFwrX7YzpngkGDwv85praR2z/EGqoiMHssNjRWwAA";e.default={name:"HeaderExtend",props:{theme:{type:String,default:"light"}},data:function(){return{projectList:[]}},computed:{currentCode:function(){return(0,s.getCache)("CLIENT_ID",s.sessionEngine)}},mounted:function(){this.getProject()},methods:{getProject:(h=(0,o.default)(i.default.mark((function t(){var e,n,r=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.getByCuser)();case 2:e=t.sent,(n=e.data).forEach((function(t,e){r.currentCode===t.code&&n.unshift(n.splice(e,1)[0])})),this.projectList=n;case 6:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)}),goToPage:function(t){var e=a.localStore.get("IAM_OATH_TYPE");if(t.domain)if(t.domain.indexOf("http")>-1||t.domain.indexOf("https")>-1){var n={redirectUri:t.domain,clientId:t.code,scope:"all",state:"hello"};e&&"idp"===e&&(n=(0,r.default)(n,{oauthType:e})),(0,c.iamRedirect)(n).then((function(t){0===t.code&&window.location.replace(t.data,"_self")}))}else this.$router.push(t.domain)}},render:function(){var t=this,e=arguments[0],n=this.projectList.length?this.projectList.map((function(n){var r=(0,l.default)(["header-extend-content-footer-item",t.currentCode===n.code?"header-extend-content-footer-item-active":""]);return e("div",{class:r,on:{click:function(){return t.goToPage(n)}}},["dark"===t.theme?n.whiteIcon?e("img",{attrs:{src:n.whiteIcon,alt:""}}):e("a-avatar",{slot:"avatar"}):n.icon?e("img",{attrs:{src:n.icon,alt:""}}):e("a-avatar",{slot:"avatar"}),e("span",[n.name])])})):e("div",{class:"header-extend-content-footer-item"},[e("a-skeleton",{attrs:{avatar:!0,active:!0,paragraph:{rows:0}}})]);return e("div",{class:"header-extend"},[e("a-popover",{attrs:{trigger:"hover","arrow-point-at-center":!0,overlayClassName:"header-extend-popover app-dropdown-"+this.theme}},[e("div",{class:"header-extend-content",slot:"content"},[e("div",{class:"header-extend-content-header"},[e("img",{attrs:{src:d,alt:""}}),e("div",{class:"header-extend-content-header-title"},[e("span",["智慧环保"]),e("span",["creative"])])]),e("div",{class:"header-extend-content-footer"},[e("a-scrollbar",[e("div",{class:"header-extend-content-footer-inner"},[n])])])]),e("div",{class:"header-extend-inner"},[e("a-icon",{attrs:{type:"caret-down"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(355)),i=a(n(39)),o=a(n(40)),s=a(n(4));function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t),this.c=Math.min,this.h=r.default,this.m=Math.max,this.n=Math.abs,this.j=.85,this.k=10,this.l=4,this.opt={},this.opt.currentIndex=1}return(0,o.default)(t,[{key:"calcAVGSpeed",value:function(t){var e=(this.l*this.j*t+this.k*(1-this.j)*t)/(this.k*this.l*20);return e=this.m(this.n(e),2.5)*this.h(e)}},{key:"getCurSpeed",value:function(t,e){return this.n(t)>this.n(this.j*e)?this.l*this.opt.avgSpeed:this.k*this.opt.avgSpeed}},{key:"_calCurve",value:function(t,e,n,r,i,o){i.bezierCurveTo(t+o,e,n-o,r,n,r)}},{key:"_initCanvas",value:function(t,e,n){var r=window.devicePixelRatio,i=t.getContext("2d");t.width=e*r,t.height=n*r,t.style.width=e+20+"px",t.style.height=n+"px",i.scale(r,r)}},{key:"resize",value:function(){this.opt.timer&&cancelAnimationFrame(this.opt.timer),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height)}},{key:"_toggle",value:function(t){return this.opt.tabWidthList&&this.opt&&this.opt.tabWidthList&&this.opt.tabWidthList.length&&(!this.opt.animating||t!==this.opt.nextIndex)&&(this.opt.animating=!0,this.opt.distance=this.opt.tabWidthList[t]-this.opt.tabWidthList[this.opt.currentIndex],this.opt.avgSpeed=this.calcAVGSpeed(this.opt.distance),this.opt.curDisX=0,this.opt.nextIndex=t),!1}},{key:"_createPattern",value:function(t){var e=document.createElement("canvas");e.width=140,e.height=63,e.style.width="140px",e.style.height="63px";var n=e.getContext("2d");n.scale(1,1),n.lineWidth=.4;for(var r=.8,i=1;30>i;i++)n.strokeStyle="RGBA(22, 120, 160, "+r+")",n.beginPath(),n.moveTo(0,3*i),n.lineTo(140,3*i),n.stroke(),n.closePath(),10<i&&(r-=.1);var o=t.getContext("2d").createPattern(e,"repeat-x");this.opt.pattern=o,e=null}},{key:"_drawHightlight",value:function(t){var e=this.opt.canvas.getContext("2d");e.clearRect(0,0,2*this.opt.width,2*this.opt.height),e.shadowColor="rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+",1)",e.shadowBlur=5,e.strokeStyle=this.opt.color,e.lineWidth=.8,e.fillStyle="none",this._draw(e,!1);var n=e.createLinearGradient(this.opt.tabWidthList[this.opt.currentIndex]-this.opt.tabWidth/2,0,this.opt.tabWidthList[this.opt.currentIndex+1]+this.opt.tabWidth/2,this.opt.height),r=t-.3,i=this.c(1,this.m(0,0+r)),o=this.c(1,this.m(0,0+r+.1)),s=this.c(1,0+r+.3),a=this.c(1,0+r+.3+.1),c=1-i;n.addColorStop(i,"rgba(0,0,0,0)"),n.addColorStop(o,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(s,"rgba("+this.opt.rgb[0]+","+this.opt.rgb[1]+","+this.opt.rgb[2]+","+c+")"),n.addColorStop(a,"rgba(0,0,0,0)"),n.addColorStop(1,"rgba(0,0,0,0)"),e.lineWidth=1.5,e.strokeStyle=n,e.fillStyle=this.opt.pattern,this._draw(e,!0)}},{key:"draw",value:function(t){this._drawHightlight(t),this.opt.timer=requestAnimationFrame(function(){this.draw((t+.005)%1.6)}.bind(this))}},{key:"_draw",value:function(t,e){var n=this.opt.currentIndex,r=this.opt.tabHeight,i=.5,o=0,s=this.opt.tabWidthList[n]-(e?this.opt.tabWidth/2:0);if(t.beginPath(),t.moveTo(s,this.opt.height+10),t.lineTo(s,r+i),this.opt.animating){var a=this.getCurSpeed(this.opt.curDisX,this.opt.distance);o=this.c(this.n(this.opt.distance),this.n(this.opt.curDisX+a))*this.h(a)}if(t.lineTo(0+this.opt.tabWidthList[n]+o-20,r+i),this._calCurve(0+this.opt.tabWidthList[n]+o-20,r+i,0+this.opt.tabWidthList[n]+o+20,3,t,20),this.opt.animating){var c=this.opt.tabWidthList[this.opt.nextIndex+1]-this.opt.tabWidthList[this.opt.nextIndex];t.lineTo(0+this.opt.tabWidthList[n]+c+o-20,3),this._calCurve(0+this.opt.tabWidthList[n]+c+o-20,3,0+this.opt.tabWidthList[n]+c+o+20,r+i,t,20)}else t.lineTo(0+this.opt.tabWidthList[n+1]+o-20,3),this._calCurve(0+this.opt.tabWidthList[n+1]+o-20,3,0+this.opt.tabWidthList[n+1]+o+20,r+i,t,20);e&&(t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,r+i),t.lineTo(this.opt.tabWidthList[n+1]+this.opt.tabWidth/2,this.opt.height)),t.closePath(),t.stroke(),e&&t.fill(),this.opt.animating&&e&&(this.opt.curDisX=o,this.n(o)>=this.n(this.opt.distance)&&(this.opt.animating=!1,this.opt.currentIndex=this.opt.nextIndex))}},{key:"initTabs",value:function(){var t=this.opt.navItemList[this.opt.currentIndex];if(!(0,s.default)(t)){this.opt.tabHeight=t.offsetHeight,this.opt.tabWidth=t.offsetWidth,this.opt.height=.9*t.offsetHeight,this.opt.tabWidthList=[],this.opt.width=0;for(var e=[],n=0;n<this.opt.navItemList.length;n++){var r=this.opt.navItemList[n];e.push(0===n?r.offsetLeft+10:r.offsetLeft),this.opt.width+=r.offsetWidth}this.opt.tabWidthList=[].concat(e,[this.opt.navItemList[this.opt.navItemList.length-1].offsetLeft+this.opt.navItemList[this.opt.navItemList.length-1].offsetWidth-16]),this.opt.canvas.style.left="-10px"}}},{key:"drawNav",value:function(t){this.opt.canvas=t.canvas,this.opt.navItem=t.navItem,this.opt.navCount=t.navCount,this.opt.rgb=t.rgb,this.opt.color=t.color,this.opt.navWidthList=t.navWidthList,this.opt.navItemList=t.navItemList,(0,s.default)(this.opt.canvas)||(this.initTabs(),this._toggle(t.index),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height),this._createPattern(this.opt.canvas),this.draw(0),window.addEventListener("resize",function(){this.resize()}.bind(this),!1))}}]),t}();e.default=new c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(4)),i=n(3),o=n(43),s=h(n(111)),a=h(n(178)),c=h(n(14)),l=h(n(55)),u=h(n(180));h(n(181));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"IepNav",props:{theme:{type:String,default:"dark"}},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,r.default)(t.navList)&&n.length){var o=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=o[0].path;var s=t.navList.findIndex((function(e){return e.path===t.currentPath}));t.currentIndex=s>-1?s:0,t.$nextTick((function(){t.onResize()}))}}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,r.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var i=Math.round(t.width/e);i>0?(this.menuItemSizes=n.slice(0,i-1),this.overflowedItems=n.slice(i-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[];var o=this.$store.state.user.skin;o&&!(0,r.default)(o.color)?this.renderNavActive(o.color,s.default.toNum3(o.color)):this.renderNavActive("#0F6EFF",[15,110,255])}},renderNavActive:function(t,e){var n=this;(0,r.default)(this.menuItemSizes)&&this.menuItemSizes.length<=1||this.$nextTick((function(){a.default.drawNav({index:n.currentIndex,canvas:document.getElementById("navCanvas"),navItemList:document.querySelectorAll(".rk-web-core-header-right-nav-item"),navItem:document.querySelector(".rk-web-core-header-right-nav-item"),navCount:n.menuItemSizes.length,color:t,rgb:e})}))},renderNav:function(){var t=this,e=this.$createElement;return this.menuItemSizes&&!(0,r.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,r){var s="dark"!==t.theme?(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-right-nav-active":""]):(0,c.default)([i.prefixCls+"-header-right-nav-item",i.prefixCls+"-header-dark-nav-item",i.prefixCls+"-header-right-nav-item-"+(0,o.toWord)(n.path),n.path===t.currentPath?i.prefixCls+"-header-dark-nav-active":""]);return e("div",{class:s,ref:"navItem",on:{click:function(){return t.handleTap(n,r)}}},[n.meta.title])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,l.default)(this,{},null,!1),window.location.replace(r)}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){a.default._toggle(n.currentIndex),1!==t.meta.functionType&&(0,l.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0],e=this.$props,n=e.theme;e.version;return t("div",{class:[i.prefixCls+"-header-right-nav","dark"===n?i.prefixCls+"-header-dark":""],ref:"navDom"},[t("canvas",{attrs:{id:"navCanvas"},style:"position: absolute; z-index: -1"}),this.renderNav(),(0,r.default)(this.overflowedItems)?null:t(u.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=a(n(14)),o=a(n(359)),s=a(n(360));function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Nav",props:{columns:{type:Array,default:function(){return[]}}},data:function(){return{visible:!1}},methods:{handleChange:function(t){this.visible=t},onNavClick:function(){this.visible=!1}},render:function(){var t=this,e=arguments[0],n=this.columns,a=this.visible,c=this.handleChange,l=n&&n.length?n.filter((function(t){return 1===t.type})).map((function(n,r){return e(o.default,{attrs:{index:r,title:n.meta.name,path:n.path,"data-source":n.children},on:{navClick:function(){return t.onNavClick()}}})})):null,u=(0,i.default)([r.prefixCls+"-dropdown-menu",a?r.prefixCls+"-dropdown-menu-actove":""]);return e("a-popover",{attrs:{trigger:["hover"],overlayClassName:r.prefixCls+"-dropdown"},on:{visibleChange:c}},[e("div",{class:u},[e(s.default)]),e("div",{class:r.prefixCls+"-dropdown-content",slot:"content"},[e("a-scrollbar",[e("div",{class:r.prefixCls+"-dropdown-content-inner"},[l])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(110),o=(r=i)&&r.__esModule?r:{default:r};var s={name:"IepResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){if(this.$props.disabled)this.destroyObserver();else{var t=this.$el;t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new o.default(this.onResize),this.resizeObserver.observe(t))}},onResize:function(t){var e=t[0].target.getBoundingClientRect(),n=e.width,r=e.height,i=Math.floor(n),o=Math.floor(r);if(this.width!==i||this.height!==o){var s={width:i,height:o};this.width=i,this.height=o,this.$emit("resize",s)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(25)),i=n(3),o=u(n(361)),s=u(n(4)),a=u(n(46)),c=u(n(55)),l=u(n(180));u(n(181));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppNav",props:{mode:r.default.oneOf(["iep","park"]).def("iep"),theme:r.default.oneOf(["dark","light"]).def("dark")},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{navList:[],currentPath:void 0,currentIndex:0,overflowedItems:[],menuItemSizes:[],selectedKeys:[]}},mounted:function(){var t=this;this.navList=this.nav[0].children,this.$watch("$route",(function(e){var n=e.matched;if(t.navList&&!(0,s.default)(t.navList)&&n.length){var r=(0,i.treeFindPath)(t.navList,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.currentPath=r[0].path;var o=t.navList.findIndex((function(e){return e.path===t.currentPath}));if(t.currentIndex=o>-1?o:0,r.length>=2){var c=(0,a.default)(r,{layout:"BlankLayout"});(0,s.default)(c)?t.selectedKeys=[r[r.length-1].path]:t.selectedKeys=[c.path]}else t.selectedKeys=[r[0].path]}t.$nextTick((function(){t.onResize()}))}),{immediate:!0,deep:!0})},methods:{onResize:function(){var t=this.$refs.navDom.getBoundingClientRect(),e=parseFloat(document.documentElement.style.fontSize)/100*120;if(this.navList&&!(0,s.default)(this.navList)){var n=this.navList.filter((function(t){return 1===t.type}));if(e*n.length-10>t.width){var r=Math.round(t.width/e);r>0?(this.menuItemSizes=n.slice(0,r-1),this.overflowedItems=n.slice(r-1,n.length)):(this.menuItemSizes=n,this.overflowedItems=[])}else this.menuItemSizes=n,this.overflowedItems=[]}},renderNav:function(){var t=this,e=this.$createElement,n=this.$props,r=n.mode,a=n.theme;return this.menuItemSizes&&!(0,s.default)(this.menuItemSizes)?this.menuItemSizes.map((function(n,c){var l=(0,s.default)(n.children)?null:n.children.map((function(n){return 1===n.type?e("a-menu-item",{key:n.path,on:{click:function(){return t.handleTap(n,c)}}},[e("span",[n.meta.title])]):null})),u=n.path===t.currentPath?e("div",{class:[i.prefixCls+"-nav-item",i.prefixCls+"-nav-item-active"]},"iep"===r?[e("span",[" ",n.meta.title])]:[e(o.default),e("span",[" ",n.meta.title])]):e("div",{class:[i.prefixCls+"-nav-item"]},[e("span",[" ",n.meta.title])]),h="SidebarWrapper"===n.layout?e("a-dropdown",{attrs:{overlayClassName:i.prefixCls+"-nav-item-dropdown"}},[u,e("a-menu",{slot:"overlay",class:[i.prefixCls+"-nav-menu",i.prefixCls+"-nav-menu-"+a],attrs:{selectedKeys:t.selectedKeys}},[l])]):u;return e("div",{ref:"navItem",class:[i.prefixCls+"-nav-"+t.theme,i.prefixCls+"-nav-"+t.mode],on:{click:function(){return t.handleTap(n,c)}}},[h])})):null},handleTap:function(t,e){var n=this;if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;1!==t.meta.functionType&&(0,c.default)(this,{},null,!1),window.open(r,"_blank")}else this.currentPath=t.path,this.$store.commit("user/SET_NAV_INDEX",e),this.$router.push(t.path).then((function(e){1!==t.meta.functionType&&(0,c.default)(n,{},null,!1)})),this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:[i.prefixCls+"-nav",i.prefixCls+"-header-right-nav"],ref:"navDom"},[this.renderNav(),(0,s.default)(this.overflowedItems)?null:t(l.default,{attrs:{columns:this.overflowedItems}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(41)),i=a(n(39)),o=a(n(40)),s=n(122);function a(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"saveIndexDb",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r,i){(new t).initIndexedDb().then((function(t){var o=t.transaction(n,"readwrite").objectStore(n);"array"===(0,s.toType)(e)?e.map((function(t){o.put(t)})):o.put(e),t.onsuccess=function(e){r(t)},t.onerror=function(t){i(t)}}))}))}},{key:"initIndexedDb",value:function(){return new r.default((function(t,e){var n=window.indexedDB.open("rk-web-core",1);n.onupgradeneeded=function(e){var n=e.target.result;if(!n.objectStoreNames.contains("app_db")){var r=n.createObjectStore("app_db",{keyPath:"tag"});r.createIndex("tag","tag",{unique:!0}),r.createIndex("value","value",{unique:!1}),r.createIndex("remarks","remarks",{unique:!1})}if(n.objectStoreNames.contains("rk_db"))t(n);else{var i=n.createObjectStore("rk_db",{keyPath:"tag"});i.createIndex("tag","tag",{unique:!0}),i.createIndex("val","val",{unique:!1}),i.createIndex("desc","desc",{unique:!1}),i.createIndex("created","created",{unique:!1}),i.createIndex("isTop","isTop",{unique:!1}),t(n)}},n.onsuccess=function(e){var n=e.target.result;t(n)},n.onerror=function(t){e(t)},n.onerror=function(t){console.log("Can not open indexedDB",t)}}))}},{key:"getLocalRecord",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rk_db";return new r.default((function(r){(new t).initIndexedDb().then((function(t){var i=t.transaction(n,"readwrite").objectStore(n).get(e);i.onsuccess=function(t){r(t.target.result)},i.onerror=function(t){r()}}))}))}}]),t}();e.default=new c},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"EventCenterForMicroApp",(function(){return he})),n.d(e,"MicroApp",(function(){return tr})),n.d(e,"getActiveApps",(function(){return Qn})),n.d(e,"getAllApps",(function(){return Xn})),n.d(e,"getAppStatus",(function(){return $n})),n.d(e,"preFetch",(function(){return Vn})),n.d(e,"pureCreateElement",(function(){return J})),n.d(e,"reload",(function(){return qn})),n.d(e,"removeDomScope",(function(){return X})),n.d(e,"renderApp",(function(){return Kn})),n.d(e,"unmountAllApps",(function(){return Jn})),n.d(e,"unmountApp",(function(){return Yn})),n.d(e,"version",(function(){return r}));const r="1.0.0-rc.4",i="undefined"!=typeof window,o=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Function("return this")(),s=()=>!1,a=Array.isArray,c=Object.assign,l=Object.defineProperty,u=Object.defineProperties,h=Object.prototype.toString,d=Object.prototype.hasOwnProperty,f=t=>h.call(t);function p(t){return void 0===t}function m(t){return null===t}function g(t){return"string"==typeof t}function v(t){return"boolean"==typeof t}function y(t){return"number"==typeof t}function _(t){return"function"==typeof t}function b(t){return"[object Object]"===f(t)}function x(t){return!m(t)&&"object"==typeof t}function w(t){return"[object Promise]"===f(t)}function S(t){var e;if(_(t)){const n=t.toString();return(null===(e=t.prototype)||void 0===e?void 0:e.constructor)===t&&Object.getOwnPropertyNames(t.prototype).length>1||/^function\s+[A-Z]/.test(n)||/^class\s+/.test(n)}return!1}function M(t){var e;return t instanceof URL||!!(null===(e=t)||void 0===e?void 0:e.href)}function A(t){var e;return t instanceof Element||g(null===(e=t)||void 0===e?void 0:e.tagName)}function C(t){var e;return t instanceof Node||y(null===(e=t)||void 0===e?void 0:e.nodeType)}function E(t){return"[object HTMLLinkElement]"===f(t)}function T(t){return"[object HTMLStyleElement]"===f(t)}function I(t){return"[object HTMLScriptElement]"===f(t)}function P(t){return A(t)&&"MICRO-APP-BODY"===t.tagName.toUpperCase()}function L(t,e,n){if(null==t)throw new TypeError("includes target is null or undefined");const r=Object(t),i=parseInt(r.length,10)||0;if(0===i)return!1;n=parseInt(n,10)||0;let o=Math.max(n>=0?n:i+n,0);for(;o<i;){if(e===r[o]||e!=e&&r[o]!=r[o])return!0;o++}return!1}function R(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.error(`[micro-app]${r} ${t}`,...n):console.error("[micro-app]"+r,t,...n)}function O(t,e=null,...n){const r=e&&g(e)?` app ${e}:`:"";g(t)?console.warn(`[micro-app]${r} ${t}`,...n):console.warn("[micro-app]"+r,t,...n)}function B(t,...e){Promise.resolve().then(t.bind(null,...e))}const k=function(){class t extends URL{}return(e,n)=>n?new t(""+e,n):new t(""+e)}();function D(t){return t.startsWith("//")?`${o.location.protocol}${t}`:t}function F(t,e=null){if(!g(t)||!t)return"";try{const{origin:e,pathname:n,search:r}=k(D(t),(window.rawWindow||window).location.href);if(/\.(\w+)$/.test(n))return`${e}${n}${r}`;const i=`${e}${n}/`.replace(/\/\/$/,"/");return/^https?:\/\//.test(i)?`${i}${r}`:""}catch(t){return R(t,e),""}}function N(t){return g(t)&&t?t.replace(/(^\d+)|([^\w\d-_])/gi,""):""}function j(t){const{origin:e,pathname:n}=k(t);if(/\.(\w+)$/.test(n)){const t=`${e}${n}`.split("/");return t.pop(),t.join("/")+"/"}return`${e}${n}/`.replace(/\/\/$/,"/")}function U(t,e){return!t||/^((((ht|f)tps?)|file):)?\/\//.test(t)||/^(data|blob):/.test(t)?t:k(t,j(D(e))).toString()}function z(t,e,n,r){let i=0;function o(){++i===t.length&&r&&r()}t.forEach((t,r)=>{w(t)?t.then(t=>{e({data:t,index:r}),o()}).catch(t=>{n({error:t,index:r}),o()}):(e({data:t,index:r}),o())})}const G=o.requestIdleCallback||function(t){const e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))})}),1)};function H(t){return new Promise(e=>{G(()=>{t(e)})})}let W=null;function V(t){W=t}function Z(){return W}let Q=!1;function X(t){V(null),t&&!Q&&(Q=!0,B(()=>{Q=!1}))}function Y(t){W===t||Q||(V(t),B(()=>{V(null)}))}function J(t,e){const n=(window.rawDocument||document).createElement(t,e);return n.__MICRO_APP_NAME__&&delete n.__MICRO_APP_NAME__,n.__PURE_ELEMENT__=!0,n}function q(t){return!t||/(^\d)|([^\w\d-_\u4e00-\u9fa5])/gi.test(t)}function K(t){return/^body$/i.test(t)||/^head$/i.test(t)||/^html$/i.test(t)||/^title$/i.test(t)||/^:root$/i.test(t)}function $(t){return function(t){return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot}(t)?t.host:t}function tt(t){return t?t.replace(/^\s+|\s+$/g,""):""}function et(){return navigator.userAgent.indexOf("Firefox")>-1}function nt(t){const e={},n=t.split("&");for(const t of n){const n=t.indexOf("="),r=n<0?t:t.slice(0,n),i=n<0?null:t.slice(n+1);if(r in e){let t=e[r];a(t)||(t=e[r]=[t]),t.push(i)}else e[r]=i}return e}function rt(t){let e="";for(const n in t){const r=t[n];if(m(r))e+=(e.length?"&":"")+n;else{(a(r)?r:[r]).forEach(t=>{p(t)||(e+=(e.length?"&":"")+n,m(t)||(e+="="+t))})}}return e}function it(){const t=new Set;return{add:function(e){return t.add(e),()=>!!t.has(e)&&t.delete(e)},list:()=>t}}function ot(t){const e=t.attributes,n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,e[t].value);return n}function st(t,e){t?t.push(()=>H(t=>{e(),t()})):e()}function at(t){return(null==t?void 0:t.reduce((t,e)=>t.then(e),Promise.resolve()))||null}function ct(t){return t.startsWith("inline-")}function lt(t,e,n,...r){try{_(t)&&t(...r)}catch(t){R(`An error occurred in app ${e} window.${n} \n`,null,t)}}function ut(t,e,n,r){var i;if(!t)return R("element does not exist in lifecycle "+n,e);t=$(t),X();const o=c({name:e,container:t},r&&{error:r}),s=new CustomEvent(n,{detail:o});!function(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},target:{get:()=>e}})}(s,t),_(null===(i=er.options.lifeCycles)||void 0===i?void 0:i[n])&&er.options.lifeCycles[n](s),t.dispatchEvent(s)}function ht(t,e,n={}){var r;const i=new CustomEvent(e,{detail:n});null===(r=t.sandBox)||void 0===r||r.microAppWindow.dispatchEvent(i)}function dt(t,e=null,n={}){return X(),_(er.options.fetch)?er.options.fetch(t,n,e):window.fetch(t,n).then(t=>t.text())}class ft{static getInstance(){return this.instance||(this.instance=new ft),this.instance}run(t,e){const n=t.name,r=t.ssrUrl||t.url;(r.includes(".js")?Promise.resolve(`<micro-app-head><script src='${r}'><\/script></micro-app-head><micro-app-body></micro-app-body>`):dt(r,n,{cache:"no-cache"})).then(i=>{if(!i){const e="html is empty, please check in detail";return t.onerror(new Error(e)),R(e,n)}i=this.formatHTML(r,i,n),e(i,t)}).catch(e=>{R(`Failed to fetch data from ${t.url}, micro-app stop rendering`,n,e),t.onLoadError(e)})}formatHTML(t,e,n){return this.processHtml(t,e,n,er.options.plugins).replace(/<head[^>]*>[\s\S]*?<\/head>/i,t=>t.replace(/<head/i,"<micro-app-head").replace(/<\/head>/i,"</micro-app-head>")).replace(/<body[^>]*>[\s\S]*?<\/body>/i,t=>t.replace(/<body/i,"<micro-app-body").replace(/<\/body>/i,"</micro-app-body>"))}processHtml(t,e,n,r){var i;if(!r)return e;const o=[];return r.global&&o.push(...r.global),(null===(i=r.modules)||void 0===i?void 0:i[n])&&o.push(...r.modules[n]),o.length>0?o.reduce((e,n)=>b(n)&&_(n.processHtml)?n.processHtml(e,t):e,e):e}}const pt=/(^|\s+)(html|:root)(?=[\s>~[.#:]+|$)/,mt=/(^|\s+)((html[\s>~]+body)|body)(?=[\s>~[.#:]+|$)/;function gt(t,e){t=e?`${e} ${t}`:t;const n=new Error(t);throw n.reason=t,e&&(n.filename=e),n}class vt{constructor(){this.cssText="",this.prefix="",this.baseURI="",this.linkPath="",this.result="",this.scopecssDisable=!1,this.scopecssDisableSelectors=[],this.scopecssDisableNextLine=!1,this.mediaRule=this.createMatcherForRuleWithChildRule(/^@media *([^{]+)/,"@media"),this.supportsRule=this.createMatcherForRuleWithChildRule(/^@supports *([^{]+)/,"@supports"),this.documentRule=this.createMatcherForRuleWithChildRule(/^@([-\w]+)?document *([^{]+)/,"@document"),this.hostRule=this.createMatcherForRuleWithChildRule(/^@host\s*/,"@host"),this.importRule=this.createMatcherForNoneBraceAtRule("import"),this.charsetRule=this.createMatcherForNoneBraceAtRule("charset"),this.namespaceRule=this.createMatcherForNoneBraceAtRule("namespace"),this.containerRule=this.createMatcherForRuleWithChildRule(/^@container *([^{]+)/,"@container")}exec(t,e,n,r){return this.cssText=t,this.prefix=e,this.baseURI=n,this.linkPath=r||"",this.matchRules(),et()?decodeURIComponent(this.result):this.result}reset(){this.cssText=this.prefix=this.baseURI=this.linkPath=this.result="",this.scopecssDisable=this.scopecssDisableNextLine=!1,this.scopecssDisableSelectors=[]}matchRules(){for(this.matchLeadingSpaces(),this.matchComments();this.cssText.length&&"}"!==this.cssText.charAt(0)&&(this.matchAtRule()||this.matchStyleRule());)this.matchComments()}matchStyleRule(){const t=this.formatSelector(!0);return this.scopecssDisableNextLine=!1,t?(this.recordResult(t),this.matchComments(),this.styleDeclarations(),this.matchLeadingSpaces(),!0):gt("selector missing",this.linkPath)}formatSelector(t){const e=this.commonMatch(/^[^{]+/,t);return!!e&&e[0].replace(/(^|,[\n\s]*)([^,]+)/g,(t,e,n)=>(n=tt(n),this.scopecssDisableNextLine||this.scopecssDisable&&(!this.scopecssDisableSelectors.length||this.scopecssDisableSelectors.includes(n))||pt.test(n)||(n=mt.test(n)?n.replace(mt,this.prefix+" micro-app-body"):this.prefix+" "+n),e+n))}styleDeclarations(){return this.matchOpenBrace()?(this.matchAllDeclarations(),!!this.matchCloseBrace()||gt("Declaration missing '}'",this.linkPath)):gt("Declaration missing '{'",this.linkPath)}matchAllDeclarations(t=1){let e=this.commonMatch(/^(?:url\(["']?(?:[^)"'}]+)["']?\)|[^{}/])*/,!0)[0];if(e&&(this.scopecssDisableNextLine||this.scopecssDisable&&!this.scopecssDisableSelectors.length||(e=e.replace(/url\(["']?([^)"']+)["']?\)/gm,(t,e)=>/^((data|blob):|#)/.test(e)||/^(https?:)?\/\//.test(e)?t:(/^((\.\.?\/)|[^/])/.test(e)&&this.linkPath&&(this.baseURI=function(t){const e=t.split("/");return e.pop(),D(e.join("/")+"/")}(this.linkPath)),`url("${U(e,this.baseURI)}")`))),this.recordResult(e)),this.scopecssDisableNextLine=!1,this.cssText){if("}"===this.cssText.charAt(0)){if(!t)return;return t>1&&this.commonMatch(/}+/),this.matchAllDeclarations(t-1)}return"/"===this.cssText.charAt(0)&&("*"===this.cssText.charAt(1)?this.matchComments():this.commonMatch(/\/+/)),"{"===this.cssText.charAt(0)&&(this.commonMatch(/{+\s*/),t++),this.matchAllDeclarations(t)}}matchAtRule(){return"@"===this.cssText[0]&&(this.scopecssDisableNextLine=!1,this.keyframesRule()||this.mediaRule()||this.customMediaRule()||this.supportsRule()||this.importRule()||this.charsetRule()||this.namespaceRule()||this.containerRule()||this.documentRule()||this.pageRule()||this.hostRule()||this.fontFaceRule())}keyframesRule(){if(!this.commonMatch(/^@([-\w]+)?keyframes\s*/))return!1;if(!this.commonMatch(/^[^{]+/))return gt("@keyframes missing name",this.linkPath);if(this.matchComments(),!this.matchOpenBrace())return gt("@keyframes missing '{'",this.linkPath);for(this.matchComments();this.keyframeRule();)this.matchComments();return this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt("@keyframes missing '}'",this.linkPath)}keyframeRule(){let t;const e=[];for(;t=this.commonMatch(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)e.push(t[1]),this.commonMatch(/^,\s*/);return!!e.length&&(this.styleDeclarations(),this.matchLeadingSpaces(),!0)}customMediaRule(){return!!this.commonMatch(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/)&&(this.matchLeadingSpaces(),!0)}pageRule(){return!!this.commonMatch(/^@page */)&&(this.formatSelector(!1),this.scopecssDisableNextLine=!1,this.commonHandlerForAtRuleWithSelfRule("page"))}fontFaceRule(){return!!this.commonMatch(/^@font-face\s*/)&&this.commonHandlerForAtRuleWithSelfRule("font-face")}createMatcherForRuleWithChildRule(t,e){return()=>!!this.commonMatch(t)&&(this.matchOpenBrace()?(this.matchComments(),this.matchRules(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(e+" missing '}'",this.linkPath)):gt(e+" missing '{'",this.linkPath))}createMatcherForNoneBraceAtRule(t){const e=new RegExp("^@"+t+"\\s*([^;]+);");return()=>!!this.commonMatch(e)&&(this.matchLeadingSpaces(),!0)}commonHandlerForAtRuleWithSelfRule(t){return this.matchOpenBrace()?(this.matchAllDeclarations(),this.matchCloseBrace()?(this.matchLeadingSpaces(),!0):gt(`@${t} missing '}'`,this.linkPath)):gt(`@${t} missing '{'`,this.linkPath)}matchComments(){for(;this.matchComment(););}matchComment(){if("/"!==this.cssText.charAt(0)||"*"!==this.cssText.charAt(1))return!1;this.scopecssDisableNextLine=!1;let t=2;for(;""!==this.cssText.charAt(t)&&("*"!==this.cssText.charAt(t)||"/"!==this.cssText.charAt(t+1));)++t;if(t+=2,""===this.cssText.charAt(t-1))return gt("End of comment missing",this.linkPath);let e=this.cssText.slice(2,t-2);if(this.recordResult(`/*${e}*/`),e=tt(e.replace(/^\s*!/,"")),"scopecss-disable-next-line"===e)this.scopecssDisableNextLine=!0;else if(/^scopecss-disable/.test(e))if("scopecss-disable"===e)this.scopecssDisable=!0;else{this.scopecssDisable=!0;e.replace("scopecss-disable","").split(",").forEach(t=>{this.scopecssDisableSelectors.push(tt(t))})}else"scopecss-enable"===e&&(this.scopecssDisable=!1,this.scopecssDisableSelectors=[]);return this.cssText=this.cssText.slice(t),this.matchLeadingSpaces(),!0}commonMatch(t,e=!1){const n=t.exec(this.cssText);if(!n)return;const r=n[0];return this.cssText=this.cssText.slice(r.length),e||this.recordResult(r),n}matchOpenBrace(){return this.commonMatch(/^{\s*/)}matchCloseBrace(){return this.commonMatch(/^}/)}matchLeadingSpaces(){this.commonMatch(/^\s*/)}recordResult(t){et()?this.result+=encodeURIComponent(t):this.result+=t}}function yt(t,e,n,r,i){if(!t.__MICRO_APP_HAS_SCOPED__){t.__MICRO_APP_HAS_SCOPED__=!0;let o=null;try{o=_t.exec(t.textContent,n,r,i),_t.reset()}catch(t){_t.reset(),R("An error occurred while parsing CSS:\n",e,t)}o&&(t.textContent=o)}}let _t;function bt(t,e,n){if(e.scopecss){const r=xt(e.name);if(_t||(_t=new vt),t.textContent)yt(t,e.name,r,e.url,n);else{const i=new MutationObserver((function(){i.disconnect(),t.textContent&&!t.hasAttribute("data-styled")&&yt(t,e.name,r,e.url,n)}));i.observe(t,{childList:!0})}}return t}function xt(t,e=!1){const n=e?"\\":"";return`${er.tagName}${n}[name=${t}${n}]`}function wt(t,e){Object.defineProperties(t,{currentTarget:{get:()=>e},srcElement:{get:()=>e},target:{get:()=>e}})}function St(t){const e=new CustomEvent("load");wt(e,t),_(t.onload)?t.onload(e):t.dispatchEvent(e)}function Mt(t){const e=new CustomEvent("error");wt(e,t),_(t.onerror)?t.onerror(e):t.dispatchEvent(e)}var At,Ct,Et,Tt,It,Pt,Lt=function(){const t=new Map,e=new Map;function n(t){return{setInfo(e,n){t.set(e,n)},getInfo(e){var n;return null!==(n=t.get(e))&&void 0!==n?n:null},hasInfo:e=>t.has(e),deleteInfo:e=>t.delete(e)}}return{link:n(t),script:Object.assign(Object.assign({},n(e)),{deleteInlineInfo(t){t.forEach(t=>{ct(t)&&e.delete(t)})}})}}();function Rt(t,e,n,r=!1){const i=t.getAttribute("rel");let o=t.getAttribute("href"),s=null;if("stylesheet"===i&&o){o=U(o,n.url);let e=Lt.link.getInfo(o);const i={attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",appSpace:{[n.name]:i}},Lt.link.setInfo(o,e),r)return{address:o,linkInfo:e};n.source.links.add(o),s=document.createComment(`link element with href=${o} move to micro-app-head as style element`),e.appSpace[n.name].placeholder=s}else i&&["prefetch","preload","prerender"].includes(i)?r?s=document.createComment(`link element with rel=${i}${o?" & href="+o:""} removed by micro-app`):null==e||e.removeChild(t):o&&Gn.rawSetAttribute.call(t,"href",U(o,n.url));return r?{replaceComment:s}:s?null==e?void 0:e.replaceChild(s,t):void 0}function Ot(t,e,n,r){const i=Array.from(e.source.links),o=i.map(t=>{const n=Lt.link.getInfo(t);return n.code?n.code:dt(t,e.name)}),s=r?[]:null;z(o,t=>{st(s,()=>function(t,e,n,r){const i=Lt.link.getInfo(t);i.code=e;const o=i.appSpace[r.name],s=o.placeholder;if(s){const e=J("style");Bt(r,t,e,i,o.attrs),s.parentNode?s.parentNode.replaceChild(e,s):n.appendChild(e),o.placeholder=null}}(i[t.index],t.data,n,e))},t=>{R(t,e.name)},()=>{r?r.then(()=>{s.push(()=>Promise.resolve(e.onLoad({html:t}))),at(s)}):e.onLoad({html:t})})}function Bt(t,e,n,r,i){if(t.scopecss){const i=r.appSpace[t.name];if(i.prefix=i.prefix||xt(t.name),i.parsedCode)n.textContent=i.parsedCode;else{const o=function(t,e,n){const r=n.appSpace;for(const n in r)if(n!==t){const t=r[n];if(t.parsedCode)return t.parsedCode.replace(new RegExp(xt(n,!0),"g"),e)}}(t.name,i.prefix,r);o?n.textContent=o:(n.textContent=r.code,bt(n,t,e)),i.parsedCode=n.textContent}}else n.textContent=r.code;!function(t,e){e.forEach((e,n)=>{"rel"!==n&&("href"===n&&(n="data-origin-href"),Gn.rawSetAttribute.call(t,n,e))})}(n,i)}!function(t){t.NAME="name",t.URL="url"}(At||(At={})),function(t){t.CREATED="created",t.LOADING="loading",t.LOAD_FAILED="load_failed",t.BEFORE_MOUNT="before_mount",t.MOUNTING="mounting",t.MOUNTED="mounted",t.UNMOUNT="unmount"}(Ct||(Ct={})),function(t){t.CREATED="created",t.BEFOREMOUNT="beforemount",t.MOUNTED="mounted",t.UNMOUNT="unmount",t.ERROR="error",t.BEFORESHOW="beforeshow",t.AFTERSHOW="aftershow",t.AFTERHIDDEN="afterhidden"}(Et||(Et={})),function(t){t.ONMOUNT="onmount",t.ONUNMOUNT="onunmount"}(Tt||(Tt={})),function(t){t.KEEP_ALIVE_SHOW="keep_alive_show",t.KEEP_ALIVE_HIDDEN="keep_alive_hidden"}(It||(It={})),function(t){t.DESTROY="destroy",t.DESTORY="destory",t.INLINE="inline",t.DISABLESCOPECSS="disableScopecss",t.DISABLESANDBOX="disableSandbox",t.DISABLE_SCOPECSS="disable-scopecss",t.DISABLE_SANDBOX="disable-sandbox",t.DISABLE_MEMORY_ROUTER="disable-memory-router",t.DISABLE_PATCH_REQUEST="disable-patch-request",t.KEEP_ROUTER_STATE="keep-router-state",t.HIDDEN_ROUTER="hidden-router",t.KEEP_ALIVE="keep-alive",t.CLEAR_DATA="clear-data",t.SSR="ssr",t.FIBER="fiber"}(Pt||(Pt={}));const kt=[1,2,3],Dt=["search","native","native-scope","pure"],Ft=["popstate","hashchange","load","beforeunload","unload","unmount","appstate-change","statechange","mounted"],Nt=["onpopstate","onhashchange","onload","onbeforeunload","onunload","onerror"],jt=["DOMContentLoaded","readystatechange"],Ut=["onreadystatechange"],zt=["window","self","globalThis"],Gt=["rawWindow","rawDocument"],Ht="window,self,globalThis,document,Document,Array,Object,String,Boolean,Math,Number,Symbol,Date,Function,Proxy,WeakMap,WeakSet,Set,Map,Reflect,Element,Node,RegExp,Error,TypeError,JSON,isNaN,parseFloat,parseInt,performance,console,decodeURI,encodeURI,decodeURIComponent,encodeURIComponent,navigator,undefined,location,history",Wt=["text/javascript","text/ecmascript","application/javascript","application/ecmascript","module","systemjs-module","systemjs-importmap"];function Vt(t,e){return e.appSpace[t.name].module&&(!t.useSandbox||t.iframe)}function Zt(t,e){return t.inline||e.appSpace[t.name].inline||Vt(t,e)||function(t,e){return e.appSpace[t.name].attrs.has("id")}(t,e)}function Qt(t){return t.iframe?t.sandBox.microAppWindow:Gn.rawWindow}function Xt(t,e,n){return function(t,e,n){const r=e.appSpace;for(const e in r)if(e!==t.name){const t=r[e];if(t.parsedCode===n&&t.parsedFunction)return t.parsedFunction}}(t,e,n)||function(t,e){return new(Qt(t).Function)(e)}(t,n)}function Yt(){const t="inline-"+Math.random().toString(36).substr(2,15);return Lt.script.hasInfo(t)?Yt():t}function Jt(t,e){return t.useSandbox&&!Vt(t,e)}function qt(t,e){return Jt(t,e)?t.iframe?"iframe":"with":"disable"}function Kt(t,e,n,r=!1){var i;let o=null,s=t.getAttribute("src");if(s&&(s=U(s,n.url)),t.hasAttribute("exclude")||te(s,n.name))o=document.createComment("script element with exclude attribute removed by micro-app");else{if(t.type&&!Wt.includes(t.type)||t.hasAttribute("ignore")||ee(s,n.name))return(null===(i=Gn.rawDocument)||void 0===i?void 0:i.currentScript)&&delete Gn.rawDocument.currentScript,null;if(Gn.supportModuleScript&&t.noModule||!Gn.supportModuleScript&&"module"===t.type)o=document.createComment((t.noModule?"noModule":"module")+" script ignored by micro-app");else if(s){let e=Lt.script.getInfo(s);const i={async:t.hasAttribute("async"),defer:t.defer||"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)};if(e?e.appSpace[n.name]=e.appSpace[n.name]||i:e={code:"",isExternal:!0,appSpace:{[n.name]:i}},Lt.script.setInfo(s,e),r)return{address:s,scriptInfo:e};n.source.scripts.add(s),o=document.createComment(`script with src='${s}' extract by micro-app`)}else if(t.textContent){const e=Yt(),i={code:t.textContent,isExternal:!1,appSpace:{[n.name]:{async:!1,defer:"module"===t.type,module:"module"===t.type,inline:t.hasAttribute("inline"),pure:t.hasAttribute("pure"),attrs:ot(t)}}};if(r)return{address:e,scriptInfo:i};n.source.scripts.add(e),Lt.script.setInfo(e,i),o=document.createComment("inline script extract by micro-app")}else r||(o=document.createComment("script element removed by micro-app"))}return r?{replaceComment:o}:null==e?void 0:e.replaceChild(o,t)}function $t(t){var e,n,r;return[...(null===(e=er.options.plugins)||void 0===e?void 0:e.global)||[],...(null===(r=null===(n=er.options.plugins)||void 0===n?void 0:n.modules)||void 0===r?void 0:r[t])||[]]}function te(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.excludeChecker&&e.excludeChecker(t))}function ee(t,e){if(!t)return!1;return($t(e)||[]).some(e=>!!e.ignoreChecker&&e.ignoreChecker(t))}function ne(t,e){const n=Array.from(e.source.scripts),r=[],i=[];for(const t of n){const n=Lt.script.getInfo(t),o=n.appSpace[e.name];(!o.defer&&!o.async||e.isPrefetch&&!e.isPrerender)&&(r.push(n.code?n.code:dt(t,e.name)),i.push([t,n]))}const o=e.isPrefetch||e.fiber?[]:null;r.length?z(r,t=>{st(o,()=>function(t,e,n,r){if(e.code=n,r.isPrefetch&&2===r.prefetchLevel){const i=e.appSpace[r.name];if(!i.parsedCode&&(i.parsedCode=ie(t,r,n,e),i.sandboxType=qt(r,e),!Zt(r,e)))try{i.parsedFunction=Xt(r,e,i.parsedCode)}catch(t){R("Something went wrong while handling preloaded resources",r.name,"\n",t)}}}(i[t.index][0],i[t.index][1],t.data,e))},t=>{R(t,e.name)},()=>{o?(o.push(()=>Promise.resolve(e.onLoad({html:t}))),at(o)):e.onLoad({html:t})}):e.onLoad({html:t})}function re(t,e,n,r,i){try{!function(t){!function(t){t.sandBox&&(Gn.rawWindow.__MICRO_APP_PROXY_WINDOW__=t.sandBox.proxyWindow)}(t)}(e);const o=n.appSpace[e.name],s=qt(e,n);if(o.parsedCode&&o.sandboxType===s||(o.parsedCode=ie(t,e,n.code,n),o.sandboxType=s,o.parsedFunction=null),Zt(e,n)){const s=i||J("script");if(function(t,e,n,r,i,o){if(n){if(Gn.rawSetAttribute.call(r,"type","module"),ct(t)?r.textContent=e:r.src=t,o){const e=()=>{o.moduleCount&&o.moduleCount--,o(0===o.moduleCount)};ct(t)?B(e):r.onload=e}}else r.textContent=e;!function(t,e){e.forEach((e,n)=>{"type"===n&&"module"===e||"defer"===n||"async"===n||("src"===n&&(n="data-origin-src"),Gn.rawSetAttribute.call(t,n,e))})}(r,i)}(t,o.parsedCode,Vt(e,n),s,o.attrs,r),!i){const t=e.iframe?e.sandBox.microBody:e.querySelector("micro-app-body");null==t||t.appendChild(s)}}else!function(t,e){const n=e.appSpace[t.name];n.parsedFunction||(n.parsedFunction=Xt(t,e,n.parsedCode));n.parsedFunction.call(Qt(t))}(e,n)}catch(n){throw console.error(`[micro-app from ${i?"runDynamicScript":"runScript"}] app ${e.name}: `,n,t),n}}function ie(t,e,n,r){return b(er.options.plugins)&&(n=function(t,e,n,r){var i;const o=oe(r.global,e,t);return oe(null===(i=r.modules)||void 0===i?void 0:i[n],o,t)}(t,n,e.name,er.options.plugins)),Jt(e,r)?e.iframe?`(function(window,self,global,location){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyWindow,window.__MICRO_APP_SANDBOX__.proxyLocation);`:`;(function(proxyWindow){with(proxyWindow.__MICRO_APP_WINDOW__){(function(${Ht}){;${n}\n${ct(t)?"":`//# sourceURL=${t}\n`}}).call(proxyWindow,${Ht})}})(window.__MICRO_APP_PROXY_WINDOW__);`:n}function oe(t,e,n){return a(t)?t.reduce((t,e)=>b(e)&&_(e.loader)?e.loader(t,n):t,e):e}function se(t,e){const n=e.parseHtmlString(t),r=Gn.rawElementQuerySelector.call(n,"micro-app-head"),i=Gn.rawElementQuerySelector.call(n,"micro-app-body");if(!r||!i){const t=`element ${r?"body":"head"} is missing`;return e.onerror(new Error(t)),R(t,e.name)}const o=e.isPrefetch||e.fiber?[]:null;!function t(e,n,r,i){const o=Array.from(e.children);o.length&&o.forEach(e=>{t(e,n,r,i)});for(const t of o)E(t)?t.hasAttribute("exclude")||te(t.getAttribute("href"),n.name)?e.replaceChild(document.createComment("link element with exclude attribute ignored by micro-app"),t):t.hasAttribute("ignore")||ee(t.getAttribute("href"),n.name)?t.hasAttribute("href")&&Gn.rawSetAttribute.call(t,"href",U(t.getAttribute("href"),n.url)):Rt(t,e,n):T(t)?t.hasAttribute("exclude")?e.replaceChild(document.createComment("style element with exclude attribute ignored by micro-app"),t):n.scopecss&&!t.hasAttribute("ignore")&&st(i,()=>bt(t,n)):I(t)?Kt(t,e,n):"[object HTMLImageElement]"===f(t)&&t.hasAttribute("src")&&Gn.rawSetAttribute.call(t,"src",U(t.getAttribute("src"),n.url))}(n,e,r,o);const s=at(o);e.source.links.size?Ot(n,e,r,s):s?s.then(()=>e.onLoad({html:n})):e.onLoad({html:n}),e.source.scripts.size?ne(n,e):e.onLoad({html:n})}const ae=new class{constructor(){this.eventList=new Map,this.queue=[],this.recordStep={},this.process=()=>{var t,e;let n;const r=this.recordStep,i=this.queue;for(this.recordStep={},this.queue=[];n=i.shift();){const i=this.eventList.get(n),o=i.tempData,s=i.force;let a;if(i.tempData=null,i.force=!1,s||!this.isEqual(i.data,o)){i.data=o||i.data;for(const t of i.callbacks){const e=t(i.data);e&&(null!=a?a:a=[]).push(e)}null===(e=(t=r[n]).dispatchDataEvent)||void 0===e||e.call(t),r[n].nextStepList.forEach(t=>t(a))}}}}isLegalName(t){return!!t||(R("event-center: Invalid name"),!1)}enqueue(t,e,n){this.recordStep[t]?(this.recordStep[t].nextStepList.push(e),n&&(this.recordStep[t].dispatchDataEvent=n)):this.recordStep[t]={nextStepList:[e],dispatchDataEvent:n},!this.queue.includes(t)&&1===this.queue.push(t)&&B(this.process)}isEqual(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]!==e[n])return!1;return!0}on(t,e,n=!1){if(this.isLegalName(t)){if(!_(e))return R("event-center: Invalid callback function");let r=this.eventList.get(t);r?n&&Object.keys(r.data).length&&(!this.queue.includes(t)||this.isEqual(r.data,r.tempData))&&e(r.data):(r={data:{},callbacks:new Set},this.eventList.set(t,r)),r.callbacks.add(e)}}off(t,e){if(this.isLegalName(t)){const n=this.eventList.get(t);n&&(_(e)?n.callbacks.delete(e):n.callbacks.clear())}}clearData(t){if(this.isLegalName(t)){const e=this.eventList.get(t);e&&(e.data={})}}dispatch(t,e,n,r,i){if(this.isLegalName(t)){if(!b(e))return R("event-center: data must be object");let o=this.eventList.get(t);o?(o.tempData=c({},o.tempData||o.data,e),!o.force&&(o.force=!!r)):(o={data:e,callbacks:new Set},this.eventList.set(t,o),o.force=!0),this.enqueue(t,n,i)}}getData(t){var e;const n=this.eventList.get(t);return null!==(e=null==n?void 0:n.data)&&void 0!==e?e:null}};function ce(t,e){return g(t)&&t?e?`__from_base_app_${t}__`:`__from_micro_app_${t}__`:""}class le{addGlobalDataListener(t,e){const n=this.appName;n&&(t.__APP_NAME__=n,t.__AUTO_TRIGGER__=e),ae.on("global",t,e)}removeGlobalDataListener(t){_(t)&&ae.off("global",t)}setGlobalData(t,e,n){X(),ae.dispatch("global",t,t=>_(e)&&e(t),n)}forceSetGlobalData(t,e){this.setGlobalData(t,e,!0)}getGlobalData(){return ae.getData("global")}clearGlobalData(){ae.clearData("global")}clearGlobalDataListener(){const t=this.appName,e=ae.eventList.get("global");if(e)for(const n of e.callbacks)(t&&t===n.__APP_NAME__||!t&&!n.__APP_NAME__)&&e.callbacks.delete(n)}}class ue extends le{addDataListener(t,e,n){ae.on(ce(N(t),!1),e,n)}removeDataListener(t,e){_(e)&&ae.off(ce(N(t),!1),e)}getData(t,e=!1){return ae.getData(ce(N(t),e))}setData(t,e,n,r){ae.dispatch(ce(N(t),!0),e,t=>_(n)&&n(t),r)}forceSetData(t,e,n){this.setData(t,e,n,!0)}clearData(t,e=!0){ae.clearData(ce(N(t),e))}clearDataListener(t){ae.off(ce(N(t),!1))}}class he extends le{constructor(t){super(),this.appName=N(t),!this.appName&&R("Invalid appName "+t)}addDataListener(t,e){t.__AUTO_TRIGGER__=e,ae.on(ce(this.appName,!0),t,e)}removeDataListener(t){_(t)&&ae.off(ce(this.appName,!0),t)}getData(t=!0){return ae.getData(ce(this.appName,t))}dispatch(t,e,n){X(),ae.dispatch(ce(this.appName,!1),t,t=>_(e)&&e(t),n,()=>{const e=Tn.get(this.appName);if((null==e?void 0:e.container)&&b(t)){const t=new CustomEvent("datachange",{detail:{data:ae.getData(ce(this.appName,!1))}});$(e.container).dispatchEvent(t)}})}forceDispatch(t,e){this.dispatch(t,e,!0)}clearData(t=!1){ae.clearData(ce(this.appName,t))}clearDataListener(){ae.off(ce(this.appName,!0))}}function de(t){var e,n;if(t){t.umdDataListeners={global:new Set(null===(e=t.umdDataListeners)||void 0===e?void 0:e.global),normal:new Set(null===(n=t.umdDataListeners)||void 0===n?void 0:n.normal)};const r=ae.eventList.get("global");if(r)for(const e of r.callbacks)t.appName===e.__APP_NAME__&&t.umdDataListeners.global.add(e);const i=ae.eventList.get(ce(t.appName,!0));if(i)for(const e of i.callbacks)t.umdDataListeners.normal.add(e)}}function fe(t){if(null==t?void 0:t.umdDataListeners){for(const e of t.umdDataListeners.global)t.addGlobalDataListener(e,e.__AUTO_TRIGGER__);for(const e of t.umdDataListeners.normal)t.addDataListener(e,e.__AUTO_TRIGGER__);pe(t)}}function pe(t){null==t||delete t.umdDataListeners}class me{constructor(){this.appInstanceMap=Tn}static getInstance(){return this.instance||(this.instance=new me),this.instance}get(t){return this.appInstanceMap.get(t)}set(t,e){this.appInstanceMap.set(t,e)}getAll(){return Array.from(this.appInstanceMap.values())}clear(){this.appInstanceMap.clear()}}function ge(){ve(),me.getInstance().getAll().forEach(t=>{t.container&&$(t.container).disconnectedCallback()}),!window.__MICRO_APP_UMD_MODE__&&me.getInstance().clear()}function ve(){window.__MICRO_APP_ENVIRONMENT__&&window.removeEventListener("unmount",ge,!1)}function ye(t){return v(t.__MICRO_APP_IS_BOUND_FUNCTION__)?t.__MICRO_APP_IS_BOUND_FUNCTION__:t.__MICRO_APP_IS_BOUND_FUNCTION__=_(e=t)&&0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");var e}function _e(t,e,n="WINDOW"){if(_(t)&&!function(t){return v(t.__MICRO_APP_IS_CONSTRUCTOR__)?t.__MICRO_APP_IS_CONSTRUCTOR__:t.__MICRO_APP_IS_CONSTRUCTOR__=S(t)}(t)&&!ye(t)){const r=`__MICRO_APP_BOUND_${n}_FUNCTION__`;if(t[r])return t[r];const i=t.bind(e);for(const e in t)i[e]=t[e];return t.hasOwnProperty("prototype")&&l(i,"prototype",{value:t.prototype,configurable:!0,enumerable:!1,writable:!0}),t[r]=i}return t}function be(t,e,n){const{proxyDocument:r,documentEffect:i}=function(t,e){const n=new Map,r=new Map;let i=null,o=null;const{rawDocument:s,rawCreateElement:a,rawCreateElementNS:c,rawAddEventListener:l,rawRemoveEventListener:u}=Gn;function h(e,n){const r=a.call(s,e,n);return r.__MICRO_APP_NAME__=t,r}function d(e,n,r){const i=c.call(s,e,n,r);return i.__MICRO_APP_NAME__=t,i}function f(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),l.call(s,t,e,r)}function p(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),u.call(s,t,e,r)}const m=()=>{r.clear(),o=null},g=(()=>{var t;const e=new Map([["onclick",t=>{_(i)&&u.call(s,"click",i,!1),_(t)&&l.call(s,"click",t,!1),i=t}]]),n=(null===(t=er.options)||void 0===t?void 0:t.customProxyDocumentProps)||new Map;return new Map([...e,...n])})(),v=new Proxy(s,{get:(n,r)=>{var o;return Y(t),"createElement"===r?h:"createElementNS"===r?d:r===Symbol.toStringTag?"ProxyDocument":"defaultView"===r?e.proxyWindow:"onclick"===r?i:"addEventListener"===r?f:"removeEventListener"===r?p:"microAppElement"===r?null===(o=Tn.get(t))||void 0===o?void 0:o.container:"__MICRO_APP_NAME__"===r?t:_e(Reflect.get(n,r),s,"DOCUMENT")},set:(t,e,n)=>{if(g.has(e)){g.get(e)(n)}else"microAppElement"!==e&&Reflect.set(t,e,n);return!0}});return{proxyDocument:v,documentEffect:{reset:m,record:()=>{o=i||o,n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{o&&!i&&(v.onclick=o),r.forEach((t,e)=>{for(const n of t)v.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),m()},release:()=>{_(i)&&u.call(s,"click",i),i=null,n.size&&(n.forEach((t,e)=>{for(const n of t)u.call(s,e,n)}),n.clear())}}}}(t,n),o=function(t,e){const{rawDocument:n,rawRootDocument:r}=Gn;class i{static[Symbol.hasInstance](t){let n=t;for(;n;)if(n=Object.getPrototypeOf(n),n===i.prototype)return!0;return t===e||t instanceof r}}return Object.setPrototypeOf(i,r),Object.setPrototypeOf(i.prototype,new Proxy(r.prototype,{get:(e,r)=>(Y(t),_e(Reflect.get(e,r),n,"DOCUMENT")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})),i}(t,r);return u(e,{document:{configurable:!1,enumerable:!0,get:()=>r},Document:{configurable:!1,enumerable:!1,get:()=>o}}),i}function xe(t,e,n){return function(t){const e=Gn.rawWindow;Object.getOwnPropertyNames(e).filter(t=>/^on/.test(t)&&!Nt.includes(t)).forEach(n=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,writable:!0};l(t,n,{enumerable:r,configurable:!0,get:()=>e[n],set:(null!=i?i:o)?t=>{e[n]=t}:void 0})})}(e),function(t,e,n){const r=Gn.rawWindow,i=new Map,o=new Proxy(e,{get:(e,i)=>(Y(t),Reflect.has(e,i)||g(i)&&/^__MICRO_APP_/.test(i)||L(n.scopeProperties,i)?(L(Gt,i)&&X(),Reflect.get(e,i)):_e(Reflect.get(r,i),r)),set:(t,e,i)=>{if(L(n.rawWindowScopeKeyList,e))Reflect.set(r,e,i);else if(d.call(t,e)||!d.call(r,e)||L(n.scopeProperties,e))Reflect.has(t,e)&&!L(n.scopeProperties,e)||n.injectedKeys.add(e),Reflect.set(t,e,i);else{const o=Object.getOwnPropertyDescriptor(r,e),{configurable:s,enumerable:a,writable:c,set:u}=o;l(t,e,{value:i,configurable:s,enumerable:a,writable:null!=c?c:!!u}),n.injectedKeys.add(e)}return(L(n.escapeProperties,e)||L(n.staticEscapeProperties,e)&&!Reflect.has(r,e))&&!L(n.scopeProperties,e)&&(!Reflect.has(r,e)&&n.escapeKeys.add(e),Reflect.set(r,e,i)),!0},has:(t,e)=>L(n.scopeProperties,e)?n.injectedKeys.has(e)?Reflect.has(t,e):!!t[e]:Reflect.has(t,e)||Reflect.has(r,e),getOwnPropertyDescriptor:(t,e)=>{if(d.call(t,e))return i.set(e,"target"),Object.getOwnPropertyDescriptor(t,e);if(d.call(r,e)){i.set(e,"rawWindow");const t=Object.getOwnPropertyDescriptor(r,e);return t&&!t.configurable&&(t.configurable=!0),t}},defineProperty:(t,e,n)=>"rawWindow"===i.get(e)?Reflect.defineProperty(r,e,n):Reflect.defineProperty(t,e,n),ownKeys:t=>Reflect.ownKeys(r).concat(Reflect.ownKeys(t)).filter((function(t){return!(t in this)&&(this[t]=!0)}),Object.create(null)),deleteProperty:(t,e)=>!d.call(t,e)||(n.injectedKeys.has(e)&&n.injectedKeys.delete(e),n.escapeKeys.has(e)&&Reflect.deleteProperty(r,e),Reflect.deleteProperty(t,e))});n.proxyWindow=o}(t,e,n),function(t,e){const n=new Map,r=new Map,i=new Map,o=new Map,{rawWindow:s,rawAddEventListener:a,rawRemoveEventListener:c,rawDispatchEvent:l,rawSetInterval:u,rawSetTimeout:h,rawClearInterval:d,rawClearTimeout:f}=Gn;function p(t){var n;return Ft.includes(t)&&(null===(n=Tn.get(e))||void 0===n?void 0:n.container)?$(Tn.get(e).container):s}t.addEventListener=function(t,e,r){const i=n.get(t);i?i.add(e):n.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),a.call(p(t),t,e,r)},t.removeEventListener=function(t,e,r){const i=n.get(t);(null==i?void 0:i.size)&&i.has(e)&&i.delete(e),c.call(p(t),t,e,r)},t.dispatchEvent=function(t){return l.call(p(null==t?void 0:t.type),t)},t.setInterval=function(t,e,...n){const r=u.call(s,t,e,...n);return i.set(r,{handler:t,timeout:e,args:n}),r},t.setTimeout=function(t,e,...n){const r=h.call(s,t,e,...n);return o.set(r,{handler:t,timeout:e,args:n}),r},t.clearInterval=function(t){i.delete(t),d.call(s,t)},t.clearTimeout=function(t){o.delete(t),f.call(s,t)};const m=()=>{r.clear()};return{reset:m,record:()=>{n.forEach((t,e)=>{if(t.size){const n=r.get(e)||[];r.set(e,new Set([...n,...t]))}})},rebuild:()=>{r.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),m()},release:t=>{n.size&&(n.forEach((t,e)=>{for(const n of t)c.call(p(e),e,n)}),n.clear()),t&&(i.forEach((t,e)=>{d.call(s,e)}),o.forEach((t,e)=>{f.call(s,e)}),i.clear(),o.clear())}}}(e,t)}function we(t,e){if(ke(t)){const n=Gn.rawWindow.history.state,r={microAppState:c({},null==n?void 0:n.microAppState,{[t]:e})};return c({},n,r)}return e}function Se(t){var e;const n=Gn.rawWindow.history.state;return ke(t)?(null===(e=null==n?void 0:n.microAppState)||void 0===e?void 0:e[t])||null:n}const Me=/&/g,Ae=/=/g,Ce=/%M1/g,Ee=/%M2/g;function Te(t){return encodeURIComponent(Pe(t).replace(Me,"%M1").replace(Ae,"%M2"))}function Ie(t){return Pe(t).replace(Ce,"&").replace(Ee,"=")}function Pe(t){try{const e=decodeURIComponent(t);return t===e||Ce.test(e)||Ee.test(e)?e:Pe(e)}catch(e){return t}}function Le(t){var e,n;if(Fe(t))return null;const r=Gn.rawWindow.location;if(ke(t)){const i=Oe(r.search,r.hash),o=(null===(e=i.hashQuery)||void 0===e?void 0:e[t])||(null===(n=i.searchQuery)||void 0===n?void 0:n[t]);return g(o)?Ie(o):null}return r.pathname+r.search+r.hash}function Re(t,e){const n=e.pathname+e.search+e.hash;let r=!1;if(ke(t)){let{pathname:e,search:i,hash:o}=Gn.rawWindow.location;const s=Oe(i,o),a=Te(n);if(o&&!i){r=!0,s.hashQuery?s.hashQuery[t]=a:s.hashQuery={[t]:a};const e=o.includes("?")?o.slice(0,o.indexOf("?")+1):o+"?";o=e+rt(s.hashQuery)}else s.searchQuery?s.searchQuery[t]=a:s.searchQuery={[t]:a},i="?"+rt(s.searchQuery);return{fullPath:e+i+o,isAttach2Hash:r}}return{fullPath:n,isAttach2Hash:r}}function Oe(t,e){const n={};return""!==t&&"?"!==t&&(n.searchQuery=nt(t.slice(1))),e.includes("?")&&(n.hashQuery=nt(e.slice(e.indexOf("?")+1))),n}function Be(t){const e=Tn.get(t);return!(!e||e.isPrefetch)}function ke(t){const e=Tn.get(t);return!(!e||!e.sandBox||"search"!==e.routerMode)}function De(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native"!==e.routerMode)}function Fe(t){const e=Tn.get(t);return!(!e||!e.sandBox||"pure"!==e.routerMode)}function Ne(t){return De(t)||function(t){const e=Tn.get(t);return!(!e||!e.sandBox||"native-scope"!==e.routerMode)}(t)}function je(t,e){const n=(e?"native":t)||er.options["disable-memory-router"]&&"native"||er.options["router-mode"]||"search";return Dt.includes(n)?n:"search"}function Ue(t){const e=Gn.rawWindow,n=e=>{Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(t)&&!e.onlyForBrowser&&ze(t,Le(t))};return e.addEventListener("popstate",n),()=>{e.removeEventListener("popstate",n)}}function ze(t,e){const n=Tn.get(t),r=n.sandBox.proxyWindow,i=n.sandBox.microAppWindow;let o=!1;const s=r.location.href;if(e){const n=r.location.hash;hn(t,e,i.location),o=r.location.hash!==n}!function(t,e,n){const r=new PopStateEvent("popstate",{state:Se(t)});n.dispatchEvent(r),Pn(t)||_(e.onpopstate)&&e.onpopstate(r)}(t,r,i),o&&function(t,e,n,r){const i=new HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:r});n.dispatchEvent(i),Pn(t)||_(e.onhashchange)&&e.onhashchange(i)}(t,r,i,s),X()}function Ge(t,e,n){X(),Be(t)&&(function(t){const e=new PopStateEvent("popstate",{state:null});t&&(e.onlyForBrowser=!0),Gn.rawWindow.dispatchEvent(e)}(e),n&&function(t){const e=new HashChangeEvent("hashchange",{newURL:Gn.rawWindow.location.href,oldURL:t});Gn.rawWindow.dispatchEvent(e)}(n))}function He(t,e){const n=Gn.rawWindow.history;function r(n){return function(...r){var i,o,s;if(g(r[2])||M(r[2])){const a=k(r[2],e.href),c=a.pathname+a.search+a.hash;Fe(t)||Ve(t,n,Re(t,a),!0,we(t,r[0]),r[1]),c!==e.fullPath&&hn(t,c,e),null===(s=null===(i=Tn.get(t))||void 0===i?void 0:(o=i.sandBox).updateIframeBase)||void 0===s||s.call(o)}else We(t,n,r[2],r[0],r[1])}}const i=r("pushState"),o=r("replaceState");return Pn(t)?{pushState:i,replaceState:o}:new Proxy(n,{get:(e,n)=>"state"===n?Se(t):"pushState"===n?i:"replaceState"===n?o:_e(Reflect.get(e,n),e,"HISTORY"),set:(t,e,n)=>(Reflect.set(t,e,n),!0)})}function We(t,e,n,r=null,i=""){if(Be(t)){("pushState"===e?Gn.rawPushState:Gn.rawReplaceState).call(Gn.rawWindow.history,r,i,n)}}function Ve(t,e,n,r,i,o){if(Be(t)){const s=Gn.rawWindow.location,a=s.pathname+s.search+s.hash,c=n.isAttach2Hash&&a!==n.fullPath?s.href:null;We(t,e,n.fullPath,i,o),a!==n.fullPath&&ke(t)&&Ge(t,r,c)}}function Ze(t,e,n){Ve(t,"replaceState",e,!0,n)}function Qe(t){const e=Gn.rawWindow;return function(...n){var r;if((null===(r=e.history.state)||void 0===r?void 0:r.microAppState)&&(!b(n[0])||!n[0].microAppState)&&(g(n[2])||M(n[2]))){const t=e.location.href;k(n[2],t).href===t&&(n[0]=c({},n[0],{microAppState:e.history.state.microAppState}))}t.apply(e.history,n),Qn({excludeHiddenApp:!0,excludePreRender:!0}).forEach(t=>{if(ke(t)&&!Le(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}),X()}}function Xe(){const t=Gn.rawWindow;t.history.pushState=Qe(Gn.rawPushState),t.history.replaceState=Qe(Gn.rawReplaceState)}function Ye(){const t=Gn.rawWindow;t.history.pushState=Gn.rawPushState,t.history.replaceState=Gn.rawReplaceState}const{router:Je,executeNavigationGuard:qe,clearRouterWhenUnmount:Ke}=function(){function t(t,e,n,r){const i=e.sandBox.proxyWindow.location,o=k(n.path,i.href),s=i.pathname+i.search+i.hash,a=o.pathname+o.search+o.hash;if(s!==a||Le(t)!==a){if(!Fe(t)){!function(t,e,n,r){Ve(t,e,Re(t,n),!1,we(t,null!=r?r:null)),X()}(t,r&&!1!==n.replace||!0===n.replace?"replaceState":"pushState",o,n.state)}(Ne(t)||Fe(t))&&ze(t,a)}}function e(e){return function(n){return new Promise((r,i)=>{const o=N(n.name);if(o&&g(n.path))if(Qn({excludeHiddenApp:!0,excludePreRender:!0}).includes(o)){const i=Tn.get(o);r(i.sandBox.sandboxReady.then(()=>t(o,i,n,e)))}else i(R("navigation failed, app does not exist or is inactive"));else i(R("navigation failed, name & path are required when use router."+(e?"replace":"push")))})}}function n(t){return function(...e){return Gn.rawWindow.history[t](...e)}}const r=it(),i=it();function o(t,e,n,r){X();for(const i of r)_(i)?i(e,n,t):b(i)&&_(i[t])&&i[t](e,n)}function a(t){if(ke(t)){Ze(t,Re(t,Tn.get(t).sandBox.proxyWindow.location),we(t,Se(t)))}}const c=Object.assign(Object.assign({current:new Map,encode:Te,decode:Ie,push:e(!1),replace:e(!0),go:n("go"),back:n("back"),forward:n("forward"),beforeEach:r.add,afterEach:i.add,attachToURL:function(t){(t=N(t))&&Qn().includes(t)&&a(t)},attachAllToURL:function({includeHiddenApp:t=!1,includePreRender:e=!1}){Qn({excludeHiddenApp:!t,excludePreRender:!e}).forEach(t=>a(t))}},function(){const t=function(){const t=new Map;return{add:function(e,n){return t.set(e,n),()=>!!t.has(e)&&t.delete(e)},get:e=>t.get(e),delete:e=>!!t.has(e)&&t.delete(e)}}();return{setDefaultPage:function(e){const n=N(e.name);return n&&e.path?t.add(n,e.path):s},removeDefaultPage:function(e){return!!(e=N(e))&&t.delete(e)},getDefaultPage:t.get}}()),function(){let t=null;return{setBaseAppRouter:function(e){x(e)&&(t=new Proxy(e,{get:(t,e)=>(X(),_e(Reflect.get(t,e),t,"BASEROUTER")),set:(t,e,n)=>(Reflect.set(t,e,n),!0)}))},getBaseAppRouter:()=>t}}());return{router:c,executeNavigationGuard:function(t,e,n){c.current.set(t,e),o(t,e,n,r.list()),G(()=>{o(t,e,n,i.list())})},clearRouterWhenUnmount:function(t){c.current.delete(t)}}}(),$e=["getComputedStyle","visualViewport","matchMedia","ResizeObserver","IntersectionObserver"],tn=[/animationFrame$/i,/mutationObserver$/i,/height$|width$/i,/offset$/i,/selection$/i,/^range/i,/^screen/i,/^scroll/i,/X$|Y$/],en=["body","head","html","title"],nn=["host","hostname","port","protocol","origin"],rn=["childElementCount","children","firstElementChild","firstChild","lastElementChild","activeElement","fullscreenElement","pictureInPictureElement","pointerLockElement","styleSheets"],on=["append","contains","replaceChildren","createRange","getSelection","elementFromPoint","elementsFromPoint","getAnimations"],sn=["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],an=["execCommand","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],cn=["href","pathname","search","hash","host","hostname","port","protocol","search","origin","fullPath"];function ln(t,e,n,r,i,o){const s=Gn.rawWindow.location,a=!!n,c=k(e);function u(){return a?n.location:c}function h(e,n){const r=k(e,v.href);if(r.origin===v.origin){const e=Re(t,r);if(ke(t)){if(r.pathname===v.pathname&&r.search===v.search){let i=null;return r.hash!==v.hash&&(e.isAttach2Hash&&(i=s.href),We(t,n,e.fullPath)),void(r.hash?Ge(t,!1,i):g())}if(e.isAttach2Hash)return We(t,n,e.fullPath),void g()}return e.fullPath}return e}function d(n,r){const i=k(n,e);i[r]===v[r]&&v.hash?Ge(t,!1):(We(t,i[r]===v[r]?"replaceState":"pushState",Re(t,i).fullPath),g())}const f=e=>function(n){if(Be(t)){const t=h(n,"assign"===e?"pushState":"replaceState");t&&s[e](k(t,s.origin).href)}},p=f("assign"),m=f("replace"),g=t=>s.reload(t);l(u(),"fullPath",{enumerable:!0,configurable:!0,get:()=>v.pathname+v.search+v.hash});const v=new Proxy({},{get:(e,n)=>{const c=u();if("assign"===n)return p;if("replace"===n)return m;if("reload"===n)return g;if("self"===n)return c;if("fullPath"===n)return c.fullPath;if(De(t))return _e(Reflect.get(s,n),s,"LOCATION");if(a){if(nn.includes(n))return r[n];if("href"===n)return c[n].replace(i,o)}return _e(Reflect.get(c,n),c,"LOCATION")},set:(n,r,i)=>{if(Be(t)){const n=u();if("href"===r){const t=h(i,"pushState");t&&(s.href=k(t,s.origin).href)}else if("pathname"===r)if(Ne(t))s.pathname=i;else{d(("/"+i).replace(/^\/+/,"/")+v.search+v.hash,"pathname")}else if("search"===r)if(Ne(t))s.search=i;else{d(v.pathname+("?"+i).replace(/^\?+/,"?")+v.hash,"search")}else if("hash"===r)if(Ne(t))s.hash=i;else{const n=v.pathname+v.search+("#"+i).replace(/^#+/,"#"),r=k(n,e);r.hash!==v.hash&&Ve(t,"pushState",Re(t,r),!1)}else Reflect.set(n,r,i)}return!0}});return v}function un(t,e){const n=c({name:t},e);for(const t of cn)n[t]=e[t];return n}function hn(t,e,n,r){var i;const o=un(t,n),s=k(e,n.href);if(Pn(t)){const e=Tn.get(t).sandBox.microAppWindow;null===(i=e.rawReplaceState)||void 0===i||i.call(e.history,Se(t),"",s.href)}else{let t=s.href;n.self.origin!==s.origin&&(t=t.replace(s.origin,n.self.origin)),n.self.href=t}const a=un(t,n);("auto"===r||o.fullPath!==a.fullPath&&"prevent"!==r)&&qe(t,a,o)}function dn(t,e,n){const r=Le(t);r?hn(t,r,e,"auto"):fn(t,e,n)}function fn(t,e,n){n&&hn(t,n,e,"prevent"),Fe(t)||Ze(t,Re(t,e),we(t,null)),function(t,e){qe(t,un(t,e),un(t,e))}(t,e)}function pn(t,e,n,r){if(!Ne(t)){if(!r){const{pathname:r,search:i,hash:o}=k(e);hn(t,r+i+o,n,"prevent")}Fe(t)||mn(t)}Ke(t)}function mn(t){Ze(t,function(t,e){var n,r,i,o;let{pathname:s,search:a,hash:c}=e||Gn.rawWindow.location,l=!1;if(ke(t)){const e=Oe(a,c);if(null===(n=e.hashQuery)||void 0===n?void 0:n[t]){l=!0,null===(r=e.hashQuery)||void 0===r||delete r[t];const n=rt(e.hashQuery);c=c.slice(0,c.indexOf("?")+Number(Boolean(n)))+n}else if(null===(i=e.searchQuery)||void 0===i?void 0:i[t]){null===(o=e.searchQuery)||void 0===o||delete o[t];const n=rt(e.searchQuery);a=n?"?"+n:""}}return{fullPath:s+a+c,isAttach2Hash:l}}(t),function(t,e){return ke(t)?(b(null==e?void 0:e.microAppState)&&(p(e.microAppState[t])||delete e.microAppState[t],Object.keys(e.microAppState).length||delete e.microAppState),c({},e)):e}(t,Gn.rawWindow.history.state))}class gn{}function vn(t,e){const n=Array.from(t.children);n.length&&n.forEach(t=>{vn(t,e)});for(const t of n)yn(t,e)}function yn(t,e){var n,r;const i=null===(r=null===(n=Tn.get(e))||void 0===n?void 0:n.sandBox)||void 0===r?void 0:r.proxyWindow;return C(t)&&!t.__MICRO_APP_NAME__&&!t.__PURE_ELEMENT__&&i&&u(t,{baseURI:{configurable:!0,get:()=>i.location.href},__MICRO_APP_NAME__:{configurable:!0,writable:!0,value:e}}),t}function _n(t,e){const n=p(e)?Gn.rawWindow.fetch:e;return _(n)?function(e,r,...i){return(g(e)||M(e))&&(e=k(e,t).toString()),X(),n.call(Gn.rawWindow,e,r,...i)}:n}function bn(t,e){const n=p(e)?Gn.rawWindow.XMLHttpRequest:e;return S(n)?class extends n{open(e,n,...r){(g(n)&&!/^f(ile|tp):\/\//.test(n)||M(n))&&(n=k(n,t).toString()),X(),super.open(e,n,...r)}}:n}const{createMicroEventSource:xn,clearMicroEventSource:wn}=function(){let t;return{createMicroEventSource:function(e,n,r){const i=p(r)?Gn.rawWindow.EventSource:r;return S(i)?class extends i{constructor(r,i,...o){if((g(r)||M(r))&&(r=k(r,n).toString()),X(),super(r,i,...o),t){const n=t.get(e);n?n.add(this):t.set(e,new Set([this]))}else t=new Map([[e,new Set([this])]])}close(){var n;super.close(),null===(n=t.get(e))||void 0===n||n.delete(this)}}:i},clearMicroEventSource:function(e){const n=null==t?void 0:t.get(e);(null==n?void 0:n.size)&&(n.forEach(t=>{t.close()}),n.clear())}}}();class Sn extends class{constructor(){this.rawWindowScopeKeyList=["location"],this.staticEscapeProperties=["System","__cjsWrapper"],this.staticScopeProperties=["webpackJsonp","webpackHotUpdate","Vue","onpopstate","onhashchange"],this.scopeProperties=Array.from(this.staticScopeProperties),this.escapeProperties=[],this.injectedKeys=new Set,this.escapeKeys=new Set,this.injectReactHMRProperty()}injectReactHMRProperty(){0}}{constructor(t,e){super(),this.active=!1,this.microAppWindow=new gn,this.patchWith(n=>{this.getSpecialProperties(t),this.patchRouter(t,e,this.microAppWindow),this.windowEffect=xe(t,this.microAppWindow,this),this.documentEffect=be(t,this.microAppWindow,this),this.setMappingPropertiesWithRawDescriptor(this.microAppWindow),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}start({umdMode:t,baseroute:e,defaultPage:n,disablePatchRequest:r}){this.active||(this.active=!0,this.initRouteState(n),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=e),t||this.initGlobalKeysWhenStart(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow,r),1==++Gn.activeSandbox&&(Nn(),Xe()),1==++Sn.activeCount&&window.__MICRO_APP_ENVIRONMENT__&&(ve(),window.addEventListener("unmount",ge,!1)),Gn.rawWindow._babelPolyfill&&(Gn.rawWindow._babelPolyfill=!1))}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({umdMode:t,clearData:r,destroy:n},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(wn(this.microAppWindow.__MICRO_APP_NAME__),this.injectedKeys.forEach(t=>{Reflect.deleteProperty(this.microAppWindow,t)}),this.injectedKeys.clear(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--Sn.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="with",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){this.windowEffect.reset(),this.documentEffect.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){this.windowEffect.record(),this.documentEffect.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){this.windowEffect.rebuild(),this.documentEffect.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({umdMode:t=!1,clearData:e=!1,isPrerender:n=!1,keepAlive:r=!1,destroy:i=!1}){var o,s,a;this.windowEffect.release(!t&&!r&&!n||i),this.documentEffect.release(),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearDataListener(),null===(s=this.microAppWindow.microApp)||void 0===s||s.clearGlobalDataListener(),e&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(a=this.microAppWindow.microApp)||void 0===a||a.clearData())}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&(a(e.scopeProperties)&&(this.scopeProperties=this.scopeProperties.concat(e.scopeProperties)),a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties)))}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchWith(t){this.sandboxReady=new Promise(e=>t(e))}setMappingPropertiesWithRawDescriptor(t){let e,n;const r=Gn.rawWindow;r===r.parent?e=n=this.proxyWindow:(e=r.top,n=r.parent),u(t,{top:this.createDescriptorForMicroAppWindow("top",e),parent:this.createDescriptorForMicroAppWindow("parent",n)}),zt.forEach(e=>{l(t,e,this.createDescriptorForMicroAppWindow(e,this.proxyWindow))})}createDescriptorForMicroAppWindow(t,e){const{configurable:n=!0,enumerable:r=!0,writable:i,set:o}=Object.getOwnPropertyDescriptor(Gn.rawWindow,t)||{writable:!0};return{value:e,configurable:n,enumerable:r,writable:null!=i?i:!!o}}initGlobalKeysWhenStart(t,e,n,r){n.hasOwnProperty=t=>d.call(n,t)||d.call(Gn.rawWindow,t),this.setHijackProperty(t,n),r||this.patchRequestApi(t,e,n),this.setScopeProperties(n)}setHijackProperty(t,e){let n,r;u(e,{eval:{configurable:!0,enumerable:!1,get:()=>(Y(t),n||Gn.rawWindow.eval),set:t=>{n=t}},Image:{configurable:!0,enumerable:!1,get:()=>(Y(t),r||Gn.ImageProxy),set:t=>{r=t}}})}patchRequestApi(t,e,n){let r=_n(e),i=bn(e),o=xn(t,e);u(n,{fetch:{configurable:!0,enumerable:!0,get:()=>r,set(t){r=_n(e,t)}},XMLHttpRequest:{configurable:!0,enumerable:!0,get:()=>i,set(t){i=bn(e,t)}},EventSource:{configurable:!0,enumerable:!0,get:()=>o,set(n){o=xn(t,e,n)}}})}setScopeProperties(t){this.scopeProperties.forEach(e=>{Reflect.set(t,e,t[e])})}patchRouter(t,e,n){const{microLocation:r,microHistory:i}=function(t,e){const n=ln(t,e);return{microLocation:n,microHistory:He(t,n)}}(t,e);u(n,{location:{configurable:!1,enumerable:!0,get:()=>r,set:t=>{Gn.rawWindow.location=t}},history:{configurable:!0,enumerable:!0,get:()=>i}})}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}function Mn(t,e,n){return function(t,e){const n=Gn.rawWindow;$e.forEach(t=>{e[t]=_e(n[t],n)}),Object.getOwnPropertyNames(e).filter(t=>(tn.some(r=>{if(r.test(t)&&t in e.parent){if(_(n[t]))e[t]=_e(n[t],n);else{const{configurable:r,enumerable:i}=Object.getOwnPropertyDescriptor(e,t)||{configurable:!0,enumerable:!0};r&&l(e,t,{configurable:r,enumerable:i,get:()=>n[t],set:e=>{n[t]=e}})}return!0}return!1}),/^on/.test(t)&&!Nt.includes(t))).forEach(r=>{const{enumerable:i,writable:o,set:s}=Object.getOwnPropertyDescriptor(e,r)||{enumerable:!0,writable:!0};try{l(e,r,{enumerable:i,configurable:!0,get:()=>n[r],set:(null!=o?o:s)?t=>{n[r]=_(t)?t.bind(e):t}:void 0})}catch(e){O(e,t)}})}(t,e),function(t,e){const n=Gn.rawWindow,r=new Set,i=new Proxy(t,{get:(t,o)=>"location"===o?e.proxyLocation:L(zt,o)?i:r.has(o)?Reflect.get(t,o):L(e.escapeProperties,o)&&!Reflect.has(t,o)?_e(Reflect.get(n,o),n):_e(Reflect.get(t,o),t),set:(t,i,o)=>"location"===i?Reflect.set(n,i,o):(Reflect.has(t,i)||r.add(i),Reflect.set(t,i,o),L(e.escapeProperties,i)&&(!Reflect.has(n,i)&&e.escapeKeys.add(i),Reflect.set(n,i,o)),!0),has:(t,e)=>e in t,deleteProperty:(t,r)=>!Reflect.has(t,r)||(e.escapeKeys.has(r)&&Reflect.deleteProperty(n,r),Reflect.deleteProperty(t,r))});e.proxyWindow=i}(e,n),function(t){const{rawWindow:e,rawAddEventListener:n,rawRemoveEventListener:r}=Gn,i=new Map,o=new Map;function s(n){return Ft.includes(n)?t:e}t.addEventListener=function(t,e,r){const o=i.get(t);o?o.add(e):i.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=r),n.call(s(t),t,e,r)},t.removeEventListener=function(t,e,n){const o=i.get(t);(null==o?void 0:o.size)&&o.has(e)&&o.delete(e),r.call(s(t),t,e,n)};const a=()=>{o.clear()};return{reset:a,record:()=>{i.forEach((t,e)=>{if(t.size){const n=o.get(e)||[];o.set(e,new Set([...n,...t]))}})},rebuild:()=>{o.forEach((e,n)=>{for(const r of e)t.addEventListener(n,r,null==r?void 0:r.__MICRO_APP_MARK_OPTIONS__)}),a()},release:()=>{i.size&&(i.forEach((t,e)=>{for(const n of t)r.call(s(e),e,n)}),i.clear())}}}(e)}function An(t,e,n){return function(t,e){const n=Gn.rawDocument,r=e.Document,i=e.document,o=r.prototype.createElement,s=r.prototype.createElementNS,a=r.prototype.createTextNode,c=r.prototype.createDocumentFragment,l=r.prototype.createComment,u=r.prototype.querySelector,h=r.prototype.querySelectorAll,d=r.prototype.getElementById,f=r.prototype.getElementsByClassName,p=r.prototype.getElementsByTagName,m=r.prototype.getElementsByName,g=r.prototype.elementFromPoint,v=r.prototype.caretRangeFromPoint;function y(t){return i!==t?t:n}function _(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return u.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelector(e))&&void 0!==r?r:null}function b(e){var n,r;if(!e||K(e)||i!==this){const t=y(this);return h.call(t,e)}return null!==(r=null===(n=Tn.get(t))||void 0===n?void 0:n.querySelectorAll(e))&&void 0!==r?r:[]}r.prototype.caretRangeFromPoint=function(e,r){const i=g.call(n,e,r),o=v.call(n,e,r);return yn(i,t),o},r.prototype.createElement=function(e,n){return yn(o.call(this,e,n),t)},r.prototype.createElementNS=function(e,n,r){return yn(s.call(this,e,n,r),t)},r.prototype.createTextNode=function(e){return yn(a.call(this,e),t)},r.prototype.createDocumentFragment=function(){return yn(c.call(this),t)},r.prototype.createComment=function(e){return yn(l.call(this,e),t)},r.prototype.querySelector=_,r.prototype.querySelectorAll=b,r.prototype.getElementById=function(t){const e=y(this);if(q(t))return d.call(e,t);try{return _.call(this,"#"+t)}catch(n){return d.call(e,t)}},r.prototype.getElementsByClassName=function(t){const e=y(this);if(q(t))return f.call(e,t);try{return b.call(this,"."+t)}catch(n){return f.call(e,t)}},r.prototype.getElementsByTagName=function(t){const e=y(this);if(K(t)||q(t))return p.call(e,t);if(/^script|base$/i.test(t))return p.call(i,t);try{return b.call(this,t)}catch(n){return p.call(e,t)}},r.prototype.getElementsByName=function(t){const e=y(this);if(q(t))return m.call(e,t);try{return b.call(this,`[name=${t}]`)}catch(n){return m.call(e,t)}}}(t,e),function(t,e,n){const r=Gn.rawDocument,i=e.Document,o=e.document,s=(t,e)=>{const{enumerable:n}=Object.getOwnPropertyDescriptor(i.prototype,t)||{enumerable:!0};return{configurable:!0,enumerable:n,get:e}};u(i.prototype,(()=>{const e={};return[["documentURI",()=>n.proxyLocation.href],["URL",()=>n.proxyLocation.href],["documentElement",()=>r.documentElement],["scrollingElement",()=>r.scrollingElement],["forms",()=>i.prototype.querySelectorAll.call(o,"form")],["images",()=>i.prototype.querySelectorAll.call(o,"img")],["links",()=>i.prototype.querySelectorAll.call(o,"a")],["microAppElement",()=>{var e;return null===(e=Tn.get(t))||void 0===e?void 0:e.container}],["__MICRO_APP_NAME__",()=>t]].forEach(t=>{e[t[0]]=s(t[0],t[1])}),rn.forEach(t=>{e[t]=s(t,()=>r[t])}),on.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),sn.forEach(t=>{e[t]=s(t,()=>r[t])}),an.forEach(t=>{e[t]=s(t,()=>_e(r[t],r,"DOCUMENT"))}),e})()),en.forEach(e=>{l(o,e,{enumerable:!0,configurable:!0,get:()=>(Y(t),r[e]),set:t=>{r[e]=t}})})}(t,e,n),function(t,e){const{rawDocument:n,rawAddEventListener:r,rawRemoveEventListener:i}=Gn,o=new Map,s=new Map;let a=null,c=null;const u=e.Document,h=e.document;function d(t,e){return jt.includes(t)?e:n}function f(t){return"onclick"===t?t=>{_(a)&&i.call(n,"click",a,!1),_(t)?(a=t.bind(h),r.call(n,"click",a,!1)):a=t}:e=>{n[t]=_(e)?e.bind(h):e}}u.prototype.addEventListener=function(t,e,n){const i=_(e)?e.__MICRO_APP_BOUND_FUNCTION__=e.__MICRO_APP_BOUND_FUNCTION__||e.bind(this):e,s=o.get(t);s?s.add(e):o.set(t,new Set([e])),e&&(e.__MICRO_APP_MARK_OPTIONS__=n),r.call(d(t,this),t,i,n)},u.prototype.removeEventListener=function(t,e,n){const r=o.get(t);(null==r?void 0:r.size)&&r.has(e)&&r.delete(e);const s=(null==e?void 0:e.__MICRO_APP_BOUND_FUNCTION__)||e;i.call(d(t,this),t,s,n)},Object.getOwnPropertyNames(u.prototype).filter(t=>/^on/.test(t)&&!Ut.includes(t)).forEach(e=>{const{enumerable:r,writable:i,set:o}=Object.getOwnPropertyDescriptor(u.prototype,e)||{enumerable:!0,writable:!0};try{l(u.prototype,e,{enumerable:r,configurable:!0,get:()=>"onclick"===e?a:n[e],set:(null!=i?i:o)?f(e):void 0})}catch(e){O(e,t)}});const p=()=>{s.clear(),c=null};return{reset:p,record:()=>{c=a||c,o.forEach((t,e)=>{if(t.size){const n=s.get(e)||[];s.set(e,new Set([...n,...t]))}})},rebuild:()=>{c&&!a&&(h.onclick=c),s.forEach((t,e)=>{for(const n of t)h.addEventListener(e,n,null==n?void 0:n.__MICRO_APP_MARK_OPTIONS__)}),p()},release:()=>{_(a)&&i.call(n,"click",a),a=null,o.size&&(o.forEach((t,e)=>{for(const n of t)i.call(d(e,h),e,(null==n?void 0:n.__MICRO_APP_BOUND_FUNCTION__)||n)}),o.clear())}}}(t,e)}function Cn(t,e,n,r){!function(t,e,n){const r=Gn.rawRootElement,i=Gn.rawDocument,o=e.document,s=e.Node,a=e.Element,c=s.prototype.appendChild,u=s.prototype.insertBefore,h=s.prototype.replaceChild,d=s.prototype.removeChild,p=a.prototype.append,m=a.prototype.prepend,g=a.prototype.insertAdjacentElement,v=s.prototype.cloneNode,y=Object.getOwnPropertyDescriptor(a.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(s.prototype,"parentNode"),b=Object.getOwnPropertyDescriptor(s.prototype,"ownerDocument"),x=t=>(I(t)||function(t){return"[object HTMLBaseElement]"===f(t)}(t))&&t.__PURE_ELEMENT__,w=t=>t===n.microHead?i.head:t===n.microBody?i.body:t;s.prototype.getRootNode=function(){return o},s.prototype.appendChild=function(e){return yn(e,t),x(e)?c.call(this,e):r.prototype.appendChild.call(w(this),e)},s.prototype.insertBefore=function(e,n){return yn(e,t),x(e)?u.call(this,e,n):r.prototype.insertBefore.call(w(this),e,n)},s.prototype.replaceChild=function(e,n){return yn(e,t),x(e)?h.call(this,e,n):r.prototype.replaceChild.call(w(this),e,n)},s.prototype.removeChild=function(t){return x(t)||this.contains(t)?d.call(this,t):r.prototype.removeChild.call(w(this),t)},a.prototype.append=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?p.call(this,...t):r.prototype.append.call(w(this),...t)},a.prototype.prepend=function(...t){let e=0,n=!1;for(;e<t.length;)t[e]=C(t[e])?t[e]:o.createTextNode(t[e]),x(t[e])&&(n=!0),e++;return n?m.call(this,...t):r.prototype.prepend.call(w(this),...t)},a.prototype.insertAdjacentElement=function(e,n){return yn(n,t),x(n)?g.call(this,e,n):r.prototype.insertAdjacentElement.call(w(this),e,n)},s.prototype.cloneNode=function(e){return yn(v.call(this,e),t)},l(s.prototype,"ownerDocument",{configurable:!0,enumerable:!0,get(){return this.__PURE_ELEMENT__?b.get.call(this):o}}),l(a.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return y.get.call(this)},set(e){y.set.call(this,e),Array.from(this.children).forEach(e=>{A(e)&&yn(e,t)})}}),l(s.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var e,n,r;Y(t);const i=_.get.call(this);return P(i)&&(null===(e=Tn.get(t))||void 0===e?void 0:e.container)?(null===(r=(n=er.options).getRootElementParentNode)||void 0===r?void 0:r.call(n,this,t))||Gn.rawDocument.body:i}});const S=new Proxy(e.Image,{construct(e,n){const r=new e(...n);return yn(r,t),r}});l(e,"Image",{configurable:!0,writable:!0,value:S})}(t,n,r),function(t,e){const n=e.Element,r=n.prototype.setAttribute;n.prototype.setAttribute=function(e,n){(("src"===e||"srcset"===e)&&/^(img|script)$/i.test(this.tagName)||"href"===e&&/^link$/i.test(this.tagName))&&(n=U(n,t)),r.call(this,e,n)};[[e.HTMLImageElement.prototype,"src"],[e.HTMLScriptElement.prototype,"src"],[e.HTMLLinkElement.prototype,"href"]].forEach(([e,n])=>{const{enumerable:r,configurable:i,get:o,set:s}=Object.getOwnPropertyDescriptor(e,n)||{enumerable:!0,configurable:!0};l(e,n,{enumerable:r,configurable:i,get:function(){return null==o?void 0:o.call(this)},set:function(e){null==s||s.call(this,U(e,t))}})})}(e,n)}Sn.activeCount=0;class En{constructor(t,e){this.active=!1,this.escapeProperties=[],this.escapeKeys=new Set,this.updateIframeBase=()=>{var t;null===(t=this.baseElement)||void 0===t||t.setAttribute("href",k(this.url).origin+this.proxyLocation.pathname)},this.appName=t,this.url=e;const n=Gn.rawWindow.location,r=n.protocol+"//"+n.host;this.deleteIframeElement=this.createIframeElement(t,r+n.pathname),this.microAppWindow=this.iframe.contentWindow,this.patchIframe(this.microAppWindow,n=>{this.createIframeTemplate(this.microAppWindow),this.getSpecialProperties(t),this.proxyLocation=function(t,e,n,r){const i=k(e),o=i.protocol+"//"+i.host,s=i.pathname+i.search+i.hash,a=n.history;return n.rawReplaceState=a.replaceState,c(a,He(t,n.location)),hn(t,s,n.location,"prevent"),ln(t,e,n,i,r,o)}(t,e,this.microAppWindow,r),this.windowEffect=Mn(t,this.microAppWindow,this),this.documentEffect=An(t,this.microAppWindow,this),Cn(t,e,this.microAppWindow,this),this.initStaticGlobalKeys(t,e,this.microAppWindow),n()})}createIframeElement(t,e){this.iframe=J("iframe");const n={src:er.options.iframeSrc||e,style:"display: none",id:t};return Object.keys(n).forEach(t=>this.iframe.setAttribute(t,n[t])),Gn.rawDocument.body.appendChild(this.iframe),()=>B(()=>{var t,e;null===(e=null===(t=this.iframe)||void 0===t?void 0:t.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null})}start({baseroute:t,defaultPage:e,disablePatchRequest:n}){this.active||(this.active=!0,this.initRouteState(e),this.removeHistoryListener=Ue(this.microAppWindow.__MICRO_APP_NAME__),Ne(this.microAppWindow.__MICRO_APP_NAME__)&&(this.microAppWindow.__MICRO_APP_BASE_ROUTE__=this.microAppWindow.__MICRO_APP_BASE_URL__=t),n||this.createIframeBase(),1==++Gn.activeSandbox&&(Nn(),Xe()),++En.activeCount)}stop({umdMode:t,keepRouteState:e,destroy:n,clearData:r}){var i;this.active&&(this.recordAndReleaseEffect({clearData:r},!t||n),this.clearRouteState(e),null===(i=this.removeHistoryListener)||void 0===i||i.call(this),t&&!n||(this.deleteIframeElement(),this.escapeKeys.forEach(t=>{Reflect.deleteProperty(Gn.rawWindow,t)}),this.escapeKeys.clear()),0==--Gn.activeSandbox&&(Un(),Ye()),--En.activeCount,this.active=!1)}initStaticGlobalKeys(t,e,n){n.__MICRO_APP_ENVIRONMENT__=!0,n.__MICRO_APP_NAME__=t,n.__MICRO_APP_URL__=e,n.__MICRO_APP_PUBLIC_PATH__=j(e),n.__MICRO_APP_BASE_ROUTE__="",n.__MICRO_APP_WINDOW__=n,n.__MICRO_APP_PRE_RENDER__=!1,n.__MICRO_APP_UMD_MODE__=!1,n.__MICRO_APP_PROXY_WINDOW__=this.proxyWindow,n.__MICRO_APP_SANDBOX__=this,n.__MICRO_APP_SANDBOX_TYPE__="iframe",n.rawWindow=Gn.rawWindow,n.rawDocument=Gn.rawDocument,n.microApp=c(new he(t),{removeDomScope:X,pureCreateElement:J,location:this.proxyLocation,router:Je})}recordAndReleaseEffect(t,e=!1){e?this.resetEffectSnapshot():this.recordEffectSnapshot(),this.releaseGlobalEffect(t)}resetEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.reset(),null===(e=this.documentEffect)||void 0===e||e.reset(),pe(this.microAppWindow.microApp)}recordEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.record(),null===(e=this.documentEffect)||void 0===e||e.record(),de(this.microAppWindow.microApp)}rebuildEffectSnapshot(){var t,e;null===(t=this.windowEffect)||void 0===t||t.rebuild(),null===(e=this.documentEffect)||void 0===e||e.rebuild(),fe(this.microAppWindow.microApp)}releaseGlobalEffect({clearData:t=!1}){var e,n,r,i,o;null===(e=this.windowEffect)||void 0===e||e.release(),null===(n=this.documentEffect)||void 0===n||n.release(),null===(r=this.microAppWindow.microApp)||void 0===r||r.clearDataListener(),null===(i=this.microAppWindow.microApp)||void 0===i||i.clearGlobalDataListener(),t&&(er.clearData(this.microAppWindow.__MICRO_APP_NAME__),null===(o=this.microAppWindow.microApp)||void 0===o||o.clearData())}setPreRenderState(t){this.microAppWindow.__MICRO_APP_PRE_RENDER__=t}markUmdMode(t){this.microAppWindow.__MICRO_APP_UMD_MODE__=t}patchIframe(t,e){const n=t.document;this.sandboxReady=new Promise(r=>{!function i(){setTimeout(()=>{try{t.document===n?i():(t.stop(),e(r))}catch(t){i()}},0)}()})}createIframeTemplate(t){const e=t.document;!function(t){for(;null==t?void 0:t.firstChild;)t.removeChild(t.firstChild)}(e);const n=e.createElement("html");n.innerHTML="<head></head><body></body>",e.appendChild(n),this.microBody=e.body,this.microHead=e.head}createIframeBase(){this.baseElement=J("base"),this.updateIframeBase(),this.microHead.appendChild(this.baseElement)}getSpecialProperties(t){var e;b(er.options.plugins)&&(this.commonActionForSpecialProperties(er.options.plugins.global),this.commonActionForSpecialProperties(null===(e=er.options.plugins.modules)||void 0===e?void 0:e[t]))}commonActionForSpecialProperties(t){if(a(t))for(const e of t)b(e)&&a(e.escapeProperties)&&(this.escapeProperties=this.escapeProperties.concat(e.escapeProperties))}initRouteState(t){dn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location,t)}clearRouteState(t){pn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.__MICRO_APP_URL__,this.microAppWindow.location,t)}setRouteInfoForKeepAliveApp(){fn(this.microAppWindow.__MICRO_APP_NAME__,this.microAppWindow.location)}removeRouteInfoForKeepAliveApp(){mn(this.microAppWindow.__MICRO_APP_NAME__)}patchStaticElement(t){vn(t,this.microAppWindow.__MICRO_APP_NAME__)}actionBeforeExecScripts(t){this.patchStaticElement(t)}setStaticAppState(t){this.microAppWindow.__MICRO_APP_STATE__=t}}En.activeCount=0;const Tn=new Map;class In{constructor({name:t,url:e,container:n,scopecss:r,useSandbox:i,inline:o,iframe:s,ssrUrl:a,isPrefetch:c,prefetchLevel:l,routerMode:u}){this.state=Ct.CREATED,this.keepAliveState=null,this.loadSourceLevel=0,this.umdHookMount=null,this.umdHookUnmount=null,this.lifeCycleState=null,this.umdMode=!1,this.sandBox=null,this.fiber=!1,Tn.set(t,this),this.name=t,this.url=e,this.useSandbox=i,this.scopecss=this.useSandbox&&r,this.iframe=null!=s&&s,this.inline=this.getInlineModeState(o),this.routerMode=u||"search",this.container=null!=n?n:null,this.ssrUrl=null!=a?a:"",this.isPrefetch=null!=c&&c,this.isPrerender=3===l,this.prefetchLevel=l,this.source={html:null,links:new Set,scripts:new Set},this.loadSourceCode(),this.createSandbox()}loadSourceCode(){this.setAppState(Ct.LOADING),ft.getInstance().run(this,se)}onLoad({html:t,defaultPage:e,routerMode:n,baseroute:r,disablePatchRequest:i}){var o;if(2==++this.loadSourceLevel)if(this.source.html=t,this.isPrefetch||this.isUnmounted()){if(this.isPrerender){const t=J("div");t.setAttribute("prerender","true"),null===(o=this.sandBox)||void 0===o||o.setPreRenderState(!0),this.mount({container:t,inline:this.inline,fiber:!0,defaultPage:e||"",disablePatchRequest:null!=i&&i,routerMode:n,baseroute:r||""})}}else $(this.container).mount(this)}onLoadError(t){this.loadSourceLevel=-1,this.isUnmounted()||(this.onerror(t),this.setAppState(Ct.LOAD_FAILED))}mount({container:t,inline:e,routerMode:n,defaultPage:r,baseroute:i,disablePatchRequest:o,fiber:s}){if(2!==this.loadSourceLevel)return this.container=t,this.isPrerender=!1,ht(this,"statechange",{appState:Ct.LOADING}),this.setAppState(Ct.LOADING);this.createSandbox(),this.setAppState(Ct.BEFORE_MOUNT);const a=()=>{var a,c,l,u,h,d,m,v;if(this.isPrerender&&(v=this.container,"[object HTMLDivElement]"===f(v))&&this.container.hasAttribute("prerender"))null===(a=this.sandBox)||void 0===a||a.rebuildEffectSnapshot(),this.cloneContainer(t,this.container,!1),this.container=t,null===(c=this.preRenderEvents)||void 0===c||c.forEach(t=>t()),this.isPrerender=!1,this.preRenderEvents=null,Je.attachToURL(this.name),null===(l=this.sandBox)||void 0===l||l.setPreRenderState(!1);else{this.container=t,this.inline=this.getInlineModeState(e),this.fiber=s,this.routerMode=n;const a=()=>{this.setLifeCycleState(Et.BEFOREMOUNT),ut(this.container,this.name,Et.BEFOREMOUNT)};if(this.isPrerender?(null!==(u=this.preRenderEvents)&&void 0!==u?u:this.preRenderEvents=[]).push(a):a(),this.setAppState(Ct.MOUNTING),ht(this,"statechange",{appState:Ct.MOUNTING}),this.cloneContainer(this.container,this.source.html,!this.umdMode),null===(h=this.sandBox)||void 0===h||h.start({umdMode:this.umdMode,baseroute:i,defaultPage:r,disablePatchRequest:o}),this.umdMode){null===(m=this.sandBox)||void 0===m||m.rebuildEffectSnapshot();try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else null===(d=this.sandBox)||void 0===d||d.actionBeforeExecScripts(this.container),function(t,e){const n=t.fiber?[]:null,r=Array.from(t.source.scripts),i=[],o=[];for(const s of r){const r=Lt.script.getInfo(s),a=r.appSpace[t.name];a.defer||a.async?(!r.isExternal||r.code||Vt(t,r)?i.push(r.code):i.push(dt(s,t.name)),o.push([s,r]),Vt(t,r)&&(e.moduleCount=e.moduleCount?++e.moduleCount:1)):st(n,()=>{re(s,t,r),e(!1)})}i.length?z(i,t=>{const e=o[t.index][1];e.code=e.code||t.data},n=>{e.errorCount=e.errorCount?++e.errorCount:1,R(n,t.name)},()=>{o.forEach(([r,i])=>{g(i.code)&&st(n,()=>{re(r,t,i,e),!Vt(t,i)&&e(!1)})}),n?(n.push(()=>Promise.resolve(e(p(e.moduleCount)||e.errorCount===i.length))),at(n)):e(p(e.moduleCount)||e.errorCount===i.length)}):n?(n.push(()=>Promise.resolve(e(!0))),at(n)):e(!0)}(this,t=>{if(!this.umdMode){const{mount:e,unmount:n}=this.getUmdLibraryHooks();if(this.umdHookUnmount=n,_(e)&&_(n)){this.umdHookMount=e,this.sandBox.markUmdMode(this.umdMode=!0);try{this.handleMounted(this.umdHookMount(er.getData(this.name,!0)))}catch(t){R("An error occurred in window.mount \n",this.name,t)}}else!0===t&&this.handleMounted()}})}};this.sandBox?this.sandBox.sandboxReady.then(a):a()}handleMounted(t){var e,n;const r=()=>{w(t)?t.then(()=>this.dispatchMountedEvent()).catch(t=>{R("An error occurred in window.mount \n",this.name,t),this.dispatchMountedEvent()}):this.dispatchMountedEvent()};this.isPrerender?(null===(e=this.preRenderEvents)||void 0===e||e.push(r),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({isPrerender:!0})):r()}dispatchMountedEvent(){var t;this.isUnmounted()||(this.setAppState(Ct.MOUNTED),lt(this.getMicroAppGlobalHook(Tt.ONMOUNT),this.name,Tt.ONMOUNT,er.getData(this.name,!0)),ht(this,"statechange",{appState:Ct.MOUNTED}),ht(this,"mounted"),this.setLifeCycleState(Et.MOUNTED),ut(this.container,this.name,Et.MOUNTED),this.isHidden()&&(null===(t=this.sandBox)||void 0===t||t.recordAndReleaseEffect({keepAlive:!0})))}unmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;t=t||this.state===Ct.LOAD_FAILED,this.setAppState(Ct.UNMOUNT);let o=null;try{o=null===(i=this.umdHookUnmount)||void 0===i?void 0:i.call(this,er.getData(this.name,!0))}catch(t){R("An error occurred in window.unmount \n",this.name,t)}ht(this,"statechange",{appState:Ct.UNMOUNT}),ht(this,"unmount"),lt(this.getMicroAppGlobalHook(Tt.ONUNMOUNT),this.name,Tt.ONUNMOUNT),this.handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:o})}handleUnmounted({destroy:t,clearData:e,keepRouteState:n,unmountcb:r,umdHookUnmountResult:i}){const o=()=>this.actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r});w(i)?(X(),i.then(o).catch(o)):o()}actionsForUnmount({destroy:t,clearData:e,keepRouteState:n,unmountcb:r}){var i;this.umdMode&&this.container&&!t&&this.cloneContainer(this.source.html,this.container,!1),null===(i=this.sandBox)||void 0===i||i.stop({umdMode:this.umdMode,keepRouteState:n&&!t,destroy:t,clearData:e||t}),this.setLifeCycleState(Et.UNMOUNT),ut(this.container,this.name,Et.UNMOUNT),this.clearOptions(t),null==r||r()}clearOptions(t){this.container.innerHTML="",this.container=null,this.isPrerender=!1,this.preRenderEvents=null,this.setKeepAliveState(null),this.iframe&&!this.umdMode&&(this.sandBox=null),t&&this.actionsForCompletelyDestroy(),X()}actionsForCompletelyDestroy(){var t,e;null===(e=null===(t=this.sandBox)||void 0===t?void 0:t.deleteIframeElement)||void 0===e||e.call(t),Lt.script.deleteInlineInfo(this.source.scripts),Tn.delete(this.name)}hiddenKeepAliveApp(t){var e,n;this.setKeepAliveState(It.KEEP_ALIVE_HIDDEN),ht(this,"appstate-change",{appState:"afterhidden"}),this.setLifeCycleState(Et.AFTERHIDDEN),ut(this.container,this.name,Et.AFTERHIDDEN),ke(this.name)&&(null===(e=this.sandBox)||void 0===e||e.removeRouteInfoForKeepAliveApp()),2!==this.loadSourceLevel?$(this.container).unmount():(this.container=this.cloneContainer(J("div"),this.container,!1),null===(n=this.sandBox)||void 0===n||n.recordAndReleaseEffect({keepAlive:!0})),null==t||t()}showKeepAliveApp(t){var e,n;null===(e=this.sandBox)||void 0===e||e.rebuildEffectSnapshot(),ht(this,"appstate-change",{appState:"beforeshow"}),ut(t,this.name,Et.BEFORESHOW),this.setKeepAliveState(It.KEEP_ALIVE_SHOW),this.container=this.cloneContainer(t,this.container,!1),ke(this.name)&&(null===(n=this.sandBox)||void 0===n||n.setRouteInfoForKeepAliveApp()),ht(this,"appstate-change",{appState:"aftershow"}),this.setLifeCycleState(Et.AFTERSHOW),ut(this.container,this.name,Et.AFTERSHOW)}onerror(t){this.setLifeCycleState(Et.ERROR),ht(this,"statechange",{appState:Ct.LOAD_FAILED}),ut(this.container,this.name,Et.ERROR,t)}parseHtmlString(t){var e;return(new((null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)?this.sandBox.proxyWindow.DOMParser:Gn.rawWindow.DOMParser)).parseFromString(t,"text/html").body}cloneContainer(t,e,n){return e&&(t.innerHTML="",Array.from(n?this.parseHtmlString(e.innerHTML).childNodes:e.childNodes).forEach(e=>{t.appendChild(e)})),t}createSandbox(){this.useSandbox&&!this.sandBox&&(this.sandBox=this.iframe?new En(this.name,this.url):new Sn(this.name,this.url))}setAppState(t){var e;this.state=t,null===(e=this.sandBox)||void 0===e||e.setStaticAppState(t)}getAppState(){return this.state}setLifeCycleState(t){this.lifeCycleState=t}getLifeCycleState(){return this.lifeCycleState||""}setKeepAliveState(t){this.keepAliveState=t}getKeepAliveState(){return this.keepAliveState}isUnmounted(){return Ct.UNMOUNT===this.state}isHidden(){return It.KEEP_ALIVE_HIDDEN===this.keepAliveState}getUmdLibraryHooks(){if(!this.isUnmounted()&&this.sandBox){const t=$(this.container).getAttribute("library")||"micro-app-"+this.name,e=this.sandBox.proxyWindow;return x(e[t])?e[t]:{mount:e.mount,unmount:e.unmount}}return{}}getMicroAppGlobalHook(t){var e,n;const r=null===(n=null===(e=this.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n[t];return _(r)?r:null}querySelector(t){return this.container?Gn.rawElementQuerySelector.call(this.container,t):null}querySelectorAll(t){return this.container?Gn.rawElementQuerySelectorAll.call(this.container,t):[]}getInlineModeState(t){var e;return null!==(e=this.iframe||t)&&void 0!==e&&e}}function Pn(t){var e,n;return null!==(n=null===(e=Tn.get(t))||void 0===e?void 0:e.iframe)&&void 0!==n&&n}const Ln=new WeakMap;function Rn(t){var e;return null!==(e=Ln.get(t))&&void 0!==e?e:t}function On(t,e){if(Ln.has(t))return Ln.get(t);if(T(t)){if(t.hasAttribute("exclude")){const e=document.createComment("style element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}return e.scopecss&&!t.hasAttribute("ignore")?bt(t,e):t}if(E(t)){if(t.hasAttribute("exclude")||te(t.getAttribute("href"),e.name)){const e=document.createComment("link element with exclude attribute ignored by micro-app");return Ln.set(t,e),e}if(t.hasAttribute("ignore")||ee(t.getAttribute("href"),e.name)||t.href&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.href))return t;const{address:n,linkInfo:r,replaceComment:i}=Rt(t,null,e,!0);if(n&&r){const i=function(t,e,n,r){const i=J("style"),o=()=>{Bt(e,t,i,n,n.appSpace[e.name].attrs),St(r)};return n.code?B(o):dt(t,e.name).then(t=>{n.code=t,o()}).catch(t=>{R(t,e.name),Mt(r)}),i}(n,e,r,t);return Ln.set(t,i),i}return i?(Ln.set(t,i),i):t}if(I(t)){if(t.src&&_(er.options.excludeAssetFilter)&&er.options.excludeAssetFilter(t.src))return t;const{replaceComment:n,address:r,scriptInfo:i}=Kt(t,null,e,!0)||{};if(r&&i){const n=i.isExternal?function(t,e,n,r){const i=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app"),o=()=>St(r),s=()=>{const s=Object.getOwnPropertyDescriptor(Gn.rawDocument,"currentScript");s&&!s.configurable||Object.defineProperty(Gn.rawDocument,"currentScript",{value:r,configurable:!0}),re(t,e,n,o,i),!Vt(e,n)&&o()};return n.code||Vt(e,n)?B(s):dt(t,e.name).then(t=>{n.code=t,s()}).catch(t=>{R(t,e.name),Mt(r)}),i}(r,e,i,t):function(t,e,n){const r=Zt(e,n)?J("script"):document.createComment("dynamic script extract by micro-app");return re(t,e,n,void 0,r),r}(r,e,i);return Ln.set(t,n),n}return n?(Ln.set(t,n),n):t}return t}function Bn(t,e,n,r,i){const o=kn(n,r,t);if(o){if(!Pn(t.name)&&P(o)&&e!==Gn.rawRemoveChild){const e=Object.getOwnPropertyDescriptor(r,"parentNode");e&&!e.configurable||r.__MICRO_APP_HAS_DPN__||u(r,{parentNode:{configurable:!0,get(){var e,n;const r=Gn.rawParentNodeDesc.get.call(this);return P(r)&&t.container?(null===(n=(e=er.options).getRootElementParentNode)||void 0===n?void 0:n.call(e,this,t.name))||document.body:r}},__MICRO_APP_HAS_DPN__:{configurable:!0,get:()=>!0}})}if(i&&!o.contains(i)){if(e===Gn.rawInsertBefore&&n.contains(i)){const t=Array.from(n.childNodes).indexOf(i);if(o.childNodes[t])return Dn(e,o,r,o.childNodes[t])}return Gn.rawAppendChild.call(o,r)}return e!==Gn.rawRemoveChild||o.contains(r)?Dn(e,o,r,i):n.contains(r)?e.call(n,r):r}return Dn(e,n,r,i)}function kn(t,e,n){if(n){if(t===document.head)return n.iframe&&I(e)?n.sandBox.microHead:n.querySelector("micro-app-head");if(t===document.body||t===document.body.parentNode)return n.iframe&&I(e)?n.sandBox.microBody:n.querySelector("micro-app-body");if(n.iframe&&I(e))return n.sandBox.microBody}return null}function Dn(t,e,n,r){return(i=t)===Gn.rawAppend||i===Gn.rawPrepend?t.call(e,n):t.call(e,n,r);var i}function Fn(t,e,n,r){const i=Z();if(C(e)&&!e.__PURE_ELEMENT__&&(e.__MICRO_APP_NAME__||i)){e.__MICRO_APP_NAME__=e.__MICRO_APP_NAME__||i;const o=Tn.get(e.__MICRO_APP_NAME__);if(T(e)){t.getRootNode()instanceof ShadowRoot&&e.setAttribute("ignore","true")}if(null==o?void 0:o.container)return function(t,e){A(e)&&(/^(img|script)$/i.test(e.tagName)?(e.hasAttribute("src")&&Gn.rawSetAttribute.call(e,"src",U(e.getAttribute("src"),t.url)),e.hasAttribute("srcset")&&Gn.rawSetAttribute.call(e,"srcset",U(e.getAttribute("srcset"),t.url))):/^link$/i.test(e.tagName)&&e.hasAttribute("href")&&Gn.rawSetAttribute.call(e,"href",U(e.getAttribute("href"),t.url)))}(o,e),Bn(o,r,t,On(e,o),n&&Rn(n))}return r===Gn.rawAppend||r===Gn.rawPrepend?r.call(t,e):r.call(t,e,n)}function Nn(){!function(){const t=Gn.rawDocument,e=Gn.rawRootDocument;function n(e){return function(t){return"[object ProxyDocument]"===f(t)}(e)?t:e}function r(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelector(e))&&void 0!==i?i:null:Gn.rawQuerySelector.call(o,e)}function i(e){var r,i;const o=n(this),s=Z();return s&&e&&!K(e)&&t===o?null!==(i=null===(r=Tn.get(s))||void 0===r?void 0:r.querySelectorAll(e))&&void 0!==i?i:[]:Gn.rawQuerySelectorAll.call(o,e)}e.prototype.createElement=function(t,e){return jn(Gn.rawCreateElement.call(n(this),t,e))},e.prototype.createElementNS=function(t,e,r){return jn(Gn.rawCreateElementNS.call(n(this),t,e,r))},e.prototype.createDocumentFragment=function(){return jn(Gn.rawCreateDocumentFragment.call(n(this)))},e.prototype.createComment=function(t){return jn(Gn.rawCreateComment.call(n(this),t))},e.prototype.querySelector=r,e.prototype.querySelectorAll=i,e.prototype.getElementById=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementById.call(e,t);try{return r.call(e,"#"+t)}catch(n){return Gn.rawGetElementById.call(e,t)}},e.prototype.getElementsByClassName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByClassName.call(e,t);try{return i.call(e,"."+t)}catch(n){return Gn.rawGetElementsByClassName.call(e,t)}},e.prototype.getElementsByTagName=function(t){var e;const r=n(this),o=Z();if(!o||K(t)||q(t)||!(null===(e=Tn.get(o))||void 0===e?void 0:e.inline)&&/^script$/i.test(t))return Gn.rawGetElementsByTagName.call(r,t);try{return i.call(r,t)}catch(e){return Gn.rawGetElementsByTagName.call(r,t)}},e.prototype.getElementsByName=function(t){const e=n(this);if(!Z()||q(t))return Gn.rawGetElementsByName.call(e,t);try{return i.call(e,`[name=${t}]`)}catch(n){return Gn.rawGetElementsByName.call(e,t)}}}();const t=Gn.rawRootElement,e=Gn.rawRootNode;function n(t){const e=Z();if((t===document.body||t===document.head)&&e){const n=Tn.get(e);if(null==n?void 0:n.container){if(t===document.body)return n.querySelector("micro-app-body");if(t===document.head)return n.querySelector("micro-app-head")}}return t}t.prototype.appendChild=function(t){return Fn(this,t,null,Gn.rawAppendChild)},t.prototype.insertBefore=function(t,e){return Fn(this,t,e,Gn.rawInsertBefore)},t.prototype.replaceChild=function(t,e){return Fn(this,t,e,Gn.rawReplaceChild)},t.prototype.append=function(...t){let e=0;for(;e<t.length;){let n=t[e];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawAppend),e++}},t.prototype.prepend=function(...t){let e=t.length;for(;e>0;){let n=t[e-1];n=C(n)?n:Gn.rawCreateTextNode.call(Gn.rawDocument,n),Fn(this,jn(n),null,Gn.rawPrepend),e--}},t.prototype.removeChild=function(t){if(null==t?void 0:t.__MICRO_APP_NAME__){const e=Tn.get(t.__MICRO_APP_NAME__);if(null==e?void 0:e.container)return Bn(e,Gn.rawRemoveChild,this,Rn(t));try{return Gn.rawRemoveChild.call(this,t)}catch(e){return(null==t?void 0:t.parentNode)&&Gn.rawRemoveChild.call(t.parentNode,t)}}return Gn.rawRemoveChild.call(this,t)},t.prototype.insertAdjacentElement=function(t,e){var n;if((null==e?void 0:e.__MICRO_APP_NAME__)&&A(e)){const r=Tn.get(e.__MICRO_APP_NAME__);if(null==r?void 0:r.container){const i=On(e,r);if(!A(i))return e;const o=null!==(n=kn(this,i,r))&&void 0!==n?n:this;return Gn.rawInsertAdjacentElement.call(o,t,i)}}return Gn.rawInsertAdjacentElement.call(this,t,e)},t.prototype.cloneNode=function(t){const e=Gn.rawCloneNode.call(this,t);return this.__MICRO_APP_NAME__&&(e.__MICRO_APP_NAME__=this.__MICRO_APP_NAME__),e},t.prototype.querySelector=function(t){var e;return Gn.rawElementQuerySelector.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.querySelectorAll=function(t){var e;return Gn.rawElementQuerySelectorAll.call(null!==(e=n(this))&&void 0!==e?e:this,t)},t.prototype.setAttribute=function(t,e){const n=this.__MICRO_APP_NAME__||Z();if(n&&Tn.has(n)&&(("src"===t||"srcset"===t)&&/^(img|script|video|audio|source|embed)$/i.test(this.tagName)||"href"===t&&/^link$/i.test(this.tagName))){e=U(e,Tn.get(n).url)}Gn.rawSetAttribute.call(this,t,e)},l(t.prototype,"innerHTML",{configurable:!0,enumerable:!0,get(){return Gn.rawInnerHTMLDesc.get.call(this)},set(t){Gn.rawInnerHTMLDesc.set.call(this,t);const e=Z();Array.from(this.children).forEach(t=>{A(t)&&e&&(t.__MICRO_APP_NAME__=e)})}}),l(e.prototype,"parentNode",{configurable:!0,enumerable:!0,get(){var t,e,n;const r=Z();if(r&&this===Gn.rawDocument.firstElementChild){const i=null===(n=null===(e=null===(t=Tn.get(r))||void 0===t?void 0:t.sandBox)||void 0===e?void 0:e.proxyWindow)||void 0===n?void 0:n.document;if(i)return i}return Gn.rawParentNodeDesc.get.call(this)}})}function jn(t){const e=Z();return e&&(t.__MICRO_APP_NAME__=e),t}function Un(){X(),function(){const t=Gn.rawRootDocument;t.prototype.createElement=Gn.rawCreateElement,t.prototype.createElementNS=Gn.rawCreateElementNS,t.prototype.createDocumentFragment=Gn.rawCreateDocumentFragment,t.prototype.querySelector=Gn.rawQuerySelector,t.prototype.querySelectorAll=Gn.rawQuerySelectorAll,t.prototype.getElementById=Gn.rawGetElementById,t.prototype.getElementsByClassName=Gn.rawGetElementsByClassName,t.prototype.getElementsByTagName=Gn.rawGetElementsByTagName,t.prototype.getElementsByName=Gn.rawGetElementsByName}();const t=Gn.rawRootElement,e=Gn.rawRootNode;t.prototype.appendChild=Gn.rawAppendChild,t.prototype.insertBefore=Gn.rawInsertBefore,t.prototype.replaceChild=Gn.rawReplaceChild,t.prototype.removeChild=Gn.rawRemoveChild,t.prototype.append=Gn.rawAppend,t.prototype.prepend=Gn.rawPrepend,t.prototype.cloneNode=Gn.rawCloneNode,t.prototype.querySelector=Gn.rawElementQuerySelector,t.prototype.querySelectorAll=Gn.rawElementQuerySelectorAll,t.prototype.setAttribute=Gn.rawSetAttribute,l(t.prototype,"innerHTML",Gn.rawInnerHTMLDesc),l(e.prototype,"parentNode",Gn.rawParentNodeDesc)}let zn=!1;const Gn={activeSandbox:0};function Hn(){if(i){const t=window.rawWindow||Function("return window")(),e=window.rawDocument||Function("return document")(),n=t.Document||Function("return Document")(),r=t.Element,i=t.Node,o=t.EventTarget,s=r.prototype.setAttribute,a=r.prototype.appendChild,l=r.prototype.insertBefore,u=r.prototype.replaceChild,h=r.prototype.removeChild,d=r.prototype.append,f=r.prototype.prepend,p=r.prototype.cloneNode,m=r.prototype.querySelector,g=r.prototype.querySelectorAll,v=r.prototype.insertAdjacentElement,y=Object.getOwnPropertyDescriptor(r.prototype,"innerHTML"),_=Object.getOwnPropertyDescriptor(i.prototype,"parentNode"),b=n.prototype.createElement,x=n.prototype.createElementNS,w=n.prototype.createTextNode,S=n.prototype.createDocumentFragment,M=n.prototype.createComment,A=n.prototype.querySelector,C=n.prototype.querySelectorAll,E=n.prototype.getElementById,T=n.prototype.getElementsByClassName,I=n.prototype.getElementsByTagName,P=n.prototype.getElementsByName,L=new Proxy(Image,{construct(t,e){const n=new t(...e),r=Z();return r&&(n.__MICRO_APP_NAME__=r),n}}),R=t.setInterval,O=t.setTimeout,B=t.clearInterval,k=t.clearTimeout,D=t.history.pushState,F=t.history.replaceState,N=o.prototype.addEventListener,j=o.prototype.removeEventListener,U=o.prototype.dispatchEvent;window.__MICRO_APP_BASE_APPLICATION__=!0,c(Gn,{supportModuleScript:"noModule"in document.createElement("script"),rawWindow:t,rawDocument:e,rawRootDocument:n,rawRootElement:r,rawRootNode:i,rawSetAttribute:s,rawAppendChild:a,rawInsertBefore:l,rawReplaceChild:u,rawRemoveChild:h,rawAppend:d,rawPrepend:f,rawCloneNode:p,rawElementQuerySelector:m,rawElementQuerySelectorAll:g,rawInsertAdjacentElement:v,rawInnerHTMLDesc:y,rawParentNodeDesc:_,rawCreateElement:b,rawCreateElementNS:x,rawCreateDocumentFragment:S,rawCreateTextNode:w,rawCreateComment:M,rawQuerySelector:A,rawQuerySelectorAll:C,rawGetElementById:E,rawGetElementsByClassName:T,rawGetElementsByTagName:I,rawGetElementsByName:P,ImageProxy:L,rawSetInterval:R,rawSetTimeout:O,rawClearInterval:B,rawClearTimeout:k,rawPushState:D,rawReplaceState:F,rawAddEventListener:N,rawRemoveEventListener:j,rawDispatchEvent:U}),function(){if(!zn){zn=!0;const t=J("style");Gn.rawSetAttribute.call(t,"type","text/css"),t.textContent=`\n${er.tagName}, micro-app-body { display: block; } \nmicro-app-head { display: none; }`,Gn.rawDocument.head.appendChild(t)}}()}}function Wn(t){class e extends(function(){var t;return(null===(t=window.rawWindow)||void 0===t?void 0:t.HTMLElement)||window.HTMLElement}()){constructor(){super(...arguments),this.isWaiting=!1,this.cacheData=null,this.connectedCount=0,this.connectStateMap=new Map,this.appName="",this.appUrl="",this.ssrUrl="",this.version=r,this.handleAttributeUpdate=()=>{this.isWaiting=!1;const t=N(this.getAttribute("name")),e=F(this.getAttribute("url"),this.appName);if(this.legalAttribute("name",t)&&this.legalAttribute("url",e)){const n=Tn.get(t);if(t!==this.appName&&n&&!n.isUnmounted()&&!n.isHidden()&&!n.isPrefetch)return this.setAttribute("name",this.appName),R(`app name conflict, an app named ${t} is running`);t===this.appName&&e===this.appUrl||(t===this.appName?this.unmount(!0,()=>{this.actionsForAttributeChange(t,e,n)}):this.getKeepAliveModeResult()?(this.handleHiddenKeepAliveApp(),this.actionsForAttributeChange(t,e,n)):this.unmount(!1,()=>{this.actionsForAttributeChange(t,e,n)}))}else t!==this.appName&&this.setAttribute("name",this.appName)}}static get observedAttributes(){return["name","url"]}connectedCallback(){const t=++this.connectedCount;this.connectStateMap.set(t,!0);const e=this.appName&&this.appUrl;B(()=>{this.connectStateMap.get(t)&&(ut(this,this.appName,Et.CREATED),e&&this.handleConnected())})}disconnectedCallback(){this.connectStateMap.set(this.connectedCount,!1),this.handleDisconnected()}reload(t){return new Promise(e=>{const n=()=>{this.removeEventListener(Et.MOUNTED,n),this.removeEventListener(Et.AFTERSHOW,n),e(!0)};this.addEventListener(Et.MOUNTED,n),this.addEventListener(Et.AFTERSHOW,n),this.handleDisconnected(t,()=>{this.handleConnected()})})}handleDisconnected(t=!1,e){const n=Tn.get(this.appName);!n||n.isUnmounted()||n.isHidden()||(this.getKeepAliveModeResult()&&!t?this.handleHiddenKeepAliveApp(e):this.unmount(t,e))}attributeChangedCallback(t,e,n){if(this.legalAttribute(t,n)&&this[t===At.NAME?"appName":"appUrl"]!==n)if(t!==At.URL||this.appUrl&&this.connectStateMap.get(this.connectedCount))if(t!==At.NAME||this.appName&&this.connectStateMap.get(this.connectedCount))this.isWaiting||(this.isWaiting=!0,B(this.handleAttributeUpdate));else{const t=N(n);if(!t)return R("Invalid attribute name "+n,this.appName);this.cacheData&&(er.setData(t,this.cacheData),this.cacheData=null),this.appName=t,t!==n&&this.setAttribute("name",this.appName),this.handleInitialNameAndUrl()}else{if(!(n=F(n,this.appName)))return R("Invalid attribute url "+n,this.appName);this.appUrl=n,this.handleInitialNameAndUrl()}}handleInitialNameAndUrl(){this.connectStateMap.get(this.connectedCount)&&this.handleConnected()}handleConnected(){if(this.appName&&this.appUrl)if(this.getDisposeResult("shadowDOM")&&!this.shadowRoot&&_(this.attachShadow)&&this.attachShadow({mode:"open"}),this.updateSsrUrl(this.appUrl),Tn.has(this.appName)){const t=Tn.get(this.appName),e=t.ssrUrl||t.url,n=this.ssrUrl||this.appUrl;t.isHidden()&&t.url===this.appUrl?this.handleShowKeepAliveApp(t):e===n&&(t.isUnmounted()||t.isPrefetch&&this.sameCoreOptions(t))?this.handleMount(t):t.isPrefetch||t.isUnmounted()?this.handleCreateApp():R(`app name conflict, an app named: ${this.appName} with url: ${e} is running`)}else this.handleCreateApp()}actionsForAttributeChange(t,e,n){var r;this.updateSsrUrl(e),this.appName=t,this.appUrl=e,(null!==(r=this.shadowRoot)&&void 0!==r?r:this).innerHTML="",t!==this.getAttribute("name")&&this.setAttribute("name",this.appName),n?n.isHidden()?n.url===this.appUrl?this.handleShowKeepAliveApp(n):R(`app name conflict, an app named ${this.appName} is running`):n.url===this.appUrl&&n.ssrUrl===this.ssrUrl?this.handleMount(n):this.handleCreateApp():this.handleCreateApp()}legalAttribute(t,e){return!(!g(e)||!e)||(R(`unexpected attribute ${t}, please check again`,this.appName),!1)}handleCreateApp(){const t=()=>{var t;return new In({name:this.appName,url:this.appUrl,container:null!==(t=this.shadowRoot)&&void 0!==t?t:this,scopecss:this.useScopecss(),useSandbox:this.useSandbox(),inline:this.getDisposeResult("inline"),iframe:this.getDisposeResult("iframe"),ssrUrl:this.ssrUrl,routerMode:this.getMemoryRouterMode()})},e=Tn.get(this.appName);e?e.isPrerender?this.unmount(!0,t):(e.actionsForCompletelyDestroy(),t()):t()}handleMount(t){t.isPrefetch=!1,t.setAppState(Ct.BEFORE_MOUNT),B(()=>this.mount(t))}mount(t){var e;t.mount({container:null!==(e=this.shadowRoot)&&void 0!==e?e:this,inline:this.getDisposeResult("inline"),routerMode:this.getMemoryRouterMode(),baseroute:this.getBaseRouteCompatible(),defaultPage:this.getDefaultPage(),disablePatchRequest:this.getDisposeResult("disable-patch-request"),fiber:this.getDisposeResult("fiber")})}unmount(t,e){const n=Tn.get(this.appName);n&&!n.isUnmounted()&&n.unmount({destroy:t||this.getDestroyCompatibleResult(),clearData:this.getDisposeResult("clear-data"),keepRouteState:this.getDisposeResult("keep-router-state"),unmountcb:e})}handleHiddenKeepAliveApp(t){const e=Tn.get(this.appName);!e||e.isUnmounted()||e.isHidden()||e.hiddenKeepAliveApp(t)}handleShowKeepAliveApp(t){B(()=>{var e;return t.showKeepAliveApp(null!==(e=this.shadowRoot)&&void 0!==e?e:this)})}getDisposeResult(t){return(this.compatibleProperties(t)||!!er.options[t])&&this.compatibleDisableProperties(t)}compatibleProperties(t){return"disable-scopecss"===t?this.hasAttribute("disable-scopecss")||this.hasAttribute("disableScopecss"):"disable-sandbox"===t?this.hasAttribute("disable-sandbox")||this.hasAttribute("disableSandbox"):this.hasAttribute(t)}compatibleDisableProperties(t){return"disable-scopecss"===t?"false"!==this.getAttribute("disable-scopecss")&&"false"!==this.getAttribute("disableScopecss"):"disable-sandbox"===t?"false"!==this.getAttribute("disable-sandbox")&&"false"!==this.getAttribute("disableSandbox"):"false"!==this.getAttribute(t)}useScopecss(){return!(this.getDisposeResult("disable-scopecss")||this.getDisposeResult("shadowDOM"))}useSandbox(){return!this.getDisposeResult("disable-sandbox")}sameCoreOptions(t){return t.scopecss===this.useScopecss()&&t.useSandbox===this.useSandbox()&&t.iframe===this.getDisposeResult("iframe")}getBaseRouteCompatible(){var t,e;return null!==(e=null!==(t=this.getAttribute("baseroute"))&&void 0!==t?t:this.getAttribute("baseurl"))&&void 0!==e?e:""}getDestroyCompatibleResult(){return this.getDisposeResult("destroy")||this.getDisposeResult("destory")}getKeepAliveModeResult(){return this.getDisposeResult("keep-alive")&&!this.getDestroyCompatibleResult()}updateSsrUrl(t){if(this.getDisposeResult("ssr"))if(this.getDisposeResult("disable-memory-router")||this.getDisposeResult("disableSandbox")){const e=Gn.rawWindow.location;this.ssrUrl=U(e.pathname+e.search,t)}else{let e=function(t,e){const n=Le(t);if(!n)return"";const r=k(n,e);return r.origin+r.pathname+r.search}(this.appName,t);const n=this.getDefaultPage();if(!e&&n){const r=k(n,t);e=r.origin+r.pathname+r.search}this.ssrUrl=e}else this.ssrUrl&&(this.ssrUrl="")}getDefaultPage(){return Je.getDefaultPage(this.appName)||this.getAttribute("default-page")||this.getAttribute("defaultPage")||""}getMemoryRouterMode(){return je(this.getAttribute("router-mode"),this.compatibleProperties("disable-memory-router")&&this.compatibleDisableProperties("disable-memory-router"))}setAttribute(t,e){if("data"===t)if(b(e)){const t={};Object.getOwnPropertyNames(e).forEach(n=>{g(n)&&0===n.indexOf("__")||(t[n]=e[n])}),this.data=t}else"[object Object]"!==e&&O("property data must be an object",this.appName);else Gn.rawSetAttribute.call(this,t,e)}set data(t){this.appName?er.setData(this.appName,t):this.cacheData=t}get data(){return this.appName?er.getData(this.appName,!0):this.cacheData?this.cacheData:null}get publicPath(){return j(this.appUrl)}get baseRoute(){return this.getBaseRouteCompatible()}}Gn.rawWindow.customElements.define(t,e)}function Vn(t,e){if(!i)return R("preFetch is only supported in browser environment");G(()=>{const n=y(e)?e:er.options.prefetchDelay;setTimeout(()=>{!function(t){_(t)&&(t=t()),a(t)&&t.reduce((t,e)=>t.then(()=>{return t=e,H(e=>{var n,r,i,o,s,a;if(b(t)&&navigator.onLine)if(t.name=N(t.name),t.url=F(t.url,t.name),t.name&&t.url&&!Tn.has(t.name)){const l=new In({name:t.name,url:t.url,isPrefetch:!0,scopecss:!(null!==(r=null!==(n=t["disable-scopecss"])&&void 0!==n?n:t.disableScopecss)&&void 0!==r?r:er.options["disable-scopecss"]),useSandbox:!(null!==(o=null!==(i=t["disable-sandbox"])&&void 0!==i?i:t.disableSandbox)&&void 0!==o?o:er.options["disable-sandbox"]),inline:null!==(s=t.inline)&&void 0!==s?s:er.options.inline,iframe:null!==(a=t.iframe)&&void 0!==a?a:er.options.iframe,prefetchLevel:t.level&&kt.includes(t.level)?t.level:er.options.prefetchLevel&&kt.includes(er.options.prefetchLevel)?er.options.prefetchLevel:2}),u=l.onLoad,h=l.onLoadError;l.onLoad=n=>{l.isPrerender&&c(n,{defaultPage:t["default-page"],routerMode:je(t["router-mode"]),baseroute:t.baseroute,disablePatchRequest:t["disable-patch-request"]}),e(),u.call(l,n)},l.onLoadError=(...t)=>{e(),h.call(l,...t)}}else e();else e()});var t}),Promise.resolve())}(t)},y(n)?n:3e3)})}function Zn(t,e,n){if(a(t)){const r=t.filter(t=>g(t)&&t.includes("."+e)&&!n.hasInfo(t));z(r.map(t=>dt(t)),t=>{const i=r[t.index];"js"===e?n.hasInfo(i)||n.setInfo(i,{code:t.data,isExternal:!1,appSpace:{}}):n.hasInfo(i)||n.setInfo(i,{code:t.data,appSpace:{}})},t=>{R(t)})}}function Qn({excludeHiddenApp:t=!1,excludePreRender:e=!1}={}){const n=[];return Tn.forEach((r,i)=>{r.isUnmounted()||r.isPrefetch&&(!r.isPrerender||e)||t&&r.isHidden()||n.push(i)}),n}function Xn(){return Array.from(Tn.keys())}function Yn(t,e){const n=Tn.get(N(t));return new Promise(r=>{if(n)if(n.isUnmounted()||n.isPrefetch)n.isPrerender?n.unmount({destroy:!!(null==e?void 0:e.destroy),clearData:!!(null==e?void 0:e.clearData),keepRouteState:!1,unmountcb:r.bind(null,!0)}):((null==e?void 0:e.destroy)&&n.actionsForCompletelyDestroy(),r(!0));else if(n.isHidden())(null==e?void 0:e.destroy)?n.unmount({destroy:!0,clearData:!0,keepRouteState:!0,unmountcb:r.bind(null,!0)}):(null==e?void 0:e.clearAliveState)?n.unmount({destroy:!1,clearData:!!e.clearData,keepRouteState:!0,unmountcb:r.bind(null,!0)}):r(!0);else{const t=$(n.container),i=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)},o=()=>{t.removeEventListener(Et.UNMOUNT,i),t.removeEventListener(Et.AFTERHIDDEN,o),r(!0)};if(t.addEventListener(Et.UNMOUNT,i),t.addEventListener(Et.AFTERHIDDEN,o),null==e?void 0:e.destroy){let e,n;t.hasAttribute("destroy")&&(e=t.getAttribute("destroy")),t.hasAttribute("destory")&&(n=t.getAttribute("destory")),t.setAttribute("destroy","true"),t.parentNode.removeChild(t),t.removeAttribute("destroy"),g(e)&&t.setAttribute("destroy",e),g(n)&&t.setAttribute("destory",n)}else if((null==e?void 0:e.clearAliveState)&&t.hasAttribute("keep-alive")){const n=t.getAttribute("keep-alive");t.removeAttribute("keep-alive");let r=null;e.clearData&&(r=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),t.setAttribute("keep-alive",n),g(r)&&t.setAttribute("clear-data",r)}else{let n=null;(null==e?void 0:e.clearData)&&(n=t.getAttribute("clear-data"),t.setAttribute("clear-data","true")),t.parentNode.removeChild(t),g(n)&&t.setAttribute("clear-data",n)}}else O(`app ${t} does not exist`),r(!1)})}function Jn(t){return Array.from(Tn.keys()).reduce((e,n)=>e.then(()=>Yn(n,t)),Promise.resolve(!0))}function qn(t,e){return new Promise(n=>{const r=Tn.get(N(t));if(r){const i=r.container&&$(r.container);i?n(i.reload(e)):(O(`app ${t} is not rendered, cannot use reload`),n(!1))}else O(`app ${t} does not exist`),n(!1)})}function Kn(t){return new Promise(e=>{if(!b(t))return R("renderApp options must be an object");const n=A(t.container)?t.container:g(t.container)?document.querySelector(t.container):null;if(!A(n))return R("Target container is not a DOM element.");const r=J(er.tagName);for(const e in t)if("onDataChange"===e)_(t[e])&&r.addEventListener("datachange",t[e]);else if("lifeCycles"===e){const n=t[e];if(b(n))for(const t in n)t.toUpperCase()in Et&&_(n[t])&&r.addEventListener(t.toLowerCase(),n[t])}else"container"!==e&&r.setAttribute(e,t[e]);const i=()=>{s(),e(!0)},o=()=>{s(),e(!1)},s=()=>{r.removeEventListener(Et.MOUNTED,i),r.removeEventListener(Et.ERROR,o)};r.addEventListener(Et.MOUNTED,i),r.addEventListener(Et.ERROR,o),n.appendChild(r)})}function $n(t){const e=Tn.get(N(t));if(e)return e.getLifeCycleState();O(`app ${t} does not exist`)}class tr extends ue{constructor(){super(...arguments),this.tagName="micro-app",this.hasInit=!1,this.options={},this.router=Je,this.preFetch=Vn,this.unmountApp=Yn,this.unmountAllApps=Jn,this.getActiveApps=Qn,this.getAllApps=Xn,this.reload=qn,this.renderApp=Kn,this.getAppStatus=$n}start(t){var e,n,r;if(!i||!window.customElements)return R("micro-app is not supported in this environment");if(this.hasInit)return R("microApp.start executed repeatedly");if(this.hasInit=!0,null==t?void 0:t.tagName){if(!/^micro-app(-\S+)?/.test(t.tagName))return R(t.tagName+" is invalid tagName");this.tagName=t.tagName}if(Hn(),Gn.rawWindow.customElements.get(this.tagName))return O(`element ${this.tagName} is already defined`);if(b(t)&&(this.options=t,t["disable-scopecss"]=null!==(e=t["disable-scopecss"])&&void 0!==e?e:t.disableScopecss,t["disable-sandbox"]=null!==(n=t["disable-sandbox"])&&void 0!==n?n:t.disableSandbox,t.preFetchApps&&Vn(t.preFetchApps),t.globalAssets&&(b(r=t.globalAssets)&&G(()=>{Zn(r.js,"js",Lt.script),Zn(r.css,"css",Lt.link)})),b(t.plugins))){const e=t.plugins.modules;if(b(e))for(const t in e){const n=N(t);n&&t!==n&&(e[n]=e[t],delete e[t])}}Wn(this.tagName)}}const er=new tr;e.default=er}.call(this,n(10))},function(t,e,n){"use strict";n.r(e);var r=n(119),i=n(82);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(341);var s=n(76),a=Object(s.a)(i.default,r.a,r.b,!1,null,"67ce9f3a",null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(30)),i=u(n(31)),o=n(12),s=n(8),a=u(n(336)),c=u(n(339)),l=n(5);function u(t){return t&&t.__esModule?t:{default:t}}var h,d=new c.default,f=(h=(0,i.default)(r.default.mark((function t(e){var n,i,c,u;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.getTimestamp)();case 2:return n=t.sent,i=n.data,c=window.__RK_WEB_CORE_APPID__&&(0,s.getCache)("CLIENT_ID",s.sessionEngine)?(0,s.getCache)("CLIENT_ID",s.sessionEngine):l.sessionStore.get("CLIENT_ID"),t.next=7,(0,o.getPk)({code:c});case 7:return u=t.sent,d.setPublicKey(u.data),t.abrupt("return",d.encrypt((0,a.default)(e)+" "+i));case 10:case"end":return t.stop()}}),t,void 0)}))),function(t){return h.apply(this,arguments)});e.default=function(t){return f(t)}},function(t,e,n){n(34),n(193),t.exports=n(6).Array.from},function(t,e,n){var r=n(87),i=n(88);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),l=a.length;return c<0||c>=l?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(92),i=n(58),o=n(60),s={};n(27)(s,n(16)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(19),i=n(24),o=n(49);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},function(t,e,n){var r=n(37),i=n(70),o=n(192);t.exports=function(t){return function(e,n,s){var a,c=r(e),l=i(c.length),u=o(s,l);if(t&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(87),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){"use strict";var r=n(26),i=n(9),o=n(38),s=n(129),a=n(130),c=n(70),l=n(194),u=n(97);i(i.S+i.F*!n(131)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&a(y))for(n=new f(e=c(d.length));e>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(h=y.call(d),n=new f;!(i=h.next()).done;v++)l(n,v,g?s(h,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(19),i=n(58);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){t.exports={default:n(196),__esModule:!0}},function(t,e,n){n(197),t.exports=n(6).Object.assign},function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(198)})},function(t,e,n){"use strict";var r=n(18),i=n(49),o=n(98),s=n(61),a=n(38),c=n(93),l=Object.assign;t.exports=!l||n(35)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r}))?function(t,e){for(var n=a(t),l=arguments.length,u=1,h=o.f,d=s.f;l>u;)for(var f,p=c(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;g>v;)f=m[v++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:l},function(t,e,n){n(200),t.exports=n(6).Object.keys},function(t,e,n){var r=n(38),i=n(49);n(132)("keys",(function(){return function(t){return i(r(t))}}))},function(t,e,n){n(202);var r=n(6).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(18),"Object",{defineProperty:n(19).f})},function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}n.r(e),n.d(e,"NavigationFailureType",(function(){return yt})),n.d(e,"RouterLink",(function(){return Z})),n.d(e,"RouterView",(function(){return x})),n.d(e,"START_LOCATION",(function(){return m})),n.d(e,"default",(function(){return Vt})),n.d(e,"isNavigationFailure",(function(){return Mt})),n.d(e,"version",(function(){return Qt}));var i=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,a=function(t){return encodeURIComponent(t).replace(i,o).replace(s,",")};function c(t){try{return decodeURIComponent(t)}catch(t){0}return t}var l=function(t){return null==t||"object"==typeof t?t:String(t)};function u(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function h(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return a(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(a(e)):r.push(a(e)+"="+a(t)))})),r.join("&")}return a(e)+"="+a(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var d=/\/?$/;function f(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=p(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:v(e,i),matched:t?g(t):[]};return n&&(s.redirectedFrom=v(n,i)),Object.freeze(s)}function p(t){if(Array.isArray(t))return t.map(p);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=p(t[n]);return e}return t}var m=f(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function v(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||h)(r)+i}function y(t,e,n){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(d,"")===e.path.replace(d,"")&&(n||t.hash===e.hash&&_(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params))))}function _(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n];if(r[i]!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?_(o,s):String(o)===String(s)}))}function b(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var x={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,s=e.data;s.routerView=!0;for(var a=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;o&&o._routerRoot!==o;){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=h,d){var p=u[c],m=p&&p.component;return m?(p.configProps&&w(m,s,p.route,p.configProps),a(m,s,i)):a()}var g=l.matched[h],v=g&&g.components[c];if(!g||!v)return u[c]=null,a();u[c]={component:v},s.registerRouteInstance=function(t,e){var n=g.instances[c];(e&&n!==t||!e&&n===t)&&(g.instances[c]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){g.instances[c]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[c]&&(g.instances[c]=t.componentInstance),b(l)};var y=g.props&&g.props[c];return y&&(r(u[c],{route:l,configProps:y}),w(v,s,l,y)),a(v,s,i)}};function w(t,e,n,i){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,i);if(o){o=e.props=r({},o);var s=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(s[a]=o[a],delete o[a])}}function S(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function M(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var A=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},C=U,E=R,T=function(t,e){return B(R(t,e),e)},I=B,P=j,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function R(t,e){for(var n,r=[],i=0,o=0,s="",a=e&&e.delimiter||"/";null!=(n=L.exec(t));){var c=n[0],l=n[1],u=n.index;if(s+=t.slice(o,u),o=u+c.length,l)s+=l[1];else{var h=t[o],d=n[2],f=n[3],p=n[4],m=n[5],g=n[6],v=n[7];s&&(r.push(s),s="");var y=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,b="?"===g||"*"===g,x=n[2]||a,w=p||m;r.push({name:f||i++,prefix:d||"",delimiter:x,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:w?D(w):v?".*":"[^"+k(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&r.push(s),r}function O(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function B(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",N(e)));return function(e,r){for(var i="",o=e||{},s=(r||{}).pretty?O:encodeURIComponent,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(i+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(A(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<u.length;h++){if(l=s(u[h]),!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):s(u),!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');i+=c.prefix+l}}else i+=c}return i}}function k(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function D(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function F(t,e){return t.keys=e,t}function N(t){return t&&t.sensitive?"":"i"}function j(t,e,n){A(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,i=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"==typeof a)o+=k(a);else{var c=k(a.prefix),l="(?:"+a.pattern+")";e.push(a),a.repeat&&(l+="(?:"+c+l+")*"),o+=l=a.optional?a.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=k(n.delimiter||"/"),h=o.slice(-u.length)===u;return r||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+u+"|$)",F(new RegExp("^"+o,N(n)),e)}function U(t,e,n){return A(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return F(t,e)}(t,e):A(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(U(t[i],e,n).source);return F(new RegExp("(?:"+r.join("|")+")",N(n)),e)}(t,e,n):function(t,e,n){return j(R(t,n),e,n)}(t,e,n)}C.parse=E,C.compile=T,C.tokensToFunction=I,C.tokensToRegExp=P;var z=Object.create(null);function G(t,e,n){e=e||{};try{var r=z[t]||(z[t]=C.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function H(t,e,n,i){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var s=(o=r({},t)).params;return s&&"object"==typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&e){(o=r({},o))._normalized=!0;var a=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=G(c,a,e.path)}else 0;return o}var h=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(o.path||""),d=e&&e.path||"/",f=h.path?S(h.path,d,n||o.append):d,p=function(t,e,n){void 0===e&&(e={});var r,i=n||u;try{r=i(t||"")}catch(t){r={}}for(var o in e){var s=e[o];r[o]=Array.isArray(s)?s.map(l):l(s)}return r}(h.query,o.query,i&&i.options.parseQuery),m=o.hash||h.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:f,query:p,hash:m}}var W,V=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),s=o.location,a=o.route,c=o.href,l={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,m=null==h?"router-link-exact-active":h,g=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?m:this.exactActiveClass,_=a.redirectedFrom?f(null,H(a.redirectedFrom),null,n):a;l[v]=y(i,_,this.exactPath),l[g]=this.exact||this.exactPath?l[v]:function(t,e){return 0===t.path.replace(d,"/").indexOf(e.path.replace(d,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,_);var b=l[v]?this.ariaCurrentValue:null,x=function(t){Q(t)&&(e.replace?n.replace(s,V):n.push(s,V))},w={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){w[t]=x})):w[this.event]=x;var S={class:l},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:a,navigate:x,isActive:l[g],isExactActive:l[v]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?t():t("span",{},M)}if("a"===this.tag)S.on=w,S.attrs={href:c,"aria-current":b};else{var A=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(A){A.isStatic=!1;var C=A.data=r({},A.data);for(var E in C.on=C.on||{},C.on){var T=C.on[E];E in w&&(C.on[E]=Array.isArray(T)?T:[T])}for(var I in w)I in C.on?C.on[I].push(w[I]):C.on[I]=x;var P=A.data.attrs=r({},A.data.attrs);P.href=c,P["aria-current"]=b}else S.on=w}return t(this.tag,S,this.$slots.default)}};function Q(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var X="undefined"!=typeof window;function Y(t,e,n,r,i){var o=e||[],s=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,i,o,s){var a=i.path,c=i.name;0;var l=i.pathToRegexpOptions||{},u=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return M(e.path+"/"+t)}(a,o,l.strict);"boolean"==typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var h={path:u,regex:J(u,l),components:i.components||{default:i.component},alias:i.alias?"string"==typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:c,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};i.children&&i.children.forEach((function(i){var o=s?M(s+"/"+i.path):void 0;t(e,n,r,i,h,o)}));n[h.path]||(e.push(h.path),n[h.path]=h);if(void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],f=0;f<d.length;++f){0;var p={path:d[f],children:i.children};t(e,n,r,p,o,h.path||"/")}c&&(r[c]||(r[c]=h))}(o,s,a,t,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:s,nameMap:a}}function J(t,e){return C(t,[],e)}function q(t,e){var n=Y(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(t,n,s){var a=H(t,n,!1,e),l=a.name;if(l){var u=o[l];if(!u)return c(null,a);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof a.params&&(a.params={}),n&&"object"==typeof n.params)for(var d in n.params)!(d in a.params)&&h.indexOf(d)>-1&&(a.params[d]=n.params[d]);return a.path=G(u.path,a.params),c(u,a,s)}if(a.path){a.params={};for(var f=0;f<r.length;f++){var p=r[f],m=i[p];if(K(m.regex,a.path,a.params))return c(m,a,s)}}return c(null,a)}function a(t,n){var r=t.redirect,i="function"==typeof r?r(f(t,n,null,e)):r;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return c(null,n);var a=i,l=a.name,u=a.path,h=n.query,d=n.hash,p=n.params;if(h=a.hasOwnProperty("query")?a.query:h,d=a.hasOwnProperty("hash")?a.hash:d,p=a.hasOwnProperty("params")?a.params:p,l){o[l];return s({_normalized:!0,name:l,query:h,hash:d,params:p},void 0,n)}if(u){var m=function(t,e){return S(t,e.parent?e.parent.path:"/",!0)}(u,t);return s({_normalized:!0,path:G(m,p),query:h,hash:d},void 0,n)}return c(null,n)}function c(t,n,r){return t&&t.redirect?a(t,r||n):t&&t.matchAs?function(t,e,n){var r=s({_normalized:!0,path:G(n,e.params)});if(r){var i=r.matched,o=i[i.length-1];return e.params=r.params,c(o,e)}return c(null,e)}(0,n,t.matchAs):f(t,n,r,e)}return{match:s,addRoute:function(t,e){var n="object"!=typeof t?o[t]:void 0;Y([e||t],r,i,o,n),n&&n.alias.length&&Y(n.alias.map((function(t){return{path:t,children:[e]}})),r,i,o,n)},getRoutes:function(){return r.map((function(t){return i[t]}))},addRoutes:function(t){Y(t,r,i,o)}}}function K(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=t.keys[i-1];s&&(n[s.name||"pathMatch"]="string"==typeof r[i]?c(r[i]):r[i])}return!0}var $=X&&window.performance&&window.performance.now?window.performance:Date;function tt(){return $.now().toFixed(3)}var et=tt();function nt(){return et}function rt(t){return et=t}var it=Object.create(null);function ot(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=nt(),window.history.replaceState(n,"",e),window.addEventListener("popstate",ct),function(){window.removeEventListener("popstate",ct)}}function st(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=function(){var t=nt();if(t)return it[t]}(),s=i.call(t,e,n,r?o:null);s&&("function"==typeof s.then?s.then((function(t){ft(t,o)})).catch((function(t){0})):ft(s,o))}))}}function at(){var t=nt();t&&(it[t]={x:window.pageXOffset,y:window.pageYOffset})}function ct(t){at(),t.state&&t.state.key&&rt(t.state.key)}function lt(t){return ht(t.x)||ht(t.y)}function ut(t){return{x:ht(t.x)?t.x:window.pageXOffset,y:ht(t.y)?t.y:window.pageYOffset}}function ht(t){return"number"==typeof t}var dt=/^#\d/;function ft(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var i=dt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(i){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(i,o={x:ht((n=o).x)?n.x:0,y:ht(n.y)?n.y:0})}else lt(t)&&(e=ut(t))}else r&&lt(t)&&(e=ut(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var pt,mt=X&&((-1===(pt=window.navigator.userAgent).indexOf("Android 2.")&&-1===pt.indexOf("Android 4.0")||-1===pt.indexOf("Mobile Safari")||-1!==pt.indexOf("Chrome")||-1!==pt.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function gt(t,e){at();var n=window.history;try{if(e){var i=r({},n.state);i.key=nt(),n.replaceState(i,"",t)}else n.pushState({key:rt(tt())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function vt(t){gt(t,!0)}var yt={redirected:2,aborted:4,cancelled:8,duplicated:16};function _t(t,e){return xt(t,e,yt.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function bt(t,e){return xt(t,e,yt.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function xt(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var wt=["params","query","hash"];function St(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Mt(t,e){return St(t)&&t._isRouter&&(null==e||t.type===e)}function At(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ct(t){return function(e,n,r){var i=!1,o=0,s=null;Et(t,(function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var c,l=Pt((function(e){var i;((i=e).__esModule||It&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:W.extend(e),n.components[a]=e,--o<=0&&r()})),u=Pt((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=St(t)?t:new Error(e),r(s))}));try{c=t(l,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(l,u);else{var h=c.component;h&&"function"==typeof h.then&&h.then(l,u)}}})),i||r()}}function Et(t,e){return Tt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Tt(t){return Array.prototype.concat.apply([],t)}var It="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Lt=function(t,e){this.router=t,this.base=function(t){if(!t)if(X){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Rt(t,e,n,r){var i=Et(t,(function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=W.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return Tt(r?i.reverse():i)}function Ot(t,e){if(e)return function(){return t.apply(e,arguments)}}Lt.prototype.listen=function(t){this.cb=t},Lt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Lt.prototype.onError=function(t){this.errorCbs.push(t)},Lt.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Mt(t,yt.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},Lt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current;this.pending=t;var o,s,a=function(t){!Mt(t)&&St(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,l=i.matched.length-1;if(y(t,i)&&c===l&&t.matched[c]===i.matched[l])return this.ensureURL(),t.hash&&st(this.router,i,t,!1),a(((s=xt(o=i,t,yt.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),h=u.updated,d=u.deactivated,f=u.activated,p=[].concat(function(t){return Rt(t,"beforeRouteLeave",Ot,!0)}(d),this.router.beforeHooks,function(t){return Rt(t,"beforeRouteUpdate",Ot)}(h),f.map((function(t){return t.beforeEnter})),Ct(f)),m=function(e,n){if(r.pending!==t)return a(bt(i,t));try{e(t,i,(function(e){!1===e?(r.ensureURL(!0),a(function(t,e){return xt(t,e,yt.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(i,t))):St(e)?(r.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(_t(i,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){a(t)}};At(p,m,(function(){At(function(t){return Rt(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}(t,n,r)}))}(f).concat(r.router.resolveHooks),m,(function(){if(r.pending!==t)return a(bt(i,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){b(t)}))}))}))},Lt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Lt.prototype.setupListeners=function(){},Lt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=m,this.pending=null};var Bt=function(t){function e(e,n){t.call(this,e,n),this._startLocation=kt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=mt&&n;r&&this.listeners.push(ot());var i=function(){var n=t.current,i=kt(t.base);t.current===m&&i===t._startLocation||t.transitionTo(i,(function(t){r&&st(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){gt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){vt(M(r.base+t.fullPath)),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(kt(this.base)!==this.current.fullPath){var e=M(this.base+this.current.fullPath);t?gt(e):vt(e)}},e.prototype.getCurrentLocation=function(){return kt(this.base)},e}(Lt);function kt(t){var e=window.location.pathname,n=e.toLowerCase(),r=t.toLowerCase();return!t||n!==r&&0!==n.indexOf(M(r+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Dt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=kt(t);if(!/^\/#/.test(e))return window.location.replace(M(t+"/#"+e)),!0}(this.base)||Ft()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=mt&&e;n&&this.listeners.push(ot());var r=function(){var e=t.current;Ft()&&t.transitionTo(Nt(),(function(r){n&&st(t.router,r,e,!0),mt||zt(r.fullPath)}))},i=mt?"popstate":"hashchange";window.addEventListener(i,r),this.listeners.push((function(){window.removeEventListener(i,r)}))}},e.prototype.push=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){Ut(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this.current;this.transitionTo(t,(function(t){zt(t.fullPath),st(r.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Nt()!==e&&(t?Ut(e):zt(e))},e.prototype.getCurrentLocation=function(){return Nt()},e}(Lt);function Ft(){var t=Nt();return"/"===t.charAt(0)||(zt("/"+t),!1)}function Nt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function jt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Ut(t){mt?gt(jt(t)):window.location.hash=t}function zt(t){mt?vt(jt(t)):window.location.replace(jt(t))}var Gt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Mt(t,yt.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Lt),Ht=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!mt&&!1!==t.fallback,this.fallback&&(e="hash"),X||(e="abstract"),this.mode=e,e){case"history":this.history=new Bt(this,t.base);break;case"hash":this.history=new Dt(this,t.base,this.fallback);break;case"abstract":this.history=new Gt(this,t.base);break;default:0}},Wt={currentRoute:{configurable:!0}};Ht.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Wt.currentRoute.get=function(){return this.history&&this.history.current},Ht.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Bt||n instanceof Dt){var r=function(t){n.setupListeners(),function(t){var r=n.current,i=e.options.scrollBehavior;mt&&i&&"fullPath"in t&&st(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ht.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Ht.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Ht.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Ht.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ht.prototype.onError=function(t){this.history.onError(t)},Ht.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Ht.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Ht.prototype.go=function(t){this.history.go(t)},Ht.prototype.back=function(){this.go(-1)},Ht.prototype.forward=function(){this.go(1)},Ht.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ht.prototype.resolve=function(t,e,n){var r=H(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?M(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ht.prototype.getRoutes=function(){return this.matcher.getRoutes()},Ht.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Ht.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ht.prototype,Wt);var Vt=Ht;function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ht.install=function t(e){if(!t.installed||W!==e){t.installed=!0,W=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",x),e.component("RouterLink",Z);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ht.version="3.6.5",Ht.isNavigationFailure=Mt,Ht.NavigationFailureType=yt,Ht.START_LOCATION=m,X&&window.Vue&&window.Vue.use(Ht);var Qt="3.6.5"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkRouter=e.routerInit=void 0;var r=c(n(13)),i=c(n(205)),o=c(n(302)),s=c(n(327)),a=c(n(185));function c(t){return t&&t.__esModule?t:{default:t}}e.routerInit=function(t,e){var n=t.prototype.push,r=t.prototype.replace;t.prototype.push=function(t,e,r){return e||r?n.call(this,t,e,r):n.call(this,t).catch((function(t){return t}))},t.prototype.replace=function(t,e,n){return e||n?r.call(this,t,e,n):r.call(this,t).catch((function(t){return t}))};var i=l(t,e);return u(i),i};var l=e.pkRouter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[{path:"/404",component:i.default},{path:"/noAllow",component:o.default},{path:"/rkWebCoreSetting",component:a.default},{path:"/refresh",component:s.default,hidden:!0}],c=function(){return new t((0,r.default)({},e,{mode:"history",routes:n,scrollBehavior:function(t,e,n){return n||{x:0,y:0}}}))},l=c(),u=c();return l.matcher=u.matcher,l},u=function(t){t.onError((function(e){console.log("\n *************************ROUTER ERROR BEGIN**********************************\n\n "+e+"\n\n *************************ROUTER ERROR FINAL**********************************\n ");var n=e.message.match(/Loading chunk (\w)+ failed/g),r=t.history.pending.fullPath;n&&t.replace(r).then()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},s=n(17);e.default={render:function(){var t=arguments[0];return t("a-result",{attrs:{status:"404",title:"404","sub-title":"Sorry, the page you visited does not exist."}},[t("a-button",{attrs:{type:"primary"},slot:"extra",on:{click:this.toHome}},["Back Home"])])},methods:{toHome:function(){(0,o.default)(this.$store.state.user.addRouters[0].children)?(0,s.logOut)():this.$router.replace({path:"/"})}}}},function(t,e,n){n(74),n(34),n(51),n(209),n(213),n(214),t.exports=n(6).Promise},function(t,e,n){"use strict";var r=n(208),i=n(137),o=n(48),s=n(37);t.exports=n(89)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";var r,i,o,s,a=n(56),c=n(15),l=n(26),u=n(72),h=n(9),d=n(20),f=n(57),p=n(99),m=n(62),g=n(138),v=n(139).set,y=n(211)(),_=n(100),b=n(140),x=n(212),w=n(141),S=c.TypeError,M=c.process,A=M&&M.versions,C=A&&A.v8||"",E=c.Promise,T="process"==u(M),I=function(){},P=i=_.f,L=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(16)("species")]=function(t){t(I,I)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==C.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},O=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s,a=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(i||(2==t._h&&D(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&(u.exit(),s=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=R(n))?o.call(n,c,l):c(n)):l(r)}catch(t){u&&!s&&u.exit(),l(t)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)}))}},B=function(t){v.call(c,(function(){var e,n,r,i=t._v,o=k(t);if(o&&(e=b((function(){T?M.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=T||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){v.call(c,(function(){var e;T?M.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},N=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=R(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,l(N,r,1),l(F,r,1))}catch(t){F.call(r,t)}})):(n._v=t,n._s=1,O(n,!1))}catch(t){F.call({_w:n,_d:!1},t)}}};L||(E=function(t){p(this,E,"Promise","_h"),f(t),r.call(this);try{t(l(N,this,1),l(F,this,1))}catch(t){F.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(101)(E.prototype,{then:function(t,e){var n=P(g(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(N,t,1),this.reject=l(F,t,1)},_.f=P=function(t){return t===E||t===s?new o(t):i(t)}),h(h.G+h.W+h.F*!L,{Promise:E}),n(60)(E,"Promise"),n(142)("Promise"),s=n(6).Promise,h(h.S+h.F*!L,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!L),"Promise",{resolve:function(t){return w(a&&this===s?E:this,t)}}),h(h.S+h.F*!(L&&n(131)((function(t){E.all(t).catch(I)}))),"Promise",{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,s=1;m(t,!1,(function(t){var a=o++,c=!1;n.push(void 0),s++,e.resolve(t).then((function(t){c||(c=!0,n[a]=t,--s||r(n))}),i)})),--s||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=b((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(15),i=n(139).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==n(59)(s);t.exports=function(){var t,e,n,l=function(){var r,i;for(c&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){s.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){i.call(r,l)};else{var h=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(15).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(9),i=n(6),o=n(15),s=n(138),a=n(141);r(r.P+r.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then((function(){return n}))}:t,n?function(n){return a(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){"use strict";var r=n(9),i=n(100),o=n(140);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";(function(t){
151
148
  /*!
152
149
  * The buffer module from node.js, for the browser.
153
150
  *
@@ -188,4 +185,4 @@ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else
188
185
  */
189
186
  t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";n.r(e);var r=n(117);n.d(e,"JSEncrypt",(function(){return r.a})),e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"WeChatIcon",render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"wechat",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"}},[t("path",{attrs:{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z"}})])}}},function(t,e,n){"use strict";var r=n(84);n.n(r).a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MENU_LIST=void 0;var r=p(n(30)),i=p(n(31)),o=p(n(41)),s=(p(n(22)),n(5)),a=n(12),c=p(n(54)),l=p(n(4)),u=p(n(112)),h=p(n(343)),d=n(17),f=n(8);function p(t){return t&&t.__esModule?t:{default:t}}var m=e.MENU_LIST="menuList",g={namespaced:!0,state:{menu_list:[],addRouters:[],appRouters:[],appLogout:!1,appCurrentHeader:{},currentMap:{},navIndex:0,consumerExtList:s.localStore.get("consumerExtList")?s.localStore.get("consumerExtList"):void 0,consumer:s.localStore.get("consumer")?s.localStore.get("consumer"):void 0,userAllInfo:s.localStore.get("userAllInfo")?s.localStore.get("userAllInfo"):void 0,timeStamp:{},openSidebar:!0,sidebarCollapsed:!1,menuEvent:void 0,currentProject:(0,l.default)((0,f.getCache)("app_project"))?{}:(0,f.getCache)("app_project"),temporaryRouter:{},frameIsChange:!1,isInNoAUth:!1,skin:{style:"",color:getComputedStyle(document.documentElement).getPropertyValue("--antd-wave-shadow-color").trim()||"#0F6EFF"},requestLoading:!1,currentAppWeather:{},currentAppVersion:{},historyAppVersion:[]},mutations:{SET_APP_LOGOUT:function(t,e){t.appLogout=e},SET_CURRENT_APP_WEATHER:function(t,e){t.currentAppWeather=e},SET_CURRENT_APP_VERSION:function(t,e){t.currentAppVersion=e},SET_HISTORY_APP_VERSION:function(t,e){t.historyAppVersion=e},SET_CONSUMER_EXT_LIST:function(t,e){t.consumerExtList=e,s.localStore.set("consumerExtList",e)},SET_CONSUMER:function(t,e){t.consumer=e,s.localStore.set("consumer",e)},SET_USER_ALL_INFO:function(t,e){t.userAllInfo=e,s.localStore.set("userAllInfo",e)},SET_PROJECT:function(t,e){t.currentProject=e,(0,f.setCache)("app_project",e)},SET_IS_IN_NO_AUTH:function(t,e){t.isInNoAUth=e},SET_SKIN:function(t,e){console.log(e,"_______skin"),t.skin=e},SET_FRAME_CHANGE:function(t,e){t.frameIsChange=e,(0,h.default)((function(){t.frameIsChange=!1}))},SET_TEMPORARY_ROUTER:function(t,e){t.temporaryRouter=e},SET_SIDEBAR_COLLAPSED:function(t,e){t.sidebarCollapsed=e},SET_OPEN_SIDEBAR:function(t,e){t.openSidebar=e},SET_MENU_LIST:function(t,e){t.menu_list=e},SET_ROUTERS:function(t,e){t.addRouters=e},SET_APP_ROUTERS:function(t,e){t.appRouters=e},SET_APP_CURRENT_HEADER:function(t,e){t.appCurrentHeader=e},SET_CURRENT_MAP:function(t,e){t.currentMap=e},SET_NAV_INDEX:function(t,e){t.navIndex=e},SET_TIME_STAMP:function(t,e){t.timeStamp=e},SET_MENI_EVENT:function(t,e){t.menuEvent=e}},actions:{appRouters:function(t,e){(0,t.commit)("SET_ROUTERS",e)},GetUserInfo:function(t,e){var n=this,h=t.commit;return new o.default((function(t,o){var p;(0,a.getUserInfo)(e).then((p=(0,i.default)(r.default.mark((function e(i){var o,p,g,v,y,_,b,x,w,S,M,A,C,E;return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==i.code){e.next=50;break}return e.next=3,(0,a.getBySysCodes)([(0,f.getCache)("CLIENT_ID",f.sessionEngine)?(0,f.getCache)("CLIENT_ID",f.sessionEngine):s.sessionStore.get("CLIENT_ID")]);case 3:if(o=e.sent,p=i.data,g=p.id,v=p.phone,y=p.consumer,_=p.menuList,b=p.userName,s.localStore.set("userAllInfo",i.data),h("SET_USER_ALL_INFO",i.data),o&&o.data[0]&&((0,f.setCache)("APP_PROJECT",c.default.encrypt(o.data[0])),(0,f.setCache)("SYS_PROJECT_NAME",o.data[0].name,f.sessionEngine)),(0,l.default)(y)||(0,l.default)(_)){e.next=45;break}return(0,f.setCache)(m,_),h("SET_MENU_LIST",_),x={userId:g,userName:b,phone:v},s.localStore.set("userMessage",x),s.localStore.set("consumer",y),s.localStore.set("userName",b),s.localStore.set("currentProject",{id:y.id,name:y.name,regionId:y.regionId}),h("SET_CONSUMER",y),i.data.consumerExtList&&(s.localStore.set("consumerExtList",i.data.consumerExtList),h("SET_CONSUMER_EXT_LIST",i.data.consumerExtList)),h("SET_FRAME_CHANGE",!0),e.next=21,(0,a.getLatelyVersion)();case 21:return w=e.sent,h("SET_CURRENT_APP_VERSION",(0,l.default)(w)||0!==w.code?{}:w.data),e.next=25,(0,a.getQueryHistory)();case 25:return S=e.sent,h("SET_HISTORY_APP_VERSION",(0,l.default)(S)||0!==S.code?{}:S.data),e.next=29,(0,a.getByCuser)();case 29:return M=e.sent,A=(0,f.getCache)("CLIENT_ID","sessionStorage"),C=(0,u.default)(M.data,(function(t){return t.code===A})),(0,l.default)(C)||h("SET_PROJECT",C[0]),e.prev=33,e.next=36,(0,a.getRegionDataInfo)({areaCode:y.regionId});case 36:E=e.sent,h("SET_CURRENT_APP_WEATHER",(0,l.default)(E)||0!==E.code?{}:E.data),e.next=43;break;case 40:e.prev=40,e.t0=e.catch(33),console.warn(e.t0);case 43:return t(_),e.abrupt("return");case 45:if(!(0,l.default)(y)&&!(0,l.default)(_)){e.next=48;break}return t(),e.abrupt("return");case 48:e.next=51;break;case 50:(0,d.logOut)();case 51:case"end":return e.stop()}}),e,n,[[33,40]])}))),function(t){return p.apply(this,arguments)})).catch((function(){(0,d.logOut)()}))}))},LogOut:function(t){var e=t.commit,n=s.localStore.get("IAM_OATH_TYPE");s.localStore.clearAll(),s.localStore.set("IAM_OATH_TYPE",n),e("SET_MENU_LIST",[]),e("SET_ROUTERS",[]),(0,d.logOut)()}}};e.default=g},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var r=Math.max;var i=function(t,e){return e=r(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=r(i.length-e,0),a=Array(s);++o<s;)a[o]=i[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=i[o];return c[e]=a,n(t,this,c)}}((function(t,e){return function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}(t,1,e)}));t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerPermission=void 0;var r=_(n(30)),i=_(n(69)),o=_(n(31)),s=_(n(13)),a=n(12),c=_(n(345)),l=_(n(4)),u=_(n(50)),h=_(n(134)),d=n(65),f=n(43),p=_(n(22)),m=n(17),g=n(65),v=n(8),y=n(5);function _(t){return t&&t.__esModule?t:{default:t}}var b=function(t,e,n){(0,v.setCache)("iam_login","1");var r={code:(0,f.getUrlParam)("code"),grantType:"authorization_code",redirectUri:n.iamJumpIsFullPath?(0,f.routerOrigin)():window.origin,sysCode:window.__RK_WEB_CORE_APPID__&&(0,v.getCache)("CLIENT_ID",v.sessionEngine)?(0,v.getCache)("CLIENT_ID",v.sessionEngine):y.sessionStore.get("CLIENT_ID"),sysSecret:window.__RK_WEB_CORE_APPID__&&(0,v.getCache)("SYS_SECRET",v.sessionEngine)?(0,v.getCache)("SYS_SECRET",v.sessionEngine):y.sessionStore.get("SYS_SECRET")};n.oauthType&&(r=(0,s.default)(r,{oauthType:n.oauthType})),((0,f.getUrlParam)("oauthType")||y.localStore.get("IAM_OATH_TYPE"))&&(r=(0,s.default)(r,{oauthType:(0,f.getUrlParam)("oauthType")||y.localStore.get("IAM_OATH_TYPE")})),(0,a.getToken)(r).then((function(n){if(n.data){var r=n.data,i=r.access_token,o=r.refresh_token,s=r.expires_in;y.localStore.set("access_token",i),y.localStore.set("refresh_token",o);var a=new Date;if(y.localStore.set("token_expires_in",new Date(a.setSeconds(a.getSeconds()+parseInt(s))).getTime()),!(0,l.default)(n.data.idp_access_token)){var c=n.data,u=c.idp_access_token,h=c.idp_refresh_token;y.localStore.set("idp_access_token",u),y.localStore.set("idp_refresh_token",h)}e({path:t.path,replace:!0})}})).catch((function(n){var r=window.location,i=r.origin+r.pathname;window.history.replaceState("",document.title,i),(0,l.default)(y.localStore.get("access_token"))?e({path:"/404",replace:!0}):e({path:t.path,query:t.query,params:t.params,replace:!0})}))},x=(e.registerPermission=function(t,e){var n,a=t.routerInstance,_=t.storeInstance,w=t.basicOptions;a.beforeEach((n=(0,o.default)(r.default.mark((function t(n,o,S){var M,A,C,E,T;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_.commit("user/SET_TEMPORARY_ROUTER",{to:n,from:o}),c.default.start(),n.meta.title&&(M=(0,v.getCache)("SYS_PROJECT_NAME",v.sessionEngine),document.title=n.meta.title+(M?"-"+M:"")),!n.query||!n.query.error||"unsupported_response_type"!==n.query.error){t.next=6;break}return(0,m.logOut)(),t.abrupt("return");case 6:if(!n.path.includes("/noAllow")){t.next=9;break}return S(),t.abrupt("return");case 9:if((0,l.default)(w.routesWhiteList)||!w.routesWhiteList.includes(n.path)){t.next=12;break}return S(),t.abrupt("return");case 12:if(y.localStore.get("BING_WECHAT")){t.next=31;break}if(!(0,l.default)((0,v.getCache)("iam_login"))||(0,l.default)((0,f.getUrlParam)("code"))){t.next=17;break}b(n,S,w),t.next=29;break;case 17:if((0,l.default)(y.localStore.get("access_token"))){t.next=28;break}if((0,l.default)(_.state.user.addRouters)){t.next=22;break}x(n,o,S),t.next=26;break;case 22:return t.next=24,_.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:(0,v.getCache)("CLIENT_ID",v.sessionEngine)});case 24:A=t.sent,(0,l.default)(A)?"/noAllow"!==n.path&&(S({path:"/noAllow",replace:!0}),c.default.done()):w.routerTrusteeship?((0,d.setAsyncRoutes)(a,_,A,e,w),S((0,s.default)({},n,{replace:!0}))):(C=function(){return e},(0,u.default)(w.dynamicStructRouter)?(E=w.dynamicStructRouter((0,g.businessSystemToTree)(A)))&&(0,h.default)(E)?(C(),a.addRoutes([].concat((0,i.default)(E),[f.redirectRouter,f.noAllowRouter])),_.commit("user/SET_ROUTERS",E),_.commit("user/SET_APP_ROUTERS",E),S((0,s.default)({},n,{replace:!0}))):(S(),console.error("Routing menu construct build failed")):(S(),console.error("basicOptions.dynamicStructRouter must is a function")));case 26:t.next=29;break;case 28:(0,l.default)((0,f.getUrlParam)("code"))?(T={responseType:(0,f.getUrlParam)("code")||"code",clientId:window.__RK_WEB_CORE_APPID__&&(0,v.getCache)("CLIENT_ID",v.sessionEngine)?(0,v.getCache)("CLIENT_ID",v.sessionEngine):y.sessionStore.get("CLIENT_ID"),redirectUri:w.iamJumpIsFullPath?(0,f.routerOrigin)():window.origin,scope:"all",state:"hello"},(0,f.getUrlParam)("oauthType")?(y.localStore.set("IAM_OATH_TYPE",(0,f.getUrlParam)("oauthType")),T=(0,s.default)(T,{oauthType:(0,f.getUrlParam)("oauthType")}),window.location.replace(sessionStorage.getItem("IAM_BASE_URL")+"/iam/v1/sys/oauth/authorize?"+p.default.stringify(T),"_self")):(T=(0,s.default)(T,{oauthType:w.oauthType||"iam"}),y.localStore.set("IAM_OATH_TYPE",w.oauthType||"iam"),window.location.replace(sessionStorage.getItem("IAM_BASE_URL")+"/iam/v1/sys/oauth/authorize?"+p.default.stringify(T),"_self"))):b(n,S,w);case 29:t.next=32;break;case 31:S();case 32:case"end":return t.stop()}}),t,void 0)}))),function(t,e,r){return n.apply(this,arguments)})),a.afterEach((function(t,e){(0,v.removeCache)("iam_login"),c.default.done()}))},function(t,e,n){var r=(0,v.getCache)("test_project");r?t.query.shopId?n():n({path:t.path,query:(0,s.default)({},t.query,{shopId:r.shopId,noLogin:!0,flag:r.flag})}):n()})},function(t,e,n){var r,i;
190
187
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
191
- * @license MIT */void 0===(i="function"==typeof(r=function(){var t,e,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(t,e,n){return t<e?e:t>n?n:t}function o(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=i(t,r.minimum,1),n.status=1===t?null:t;var c=n.render(!e),l=c.querySelector(r.barSelector),u=r.speed,h=r.easing;return c.offsetWidth,s((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),a(l,function(t,e,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,i}(t,u,h)),1===t?(a(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){a(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),u)}),u)):setTimeout(e,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*i(Math.random()*e,.1,.95)),e=i(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var i,s=e.querySelector(r.barSelector),c=t?"-100":o(n.status||0),u=document.querySelector(r.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(i=e.querySelector(r.spinnerSelector))&&d(i),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(e),e},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var s=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();function c(t,e){return("string"==typeof t?t:h(t)).indexOf(" "+e+" ")>=0}function l(t,e){var n=h(t),r=n+e;c(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=h(t);c(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function h(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){t.exports={default:n(347),__esModule:!0}},function(t,e,n){n(74),n(34),n(51),n(348),n(349),n(350),n(351),t.exports=n(6).Set},function(t,e,n){"use strict";var r=n(146),i=n(105);t.exports=n(147)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){var r=n(9);r(r.P+r.R,"Set",{toJSON:n(149)("Set")})},function(t,e,n){n(150)("Set")},function(t,e,n){n(151)("Set")},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(133),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=f(n(354)),i=f(n(362)),o=f(n(363)),s=f(n(364)),a=f(n(365)),c=f(n(371)),l=f(n(372)),u=f(n(79)),h=f(n(373)),d=f(n(375));function f(t){return t&&t.__esModule?t:{default:t}}e.default={MapNavLayout:r.default,BasicLayout:i.default,MapWrapper:o.default,NoSidebarWrapper:s.default,SidebarWrapper:a.default,AdminLayout:c.default,FullHeaderLayout:l.default,BlankLayout:u.default,LooseWrapper:h.default,MicroLayout:d.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(64)),i=d(n(13)),o=d(n(14)),s=n(3),a=d(n(176)),c=d(n(66)),l=n(115),u=(d(l),n(5)),h=d(n(4));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapNavLayout",inject:["slotsList","propsList","instance"],components:{GMap:l.GMap},computed:{nav:function(){return this.$store.state.user.addRouters},appRouter:function(){return this.$store.state.user.appRouters}},data:function(){return{isLoaded:!1}},methods:{handleMapChange:function(t){c.default.$emit("mapChange",t)},mapLoad:function(t){t&&(this.isLoaded=!0),c.default.$emit("loadMap",t)},changeLayout:function(){var t=this.$route.matched;t[1]&&"MapNavLayout"===t[1].components.default.name&&this.$store.commit("user/SET_ROUTERS",[this.appRouter[0].children[0]])}},created:function(){this.changeLayout()},updated:function(){var t=this;this.$nextTick((function(){t.$store.commit("user/SET_TIME_STAMP",{type:"map",timeStamp:""+(new Date).getTime()})}))},render:function(){var t=this,e=arguments[0],n=(0,o.default)([s.prefixCls+"-layout-light",s.prefixCls+"-basic-layout"]),c=u.sessionStore.get("RK_MAP_STORE_OPTIONS"),d={},f=u.localStore.get("consumer");(0,h.default)(c)||(d={props:(0,i.default)({},c,{center:f?[f.longitude,f.latitude]:null,zoom:f?f.zoom:15})});var p=function(){return t.propsList.needMap?[t.propsList.keep?e("keep-alive",[e(l.GMap,(0,r.default)([d,{on:{load:t.mapLoad,change:function(e){return t.handleMapChange(e)}}}]))]):e(l.GMap,(0,r.default)([d,{on:{load:t.mapLoad,change:function(e){return t.handleMapChange(e)}}}])),t.isLoaded?e("router-view",{attrs:{theme:"dark",fixed:!0},ref:"$$coreContent",class:s.prefixCls+"-layout-content"}):null]:e("router-view",{attrs:{theme:"dark",fixed:!0},ref:"$$coreContent",class:s.prefixCls+"-layout-content"})};return e("a-layout",{class:n},[e(a.default,{attrs:{mode:this.propsList.navTheme,theme:"dark",fixed:!0,"nav-list":this.nav[0].children}}),e("a-layout-content",[this.slotsList.content?this.slotsList.content:null,p()])])}}},function(t,e,n){t.exports={default:n(356),__esModule:!0}},function(t,e,n){n(357),t.exports=n(6).Math.sign},function(t,e,n){var r=n(9);r(r.S,"Math",{sign:n(358)})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(14),o=(r=i)&&r.__esModule?r:{default:r},s=n(3),a=n(43);e.default={name:"NavItem",props:{title:{type:String,default:""},index:{type:Number,default:0},path:{type:String,default:""},dataSource:{type:Array,default:function(){return[]}}},methods:{goToPage:function(t,e){var n=this;if(1===e)this.$router.push(this.path).then((function(t){n.$emit("navClick")}));else if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;window.location.replace(r)}else this.$router.push(t.path).then((function(t){n.$emit("navClick")}))}},render:function(){var t=this,e=arguments[0],n=this.dataSource.map((function(n){var r=(0,o.default)([s.prefixCls+"-nav-item-footer-item",n.meta.id===t.$route.meta.id?s.prefixCls+"-nav-item-footer-item-active":"",s.prefixCls+"-nav-item-footer-item-"+(0,a.toWord)(n.path)]);return 1===n.type||2===n.type?e("div",{class:r,on:{click:function(){return t.goToPage(n,2)}}},[n.meta.name]):null})),r=(0,o.default)([s.prefixCls+"-nav-item-footer",s.prefixCls+"-nav-item-footer-line"]);return e("div",{class:s.prefixCls+"-nav-item"},[e("div",{class:s.prefixCls+"-nav-item-header",on:{click:function(){return t.goToPage(null,1)}}},[this.title]),e("div",{class:r},[n])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1651739359806",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10705",width:"200",height:"200"}},[t("path",{attrs:{d:"M171.488 85.856h166.08c60.864 0 110.688 49.824 110.688 110.688v276.768H171.488C110.624 473.312 60.8 423.488 60.8 362.528v-166.08C60.8 135.68 110.624 85.856 171.488 85.856z m0 498.144h276.768v276.768c0 60.864-49.824 110.688-110.688 110.688h-166.08C110.624 971.36 60.8 921.632 60.8 860.672v-166.08C60.8 633.824 110.624 584 171.488 584z m0 0M752.672 556.256L558.944 357.056c-22.176-16.608-33.216-49.824-33.216-77.472s11.04-55.392 33.216-77.472L675.2 85.856C719.456 41.6 791.456 41.6 830.144 85.856l116.256 116.256c22.176 22.176 33.216 49.824 33.216 77.472s-11.04 55.392-33.216 77.472L752.672 556.256z m0-448.32c-16.608 0-27.648 5.568-38.784 16.608l-116.16 116.256c-11.04 11.04-16.608 22.176-16.608 38.784s5.568 27.648 16.608 38.784l154.944 154.944 154.944-154.944c11.04-11.04 16.608-22.176 16.608-38.784s-5.568-27.648-16.608-38.784L791.36 124.544c-11.04-11.04-22.08-16.608-38.688-16.608z m0 0","p-id":"10706"}}),t("path",{attrs:{d:"M558.944 584h276.768c60.864 0 110.688 49.824 110.688 110.688v166.08c0 60.864-49.824 110.688-110.688 110.688h-166.08c-60.864 0-110.688-49.824-110.688-110.688V584z m0 0","p-id":"10707"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(25),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"ParkIcon",props:{text:o.default.string},computed:{skin:function(){return{color:"#2AF0FF"}}},render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"146",height:"28",viewBox:"0 0 146 28"},class:"rk-web-core-icon"},[t("defs",[t("linearGradient",{attrs:{id:"a",x1:"0.924",y1:"0.5",x2:"0.057",y2:"0.5",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":this.skin.color,"stop-opacity":"0"}}),t("stop",{attrs:{offset:"0.212","stop-color":this.skin.color,"stop-opacity":"0.502"}}),t("stop",{attrs:{offset:"0.494","stop-color":this.skin.color}}),t("stop",{attrs:{offset:"0.773","stop-color":this.skin.color,"stop-opacity":"0.502"}}),t("stop",{attrs:{offset:"1","stop-color":this.skin.color,"stop-opacity":"0"}})])]),t("g",{attrs:{transform:"translate(-410 -27)"}},[t("g",{attrs:{transform:"translate(-696.409 -68)"}},[t("path",{attrs:{d:"M1113,102h3v15h-3Zm0,0,7-3-4,3Zm0,15,7,3-4-3Z",fill:this.skin.color,"fill-rule":"evenodd"}}),t("path",{attrs:{d:"M1120,105v9l6-4Z",fill:this.skin.color,"fill-rule":"evenodd"}}),t("path",{attrs:{d:"M1246,102h-3v15h3Zm0,0-7-3,4,3Zm0,15-7,3,4-3Z",transform:"translate(-0.158)",fill:this.skin.color,"fill-rule":"evenodd"}}),t("path",{attrs:{d:"M1239,105v9l-6-4Z",transform:"translate(-0.158)",fill:this.skin.color,"fill-rule":"evenodd"}}),t("rect",{attrs:{width:"146",height:"19",transform:"translate(1106.409 100)",opacity:"0.36",fill:"url(#a)"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(176)),i=n(3),o=c(n(14)),s=c(n(4)),a=c(n(50));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"BasicLayout",inject:["slotsList","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters},appRouter:function(){return this.$store.state.user.appRouters},navIndex:function(){return this.$store.state.user.navIndex}},data:function(){return{layout:"SidebarWrapper"}},methods:{changeLayout:function(){var t=this.$route.matched;t[1]&&"BasicLayout"===t[1].components.default.name&&this.$store.commit("user/SET_ROUTERS",[this.appRouter[0].children[1]])}},created:function(){this.changeLayout()},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.nav&&!(0,s.default)(t.nav)&&!(0,s.default)(t.nav[0].children)){var r=(0,i.treeFindPath)(t.nav[0].children,(function(t){return t.meta.id===n[n.length-1].meta.id}));(0,s.default)(r)||!r.length||(0,a.default)(r[0].component)||(t.layout=r[0].component.name)}}),{immediate:!0,deep:!0})},render:function(){var t=arguments[0],e=(0,o.default)([i.prefixCls+"-layout-light",i.prefixCls+"-basic-layout"]);return t("a-layout",{class:e},[this.nav&&this.nav[0]&&this.nav[0].children?t(r.default,{attrs:{mode:this.propsList.navTheme,theme:"MapWrapper"===this.layout?"dark":"light",fixed:"MapWrapper"===this.layout,"nav-list":this.nav[0].children}}):null,this.slotsList.interbed,t("a-layout-content",[this.slotsList.content?this.slotsList.content:null,this.propsList.isRefreshRouter?(0,s.default)(this.propsList.keepAliveRouter)?t("router-view",{class:[i.prefixCls+"-layout-content",i.prefixCls+"-layout-content-"+this.navIndex]}):t("keep-alive",{attrs:{include:this.propsList.keepAliveRouter}},[t("router-view",{class:[i.prefixCls+"-layout-content",i.prefixCls+"-layout-content-"+this.navIndex]})]):null])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(64)),i=u(n(13)),o=n(3),s=u(n(66)),a=n(115),c=(u(a),u(n(4))),l=n(5);function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapWrapper",inject:["slotsList","slotScope","propsList"],components:{GMap:a.GMap},data:function(){return{isLoaded:!1,isShowMap:!0}},computed:{nav:function(){return this.$store.state.user.addRouters}},methods:{mapLoad:function(t,e,n){t&&(this.isLoaded=!0),s.default.$emit("loadMap",t)},handleMapChange:function(t){s.default.$emit("mapChange",t)}},watch:{$route:{handler:function(t){var e=t.matched,n=e[e.length-1];(0,c.default)(n)||(0,c.default)(n.meta.parentLayout)||"MapWrapper"!==n.meta.parentLayout?this.isShowMap=!1:this.isShowMap=!0},immediate:!0}},render:function(){var t=this,e=arguments[0],n=null;(this.isLoaded||!this.isShowMap&&!this.isLoaded)&&(n=e("div",{class:[o.prefixCls+"-layout-content",this.isShowMap?"":o.prefixCls+"-layout-content-map"]},[(0,c.default)(this.propsList.keepAliveRouter)?e("router-view",{attrs:{theme:"dark",fixed:!0},class:o.prefixCls+"-router-view"}):e("keep-alive",{attrs:{include:this.propsList.keepAliveRouter}},[e("router-view",{attrs:{theme:"dark",fixed:!0},class:o.prefixCls+"-router-view"})])]));var s=l.sessionStore.get("RK_MAP_STORE_OPTIONS"),u={},h=l.localStore.get("consumer");return(0,c.default)(s)||(u={props:(0,i.default)({},s,{center:h?[h.longitude,h.latitude]:null,zoom:h?h.zoom:15})}),e("span",[this.isShowMap?e(a.GMap,(0,r.default)([u,{on:{load:this.mapLoad,change:function(e){return t.handleMapChange(e)}}}])):null,n])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"NoSliderWrapper",render:function(){var t=arguments[0];return t("router-view")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(78)),i=c(n(79)),o=n(3),s=c(n(4)),a=c(n(14));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"SliderWrapper",inject:["slotsList","slotScope","propsList"],props:{theme:{type:String,default:"light"},fixed:{type:Boolean,default:!1}},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{sidebarList:[],openKeys:[],selectedKeys:[]}},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.nav&&!(0,s.default)(t.nav)&&!(0,s.default)(t.nav[0].children)){var r=(0,o.treeFindPath)(t.nav[0].children,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.sidebarList=r[0].children}}),{immediate:!0})},render:function(){var t=arguments[0],e=(0,a.default)([o.prefixCls+"-slider-"+this.theme,this.fixed?o.prefixCls+"-slider-fixed":""]);return t("a-layout",{class:o.prefixCls+"-full-layout"},[this.fixed?t("a-affix",{attrs:{"offset-top":70}},[t(r.default,{attrs:{sidebarList:this.sidebarList,theme:this.theme},class:e})]):t(r.default,{attrs:{sidebarList:this.sidebarList,theme:this.theme},class:e}),t("a-layout-content",{class:"rk-web-core-sidebar-wrapper"},[t("div",{attrs:{id:"microApp"}}),this.slotsList.tagView?this.slotsList.tagView:null,this.slotsList.tagView?t("a-scrollbar",{class:"rk-web-core-sidebar-wrapper-scrollbar"},[t(i.default,{class:"rk-web-core-sidebar-wrapper-blank"})]):t(i.default,{class:"rk-web-core-sidebar-wrapper-blank"})])])}}},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",s="[object Map]",a="[object Set]",c=/\w*$/,l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,h={};h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object DataView]"]=h["[object Boolean]"]=h["[object Date]"]=h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h[s]=h["[object Number]"]=h["[object Object]"]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object Symbol]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h["[object Error]"]=h[i]=h["[object WeakMap]"]=!1;var d="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),m=e&&!e.nodeType&&e,g=m&&"object"==typeof n&&n&&!n.nodeType&&n,v=g&&g.exports===m;function y(t,e){return t.set(e[0],e[1]),t}function _(t,e){return t.add(e),t}function b(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function x(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function w(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function S(t,e){return function(n){return t(e(n))}}function M(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var A,C=Array.prototype,E=Function.prototype,T=Object.prototype,I=p["__core-js_shared__"],P=(A=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",L=E.toString,R=T.hasOwnProperty,O=T.toString,B=RegExp("^"+L.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=v?p.Buffer:void 0,D=p.Symbol,F=p.Uint8Array,N=S(Object.getPrototypeOf,Object),j=Object.create,U=T.propertyIsEnumerable,z=C.splice,G=Object.getOwnPropertySymbols,H=k?k.isBuffer:void 0,W=S(Object.keys,Object),V=gt(p,"DataView"),Z=gt(p,"Map"),Q=gt(p,"Promise"),X=gt(p,"Set"),Y=gt(p,"WeakMap"),J=gt(Object,"create"),q=xt(V),K=xt(Z),$=xt(Q),tt=xt(X),et=xt(Y),nt=D?D.prototype:void 0,rt=nt?nt.valueOf:void 0;function it(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){this.__data__=new ot(t)}function ct(t,e){var n=St(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Mt(t)}(t)&&R.call(t,"callee")&&(!U.call(t,"callee")||O.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],i=n.length,o=!!i;for(var s in t)!e&&!R.call(t,s)||o&&("length"==s||_t(s,i))||n.push(s);return n}function lt(t,e,n){var r=t[e];R.call(t,e)&&wt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function ut(t,e){for(var n=t.length;n--;)if(wt(t[n][0],e))return n;return-1}function ht(t,e,n,l,u,d,f){var p;if(l&&(p=d?l(t,u,d,f):l(t)),void 0!==p)return p;if(!Et(t))return t;var m=St(t);if(m){if(p=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&R.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,p)}else{var g=yt(t),v=g==i||g==o;if(At(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if("[object Object]"==g||g==r||v&&!d){if(x(t))return d?t:{};if(p=function(t){return"function"!=typeof t.constructor||bt(t)?{}:(e=N(t),Et(e)?j(e):{});var e}(v?{}:t),!e)return function(t,e){return pt(t,vt(t),e)}(t,function(t,e){return t&&pt(e,Tt(e),t)}(p,t))}else{if(!h[g])return d?t:{};p=function(t,e,n,r){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return ft(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?ft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?ft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case s:return function(t,e,n){return b(e?n(w(t),!0):w(t),y,new t.constructor)}(t,r,n);case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,c.exec(t));return e.lastIndex=t.lastIndex,e}(t);case a:return function(t,e,n){return b(e?n(M(t),!0):M(t),_,new t.constructor)}(t,r,n);case"[object Symbol]":return o=t,rt?Object(rt.call(o)):{}}var o}(t,g,ht,e)}}f||(f=new at);var S=f.get(t);if(S)return S;if(f.set(t,p),!m)var A=n?function(t){return function(t,e,n){var r=e(t);return St(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Tt,vt)}(t):Tt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(A||t,(function(r,i){A&&(r=t[i=r]),lt(p,i,ht(r,e,n,l,i,t,f))})),p}function dt(t){return!(!Et(t)||(e=t,P&&P in e))&&(Ct(t)||x(t)?B:l).test(xt(t));var e}function ft(t){var e=new t.constructor(t.byteLength);return new F(e).set(new F(t)),e}function pt(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],a=r?r(n[s],t[s],s,n,t):void 0;lt(n,s,void 0===a?t[s]:a)}return n}function mt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function gt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return dt(n)?n:void 0}it.prototype.clear=function(){this.__data__=J?J(null):{}},it.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},it.prototype.get=function(t){var e=this.__data__;if(J){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(e,t)?e[t]:void 0},it.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:R.call(e,t)},it.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},ot.prototype.clear=function(){this.__data__=[]},ot.prototype.delete=function(t){var e=this.__data__,n=ut(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),!0)},ot.prototype.get=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return ut(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new it,map:new(Z||ot),string:new it}},st.prototype.delete=function(t){return mt(this,t).delete(t)},st.prototype.get=function(t){return mt(this,t).get(t)},st.prototype.has=function(t){return mt(this,t).has(t)},st.prototype.set=function(t,e){return mt(this,t).set(t,e),this},at.prototype.clear=function(){this.__data__=new ot},at.prototype.delete=function(t){return this.__data__.delete(t)},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ot){var r=n.__data__;if(!Z||r.length<199)return r.push([t,e]),this;n=this.__data__=new st(r)}return n.set(t,e),this};var vt=G?S(G,Object):function(){return[]},yt=function(t){return O.call(t)};function _t(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function bt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function xt(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function wt(t,e){return t===e||t!=t&&e!=e}(V&&"[object DataView]"!=yt(new V(new ArrayBuffer(1)))||Z&&yt(new Z)!=s||Q&&"[object Promise]"!=yt(Q.resolve())||X&&yt(new X)!=a||Y&&"[object WeakMap]"!=yt(new Y))&&(yt=function(t){var e=O.call(t),n="[object Object]"==e?t.constructor:void 0,r=n?xt(n):void 0;if(r)switch(r){case q:return"[object DataView]";case K:return s;case $:return"[object Promise]";case tt:return a;case et:return"[object WeakMap]"}return e});var St=Array.isArray;function Mt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Ct(t)}var At=H||function(){return!1};function Ct(t){var e=Et(t)?O.call(t):"";return e==i||e==o}function Et(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Tt(t){return Mt(t)?ct(t):function(t){if(!bt(t))return W(t);var e=[];for(var n in Object(t))R.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}n.exports=function(t){return ht(t,!0,!0)}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(110)),i=o(n(368));function o(t){return t&&t.__esModule?t:{default:t}}var s={name:"IepResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){if(this.$props.disabled)this.destroyObserver();else{var t=this.$el;t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new r.default((0,i.default)(this.onResize,300)),this.resizeObserver.observe(t))}},onResize:function(t){var e=t[0].target.getBoundingClientRect(),n=e.width,r=e.height,i=Math.floor(n),o=Math.floor(r);if(this.width!==i||this.height!==o){var s={width:i,height:o};this.width=i,this.height=o,this.$emit("resize",s)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}};e.default=s},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==u.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var a=i.test(t);return a||o.test(t)?s(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,s,a,c,l=0,u=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,o=i;return r=i=void 0,l=e,s=t.apply(o,n)}function _(t){return l=t,a=setTimeout(x,e),u?y(t):s}function b(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-l>=o}function x(){var t=f();if(b(t))return w(t);a=setTimeout(x,function(t){var n=e-(t-c);return g?d(n,o-(t-l)):n}(t))}function w(t){return a=void 0,v&&r?y(t):(r=i=void 0,s)}function S(){var t=f(),n=b(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return _(c);if(g)return a=setTimeout(x,e),y(c)}return void 0===a&&(a=setTimeout(x,e)),s}return e=m(e)||0,p(n)&&(u=!!n.leading,o=(g="maxWait"in n)?h(m(n.maxWait)||0,e):o,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=i=a=void 0},S.flush=function(){return void 0===a?s:w(f())},S}}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1651886232129",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2428",width:"200",height:"200"}},[t("path",{attrs:{d:"M156.458667 224.256m42.666666 0l625.792 0q42.666667 0 42.666667 42.666667l0 0q0 42.666667-42.666667 42.666666l-625.792 0q-42.666667 0-42.666666-42.666666l0 0q0-42.666667 42.666666-42.666667Z","p-id":"2429"}}),t("path",{attrs:{d:"M476.458667 473.173333m42.666666 0l305.792 0q42.666667 0 42.666667 42.666667l0 0q0 42.666667-42.666667 42.666667l-305.792 0q-42.666667 0-42.666666-42.666667l0 0q0-42.666667 42.666666-42.666667Z","p-id":"2430"}}),t("path",{attrs:{d:"M156.458667 722.048m35.541333 0l640.042667 0q35.541333 0 35.541333 35.541333l0 0.042667q0 35.541333-35.541333 35.541333l-640.042667 0q-35.541333 0-35.541333-35.541333l0-0.042667q0-35.541333 35.541333-35.541333Z","p-id":"2431"}}),t("path",{attrs:{d:"M219.733333 542.848a42.666667 42.666667 0 0 1 0-68.266667l99.541334-74.666666a42.666667 42.666667 0 0 1 68.266666 34.133333v149.333333a42.666667 42.666667 0 0 1-68.266666 34.133334z","p-id":"2432"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1651886218724",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2291",width:"200",height:"200"}},[t("path",{attrs:{d:"M156.458667 206.037333m42.666666 0l625.792 0q42.666667 0 42.666667 42.666667l0 0q0 42.666667-42.666667 42.666667l-625.792 0q-42.666667 0-42.666666-42.666667l0 0q0-42.666667 42.666666-42.666667Z","p-id":"2292"}}),t("path",{attrs:{d:"M156.458667 454.954667m42.666666 0l305.792 0q42.666667 0 42.666667 42.666666l0 0q0 42.666667-42.666667 42.666667l-305.792 0q-42.666667 0-42.666666-42.666667l0 0q0-42.666667 42.666666-42.666666Z","p-id":"2293"}}),t("path",{attrs:{d:"M156.458667 703.829333m35.541333 0l640.042667 0q35.541333 0 35.541333 35.541334l0 0.042666q0 35.541333-35.541333 35.541334l-640.042667 0q-35.541333 0-35.541333-35.541334l0-0.042666q0-35.541333 35.541333-35.541334Z","p-id":"2294"}}),t("path",{attrs:{d:"M804.266667 456.362667a42.666667 42.666667 0 0 1 0 68.266666l-99.541334 74.666667a42.666667 42.666667 0 0 1-68.266666-34.133333v-149.333334a42.666667 42.666667 0 0 1 68.266666-34.133333z","p-id":"2295"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(64)),i=d(n(14)),o=n(3),s=d(n(79)),a=d(n(113)),c=d(n(78)),l=d(n(114)),u=d(n(67)),h=d(n(68));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AdminLayout",inject:["slotsList","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters},sidebarCollapsed:function(){return this.$store.state.user.sidebarCollapsed}},data:function(){return{sidebarList:[],openKeys:[],selectedKeys:[],isOpen:!0,collapsed:!1,menuWidth:0}},watch:{sidebarCollapsed:{handler:function(t){this.collapsed=t},immediate:!0}},methods:{handleSidebarChange:function(t){this.isOpen=t}},render:function(){var t=this,e=arguments[0],n=(0,i.default)([o.prefixCls+"-layout-light",o.prefixCls+"-basic-layout",o.prefixCls+"-admin-layout"]),d=(0,i.default)([o.prefixCls+"-header",o.prefixCls+"-header-light",o.prefixCls+"-header-light-header",this.isOpen?"":o.prefixCls+"-header-between"]),f=(0,i.default)([o.prefixCls+"-slider-light"]),p=document.documentElement.style.fontSize?parseFloat(document.documentElement.style.fontSize)/100:1;this.isOpen?this.collapsed?this.menuWidth=p*this.propsList.menuCollapsedWidth:this.menuWidth=p*this.propsList.menuWidth:this.menuWidth=0;var m={props:{width:this.menuWidth,collapsedWidth:p*this.propsList.menuCollapsedWidth,trigger:null,collapsible:!0,collapsed:this.collapsed},style:{"--flex":this.menuWidth>0?"0 0 "+80*p+"px":0,"--max-width":this.menuWidth>0?80*p+"px":0,"--width":this.menuWidth>0?80*p+"px":0}};return e("a-layout",{class:n},[e("a-layout-sider",(0,r.default)([{class:[o.prefixCls+"-slider",this.collapsed?o.prefixCls+"-slider-collapsed":""]},m]),[this.slotsList.logo?this.slotsList.logo:e(a.default,{attrs:{prefix:"basic",theme:"light"}}),e(c.default,{attrs:{sidebarList:this.nav[0].children},class:f,on:{change:function(e){return t.handleSidebarChange(e)}}})]),e("a-layout",[e("a-layout-header",{class:d},[this.isOpen?null:this.slotsList.logo?this.slotsList.logo:e(a.default,{attrs:{prefix:"basic",theme:"light"}}),e("div",{class:[o.prefixCls+"-header-light-inner",o.prefixCls+"-header-inner"]},[this.slotsList.header?this.slotsList.header:null,e(l.default),e(u.default),e(h.default)])]),e("a-layout-content",[e(s.default)])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(14)),i=n(3),o=h(n(79)),s=h(n(113)),a=h(n(78)),c=h(n(114)),l=h(n(67)),u=h(n(68));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"FullHeaderLayout",inject:["slotsList","slotScope","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{sidebarList:[],openKeys:[],selectedKeys:[]}},render:function(){var t=arguments[0],e=(0,r.default)([i.prefixCls+"-layout-light",i.prefixCls+"-basic-layout",i.prefixCls+"-admin-layout",i.prefixCls+"-fullHeader-layout"]),n=(0,r.default)([i.prefixCls+"-header",i.prefixCls+"-header-light"]),h=(0,r.default)([i.prefixCls+"-slider-light"]);return t("a-layout",{class:e},[t("a-layout-header",{class:n},[t("div",{class:[i.prefixCls+"-header-light-inner",i.prefixCls+"-header-inner"]},[this.slotsList.logo?this.slotsList.logo:t(s.default,{attrs:{prefix:"basic",theme:"light"}}),t("div",{class:i.prefixCls+"-header-right"},[t("div",{class:i.prefixCls+"-header-right-extra"},[this.slotsList.header,t(c.default),t(l.default),t(u.default)])])])]),t("a-layout",[this.slotsList.sidebar?this.slotsList.sidebar:t(a.default,{attrs:{sidebarList:this.nav[0].children},class:h}),t("a-layout-content",{class:"rk-web-core-full-header-layout"},[this.slotsList.tagView?this.slotsList.tagView:null,this.propsList.keepAliveLayout.some((function(t){return t.indexOf("FullHeaderLayout")>-1}))?this.slotsList.tagView?t("a-scrollbar",{class:"rk-web-core-full-header-layout-scrollbar"},[t(o.default,{class:"rk-web-core-full-header-layout-blank"})]):t(o.default,{class:"rk-web-core-full-header-layout-blank"}):t(o.default)])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);n(374);e.default={name:"LooseWrapper",render:function(){var t=arguments[0];return t("div",{class:r.prefixCls+"-loose-wrapper"},[t("router-view")])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllChildren=e.getAllProps=e.getSlot=e.getSlots=e.camelize=e.isValidElement=e.initDefaultProps=e.parseStyleText=e.getValueByProp=e.getAttrs=e.getKey=e.getPropsData=e.slotHasProp=e.getSlotOptions=e.getComponentFromProp=e.getOptionProps=e.filterProps=e.hasProp=void 0;var r=h(n(28)),i=h(n(156)),o=h(n(53)),s=h(n(158)),a=h(n(13)),c=h(n(23));e.getEvents=function(t){var e={};t.componentOptions&&t.componentOptions.listeners?e=t.componentOptions.listeners:t.data&&t.data.on&&(e=t.data.on);return(0,a.default)({},e)},e.getDataEvents=function(t){var e={};t.data&&t.data.on&&(e=t.data.on);return(0,a.default)({},e)},e.getListeners=function(t){return(t.$vnode?t.$vnode.componentOptions.listeners:t.$listeners)||{}},e.getClass=function(t){var e={};t.data?e=t.data:t.$vnode&&t.$vnode.data&&(e=t.$vnode.data);var n=e.class||{},r=e.staticClass,i={};r&&r.split(" ").forEach((function(t){i[t.trim()]=!0})),"string"==typeof n?n.split(" ").forEach((function(t){i[t.trim()]=!0})):Array.isArray(n)?(0,u.default)(n).split(" ").forEach((function(t){i[t.trim()]=!0})):i=(0,a.default)({},i,n);return i},e.getStyle=function(t,e){var n={};t.data?n=t.data:t.$vnode&&t.$vnode.data&&(n=t.$vnode.data);var r=n.style||n.staticStyle;if("string"==typeof r)r=p(r,e);else if(e&&r){var i={};return(0,c.default)(r).forEach((function(t){return i[f(t)]=r[t]})),i}return r},e.getComponentName=function(t){return t&&(t.Ctor.options.name||t.tag)},e.isEmptyElement=_,e.isStringElement=function(t){return!t.tag},e.filterEmpty=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter((function(t){return!_(t)}))},e.mergeProps=function(){var t=[].slice.call(arguments,0),e={};return t.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!0,r=!1,c=void 0;try{for(var u,h=(0,o.default)((0,i.default)(t));!(n=(u=h.next()).done);n=!0){var d=u.value,f=(0,s.default)(d,2),p=f[0],m=f[1];e[p]=e[p]||{},(0,l.default)(m)?(0,a.default)(e[p],m):e[p]=m}}catch(t){r=!0,c=t}finally{try{!n&&h.return&&h.return()}finally{if(r)throw c}}})),e};var l=h(n(159)),u=h(n(14));function h(t){return t&&t.__esModule?t:{default:t}}var d=/-(\w)/g,f=function(t){return t.replace(d,(function(t,e){return e?e.toUpperCase():""}))},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(r).forEach((function(t){if(t){var r=t.split(i);if(r.length>1){var o=e?f(r[0].trim()):r[0].trim();n[o]=r[1].trim()}}})),n},m=function(t,e){return e in((t.$options||{}).propsData||{})},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return(0,c.default)(t).forEach((function(r){(r in e||void 0!==t[r])&&(n[r]=t[r])})),n},v=function(t){return t.data&&t.data.scopedSlots||{}},y=function(t){var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.propsData||{}};function _(t){return!(t.tag||t.text&&""!==t.text.trim())}e.hasProp=m,e.filterProps=g,e.getOptionProps=function(t){if(t.componentOptions){var e=t.componentOptions,n=e.propsData,r=void 0===n?{}:n,c=e.Ctor,l=((void 0===c?{}:c).options||{}).props||{},u={},h=!0,d=!1,f=void 0;try{for(var p,m=(0,o.default)((0,i.default)(l));!(h=(p=m.next()).done);h=!0){var v=p.value,y=(0,s.default)(v,2),_=y[0],b=y[1],x=b.default;void 0!==x&&(u[_]="function"==typeof x&&"Function"!==(w=b.type,S=void 0,(S=w&&w.toString().match(/^\s*function (\w+)/))?S[1]:"")?x.call(t):x)}}catch(t){d=!0,f=t}finally{try{!h&&m.return&&m.return()}finally{if(d)throw f}}return(0,a.default)({},u,r)}var w,S,M=t.$options,A=void 0===M?{}:M,C=t.$props;return g(void 0===C?{}:C,A.propsData)},e.getComponentFromProp=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.$createElement){var i=t.$createElement,o=t[e];return void 0!==o?"function"==typeof o&&r?o(i,n):o:t.$scopedSlots[e]&&r&&t.$scopedSlots[e](n)||t.$scopedSlots[e]||t.$slots[e]||void 0}var s=t.context.$createElement,a=y(t)[e];if(void 0!==a)return"function"==typeof a&&r?a(s,n):a;var c=v(t)[e];if(void 0!==c)return"function"==typeof c&&r?c(s,n):c;var l=[],u=t.componentOptions||{};return(u.children||[]).forEach((function(t){t.data&&t.data.slot===e&&(t.data.attrs&&delete t.data.attrs.slot,"template"===t.tag?l.push(t.children):l.push(t))})),l.length?l:void 0},e.getSlotOptions=function(t){if(t.fnOptions)return t.fnOptions;var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.Ctor.options||{}},e.slotHasProp=function(t,e){return e in((t.componentOptions||{}).propsData||{})},e.getPropsData=y,e.getKey=function(t){var e=t.key;return t.$vnode&&(e=t.$vnode.key),e},e.getAttrs=function(t){var e=t.data;return t.$vnode&&(e=t.$vnode.data),e&&e.attrs||{}},e.getValueByProp=function(t,e){return y(t)[e]},e.parseStyleText=p,e.initDefaultProps=function(t,e){return(0,c.default)(e).forEach((function(n){if(!t[n])throw new Error("not have "+n+" prop");t[n].def&&(t[n]=t[n].def(e[n]))})),t},e.isValidElement=function(t){return t&&"object"===(void 0===t?"undefined":(0,r.default)(t))&&"componentOptions"in t&&"context"in t&&void 0!==t.tag},e.camelize=f,e.getSlots=function(t){var e=t.componentOptions||{};t.$vnode&&(e=t.$vnode.componentOptions||{});var n=t.children||e.children||[],r={};return n.forEach((function(t){if(!_(t)){var e=t.data&&t.data.slot||"default";r[e]=r[e]||[],r[e].push(t)}})),(0,a.default)({},r,v(t))},e.getSlot=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.$scopedSlots&&t.$scopedSlots[e]&&t.$scopedSlots[e](n)||t.$slots[e]||[]},e.getAllProps=function(t){var e=t.data||{},n=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.data||{},n=t.$vnode.componentOptions||{}),(0,a.default)({},e.props,e.attrs,n.propsData)},e.getAllChildren=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);e.default={name:"MicroLayout",render:function(){var t=arguments[0];return t("div",{class:r.prefixCls+"-micro-layout"},[t("router-view")])}}},function(t,e){t.exports=function(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(69)),i=s(n(40)),o=s(n(39));function s(t){return t&&t.__esModule?t:{default:t}}var a=function t(e){(0,o.default)(this,t),this.data=e,this.parent=null,this.children=[]},c=function(){function t(){(0,o.default)(this,t),this._root=null}return(0,i.default)(t,[{key:"traverseDF",value:function(t){var e=[],n=!1;e.unshift(this._root);for(var i=e.shift();!n&&i;)(n=!0===t(i))||(e.unshift.apply(e,(0,r.default)(i.children)),i=e.shift())}},{key:"traverseBF",value:function(t){var e=[],n=!1;e.push(this._root);for(var i=e.shift();!n&&i;)(n=!0===t(i))||(e.push.apply(e,(0,r.default)(i.children)),i=e.shift())}},{key:"contains",value:function(t,e){e.call(this,t)}},{key:"add",value:function(t,e,n){var r=new a(t);if(null===this._root)return this._root=r,this;var i=null;if(this.contains((function(t){if(t.data===e)return i=t,!0}),n),i)return i.children.push(r),r.parent=i,this;throw new Error("Cannot add node to a non-existent parent.")}},{key:"remove",value:function(t,e,n){var r=null;if(this.contains((function(t){if(t.data===e)return r=t,!0}),n),!r)throw new Error("Parent does not exist.");var i=this._findIndex(r.children,t);if(i<0)throw new Error("Node to remove does not exist.");return r.children.splice(i,1)}},{key:"_findIndex",value:function(t,e){for(var n=-1,r=0,i=t.length;r<i;r++)if(t[r].data===e){n=r;break}return n}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.noLogin=void 0;var r=n(43),i=n(8),o=n(5);e.noLogin=function(t,e){return e||console.warn("token is not undefined"),function(){var n=(0,r.getUrlParam)("shopId");n?(o.localStore.set("access_token",e),(0,i.setCache)("code","demo"),(0,i.setCache)("test_project",{shopId:(0,r.getUrlParam)("shopId")||(0,i.getCache)("test_project").shopId,flag:(0,r.getUrlParam)("flag")||(0,i.getCache)("test_project").flag}),t.replace({path:"/",query:{shopId:n}}).then()):((0,i.removeCache)("test_project"),(0,i.removeCache)("noLogin",i.sessionEngine))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(41)),i=d(n(66)),o=d(n(4)),s=d(n(25)),a=n(3),c=d(n(380)),l=d(n(183)),u=d(n(383)),h=n(8);function d(t){return t&&t.__esModule?t:{default:t}}var f={name:"AppLayout",props:{navVersion:s.default.oneOf(["v1","v2"]).def("v1"),navTheme:s.default.oneOf(["iep","park"]).def("iep"),theme:s.default.oneOf(["light","dark"]).def("light"),datetime:s.default.bool.def(!0),gpt:s.default.bool.def(!1),weather:s.default.bool.def(!0),menuWidth:s.default.number.def(250),menuInlineIndent:s.default.number.def(20),menuCollapsedWidth:s.default.number.def(80),menuIconTargetCustom:s.default.bool.def(!0),keepAliveLayout:s.default.array.def([]),keepAliveRouter:s.default.array.def([]),wind:s.default.bool.def(!0),keep:s.default.bool.def(!1),needMap:s.default.bool.def(!1),project:s.default.bool.def(!1),nav:s.default.bool.def(!0),right:s.default.bool.def(!0),skin:s.default.bool.def(!1),customPersonCenter:s.default.bool.def(!1),sidebarMenuSize:s.default.number.def(20),sidebarMenuAutoSize:s.default.bool.def(!0),multiProject:s.default.bool.def(!0),sidebarAlwaysOpened:s.default.bool.def(!0),versionModal:s.default.bool.def(!1),versionRecordRouter:s.default.string,isRefreshRouter:s.default.bool.def(!0)},data:function(){return{mapInstance:null,versionVisible:!1,versionInfo:{}}},computed:{appRouters:function(){return this.$store.state.user.appRouters},appLogout:function(){return this.$store.state.user.appLogout},appSkin:function(){return this.$store.state.user.skin},version:function(){return this.$store.state.user.currentAppVersion},historyVersion:function(){return this.$store.state.user.historyAppVersion},currentWeather:function(){return this.$store.state.user.currentAppWeather},userAllInfo:function(){return this.$store.state.user.userAllInfo}},provide:function(){return{slotsList:this.$slots,slotScope:this.$scopedSlots,propsList:this.$props,instance:this}},mounted:function(){var t=this;try{l.default.initIndexedDb()}catch(t){console.warn("db init error")}i.default.$on("loadMap",(function(e){console.log("***************MAPTALKS*****************"),console.log(e),t.mapInstance=e,t.$props.skin&&t.changeMapTheme(t.appSkin),t.$props.needMap&&t.$nextTick((function(){t.$props.versionModal&&t.listenVersion().then((function(){e.isLoad&&(t.versionVisible=!(0,o.default)(t.versionInfo.versionContent))}))})),console.log("***************MAPTALKS*****************"),t.$emit("load",e)})),i.default.$on("mapChange",(function(e){t.$emit("change",e)})),i.default.$on("extendChange",(function(e){t.$emit("extendChange",e)}))},updated:function(){var t=this;this.$nextTick((function(){t.$store.commit("user/SET_TIME_STAMP",{type:"app",timeStamp:""+(new Date).getTime()})}))},beforeDestroy:function(){i.default.$off("loadMap"),i.default.$off("mapChange"),i.default.$off("extendChange")},methods:{onLink:function(){var t=this.$props.versionRecordRouter;(0,o.default)(t)||(this.versionVisible=!1,this.$router.push(t).then((function(t){})))},changeMapTheme:function(t){if(!(0,o.default)(this.mapInstance)&&!(0,o.default)(this.mapInstance.instance)){var e=(0,h.getCache)("RK_MAP_STORE_OPTIONS",h.sessionEngine),n=this.mapInstance.instance.getBaseLayer().getAMap();"light"===t.style?n.setMapStyle("amap://styles/light"):(0,o.default)(e)||(0,o.default)(e.aMapStyle)?n.setMapStyle("amap://styles/2fa29a356dbc3a567b473b846fe84ed1"):n.setMapStyle(e.aMapStyle)}},listenVersion:function(){var t=this;return new r.default((function(e){t.$getDb("version").then((function(n){n&&t.version.verionCode===n.val||(t.versionInfo=t.version,t.$saveDb({tag:"version",val:t.version.verionCode,created:t.version.createdTime,desc:t.version.versionContent,isTop:t.version.isTop}),e(t.version))})).catch((function(t){console.log(t)}))}))}},watch:{appRouters:{handler:function(t){if(!(0,o.default)(t)){var e=this.$store.state.user,n=e.consumer,r=e.userAllInfo,i=e.currentProject,s=e.consumerExtList,a=e.menu_list;this.$emit("appInit",{consumer:n,userAllInfo:r,currentProject:i,consumerExtList:s,menu_list:a}),this.$props.needMap||(this.versionVisible=!(0,o.default)(this.versionInfo.versionContent))}},immediate:!0},appLogout:{handler:function(t){this.$emit("appLogout")},immediate:!0},appSkin:{handler:function(t){this.$props.skin&&(this.$emit("theme",t),this.changeMapTheme(t))},immediate:!0},version:{handler:function(t){var e=this;this.$props.needMap||this.$nextTick((function(){e.$props.versionModal&&e.listenVersion(t)})),this.$emit("version",t,1===parseInt(t.isTop))}},historyVersion:{handler:function(t){this.$emit("historyVersion",t)}},currentWeather:{handler:function(t){this.$emit("currentWeather",t)}},sidebarAlwaysOpened:{handler:function(t){this.$store.commit("user/SET_SIDEBAR_COLLAPSED",!t)},immediate:!0},theme:{handler:function(t){"dark"===t&&this.$store.commit("user/SET_SKIN",{color:getComputedStyle(document.documentElement).getPropertyValue("--antd-wave-shadow-color").trim()||"#0F6EFF",style:"dark"})},immediate:!0}},render:function(){var t=this,e=arguments[0],n=this.$slots,r=this.$props.versionModal;return e("div",{class:[a.prefixCls+"-layout",a.prefixCls+"-layout-theme-"+this.appSkin.style]},[e(c.default),n.default,r&&!(0,o.default)(this.versionInfo)?e(u.default,{attrs:{versionRecordRouter:this.$props.versionRecordRouter,visible:this.versionVisible,versionInfo:this.versionInfo},on:{close:function(){return t.versionVisible=!1},link:function(){return t.onLink()}}}):null])},install:function(t){t.component(f.name,f)}};e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=l(n(381));n(382);var o=n(5),s=n(17),a=n(65),c=l(n(4));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Extension",data:function(){return{isShow:!1,extensionBtn:[{title:"清除localStorage",key:1},{title:"清除sessionStorage",key:2},{title:"清除全部缓存",key:3},{title:"清除db",key:4},{title:"退出登录",key:5},{title:"重新拉取用户信息",key:6},{title:"刷新页面",key:7},{title:"重新初始化系统",key:8},{title:"reload系统",key:9}]}},computed:{isExtension:function(){return this.$isExtension}},watch:{isExtension:{handler:function(t){var e=this;t&&this.$nextTick((function(){(0,i.default)(e.$refs.extension)}))},immediate:!0}},methods:{handleTap:function(t){var e=this;switch(t){case 1:localStorage.clear();break;case 2:sessionStorage.clear();break;case 3:o.storage.clearAll();break;case 4:indexedDB.deleteDatabase("amap-jsapi"),indexedDB.deleteDatabase("iep_db"),indexedDB.deleteDatabase("rk-web-core");break;case 5:(0,s.logOut)();break;case 6:var n=this.$route.path;this.$store.commit("user/SET_ROUTERS",[]),this.$store.commit("user/SET_APP_ROUTERS",[]),this.$store.commit("user/SET_MENU_LIST",[]),this.$store.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:getCache("CLIENT_ID",sessionEngine)}).then((function(t){(0,c.default)(t)||((0,a.setAsyncRoutes)(e.$router,e.$store,t,e.$pkRouter,e.$basicOptions),e.$nextTick((function(){e.$router.replace("/").finally((function(){e.$router.replace(n)}))})))}));break;case 7:this.$router.replace("/refresh");break;case 8:this.$router.replace("/");break;case 9:window.location.reload()}}},render:function(){var t=this,e=arguments[0],n=this.extensionBtn.map((function(n){return e("div",{class:r.prefixCls+"-extension-group-item"},[e("a-button",{attrs:{type:"danger",ghost:!0},on:{click:function(){return t.handleTap(n.key)}}},[n.title])])}));return this.isExtension?e("a-tooltip",{attrs:{overlayClassName:r.prefixCls+"-extension-tooltip","get-popup-container":function(t){return t.parentElement}}},[e("template",{slot:"title"},[e("div",{class:r.prefixCls+"-extension-group"},[n])]),e("div",{class:r.prefixCls+"-extension",attrs:{title:"调试"},ref:"extension"},[e("a-icon",{attrs:{type:"bug"}})])]):null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){t.style.position="fixed";var e=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0;if({mobile:!!navigator.userAgent.match(/AppleWebKit.*Mobile.*/)}.mobile){if(null!=t){var a=document.body.clientWidth-t.offsetWidth,c=document.body.clientHeight-t.offsetHeight,l=function(t){t.preventDefault()};t.addEventListener("touchstart",(function(e){var n=(e||window.event).targetTouches[0];r=n.clientX-t.offsetLeft,i=n.clientY-t.offsetTop,document.addEventListener("touchmove",l,!1),t.addEventListener("touchmove",(function(e){var n=(e||window.event).targetTouches[0];o=n.clientX-r,s=n.clientY-i,o<0?o=0:o>=a&&(o=a),s<0?s=0:s>=c&&(s=c),t.style.left=o+"px",t.style.top=s+"px"})),t.addEventListener("touchend",(function(){document.removeEventListener("touchmove",l)}))}))}}else null!==t&&t.addEventListener("mousedown",(function(r){if(r.stopPropagation(),r.preventDefault(),0===r.button&&null!=t){var i=getComputedStyle(t);e=r.pageX-t.offsetLeft+parseInt(i["margin-left"]),n=r.pageY-t.offsetTop+parseInt(i["margin-right"]);var o=function(r){if(r.stopPropagation(),r.preventDefault(),null!=t){var i=r.pageX-e,o=r.pageY-n;i<0?i=0:i>document.documentElement.clientWidth-t.offsetWidth&&(i=document.documentElement.clientWidth-t.offsetWidth),o<0?o=0:o>document.documentElement.clientHeight-t.offsetHeight&&(o=document.documentElement.clientHeight-t.offsetHeight),t.style.left=i+"px",t.style.top=o+"px"}return!1};document.addEventListener("mousemove",o);document.addEventListener("mouseup",(function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)}))}return!1}))}},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"VersionModal",props:{visible:Boolean,versionRecordRouter:String,versionInfo:{type:Object,default:function(){}}},methods:{formatDate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss";"number"==typeof t&&(t=new Date(t)),"string"==typeof t&&(t=t.includes("-")?new Date(t):new Date(Number(t)));var n={"y+":t.getFullYear(),"M+":t.getMonth()+1,"d+":t.getDate(),"D+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(Object.hasOwnProperty.call(n,r)){var i=1===String(n[r]).length?"0"+n[r]:n[r];RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,i))}return e},handleCancel:function(){this.$emit("close")},jumpVersion:function(){this.$emit("link")}},render:function(){var t=arguments[0],e=this.$props,n=e.visible,r=e.versionInfo,i=(0,o.default)(r)||(0,o.default)(r.versionContent)||!r.versionContent.includes("[{")?[]:JSON.parse(r.versionContent);return t("a-modal",{attrs:{dialogClass:"rk-web-core-version-modal",title:"版本管理",visible:n,footer:null,centered:!0},on:{cancel:this.handleCancel}},[t("h3",{class:"version-title"},[this.versionInfo.verionCode]),t("p",{class:"update-time"},[this.formatDate(Number(this.versionInfo.updatedTime),"yyyy-MM-dd")]),t("div",{class:"version-content"},[i.map((function(e){return t("p",[t("span",{class:"cicle"}),e.words,t("a-image-preview-group",[e.image.map((function(e){return t("a-image",{attrs:{src:e}},[t("icon-font",{attrs:{type:"icon-photo"},slot:"placeholder"})])}))])])})),(0,o.default)(this.$props.versionRecordRouter)?null:t("div",{class:"version-more",on:{click:this.jumpVersion}},["更多版本更新记录",t("icon-font",{attrs:{type:"icon-more"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=h(n(30)),o=h(n(31)),s=n(3),a=h(n(47)),c=(h(n(22)),n(8),n(5)),l=n(17),u=h(n(50));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppUserPublic",props:{theme:{type:String,default:"light"},logout:{type:Function},userName:!1,userAvatar:!1},computed:{currentUser:function(){return this.userName?this.userName:c.localStore.get("userName")},avaImg:function(){return this.userAvatar?this.userAvatar:c.localStore.get("userAllInfo").userExt&&c.localStore.get("userAllInfo").userExt.weChatAvatar?c.localStore.get("userAllInfo").userExt.weChatAvatar:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/default_avatar.png"}},data:function(){return{}},mounted:function(){},methods:{changeBtn:(r=(0,o.default)(i.default.mark((function t(e,n){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,u.default)(this.$props.logout)){t.next=2;break}return t.abrupt("return",this.$props.logout());case 2:if(!(0,u.default)(this.propsList.logout)){t.next=4;break}return t.abrupt("return",this.propsList.logout());case 4:this.$store.commit("user/SET_APP_LOGOUT",!0),r=c.localStore.get("IAM_OATH_TYPE"),a.default.clearAll(),c.localStore.set("IAM_OATH_TYPE",r),(0,l.logOut)();case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)}),changePath:function(){"/rkWebCoreSetting"!==this.$route.path&&this.$router.push({path:"/rkWebCoreSetting?path="+this.$route.path,query:this.$route.query})}},render:function(){var t=this,e=arguments[0];return e("a-dropdown",{attrs:{trigger:["click"]}},[e("span",{class:[s.prefixCls+"-app-external-link",s.prefixCls+"-app-external-link-"+this.theme]},[this.avaImg&&e("img",{class:s.prefixCls+"-app-user-avatar",attrs:{src:this.avaImg,alt:""}}),e("span",{class:s.prefixCls+"-app-external-link-title"},[this.currentUser]),e("a-icon",{attrs:{type:"caret-down"}})]),e("div",{slot:"overlay",class:s.prefixCls+"-app-external-wrapper"},[e("div",{class:s.prefixCls+"-app-external-btn-group"},[e("div",{class:s.prefixCls+"-app-external-btn-item",on:{click:this.changePath}},[e("span",["个人设置"])]),e("div",{class:s.prefixCls+"-app-external-btn-item",on:{click:function(){return t.changeBtn(2)}}},[e("span",["退出登录"])])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(12),o=h(n(112)),s=h(n(4)),a=h(n(177)),c=h(n(54)),l=n(8),u=n(5);function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppLogoPublic",props:{prefix:{type:String,default:"basic"},theme:{type:String,default:"light"}},computed:{currentConsumer:function(){return u.localStore.get("consumer")},sidebarCollapsed:function(){return this.$store.state.user.sidebarCollapsed}},data:function(){return{currentInfo:{icon:void 0,name:void 0},collapsed:!1}},watch:{sidebarCollapsed:{handler:function(t){this.collapsed=t},immediate:!0}},mounted:function(){var t=(0,l.getCache)("APP_PROJECT");if(t){var e=c.default.decrypt(t);e&&(this.currentInfo=e)}this.getByCuserInfo()},methods:{getByCuserInfo:function(){var t=this,e=(0,l.getCache)("CLIENT_ID",l.sessionEngine);(0,i.getByCuser)().then((function(n){var r=(0,o.default)(n.data,(function(t){return t.code===e})),i=c.default.decrypt((0,l.getCache)("APP_PROJECT"));!r||(0,s.default)(r)||(0,s.default)(r[0])?(t.currentInfo=i.includes("{")?JSON.parse(i):{},(0,l.setCache)("SYS_PROJECT_NAME",t.currentInfo.name,l.sessionEngine)):(t.currentInfo=r[0],r&&r[0]&&r[0].name&&(0,l.setCache)("SYS_PROJECT_NAME",r[0].name,l.sessionEngine))}))}},render:function(){var t=arguments[0],e=this.prefix,n=this.theme,i=r.prefixCls+"-logo";return t("div",{class:[i,i+"-"+e]},[t("div",{class:[i+"-"+e+"-inner",i+"-inner",i+"-"+n+"-inner"]},[t("img",{attrs:{src:this.currentInfo.icon?this.currentInfo.icon:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/1437955217135501312.png"}}),t("span",{class:[i+"-"+e+"-title",i+"-title"]},[this.currentInfo.name])]),t("div",{class:i+"-mark-inner"},[t(a.default)])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=y(n(30)),o=y(n(31)),s=y(n(13)),a=n(3),c=y(n(47)),l=n(12),u=y(n(46)),h=y(n(4)),d=y(n(14)),f=(y(n(22)),y(n(63))),p=y(n(66)),m=n(8),g=n(5),v=n(17);function y(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppExternalPublic",props:{theme:{type:String,default:"light"}},computed:{currentUser:function(){return g.localStore.get("userName")},currentProject:function(){return g.localStore.get("currentProject")}},data:function(){return{projectList:[],currentProjectInfo:void 0}},mounted:function(){this.getAllProject()},methods:{getAllProject:function(){var t=this;(0,l.getBelongList)().then((function(e){(0,m.getCache)("CLIENT_ID",m.sessionEngine);t.projectList=e.data.map((function(e){return(0,s.default)({},e,{check:e.id===t.currentProject.id})}));var n=(0,u.default)(t.projectList,["id",t.currentProject.id]);(0,h.default)(n)||(t.currentProjectInfo=n.name)}))},changeBtn:(r=(0,o.default)(i.default.mark((function t(e,n){var r,o,s,a,u;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(1!==e){t.next=16;break}return p.default.$emit("extendChange",n),(0,m.removeCache)("menuList"),(0,m.removeCache)("consumer"),(0,m.removeCache)("currentProject"),(0,m.removeCache)("consumerExtList"),(0,m.removeCache)("userMessage"),g.localStore.get("currentProject",n),t.next=10,(0,l.postConsumer)(n.id);case 10:r=t.sent,o=r.data,s=g.localStore.get("IAM_OATH_TYPE"),(0,h.default)(o)||((0,m.removeCache)("menuList"),localStorage.removeItem("access_token"),g.localStore.set("access_token",o.access_token),g.localStore.set("refresh_token",o.refresh_token),a=new Date,g.localStore.set("token_expires_in",new Date(a.setSeconds(a.getSeconds()+parseInt(o.expires_in))).getTime()),s&&"idp"===s&&(g.localStore.set("idp_access_token",o.idp_access_token),g.localStore.set("idp_refresh_token",o.idp_refresh_token)),this.$router.replace("/").then((function(){window.location.reload()}))),t.next=20;break;case 16:u=g.localStore.get("IAM_OATH_TYPE"),c.default.clearAll(),g.localStore.set("IAM_OATH_TYPE",u),(0,v.logOut)();case 20:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},render:function(){var t=this,e=arguments[0],n=this.projectList.map((function(n){var r=(0,d.default)([a.prefixCls+"-app-external-cell",n.check?a.prefixCls+"-app-external-active":""]);return e("div",{class:r,on:{click:function(){return t.changeBtn(1,n)}}},[n.name])}));return e("a-dropdown",{attrs:{trigger:["click"]}},[e("span",{class:[a.prefixCls+"-app-external-link",a.prefixCls+"-app-external-link-"+this.theme]},[e("span",{class:a.prefixCls+"-app-external-link-sub"},[this.currentProjectInfo]),e("a-icon",{attrs:{type:"caret-down"}})]),e("div",{slot:"overlay",class:a.prefixCls+"-app-external-wrapper"},[(0,h.default)(this.projectList)?null:e("div",{class:[a.prefixCls+"-app-external-list",!(0,h.default)(this.projectList)&&this.projectList.length>10?a.prefixCls+"-app-external-list-scroll":""]},[e(f.default,[n])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(23)),i=h(n(171)),o=n(3),s=n(12),a=h(n(172)),c=h(n(173)),l=h(n(174)),u=(n(8),n(5));function h(t){return t&&t.__esModule?t:{default:t}}var d={"东北⻛":[22.5,67.5],"东⻛":[67.5,112.5],"东南⻛":[112.5,157.5],"南⻛":[157.5,202.5],"⻄南⻛":[202.5,247.5],"⻄⻛":[247.5,292.5],"⻄北⻛":[292.5,337.5]},f={"0级":[0,.2],"1级":[.2,1.5],"2级":[1.5,3.3],"3级":[3.3,5.4],"4级":[5.4,7.9],"5级":[7.9,10.7],"6级":[10.7,13.8],"7级":[13.8,17.1],"8级":[17.1,20.7],"9级":[20.7,24.4],"10级":[24.4,28.4],"11级":[28.4,32.6]};e.default={name:"HeaderInfoGroupPublic",props:{theme:{type:String,default:"light"}},data:function(){return{ymd:"00-00-00",hms:"--:--:--",regionDataInfo:{temperature:0,time:void 0,url:void 0,value:0,windDirection:0,windSpeed:0,iconDay:void 0,iconNight:void 0,weather:"晴",windDegrees:180,windLevel:2},isDay:!0,visible:!1}},mounted:function(){var t=this;this.timer=setInterval((function(){t.initDateTime()}),1e3),this.getRealDate()},methods:{handleClose:function(){this.visible=!1},handleChange:function(t){this.handleClose()},handleSkin:function(){this.visible=!0},calcWindDirection:function(t){return{transform:"rotateZ("+t+"deg)"}},calcWind:function(t){var e=(0,i.default)(d).findIndex((function(e){return t>e[0]&&t<=e[1]}));return""+((0,r.default)(d)[e]||"北风")},calcWindLevel:function(t){if(0===t)return"0级";var e=(0,i.default)(f).findIndex((function(e){return t>e[0]&&t<=e[1]}));return""+((0,r.default)(f)[e]||"12级")},initDateTime:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),i=(new Date).getHours(),o=(new Date).getMinutes(),s=(new Date).getSeconds();this.ymd=e+"-"+this.addZero(n)+"-"+this.addZero(r),this.isDay=i>6&&i<=18,this.hms=this.addZero(i)+":"+this.addZero(o)+":"+this.addZero(s)},addZero:function(t){return t<10?"0"+t:t},getRealDate:function(){var t=this,e=u.localStore.get("consumer").regionId;(0,s.getRegionDataInfo)({areaCode:e}).then((function(e){t.regionDataInfo=e.data.live}))}},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},render:function(){var t=this,e=arguments[0];return e("div",{class:[o.prefixCls+"-header-info-group",o.prefixCls+"-header-info-group-"+this.theme]},[e("div",{class:[o.prefixCls+"-header-info-group-skin"],on:{click:function(){return t.handleSkin()}}},[e(c.default)]),e("div",{class:[o.prefixCls+"-header-info-group-time",o.prefixCls+"-header-info-group-item"]},[e("span",[this.hms]),e("small",[this.ymd])]),e("div",{class:[o.prefixCls+"-header-info-group-weather",o.prefixCls+"-header-info-group-item"]},[e("img",{attrs:{src:this.regionDataInfo.icon,alt:""}}),e("span",[this.regionDataInfo.temperature,"℃"])]),e("div",{class:[o.prefixCls+"-header-info-group-wind",o.prefixCls+"-header-info-group-item"]},[e("div",{class:o.prefixCls+"-header-info-group-wind-img"},[e(a.default,{style:this.calcWindDirection(this.regionDataInfo.windDegrees)})]),e("div",{class:o.prefixCls+"-header-info-group-wind-info"},[e("span",[this.regionDataInfo.windLevel,"级"]),e("span",[this.regionDataInfo.windDirection])])]),e(l.default,{attrs:{visible:this.visible},on:{close:this.handleClose,change:this.handleChange}})])}}},function(t,e,n){"use strict";n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406)},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(13)),i=a(n(39)),o=a(n(40));e.microOne=h,e.microTwo=d,e.microThree=function(){window.__MICRO_APP_ENVIRONMENT__?window["micro-app-"+window.__MICRO_APP_NAME__]={mount:h(),unmount:d()}:h()};var s=a(n(184));function a(t){return t&&t.__esModule?t:{default:t}}var c=void 0,l=void 0,u=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"start",value:function(t){s.default.start((0,r.default)({},t))}},{key:"isMicro",value:function(){return window.__MICRO_APP_ENVIRONMENT__}},{key:"publicPath",value:function(){window.__MICRO_APP_ENVIRONMENT__&&(n.p=window.__MICRO_APP_PUBLIC_PATH__)}},{key:"registerMicro",value:function(t,e){return c=function(){console.log("********************render micro app********************"),l=new t(e).$mount("#app")},window.__MICRO_APP_ENVIRONMENT__||c(),{renderSub:c,subInstance:l,instance:s.default}}}]),t}();function h(){c()}function d(){l.$destroy(),l.$el.innerHTML="",l=null}e.default=new u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(23)),i=a(n(4)),o=a(n(55)),s=n(65);function a(t){return t&&t.__esModule?t:{default:t}}var c={name:"action",inserted:function(t,e,n){var a=e.arg,c=e.value,l=n.context.$route.meta,u=(0,s.getDeepChild)(l.childMenuList);if((0,i.default)(l)||(0,i.default)(u))t.parentNode&&t.parentNode.removeChild(t)||(t.style.display="none");else{var h="";"func"!==a||(0,i.default)(c)||(h=c),(0,o.default)(n.context,(0,i.default)(c)?{}:c,t,!0,a,h,u),u.findIndex((function(t){return(0,r.default)(t).includes(a)||(0,r.default)(t).includes(h)}))<=-1&&(t.parentNode&&t.parentNode.removeChild(t)||(t.style.display="none"))}},install:function(t){t.directive(c.name,c)}};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(39)),i=o(n(40));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e,n,i){(0,r.default)(this,t),this.route=e,this.store=n,this.vm=i}return(0,i.default)(t,[{key:"setSidebarVisible",value:function(t){this.store.commit("user/SET_OPEN_SIDEBAR",t)}},{key:"getAllRouterStack",value:function(){return this.store.state.user.appRouters}},{key:"getCurrentRouterStack",value:function(){return this.store.state.user.addRouters}}]),t}();e.default=function(t,e,n){return new s(t,e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(window.console){console.info("%c ","font-size:40px;background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAAAoCAYAAADJ09eqAAAP20lEQVR4Xu2deXRdRR3Hv/NCWkCgIFvzYhLAUgRUkhQQEbSgHhQXXMBdOCKKuKC4KxytqLiguIKg4oY7giKKG2pUVCg0r4JSBCpNcngFigIKIoXkej6vd9Jhztz37vLSNn3390/Te2fmzvxmvvNbZ56RFKk4LZe0SNIUTdX7hk+NNPWhws0are0dXz63cDtlAyUHOoQDpk2Ahl0nSvoif0S7Ld5y9dTdK6JIuxXiozGX947Xnl6ojbJyyYEO4kA7Ab1G0kJJd8O/1f1DR09F0YV5eWlkJitzugbnr7zmr3nbKOuVHOg0DrQT0PDu05JOsUys9w2NRIqekpOpZ/dOLH9jzrpltZIDHcmBdgP6IUmPk3QD3Lx996H9Jh+KRiOpkom7Rndtu/WcPbe7Yek/M9UrC5cc6HAOtBvQsPMXkp4xLaX7B8+LIr02E5+NObl3vPa5THXKwiUHSg5oJgANW58j6ScNW3rB0M7RWt0URdG8NPw2xlzfs8e8/czICNK+pJIDJQcycGCmAH2TpMdKWktf6n3Dp0SaOitNv4y6jqhOLPtlXHZHSaXanYZxZZmSA1JDQq+eIU6cJul82o4WLequr5m8TpH2avotYy7tHa891ylzjqTXZ+xf0bg69f8h6RpJZ0i6NuP3N8fin5L0lsDA3iCJOZoNdJek7b2OstYunQ2dd/r4NUnHeX3+qqTjeQagNwitHhg8cmpKP038mNHa7u7KvrusHL05LjMs6QpJW2fsYFFAu59Dw3izpHMz9mFzKo7/47zAgD4b82a2jLUEdLtnqt43dFmk6JnBdo3O7B1f/k7n3R8kHSgpa6ZYOwFNdx6M+0E2XKfRYbGTs9sb+M9iP8nkLGJICeh2T9aa3fff68HJyeuiKHrYAjFGt8+dM3fhjjdf9e/4my+R9J3YBm8HoF8t6S8txlONs92eFSj3Y0lHtZsfm3h7e0q6StIOXj9J9HmSJDtXm/gwprvXGYCu9w+uTDsjxphzesZqn3TK/0DSUIv6AOkFtkx9YPCsaGp98knjecWc0DtWa9jbkraS9HdJfW0ENAvwTynH+UNJz/PK3i5pfqD+LpKOjvPYe1O0/4AkHIbfjW30ZlWOiIGzr6QtUrTtFsGpeHb8ABvX79vnJf2qSZuA+Mo4888tdoekJ0ha5TwkcejJkh6fQptCe7pT0h/jDft+rw+EO9+Rcax+8QlJ35d0mfciBOilkm4LfA/eWccsr4nQvC5e66zPJMI08b/L3LGe0DbJpGyVk4HWc6sktKCQidrchr61bzCVimpk7tyqa96eO6waaaR2xiC9KCXzWfSNsnfttnj7+yfvuSlStBP/N8aM9hx/1AFmyZLGwQ5J75e0JP4bG7YdEjoLoAHSzwPjYpHbsfP6hbFt3RhHRmKsH43H6ofndo2diSFNIe1nviRNx/7ZHFlILr1G0pcTGmMBkktwuPeezQgV/M/xcxxMLPyXpe2UV+5vktDE3NTeV0n6Ss72/Go4NE91HoYAnfSp6XMJkh4VCwMETCsis9FupJR9jKQLJO3fqmLC+x9JQrv8l/O+bYA+qTpRs84hQHa9pD1SdpQdfW9J/6N8vX/4xCiaarRlTNeh1fFlOL8gmEaWmXWEbQxAE267LjAuQmiWsey2SPyulONPKvZBSe9zXuKk/J2kQwu2WwTQzAsL2qeXS/q28xDtjE2tCBGSZNEjtaF2AhpBxVyyTqEsgEYaW0fg9yS9KOUgXa//NvE6KnZAad16WNxmQJtrqwctGDYXXmidIO+JQzopx9koRhjrw/wRLVlSqZ9/yaikFb0TtZc6jWA3s2tbygpoAGElvdu3LBIa1TFkb7uAxkG2X2DwLB5ULjd2vmWspk5nz3njY0HfEj9jNw5JTvhwcayuh8bnd2WZE465URL2sEtJEprQFCEqn06PtQn7HO2hkTjkEdoG/gakrttPVH58EJgoPnFCz24ghF6s6WXLsYl+LFCPR8w32scrJM0JlHElbQjQaI02quJWx+zCfwCx2TD3PmE6Mdf/cV4QAkONhz6eYD4wnkskjTn1GAfr4PkJ43A3069LOtbrzPqwVRqVu1LpOrxnbNlv40Z6JLFI2IGy0H0x8+tUqvcvOmRud2Vsx5VXY/NAgM5KattuVkBTL2RCZAE09g4T6tMj412eybUSxV8EL4694iG+EE931TFbhkXMhEDYfsd4leEb/W/l1Euai7SAPjIGo691IKHYdF2+huLSgPlpsYYR6svOkohc+LkIzH9/XCEkockJeHSLhfbU2Cfgh2GnhUiChG4Vh04SEGhnfLOhcSYQAsv3L41LOji2kUPVUM3BgG9mflPSK+MKxVRuI3NxdaLmqlahHSItsLEn/N2FujgK2Nm4JMGlDQ1odnlUnIO8fmA7W28v6o/d3NxiLDoWXzPCnPAXNE7Gt8eVQvYuGXZvS8vgQLk0gMbxhm28rVcfKcV4/YX7m9iedoujXbWyp9kYXLXd1t8ulnR5AU07Id7OFKDRItnokoj1DM/8cJ+ryifVDZk8NUnkZUAFAG30QJeZs/f8saVWJcR2xPuZNyGFXf6JjjpjBxVStXjXTkCjcjXzyKN5sKBY3D79OpY+PCeO7nsymbxm3k/bHiretMc/fojH+U3x36hhVlrZOvSJScxLrZxiSE42U9/WQ5ow33j4fQL8/qaHAwpHVDNK8k+ginOevgigkf6HeB8vCmiaC2l8ePX5XhIhGHAi+kT/8PA3I+xw1oRLKyTtEz/ID2hTqZxRHRu1nkJAjKrhT2TWhcauD6gto5AK2CN4d31qJ6DxqrIQcc5lIfqJlPp9XAlbmJCCS/+V9IgUjYZU6laARqNBs8lLzQCNasdmhUrv0r3xs6S01xCg393E1rVtw3vrpHK/1ymAZt0jEJsRUvwLXoE2ANqYevc28/ba5foRJtcSi7qoB5Ydyt1Jk5wHfLOdgGYzwiuPNAo5OUJMBsyE0fBGWyoCaG5wIYTn0sYE9Dcc28z2CWcWtmVymu66jdHf2EtAr5/VJAm98QBdMea4nvEaE+4SKiuHFloFx5N2IBYLahxeWGiBJCRnyEM5E4CmTdSlywP2jdvneyRdHauQvr0cUrnTSuhNCdBoRSOBicKb3iocVQI6n8q9cQBtpKU947WDjDEh+4EY5wlNlYbklyQNEJqxhPvePV3l12y3hLbtJ9ns9O9dcdgpKeFmc5LQoblk3MRdiTMnUQno2QJoI0WVrsrB81eNWl0fZwmSFKkGYe+wu+OZzELk/hIztE4WbvN00+tCbc0UoPnWmY532f22G0YK9akIoDc1GxovLCmg/r1vaByYVoReQlQCetYA2pgLquM1N7TETo2HjYQLm6ZIGOUTWdAsiZNUgAgivZDkjJBH2W12JgGN2YCG8GxvHHyTzcY6wfxhFgH0pqRy2wQW/An4FfysP/KJD0g4L18CejYA2kj3dcss3Hmi1kj+iHdua2eRRfSZ+Dk7O7avn4GUhHGycQBv4wYTSeS8prkzbCYBTT9IjsFZxsWGLpE4wiGEUFw5BGhCFGSEtaI8YStMlCL5za3CVvQZ7zMama914S/B5+AfoggB+r2SPtKCAayB0LXMneLlTpPgFEpAyuflNqqcVp0YbaRnxo4vVC6b4kgcFwDbtEYkW9rbHkj7IyUQIuMKlZ1/W9FMA5rvD8QSyk9LhIk4MXCQuYQqGpLemCWtTq6FwEVaIx5iiJCOH1ZzveCt+BV6nwbQ1MPZx3z6mWKYCSRSuD4FzC8ypVxys5mS+olt7idk0C4bCdGUDR2Hxhfkp5q6fU/KFGsVh0b7w2zxM76aHYqx3yWb0L+lh40VbQlKF4c2Rqt6KtvvbVaN2Kwg8mD9mzqIj7kfYxJtBkvSJKJauxlEb83gVAPQgxlXcZ7UT9LxyH7yJ4BTR+Qtuwf5keqA3Pf0o76zYK0W4nf7ZEfDcd9Rx/4gAfwkb9clpCNxcJsjnJEdjaOoaU9bcTsLd6v79AHnBBzv2ITcyyh4xkUQLPSkOCuZdqQ12gQJ+w36Rx4ztKEBTbSFEGqzFM48iSWMBT6g5bmExoeQ4BhqiBCeaD9+kpKb754S0BVzdHWsZo9Dcv4TKUoWkUssbEJXodNIWRfaTJQvcjiDXFk/TEcfMQ0Ao0uEstwTMO7ixNHnHndjk2B39SUadQArKaP2XrekPsB3jnSiAaQ57sqisJIwTeqnOzYWD5LEJb5J2qZtk2OUbIA+sZmxhtBu3E2QyyM4eMC/PiGR7A8qzCSgQxsbfYGnHDRxj8bCa5sRGToM00pC0657DNgdM2DmrACZeJYQDmi/bO4h083d9FsfzjDSSHViOZNkifzh6V/A8GaAiQwtzsBcbZRHeSS07SjmBragTyd52goSBc0j61ltv13XL2Hf4XXmkEMRKnJ8Ev8Im5K/YbH54A0nPg+RvcYppyKE4410UAummQQ0Fz0wj2mItW81lbwSGmByoMbXjtJ83y1DmrF7Nr65hK73DU52bWGGd72lZk/zcHgACewnlrsfIfGABIRNkYoAGgmPV9/Pt8a7jzOMNElLgI7dMiR1WvEFSUb2GRuI318uTACQ/q0prdp03xcBNO3g+UZC4RdwCU0CbQMgkrILSPKCmjVGXTe9dCYBjc+GMaVx5GIW2mOkeQEN3/jWtxz7N8scUhZJjrbkHsdtAej+oXOr4zXyRy2xI4Qv8ltfhsMaOG8aCei3DQwdPxkFjwZmHcDDyhvpgep4zb96tVWboVtUkLqoXGmIyxVQA32PL05BVEPX3mKRkBjDIg9dUeR/D8cPjkZywVGFmxEbBvYdNmfWixSQ8tb/gcngbzr4QmxeQVIf0EKsg9Qtg93pHsJAs0OaEyloJgRow16RjD8AvwF2t0vcksLhBJe4Ish/FuozP1/sOxQ52eWuB2xTAMIxxWa594DGOnxD64lDH5gVaYgQLQIQe5oNstXBJoQHkQBO/YXmiDXoatP0Aa25cTTX1Bcu2ql64zJ7vpczsc1yeN0BTIcpomOO6apfefOoFBGrbh+Vvw/dPl6WLXUEB9zdgt0VNaj5Zfjr2YK0wT5oOHRWDyw6bGpqMuQoyc/IEtD5eVfW7EgOuIDGEZDq52ocTuEVnr7Fv943dFGkyLc/8zO2BHR+3pU1O5IDFtCEpwhTpfpBOYdT2EQco2vESG8bOHD3yWjtCkWFvb/rPlECuiMXZTno/BywgOaGw2w/+br+m3gOScxoeAPr/UNnRFHEJYLFqQR0cR6WLXQUBwA02Sl4XvOecYZhJESQ5aQ79lm8zUP33nNjFEVc6VOMSkAX419Zu+M4AKA5fOEfn8vKCOKSONO4oVKr+4eOnYoiYrTFqAR0Mf6VtTuOAwA6dJlZHkYQs+T+ZkVRZOoDw1dIUd5fDGh8f10cennWc9d5+l7WKTmwWXDg/wW0sGVfLoQ5AAAAAElFTkSuQmCC') no-repeat;background-size:contain"),console.info("%c佳华科技,物联网、大数据、人工智能技术的创新者","font-size:14px;color:#E51D30;font-weight:bold;border:1px solid #E51D30;padding:0 4px;"),console.info("%c"+t+"%cv"+e,"font-size:20px;color:#FADFA3;font-weight:bold;background-color:#030307;padding:0 4px;","font-size:20px;color:#000000;background-color:#FADFA3;padding:0 4px;")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(13)),i=n(3),o=u(n(412)),s=u(n(63)),a=u(n(4)),c=u(n(46)),l=u(n(413));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"RkVersionList",computed:{historyVersion:function(){var t=this.$store.state.user.historyAppVersion;return this.activeKey=(0,a.default)(t)?"":t[0].id,this.currentActiveInfo=this.parseWord(t[0]),t}},data:function(){return{activeKey:"",currentActiveInfo:{}}},methods:{formatDate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss";"number"==typeof t&&(t=new Date(t)),"string"==typeof t&&(t=t.includes("-")?new Date(t):new Date(Number(t)));var n={"y+":t.getFullYear(),"M+":t.getMonth()+1,"d+":t.getDate(),"D+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(Object.hasOwnProperty.call(n,r)){var i=1===String(n[r]).length?"0"+n[r]:n[r];RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,i))}return e},parseWord:function(t){if((0,a.default)(t))return{};var e=t.versionContent.match(/[\u4e00-\u9fa5]+/g);return(0,r.default)({},t,{version:t.verionCode.toUpperCase(),text:(0,a.default)(e)?"版本更新记录":e[0],parseJsonText:JSON.parse(t.versionContent)})},handleTap:function(t){this.activeKey=t;var e=(0,c.default)(this.historyVersion,{id:this.activeKey});(0,a.default)(e)||(this.currentActiveInfo=this.parseWord(e))}},render:function(){var t=this,e=arguments[0],n=(0,a.default)(this.historyVersion)?null:this.historyVersion.map((function(n){var r=t.parseWord(n),s=t.formatDate(parseInt(r.updatedTime),"yyyy-MM-dd");return e(o.default,{attrs:{prefixCls:i.prefixCls,text:r.text,version:r.version,dateTime:s,active:t.activeKey===n.id,activeKey:n.id},on:{click:function(e){return t.handleTap(e)}}})})),r=(0,a.default)(this.currentActiveInfo)?"":this.currentActiveInfo.parseJsonText.map((function(t){var n=t.image.map((function(t){return e("div",{class:i.prefixCls+"-version-info-picture-item"},[e("a-image",{attrs:{src:t}})])}));return e("div",{class:i.prefixCls+"-version-info-text-item"},[e("div",{class:i.prefixCls+"-version-info-word"},[t.words]),e("div",{class:i.prefixCls+"-version-info-picture"},[n])])}));return e("div",{class:i.prefixCls+"-version"},[e("div",{class:i.prefixCls+"-version-header"},[e("span",["版本更新记录"])]),(0,a.default)(this.historyVersion)?e("div",{class:i.prefixCls+"-version-empty"},[e("div",{class:i.prefixCls+"-version-empty-core"},[e(l.default),e("span",["暂无更新记录"])])]):e("div",{class:i.prefixCls+"-version-footer"},[e("div",{class:i.prefixCls+"-version-list"},[e(s.default,[e("div",{class:i.prefixCls+"-version-list-inner"},[n])])]),e("div",{class:i.prefixCls+"-version-info"},[e(s.default,[e("div",{class:i.prefixCls+"-version-info-inner"},[e("div",{class:i.prefixCls+"-version-info-code"},[this.currentActiveInfo.version]),e("div",{class:i.prefixCls+"-version-info-date"},[e("span",[this.formatDate(parseInt(this.currentActiveInfo.updatedTime),"yyyy-MM-dd")])]),e("div",{class:i.prefixCls+"-version-info-text"},[r])])])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(25),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"VersionItem",props:{prefixCls:o.default.string,activeKey:o.default.string,dateTime:o.default.string,version:o.default.string,text:o.default.string,active:o.default.bool.def(!1)},methods:{handleTap:function(){this.$emit("click",this.activeKey)}},render:function(){var t=this,e=arguments[0],n=this.$props,r=n.prefixCls,i=n.active,o=n.text,s=n.dateTime,a=n.version,c=o.length>13?o.substr(0,13)+"...":o,l=[r+"-version-item-text",o.length<13?r+"-version-item-text-wrapper":""],u=[r+"-version-item-text-span2",o.length<13?r+"-version-item-text-fixed":""];return e("div",{class:[r+"-version-item",i?r+"-version-item-active":""],on:{click:function(){return t.handleTap()}}},[e("div",{class:r+"-version-item-icon"},[e("a-icon",{attrs:{type:"file"}})]),e("div",{class:l},[e("span",{class:r+"-version-item-text-span0"},[a]),e("span",{class:r+"-version-item-text-span1"},[c]),e("span",{class:u},[s])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"300",height:"300",viewBox:"0 0 300 300"}},[t("defs",[t("linearGradient",{attrs:{id:"linear-gradient",x1:"0.5",y1:"1.244",x2:"0.5",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0.407","stop-color":"#fff"}}),t("stop",{attrs:{offset:"1","stop-color":"#dae4ef"}})]),t("linearGradient",{attrs:{id:"linear-gradient-2",y1:"0.5",x2:"1",y2:"0.5",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0.102","stop-color":"#f0f5f8"}}),t("stop",{attrs:{offset:"1","stop-color":"#b4c7dc"}})]),t("linearGradient",{attrs:{id:"linear-gradient-9",x1:"0.072",y1:"-0.14",x2:"0.472",y2:"0.838",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#fff","stop-opacity":"0"}}),t("stop",{attrs:{offset:"1","stop-color":"#a0b8ce"}})]),t("linearGradient",{attrs:{id:"linear-gradient-13",x1:"1.034",y1:"-0.013",x2:"0.039",y2:"0.958",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#dfe8f3"}}),t("stop",{attrs:{offset:"1","stop-color":"#9fb7ce"}})]),t("linearGradient",{attrs:{id:"linear-gradient-14",x1:"0.545",y1:"-0.075",x2:"-0.316",y2:"0.827"}}),t("linearGradient",{attrs:{id:"linear-gradient-15",x1:"0.766",y1:"0.016",x2:"0.15",y2:"0.966",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#e9eff6"}}),t("stop",{attrs:{offset:"1","stop-color":"#acc1d5"}})]),t("linearGradient",{attrs:{id:"linear-gradient-16",x1:"0.393",y1:"-0.208",x2:"0.477",y2:"1.156"}}),t("linearGradient",{attrs:{id:"linear-gradient-17",x1:"0",y1:"0.5",x2:"1",y2:"0.5"}}),t("linearGradient",{attrs:{id:"linear-gradient-18",x1:"0.648",y1:"-0.155",x2:"0.324",y2:"0.823",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#eff3f9"}}),t("stop",{attrs:{offset:"1","stop-color":"#b6c9de"}})]),t("linearGradient",{attrs:{id:"linear-gradient-19",x1:"0",y1:"0.5",x2:"1",y2:"0.5"}})]),t("g",{attrs:{id:"Empty_No_search_content","data-name":"Empty_No search content",transform:"translate(-1460 -751)"}},[t("g",{attrs:{id:"矩形_8881","data-name":"矩形 8881",opacity:"0"}},[t("rect",{attrs:{id:"矩形_8881-2","data-name":"矩形 8881",width:"300",height:"300",transform:"translate(1460 751)",fill:"#fff"}}),t("path",{attrs:{id:"矩形_8881_-_轮廓","data-name":"矩形 8881 - 轮廓",d:"M1,1V299H299V1H1M0,0H300V300H0Z",transform:"translate(1460 751)",fill:"#707070"}})]),t("g",{attrs:{id:"组_31820","data-name":"组 31820",transform:"translate(0 -5.452)"}},[t("g",{attrs:{id:"组_31811","data-name":"组 31811",transform:"translate(851 -15.591)"}},[t("path",{attrs:{id:"路径_8536","data-name":"路径 8536",d:"M568.76,792.855c0-8.387-62.682-30.385-140-30.385s-140,22-140,30.385Z",transform:"translate(330.24 234.338)",fill:"url(#linear-gradient)"}})]),t("g",{attrs:{id:"组_31819","data-name":"组 31819",transform:"translate(15.926)"}},[t("g",{attrs:{id:"组_6345","data-name":"组 6345",transform:"translate(1500.074 891.973)"}},[t("path",{attrs:{id:"路径_11140","data-name":"路径 11140",d:"M152.837,360.251c-.066-.254-1.459-6.418,9.844-21.492,10.948-14.6,7.653-31.683,7.62-31.847l.4-.081c.041.173,3.369,17.428-7.694,32.175-11.19,14.922-9.8,21.087-9.779,21.144l-.4.1Z",transform:"translate(-121.708 -283.462)",fill:"#c5d3e5"}}),t("path",{attrs:{id:"路径_11141","data-name":"路径 11141",d:"M122.576,437.38a1.606,1.606,0,0,0-1.606,1.606v2.183h22.117v-2.183a1.606,1.606,0,0,0-1.606-1.606Z",transform:"translate(-102.924 -360.642)",fill:"#c5d3e5"}}),t("path",{attrs:{id:"路径_11143","data-name":"路径 11143",d:"M119.466,338.376l-.409-.024a56.06,56.06,0,0,0-11.946-33.957c-10.708-13.893-3.884-34.32-3.815-34.526l.389.131c-.069.2-6.827,20.424,3.753,34.146a56.525,56.525,0,0,1,12.029,34.23Z",transform:"translate(-91.172 -261.615)",fill:"#c5d3e5"}}),t("path",{attrs:{id:"联合_6","data-name":"联合 6",d:"M-1495.637-5589.923h-16.912a11.9,11.9,0,0,1-2.135-13.816,11.93,11.93,0,0,1,.727-1.234h19.74a11.8,11.8,0,0,1,1.737,3.972h-.007l0,.007h.018a11.931,11.931,0,0,1-.2,6.144h-.018a11.867,11.867,0,0,1-2.939,4.926Z",transform:"translate(1533.375 5685.508)",fill:"#c5d3e5",opacity:"0.611"}}),t("path",{attrs:{id:"路径_11149","data-name":"路径 11149",d:"M119.267,261.633s-1.418,4.62.237,7.575a6.267,6.267,0,0,0,1.9,2.028,9.423,9.423,0,0,0,1.083.655,12.116,12.116,0,0,0,1.209.544,11.2,11.2,0,0,0,1.848.556,8.71,8.71,0,0,0-.237-6.982A8.808,8.808,0,0,0,119.267,261.633Zm-26.452-3.851a11.371,11.371,0,0,0-1.349-8.1s-4.685,2.527-5.67,6.133,1.812,7.646,1.812,7.646a9.108,9.108,0,0,0,5.212-5.667Zm32.612,23.548a8.694,8.694,0,0,0-3.822-5.846,8.831,8.831,0,0,0-7.426-.613s1.036,4.976,4.129,6.357a9.7,9.7,0,0,0,7.126.105Zm10.637-5.6s-4.824-.269-7.3,2.045-2.228,6.77-2.228,6.77a8.73,8.73,0,0,0,6.725-1.9,8.825,8.825,0,0,0,2.8-6.912Zm-59.238-1.741s.449,4.9,3.148,7.045,7.155,1.235,7.155,1.235a8.891,8.891,0,0,0-2.919-6.489,9,9,0,0,0-7.38-1.791Zm20.986-6.525a9.732,9.732,0,0,1-2.551,7.813,9.614,9.614,0,0,1-7.236,2.617,9.267,9.267,0,0,1,1.922-7.613,8.981,8.981,0,0,1,7.862-2.813Zm38,26.329s-5.192-1.991-8.716-.32-4.824,6.635-4.824,6.635a7.809,7.809,0,0,0,1.382.547,10.5,10.5,0,0,0,1.623.345,9.892,9.892,0,0,0,5.009-.625,10.136,10.136,0,0,0,5.5-6.582Z",transform:"translate(-76.819 -249.678)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11150","data-name":"路径 11150",d:"M175.895,401.635s-4.648-3.05-8.451-2.167-6.124,5.457-6.124,5.457a10.017,10.017,0,0,0,7.8,1.979,10.133,10.133,0,0,0,6.779-5.266Z",transform:"translate(-126.779 -338.134)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11152","data-name":"路径 11152",d:"M98.05,364s3.271,6.2,8.014,7.539,10.077-2.29,10.077-2.29a12.632,12.632,0,0,0-7.4-6.929,12.8,12.8,0,0,0-10.687,1.689Zm27.44-27.072s-.212,5.167,2.309,7.772,7.285,2.276,7.285,2.276a9.3,9.3,0,0,0-2.147-7.167,9.487,9.487,0,0,0-7.447-2.881Z",transform:"translate(-89.375 -301.245)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11153","data-name":"路径 11153",d:"M87.43,357.523s2.993,4.848,6.908,5.675,8.053-2.418,8.053-2.418a10.27,10.27,0,0,0-6.378-5.217,10.435,10.435,0,0,0-8.584,1.96Z",transform:"translate(-83.097 -312.084)",fill:"#dbead3"}}),t("path",{attrs:{id:"路径_11154","data-name":"路径 11154",d:"M87.43,357.523s2.993,4.848,6.908,5.675,8.053-2.418,8.053-2.418a10.27,10.27,0,0,0-6.378-5.217,10.435,10.435,0,0,0-8.584,1.96Z",transform:"translate(-83.097 -312.084)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11155","data-name":"路径 11155",d:"M134.314,366.4s-3.972,4.1-3.8,8.095,4.318,7.212,4.318,7.212a10.238,10.238,0,0,0,3.483-7.469,10.405,10.405,0,0,0-4.007-7.832Z",transform:"translate(-108.562 -318.68)",fill:"#cee4d0"}}),t("path",{attrs:{id:"路径_11156","data-name":"路径 11156",d:"M134.314,366.4s-3.972,4.1-3.8,8.095,4.318,7.212,4.318,7.212a10.238,10.238,0,0,0,3.483-7.469,10.405,10.405,0,0,0-4.007-7.832Z",transform:"translate(-108.562 -318.68)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11157","data-name":"路径 11157",d:"M127.651,325.62s-5.335,1.995-6.908,5.675.8,8.369.8,8.369a10.262,10.262,0,0,0,6.357-5.249,10.421,10.421,0,0,0-.254-8.789Z",transform:"translate(-102.47 -294.571)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11166","data-name":"路径 11166",d:"M154.229,361.4s-1.636,4.907.069,8.117,6.369,4.207,6.369,4.207a9.326,9.326,0,0,0-.081-7.482,9.475,9.475,0,0,0-6.354-4.836Z",transform:"translate(-122.167 -315.723)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11167","data-name":"路径 11167",d:"M179.451,316.829a8.727,8.727,0,0,0-3.8-5.732,8.83,8.83,0,0,0-7.426-.613l.048.2,11.19,6.14Z",transform:"translate(-130.853 -285.289)",opacity:"0.305",fill:"url(#linear-gradient-9)"}}),t("path",{attrs:{id:"路径_11168","data-name":"路径 11168",d:"M179.827,278.943c-.066.212-1.382,4.677.245,7.563a6.27,6.27,0,0,0,1.9,2.028,9.426,9.426,0,0,0,1.083.655,12.115,12.115,0,0,0,1.209.544,11.223,11.223,0,0,0,1.848.556s.033-.069.081-.188l-6.357-11.16Z",transform:"translate(-137.386 -266.975)",opacity:"0.305",fill:"url(#linear-gradient-9)"}}),t("path",{attrs:{id:"路径_11169","data-name":"路径 11169",d:"M127.319,325.96c-1.193.508-5.233,2.418-6.563,5.54-1.349,3.155.2,7.052.679,8.095,1.43-4.117,4.162-10.029,5.888-13.635Z",transform:"translate(-102.473 -294.773)",opacity:"0.305",fill:"url(#linear-gradient-9)"}}),t("path",{attrs:{id:"路径_11170","data-name":"路径 11170",d:"M76.83,309.14s.449,4.9,3.148,7.045,7.155,1.235,7.155,1.235Z",transform:"translate(-76.83 -284.828)",opacity:"0.305",fill:"url(#linear-gradient-9)"}})]),t("g",{attrs:{id:"暂无搜索内容",transform:"translate(386.536 361.18)"}},[t("g",{attrs:{id:"组_5830","data-name":"组 5830",transform:"translate(1162.836 462.16)"}},[t("rect",{attrs:{id:"形状结合备份-3",width:"106",height:"130",rx:"8",transform:"translate(0 12.107)",fill:"url(#linear-gradient-13)"}}),t("circle",{attrs:{id:"椭圆形",cx:"13.107",cy:"13.107",r:"13.107",transform:"translate(41.192 0)",fill:"url(#linear-gradient-14)"}}),t("path",{attrs:{id:"形状结合",d:"M110.4,0a12.927,12.927,0,0,1,12.946,12.909h33.175A6.465,6.465,0,0,1,163,19.364V135.545A6.465,6.465,0,0,1,156.526,142H63.474A6.465,6.465,0,0,1,57,135.545V19.368a6.465,6.465,0,0,1,6.474-6.455H97.458A12.927,12.927,0,0,1,110.4,0Z",transform:"translate(-52.027 0.451)",fill:"url(#linear-gradient-15)"}}),t("path",{attrs:{id:"路径-11",d:"M224.318,158.965q-14.457,2.382-51.818,1.932l47.22-16.767A77.641,77.641,0,0,0,224.318,158.965Z",transform:"translate(-119.725 -27.885)","fill-rule":"evenodd",fill:"url(#linear-gradient-16)"}}),t("path",{attrs:{id:"矩形",d:"M122,32h91.588q-1.253,58.815-1.253,70.791a99.836,99.836,0,0,0,4.273,29.917c-10.437,3.108-31.729,6.145-48.813,6.145A389.143,389.143,0,0,1,125.443,136Q122,134.309,122,101.525Z",transform:"translate(-109.798 -5.839)",fill:"#fff","fill-rule":"evenodd"}}),t("rect",{attrs:{id:"矩形-2","data-name":"矩形",width:"74.895",height:"3.745",rx:"1",transform:"translate(22.469 41.192)",fill:"#f2f5f8"}}),t("rect",{attrs:{id:"矩形备份-2",width:"74.895",height:"3.745",rx:"1",transform:"translate(22.469 52.427)",fill:"#f2f5f8"}}),t("rect",{attrs:{id:"矩形备份-5",width:"41.192",height:"5.617",rx:"1.5",transform:"translate(22.469 61.789)",fill:"#f2f5f8"}}),t("rect",{attrs:{id:"矩形备份-6",width:"16.851",height:"3.745",rx:"1",transform:"translate(22.469 112.343)",fill:"#f2f5f8"}}),t("circle",{attrs:{id:"椭圆形-2","data-name":"椭圆形",cx:"7.051",cy:"7.051",r:"7.051",transform:"translate(51.693 6.801)",fill:"url(#linear-gradient-17)"}}),t("circle",{attrs:{id:"椭圆形-3","data-name":"椭圆形",cx:"7.49",cy:"7.49",r:"7.49",transform:"translate(50.554 5.617)",fill:"#fff"}})]),t("g",{attrs:{id:"butterfly_f",transform:"translate(1279.819 462.16) rotate(-97)"}},[t("path",{attrs:{id:"形状",d:"M7.843,21.48a5.778,5.778,0,0,1,.416-.854,10.768,10.768,0,0,0,1.477-6.344,26.809,26.809,0,0,0-.161-3.529c-.116-.53-.069-.693.187-.693.346,0,.461.324.946,2.839a10.749,10.749,0,0,1,.092,3.23,7.33,7.33,0,0,1-.876,3.206C9.362,20.51,7.843,22.079,7.843,21.48ZM3.163,18.735c-1.477-.809-1.917-1.777-1.852-4.153A10.4,10.4,0,0,1,2.395,10.06q.139-.346-.562-.762A2.979,2.979,0,0,1,0,6.53C0,4.2,2.1,3.37,4.707,4.658a10.94,10.94,0,0,1,1.522.876c.785.668.831.6.738-1.477C6.851,1.524,7.175.625,8.426.162c.738-.253.923-.23,1.822.208a2.488,2.488,0,0,1,1.569,2.423c.069.668.116.693,1.569.854a10.673,10.673,0,0,1,4.028.946,3,3,0,0,1,1.966,3.114,2.078,2.078,0,0,1-.693,1.846c-1.753,1.846-4.245,1.846-8,0-.876-.416-1.638-.785-1.73-.831a12.058,12.058,0,0,0-.139,2.769A8.564,8.564,0,0,1,7.69,17a3.67,3.67,0,0,1-4.522,1.73ZM14.9,14.765a6.235,6.235,0,0,1-3.022-2.076c-.624-.831-.668-1.292-.069-.738A10.324,10.324,0,0,0,14,13.312a4.278,4.278,0,0,0,3.786-.047c1.062-.53,1.339-.438.923.324A3.574,3.574,0,0,1,14.9,14.765Z",transform:"translate(0 0)",fill:"url(#linear-gradient-18)"}})]),t("g",{attrs:{id:"组_5873","data-name":"组 5873",transform:"translate(1145.012 457.651)"}},[t("path",{attrs:{id:"路径-4",d:"M18.093,85.746A.5.5,0,0,1,18,85.737,3.1,3.1,0,0,1,15.975,84.6a.5.5,0,0,1,.81-.587,2.159,2.159,0,0,0,1.4.739.5.5,0,0,1-.094.991Zm3.979-.152a.5.5,0,0,1-.085-.993c.593-.1,1.24-.238,1.923-.4a.5.5,0,0,1,.234.972c-.7.169-1.372.309-1.986.416A.5.5,0,0,1,22.072,85.594Zm5.8-1.5a.5.5,0,0,1-.153-.976c.6-.193,1.238-.406,1.888-.632a.5.5,0,0,1,.328.945c-.657.228-1.3.443-1.91.639A.5.5,0,0,1,27.869,84.091Zm5.656-2.018a.5.5,0,0,1-.18-.967c.6-.231,1.222-.477,1.852-.73a.5.5,0,1,1,.373.928c-.634.255-1.261.5-1.864.735A.5.5,0,0,1,33.525,82.073ZM16.649,80.987a.5.5,0,0,1-.458-.7,18.122,18.122,0,0,1,.941-1.822.5.5,0,0,1,.864.5,17.121,17.121,0,0,0-.889,1.72A.5.5,0,0,1,16.649,80.987Zm22.426-1.175a.5.5,0,0,1-.2-.96c.6-.254,1.213-.52,1.833-.79a.5.5,0,0,1,.4.917c-.622.271-1.242.538-1.841.793A.5.5,0,0,1,39.075,79.812ZM44.568,77.4a.5.5,0,0,1-.206-.956c.593-.269,1.2-.548,1.817-.829a.5.5,0,1,1,.418.909c-.614.282-1.227.562-1.822.831A.5.5,0,0,1,44.568,77.4ZM19.79,75.9a.5.5,0,0,1-.4-.8c.38-.512.793-1.051,1.23-1.6a.5.5,0,0,1,.784.621c-.43.543-.837,1.073-1.21,1.577A.5.5,0,0,1,19.79,75.9Zm30.221-1.021a.5.5,0,0,1-.214-.952c.591-.279,1.2-.568,1.805-.858a.5.5,0,1,1,.431.9c-.608.291-1.217.58-1.809.86A.5.5,0,0,1,50.012,74.875Zm5.415-2.6a.5.5,0,0,1-.22-.949c.587-.287,1.19-.582,1.79-.878a.5.5,0,1,1,.442.9c-.6.3-1.205.592-1.794.88A.5.5,0,0,1,55.427,72.272Zm-31.86-1.043a.5.5,0,0,1-.378-.827c.421-.487.866-.993,1.322-1.5a.5.5,0,0,1,.746.666c-.453.507-.894,1.01-1.312,1.493A.5.5,0,0,1,23.567,71.229ZM60.8,69.615a.5.5,0,0,1-.224-.947q.886-.444,1.789-.9a.5.5,0,1,1,.45.893q-.9.456-1.791.9A.5.5,0,0,1,60.8,69.615Zm5.354-2.71a.5.5,0,0,1-.228-.945l1.778-.912a.5.5,0,1,1,.457.889l-1.78.913A.5.5,0,0,1,66.151,66.9Zm-38.562-.129a.5.5,0,0,1-.365-.842c.445-.474.908-.965,1.379-1.457a.5.5,0,1,1,.723.691c-.468.49-.93.978-1.372,1.45A.5.5,0,0,1,27.589,66.775Zm43.9-2.623a.5.5,0,0,1-.231-.944l1.77-.923a.5.5,0,1,1,.463.886l-1.772.924A.5.5,0,0,1,71.485,64.153Zm-39.736-1.7a.5.5,0,0,1-.356-.851c.458-.465.933-.943,1.412-1.421a.5.5,0,0,1,.707.707c-.477.477-.95.954-1.407,1.417A.5.5,0,0,1,31.749,62.455ZM76.8,61.367a.5.5,0,0,1-.234-.942l1.764-.933a.5.5,0,1,1,.468.883l-1.766.934A.5.5,0,0,1,76.8,61.367Zm5.3-2.814a.5.5,0,0,1-.236-.941l1.762-.944a.5.5,0,1,1,.473.881l-1.763.944A.5.5,0,0,1,82.1,58.553ZM36,58.222a.5.5,0,0,1-.35-.858c.469-.458.952-.929,1.438-1.4a.5.5,0,1,1,.7.719c-.484.468-.966.938-1.434,1.395A.5.5,0,0,1,36,58.222Zm51.375-2.51a.5.5,0,0,1-.238-.94l1.762-.954a.5.5,0,1,1,.477.879l-1.763.955A.5.5,0,0,1,87.38,55.712Zm5.273-2.864a.5.5,0,0,1-.24-.939l1.759-.961a.5.5,0,0,1,.48.877l-1.76.962A.5.5,0,0,1,92.653,52.848Zm5.267-2.888a.5.5,0,0,1-.242-.938l1.744-.962a.5.5,0,0,1,.483.875l-1.745.962A.5.5,0,0,1,97.921,49.96Zm5.245-2.9a.5.5,0,0,1-.243-.937l1.749-.972a.5.5,0,1,1,.486.874l-1.75.972A.5.5,0,0,1,103.166,47.061Zm5.242-2.919a.5.5,0,0,1-.244-.937l1.746-.977a.5.5,0,0,1,.489.872l-1.747.977A.5.5,0,0,1,108.408,44.141Zm5.236-2.935a.5.5,0,0,1-.246-.936l1.74-.979a.5.5,0,0,1,.491.871l-1.74.98A.5.5,0,0,1,113.644,41.206Zm5.223-2.947a.5.5,0,0,1-.247-.935l1.743-.987a.5.5,0,1,1,.493.87l-1.743.987A.5.5,0,0,1,118.867,38.259Zm5.221-2.962a.5.5,0,0,1-.248-.935l1.736-.988a.5.5,0,1,1,.5.869l-1.737.989A.5.5,0,0,1,124.088,35.3Zm5.211-2.972a.5.5,0,0,1-.249-.934l1.735-.993a.5.5,0,1,1,.5.868l-1.735.993A.5.5,0,0,1,129.3,32.326Zm5.2-2.982a.5.5,0,0,1-.249-.934l1.738-1a.5.5,0,0,1,.5.867l-1.739,1A.5.5,0,0,1,134.5,29.343Zm5.207-3a.5.5,0,0,1-.25-.933l1.724-1a.5.5,0,1,1,.5.866l-1.725,1A.5.5,0,0,1,139.71,26.346Zm5.188-3a.5.5,0,0,1-.251-.933l1.732-1a.5.5,0,1,1,.5.865l-1.732,1A.5.5,0,0,1,144.9,23.347Zm5.189-3.011a.5.5,0,0,1-.252-.932l1.436-.835a.5.5,0,1,1,.5.864l-1.436.836A.5.5,0,0,1,150.087,20.336Z",transform:"translate(-16 -19)",fill:"#c5d3e5"}})])])]),t("g",{attrs:{id:"火箭",transform:"translate(1627.042 949.596) rotate(-81)"}},[t("path",{attrs:{id:"形状-2","data-name":"形状",d:"M50.316,2.163A1.828,1.828,0,0,0,48.951.8,30.643,30.643,0,0,0,17.3,12.512a1.828,1.828,0,0,1-1.054.7,24,24,0,0,0-11.2,6.369A24.524,24.524,0,0,0,1.28,24.39a1.828,1.828,0,0,0,2.267,2.657,23.769,23.769,0,0,1,8.228-1.42c-.043.244-.1.488-.134.731q3.047,3.517,6.3,6.8t6.789,6.32c.244-.037.488-.091.731-.134a23.769,23.769,0,0,1-1.42,8.209,1.828,1.828,0,0,0,2.657,2.267,24.53,24.53,0,0,0,4.839-3.76A24,24,0,0,0,37.9,34.872a1.828,1.828,0,0,1,.7-1.054A30.643,30.643,0,0,0,50.316,2.163ZM37.81,22.086a6.21,6.21,0,1,1,0-8.782,6.21,6.21,0,0,1,0,8.782Z",transform:"translate(2.116 0.002)",fill:"url(#linear-gradient-19)"}}),t("path",{attrs:{id:"路径",d:"M8.606,12.3C6.577,14.326-2.01,26.881.434,29.325s15-6.155,17.028-8.167a5.8,5.8,0,0,0-.762-8.093A5.8,5.8,0,0,0,8.606,12.3Z",transform:"translate(0 23.467)",fill:"url(#linear-gradient-17)"}})])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(25),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"BlockView",props:{routeParents:o.default.string},render:function(){var t=arguments[0];return t("div",["BlockView"])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treeRouter=void 0;var r=n(3);e.treeRouter=function(t){var e=t.$store.state.user.menu_list,n=t.$route.meta.id;return(0,r.treeMenuFindPath)(e,(function(t){return n==t.id}))}}])}));
188
+ * @license MIT */void 0===(i="function"==typeof(r=function(){var t,e,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(t,e,n){return t<e?e:t>n?n:t}function o(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=i(t,r.minimum,1),n.status=1===t?null:t;var c=n.render(!e),l=c.querySelector(r.barSelector),u=r.speed,h=r.easing;return c.offsetWidth,s((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),a(l,function(t,e,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,i}(t,u,h)),1===t?(a(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){a(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),u)}),u)):setTimeout(e,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*i(Math.random()*e,.1,.95)),e=i(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var i,s=e.querySelector(r.barSelector),c=t?"-100":o(n.status||0),u=document.querySelector(r.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(i=e.querySelector(r.spinnerSelector))&&d(i),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(e),e},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var s=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()})),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}(n))}function r(t,e,r){e=n(e),t.style[e]=r}return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();function c(t,e){return("string"==typeof t?t:h(t)).indexOf(" "+e+" ")>=0}function l(t,e){var n=h(t),r=n+e;c(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=h(t);c(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function h(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){t.exports={default:n(347),__esModule:!0}},function(t,e,n){n(74),n(34),n(51),n(348),n(349),n(350),n(351),t.exports=n(6).Set},function(t,e,n){"use strict";var r=n(146),i=n(105);t.exports=n(147)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){var r=n(9);r(r.P+r.R,"Set",{toJSON:n(149)("Set")})},function(t,e,n){n(150)("Set")},function(t,e,n){n(151)("Set")},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(133),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=f(n(354)),i=f(n(362)),o=f(n(363)),s=f(n(364)),a=f(n(365)),c=f(n(371)),l=f(n(372)),u=f(n(79)),h=f(n(373)),d=f(n(375));function f(t){return t&&t.__esModule?t:{default:t}}e.default={MapNavLayout:r.default,BasicLayout:i.default,MapWrapper:o.default,NoSidebarWrapper:s.default,SidebarWrapper:a.default,AdminLayout:c.default,FullHeaderLayout:l.default,BlankLayout:u.default,LooseWrapper:h.default,MicroLayout:d.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(64)),i=d(n(13)),o=d(n(14)),s=n(3),a=d(n(176)),c=d(n(66)),l=n(115),u=(d(l),n(5)),h=d(n(4));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapNavLayout",inject:["slotsList","propsList","instance"],components:{GMap:l.GMap},computed:{nav:function(){return this.$store.state.user.addRouters},appRouter:function(){return this.$store.state.user.appRouters}},data:function(){return{isLoaded:!1}},methods:{handleMapChange:function(t){c.default.$emit("mapChange",t)},mapLoad:function(t){t&&(this.isLoaded=!0),c.default.$emit("loadMap",t)},changeLayout:function(){var t=this.$route.matched;t[1]&&"MapNavLayout"===t[1].components.default.name&&this.$store.commit("user/SET_ROUTERS",[this.appRouter[0].children[0]])}},created:function(){this.changeLayout()},updated:function(){var t=this;this.$nextTick((function(){t.$store.commit("user/SET_TIME_STAMP",{type:"map",timeStamp:""+(new Date).getTime()})}))},render:function(){var t=this,e=arguments[0],n=(0,o.default)([s.prefixCls+"-layout-light",s.prefixCls+"-basic-layout"]),c=u.sessionStore.get("RK_MAP_STORE_OPTIONS"),d={},f=u.localStore.get("consumer");(0,h.default)(c)||(d={props:(0,i.default)({},c,{center:f?[f.longitude,f.latitude]:null,zoom:f?f.zoom:15})});var p=function(){return t.propsList.needMap?[t.propsList.keep?e("keep-alive",[e(l.GMap,(0,r.default)([d,{on:{load:t.mapLoad,change:function(e){return t.handleMapChange(e)}}}]))]):e(l.GMap,(0,r.default)([d,{on:{load:t.mapLoad,change:function(e){return t.handleMapChange(e)}}}])),t.isLoaded?e("router-view",{attrs:{theme:"dark",fixed:!0},ref:"$$coreContent",class:s.prefixCls+"-layout-content"}):null]:e("router-view",{attrs:{theme:"dark",fixed:!0},ref:"$$coreContent",class:s.prefixCls+"-layout-content"})};return e("a-layout",{class:n},[e(a.default,{attrs:{mode:this.propsList.navTheme,theme:"dark",fixed:!0,"nav-list":this.nav[0].children}}),e("a-layout-content",[this.slotsList.content?this.slotsList.content:null,p()])])}}},function(t,e,n){t.exports={default:n(356),__esModule:!0}},function(t,e,n){n(357),t.exports=n(6).Math.sign},function(t,e,n){var r=n(9);r(r.S,"Math",{sign:n(358)})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(14),o=(r=i)&&r.__esModule?r:{default:r},s=n(3),a=n(43);e.default={name:"NavItem",props:{title:{type:String,default:""},index:{type:Number,default:0},path:{type:String,default:""},dataSource:{type:Array,default:function(){return[]}}},methods:{goToPage:function(t,e){var n=this;if(1===e)this.$router.push(this.path).then((function(t){n.$emit("navClick")}));else if(1===t.meta.chainType){var r=t.path.indexOf("http")>-1?t.path:"http://"+t.path;window.location.replace(r)}else this.$router.push(t.path).then((function(t){n.$emit("navClick")}))}},render:function(){var t=this,e=arguments[0],n=this.dataSource.map((function(n){var r=(0,o.default)([s.prefixCls+"-nav-item-footer-item",n.meta.id===t.$route.meta.id?s.prefixCls+"-nav-item-footer-item-active":"",s.prefixCls+"-nav-item-footer-item-"+(0,a.toWord)(n.path)]);return 1===n.type||2===n.type?e("div",{class:r,on:{click:function(){return t.goToPage(n,2)}}},[n.meta.name]):null})),r=(0,o.default)([s.prefixCls+"-nav-item-footer",s.prefixCls+"-nav-item-footer-line"]);return e("div",{class:s.prefixCls+"-nav-item"},[e("div",{class:s.prefixCls+"-nav-item-header",on:{click:function(){return t.goToPage(null,1)}}},[this.title]),e("div",{class:r},[n])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1651739359806",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10705",width:"200",height:"200"}},[t("path",{attrs:{d:"M171.488 85.856h166.08c60.864 0 110.688 49.824 110.688 110.688v276.768H171.488C110.624 473.312 60.8 423.488 60.8 362.528v-166.08C60.8 135.68 110.624 85.856 171.488 85.856z m0 498.144h276.768v276.768c0 60.864-49.824 110.688-110.688 110.688h-166.08C110.624 971.36 60.8 921.632 60.8 860.672v-166.08C60.8 633.824 110.624 584 171.488 584z m0 0M752.672 556.256L558.944 357.056c-22.176-16.608-33.216-49.824-33.216-77.472s11.04-55.392 33.216-77.472L675.2 85.856C719.456 41.6 791.456 41.6 830.144 85.856l116.256 116.256c22.176 22.176 33.216 49.824 33.216 77.472s-11.04 55.392-33.216 77.472L752.672 556.256z m0-448.32c-16.608 0-27.648 5.568-38.784 16.608l-116.16 116.256c-11.04 11.04-16.608 22.176-16.608 38.784s5.568 27.648 16.608 38.784l154.944 154.944 154.944-154.944c11.04-11.04 16.608-22.176 16.608-38.784s-5.568-27.648-16.608-38.784L791.36 124.544c-11.04-11.04-22.08-16.608-38.688-16.608z m0 0","p-id":"10706"}}),t("path",{attrs:{d:"M558.944 584h276.768c60.864 0 110.688 49.824 110.688 110.688v166.08c0 60.864-49.824 110.688-110.688 110.688h-166.08c-60.864 0-110.688-49.824-110.688-110.688V584z m0 0","p-id":"10707"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(25),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"ParkIcon",props:{text:o.default.string},computed:{skin:function(){return{color:"#2AF0FF"}}},render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"146",height:"28",viewBox:"0 0 146 28"},class:"rk-web-core-icon"},[t("defs",[t("linearGradient",{attrs:{id:"a",x1:"0.924",y1:"0.5",x2:"0.057",y2:"0.5",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":this.skin.color,"stop-opacity":"0"}}),t("stop",{attrs:{offset:"0.212","stop-color":this.skin.color,"stop-opacity":"0.502"}}),t("stop",{attrs:{offset:"0.494","stop-color":this.skin.color}}),t("stop",{attrs:{offset:"0.773","stop-color":this.skin.color,"stop-opacity":"0.502"}}),t("stop",{attrs:{offset:"1","stop-color":this.skin.color,"stop-opacity":"0"}})])]),t("g",{attrs:{transform:"translate(-410 -27)"}},[t("g",{attrs:{transform:"translate(-696.409 -68)"}},[t("path",{attrs:{d:"M1113,102h3v15h-3Zm0,0,7-3-4,3Zm0,15,7,3-4-3Z",fill:this.skin.color,"fill-rule":"evenodd"}}),t("path",{attrs:{d:"M1120,105v9l6-4Z",fill:this.skin.color,"fill-rule":"evenodd"}}),t("path",{attrs:{d:"M1246,102h-3v15h3Zm0,0-7-3,4,3Zm0,15-7,3,4-3Z",transform:"translate(-0.158)",fill:this.skin.color,"fill-rule":"evenodd"}}),t("path",{attrs:{d:"M1239,105v9l-6-4Z",transform:"translate(-0.158)",fill:this.skin.color,"fill-rule":"evenodd"}}),t("rect",{attrs:{width:"146",height:"19",transform:"translate(1106.409 100)",opacity:"0.36",fill:"url(#a)"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(176)),i=n(3),o=c(n(14)),s=c(n(4)),a=c(n(50));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"BasicLayout",inject:["slotsList","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters},appRouter:function(){return this.$store.state.user.appRouters},navIndex:function(){return this.$store.state.user.navIndex}},data:function(){return{layout:"SidebarWrapper"}},methods:{changeLayout:function(){var t=this.$route.matched;t[1]&&"BasicLayout"===t[1].components.default.name&&this.$store.commit("user/SET_ROUTERS",[this.appRouter[0].children[1]])}},created:function(){this.changeLayout()},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.nav&&!(0,s.default)(t.nav)&&!(0,s.default)(t.nav[0].children)){var r=(0,i.treeFindPath)(t.nav[0].children,(function(t){return t.meta.id===n[n.length-1].meta.id}));(0,s.default)(r)||!r.length||(0,a.default)(r[0].component)||(t.layout=r[0].component.name)}}),{immediate:!0,deep:!0})},render:function(){var t=arguments[0],e=(0,o.default)([i.prefixCls+"-layout-light",i.prefixCls+"-basic-layout"]);return t("a-layout",{class:e},[this.nav&&this.nav[0]&&this.nav[0].children?t(r.default,{attrs:{mode:this.propsList.navTheme,theme:"MapWrapper"===this.layout?"dark":"light",fixed:"MapWrapper"===this.layout,"nav-list":this.nav[0].children}}):null,this.slotsList.interbed,t("a-layout-content",[this.slotsList.content?this.slotsList.content:null,this.propsList.isRefreshRouter?(0,s.default)(this.propsList.keepAliveRouter)?t("router-view",{class:[i.prefixCls+"-layout-content",i.prefixCls+"-layout-content-"+this.navIndex]}):t("keep-alive",{attrs:{include:this.propsList.keepAliveRouter}},[t("router-view",{class:[i.prefixCls+"-layout-content",i.prefixCls+"-layout-content-"+this.navIndex]})]):null])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(64)),i=u(n(13)),o=n(3),s=u(n(66)),a=n(115),c=(u(a),u(n(4))),l=n(5);function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"MapWrapper",inject:["slotsList","slotScope","propsList"],components:{GMap:a.GMap},data:function(){return{isLoaded:!1,isShowMap:!0}},computed:{nav:function(){return this.$store.state.user.addRouters}},methods:{mapLoad:function(t,e,n){t&&(this.isLoaded=!0),s.default.$emit("loadMap",t)},handleMapChange:function(t){s.default.$emit("mapChange",t)}},watch:{$route:{handler:function(t){var e=t.matched,n=e[e.length-1];(0,c.default)(n)||(0,c.default)(n.meta.parentLayout)||"MapWrapper"!==n.meta.parentLayout?this.isShowMap=!1:this.isShowMap=!0},immediate:!0}},render:function(){var t=this,e=arguments[0],n=null;(this.isLoaded||!this.isShowMap&&!this.isLoaded)&&(n=e("div",{class:[o.prefixCls+"-layout-content",this.isShowMap?"":o.prefixCls+"-layout-content-map"]},[(0,c.default)(this.propsList.keepAliveRouter)?e("router-view",{attrs:{theme:"dark",fixed:!0},class:o.prefixCls+"-router-view"}):e("keep-alive",{attrs:{include:this.propsList.keepAliveRouter}},[e("router-view",{attrs:{theme:"dark",fixed:!0},class:o.prefixCls+"-router-view"})])]));var s=l.sessionStore.get("RK_MAP_STORE_OPTIONS"),u={},h=l.localStore.get("consumer");return(0,c.default)(s)||(u={props:(0,i.default)({},s,{center:h?[h.longitude,h.latitude]:null,zoom:h?h.zoom:15})}),e("span",[this.isShowMap?e(a.GMap,(0,r.default)([u,{on:{load:this.mapLoad,change:function(e){return t.handleMapChange(e)}}}])):null,n])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"NoSliderWrapper",render:function(){var t=arguments[0];return t("router-view")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(78)),i=c(n(79)),o=n(3),s=c(n(4)),a=c(n(14));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"SliderWrapper",inject:["slotsList","slotScope","propsList"],props:{theme:{type:String,default:"light"},fixed:{type:Boolean,default:!1}},computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{sidebarList:[],openKeys:[],selectedKeys:[]}},mounted:function(){var t=this;this.$watch("$route",(function(e){var n=e.matched;if(t.nav&&!(0,s.default)(t.nav)&&!(0,s.default)(t.nav[0].children)){var r=(0,o.treeFindPath)(t.nav[0].children,(function(t){return t.meta.id===n[n.length-1].meta.id}));t.sidebarList=r[0].children}}),{immediate:!0})},render:function(){var t=arguments[0],e=(0,a.default)([o.prefixCls+"-slider-"+this.theme,this.fixed?o.prefixCls+"-slider-fixed":""]);return t("a-layout",{class:o.prefixCls+"-full-layout"},[this.fixed?t("a-affix",{attrs:{"offset-top":70}},[t(r.default,{attrs:{sidebarList:this.sidebarList,theme:this.theme},class:e})]):t(r.default,{attrs:{sidebarList:this.sidebarList,theme:this.theme},class:e}),t("a-layout-content",{class:"rk-web-core-sidebar-wrapper"},[t("div",{attrs:{id:"microApp"}}),this.slotsList.tagView?this.slotsList.tagView:null,this.slotsList.tagView?t("a-scrollbar",{class:"rk-web-core-sidebar-wrapper-scrollbar"},[t(i.default,{class:"rk-web-core-sidebar-wrapper-blank"})]):t(i.default,{class:"rk-web-core-sidebar-wrapper-blank"})])])}}},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",s="[object Map]",a="[object Set]",c=/\w*$/,l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,h={};h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object DataView]"]=h["[object Boolean]"]=h["[object Date]"]=h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h[s]=h["[object Number]"]=h["[object Object]"]=h["[object RegExp]"]=h[a]=h["[object String]"]=h["[object Symbol]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h["[object Error]"]=h[i]=h["[object WeakMap]"]=!1;var d="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),m=e&&!e.nodeType&&e,g=m&&"object"==typeof n&&n&&!n.nodeType&&n,v=g&&g.exports===m;function y(t,e){return t.set(e[0],e[1]),t}function _(t,e){return t.add(e),t}function b(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function x(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function w(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function S(t,e){return function(n){return t(e(n))}}function M(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var A,C=Array.prototype,E=Function.prototype,T=Object.prototype,I=p["__core-js_shared__"],P=(A=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",L=E.toString,R=T.hasOwnProperty,O=T.toString,B=RegExp("^"+L.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=v?p.Buffer:void 0,D=p.Symbol,F=p.Uint8Array,N=S(Object.getPrototypeOf,Object),j=Object.create,U=T.propertyIsEnumerable,z=C.splice,G=Object.getOwnPropertySymbols,H=k?k.isBuffer:void 0,W=S(Object.keys,Object),V=gt(p,"DataView"),Z=gt(p,"Map"),Q=gt(p,"Promise"),X=gt(p,"Set"),Y=gt(p,"WeakMap"),J=gt(Object,"create"),q=xt(V),K=xt(Z),$=xt(Q),tt=xt(X),et=xt(Y),nt=D?D.prototype:void 0,rt=nt?nt.valueOf:void 0;function it(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){this.__data__=new ot(t)}function ct(t,e){var n=St(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Mt(t)}(t)&&R.call(t,"callee")&&(!U.call(t,"callee")||O.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],i=n.length,o=!!i;for(var s in t)!e&&!R.call(t,s)||o&&("length"==s||_t(s,i))||n.push(s);return n}function lt(t,e,n){var r=t[e];R.call(t,e)&&wt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function ut(t,e){for(var n=t.length;n--;)if(wt(t[n][0],e))return n;return-1}function ht(t,e,n,l,u,d,f){var p;if(l&&(p=d?l(t,u,d,f):l(t)),void 0!==p)return p;if(!Et(t))return t;var m=St(t);if(m){if(p=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&R.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,p)}else{var g=yt(t),v=g==i||g==o;if(At(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if("[object Object]"==g||g==r||v&&!d){if(x(t))return d?t:{};if(p=function(t){return"function"!=typeof t.constructor||bt(t)?{}:(e=N(t),Et(e)?j(e):{});var e}(v?{}:t),!e)return function(t,e){return pt(t,vt(t),e)}(t,function(t,e){return t&&pt(e,Tt(e),t)}(p,t))}else{if(!h[g])return d?t:{};p=function(t,e,n,r){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return ft(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?ft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?ft(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case s:return function(t,e,n){return b(e?n(w(t),!0):w(t),y,new t.constructor)}(t,r,n);case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,c.exec(t));return e.lastIndex=t.lastIndex,e}(t);case a:return function(t,e,n){return b(e?n(M(t),!0):M(t),_,new t.constructor)}(t,r,n);case"[object Symbol]":return o=t,rt?Object(rt.call(o)):{}}var o}(t,g,ht,e)}}f||(f=new at);var S=f.get(t);if(S)return S;if(f.set(t,p),!m)var A=n?function(t){return function(t,e,n){var r=e(t);return St(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Tt,vt)}(t):Tt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(A||t,(function(r,i){A&&(r=t[i=r]),lt(p,i,ht(r,e,n,l,i,t,f))})),p}function dt(t){return!(!Et(t)||(e=t,P&&P in e))&&(Ct(t)||x(t)?B:l).test(xt(t));var e}function ft(t){var e=new t.constructor(t.byteLength);return new F(e).set(new F(t)),e}function pt(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],a=r?r(n[s],t[s],s,n,t):void 0;lt(n,s,void 0===a?t[s]:a)}return n}function mt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function gt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return dt(n)?n:void 0}it.prototype.clear=function(){this.__data__=J?J(null):{}},it.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},it.prototype.get=function(t){var e=this.__data__;if(J){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(e,t)?e[t]:void 0},it.prototype.has=function(t){var e=this.__data__;return J?void 0!==e[t]:R.call(e,t)},it.prototype.set=function(t,e){return this.__data__[t]=J&&void 0===e?"__lodash_hash_undefined__":e,this},ot.prototype.clear=function(){this.__data__=[]},ot.prototype.delete=function(t){var e=this.__data__,n=ut(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),!0)},ot.prototype.get=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]},ot.prototype.has=function(t){return ut(this.__data__,t)>-1},ot.prototype.set=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new it,map:new(Z||ot),string:new it}},st.prototype.delete=function(t){return mt(this,t).delete(t)},st.prototype.get=function(t){return mt(this,t).get(t)},st.prototype.has=function(t){return mt(this,t).has(t)},st.prototype.set=function(t,e){return mt(this,t).set(t,e),this},at.prototype.clear=function(){this.__data__=new ot},at.prototype.delete=function(t){return this.__data__.delete(t)},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ot){var r=n.__data__;if(!Z||r.length<199)return r.push([t,e]),this;n=this.__data__=new st(r)}return n.set(t,e),this};var vt=G?S(G,Object):function(){return[]},yt=function(t){return O.call(t)};function _t(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function bt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||T)}function xt(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function wt(t,e){return t===e||t!=t&&e!=e}(V&&"[object DataView]"!=yt(new V(new ArrayBuffer(1)))||Z&&yt(new Z)!=s||Q&&"[object Promise]"!=yt(Q.resolve())||X&&yt(new X)!=a||Y&&"[object WeakMap]"!=yt(new Y))&&(yt=function(t){var e=O.call(t),n="[object Object]"==e?t.constructor:void 0,r=n?xt(n):void 0;if(r)switch(r){case q:return"[object DataView]";case K:return s;case $:return"[object Promise]";case tt:return a;case et:return"[object WeakMap]"}return e});var St=Array.isArray;function Mt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Ct(t)}var At=H||function(){return!1};function Ct(t){var e=Et(t)?O.call(t):"";return e==i||e==o}function Et(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Tt(t){return Mt(t)?ct(t):function(t){if(!bt(t))return W(t);var e=[];for(var n in Object(t))R.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}n.exports=function(t){return ht(t,!0,!0)}}).call(this,n(10),n(73)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(110)),i=o(n(368));function o(t){return t&&t.__esModule?t:{default:t}}var s={name:"IepResizeObserver",props:{disabled:Boolean},data:function(){return this.currentElement=null,this.resizeObserver=null,{width:0,height:0}},mounted:function(){this.onComponentUpdated()},updated:function(){this.onComponentUpdated()},beforeDestroy:function(){this.destroyObserver()},methods:{onComponentUpdated:function(){if(this.$props.disabled)this.destroyObserver();else{var t=this.$el;t!==this.currentElement&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new r.default((0,i.default)(this.onResize,300)),this.resizeObserver.observe(t))}},onResize:function(t){var e=t[0].target.getBoundingClientRect(),n=e.width,r=e.height,i=Math.floor(n),o=Math.floor(r);if(this.width!==i||this.height!==o){var s={width:i,height:o};this.width=i,this.height=o,this.$emit("resize",s)}},destroyObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},render:function(){return this.$slots.default[0]}};e.default=s},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),u=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return l.Date.now()};function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==u.call(t)}(t))return NaN;if(p(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=p(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var a=i.test(t);return a||o.test(t)?s(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,s,a,c,l=0,u=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,o=i;return r=i=void 0,l=e,s=t.apply(o,n)}function _(t){return l=t,a=setTimeout(x,e),u?y(t):s}function b(t){var n=t-c;return void 0===c||n>=e||n<0||g&&t-l>=o}function x(){var t=f();if(b(t))return w(t);a=setTimeout(x,function(t){var n=e-(t-c);return g?d(n,o-(t-l)):n}(t))}function w(t){return a=void 0,v&&r?y(t):(r=i=void 0,s)}function S(){var t=f(),n=b(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return _(c);if(g)return a=setTimeout(x,e),y(c)}return void 0===a&&(a=setTimeout(x,e)),s}return e=m(e)||0,p(n)&&(u=!!n.leading,o=(g="maxWait"in n)?h(m(n.maxWait)||0,e):o,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=i=a=void 0},S.flush=function(){return void 0===a?s:w(f())},S}}).call(this,n(10))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1651886232129",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2428",width:"200",height:"200"}},[t("path",{attrs:{d:"M156.458667 224.256m42.666666 0l625.792 0q42.666667 0 42.666667 42.666667l0 0q0 42.666667-42.666667 42.666666l-625.792 0q-42.666667 0-42.666666-42.666666l0 0q0-42.666667 42.666666-42.666667Z","p-id":"2429"}}),t("path",{attrs:{d:"M476.458667 473.173333m42.666666 0l305.792 0q42.666667 0 42.666667 42.666667l0 0q0 42.666667-42.666667 42.666667l-305.792 0q-42.666667 0-42.666666-42.666667l0 0q0-42.666667 42.666666-42.666667Z","p-id":"2430"}}),t("path",{attrs:{d:"M156.458667 722.048m35.541333 0l640.042667 0q35.541333 0 35.541333 35.541333l0 0.042667q0 35.541333-35.541333 35.541333l-640.042667 0q-35.541333 0-35.541333-35.541333l0-0.042667q0-35.541333 35.541333-35.541333Z","p-id":"2431"}}),t("path",{attrs:{d:"M219.733333 542.848a42.666667 42.666667 0 0 1 0-68.266667l99.541334-74.666666a42.666667 42.666667 0 0 1 68.266666 34.133333v149.333333a42.666667 42.666667 0 0 1-68.266666 34.133334z","p-id":"2432"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{t:"1651886218724",className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2291",width:"200",height:"200"}},[t("path",{attrs:{d:"M156.458667 206.037333m42.666666 0l625.792 0q42.666667 0 42.666667 42.666667l0 0q0 42.666667-42.666667 42.666667l-625.792 0q-42.666667 0-42.666666-42.666667l0 0q0-42.666667 42.666666-42.666667Z","p-id":"2292"}}),t("path",{attrs:{d:"M156.458667 454.954667m42.666666 0l305.792 0q42.666667 0 42.666667 42.666666l0 0q0 42.666667-42.666667 42.666667l-305.792 0q-42.666667 0-42.666666-42.666667l0 0q0-42.666667 42.666666-42.666666Z","p-id":"2293"}}),t("path",{attrs:{d:"M156.458667 703.829333m35.541333 0l640.042667 0q35.541333 0 35.541333 35.541334l0 0.042666q0 35.541333-35.541333 35.541334l-640.042667 0q-35.541333 0-35.541333-35.541334l0-0.042666q0-35.541333 35.541333-35.541334Z","p-id":"2294"}}),t("path",{attrs:{d:"M804.266667 456.362667a42.666667 42.666667 0 0 1 0 68.266666l-99.541334 74.666667a42.666667 42.666667 0 0 1-68.266666-34.133333v-149.333334a42.666667 42.666667 0 0 1 68.266666-34.133333z","p-id":"2295"}})])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(64)),i=d(n(14)),o=n(3),s=d(n(79)),a=d(n(113)),c=d(n(78)),l=d(n(114)),u=d(n(67)),h=d(n(68));function d(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AdminLayout",inject:["slotsList","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters},sidebarCollapsed:function(){return this.$store.state.user.sidebarCollapsed}},data:function(){return{sidebarList:[],openKeys:[],selectedKeys:[],isOpen:!0,collapsed:!1,menuWidth:0}},watch:{sidebarCollapsed:{handler:function(t){this.collapsed=t},immediate:!0}},methods:{handleSidebarChange:function(t){this.isOpen=t}},render:function(){var t=this,e=arguments[0],n=(0,i.default)([o.prefixCls+"-layout-light",o.prefixCls+"-basic-layout",o.prefixCls+"-admin-layout"]),d=(0,i.default)([o.prefixCls+"-header",o.prefixCls+"-header-light",o.prefixCls+"-header-light-header",this.isOpen?"":o.prefixCls+"-header-between"]),f=(0,i.default)([o.prefixCls+"-slider-light"]),p=document.documentElement.style.fontSize?parseFloat(document.documentElement.style.fontSize)/100:1;this.isOpen?this.collapsed?this.menuWidth=p*this.propsList.menuCollapsedWidth:this.menuWidth=p*this.propsList.menuWidth:this.menuWidth=0;var m={props:{width:this.menuWidth,collapsedWidth:p*this.propsList.menuCollapsedWidth,trigger:null,collapsible:!0,collapsed:this.collapsed},style:{"--flex":this.menuWidth>0?"0 0 "+80*p+"px":0,"--max-width":this.menuWidth>0?80*p+"px":0,"--width":this.menuWidth>0?80*p+"px":0}};return e("a-layout",{class:n},[e("a-layout-sider",(0,r.default)([{class:[o.prefixCls+"-slider",this.collapsed?o.prefixCls+"-slider-collapsed":""]},m]),[this.slotsList.logo?this.slotsList.logo:e(a.default,{attrs:{prefix:"basic",theme:"light"}}),e(c.default,{attrs:{sidebarList:this.nav[0].children},class:f,on:{change:function(e){return t.handleSidebarChange(e)}}})]),e("a-layout",[e("a-layout-header",{class:d},[this.isOpen?null:this.slotsList.logo?this.slotsList.logo:e(a.default,{attrs:{prefix:"basic",theme:"light"}}),e("div",{class:[o.prefixCls+"-header-light-inner",o.prefixCls+"-header-inner"]},[this.slotsList.header?this.slotsList.header:null,e(l.default),e(u.default),e(h.default)])]),e("a-layout-content",[e(s.default)])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(14)),i=n(3),o=h(n(79)),s=h(n(113)),a=h(n(78)),c=h(n(114)),l=h(n(67)),u=h(n(68));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"FullHeaderLayout",inject:["slotsList","slotScope","propsList"],computed:{nav:function(){return this.$store.state.user.addRouters}},data:function(){return{sidebarList:[],openKeys:[],selectedKeys:[]}},render:function(){var t=arguments[0],e=(0,r.default)([i.prefixCls+"-layout-light",i.prefixCls+"-basic-layout",i.prefixCls+"-admin-layout",i.prefixCls+"-fullHeader-layout"]),n=(0,r.default)([i.prefixCls+"-header",i.prefixCls+"-header-light"]),h=(0,r.default)([i.prefixCls+"-slider-light"]);return t("a-layout",{class:e},[t("a-layout-header",{class:n},[t("div",{class:[i.prefixCls+"-header-light-inner",i.prefixCls+"-header-inner"]},[this.slotsList.logo?this.slotsList.logo:t(s.default,{attrs:{prefix:"basic",theme:"light"}}),t("div",{class:i.prefixCls+"-header-right"},[t("div",{class:i.prefixCls+"-header-right-extra"},[this.slotsList.header,t(c.default),t(l.default),t(u.default)])])])]),t("a-layout",[this.slotsList.sidebar?this.slotsList.sidebar:t(a.default,{attrs:{sidebarList:this.nav[0].children},class:h}),t("a-layout-content",{class:"rk-web-core-full-header-layout"},[this.slotsList.tagView?this.slotsList.tagView:null,this.propsList.keepAliveLayout.some((function(t){return t.indexOf("FullHeaderLayout")>-1}))?this.slotsList.tagView?t("a-scrollbar",{class:"rk-web-core-full-header-layout-scrollbar"},[t(o.default,{class:"rk-web-core-full-header-layout-blank"})]):t(o.default,{class:"rk-web-core-full-header-layout-blank"}):t(o.default)])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);n(374);e.default={name:"LooseWrapper",render:function(){var t=arguments[0];return t("div",{class:r.prefixCls+"-loose-wrapper"},[t("router-view")])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllChildren=e.getAllProps=e.getSlot=e.getSlots=e.camelize=e.isValidElement=e.initDefaultProps=e.parseStyleText=e.getValueByProp=e.getAttrs=e.getKey=e.getPropsData=e.slotHasProp=e.getSlotOptions=e.getComponentFromProp=e.getOptionProps=e.filterProps=e.hasProp=void 0;var r=h(n(28)),i=h(n(156)),o=h(n(53)),s=h(n(158)),a=h(n(13)),c=h(n(23));e.getEvents=function(t){var e={};t.componentOptions&&t.componentOptions.listeners?e=t.componentOptions.listeners:t.data&&t.data.on&&(e=t.data.on);return(0,a.default)({},e)},e.getDataEvents=function(t){var e={};t.data&&t.data.on&&(e=t.data.on);return(0,a.default)({},e)},e.getListeners=function(t){return(t.$vnode?t.$vnode.componentOptions.listeners:t.$listeners)||{}},e.getClass=function(t){var e={};t.data?e=t.data:t.$vnode&&t.$vnode.data&&(e=t.$vnode.data);var n=e.class||{},r=e.staticClass,i={};r&&r.split(" ").forEach((function(t){i[t.trim()]=!0})),"string"==typeof n?n.split(" ").forEach((function(t){i[t.trim()]=!0})):Array.isArray(n)?(0,u.default)(n).split(" ").forEach((function(t){i[t.trim()]=!0})):i=(0,a.default)({},i,n);return i},e.getStyle=function(t,e){var n={};t.data?n=t.data:t.$vnode&&t.$vnode.data&&(n=t.$vnode.data);var r=n.style||n.staticStyle;if("string"==typeof r)r=p(r,e);else if(e&&r){var i={};return(0,c.default)(r).forEach((function(t){return i[f(t)]=r[t]})),i}return r},e.getComponentName=function(t){return t&&(t.Ctor.options.name||t.tag)},e.isEmptyElement=_,e.isStringElement=function(t){return!t.tag},e.filterEmpty=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter((function(t){return!_(t)}))},e.mergeProps=function(){var t=[].slice.call(arguments,0),e={};return t.forEach((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!0,r=!1,c=void 0;try{for(var u,h=(0,o.default)((0,i.default)(t));!(n=(u=h.next()).done);n=!0){var d=u.value,f=(0,s.default)(d,2),p=f[0],m=f[1];e[p]=e[p]||{},(0,l.default)(m)?(0,a.default)(e[p],m):e[p]=m}}catch(t){r=!0,c=t}finally{try{!n&&h.return&&h.return()}finally{if(r)throw c}}})),e};var l=h(n(159)),u=h(n(14));function h(t){return t&&t.__esModule?t:{default:t}}var d=/-(\w)/g,f=function(t){return t.replace(d,(function(t,e){return e?e.toUpperCase():""}))},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(r).forEach((function(t){if(t){var r=t.split(i);if(r.length>1){var o=e?f(r[0].trim()):r[0].trim();n[o]=r[1].trim()}}})),n},m=function(t,e){return e in((t.$options||{}).propsData||{})},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return(0,c.default)(t).forEach((function(r){(r in e||void 0!==t[r])&&(n[r]=t[r])})),n},v=function(t){return t.data&&t.data.scopedSlots||{}},y=function(t){var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.propsData||{}};function _(t){return!(t.tag||t.text&&""!==t.text.trim())}e.hasProp=m,e.filterProps=g,e.getOptionProps=function(t){if(t.componentOptions){var e=t.componentOptions,n=e.propsData,r=void 0===n?{}:n,c=e.Ctor,l=((void 0===c?{}:c).options||{}).props||{},u={},h=!0,d=!1,f=void 0;try{for(var p,m=(0,o.default)((0,i.default)(l));!(h=(p=m.next()).done);h=!0){var v=p.value,y=(0,s.default)(v,2),_=y[0],b=y[1],x=b.default;void 0!==x&&(u[_]="function"==typeof x&&"Function"!==(w=b.type,S=void 0,(S=w&&w.toString().match(/^\s*function (\w+)/))?S[1]:"")?x.call(t):x)}}catch(t){d=!0,f=t}finally{try{!h&&m.return&&m.return()}finally{if(d)throw f}}return(0,a.default)({},u,r)}var w,S,M=t.$options,A=void 0===M?{}:M,C=t.$props;return g(void 0===C?{}:C,A.propsData)},e.getComponentFromProp=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.$createElement){var i=t.$createElement,o=t[e];return void 0!==o?"function"==typeof o&&r?o(i,n):o:t.$scopedSlots[e]&&r&&t.$scopedSlots[e](n)||t.$scopedSlots[e]||t.$slots[e]||void 0}var s=t.context.$createElement,a=y(t)[e];if(void 0!==a)return"function"==typeof a&&r?a(s,n):a;var c=v(t)[e];if(void 0!==c)return"function"==typeof c&&r?c(s,n):c;var l=[],u=t.componentOptions||{};return(u.children||[]).forEach((function(t){t.data&&t.data.slot===e&&(t.data.attrs&&delete t.data.attrs.slot,"template"===t.tag?l.push(t.children):l.push(t))})),l.length?l:void 0},e.getSlotOptions=function(t){if(t.fnOptions)return t.fnOptions;var e=t.componentOptions;return t.$vnode&&(e=t.$vnode.componentOptions),e&&e.Ctor.options||{}},e.slotHasProp=function(t,e){return e in((t.componentOptions||{}).propsData||{})},e.getPropsData=y,e.getKey=function(t){var e=t.key;return t.$vnode&&(e=t.$vnode.key),e},e.getAttrs=function(t){var e=t.data;return t.$vnode&&(e=t.$vnode.data),e&&e.attrs||{}},e.getValueByProp=function(t,e){return y(t)[e]},e.parseStyleText=p,e.initDefaultProps=function(t,e){return(0,c.default)(e).forEach((function(n){if(!t[n])throw new Error("not have "+n+" prop");t[n].def&&(t[n]=t[n].def(e[n]))})),t},e.isValidElement=function(t){return t&&"object"===(void 0===t?"undefined":(0,r.default)(t))&&"componentOptions"in t&&"context"in t&&void 0!==t.tag},e.camelize=f,e.getSlots=function(t){var e=t.componentOptions||{};t.$vnode&&(e=t.$vnode.componentOptions||{});var n=t.children||e.children||[],r={};return n.forEach((function(t){if(!_(t)){var e=t.data&&t.data.slot||"default";r[e]=r[e]||[],r[e].push(t)}})),(0,a.default)({},r,v(t))},e.getSlot=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.$scopedSlots&&t.$scopedSlots[e]&&t.$scopedSlots[e](n)||t.$slots[e]||[]},e.getAllProps=function(t){var e=t.data||{},n=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.data||{},n=t.$vnode.componentOptions||{}),(0,a.default)({},e.props,e.attrs,n.propsData)},e.getAllChildren=function(t){var e=t.componentOptions||{};return t.$vnode&&(e=t.$vnode.componentOptions||{}),t.children||e.children||[]},e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);e.default={name:"MicroLayout",render:function(){var t=arguments[0];return t("div",{class:r.prefixCls+"-micro-layout"},[t("router-view")])}}},function(t,e){t.exports=function(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(69)),i=s(n(40)),o=s(n(39));function s(t){return t&&t.__esModule?t:{default:t}}var a=function t(e){(0,o.default)(this,t),this.data=e,this.parent=null,this.children=[]},c=function(){function t(){(0,o.default)(this,t),this._root=null}return(0,i.default)(t,[{key:"traverseDF",value:function(t){var e=[],n=!1;e.unshift(this._root);for(var i=e.shift();!n&&i;)(n=!0===t(i))||(e.unshift.apply(e,(0,r.default)(i.children)),i=e.shift())}},{key:"traverseBF",value:function(t){var e=[],n=!1;e.push(this._root);for(var i=e.shift();!n&&i;)(n=!0===t(i))||(e.push.apply(e,(0,r.default)(i.children)),i=e.shift())}},{key:"contains",value:function(t,e){e.call(this,t)}},{key:"add",value:function(t,e,n){var r=new a(t);if(null===this._root)return this._root=r,this;var i=null;if(this.contains((function(t){if(t.data===e)return i=t,!0}),n),i)return i.children.push(r),r.parent=i,this;throw new Error("Cannot add node to a non-existent parent.")}},{key:"remove",value:function(t,e,n){var r=null;if(this.contains((function(t){if(t.data===e)return r=t,!0}),n),!r)throw new Error("Parent does not exist.");var i=this._findIndex(r.children,t);if(i<0)throw new Error("Node to remove does not exist.");return r.children.splice(i,1)}},{key:"_findIndex",value:function(t,e){for(var n=-1,r=0,i=t.length;r<i;r++)if(t[r].data===e){n=r;break}return n}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.noLogin=void 0;var r=n(43),i=n(8),o=n(5);e.noLogin=function(t,e){return e||console.warn("token is not undefined"),function(){var n=(0,r.getUrlParam)("shopId");n?(o.localStore.set("access_token",e),(0,i.setCache)("code","demo"),(0,i.setCache)("test_project",{shopId:(0,r.getUrlParam)("shopId")||(0,i.getCache)("test_project").shopId,flag:(0,r.getUrlParam)("flag")||(0,i.getCache)("test_project").flag}),t.replace({path:"/",query:{shopId:n}}).then()):((0,i.removeCache)("test_project"),(0,i.removeCache)("noLogin",i.sessionEngine))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(41)),i=d(n(66)),o=d(n(4)),s=d(n(25)),a=n(3),c=d(n(380)),l=d(n(183)),u=d(n(383)),h=n(8);function d(t){return t&&t.__esModule?t:{default:t}}var f={name:"AppLayout",props:{navVersion:s.default.oneOf(["v1","v2"]).def("v1"),navTheme:s.default.oneOf(["iep","park"]).def("iep"),theme:s.default.oneOf(["light","dark"]).def("light"),datetime:s.default.bool.def(!0),gpt:s.default.bool.def(!1),weather:s.default.bool.def(!0),menuWidth:s.default.number.def(250),menuInlineIndent:s.default.number.def(20),menuCollapsedWidth:s.default.number.def(80),menuIconTargetCustom:s.default.bool.def(!0),keepAliveLayout:s.default.array.def([]),keepAliveRouter:s.default.array.def([]),wind:s.default.bool.def(!0),keep:s.default.bool.def(!1),needMap:s.default.bool.def(!1),project:s.default.bool.def(!1),nav:s.default.bool.def(!0),right:s.default.bool.def(!0),skin:s.default.bool.def(!1),customPersonCenter:s.default.bool.def(!1),sidebarMenuSize:s.default.number.def(20),sidebarMenuAutoSize:s.default.bool.def(!0),multiProject:s.default.bool.def(!0),sidebarAlwaysOpened:s.default.bool.def(!0),versionModal:s.default.bool.def(!1),versionRecordRouter:s.default.string,isRefreshRouter:s.default.bool.def(!0)},data:function(){return{mapInstance:null,versionVisible:!1,versionInfo:{}}},computed:{appRouters:function(){return this.$store.state.user.appRouters},appLogout:function(){return this.$store.state.user.appLogout},appSkin:function(){return this.$store.state.user.skin},version:function(){return this.$store.state.user.currentAppVersion},historyVersion:function(){return this.$store.state.user.historyAppVersion},currentWeather:function(){return this.$store.state.user.currentAppWeather},userAllInfo:function(){return this.$store.state.user.userAllInfo}},provide:function(){return{slotsList:this.$slots,slotScope:this.$scopedSlots,propsList:this.$props,instance:this}},mounted:function(){var t=this;try{l.default.initIndexedDb()}catch(t){console.warn("db init error")}i.default.$on("loadMap",(function(e){console.log("***************MAPTALKS*****************"),console.log(e),t.mapInstance=e,t.$props.skin&&t.changeMapTheme(t.appSkin),t.$props.needMap&&t.$nextTick((function(){t.$props.versionModal&&t.listenVersion().then((function(){e.isLoad&&(t.versionVisible=!(0,o.default)(t.versionInfo.versionContent))}))})),console.log("***************MAPTALKS*****************"),t.$emit("load",e)})),i.default.$on("mapChange",(function(e){t.$emit("change",e)})),i.default.$on("extendChange",(function(e){t.$emit("extendChange",e)}))},updated:function(){var t=this;this.$nextTick((function(){t.$store.commit("user/SET_TIME_STAMP",{type:"app",timeStamp:""+(new Date).getTime()})}))},beforeDestroy:function(){i.default.$off("loadMap"),i.default.$off("mapChange"),i.default.$off("extendChange")},methods:{onLink:function(){var t=this.$props.versionRecordRouter;(0,o.default)(t)||(this.versionVisible=!1,this.$router.push(t).then((function(t){})))},changeMapTheme:function(t){if(!(0,o.default)(this.mapInstance)&&!(0,o.default)(this.mapInstance.instance)){var e=(0,h.getCache)("RK_MAP_STORE_OPTIONS",h.sessionEngine),n=this.mapInstance.instance.getBaseLayer().getAMap();"light"===t.style?n.setMapStyle("amap://styles/light"):(0,o.default)(e)||(0,o.default)(e.aMapStyle)?n.setMapStyle("amap://styles/2fa29a356dbc3a567b473b846fe84ed1"):n.setMapStyle(e.aMapStyle)}},listenVersion:function(){var t=this;return new r.default((function(e){t.$getDb("version").then((function(n){n&&t.version.verionCode===n.val||(t.versionInfo=t.version,t.$saveDb({tag:"version",val:t.version.verionCode,created:t.version.createdTime,desc:t.version.versionContent,isTop:t.version.isTop}),e(t.version))})).catch((function(t){console.log(t)}))}))}},watch:{appRouters:{handler:function(t){if(!(0,o.default)(t)){var e=this.$store.state.user,n=e.consumer,r=e.userAllInfo,i=e.currentProject,s=e.consumerExtList,a=e.menu_list;this.$emit("appInit",{consumer:n,userAllInfo:r,currentProject:i,consumerExtList:s,menu_list:a}),this.$props.needMap||(this.versionVisible=!(0,o.default)(this.versionInfo.versionContent))}},immediate:!0},appLogout:{handler:function(t){this.$emit("appLogout")},immediate:!0},appSkin:{handler:function(t){this.$props.skin&&(this.$emit("theme",t),this.changeMapTheme(t))},immediate:!0},version:{handler:function(t){var e=this;this.$props.needMap||this.$nextTick((function(){e.$props.versionModal&&e.listenVersion(t)})),this.$emit("version",t,1===parseInt(t.isTop))}},historyVersion:{handler:function(t){this.$emit("historyVersion",t)}},currentWeather:{handler:function(t){this.$emit("currentWeather",t)}},sidebarAlwaysOpened:{handler:function(t){this.$store.commit("user/SET_SIDEBAR_COLLAPSED",!t)},immediate:!0},theme:{handler:function(t){"dark"===t&&this.$store.commit("user/SET_SKIN",{color:getComputedStyle(document.documentElement).getPropertyValue("--antd-wave-shadow-color").trim()||"#0F6EFF",style:"dark"})},immediate:!0}},render:function(){var t=this,e=arguments[0],n=this.$slots,r=this.$props.versionModal;return e("div",{class:[a.prefixCls+"-layout",a.prefixCls+"-layout-theme-"+this.appSkin.style]},[e(c.default),n.default,r&&!(0,o.default)(this.versionInfo)?e(u.default,{attrs:{versionRecordRouter:this.$props.versionRecordRouter,visible:this.versionVisible,versionInfo:this.versionInfo},on:{close:function(){return t.versionVisible=!1},link:function(){return t.onLink()}}}):null])},install:function(t){t.component(f.name,f)}};e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=l(n(381));n(382);var o=n(5),s=n(17),a=n(65),c=l(n(4));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Extension",data:function(){return{isShow:!1,extensionBtn:[{title:"清除localStorage",key:1},{title:"清除sessionStorage",key:2},{title:"清除全部缓存",key:3},{title:"清除db",key:4},{title:"退出登录",key:5},{title:"重新拉取用户信息",key:6},{title:"刷新页面",key:7},{title:"重新初始化系统",key:8},{title:"reload系统",key:9}]}},computed:{isExtension:function(){return this.$isExtension}},watch:{isExtension:{handler:function(t){var e=this;t&&this.$nextTick((function(){(0,i.default)(e.$refs.extension)}))},immediate:!0}},methods:{handleTap:function(t){var e=this;switch(t){case 1:localStorage.clear();break;case 2:sessionStorage.clear();break;case 3:o.storage.clearAll();break;case 4:indexedDB.deleteDatabase("amap-jsapi"),indexedDB.deleteDatabase("iep_db"),indexedDB.deleteDatabase("rk-web-core");break;case 5:(0,s.logOut)();break;case 6:var n=this.$route.path;this.$store.commit("user/SET_ROUTERS",[]),this.$store.commit("user/SET_APP_ROUTERS",[]),this.$store.commit("user/SET_MENU_LIST",[]),this.$store.dispatch("user/GetUserInfo",{loadAuth:!0,sysCode:getCache("CLIENT_ID",sessionEngine)}).then((function(t){(0,c.default)(t)||((0,a.setAsyncRoutes)(e.$router,e.$store,t,e.$pkRouter,e.$basicOptions),e.$nextTick((function(){e.$router.replace("/").finally((function(){e.$router.replace(n)}))})))}));break;case 7:this.$router.replace("/refresh");break;case 8:this.$router.replace("/");break;case 9:window.location.reload()}}},render:function(){var t=this,e=arguments[0],n=this.extensionBtn.map((function(n){return e("div",{class:r.prefixCls+"-extension-group-item"},[e("a-button",{attrs:{type:"danger",ghost:!0},on:{click:function(){return t.handleTap(n.key)}}},[n.title])])}));return this.isExtension?e("a-tooltip",{attrs:{overlayClassName:r.prefixCls+"-extension-tooltip","get-popup-container":function(t){return t.parentElement}}},[e("template",{slot:"title"},[e("div",{class:r.prefixCls+"-extension-group"},[n])]),e("div",{class:r.prefixCls+"-extension",attrs:{title:"调试"},ref:"extension"},[e("a-icon",{attrs:{type:"bug"}})])]):null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){t.style.position="fixed";var e=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0;if({mobile:!!navigator.userAgent.match(/AppleWebKit.*Mobile.*/)}.mobile){if(null!=t){var a=document.body.clientWidth-t.offsetWidth,c=document.body.clientHeight-t.offsetHeight,l=function(t){t.preventDefault()};t.addEventListener("touchstart",(function(e){var n=(e||window.event).targetTouches[0];r=n.clientX-t.offsetLeft,i=n.clientY-t.offsetTop,document.addEventListener("touchmove",l,!1),t.addEventListener("touchmove",(function(e){var n=(e||window.event).targetTouches[0];o=n.clientX-r,s=n.clientY-i,o<0?o=0:o>=a&&(o=a),s<0?s=0:s>=c&&(s=c),t.style.left=o+"px",t.style.top=s+"px"})),t.addEventListener("touchend",(function(){document.removeEventListener("touchmove",l)}))}))}}else null!==t&&t.addEventListener("mousedown",(function(r){if(r.stopPropagation(),r.preventDefault(),0===r.button&&null!=t){var i=getComputedStyle(t);e=r.pageX-t.offsetLeft+parseInt(i["margin-left"]),n=r.pageY-t.offsetTop+parseInt(i["margin-right"]);var o=function(r){if(r.stopPropagation(),r.preventDefault(),null!=t){var i=r.pageX-e,o=r.pageY-n;i<0?i=0:i>document.documentElement.clientWidth-t.offsetWidth&&(i=document.documentElement.clientWidth-t.offsetWidth),o<0?o=0:o>document.documentElement.clientHeight-t.offsetHeight&&(o=document.documentElement.clientHeight-t.offsetHeight),t.style.left=i+"px",t.style.top=o+"px"}return!1};document.addEventListener("mousemove",o);document.addEventListener("mouseup",(function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)}))}return!1}))}},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"VersionModal",props:{visible:Boolean,versionRecordRouter:String,versionInfo:{type:Object,default:function(){}}},methods:{formatDate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss";"number"==typeof t&&(t=new Date(t)),"string"==typeof t&&(t=t.includes("-")?new Date(t):new Date(Number(t)));var n={"y+":t.getFullYear(),"M+":t.getMonth()+1,"d+":t.getDate(),"D+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(Object.hasOwnProperty.call(n,r)){var i=1===String(n[r]).length?"0"+n[r]:n[r];RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,i))}return e},handleCancel:function(){this.$emit("close")},jumpVersion:function(){this.$emit("link")}},render:function(){var t=arguments[0],e=this.$props,n=e.visible,r=e.versionInfo,i=(0,o.default)(r)||(0,o.default)(r.versionContent)||!r.versionContent.includes("[{")?[]:JSON.parse(r.versionContent);return t("a-modal",{attrs:{dialogClass:"rk-web-core-version-modal",title:"版本管理",visible:n,footer:null,centered:!0},on:{cancel:this.handleCancel}},[t("h3",{class:"version-title"},[this.versionInfo.verionCode]),t("p",{class:"update-time"},[this.formatDate(Number(this.versionInfo.updatedTime),"yyyy-MM-dd")]),t("div",{class:"version-content"},[i.map((function(e){return t("p",[t("span",{class:"cicle"}),e.words,t("a-image-preview-group",[e.image.map((function(e){return t("a-image",{attrs:{src:e}},[t("icon-font",{attrs:{type:"icon-photo"},slot:"placeholder"})])}))])])})),(0,o.default)(this.$props.versionRecordRouter)?null:t("div",{class:"version-more",on:{click:this.jumpVersion}},["更多版本更新记录",t("icon-font",{attrs:{type:"icon-more"}})])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=h(n(30)),o=h(n(31)),s=n(3),a=h(n(47)),c=(h(n(22)),n(8),n(5)),l=n(17),u=h(n(50));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppUserPublic",props:{theme:{type:String,default:"light"},logout:{type:Function},userName:!1,userAvatar:!1},computed:{currentUser:function(){return this.userName?this.userName:c.localStore.get("userName")},avaImg:function(){return this.userAvatar?this.userAvatar:c.localStore.get("userAllInfo").userExt&&c.localStore.get("userAllInfo").userExt.weChatAvatar?c.localStore.get("userAllInfo").userExt.weChatAvatar:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/default_avatar.png"}},data:function(){return{}},mounted:function(){},methods:{changeBtn:(r=(0,o.default)(i.default.mark((function t(e,n){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,u.default)(this.$props.logout)){t.next=2;break}return t.abrupt("return",this.$props.logout());case 2:if(!(0,u.default)(this.propsList.logout)){t.next=4;break}return t.abrupt("return",this.propsList.logout());case 4:this.$store.commit("user/SET_APP_LOGOUT",!0),r=c.localStore.get("IAM_OATH_TYPE"),a.default.clearAll(),c.localStore.set("IAM_OATH_TYPE",r),(0,l.logOut)();case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)}),changePath:function(){"/rkWebCoreSetting"!==this.$route.path&&this.$router.push({path:"/rkWebCoreSetting?path="+this.$route.path,query:this.$route.query})}},render:function(){var t=this,e=arguments[0];return e("a-dropdown",{attrs:{trigger:["click"]}},[e("span",{class:[s.prefixCls+"-app-external-link",s.prefixCls+"-app-external-link-"+this.theme]},[this.avaImg&&e("img",{class:s.prefixCls+"-app-user-avatar",attrs:{src:this.avaImg,alt:""}}),e("span",{class:s.prefixCls+"-app-external-link-title"},[this.currentUser]),e("a-icon",{attrs:{type:"caret-down"}})]),e("div",{slot:"overlay",class:s.prefixCls+"-app-external-wrapper"},[e("div",{class:s.prefixCls+"-app-external-btn-group"},[e("div",{class:s.prefixCls+"-app-external-btn-item",on:{click:this.changePath}},[e("span",["个人设置"])]),e("div",{class:s.prefixCls+"-app-external-btn-item",on:{click:function(){return t.changeBtn(2)}}},[e("span",["退出登录"])])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(12),o=h(n(112)),s=h(n(4)),a=h(n(177)),c=h(n(54)),l=n(8),u=n(5);function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppLogoPublic",props:{prefix:{type:String,default:"basic"},theme:{type:String,default:"light"}},computed:{currentConsumer:function(){return u.localStore.get("consumer")},sidebarCollapsed:function(){return this.$store.state.user.sidebarCollapsed}},data:function(){return{currentInfo:{icon:void 0,name:void 0},collapsed:!1}},watch:{sidebarCollapsed:{handler:function(t){this.collapsed=t},immediate:!0}},mounted:function(){var t=(0,l.getCache)("APP_PROJECT");if(t){var e=c.default.decrypt(t);e&&(this.currentInfo=e)}this.getByCuserInfo()},methods:{getByCuserInfo:function(){var t=this,e=(0,l.getCache)("CLIENT_ID",l.sessionEngine);(0,i.getByCuser)().then((function(n){var r=(0,o.default)(n.data,(function(t){return t.code===e})),i=c.default.decrypt((0,l.getCache)("APP_PROJECT"));!r||(0,s.default)(r)||(0,s.default)(r[0])?(t.currentInfo=i.includes("{")?JSON.parse(i):{},(0,l.setCache)("SYS_PROJECT_NAME",t.currentInfo.name,l.sessionEngine)):(t.currentInfo=r[0],r&&r[0]&&r[0].name&&(0,l.setCache)("SYS_PROJECT_NAME",r[0].name,l.sessionEngine))}))}},render:function(){var t=arguments[0],e=this.prefix,n=this.theme,i=r.prefixCls+"-logo";return t("div",{class:[i,i+"-"+e]},[t("div",{class:[i+"-"+e+"-inner",i+"-inner",i+"-"+n+"-inner"]},[t("img",{attrs:{src:this.currentInfo.icon?this.currentInfo.icon:"https://iotobject.rockontrol.com/daqilianfangliankong/IAM/1437955217135501312.png"}}),t("span",{class:[i+"-"+e+"-title",i+"-title"]},[this.currentInfo.name])]),t("div",{class:i+"-mark-inner"},[t(a.default)])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=y(n(30)),o=y(n(31)),s=y(n(13)),a=n(3),c=y(n(47)),l=n(12),u=y(n(46)),h=y(n(4)),d=y(n(14)),f=(y(n(22)),y(n(63))),p=y(n(66)),m=n(8),g=n(5),v=n(17);function y(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AppExternalPublic",props:{theme:{type:String,default:"light"}},computed:{currentUser:function(){return g.localStore.get("userName")},currentProject:function(){return g.localStore.get("currentProject")}},data:function(){return{projectList:[],currentProjectInfo:void 0}},mounted:function(){this.getAllProject()},methods:{getAllProject:function(){var t=this;(0,l.getBelongList)().then((function(e){(0,m.getCache)("CLIENT_ID",m.sessionEngine);t.projectList=e.data.map((function(e){return(0,s.default)({},e,{check:e.id===t.currentProject.id})}));var n=(0,u.default)(t.projectList,["id",t.currentProject.id]);(0,h.default)(n)||(t.currentProjectInfo=n.name)}))},changeBtn:(r=(0,o.default)(i.default.mark((function t(e,n){var r,o,s,a,u;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(1!==e){t.next=16;break}return p.default.$emit("extendChange",n),(0,m.removeCache)("menuList"),(0,m.removeCache)("consumer"),(0,m.removeCache)("currentProject"),(0,m.removeCache)("consumerExtList"),(0,m.removeCache)("userMessage"),g.localStore.get("currentProject",n),t.next=10,(0,l.postConsumer)(n.id);case 10:r=t.sent,o=r.data,s=g.localStore.get("IAM_OATH_TYPE"),(0,h.default)(o)||((0,m.removeCache)("menuList"),localStorage.removeItem("access_token"),g.localStore.set("access_token",o.access_token),g.localStore.set("refresh_token",o.refresh_token),a=new Date,g.localStore.set("token_expires_in",new Date(a.setSeconds(a.getSeconds()+parseInt(o.expires_in))).getTime()),s&&"idp"===s&&(g.localStore.set("idp_access_token",o.idp_access_token),g.localStore.set("idp_refresh_token",o.idp_refresh_token)),this.$router.replace("/").then((function(){window.location.reload()}))),t.next=20;break;case 16:u=g.localStore.get("IAM_OATH_TYPE"),c.default.clearAll(),g.localStore.set("IAM_OATH_TYPE",u),(0,v.logOut)();case 20:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},render:function(){var t=this,e=arguments[0],n=this.projectList.map((function(n){var r=(0,d.default)([a.prefixCls+"-app-external-cell",n.check?a.prefixCls+"-app-external-active":""]);return e("div",{class:r,on:{click:function(){return t.changeBtn(1,n)}}},[n.name])}));return e("a-dropdown",{attrs:{trigger:["click"]}},[e("span",{class:[a.prefixCls+"-app-external-link",a.prefixCls+"-app-external-link-"+this.theme]},[e("span",{class:a.prefixCls+"-app-external-link-sub"},[this.currentProjectInfo]),e("a-icon",{attrs:{type:"caret-down"}})]),e("div",{slot:"overlay",class:a.prefixCls+"-app-external-wrapper"},[(0,h.default)(this.projectList)?null:e("div",{class:[a.prefixCls+"-app-external-list",!(0,h.default)(this.projectList)&&this.projectList.length>10?a.prefixCls+"-app-external-list-scroll":""]},[e(f.default,[n])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=h(n(23)),i=h(n(171)),o=n(3),s=n(12),a=h(n(172)),c=h(n(173)),l=h(n(174)),u=(n(8),n(5));function h(t){return t&&t.__esModule?t:{default:t}}var d={"东北⻛":[22.5,67.5],"东⻛":[67.5,112.5],"东南⻛":[112.5,157.5],"南⻛":[157.5,202.5],"⻄南⻛":[202.5,247.5],"⻄⻛":[247.5,292.5],"⻄北⻛":[292.5,337.5]},f={"0级":[0,.2],"1级":[.2,1.5],"2级":[1.5,3.3],"3级":[3.3,5.4],"4级":[5.4,7.9],"5级":[7.9,10.7],"6级":[10.7,13.8],"7级":[13.8,17.1],"8级":[17.1,20.7],"9级":[20.7,24.4],"10级":[24.4,28.4],"11级":[28.4,32.6]};e.default={name:"HeaderInfoGroupPublic",props:{theme:{type:String,default:"light"}},data:function(){return{ymd:"00-00-00",hms:"--:--:--",regionDataInfo:{temperature:0,time:void 0,url:void 0,value:0,windDirection:0,windSpeed:0,iconDay:void 0,iconNight:void 0,weather:"晴",windDegrees:180,windLevel:2},isDay:!0,visible:!1}},mounted:function(){var t=this;this.timer=setInterval((function(){t.initDateTime()}),1e3),this.getRealDate()},methods:{handleClose:function(){this.visible=!1},handleChange:function(t){this.handleClose()},handleSkin:function(){this.visible=!0},calcWindDirection:function(t){return{transform:"rotateZ("+t+"deg)"}},calcWind:function(t){var e=(0,i.default)(d).findIndex((function(e){return t>e[0]&&t<=e[1]}));return""+((0,r.default)(d)[e]||"北风")},calcWindLevel:function(t){if(0===t)return"0级";var e=(0,i.default)(f).findIndex((function(e){return t>e[0]&&t<=e[1]}));return""+((0,r.default)(f)[e]||"12级")},initDateTime:function(){var t=new Date,e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),i=(new Date).getHours(),o=(new Date).getMinutes(),s=(new Date).getSeconds();this.ymd=e+"-"+this.addZero(n)+"-"+this.addZero(r),this.isDay=i>6&&i<=18,this.hms=this.addZero(i)+":"+this.addZero(o)+":"+this.addZero(s)},addZero:function(t){return t<10?"0"+t:t},getRealDate:function(){var t=this,e=u.localStore.get("consumer").regionId;(0,s.getRegionDataInfo)({areaCode:e}).then((function(e){t.regionDataInfo=e.data.live}))}},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},render:function(){var t=this,e=arguments[0];return e("div",{class:[o.prefixCls+"-header-info-group",o.prefixCls+"-header-info-group-"+this.theme]},[e("div",{class:[o.prefixCls+"-header-info-group-skin"],on:{click:function(){return t.handleSkin()}}},[e(c.default)]),e("div",{class:[o.prefixCls+"-header-info-group-time",o.prefixCls+"-header-info-group-item"]},[e("span",[this.hms]),e("small",[this.ymd])]),e("div",{class:[o.prefixCls+"-header-info-group-weather",o.prefixCls+"-header-info-group-item"]},[e("img",{attrs:{src:this.regionDataInfo.icon,alt:""}}),e("span",[this.regionDataInfo.temperature,"℃"])]),e("div",{class:[o.prefixCls+"-header-info-group-wind",o.prefixCls+"-header-info-group-item"]},[e("div",{class:o.prefixCls+"-header-info-group-wind-img"},[e(a.default,{style:this.calcWindDirection(this.regionDataInfo.windDegrees)})]),e("div",{class:o.prefixCls+"-header-info-group-wind-info"},[e("span",[this.regionDataInfo.windLevel,"级"]),e("span",[this.regionDataInfo.windDirection])])]),e(l.default,{attrs:{visible:this.visible},on:{close:this.handleClose,change:this.handleChange}})])}}},function(t,e,n){"use strict";n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406)},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(13)),i=a(n(39)),o=a(n(40));e.microOne=h,e.microTwo=d,e.microThree=function(){window.__MICRO_APP_ENVIRONMENT__?window["micro-app-"+window.__MICRO_APP_NAME__]={mount:h(),unmount:d()}:h()};var s=a(n(184));function a(t){return t&&t.__esModule?t:{default:t}}var c=void 0,l=void 0,u=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"start",value:function(t){s.default.start((0,r.default)({},t))}},{key:"isMicro",value:function(){return window.__MICRO_APP_ENVIRONMENT__}},{key:"publicPath",value:function(){window.__MICRO_APP_ENVIRONMENT__&&(n.p=window.__MICRO_APP_PUBLIC_PATH__)}},{key:"registerMicro",value:function(t,e){return c=function(){console.log("********************render micro app********************"),l=new t(e).$mount("#app")},window.__MICRO_APP_ENVIRONMENT__||c(),{renderSub:c,subInstance:l,instance:s.default}}}]),t}();function h(){c()}function d(){l.$destroy(),l.$el.innerHTML="",l=null}e.default=new u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(23)),i=a(n(4)),o=a(n(55)),s=n(65);function a(t){return t&&t.__esModule?t:{default:t}}var c={name:"action",inserted:function(t,e,n){var a=e.arg,c=e.value,l=n.context.$route.meta,u=(0,s.getDeepChild)(l.childMenuList);if((0,i.default)(l)||(0,i.default)(u))t.parentNode&&t.parentNode.removeChild(t)||(t.style.display="none");else{var h="";"func"!==a||(0,i.default)(c)||(h=c),(0,o.default)(n.context,(0,i.default)(c)?{}:c,t,!0,a,h,u),u.findIndex((function(t){return(0,r.default)(t).includes(a)||(0,r.default)(t).includes(h)}))<=-1&&(t.parentNode&&t.parentNode.removeChild(t)||(t.style.display="none"))}},install:function(t){t.directive(c.name,c)}};e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(39)),i=o(n(40));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e,n,i){(0,r.default)(this,t),this.route=e,this.store=n,this.vm=i}return(0,i.default)(t,[{key:"setSidebarVisible",value:function(t){this.store.commit("user/SET_OPEN_SIDEBAR",t)}},{key:"getAllRouterStack",value:function(){return this.store.state.user.appRouters}},{key:"getCurrentRouterStack",value:function(){return this.store.state.user.addRouters}}]),t}();e.default=function(t,e,n){return new s(t,e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(window.console){console.info("%c ","font-size:40px;background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPQAAAAoCAYAAADJ09eqAAAP20lEQVR4Xu2deXRdRR3Hv/NCWkCgIFvzYhLAUgRUkhQQEbSgHhQXXMBdOCKKuKC4KxytqLiguIKg4oY7giKKG2pUVCg0r4JSBCpNcngFigIKIoXkej6vd9Jhztz37vLSNn3390/Te2fmzvxmvvNbZ56RFKk4LZe0SNIUTdX7hk+NNPWhws0are0dXz63cDtlAyUHOoQDpk2Ahl0nSvoif0S7Ld5y9dTdK6JIuxXiozGX947Xnl6ojbJyyYEO4kA7Ab1G0kJJd8O/1f1DR09F0YV5eWlkJitzugbnr7zmr3nbKOuVHOg0DrQT0PDu05JOsUys9w2NRIqekpOpZ/dOLH9jzrpltZIDHcmBdgP6IUmPk3QD3Lx996H9Jh+KRiOpkom7Rndtu/WcPbe7Yek/M9UrC5cc6HAOtBvQsPMXkp4xLaX7B8+LIr02E5+NObl3vPa5THXKwiUHSg5oJgANW58j6ScNW3rB0M7RWt0URdG8NPw2xlzfs8e8/czICNK+pJIDJQcycGCmAH2TpMdKWktf6n3Dp0SaOitNv4y6jqhOLPtlXHZHSaXanYZxZZmSA1JDQq+eIU6cJul82o4WLequr5m8TpH2avotYy7tHa891ylzjqTXZ+xf0bg69f8h6RpJZ0i6NuP3N8fin5L0lsDA3iCJOZoNdJek7b2OstYunQ2dd/r4NUnHeX3+qqTjeQagNwitHhg8cmpKP038mNHa7u7KvrusHL05LjMs6QpJW2fsYFFAu59Dw3izpHMz9mFzKo7/47zAgD4b82a2jLUEdLtnqt43dFmk6JnBdo3O7B1f/k7n3R8kHSgpa6ZYOwFNdx6M+0E2XKfRYbGTs9sb+M9iP8nkLGJICeh2T9aa3fff68HJyeuiKHrYAjFGt8+dM3fhjjdf9e/4my+R9J3YBm8HoF8t6S8txlONs92eFSj3Y0lHtZsfm3h7e0q6StIOXj9J9HmSJDtXm/gwprvXGYCu9w+uTDsjxphzesZqn3TK/0DSUIv6AOkFtkx9YPCsaGp98knjecWc0DtWa9jbkraS9HdJfW0ENAvwTynH+UNJz/PK3i5pfqD+LpKOjvPYe1O0/4AkHIbfjW30ZlWOiIGzr6QtUrTtFsGpeHb8ABvX79vnJf2qSZuA+Mo4888tdoekJ0ha5TwkcejJkh6fQptCe7pT0h/jDft+rw+EO9+Rcax+8QlJ35d0mfciBOilkm4LfA/eWccsr4nQvC5e66zPJMI08b/L3LGe0DbJpGyVk4HWc6sktKCQidrchr61bzCVimpk7tyqa96eO6waaaR2xiC9KCXzWfSNsnfttnj7+yfvuSlStBP/N8aM9hx/1AFmyZLGwQ5J75e0JP4bG7YdEjoLoAHSzwPjYpHbsfP6hbFt3RhHRmKsH43H6ofndo2diSFNIe1nviRNx/7ZHFlILr1G0pcTGmMBkktwuPeezQgV/M/xcxxMLPyXpe2UV+5vktDE3NTeV0n6Ss72/Go4NE91HoYAnfSp6XMJkh4VCwMETCsis9FupJR9jKQLJO3fqmLC+x9JQrv8l/O+bYA+qTpRs84hQHa9pD1SdpQdfW9J/6N8vX/4xCiaarRlTNeh1fFlOL8gmEaWmXWEbQxAE267LjAuQmiWsey2SPyulONPKvZBSe9zXuKk/J2kQwu2WwTQzAsL2qeXS/q28xDtjE2tCBGSZNEjtaF2AhpBxVyyTqEsgEYaW0fg9yS9KOUgXa//NvE6KnZAad16WNxmQJtrqwctGDYXXmidIO+JQzopx9koRhjrw/wRLVlSqZ9/yaikFb0TtZc6jWA3s2tbygpoAGElvdu3LBIa1TFkb7uAxkG2X2DwLB5ULjd2vmWspk5nz3njY0HfEj9jNw5JTvhwcayuh8bnd2WZE465URL2sEtJEprQFCEqn06PtQn7HO2hkTjkEdoG/gakrttPVH58EJgoPnFCz24ghF6s6WXLsYl+LFCPR8w32scrJM0JlHElbQjQaI02quJWx+zCfwCx2TD3PmE6Mdf/cV4QAkONhz6eYD4wnkskjTn1GAfr4PkJ43A3069LOtbrzPqwVRqVu1LpOrxnbNlv40Z6JLFI2IGy0H0x8+tUqvcvOmRud2Vsx5VXY/NAgM5KattuVkBTL2RCZAE09g4T6tMj412eybUSxV8EL4694iG+EE931TFbhkXMhEDYfsd4leEb/W/l1Euai7SAPjIGo691IKHYdF2+huLSgPlpsYYR6svOkohc+LkIzH9/XCEkockJeHSLhfbU2Cfgh2GnhUiChG4Vh04SEGhnfLOhcSYQAsv3L41LOji2kUPVUM3BgG9mflPSK+MKxVRuI3NxdaLmqlahHSItsLEn/N2FujgK2Nm4JMGlDQ1odnlUnIO8fmA7W28v6o/d3NxiLDoWXzPCnPAXNE7Gt8eVQvYuGXZvS8vgQLk0gMbxhm28rVcfKcV4/YX7m9iedoujXbWyp9kYXLXd1t8ulnR5AU07Id7OFKDRItnokoj1DM/8cJ+ryifVDZk8NUnkZUAFAG30QJeZs/f8saVWJcR2xPuZNyGFXf6JjjpjBxVStXjXTkCjcjXzyKN5sKBY3D79OpY+PCeO7nsymbxm3k/bHiretMc/fojH+U3x36hhVlrZOvSJScxLrZxiSE42U9/WQ5ow33j4fQL8/qaHAwpHVDNK8k+ginOevgigkf6HeB8vCmiaC2l8ePX5XhIhGHAi+kT/8PA3I+xw1oRLKyTtEz/ID2hTqZxRHRu1nkJAjKrhT2TWhcauD6gto5AK2CN4d31qJ6DxqrIQcc5lIfqJlPp9XAlbmJCCS/+V9IgUjYZU6laARqNBs8lLzQCNasdmhUrv0r3xs6S01xCg393E1rVtw3vrpHK/1ymAZt0jEJsRUvwLXoE2ANqYevc28/ba5foRJtcSi7qoB5Ydyt1Jk5wHfLOdgGYzwiuPNAo5OUJMBsyE0fBGWyoCaG5wIYTn0sYE9Dcc28z2CWcWtmVymu66jdHf2EtAr5/VJAm98QBdMea4nvEaE+4SKiuHFloFx5N2IBYLahxeWGiBJCRnyEM5E4CmTdSlywP2jdvneyRdHauQvr0cUrnTSuhNCdBoRSOBicKb3iocVQI6n8q9cQBtpKU947WDjDEh+4EY5wlNlYbklyQNEJqxhPvePV3l12y3hLbtJ9ns9O9dcdgpKeFmc5LQoblk3MRdiTMnUQno2QJoI0WVrsrB81eNWl0fZwmSFKkGYe+wu+OZzELk/hIztE4WbvN00+tCbc0UoPnWmY532f22G0YK9akIoDc1GxovLCmg/r1vaByYVoReQlQCetYA2pgLquM1N7TETo2HjYQLm6ZIGOUTWdAsiZNUgAgivZDkjJBH2W12JgGN2YCG8GxvHHyTzcY6wfxhFgH0pqRy2wQW/An4FfysP/KJD0g4L18CejYA2kj3dcss3Hmi1kj+iHdua2eRRfSZ+Dk7O7avn4GUhHGycQBv4wYTSeS8prkzbCYBTT9IjsFZxsWGLpE4wiGEUFw5BGhCFGSEtaI8YStMlCL5za3CVvQZ7zMama914S/B5+AfoggB+r2SPtKCAayB0LXMneLlTpPgFEpAyuflNqqcVp0YbaRnxo4vVC6b4kgcFwDbtEYkW9rbHkj7IyUQIuMKlZ1/W9FMA5rvD8QSyk9LhIk4MXCQuYQqGpLemCWtTq6FwEVaIx5iiJCOH1ZzveCt+BV6nwbQ1MPZx3z6mWKYCSRSuD4FzC8ypVxys5mS+olt7idk0C4bCdGUDR2Hxhfkp5q6fU/KFGsVh0b7w2zxM76aHYqx3yWb0L+lh40VbQlKF4c2Rqt6KtvvbVaN2Kwg8mD9mzqIj7kfYxJtBkvSJKJauxlEb83gVAPQgxlXcZ7UT9LxyH7yJ4BTR+Qtuwf5keqA3Pf0o76zYK0W4nf7ZEfDcd9Rx/4gAfwkb9clpCNxcJsjnJEdjaOoaU9bcTsLd6v79AHnBBzv2ITcyyh4xkUQLPSkOCuZdqQ12gQJ+w36Rx4ztKEBTbSFEGqzFM48iSWMBT6g5bmExoeQ4BhqiBCeaD9+kpKb754S0BVzdHWsZo9Dcv4TKUoWkUssbEJXodNIWRfaTJQvcjiDXFk/TEcfMQ0Ao0uEstwTMO7ixNHnHndjk2B39SUadQArKaP2XrekPsB3jnSiAaQ57sqisJIwTeqnOzYWD5LEJb5J2qZtk2OUbIA+sZmxhtBu3E2QyyM4eMC/PiGR7A8qzCSgQxsbfYGnHDRxj8bCa5sRGToM00pC0657DNgdM2DmrACZeJYQDmi/bO4h083d9FsfzjDSSHViOZNkifzh6V/A8GaAiQwtzsBcbZRHeSS07SjmBragTyd52goSBc0j61ltv13XL2Hf4XXmkEMRKnJ8Ev8Im5K/YbH54A0nPg+RvcYppyKE4410UAummQQ0Fz0wj2mItW81lbwSGmByoMbXjtJ83y1DmrF7Nr65hK73DU52bWGGd72lZk/zcHgACewnlrsfIfGABIRNkYoAGgmPV9/Pt8a7jzOMNElLgI7dMiR1WvEFSUb2GRuI318uTACQ/q0prdp03xcBNO3g+UZC4RdwCU0CbQMgkrILSPKCmjVGXTe9dCYBjc+GMaVx5GIW2mOkeQEN3/jWtxz7N8scUhZJjrbkHsdtAej+oXOr4zXyRy2xI4Qv8ltfhsMaOG8aCei3DQwdPxkFjwZmHcDDyhvpgep4zb96tVWboVtUkLqoXGmIyxVQA32PL05BVEPX3mKRkBjDIg9dUeR/D8cPjkZywVGFmxEbBvYdNmfWixSQ8tb/gcngbzr4QmxeQVIf0EKsg9Qtg93pHsJAs0OaEyloJgRow16RjD8AvwF2t0vcksLhBJe4Ish/FuozP1/sOxQ52eWuB2xTAMIxxWa594DGOnxD64lDH5gVaYgQLQIQe5oNstXBJoQHkQBO/YXmiDXoatP0Aa25cTTX1Bcu2ql64zJ7vpczsc1yeN0BTIcpomOO6apfefOoFBGrbh+Vvw/dPl6WLXUEB9zdgt0VNaj5Zfjr2YK0wT5oOHRWDyw6bGpqMuQoyc/IEtD5eVfW7EgOuIDGEZDq52ocTuEVnr7Fv943dFGkyLc/8zO2BHR+3pU1O5IDFtCEpwhTpfpBOYdT2EQco2vESG8bOHD3yWjtCkWFvb/rPlECuiMXZTno/BywgOaGw2w/+br+m3gOScxoeAPr/UNnRFHEJYLFqQR0cR6WLXQUBwA02Sl4XvOecYZhJESQ5aQ79lm8zUP33nNjFEVc6VOMSkAX419Zu+M4AKA5fOEfn8vKCOKSONO4oVKr+4eOnYoiYrTFqAR0Mf6VtTuOAwA6dJlZHkYQs+T+ZkVRZOoDw1dIUd5fDGh8f10cennWc9d5+l7WKTmwWXDg/wW0sGVfLoQ5AAAAAElFTkSuQmCC') no-repeat;background-size:contain"),console.info("%c佳华科技,物联网、大数据、人工智能技术的创新者","font-size:14px;color:#E51D30;font-weight:bold;border:1px solid #E51D30;padding:0 4px;"),console.info("%c"+t+"%cv"+e,"font-size:20px;color:#FADFA3;font-weight:bold;background-color:#030307;padding:0 4px;","font-size:20px;color:#000000;background-color:#FADFA3;padding:0 4px;")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(13)),i=n(3),o=u(n(412)),s=u(n(63)),a=u(n(4)),c=u(n(46)),l=u(n(413));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"RkVersionList",computed:{historyVersion:function(){var t=this.$store.state.user.historyAppVersion;return this.activeKey=(0,a.default)(t)?"":t[0].id,this.currentActiveInfo=this.parseWord(t[0]),t}},data:function(){return{activeKey:"",currentActiveInfo:{}}},methods:{formatDate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss";"number"==typeof t&&(t=new Date(t)),"string"==typeof t&&(t=t.includes("-")?new Date(t):new Date(Number(t)));var n={"y+":t.getFullYear(),"M+":t.getMonth()+1,"d+":t.getDate(),"D+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(Object.hasOwnProperty.call(n,r)){var i=1===String(n[r]).length?"0"+n[r]:n[r];RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,i))}return e},parseWord:function(t){if((0,a.default)(t))return{};var e=t.versionContent.match(/[\u4e00-\u9fa5]+/g);return(0,r.default)({},t,{version:t.verionCode.toUpperCase(),text:(0,a.default)(e)?"版本更新记录":e[0],parseJsonText:JSON.parse(t.versionContent)})},handleTap:function(t){this.activeKey=t;var e=(0,c.default)(this.historyVersion,{id:this.activeKey});(0,a.default)(e)||(this.currentActiveInfo=this.parseWord(e))}},render:function(){var t=this,e=arguments[0],n=(0,a.default)(this.historyVersion)?null:this.historyVersion.map((function(n){var r=t.parseWord(n),s=t.formatDate(parseInt(r.updatedTime),"yyyy-MM-dd");return e(o.default,{attrs:{prefixCls:i.prefixCls,text:r.text,version:r.version,dateTime:s,active:t.activeKey===n.id,activeKey:n.id},on:{click:function(e){return t.handleTap(e)}}})})),r=(0,a.default)(this.currentActiveInfo)?"":this.currentActiveInfo.parseJsonText.map((function(t){var n=t.image.map((function(t){return e("div",{class:i.prefixCls+"-version-info-picture-item"},[e("a-image",{attrs:{src:t}})])}));return e("div",{class:i.prefixCls+"-version-info-text-item"},[e("div",{class:i.prefixCls+"-version-info-word"},[t.words]),e("div",{class:i.prefixCls+"-version-info-picture"},[n])])}));return e("div",{class:i.prefixCls+"-version"},[e("div",{class:i.prefixCls+"-version-header"},[e("span",["版本更新记录"])]),(0,a.default)(this.historyVersion)?e("div",{class:i.prefixCls+"-version-empty"},[e("div",{class:i.prefixCls+"-version-empty-core"},[e(l.default),e("span",["暂无更新记录"])])]):e("div",{class:i.prefixCls+"-version-footer"},[e("div",{class:i.prefixCls+"-version-list"},[e(s.default,[e("div",{class:i.prefixCls+"-version-list-inner"},[n])])]),e("div",{class:i.prefixCls+"-version-info"},[e(s.default,[e("div",{class:i.prefixCls+"-version-info-inner"},[e("div",{class:i.prefixCls+"-version-info-code"},[this.currentActiveInfo.version]),e("div",{class:i.prefixCls+"-version-info-date"},[e("span",[this.formatDate(parseInt(this.currentActiveInfo.updatedTime),"yyyy-MM-dd")])]),e("div",{class:i.prefixCls+"-version-info-text"},[r])])])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(25),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"VersionItem",props:{prefixCls:o.default.string,activeKey:o.default.string,dateTime:o.default.string,version:o.default.string,text:o.default.string,active:o.default.bool.def(!1)},methods:{handleTap:function(){this.$emit("click",this.activeKey)}},render:function(){var t=this,e=arguments[0],n=this.$props,r=n.prefixCls,i=n.active,o=n.text,s=n.dateTime,a=n.version,c=o.length>13?o.substr(0,13)+"...":o,l=[r+"-version-item-text",o.length<13?r+"-version-item-text-wrapper":""],u=[r+"-version-item-text-span2",o.length<13?r+"-version-item-text-fixed":""];return e("div",{class:[r+"-version-item",i?r+"-version-item-active":""],on:{click:function(){return t.handleTap()}}},[e("div",{class:r+"-version-item-icon"},[e("a-icon",{attrs:{type:"file"}})]),e("div",{class:l},[e("span",{class:r+"-version-item-text-span0"},[a]),e("span",{class:r+"-version-item-text-span1"},[c]),e("span",{class:u},[s])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"300",height:"300",viewBox:"0 0 300 300"}},[t("defs",[t("linearGradient",{attrs:{id:"linear-gradient",x1:"0.5",y1:"1.244",x2:"0.5",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0.407","stop-color":"#fff"}}),t("stop",{attrs:{offset:"1","stop-color":"#dae4ef"}})]),t("linearGradient",{attrs:{id:"linear-gradient-2",y1:"0.5",x2:"1",y2:"0.5",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0.102","stop-color":"#f0f5f8"}}),t("stop",{attrs:{offset:"1","stop-color":"#b4c7dc"}})]),t("linearGradient",{attrs:{id:"linear-gradient-9",x1:"0.072",y1:"-0.14",x2:"0.472",y2:"0.838",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#fff","stop-opacity":"0"}}),t("stop",{attrs:{offset:"1","stop-color":"#a0b8ce"}})]),t("linearGradient",{attrs:{id:"linear-gradient-13",x1:"1.034",y1:"-0.013",x2:"0.039",y2:"0.958",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#dfe8f3"}}),t("stop",{attrs:{offset:"1","stop-color":"#9fb7ce"}})]),t("linearGradient",{attrs:{id:"linear-gradient-14",x1:"0.545",y1:"-0.075",x2:"-0.316",y2:"0.827"}}),t("linearGradient",{attrs:{id:"linear-gradient-15",x1:"0.766",y1:"0.016",x2:"0.15",y2:"0.966",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#e9eff6"}}),t("stop",{attrs:{offset:"1","stop-color":"#acc1d5"}})]),t("linearGradient",{attrs:{id:"linear-gradient-16",x1:"0.393",y1:"-0.208",x2:"0.477",y2:"1.156"}}),t("linearGradient",{attrs:{id:"linear-gradient-17",x1:"0",y1:"0.5",x2:"1",y2:"0.5"}}),t("linearGradient",{attrs:{id:"linear-gradient-18",x1:"0.648",y1:"-0.155",x2:"0.324",y2:"0.823",gradientUnits:"objectBoundingBox"}},[t("stop",{attrs:{offset:"0","stop-color":"#eff3f9"}}),t("stop",{attrs:{offset:"1","stop-color":"#b6c9de"}})]),t("linearGradient",{attrs:{id:"linear-gradient-19",x1:"0",y1:"0.5",x2:"1",y2:"0.5"}})]),t("g",{attrs:{id:"Empty_No_search_content","data-name":"Empty_No search content",transform:"translate(-1460 -751)"}},[t("g",{attrs:{id:"矩形_8881","data-name":"矩形 8881",opacity:"0"}},[t("rect",{attrs:{id:"矩形_8881-2","data-name":"矩形 8881",width:"300",height:"300",transform:"translate(1460 751)",fill:"#fff"}}),t("path",{attrs:{id:"矩形_8881_-_轮廓","data-name":"矩形 8881 - 轮廓",d:"M1,1V299H299V1H1M0,0H300V300H0Z",transform:"translate(1460 751)",fill:"#707070"}})]),t("g",{attrs:{id:"组_31820","data-name":"组 31820",transform:"translate(0 -5.452)"}},[t("g",{attrs:{id:"组_31811","data-name":"组 31811",transform:"translate(851 -15.591)"}},[t("path",{attrs:{id:"路径_8536","data-name":"路径 8536",d:"M568.76,792.855c0-8.387-62.682-30.385-140-30.385s-140,22-140,30.385Z",transform:"translate(330.24 234.338)",fill:"url(#linear-gradient)"}})]),t("g",{attrs:{id:"组_31819","data-name":"组 31819",transform:"translate(15.926)"}},[t("g",{attrs:{id:"组_6345","data-name":"组 6345",transform:"translate(1500.074 891.973)"}},[t("path",{attrs:{id:"路径_11140","data-name":"路径 11140",d:"M152.837,360.251c-.066-.254-1.459-6.418,9.844-21.492,10.948-14.6,7.653-31.683,7.62-31.847l.4-.081c.041.173,3.369,17.428-7.694,32.175-11.19,14.922-9.8,21.087-9.779,21.144l-.4.1Z",transform:"translate(-121.708 -283.462)",fill:"#c5d3e5"}}),t("path",{attrs:{id:"路径_11141","data-name":"路径 11141",d:"M122.576,437.38a1.606,1.606,0,0,0-1.606,1.606v2.183h22.117v-2.183a1.606,1.606,0,0,0-1.606-1.606Z",transform:"translate(-102.924 -360.642)",fill:"#c5d3e5"}}),t("path",{attrs:{id:"路径_11143","data-name":"路径 11143",d:"M119.466,338.376l-.409-.024a56.06,56.06,0,0,0-11.946-33.957c-10.708-13.893-3.884-34.32-3.815-34.526l.389.131c-.069.2-6.827,20.424,3.753,34.146a56.525,56.525,0,0,1,12.029,34.23Z",transform:"translate(-91.172 -261.615)",fill:"#c5d3e5"}}),t("path",{attrs:{id:"联合_6","data-name":"联合 6",d:"M-1495.637-5589.923h-16.912a11.9,11.9,0,0,1-2.135-13.816,11.93,11.93,0,0,1,.727-1.234h19.74a11.8,11.8,0,0,1,1.737,3.972h-.007l0,.007h.018a11.931,11.931,0,0,1-.2,6.144h-.018a11.867,11.867,0,0,1-2.939,4.926Z",transform:"translate(1533.375 5685.508)",fill:"#c5d3e5",opacity:"0.611"}}),t("path",{attrs:{id:"路径_11149","data-name":"路径 11149",d:"M119.267,261.633s-1.418,4.62.237,7.575a6.267,6.267,0,0,0,1.9,2.028,9.423,9.423,0,0,0,1.083.655,12.116,12.116,0,0,0,1.209.544,11.2,11.2,0,0,0,1.848.556,8.71,8.71,0,0,0-.237-6.982A8.808,8.808,0,0,0,119.267,261.633Zm-26.452-3.851a11.371,11.371,0,0,0-1.349-8.1s-4.685,2.527-5.67,6.133,1.812,7.646,1.812,7.646a9.108,9.108,0,0,0,5.212-5.667Zm32.612,23.548a8.694,8.694,0,0,0-3.822-5.846,8.831,8.831,0,0,0-7.426-.613s1.036,4.976,4.129,6.357a9.7,9.7,0,0,0,7.126.105Zm10.637-5.6s-4.824-.269-7.3,2.045-2.228,6.77-2.228,6.77a8.73,8.73,0,0,0,6.725-1.9,8.825,8.825,0,0,0,2.8-6.912Zm-59.238-1.741s.449,4.9,3.148,7.045,7.155,1.235,7.155,1.235a8.891,8.891,0,0,0-2.919-6.489,9,9,0,0,0-7.38-1.791Zm20.986-6.525a9.732,9.732,0,0,1-2.551,7.813,9.614,9.614,0,0,1-7.236,2.617,9.267,9.267,0,0,1,1.922-7.613,8.981,8.981,0,0,1,7.862-2.813Zm38,26.329s-5.192-1.991-8.716-.32-4.824,6.635-4.824,6.635a7.809,7.809,0,0,0,1.382.547,10.5,10.5,0,0,0,1.623.345,9.892,9.892,0,0,0,5.009-.625,10.136,10.136,0,0,0,5.5-6.582Z",transform:"translate(-76.819 -249.678)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11150","data-name":"路径 11150",d:"M175.895,401.635s-4.648-3.05-8.451-2.167-6.124,5.457-6.124,5.457a10.017,10.017,0,0,0,7.8,1.979,10.133,10.133,0,0,0,6.779-5.266Z",transform:"translate(-126.779 -338.134)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11152","data-name":"路径 11152",d:"M98.05,364s3.271,6.2,8.014,7.539,10.077-2.29,10.077-2.29a12.632,12.632,0,0,0-7.4-6.929,12.8,12.8,0,0,0-10.687,1.689Zm27.44-27.072s-.212,5.167,2.309,7.772,7.285,2.276,7.285,2.276a9.3,9.3,0,0,0-2.147-7.167,9.487,9.487,0,0,0-7.447-2.881Z",transform:"translate(-89.375 -301.245)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11153","data-name":"路径 11153",d:"M87.43,357.523s2.993,4.848,6.908,5.675,8.053-2.418,8.053-2.418a10.27,10.27,0,0,0-6.378-5.217,10.435,10.435,0,0,0-8.584,1.96Z",transform:"translate(-83.097 -312.084)",fill:"#dbead3"}}),t("path",{attrs:{id:"路径_11154","data-name":"路径 11154",d:"M87.43,357.523s2.993,4.848,6.908,5.675,8.053-2.418,8.053-2.418a10.27,10.27,0,0,0-6.378-5.217,10.435,10.435,0,0,0-8.584,1.96Z",transform:"translate(-83.097 -312.084)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11155","data-name":"路径 11155",d:"M134.314,366.4s-3.972,4.1-3.8,8.095,4.318,7.212,4.318,7.212a10.238,10.238,0,0,0,3.483-7.469,10.405,10.405,0,0,0-4.007-7.832Z",transform:"translate(-108.562 -318.68)",fill:"#cee4d0"}}),t("path",{attrs:{id:"路径_11156","data-name":"路径 11156",d:"M134.314,366.4s-3.972,4.1-3.8,8.095,4.318,7.212,4.318,7.212a10.238,10.238,0,0,0,3.483-7.469,10.405,10.405,0,0,0-4.007-7.832Z",transform:"translate(-108.562 -318.68)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11157","data-name":"路径 11157",d:"M127.651,325.62s-5.335,1.995-6.908,5.675.8,8.369.8,8.369a10.262,10.262,0,0,0,6.357-5.249,10.421,10.421,0,0,0-.254-8.789Z",transform:"translate(-102.47 -294.571)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11166","data-name":"路径 11166",d:"M154.229,361.4s-1.636,4.907.069,8.117,6.369,4.207,6.369,4.207a9.326,9.326,0,0,0-.081-7.482,9.475,9.475,0,0,0-6.354-4.836Z",transform:"translate(-122.167 -315.723)",fill:"url(#linear-gradient-2)"}}),t("path",{attrs:{id:"路径_11167","data-name":"路径 11167",d:"M179.451,316.829a8.727,8.727,0,0,0-3.8-5.732,8.83,8.83,0,0,0-7.426-.613l.048.2,11.19,6.14Z",transform:"translate(-130.853 -285.289)",opacity:"0.305",fill:"url(#linear-gradient-9)"}}),t("path",{attrs:{id:"路径_11168","data-name":"路径 11168",d:"M179.827,278.943c-.066.212-1.382,4.677.245,7.563a6.27,6.27,0,0,0,1.9,2.028,9.426,9.426,0,0,0,1.083.655,12.115,12.115,0,0,0,1.209.544,11.223,11.223,0,0,0,1.848.556s.033-.069.081-.188l-6.357-11.16Z",transform:"translate(-137.386 -266.975)",opacity:"0.305",fill:"url(#linear-gradient-9)"}}),t("path",{attrs:{id:"路径_11169","data-name":"路径 11169",d:"M127.319,325.96c-1.193.508-5.233,2.418-6.563,5.54-1.349,3.155.2,7.052.679,8.095,1.43-4.117,4.162-10.029,5.888-13.635Z",transform:"translate(-102.473 -294.773)",opacity:"0.305",fill:"url(#linear-gradient-9)"}}),t("path",{attrs:{id:"路径_11170","data-name":"路径 11170",d:"M76.83,309.14s.449,4.9,3.148,7.045,7.155,1.235,7.155,1.235Z",transform:"translate(-76.83 -284.828)",opacity:"0.305",fill:"url(#linear-gradient-9)"}})]),t("g",{attrs:{id:"暂无搜索内容",transform:"translate(386.536 361.18)"}},[t("g",{attrs:{id:"组_5830","data-name":"组 5830",transform:"translate(1162.836 462.16)"}},[t("rect",{attrs:{id:"形状结合备份-3",width:"106",height:"130",rx:"8",transform:"translate(0 12.107)",fill:"url(#linear-gradient-13)"}}),t("circle",{attrs:{id:"椭圆形",cx:"13.107",cy:"13.107",r:"13.107",transform:"translate(41.192 0)",fill:"url(#linear-gradient-14)"}}),t("path",{attrs:{id:"形状结合",d:"M110.4,0a12.927,12.927,0,0,1,12.946,12.909h33.175A6.465,6.465,0,0,1,163,19.364V135.545A6.465,6.465,0,0,1,156.526,142H63.474A6.465,6.465,0,0,1,57,135.545V19.368a6.465,6.465,0,0,1,6.474-6.455H97.458A12.927,12.927,0,0,1,110.4,0Z",transform:"translate(-52.027 0.451)",fill:"url(#linear-gradient-15)"}}),t("path",{attrs:{id:"路径-11",d:"M224.318,158.965q-14.457,2.382-51.818,1.932l47.22-16.767A77.641,77.641,0,0,0,224.318,158.965Z",transform:"translate(-119.725 -27.885)","fill-rule":"evenodd",fill:"url(#linear-gradient-16)"}}),t("path",{attrs:{id:"矩形",d:"M122,32h91.588q-1.253,58.815-1.253,70.791a99.836,99.836,0,0,0,4.273,29.917c-10.437,3.108-31.729,6.145-48.813,6.145A389.143,389.143,0,0,1,125.443,136Q122,134.309,122,101.525Z",transform:"translate(-109.798 -5.839)",fill:"#fff","fill-rule":"evenodd"}}),t("rect",{attrs:{id:"矩形-2","data-name":"矩形",width:"74.895",height:"3.745",rx:"1",transform:"translate(22.469 41.192)",fill:"#f2f5f8"}}),t("rect",{attrs:{id:"矩形备份-2",width:"74.895",height:"3.745",rx:"1",transform:"translate(22.469 52.427)",fill:"#f2f5f8"}}),t("rect",{attrs:{id:"矩形备份-5",width:"41.192",height:"5.617",rx:"1.5",transform:"translate(22.469 61.789)",fill:"#f2f5f8"}}),t("rect",{attrs:{id:"矩形备份-6",width:"16.851",height:"3.745",rx:"1",transform:"translate(22.469 112.343)",fill:"#f2f5f8"}}),t("circle",{attrs:{id:"椭圆形-2","data-name":"椭圆形",cx:"7.051",cy:"7.051",r:"7.051",transform:"translate(51.693 6.801)",fill:"url(#linear-gradient-17)"}}),t("circle",{attrs:{id:"椭圆形-3","data-name":"椭圆形",cx:"7.49",cy:"7.49",r:"7.49",transform:"translate(50.554 5.617)",fill:"#fff"}})]),t("g",{attrs:{id:"butterfly_f",transform:"translate(1279.819 462.16) rotate(-97)"}},[t("path",{attrs:{id:"形状",d:"M7.843,21.48a5.778,5.778,0,0,1,.416-.854,10.768,10.768,0,0,0,1.477-6.344,26.809,26.809,0,0,0-.161-3.529c-.116-.53-.069-.693.187-.693.346,0,.461.324.946,2.839a10.749,10.749,0,0,1,.092,3.23,7.33,7.33,0,0,1-.876,3.206C9.362,20.51,7.843,22.079,7.843,21.48ZM3.163,18.735c-1.477-.809-1.917-1.777-1.852-4.153A10.4,10.4,0,0,1,2.395,10.06q.139-.346-.562-.762A2.979,2.979,0,0,1,0,6.53C0,4.2,2.1,3.37,4.707,4.658a10.94,10.94,0,0,1,1.522.876c.785.668.831.6.738-1.477C6.851,1.524,7.175.625,8.426.162c.738-.253.923-.23,1.822.208a2.488,2.488,0,0,1,1.569,2.423c.069.668.116.693,1.569.854a10.673,10.673,0,0,1,4.028.946,3,3,0,0,1,1.966,3.114,2.078,2.078,0,0,1-.693,1.846c-1.753,1.846-4.245,1.846-8,0-.876-.416-1.638-.785-1.73-.831a12.058,12.058,0,0,0-.139,2.769A8.564,8.564,0,0,1,7.69,17a3.67,3.67,0,0,1-4.522,1.73ZM14.9,14.765a6.235,6.235,0,0,1-3.022-2.076c-.624-.831-.668-1.292-.069-.738A10.324,10.324,0,0,0,14,13.312a4.278,4.278,0,0,0,3.786-.047c1.062-.53,1.339-.438.923.324A3.574,3.574,0,0,1,14.9,14.765Z",transform:"translate(0 0)",fill:"url(#linear-gradient-18)"}})]),t("g",{attrs:{id:"组_5873","data-name":"组 5873",transform:"translate(1145.012 457.651)"}},[t("path",{attrs:{id:"路径-4",d:"M18.093,85.746A.5.5,0,0,1,18,85.737,3.1,3.1,0,0,1,15.975,84.6a.5.5,0,0,1,.81-.587,2.159,2.159,0,0,0,1.4.739.5.5,0,0,1-.094.991Zm3.979-.152a.5.5,0,0,1-.085-.993c.593-.1,1.24-.238,1.923-.4a.5.5,0,0,1,.234.972c-.7.169-1.372.309-1.986.416A.5.5,0,0,1,22.072,85.594Zm5.8-1.5a.5.5,0,0,1-.153-.976c.6-.193,1.238-.406,1.888-.632a.5.5,0,0,1,.328.945c-.657.228-1.3.443-1.91.639A.5.5,0,0,1,27.869,84.091Zm5.656-2.018a.5.5,0,0,1-.18-.967c.6-.231,1.222-.477,1.852-.73a.5.5,0,1,1,.373.928c-.634.255-1.261.5-1.864.735A.5.5,0,0,1,33.525,82.073ZM16.649,80.987a.5.5,0,0,1-.458-.7,18.122,18.122,0,0,1,.941-1.822.5.5,0,0,1,.864.5,17.121,17.121,0,0,0-.889,1.72A.5.5,0,0,1,16.649,80.987Zm22.426-1.175a.5.5,0,0,1-.2-.96c.6-.254,1.213-.52,1.833-.79a.5.5,0,0,1,.4.917c-.622.271-1.242.538-1.841.793A.5.5,0,0,1,39.075,79.812ZM44.568,77.4a.5.5,0,0,1-.206-.956c.593-.269,1.2-.548,1.817-.829a.5.5,0,1,1,.418.909c-.614.282-1.227.562-1.822.831A.5.5,0,0,1,44.568,77.4ZM19.79,75.9a.5.5,0,0,1-.4-.8c.38-.512.793-1.051,1.23-1.6a.5.5,0,0,1,.784.621c-.43.543-.837,1.073-1.21,1.577A.5.5,0,0,1,19.79,75.9Zm30.221-1.021a.5.5,0,0,1-.214-.952c.591-.279,1.2-.568,1.805-.858a.5.5,0,1,1,.431.9c-.608.291-1.217.58-1.809.86A.5.5,0,0,1,50.012,74.875Zm5.415-2.6a.5.5,0,0,1-.22-.949c.587-.287,1.19-.582,1.79-.878a.5.5,0,1,1,.442.9c-.6.3-1.205.592-1.794.88A.5.5,0,0,1,55.427,72.272Zm-31.86-1.043a.5.5,0,0,1-.378-.827c.421-.487.866-.993,1.322-1.5a.5.5,0,0,1,.746.666c-.453.507-.894,1.01-1.312,1.493A.5.5,0,0,1,23.567,71.229ZM60.8,69.615a.5.5,0,0,1-.224-.947q.886-.444,1.789-.9a.5.5,0,1,1,.45.893q-.9.456-1.791.9A.5.5,0,0,1,60.8,69.615Zm5.354-2.71a.5.5,0,0,1-.228-.945l1.778-.912a.5.5,0,1,1,.457.889l-1.78.913A.5.5,0,0,1,66.151,66.9Zm-38.562-.129a.5.5,0,0,1-.365-.842c.445-.474.908-.965,1.379-1.457a.5.5,0,1,1,.723.691c-.468.49-.93.978-1.372,1.45A.5.5,0,0,1,27.589,66.775Zm43.9-2.623a.5.5,0,0,1-.231-.944l1.77-.923a.5.5,0,1,1,.463.886l-1.772.924A.5.5,0,0,1,71.485,64.153Zm-39.736-1.7a.5.5,0,0,1-.356-.851c.458-.465.933-.943,1.412-1.421a.5.5,0,0,1,.707.707c-.477.477-.95.954-1.407,1.417A.5.5,0,0,1,31.749,62.455ZM76.8,61.367a.5.5,0,0,1-.234-.942l1.764-.933a.5.5,0,1,1,.468.883l-1.766.934A.5.5,0,0,1,76.8,61.367Zm5.3-2.814a.5.5,0,0,1-.236-.941l1.762-.944a.5.5,0,1,1,.473.881l-1.763.944A.5.5,0,0,1,82.1,58.553ZM36,58.222a.5.5,0,0,1-.35-.858c.469-.458.952-.929,1.438-1.4a.5.5,0,1,1,.7.719c-.484.468-.966.938-1.434,1.395A.5.5,0,0,1,36,58.222Zm51.375-2.51a.5.5,0,0,1-.238-.94l1.762-.954a.5.5,0,1,1,.477.879l-1.763.955A.5.5,0,0,1,87.38,55.712Zm5.273-2.864a.5.5,0,0,1-.24-.939l1.759-.961a.5.5,0,0,1,.48.877l-1.76.962A.5.5,0,0,1,92.653,52.848Zm5.267-2.888a.5.5,0,0,1-.242-.938l1.744-.962a.5.5,0,0,1,.483.875l-1.745.962A.5.5,0,0,1,97.921,49.96Zm5.245-2.9a.5.5,0,0,1-.243-.937l1.749-.972a.5.5,0,1,1,.486.874l-1.75.972A.5.5,0,0,1,103.166,47.061Zm5.242-2.919a.5.5,0,0,1-.244-.937l1.746-.977a.5.5,0,0,1,.489.872l-1.747.977A.5.5,0,0,1,108.408,44.141Zm5.236-2.935a.5.5,0,0,1-.246-.936l1.74-.979a.5.5,0,0,1,.491.871l-1.74.98A.5.5,0,0,1,113.644,41.206Zm5.223-2.947a.5.5,0,0,1-.247-.935l1.743-.987a.5.5,0,1,1,.493.87l-1.743.987A.5.5,0,0,1,118.867,38.259Zm5.221-2.962a.5.5,0,0,1-.248-.935l1.736-.988a.5.5,0,1,1,.5.869l-1.737.989A.5.5,0,0,1,124.088,35.3Zm5.211-2.972a.5.5,0,0,1-.249-.934l1.735-.993a.5.5,0,1,1,.5.868l-1.735.993A.5.5,0,0,1,129.3,32.326Zm5.2-2.982a.5.5,0,0,1-.249-.934l1.738-1a.5.5,0,0,1,.5.867l-1.739,1A.5.5,0,0,1,134.5,29.343Zm5.207-3a.5.5,0,0,1-.25-.933l1.724-1a.5.5,0,1,1,.5.866l-1.725,1A.5.5,0,0,1,139.71,26.346Zm5.188-3a.5.5,0,0,1-.251-.933l1.732-1a.5.5,0,1,1,.5.865l-1.732,1A.5.5,0,0,1,144.9,23.347Zm5.189-3.011a.5.5,0,0,1-.252-.932l1.436-.835a.5.5,0,1,1,.5.864l-1.436.836A.5.5,0,0,1,150.087,20.336Z",transform:"translate(-16 -19)",fill:"#c5d3e5"}})])])]),t("g",{attrs:{id:"火箭",transform:"translate(1627.042 949.596) rotate(-81)"}},[t("path",{attrs:{id:"形状-2","data-name":"形状",d:"M50.316,2.163A1.828,1.828,0,0,0,48.951.8,30.643,30.643,0,0,0,17.3,12.512a1.828,1.828,0,0,1-1.054.7,24,24,0,0,0-11.2,6.369A24.524,24.524,0,0,0,1.28,24.39a1.828,1.828,0,0,0,2.267,2.657,23.769,23.769,0,0,1,8.228-1.42c-.043.244-.1.488-.134.731q3.047,3.517,6.3,6.8t6.789,6.32c.244-.037.488-.091.731-.134a23.769,23.769,0,0,1-1.42,8.209,1.828,1.828,0,0,0,2.657,2.267,24.53,24.53,0,0,0,4.839-3.76A24,24,0,0,0,37.9,34.872a1.828,1.828,0,0,1,.7-1.054A30.643,30.643,0,0,0,50.316,2.163ZM37.81,22.086a6.21,6.21,0,1,1,0-8.782,6.21,6.21,0,0,1,0,8.782Z",transform:"translate(2.116 0.002)",fill:"url(#linear-gradient-19)"}}),t("path",{attrs:{id:"路径",d:"M8.606,12.3C6.577,14.326-2.01,26.881.434,29.325s15-6.155,17.028-8.167a5.8,5.8,0,0,0-.762-8.093A5.8,5.8,0,0,0,8.606,12.3Z",transform:"translate(0 23.467)",fill:"url(#linear-gradient-17)"}})])])])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(25),o=(r=i)&&r.__esModule?r:{default:r};e.default={name:"BlockView",props:{routeParents:o.default.string},render:function(){var t=arguments[0];return t("div",["BlockView"])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treeRouter=void 0;var r=n(3);e.treeRouter=function(t){var e=t.$store.state.user.menu_list,n=t.$route.meta.id;return(0,r.treeMenuFindPath)(e,(function(t){return n==t.id}))}}])}));