@spaceandtimelabs/dapp-mi-space-time 0.1.7-261 → 0.1.7-263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{ErdWrapper-4e635354.js → ErdWrapper-793629db.js} +1 -1
- package/build/assets/{Queries-1929cd24.js → Queries-49b839b5.js} +1 -1
- package/build/assets/QueryEditorWrapper-e0796d12.js +1 -0
- package/build/assets/{index-eebb6a59.js → index-5bfe88a9.js} +1 -1
- package/build/assets/{index-8974f5ad.js → index-5c707073.js} +1 -1
- package/build/assets/{index-50f4dc74.js → index-a58871fd.js} +3 -3
- package/build/assets/{index-e1220545.js → index-ed989424.js} +1 -1
- package/build/assets/{vendor-charts-5282d21c.js → vendor-charts-a0e04cd5.js} +1134 -1134
- package/build/assets/{vendor-editor-f2ae123c.js → vendor-editor-7b15e8f0.js} +1 -1
- package/build/assets/{vendor-three-52521d73.js → vendor-three-925330d2.js} +1 -1
- package/build/index.html +4 -4
- package/package.json +1 -1
- package/build/assets/QueryEditorWrapper-76293bca.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,p as Pe,r as He,l as rt}from"./vendor-charts-
|
|
1
|
+
import{c as ue,p as Pe,r as He,l as rt}from"./vendor-charts-a0e04cd5.js";var Se={},ze={},ot={exports:{}};(function(B,D){(function(){var $="ace",M=function(){return this}();!M&&typeof window<"u"&&(M=window);var R=function(e,n,r){if(typeof e!="string"){R.original?R.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=n),R.modules[e]||(R.payloads[e]=r,R.modules[e]=null)};R.modules={},R.payloads={};var m=function(e,n,r){if(typeof n=="string"){var i=a(e,n);if(i!=null)return r&&r(),i}else if(Object.prototype.toString.call(n)==="[object Array]"){for(var t=[],o=0,s=n.length;o<s;++o){var u=a(e,n[o]);if(u==null&&v.original)return;t.push(u)}return r&&r.apply(null,t)||!0}},v=function(e,n){var r=m("",e,n);return r==null&&v.original?v.original.apply(this,arguments):r},y=function(e,n){if(n.indexOf("!")!==-1){var r=n.split("!");return y(e,r[0])+"!"+y(e,r[1])}if(n.charAt(0)=="."){var i=e.split("/").slice(0,-1).join("/");for(n=i+"/"+n;n.indexOf(".")!==-1&&t!=n;){var t=n;n=n.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return n},a=function(e,n){n=y(e,n);var r=R.modules[n];if(!r){if(r=R.payloads[n],typeof r=="function"){var i={},t={id:n,uri:"",exports:i,packaged:!0},o=function(u,d){return m(n,u,d)},s=r(o,i,t);i=s||t.exports,R.modules[n]=i,delete R.payloads[n]}r=R.modules[n]=i||r}return r};function l(e){var n=M;e&&(M[e]||(M[e]={}),n=M[e]),(!n.define||!n.define.packaged)&&(R.original=n.define,n.define=R,n.define.packaged=!0),(!n.require||!n.require.packaged)&&(v.original=n.require,n.require=v,n.require.packaged=!0)}l($)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function($,M,R){function m(v,y,a){Object.defineProperty(v,y,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||m(String.prototype,"startsWith",function(v,y){return y=y||0,this.lastIndexOf(v,y)===y}),String.prototype.endsWith||m(String.prototype,"endsWith",function(v,y){var a=this;(y===void 0||y>a.length)&&(y=a.length),y-=v.length;var l=a.indexOf(v,y);return l!==-1&&l===y}),String.prototype.repeat||m(String.prototype,"repeat",function(v){for(var y="",a=this;v>0;)v&1&&(y+=a),(v>>=1)&&(a+=a);return y}),String.prototype.includes||m(String.prototype,"includes",function(v,y){return this.indexOf(v,y)!=-1}),Object.assign||(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(v),a=1;a<arguments.length;a++){var l=arguments[a];l!=null&&Object.keys(l).forEach(function(e){y[e]=l[e]})}return y}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(y){return v[y]})}),Array.prototype.find||m(Array.prototype,"find",function(v){for(var y=this.length,a=arguments[1],l=0;l<y;l++){var e=this[l];if(v.call(a,e,l,this))return e}}),Array.prototype.findIndex||m(Array.prototype,"findIndex",function(v){for(var y=this.length,a=arguments[1],l=0;l<y;l++){var e=this[l];if(v.call(a,e,l,this))return l}}),Array.prototype.includes||m(Array.prototype,"includes",function(v,y){return this.indexOf(v,y)!=-1}),Array.prototype.fill||m(Array.prototype,"fill",function(v){for(var y=this,a=y.length>>>0,l=arguments[1],e=l>>0,n=e<0?Math.max(a+e,0):Math.min(e,a),r=arguments[2],i=r===void 0?a:r>>0,t=i<0?Math.max(a+i,0):Math.min(i,a);n<t;)y[n]=v,n++;return y}),Array.of||m(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function($,M,R){$("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function($,M,R){M.deepCopy=function m(v){if(typeof v!="object"||!v)return v;var y;if(Array.isArray(v)){y=[];for(var a=0;a<v.length;a++)y[a]=m(v[a]);return y}if(Object.prototype.toString.call(v)!=="[object Object]")return v;y={};for(var a in v)y[a]=m(v[a]);return y}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function($,M,R){M.last=function(y){return y[y.length-1]},M.stringReverse=function(y){return y.split("").reverse().join("")},M.stringRepeat=function(y,a){for(var l="";a>0;)a&1&&(l+=y),(a>>=1)&&(y+=y);return l};var m=/^\s\s*/,v=/\s\s*$/;M.stringTrimLeft=function(y){return y.replace(m,"")},M.stringTrimRight=function(y){return y.replace(v,"")},M.copyObject=function(y){var a={};for(var l in y)a[l]=y[l];return a},M.copyArray=function(y){for(var a=[],l=0,e=y.length;l<e;l++)y[l]&&typeof y[l]=="object"?a[l]=this.copyObject(y[l]):a[l]=y[l];return a},M.deepCopy=$("./deep_copy").deepCopy,M.arrayToMap=function(y){for(var a={},l=0;l<y.length;l++)a[y[l]]=1;return a},M.createMap=function(y){var a=Object.create(null);for(var l in y)a[l]=y[l];return a},M.arrayRemove=function(y,a){for(var l=0;l<=y.length;l++)a===y[l]&&y.splice(l,1)},M.escapeRegExp=function(y){return y.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},M.escapeHTML=function(y){return(""+y).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},M.getMatchOffsets=function(y,a){var l=[];return y.replace(a,function(e){l.push({offset:arguments[arguments.length-2],length:e.length})}),l},M.deferredCall=function(y){var a=null,l=function(){a=null,y()},e=function(n){return e.cancel(),a=setTimeout(l,n||0),e};return e.schedule=e,e.call=function(){return this.cancel(),y(),e},e.cancel=function(){return clearTimeout(a),a=null,e},e.isPending=function(){return a},e},M.delayedCall=function(y,a){var l=null,e=function(){l=null,y()},n=function(r){l==null&&(l=setTimeout(e,r||a))};return n.delay=function(r){l&&clearTimeout(l),l=setTimeout(e,r||a)},n.schedule=n,n.call=function(){this.cancel(),y()},n.cancel=function(){l&&clearTimeout(l),l=null},n.isPending=function(){return l},n},M.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},M.skipEmptyMatch=function(y,a,l){return l&&y.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function($,M,R){M.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},M.getOS=function(){return M.isMac?M.OS.MAC:M.isLinux?M.OS.LINUX:M.OS.WINDOWS};var m=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(m.platform)||["other"])[0].toLowerCase(),y=m.userAgent||"",a=m.appName||"";M.isWin=v=="win",M.isMac=v=="mac",M.isLinux=v=="linux",M.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((y.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((y.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),M.isOldIE=M.isIE&&M.isIE<9,M.isGecko=M.isMozilla=y.match(/ Gecko\/\d+/),M.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",M.isWebKit=parseFloat(y.split("WebKit/")[1])||void 0,M.isChrome=parseFloat(y.split(" Chrome/")[1])||void 0,M.isSafari=parseFloat(y.split(" Safari/")[1])&&!M.isChrome||void 0,M.isEdge=parseFloat(y.split(" Edge/")[1])||void 0,M.isAIR=y.indexOf("AdobeAIR")>=0,M.isAndroid=y.indexOf("Android")>=0,M.isChromeOS=y.indexOf(" CrOS ")>=0,M.isIOS=/iPad|iPhone|iPod/.test(y)&&!window.MSStream,M.isIOS&&(M.isMac=!0),M.isMobile=M.isIOS||M.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function($,M,R){var m=$("./useragent"),v="http://www.w3.org/1999/xhtml";M.buildDom=function r(i,t,o){if(typeof i=="string"&&i){var s=document.createTextNode(i);return t&&t.appendChild(s),s}if(!Array.isArray(i))return i&&i.appendChild&&t&&t.appendChild(i),i;if(typeof i[0]!="string"||!i[0]){for(var u=[],d=0;d<i.length;d++){var A=r(i[d],t,o);A&&u.push(A)}return u}var b=document.createElement(i[0]),g=i[1],h=1;g&&typeof g=="object"&&!Array.isArray(g)&&(h=2);for(var d=h;d<i.length;d++)r(i[d],b,o);return h==2&&Object.keys(g).forEach(function(w){var C=g[w];w==="class"?b.className=Array.isArray(C)?C.join(" "):C:typeof C=="function"||w=="value"||w[0]=="$"?b[w]=C:w==="ref"?o&&(o[C]=b):w==="style"?typeof C=="string"&&(b.style.cssText=C):C!=null&&b.setAttribute(w,C)}),t&&t.appendChild(b),b},M.getDocumentHead=function(r){return r||(r=document),r.head||r.getElementsByTagName("head")[0]||r.documentElement},M.createElement=function(r,i){return document.createElementNS?document.createElementNS(i||v,r):document.createElement(r)},M.removeChildren=function(r){r.innerHTML=""},M.createTextNode=function(r,i){var t=i?i.ownerDocument:document;return t.createTextNode(r)},M.createFragment=function(r){var i=r?r.ownerDocument:document;return i.createDocumentFragment()},M.hasCssClass=function(r,i){var t=(r.className+"").split(/\s+/g);return t.indexOf(i)!==-1},M.addCssClass=function(r,i){M.hasCssClass(r,i)||(r.className+=" "+i)},M.removeCssClass=function(r,i){for(var t=r.className.split(/\s+/g);;){var o=t.indexOf(i);if(o==-1)break;t.splice(o,1)}r.className=t.join(" ")},M.toggleCssClass=function(r,i){for(var t=r.className.split(/\s+/g),o=!0;;){var s=t.indexOf(i);if(s==-1)break;o=!1,t.splice(s,1)}return o&&t.push(i),r.className=t.join(" "),o},M.setCssClass=function(r,i,t){t?M.addCssClass(r,i):M.removeCssClass(r,i)},M.hasCssString=function(r,i){var t=0,o;if(i=i||document,o=i.querySelectorAll("style")){for(;t<o.length;)if(o[t++].id===r)return!0}},M.removeElementById=function(r,i){i=i||document,i.getElementById(r)&&i.getElementById(r).remove()};var y,a=[];M.useStrictCSP=function(r){y=r,r==!1?l():a||(a=[])};function l(){var r=a;a=null,r&&r.forEach(function(i){e(i[0],i[1])})}function e(r,i,t){if(!(typeof document>"u")){if(a){if(t)l();else if(t===!1)return a.push([r,i])}if(!y){var o=t;!t||!t.getRootNode?o=document:(o=t.getRootNode(),(!o||o==t)&&(o=document));var s=o.ownerDocument||o;if(i&&M.hasCssString(i,o))return null;i&&(r+=`
|
|
2
2
|
/*# sourceURL=ace/css/`+i+" */");var u=M.createElement("style");u.appendChild(s.createTextNode(r)),i&&(u.id=i),o==s&&(o=M.getDocumentHead(s)),o.insertBefore(u,o.firstChild)}}}if(M.importCssString=e,M.importCssStylsheet=function(r,i){M.buildDom(["link",{rel:"stylesheet",href:r}],M.getDocumentHead(i))},M.scrollbarWidth=function(r){var i=M.createElement("ace_inner");i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block";var t=M.createElement("ace_outer"),o=t.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",t.appendChild(i);var s=r&&r.documentElement||document&&document.documentElement;if(!s)return 0;s.appendChild(t);var u=i.offsetWidth;o.overflow="scroll";var d=i.offsetWidth;return u===d&&(d=t.clientWidth),s.removeChild(t),u-d},M.computedStyle=function(r,i){return window.getComputedStyle(r,"")||{}},M.setStyle=function(r,i,t){r[i]!==t&&(r[i]=t)},M.HAS_CSS_ANIMATION=!1,M.HAS_CSS_TRANSFORMS=!1,M.HI_DPI=m.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,m.isChromeOS&&(M.HI_DPI=!1),typeof document<"u"){var n=document.createElement("div");M.HI_DPI&&n.style.transform!==void 0&&(M.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&typeof n.style.animationName<"u"&&(M.HAS_CSS_ANIMATION=!0),n=null}M.HAS_CSS_TRANSFORMS?M.translate=function(r,i,t){r.style.transform="translate("+Math.round(i)+"px, "+Math.round(t)+"px)"}:M.translate=function(r,i,t){r.style.top=Math.round(t)+"px",r.style.left=Math.round(i)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function($,M,R){/*
|
|
3
3
|
* based on code from:
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as fh,r as Te,s as bc,o as dv,g as pv,a as dh,_ as Hc}from"./vendor-charts-5282d21c.js";function mv(r,e,t){return Math.max(e,Math.min(r,t))}const hn={toVector(r,e){return r===void 0&&(r=e),Array.isArray(r)?r:[r,r]},add(r,e){return[r[0]+e[0],r[1]+e[1]]},sub(r,e){return[r[0]-e[0],r[1]-e[1]]},addTo(r,e){r[0]+=e[0],r[1]+=e[1]},subTo(r,e){r[0]-=e[0],r[1]-=e[1]}};function om(r,e,t){return e===0||Math.abs(e)===1/0?Math.pow(r,t*5):r*e*t/(e+t*r)}function am(r,e,t,n=.15){return n===0?mv(r,e,t):r<e?-om(e-r,t-e,n)+e:r>t?+om(r-t,t-e,n)+t:r}function gv(r,[e,t],[n,i]){const[[s,a],[l,u]]=r;return[am(e,s,a,n),am(t,l,u,i)]}function yv(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function xv(r){var e=yv(r,"string");return typeof e=="symbol"?e:String(e)}function wn(r,e,t){return e=xv(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function lm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Ft(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lm(Object(t),!0).forEach(function(n){wn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):lm(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}const $g={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function cm(r){return r?r[0].toUpperCase()+r.slice(1):""}const vv=["enter","leave"];function _v(r=!1,e){return r&&!vv.includes(e)}function wv(r,e="",t=!1){const n=$g[r],i=n&&n[e]||e;return"on"+cm(r)+cm(i)+(_v(t,i)?"Capture":"")}const Mv=["gotpointercapture","lostpointercapture"];function Sv(r){let e=r.substring(2).toLowerCase();const t=!!~e.indexOf("passive");t&&(e=e.replace("passive",""));const n=Mv.includes(e)?"capturecapture":"capture",i=!!~e.indexOf(n);return i&&(e=e.replace("capture","")),{device:e,capture:i,passive:t}}function bv(r,e=""){const t=$g[r],n=t&&t[e]||e;return r+n}function Gc(r){return"touches"in r}function e0(r){return Gc(r)?"touch":"pointerType"in r?r.pointerType:"mouse"}function Ev(r){return Array.from(r.touches).filter(e=>{var t,n;return e.target===r.currentTarget||((t=r.currentTarget)===null||t===void 0||(n=t.contains)===null||n===void 0?void 0:n.call(t,e.target))})}function Tv(r){return r.type==="touchend"||r.type==="touchcancel"?r.changedTouches:r.targetTouches}function t0(r){return Gc(r)?Tv(r)[0]:r}function Av(r){return Ev(r).map(e=>e.identifier)}function ph(r){const e=t0(r);return Gc(r)?e.identifier:e.pointerId}function um(r){const e=t0(r);return[e.clientX,e.clientY]}const hm=40,fm=800;function Cv(r){let{deltaX:e,deltaY:t,deltaMode:n}=r;return n===1?(e*=hm,t*=hm):n===2&&(e*=fm,t*=fm),[e,t]}function Rv(r){const e={};if("buttons"in r&&(e.buttons=r.buttons),"shiftKey"in r){const{shiftKey:t,altKey:n,metaKey:i,ctrlKey:s}=r;Object.assign(e,{shiftKey:t,altKey:n,metaKey:i,ctrlKey:s})}return e}function Ic(r,...e){return typeof r=="function"?r(...e):r}function Pv(){}function Lv(...r){return r.length===0?Pv:r.length===1?r[0]:function(){let e;for(const t of r)e=t.apply(this,arguments)||e;return e}}function dm(r,e){return Object.assign({},e,r||{})}const Dv=32;class Iv{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:i}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Ic(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:i}=this;t.args=this.args;let s=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Rv(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,s=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const L=t._delta.map(Math.abs);hn.addTo(t._distance,L)}this.axisIntent&&this.axisIntent(e);const[a,l]=t._movement,[u,f]=n.threshold,{_step:p,values:g}=t;if(n.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(a)>=u&&g[0]),p[1]===!1&&(p[1]=Math.abs(l)>=f&&g[1])):(p[0]===!1&&(p[0]=Math.abs(a)>=u&&Math.sign(a)*u),p[1]===!1&&(p[1]=Math.abs(l)>=f&&Math.sign(l)*f)),t.intentional=p[0]!==!1||p[1]!==!1,!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[L,D]=g;d[0]=p[0]!==!1?L-p[0]:0,d[1]=p[1]!==!1?D-p[1]:0}else d[0]=p[0]!==!1?a-p[0]:0,d[1]=p[1]!==!1?l-p[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const m=t.offset,x=t._active&&!t._blocked||t.active;x&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=i[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Ic(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[y,v]=t.offset,[[M,S],[T,b]]=t._bounds;t.overflow=[y<M?-1:y>S?1:0,v<T?-1:v>b?1:0],t._movementBound[0]=t.overflow[0]?t._movementBound[0]===!1?t._movement[0]:t._movementBound[0]:!1,t._movementBound[1]=t.overflow[1]?t._movementBound[1]===!1?t._movement[1]:t._movementBound[1]:!1;const A=t._active?n.rubberband||[0,0]:[0,0];if(t.offset=gv(t._bounds,t.offset,A),t.delta=hn.sub(t.offset,m),this.computeMovement(),x&&(!t.last||s>Dv)){t.delta=hn.sub(t.offset,m);const L=t.delta.map(Math.abs);hn.addTo(t.distance,L),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&s>0&&(t.velocity=[L[0]/s,L[1]/s],t.timeDelta=s)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const i=this.handler(Ft(Ft(Ft({},t),e),{},{[this.aliasKey]:e.values}));i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function zv([r,e],t){const n=Math.abs(r),i=Math.abs(e);if(n>i&&n>t)return"x";if(i>n&&i>t)return"y"}class n0 extends Iv{constructor(...e){super(...e),wn(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=hn.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=hn.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const i=typeof n.axisThreshold=="object"?n.axisThreshold[e0(e)]:n.axisThreshold;t.axis=zv(t._movement,i)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const Nv=r=>r,pm=.15,i0={enabled(r=!0){return r},eventOptions(r,e,t){return Ft(Ft({},t.shared.eventOptions),r)},preventDefault(r=!1){return r},triggerAllEvents(r=!1){return r},rubberband(r=0){switch(r){case!0:return[pm,pm];case!1:return[0,0];default:return hn.toVector(r)}},from(r){if(typeof r=="function")return r;if(r!=null)return hn.toVector(r)},transform(r,e,t){const n=r||t.shared.transform;return this.hasCustomTransform=!!n,n||Nv},threshold(r){return hn.toVector(r,0)}},Fv=0,bo=Ft(Ft({},i0),{},{axis(r,e,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(r=Fv){return r},bounds(r={}){if(typeof r=="function")return s=>bo.bounds(r(s));if("current"in r)return()=>r.current;if(typeof HTMLElement=="function"&&r instanceof HTMLElement)return r;const{left:e=-1/0,right:t=1/0,top:n=-1/0,bottom:i=1/0}=r;return[[e,t],[n,i]]}}),mm={ArrowRight:(r,e=1)=>[r*e,0],ArrowLeft:(r,e=1)=>[-1*r*e,0],ArrowUp:(r,e=1)=>[0,-1*r*e],ArrowDown:(r,e=1)=>[0,r*e]};class Ov extends n0{constructor(...e){super(...e),wn(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),i={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=bo.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=ph(e),n._pointerActive=!0,this.computeValues(um(e)),this.computeInitial(),t.preventScrollAxis&&e0(e)!=="mouse"?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const i=ph(e);if(t._pointerId!==void 0&&i!==t._pointerId)return;const s=um(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=hn.sub(s,t._values),this.computeValues(s)),hn.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const i=ph(e);if(t._pointerId!==void 0&&i!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=t._distance;if(t.tap=s<=n.tapsThreshold&&a<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[l,u]=t._delta,[f,p]=t._movement,[g,d]=n.swipe.velocity,[m,x]=n.swipe.distance,y=n.swipe.duration;if(t.elapsedTime<y){const v=Math.abs(l/t.timeDelta),M=Math.abs(u/t.timeDelta);v>g&&Math.abs(f)>m&&(t.swipe[0]=Math.sign(l)),M>d&&Math.abs(p)>x&&(t.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Bv(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const t=mm[e.key];if(t){const n=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,i),n._keyboardActive=!0,hn.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in mm&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Bv(r){"persist"in r&&typeof r.persist=="function"&&r.persist()}const Ia=typeof window<"u"&&window.document&&window.document.createElement;function r0(){return Ia&&"ontouchstart"in window}function Uv(){return r0()||Ia&&window.navigator.maxTouchPoints>1}function kv(){return Ia&&"onpointerdown"in window}function Hv(){return Ia&&"exitPointerLock"in window.document}function Gv(){try{return"constructor"in GestureEvent}catch{return!1}}const Zn={isBrowser:Ia,gesture:Gv(),touch:r0(),touchscreen:Uv(),pointer:kv(),pointerLock:Hv()},Vv=250,Wv=180,qv=.5,Xv=50,jv=250,Yv=10,gm={mouse:0,touch:0,pen:8},Jv=Ft(Ft({},bo),{},{device(r,e,{pointer:{touch:t=!1,lock:n=!1,mouse:i=!1}={}}){return this.pointerLock=n&&Zn.pointerLock,Zn.touch&&t?"touch":this.pointerLock?"mouse":Zn.pointer&&!i?"pointer":Zn.touch?"touch":"mouse"},preventScrollAxis(r,e,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&r?Vv:void 0,!(!Zn.touchscreen||t===!1))return r||(t!==void 0?"y":void 0)},pointerCapture(r,e,{pointer:{capture:t=!0,buttons:n=1,keys:i=!0}={}}){return this.pointerButtons=n,this.keys=i,!this.pointerLock&&this.device==="pointer"&&t},threshold(r,e,{filterTaps:t=!1,tapsThreshold:n=3,axis:i=void 0}){const s=hn.toVector(r,t?n:i?1:0);return this.filterTaps=t,this.tapsThreshold=n,s},swipe({velocity:r=qv,distance:e=Xv,duration:t=jv}={}){return{velocity:this.transform(hn.toVector(r)),distance:this.transform(hn.toVector(e)),duration:t}},delay(r=0){switch(r){case!0:return Wv;case!1:return 0;default:return r}},axisThreshold(r){return r?Ft(Ft({},gm),r):gm},keyboardDisplacement(r=Yv){return r}});function Zv(r){const[e,t]=r.overflow,[n,i]=r._delta,[s,a]=r._direction;(e<0&&n>0&&s<0||e>0&&n<0&&s>0)&&(r._movement[0]=r._movementBound[0]),(t<0&&i>0&&a<0||t>0&&i<0&&a>0)&&(r._movement[1]=r._movementBound[1])}Ft(Ft({},i0),{},{device(r,e,{shared:t,pointer:{touch:n=!1}={}}){if(t.target&&!Zn.touch&&Zn.gesture)return"gesture";if(Zn.touch&&n)return"touch";if(Zn.touchscreen){if(Zn.pointer)return"pointer";if(Zn.touch)return"touch"}},bounds(r,e,{scaleBounds:t={},angleBounds:n={}}){const i=a=>{const l=dm(Ic(t,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=dm(Ic(n,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof t!="function"&&typeof n!="function"?[i(),s()]:a=>[i(a),s(a)]},threshold(r,e,t){return this.lockDirection=t.axis==="lock",hn.toVector(r,this.lockDirection?[.1,3]:0)},modifierKey(r){return r===void 0?"ctrlKey":r},pinchOnWheel(r=!0){return r}});Ft(Ft({},bo),{},{mouseOnly:(r=!0)=>r});class Kv extends n0{constructor(...e){super(...e),wn(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const t=this.state;t._delta=Cv(e),hn.addTo(t._movement,t._delta),Zv(t),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const Qv=bo;Ft(Ft({},bo),{},{mouseOnly:(r=!0)=>r});const kf=new Map,$h=new Map;function $v(r){kf.set(r.key,r.engine),$h.set(r.key,r.resolver)}const NA={key:"drag",engine:Ov,resolver:Jv},FA={key:"wheel",engine:Kv,resolver:Qv};function e_(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}function t_(r,e){if(r==null)return{};var t=e_(r,e),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(i=0;i<s.length;i++)n=s[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}const n_={target(r){if(r)return()=>"current"in r?r.current:r},enabled(r=!0){return r},window(r=Zn.isBrowser?window:void 0){return r},eventOptions({passive:r=!0,capture:e=!1}={}){return{passive:r,capture:e}},transform(r){return r}},i_=["target","eventOptions","window","enabled","transform"];function Ec(r={},e){const t={};for(const[n,i]of Object.entries(e))switch(typeof i){case"function":t[n]=i.call(t,r[n],n,r);break;case"object":t[n]=Ec(r[n],i);break;case"boolean":i&&(t[n]=r[n]);break}return t}function r_(r,e,t={}){const n=r,{target:i,eventOptions:s,window:a,enabled:l,transform:u}=n,f=t_(n,i_);if(t.shared=Ec({target:i,eventOptions:s,window:a,enabled:l,transform:u},n_),e){const p=$h.get(e);t[e]=Ec(Ft({shared:t.shared},f),p)}else for(const p in f){const g=$h.get(p);g&&(t[p]=Ec(Ft({shared:t.shared},f[p]),g))}return t}class s0{constructor(e,t){wn(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,i,s){const a=this._listeners,l=bv(t,n),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},f=Ft(Ft({},u),s);e.addEventListener(l,i,f);const p=()=>{e.removeEventListener(l,i,f),a.delete(p)};return a.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class s_{constructor(){wn(this,"_timeouts",new Map)}add(e,t,n=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...i))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class o_{constructor(e){wn(this,"gestures",new Set),wn(this,"_targetEventStore",new s0(this)),wn(this,"gestureEventStores",{}),wn(this,"gestureTimeoutStores",{}),wn(this,"handlers",{}),wn(this,"config",{}),wn(this,"pointerIds",new Set),wn(this,"touchIds",new Set),wn(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),a_(this,e)}setEventIds(e){if(Gc(e))return this.touchIds=new Set(Av(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=r_(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let i;if(!(t.target&&(i=t.target(),!i))){if(t.enabled){for(const a of this.gestures){const l=this.config[a],u=ym(n,l.eventOptions,!!i);if(l.enabled){const f=kf.get(a);new f(this,e,a).bind(u)}}const s=ym(n,t.eventOptions,!!i);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](Ft(Ft({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in n)n[s]=Lv(...n[s]);if(!i)return n;for(const s in n){const{device:a,capture:l,passive:u}=Sv(s);this._targetEventStore.add(i,a,"",n[s],{capture:l,passive:u})}}}}function Os(r,e){r.gestures.add(e),r.gestureEventStores[e]=new s0(r,e),r.gestureTimeoutStores[e]=new s_}function a_(r,e){e.drag&&Os(r,"drag"),e.wheel&&Os(r,"wheel"),e.scroll&&Os(r,"scroll"),e.move&&Os(r,"move"),e.pinch&&Os(r,"pinch"),e.hover&&Os(r,"hover")}const ym=(r,e,t)=>(n,i,s,a={},l=!1)=>{var u,f;const p=(u=a.capture)!==null&&u!==void 0?u:e.capture,g=(f=a.passive)!==null&&f!==void 0?f:e.passive;let d=l?n:wv(n,i,p);t&&g&&(d+="Passive"),r[d]=r[d]||[],r[d].push(s)},l_=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function c_(r){const e={},t={},n=new Set;for(let i in r)l_.test(i)?(n.add(RegExp.lastMatch),t[i]=r[i]):e[i]=r[i];return[t,e,n]}function Bs(r,e,t,n,i,s){if(!r.has(t)||!kf.has(n))return;const a=t+"Start",l=t+"End",u=f=>{let p;return f.first&&a in e&&e[a](f),t in e&&(p=e[t](f)),f.last&&l in e&&e[l](f),p};i[n]=u,s[n]=s[n]||{}}function u_(r,e){const[t,n,i]=c_(r),s={};return Bs(i,t,"onDrag","drag",s,e),Bs(i,t,"onWheel","wheel",s,e),Bs(i,t,"onScroll","scroll",s,e),Bs(i,t,"onPinch","pinch",s,e),Bs(i,t,"onMove","move",s,e),Bs(i,t,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:n}}function h_(r,e={},t,n){const i=fh.useMemo(()=>new o_(r),[]);if(i.applyHandlers(r,n),i.applyConfig(e,t),fh.useEffect(i.effect.bind(i)),fh.useEffect(()=>i.clean.bind(i),[]),e.target===void 0)return i.bind.bind(i)}function OA(r){return r.forEach($v),function(t,n){const{handlers:i,nativeHandlers:s,config:a}=u_(t,n||{});return h_(i,a,void 0,s)}}/**
|
|
1
|
+
import{R as fh,r as Te,s as bc,o as dv,g as pv,a as dh,_ as Hc}from"./vendor-charts-a0e04cd5.js";function mv(r,e,t){return Math.max(e,Math.min(r,t))}const hn={toVector(r,e){return r===void 0&&(r=e),Array.isArray(r)?r:[r,r]},add(r,e){return[r[0]+e[0],r[1]+e[1]]},sub(r,e){return[r[0]-e[0],r[1]-e[1]]},addTo(r,e){r[0]+=e[0],r[1]+=e[1]},subTo(r,e){r[0]-=e[0],r[1]-=e[1]}};function om(r,e,t){return e===0||Math.abs(e)===1/0?Math.pow(r,t*5):r*e*t/(e+t*r)}function am(r,e,t,n=.15){return n===0?mv(r,e,t):r<e?-om(e-r,t-e,n)+e:r>t?+om(r-t,t-e,n)+t:r}function gv(r,[e,t],[n,i]){const[[s,a],[l,u]]=r;return[am(e,s,a,n),am(t,l,u,i)]}function yv(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function xv(r){var e=yv(r,"string");return typeof e=="symbol"?e:String(e)}function wn(r,e,t){return e=xv(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function lm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Ft(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lm(Object(t),!0).forEach(function(n){wn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):lm(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}const $g={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function cm(r){return r?r[0].toUpperCase()+r.slice(1):""}const vv=["enter","leave"];function _v(r=!1,e){return r&&!vv.includes(e)}function wv(r,e="",t=!1){const n=$g[r],i=n&&n[e]||e;return"on"+cm(r)+cm(i)+(_v(t,i)?"Capture":"")}const Mv=["gotpointercapture","lostpointercapture"];function Sv(r){let e=r.substring(2).toLowerCase();const t=!!~e.indexOf("passive");t&&(e=e.replace("passive",""));const n=Mv.includes(e)?"capturecapture":"capture",i=!!~e.indexOf(n);return i&&(e=e.replace("capture","")),{device:e,capture:i,passive:t}}function bv(r,e=""){const t=$g[r],n=t&&t[e]||e;return r+n}function Gc(r){return"touches"in r}function e0(r){return Gc(r)?"touch":"pointerType"in r?r.pointerType:"mouse"}function Ev(r){return Array.from(r.touches).filter(e=>{var t,n;return e.target===r.currentTarget||((t=r.currentTarget)===null||t===void 0||(n=t.contains)===null||n===void 0?void 0:n.call(t,e.target))})}function Tv(r){return r.type==="touchend"||r.type==="touchcancel"?r.changedTouches:r.targetTouches}function t0(r){return Gc(r)?Tv(r)[0]:r}function Av(r){return Ev(r).map(e=>e.identifier)}function ph(r){const e=t0(r);return Gc(r)?e.identifier:e.pointerId}function um(r){const e=t0(r);return[e.clientX,e.clientY]}const hm=40,fm=800;function Cv(r){let{deltaX:e,deltaY:t,deltaMode:n}=r;return n===1?(e*=hm,t*=hm):n===2&&(e*=fm,t*=fm),[e,t]}function Rv(r){const e={};if("buttons"in r&&(e.buttons=r.buttons),"shiftKey"in r){const{shiftKey:t,altKey:n,metaKey:i,ctrlKey:s}=r;Object.assign(e,{shiftKey:t,altKey:n,metaKey:i,ctrlKey:s})}return e}function Ic(r,...e){return typeof r=="function"?r(...e):r}function Pv(){}function Lv(...r){return r.length===0?Pv:r.length===1?r[0]:function(){let e;for(const t of r)e=t.apply(this,arguments)||e;return e}}function dm(r,e){return Object.assign({},e,r||{})}const Dv=32;class Iv{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:i}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Ic(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:i}=this;t.args=this.args;let s=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Rv(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,s=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const L=t._delta.map(Math.abs);hn.addTo(t._distance,L)}this.axisIntent&&this.axisIntent(e);const[a,l]=t._movement,[u,f]=n.threshold,{_step:p,values:g}=t;if(n.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(a)>=u&&g[0]),p[1]===!1&&(p[1]=Math.abs(l)>=f&&g[1])):(p[0]===!1&&(p[0]=Math.abs(a)>=u&&Math.sign(a)*u),p[1]===!1&&(p[1]=Math.abs(l)>=f&&Math.sign(l)*f)),t.intentional=p[0]!==!1||p[1]!==!1,!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[L,D]=g;d[0]=p[0]!==!1?L-p[0]:0,d[1]=p[1]!==!1?D-p[1]:0}else d[0]=p[0]!==!1?a-p[0]:0,d[1]=p[1]!==!1?l-p[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const m=t.offset,x=t._active&&!t._blocked||t.active;x&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=i[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Ic(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[y,v]=t.offset,[[M,S],[T,b]]=t._bounds;t.overflow=[y<M?-1:y>S?1:0,v<T?-1:v>b?1:0],t._movementBound[0]=t.overflow[0]?t._movementBound[0]===!1?t._movement[0]:t._movementBound[0]:!1,t._movementBound[1]=t.overflow[1]?t._movementBound[1]===!1?t._movement[1]:t._movementBound[1]:!1;const A=t._active?n.rubberband||[0,0]:[0,0];if(t.offset=gv(t._bounds,t.offset,A),t.delta=hn.sub(t.offset,m),this.computeMovement(),x&&(!t.last||s>Dv)){t.delta=hn.sub(t.offset,m);const L=t.delta.map(Math.abs);hn.addTo(t.distance,L),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&s>0&&(t.velocity=[L[0]/s,L[1]/s],t.timeDelta=s)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const i=this.handler(Ft(Ft(Ft({},t),e),{},{[this.aliasKey]:e.values}));i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function zv([r,e],t){const n=Math.abs(r),i=Math.abs(e);if(n>i&&n>t)return"x";if(i>n&&i>t)return"y"}class n0 extends Iv{constructor(...e){super(...e),wn(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=hn.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=hn.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const i=typeof n.axisThreshold=="object"?n.axisThreshold[e0(e)]:n.axisThreshold;t.axis=zv(t._movement,i)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const Nv=r=>r,pm=.15,i0={enabled(r=!0){return r},eventOptions(r,e,t){return Ft(Ft({},t.shared.eventOptions),r)},preventDefault(r=!1){return r},triggerAllEvents(r=!1){return r},rubberband(r=0){switch(r){case!0:return[pm,pm];case!1:return[0,0];default:return hn.toVector(r)}},from(r){if(typeof r=="function")return r;if(r!=null)return hn.toVector(r)},transform(r,e,t){const n=r||t.shared.transform;return this.hasCustomTransform=!!n,n||Nv},threshold(r){return hn.toVector(r,0)}},Fv=0,bo=Ft(Ft({},i0),{},{axis(r,e,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(r=Fv){return r},bounds(r={}){if(typeof r=="function")return s=>bo.bounds(r(s));if("current"in r)return()=>r.current;if(typeof HTMLElement=="function"&&r instanceof HTMLElement)return r;const{left:e=-1/0,right:t=1/0,top:n=-1/0,bottom:i=1/0}=r;return[[e,t],[n,i]]}}),mm={ArrowRight:(r,e=1)=>[r*e,0],ArrowLeft:(r,e=1)=>[-1*r*e,0],ArrowUp:(r,e=1)=>[0,-1*r*e],ArrowDown:(r,e=1)=>[0,r*e]};class Ov extends n0{constructor(...e){super(...e),wn(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),i={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=bo.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&n._pointerActive)&&(this.start(e),this.setupPointer(e),n._pointerId=ph(e),n._pointerActive=!0,this.computeValues(um(e)),this.computeInitial(),t.preventScrollAxis&&e0(e)!=="mouse"?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const i=ph(e);if(t._pointerId!==void 0&&i!==t._pointerId)return;const s=um(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=hn.sub(s,t._values),this.computeValues(s)),hn.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const i=ph(e);if(t._pointerId!==void 0&&i!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=t._distance;if(t.tap=s<=n.tapsThreshold&&a<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[l,u]=t._delta,[f,p]=t._movement,[g,d]=n.swipe.velocity,[m,x]=n.swipe.distance,y=n.swipe.duration;if(t.elapsedTime<y){const v=Math.abs(l/t.timeDelta),M=Math.abs(u/t.timeDelta);v>g&&Math.abs(f)>m&&(t.swipe[0]=Math.sign(l)),M>d&&Math.abs(p)>x&&(t.swipe[1]=Math.sign(u))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Bv(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const t=mm[e.key];if(t){const n=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,i),n._keyboardActive=!0,hn.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in mm&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Bv(r){"persist"in r&&typeof r.persist=="function"&&r.persist()}const Ia=typeof window<"u"&&window.document&&window.document.createElement;function r0(){return Ia&&"ontouchstart"in window}function Uv(){return r0()||Ia&&window.navigator.maxTouchPoints>1}function kv(){return Ia&&"onpointerdown"in window}function Hv(){return Ia&&"exitPointerLock"in window.document}function Gv(){try{return"constructor"in GestureEvent}catch{return!1}}const Zn={isBrowser:Ia,gesture:Gv(),touch:r0(),touchscreen:Uv(),pointer:kv(),pointerLock:Hv()},Vv=250,Wv=180,qv=.5,Xv=50,jv=250,Yv=10,gm={mouse:0,touch:0,pen:8},Jv=Ft(Ft({},bo),{},{device(r,e,{pointer:{touch:t=!1,lock:n=!1,mouse:i=!1}={}}){return this.pointerLock=n&&Zn.pointerLock,Zn.touch&&t?"touch":this.pointerLock?"mouse":Zn.pointer&&!i?"pointer":Zn.touch?"touch":"mouse"},preventScrollAxis(r,e,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&r?Vv:void 0,!(!Zn.touchscreen||t===!1))return r||(t!==void 0?"y":void 0)},pointerCapture(r,e,{pointer:{capture:t=!0,buttons:n=1,keys:i=!0}={}}){return this.pointerButtons=n,this.keys=i,!this.pointerLock&&this.device==="pointer"&&t},threshold(r,e,{filterTaps:t=!1,tapsThreshold:n=3,axis:i=void 0}){const s=hn.toVector(r,t?n:i?1:0);return this.filterTaps=t,this.tapsThreshold=n,s},swipe({velocity:r=qv,distance:e=Xv,duration:t=jv}={}){return{velocity:this.transform(hn.toVector(r)),distance:this.transform(hn.toVector(e)),duration:t}},delay(r=0){switch(r){case!0:return Wv;case!1:return 0;default:return r}},axisThreshold(r){return r?Ft(Ft({},gm),r):gm},keyboardDisplacement(r=Yv){return r}});function Zv(r){const[e,t]=r.overflow,[n,i]=r._delta,[s,a]=r._direction;(e<0&&n>0&&s<0||e>0&&n<0&&s>0)&&(r._movement[0]=r._movementBound[0]),(t<0&&i>0&&a<0||t>0&&i<0&&a>0)&&(r._movement[1]=r._movementBound[1])}Ft(Ft({},i0),{},{device(r,e,{shared:t,pointer:{touch:n=!1}={}}){if(t.target&&!Zn.touch&&Zn.gesture)return"gesture";if(Zn.touch&&n)return"touch";if(Zn.touchscreen){if(Zn.pointer)return"pointer";if(Zn.touch)return"touch"}},bounds(r,e,{scaleBounds:t={},angleBounds:n={}}){const i=a=>{const l=dm(Ic(t,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=dm(Ic(n,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof t!="function"&&typeof n!="function"?[i(),s()]:a=>[i(a),s(a)]},threshold(r,e,t){return this.lockDirection=t.axis==="lock",hn.toVector(r,this.lockDirection?[.1,3]:0)},modifierKey(r){return r===void 0?"ctrlKey":r},pinchOnWheel(r=!0){return r}});Ft(Ft({},bo),{},{mouseOnly:(r=!0)=>r});class Kv extends n0{constructor(...e){super(...e),wn(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const t=this.state;t._delta=Cv(e),hn.addTo(t._movement,t._delta),Zv(t),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const Qv=bo;Ft(Ft({},bo),{},{mouseOnly:(r=!0)=>r});const kf=new Map,$h=new Map;function $v(r){kf.set(r.key,r.engine),$h.set(r.key,r.resolver)}const NA={key:"drag",engine:Ov,resolver:Jv},FA={key:"wheel",engine:Kv,resolver:Qv};function e_(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}function t_(r,e){if(r==null)return{};var t=e_(r,e),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(i=0;i<s.length;i++)n=s[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}const n_={target(r){if(r)return()=>"current"in r?r.current:r},enabled(r=!0){return r},window(r=Zn.isBrowser?window:void 0){return r},eventOptions({passive:r=!0,capture:e=!1}={}){return{passive:r,capture:e}},transform(r){return r}},i_=["target","eventOptions","window","enabled","transform"];function Ec(r={},e){const t={};for(const[n,i]of Object.entries(e))switch(typeof i){case"function":t[n]=i.call(t,r[n],n,r);break;case"object":t[n]=Ec(r[n],i);break;case"boolean":i&&(t[n]=r[n]);break}return t}function r_(r,e,t={}){const n=r,{target:i,eventOptions:s,window:a,enabled:l,transform:u}=n,f=t_(n,i_);if(t.shared=Ec({target:i,eventOptions:s,window:a,enabled:l,transform:u},n_),e){const p=$h.get(e);t[e]=Ec(Ft({shared:t.shared},f),p)}else for(const p in f){const g=$h.get(p);g&&(t[p]=Ec(Ft({shared:t.shared},f[p]),g))}return t}class s0{constructor(e,t){wn(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,i,s){const a=this._listeners,l=bv(t,n),u=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},f=Ft(Ft({},u),s);e.addEventListener(l,i,f);const p=()=>{e.removeEventListener(l,i,f),a.delete(p)};return a.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class s_{constructor(){wn(this,"_timeouts",new Map)}add(e,t,n=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...i))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class o_{constructor(e){wn(this,"gestures",new Set),wn(this,"_targetEventStore",new s0(this)),wn(this,"gestureEventStores",{}),wn(this,"gestureTimeoutStores",{}),wn(this,"handlers",{}),wn(this,"config",{}),wn(this,"pointerIds",new Set),wn(this,"touchIds",new Set),wn(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),a_(this,e)}setEventIds(e){if(Gc(e))return this.touchIds=new Set(Av(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=r_(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let i;if(!(t.target&&(i=t.target(),!i))){if(t.enabled){for(const a of this.gestures){const l=this.config[a],u=ym(n,l.eventOptions,!!i);if(l.enabled){const f=kf.get(a);new f(this,e,a).bind(u)}}const s=ym(n,t.eventOptions,!!i);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](Ft(Ft({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in n)n[s]=Lv(...n[s]);if(!i)return n;for(const s in n){const{device:a,capture:l,passive:u}=Sv(s);this._targetEventStore.add(i,a,"",n[s],{capture:l,passive:u})}}}}function Os(r,e){r.gestures.add(e),r.gestureEventStores[e]=new s0(r,e),r.gestureTimeoutStores[e]=new s_}function a_(r,e){e.drag&&Os(r,"drag"),e.wheel&&Os(r,"wheel"),e.scroll&&Os(r,"scroll"),e.move&&Os(r,"move"),e.pinch&&Os(r,"pinch"),e.hover&&Os(r,"hover")}const ym=(r,e,t)=>(n,i,s,a={},l=!1)=>{var u,f;const p=(u=a.capture)!==null&&u!==void 0?u:e.capture,g=(f=a.passive)!==null&&f!==void 0?f:e.passive;let d=l?n:wv(n,i,p);t&&g&&(d+="Passive"),r[d]=r[d]||[],r[d].push(s)},l_=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function c_(r){const e={},t={},n=new Set;for(let i in r)l_.test(i)?(n.add(RegExp.lastMatch),t[i]=r[i]):e[i]=r[i];return[t,e,n]}function Bs(r,e,t,n,i,s){if(!r.has(t)||!kf.has(n))return;const a=t+"Start",l=t+"End",u=f=>{let p;return f.first&&a in e&&e[a](f),t in e&&(p=e[t](f)),f.last&&l in e&&e[l](f),p};i[n]=u,s[n]=s[n]||{}}function u_(r,e){const[t,n,i]=c_(r),s={};return Bs(i,t,"onDrag","drag",s,e),Bs(i,t,"onWheel","wheel",s,e),Bs(i,t,"onScroll","scroll",s,e),Bs(i,t,"onPinch","pinch",s,e),Bs(i,t,"onMove","move",s,e),Bs(i,t,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:n}}function h_(r,e={},t,n){const i=fh.useMemo(()=>new o_(r),[]);if(i.applyHandlers(r,n),i.applyConfig(e,t),fh.useEffect(i.effect.bind(i)),fh.useEffect(()=>i.clean.bind(i),[]),e.target===void 0)return i.bind.bind(i)}function OA(r){return r.forEach($v),function(t,n){const{handlers:i,nativeHandlers:s,config:a}=u_(t,n||{});return h_(i,a,void 0,s)}}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2010-2022 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
package/build/index.html
CHANGED
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
</script>
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
<script type="module" crossorigin src="/assets/index-
|
|
71
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-charts-
|
|
72
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-editor-
|
|
73
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-three-
|
|
70
|
+
<script type="module" crossorigin src="/assets/index-a58871fd.js"></script>
|
|
71
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-charts-a0e04cd5.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-editor-7b15e8f0.js">
|
|
73
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-three-925330d2.js">
|
|
74
74
|
<link rel="stylesheet" href="/assets/index-ef6c7e0b.css">
|
|
75
75
|
</head>
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as r,r as t}from"./vendor-charts-5282d21c.js";import{O as o,Q as a}from"./index-50f4dc74.js";import"./vendor-editor-f2ae123c.js";import"./vendor-three-52521d73.js";function m(){return r.jsx(t.Suspense,{fallback:o,children:r.jsx(a,{})})}export{m as default};
|