59 lines
5.4 MiB
JavaScript
59 lines
5.4 MiB
JavaScript
|
var process={env:{NODE_ENV:"production"}};!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("worker_threads"),require("module"),require("path")):"function"==typeof define&&define.amd?define(["worker_threads","module","path"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WorkerThreads,t.Module,t.path)}(this,(function(t,e,i){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(i){if("default"!==i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}})),e.default=t,Object.freeze(e)}var s=r(t),a=n(e),l=n(i);class c{state;constructor(t){this.state=t}get value(){return this.state}set value(t){this.state=t}}function u(t){return new c(t)}function h(t,e){let i=-1;const n=t.length;for(;++i<n;)e(t[i],i,t);return t}function p(t){return Array.isArray(t)&&t.every((t=>t&&("object"==typeof t.position||Array.isArray(t.position)||""!=t.lng&&""!=t.lat)))}function d(t,e){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];let r;if(e=e||i.length,t)for(r=0;r<t;r++)n[r]=i[0|Math.random()*e];else{let t;for(n[8]=n[13]=n[18]=n[23]="-",n[14]="4",r=0;r<36;r++)n[r]||(t=0|16*Math.random(),n[r]=i[19==r?3&t|8:t])}return n.join("")}function f(t,e){if(null!==t){h(Object.keys(t),(i=>{e(t[i],i,t)}))}return t}function m(...t){class e{}function i(t,e){for(const i of Reflect.ownKeys(e))if("constructor"!==i&&"prototype"!==i&&"name"!==i){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n)}}for(const n of t)i(e,n),i(e.prototype,n.prototype),i(e.prototype,n.prototype.__proto__);return e}function g(t,e){if(Array.isArray(e)){let i=!1;return e.forEach((e=>{const n=g(t,e);n&&(i=n)})),i}return v(t)===y(e)}const y=t=>t.toLowerCase(),v=t=>y(Object.prototype.toString.call(t).replace(/\[/g,"").replace(/\]/g,"").replace(/\s/g,"").replace(/object/g,"")),_=Array.isArray,x=t=>g(t,"object"),b=t=>g(t,"function"),w=t=>g(t,"string");function A(t,e){let i;if(w(t))return(n=t)?document.createTextNode(n):null;if(t instanceof Element)return t;if(b(t)){if(t.tag.toString().startsWith("class ")){return A((new t.tag).render())}return A(t.tag())}if(!x(t))return t;var n;i=document.createElement(t.tag);const{attrs:r,children:o}=t;return function(t,e={}){f(e,((e,i)=>{"style"===i?function(t,e){w(e)?t.style=e:x(e)&&f(e,((e,i)=>{t.style[i]=e}))}(t,e):["class","className"].includes(i)?function(t,e){const i=[];if("string"==typeof e)e=e.split(" ");else if(x(e)){const t=[];f(e,((e,n)=>{e?t.push(n):i.push(n)})),e=[...t]}if(!_(e))return t;{const n=t.classList;e.forEach((t=>{n.contains(t)?i.includes(t)&&n.remove(t):n.add(t)}))}}(t,e):i.includes("on")?function(t,e,i,n={}){"passive"in n&&E?t.addEventListener(e,i,n):t.addEventListener(e,i,n.capture)}(t,i.slice(2).toLowerCase(),e):!function(t,e){_(e)||(e=[e]);const i=[];return e.forEach((e=>{i.push(t.getAttribute(e))})),1===i.length?i[0]:i}(t,i)?t[i]=e:t.setAttribute(i,e)}))}(i,r),o&&o.forEach((t=>{const e=t.element?t.element:t,n=t=>{_(t)?t.forEach((t=>n(t))):i.appendChild(A(t))};n(e)})),t.element=i,e&&function(t,e){_(e)?e.forEach((e=>{e&&(x(e)&&e.tag?t.appendChild(A(e)):t.appendChild(e))})):t.appendChild(e)}(e,i),t.element}const E=!1;class S{option;constructor(t){this.option=Object.assign({minimumLevel:1,maximumLevel:20,show:!0,layer:d(0,25),tileSize:256},t);const e={type:"raster",tiles:[this.option.url],tileSize:this.option.tileSize};cNt.value.addSource(this.option.layer+"source",e);const i={id:this.option.layer,type:"raster",source:this.option.layer+"source",minzoom:this.option.minimumLevel,maxzoom:this.option.maximumLevel,layout:{visibility:this.option.show?"visible":"none"},paint:{"raster-opacity":1}};cNt.value.addLayer(i)}destroy(){cNt.value.removeLayer(this.option.layer),cNt.value.removeSource(this.option.layer+"source")}setLayerShowOrHidden(t){if(!cNt.value.getLayer(this.option.layer))throw new Error(`Layer name "${this.option.layer}" does n
|
||
|
/**
|
||
|
* splaytree v3.1.2
|
||
|
* Fast Splay tree for Node and browser
|
||
|
*
|
||
|
* @author Alexander Milevski <info@w8r.name>
|
||
|
* @license MIT
|
||
|
* @preserve
|
||
|
*/
|
||
|
/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */function Hr(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}var Wr=function(t,e){this.next=null,this.key=t,this.data=e,this.left=null,this.right=null};function qr(t,e){return t>e?1:t<e?-1:0}function Xr(t,e,i){for(var n=new Wr(null,null),r=n,o=n;;){var s=i(t,e.key);if(s<0){if(null===e.left)break;if(i(t,e.left.key)<0){var a=e.left;if(e.left=a.right,a.right=e,null===(e=a).left)break}o.left=e,o=e,e=e.left}else{if(!(s>0))break;if(null===e.right)break;if(i(t,e.right.key)>0){a=e.right;if(e.right=a.left,a.left=e,null===(e=a).right)break}r.right=e,r=e,e=e.right}}return r.right=e.left,o.left=e.right,e.left=n.right,e.right=n.left,e}function Zr(t,e,i,n){var r=new Wr(t,e);if(null===i)return r.left=r.right=null,r;var o=n(t,(i=Xr(t,i,n)).key);return o<0?(r.left=i.left,r.right=i,i.left=null):o>=0&&(r.right=i.right,r.left=i,i.right=null),r}function Yr(t,e,i){var n=null,r=null;if(e){var o=i((e=Xr(t,e,i)).key,t);0===o?(n=e.left,r=e.right):o<0?(r=e.right,e.right=null,n=e):(n=e.left,e.left=null,r=e)}return{left:n,right:r}}function Qr(t,e,i,n,r){if(t){n(e+(i?"└── ":"├── ")+r(t)+"\n");var o=e+(i?" ":"│ ");t.left&&Qr(t.left,o,!1,n,r),t.right&&Qr(t.right,o,!0,n,r)}}var Jr=function(){function t(t){void 0===t&&(t=qr),this._root=null,this._size=0,this._comparator=t}return t.prototype.insert=function(t,e){return this._size++,this._root=Zr(t,e,this._root,this._comparator)},t.prototype.add=function(t,e){var i=new Wr(t,e);null===this._root&&(i.left=i.right=null,this._size++,this._root=i);var n=this._comparator,r=Xr(t,this._root,n),o=n(t,r.key);return 0===o?this._root=r:(o<0?(i.left=r.left,i.right=r,r.left=null):o>0&&(i.right=r.right,i.left=r,r.right=null),this._size++,this._root=i),this._root},t.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},t.prototype._remove=function(t,e,i){var n;return null===e?null:0===i(t,(e=Xr(t,e,i)).key)?(null===e.left?n=e.right:(n=Xr(t,e.left,i)).right=e.right,this._size--,n):e},t.prototype.pop=function(){var t=this._root;if(t){for(;t.left;)t=t.left;return this._root=Xr(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},t.prototype.findStatic=function(t){for(var e=this._root,i=this._comparator;e;){var n=i(t,e.key);if(0===n)return e;e=n<0?e.left:e.right}return null},t.prototype.find=function(t){return this._root&&(this._root=Xr(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},t.prototype.contains=function(t){for(var e=this._root,i=this._comparator;e;){var n=i(t,e.key);if(0===n)return!0;e=n<0?e.left:e.right}return!1},t.prototype.forEach=function(t,e){for(var i=this._root,n=[],r=!1;!r;)null!==i?(n.push(i),i=i.left):0!==n.length?(i=n.pop(),t.call(e,i),i=i.right):r=!0;return this},t.prototype.range=function(t,e,i,n){for(var r=[],o=this._comparator,s=this._root;0!==r.length||s;)if(s)r.push(s),s=s.left;else{if(o((s=r.pop()).key,e)>0)break;if(o(s.key,t)>=0&&i.call(n,s))return this;s=s.right}return
|
||
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Jh(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Jh.Varint=0,Jh.Fixed64=1,Jh.Bytes=2,Jh.Fixed32=5;var Kh=4294967296,$h=1/Kh,tp="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function ep(t){return t.type===Jh.Bytes?t.readVarint()+t.pos:t.pos+1}function ip(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function np(t,e,i){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));i.realloc(n);for(var r=i.pos-1;r>=t;r--)i.buf[r+n]=i.buf[r]}function rp(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function op(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function sp(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function ap(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function lp(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function cp(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function up(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function hp(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function pp(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function dp(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function fp(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function mp(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}Jh.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var n=this.readVarint(),r=n>>3,o=this.pos;this.type=7&n,t(r,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=dp(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=mp(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=dp(this.buf,this.pos)+dp(this.buf,this.pos+4)*Kh;return this.pos+=8,t},readSFixed64:function(){var t=dp(this.buf,this.pos)+mp(this.buf,this.pos+4)*Kh;return this.pos+=8,t},readFloat:function(){var t=Yh(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Yh(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,n=this.buf;return e=127&(i=n[this.pos++]),i<128?e:(e|=(127&(i=n[this.pos++]))<<7,i<128?e:(e|=(127&(i=n[this.pos++]))<<14,i<128?e:(e|=(127&(i=n[this.pos++]))<<21,i<128?e:function(t,e,i){var n,r,o=i.buf;if(n=(112&(r=o[i.pos++]))>>4,r<128)return ip(t,n,e);if(n|=(127&(r=o[i.pos++]))<<3,r<128)return ip(t,n,e);if(n|=(127&(r=o[i.pos++]))<<10,r<128)return ip(t,n,e);if(n|=(127&(r=o[i.pos++]))<<17,r<128)return ip(t,n,e);if(n|=(127&(r=o[i.pos++]))<<24,r<128)return ip(t,n,e);if(n|=(1&(r=o[i.pos++]))<<31,r<128)return ip(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&tp?function(t,e,i){return tp.decode(t.subarray(e,i))}(this.buf,e,t):function(t,e,i){for(var n="",r=e;r<i;){var o,s,a,l=t[r],c=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u>i)break;1===u?l<128&&(c=l):2===u?128==(192&(o=t[r+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(s=t[r+2],128==(192&(o=t[r+1]))&&128==(192&s)&&((c=(15&l)<<12|(63&o)<<6|63&s)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(s=t[r+2],a=t[r+3],128==(192&(o=t[r+1]))&&128==(192&s)&&128==(192&a)&&((c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),r+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Jh.Bytes)return t.push(this.readVarint(e));var i=ep(this);for(t=t||[];th
|
||
|
/*!
|
||
|
* ZRender, a high performance 2d drawing library.
|
||
|
*
|
||
|
* Copyright (c) 2013, Baidu Inc.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* LICENSE
|
||
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
|
*/var AC=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new zM,o=i.renderer||"canvas";if(bC[o]||(o=bE(bC)[0]),"production"!==process.env.NODE_ENV&&!bC[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var s=new bC[o](e,r,i,t),a=i.ssr||s.ssrOnly;this.storage=r,this.painter=s;var l,c=UA.node||UA.worker||a?null:new BI(s.getViewportRoot(),s.root),u=i.useCoarsePointer;(null==u||"auto"===u?UA.touchEventsSupported:!!u)&&(l=BE(i.pointerSize,44)),this.handler=new AM(r,s,c,s.root,l),this.animation=new xI({stage:{update:a?null:function(){return n._flush(!0)}}}),a||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return zT(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=zT(e[r].color,1);return(i/=n)<.4}return!1}(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,i=mI();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=mI();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof xC&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete wC[t]},t}();function EC(t,e){var i=new AC(aE(),t,e);return wC[i.id]=i,i}var SC=1e-4,MC=20;function TC(t,e,i,n){var r=e[0],o=e[1],s=i[0],a=i[1],l=o-r,c=a-s;if(0===l)return 0===c?s:(s+a)/2;if(n)if(l>0){if(t<=r)return s;if(t>=o)return a}else{if(t>=r)return s;if(t<=o)return a}else{if(t===r)return s;if(t===o)return a}return(t-r)/l*c+s}function IC(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";brea
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2009 The Closure Library Authors
|
||
|
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/var sCt=null;try{sCt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(zO){}function aCt(t,e,i){this.low=0|t,this.high=0|e,this.unsigned=!!i}function lCt(t){return!0===(t&&t.__isLong__)}function cCt(t){var e=Math.clz32(t&-t);return t?31-e:e}aCt.prototype.__isLong__,Object.defineProperty(aCt.prototype,"__isLong__",{value:!0}),aCt.isLong=lCt;var uCt={},hCt={};function pCt(t,e){var i,n,r;return e?(r=0<=(t>>>=0)&&t<256)&&(n=hCt[t])?n:(i=fCt(t,0,!0),r&&(hCt[t]=i),i):(r=-128<=(t|=0)&&t<128)&&(n=uCt[t])?n:(i=fCt(t,t<0?-1:0,!1),r&&(uCt[t]=i),i)}function dCt(t,e){if(isNaN(t))return e?ACt:wCt;if(e){if(t<0)return ACt;if(t>=_Ct)return ICt}else{if(t<=-xCt)return CCt;if(t+1>=xCt)return TCt}return t<0?dCt(-t,e).neg():fCt(t%vCt|0,t/vCt|0,e)}function fCt(t,e,i){return new aCt(t,e,i)}aCt.fromInt=pCt,aCt.fromNumber=dCt,aCt.fromBits=fCt;var mCt=Math.pow;function gCt(t,e,i){if(0===t.length)throw Error("empty string");if("number"==typeof e?(i=e,e=!1):e=!!e,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return e?ACt:wCt;if((i=i||10)<2||36<i)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return gCt(t.substring(1),e,i).neg();for(var r=dCt(mCt(i,8)),o=wCt,s=0;s<t.length;s+=8){var a=Math.min(8,t.length-s),l=parseInt(t.substring(s,s+a),i);if(a<8){var c=dCt(mCt(i,a));o=o.mul(c).add(dCt(l))}else o=(o=o.mul(r)).add(dCt(l))}return o.unsigned=e,o}function yCt(t,e){return"number"==typeof t?dCt(t,e):"string"==typeof t?gCt(t,e):fCt(t.low,t.high,"boolean"==typeof e?e:t.unsigned)}aCt.fromString=gCt,aCt.fromValue=yCt;var vCt=4294967296,_Ct=vCt*vCt,xCt=_Ct/2,bCt=pCt(1<<24),wCt=pCt(0);aCt.ZERO=wCt;var ACt=pCt(0,!0);aCt.UZERO=ACt;var ECt=pCt(1);aCt.ONE=ECt;var SCt=pCt(1,!0);aCt.UONE=SCt;var MCt=pCt(-1);aCt.NEG_ONE=MCt;var TCt=fCt(-1,2147483647,!1);aCt.MAX_VALUE=TCt;var ICt=fCt(-1,-1,!0);aCt.MAX_UNSIGNED_VALUE=ICt;var CCt=fCt(0,-2147483648,!1);aCt.MIN_VALUE=CCt;var PCt=aCt.prototype;PCt.toInt=function(){return this.unsigned?this.low>>>0:this.low},PCt.toNumber=function(){return this.unsigned?(this.high>>>0)*vCt+(this.low>>>0):this.high*vCt+(this.low>>>0)},PCt.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(CCt)){var e=dCt(t),i=this.div(e),n=i.mul(e).sub(this);return i.toString(t)+n.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var r=dCt(mCt(t,6),this.unsigned),o=this,s="";;){var a=o.div(r),l=(o.sub(a.mul(r)).toInt()>>>0).toString(t);if((o=a).isZero())return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}},PCt.getHighBits=function(){return this.high},PCt.getHighBitsUnsigned=function(){return this.high>>>0},PCt.getLowBits=function(){return this.low},PCt.getLowBitsUnsigned=function(){return this.low>>>0},PCt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(CCt)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<<e);e--);return 0!=this.high?e+33:e+1},PCt.isZero=function(){return 0===this.high&&0===this.low},PCt.eqz=PCt.isZero,PCt.isNegative=function(){return!this.unsigned&&this.high<0},PCt.isPositive=function(){return this.unsigned||this.high>=0},PCt.isOdd=function(){return 1==(1&this.low)}
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright 2010-2023 Three.js Authors
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
const gPt=1001,yPt=3001,vPt="srgb",_Pt="srgb-linear",xPt="display-p3-linear",bPt="linear",wPt="srgb",APt="rec709",EPt=7680,SPt=2e3,MPt=2001;class TPt{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(e)&&i[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const i=this._listeners;return void 0!==i[t]&&-1!==i[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const i=this._listeners[t];if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const i=e.slice(0);for(let e=0,n=i.length;e<n;e++)i[e].call(this,t);t.target=null}}}const IPt=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];function CPt(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,i=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return(IPt[255&t]+IPt[t>>8&255]+IPt[t>>16&255]+IPt[t>>24&255]+"-"+IPt[255&e]+IPt[e>>8&255]+"-"+IPt[e>>16&15|64]+IPt[e>>24&255]+"-"+IPt[63&i|128]+IPt[i>>8&255]+"-"+IPt[i>>16&255]+IPt[i>>24&255]+IPt[255&n]+IPt[n>>8&255]+IPt[n>>16&255]+IPt[n>>24&255]).toLowerCase()}function PPt(t,e,i){return Math.max(e,Math.min(i,t))}function LPt(t,e,i){return(1-i)*t+i*e}function DPt(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function RPt(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(4294967295*t);case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int32Array:return Math.round(2147483647*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}class OPt{constructor(t=0,e=0){OPt.prototype.isVector2=!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){return 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.
|