@finos/perspective-viewer
Version:
The `<perspective-viewer>` Custom Element, frontend for Perspective.js
1 lines • 52 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return(()=>{var e,t,n={3042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n.p+"perspective_viewer_bg.wasm"},7829:()=>{const e=document.createElement("style");e.textContent="\n.dnd-poly-drag-image {\n opacity: .5 !important;\n}\n.dnd-poly-drag-image.dnd-poly-snapback {\n transition-property: transform, -webkit-transform !important;\n transition-duration: 250ms !important;\n transition-timing-function: ease-out !important;\n}\n",document.head.appendChild(e);const t="dnd-poly-",n=["none","copy","copyLink","copyMove","link","linkMove","move","all"],r=["none","copy","move","link"];const o=function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();function i(e){return e&&e.tagName}function a(e,t,n){void 0===n&&(n=!0),document.addEventListener(e,t,!!o&&{passive:n})}function _(e,t){document.removeEventListener(e,t)}function c(e,t,n,r){void 0===r&&(r=!1);const i=o?{passive:!0,capture:r}:r;return e.addEventListener(t,n,i),{off:function(){e.removeEventListener(t,n,i)}}}function s(e,t){if(1===e.nodeType){const n=getComputedStyle(e);for(let e=0;e<n.length;e++){const r=n[e];t.style.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}if(t.style.pointerEvents="none",t.removeAttribute("id"),t.removeAttribute("class"),t.removeAttribute("draggable"),"CANVAS"===t.nodeName){const n=e,r=t,o=n.getContext("2d").getImageData(0,0,n.width,n.height);r.getContext("2d").putImageData(o,0,0)}}if(e.hasChildNodes())for(let n=0;n<e.childNodes.length;n++)s(e.childNodes[n],t.childNodes[n])}function u(e){return 0===e.length?0:e.reduce((function(e,t){return t+e}),0)/e.length}function d(e,t){for(let n=0;n<e.changedTouches.length;n++){if(e.changedTouches[n].identifier===t)return!0}return!1}function g(e,t,n){const r=[],o=[];for(let n=0;n<t.touches.length;n++){const i=t.touches[n];r.push(i[e+"X"]),o.push(i[e+"Y"])}n.x=u(r),n.y=u(o)}const f=["","-webkit-"];function l(e,t,n,r,o){void 0===o&&(o=!0);let i=t.x,a=t.y;r&&(i+=r.x,a+=r.y),o&&(i-=parseInt(e.offsetWidth,10)/2,a-=parseInt(e.offsetHeight,10)/2);const _="translate3d("+i+"px,"+a+"px, 0)";for(let t=0;t<f.length;t++){const r=f[t]+"transform";e.style[r]=_+" "+n[t]}}const b=function(){function e(e,t){this._dataStore=e,this._setDragImageHandler=t,this._dropEffect=r[0]}return Object.defineProperty(e.prototype,"dropEffect",{get:function(){return this._dropEffect},set:function(e){0!==this._dataStore.mode&&n.indexOf(e)>-1&&(this._dropEffect=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"types",{get:function(){if(0!==this._dataStore.mode)return Object.freeze(this._dataStore.types)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"effectAllowed",{get:function(){return this._dataStore.effectAllowed},set:function(e){2===this._dataStore.mode&&n.indexOf(e)>-1&&(this._dataStore.effectAllowed=e)},enumerable:!0,configurable:!0}),e.prototype.setData=function(e,t){if(2===this._dataStore.mode){if(e.indexOf(" ")>-1)throw new Error("illegal arg: type contains space");this._dataStore.data[e]=t,-1===this._dataStore.types.indexOf(e)&&this._dataStore.types.push(e)}},e.prototype.getData=function(e){if(1===this._dataStore.mode||2===this._dataStore.mode)return this._dataStore.data[e]||""},e.prototype.clearData=function(e){if(2===this._dataStore.mode){if(e&&this._dataStore.data[e]){delete this._dataStore.data[e];const t=this._dataStore.types.indexOf(e);return void(t>-1&&this._dataStore.types.splice(t,1))}this._dataStore.data={},this._dataStore.types=[]}},e.prototype.setDragImage=function(e,t,n){2===this._dataStore.mode&&this._setDragImageHandler(e,t,n)},e}();function w(e,t){return e?e===n[0]?r[0]:0===e.indexOf(n[1])||e===n[7]?r[1]:0===e.indexOf(n[4])?r[3]:e===n[6]?r[2]:r[1]:3===t.nodeType&&"A"===t.tagName?r[3]:r[1]}function p(e,t,n,r,o,i,a){void 0===i&&(i=!0),void 0===a&&(a=null),console.log("dnd-poly: dispatching "+e);const _=function(e,t,n,r,o,i,a){void 0===a&&(a=null);const _=t.changedTouches[0],c=new Event(n,{bubbles:!0,cancelable:r});c.dataTransfer=i,c.relatedTarget=a,c.screenX=_.screenX,c.screenY=_.screenY,c.clientX=_.clientX,c.clientY=_.clientY,c.pageX=_.pageX,c.pageY=_.pageY;const s=e.getBoundingClientRect();return c.offsetX=c.clientX-s.left,c.offsetY=c.clientY-s.top,c}(t,n,e,i,document.defaultView,o,a),c=!t.dispatchEvent(_);return r.mode=0,c}function h(e,t){if(!e||e===n[7])return t;if(t===r[1]){if(0===e.indexOf(r[1]))return r[1]}else if(t===r[3]){if(0===e.indexOf(r[3])||e.indexOf("Link")>-1)return r[3]}else if(t===r[2]&&(0===e.indexOf(r[2])||e.indexOf("Move")>-1))return r[2];return r[0]}const m=function(){function e(e,t,n,r){this._initialEvent=e,this._config=t,this._sourceNode=n,this._dragOperationEndedCb=r,this._dragOperationState=0,this._immediateUserSelection=null,this._currentDropTarget=null,console.log("dnd-poly: setting up potential drag operation.."),this._lastTouchEvent=e,this._initialTouch=e.changedTouches[0],this._touchMoveHandler=this._onTouchMove.bind(this),this._touchEndOrCancelHandler=this._onTouchEndOrCancel.bind(this),a("touchmove",this._touchMoveHandler,!1),a("touchend",this._touchEndOrCancelHandler,!1),a("touchcancel",this._touchEndOrCancelHandler,!1)}return e.prototype._setup=function(){const e=this;console.log("dnd-poly: starting drag and drop operation"),this._dragOperationState=1,this._currentDragOperation=r[0],this._dragDataStore={data:{},effectAllowed:void 0,mode:3,types:[]},this._currentHotspotCoordinates={x:null,y:null},this._dragImagePageCoordinates={x:null,y:null};let t=this._sourceNode;if(this._dataTransfer=new b(this._dragDataStore,(function(n,r,o){t=n,"number"!=typeof r&&"number"!=typeof o||(e._dragImageOffset={x:r||0,y:o||0})})),this._dragDataStore.mode=2,this._dataTransfer.dropEffect=r[0],p("dragstart",this._sourceNode,this._lastTouchEvent,this._dragDataStore,this._dataTransfer))return console.log("dnd-poly: dragstart cancelled"),this._dragOperationState=3,this._cleanup(),!1;g("page",this._lastTouchEvent,this._dragImagePageCoordinates);const n=this._config.dragImageSetup(t);var o;if(this._dragImageTransforms=(o=n,f.map((function(e){const t=o.style[e+"transform"];return t&&"none"!==t?t.replace(/translate\(\D*\d+[^,]*,\D*\d+[^,]*\)\s*/g,""):""}))),n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.zIndex="999999",n.classList.add("dnd-poly-drag-image"),n.classList.add("dnd-poly-icon"),this._dragImage=n,!this._dragImageOffset)if(this._config.dragImageOffset)this._dragImageOffset={x:this._config.dragImageOffset.x,y:this._config.dragImageOffset.y};else if(this._config.dragImageCenterOnTouch){const e=getComputedStyle(t);this._dragImageOffset={x:0-parseInt(e.marginLeft,10),y:0-parseInt(e.marginTop,10)}}else{const e=t.getBoundingClientRect(),n=getComputedStyle(t);this._dragImageOffset={x:e.left-this._initialTouch.clientX-parseInt(n.marginLeft,10)+e.width/2,y:e.top-this._initialTouch.clientY-parseInt(n.marginTop,10)+e.height/2}}return l(this._dragImage,this._dragImagePageCoordinates,this._dragImageTransforms,this._dragImageOffset,this._config.dragImageCenterOnTouch),document.body.appendChild(this._dragImage),this._iterationIntervalId=window.setInterval((function(){e._iterationLock?console.log("dnd-poly: iteration skipped because previous iteration hast not yet finished."):(e._iterationLock=!0,e._dragAndDropProcessModelIteration(),e._iterationLock=!1)}),this._config.iterationInterval),!0},e.prototype._cleanup=function(){console.log("dnd-poly: cleanup"),this._iterationIntervalId&&(clearInterval(this._iterationIntervalId),this._iterationIntervalId=null),_("touchmove",this._touchMoveHandler),_("touchend",this._touchEndOrCancelHandler),_("touchcancel",this._touchEndOrCancelHandler),this._dragImage&&(this._dragImage.parentNode.removeChild(this._dragImage),this._dragImage=null),this._dragOperationEndedCb(this._config,this._lastTouchEvent,this._dragOperationState)},e.prototype._onTouchMove=function(e){const t=this;if(!1!==d(e,this._initialTouch.identifier)){if(this._lastTouchEvent=e,0===this._dragOperationState){let t;if(this._config.dragStartConditionOverride)try{t=this._config.dragStartConditionOverride(e)}catch(e){console.error("dnd-poly: error in dragStartConditionOverride hook: "+e),t=!1}else t=1===e.touches.length;return t?void(!0===this._setup()&&(this._initialEvent.preventDefault(),e.preventDefault())):void this._cleanup()}if(console.log("dnd-poly: moving draggable.."),e.preventDefault(),g("client",e,this._currentHotspotCoordinates),g("page",e,this._dragImagePageCoordinates),this._config.dragImageTranslateOverride)try{let n=!1;if(this._config.dragImageTranslateOverride(e,{x:this._currentHotspotCoordinates.x,y:this._currentHotspotCoordinates.y},this._immediateUserSelection,(function(e,r){t._dragImage&&(n=!0,t._currentHotspotCoordinates.x+=e,t._currentHotspotCoordinates.y+=r,t._dragImagePageCoordinates.x+=e,t._dragImagePageCoordinates.y+=r,l(t._dragImage,t._dragImagePageCoordinates,t._dragImageTransforms,t._dragImageOffset,t._config.dragImageCenterOnTouch))})),n)return}catch(e){console.log("dnd-poly: error in dragImageTranslateOverride hook: "+e)}l(this._dragImage,this._dragImagePageCoordinates,this._dragImageTransforms,this._dragImageOffset,this._config.dragImageCenterOnTouch)}},e.prototype._onTouchEndOrCancel=function(e){if(!1!==d(e,this._initialTouch.identifier)){if(this._config.dragImageTranslateOverride)try{this._config.dragImageTranslateOverride(void 0,void 0,void 0,(function(){}))}catch(e){console.log("dnd-poly: error in dragImageTranslateOverride hook: "+e)}0!==this._dragOperationState?(e.preventDefault(),this._dragOperationState="touchcancel"===e.type?3:2):this._cleanup()}},e.prototype._dragAndDropProcessModelIteration=function(){const e=this,n=this._currentDragOperation;this._dragDataStore.mode=3,this._dataTransfer.dropEffect=r[0];const o=p("drag",this._sourceNode,this._lastTouchEvent,this._dragDataStore,this._dataTransfer);if(o&&(console.log("dnd-poly: drag event cancelled."),this._currentDragOperation=r[0]),o||2===this._dragOperationState||3===this._dragOperationState){return this._dragOperationEnded(this._dragOperationState)?void function(e,t,n,r){const o=getComputedStyle(e);if("hidden"===o.visibility||"none"===o.display)return console.log("dnd-poly: source node is not visible. skipping snapback transition."),void r();t.classList.add("dnd-poly-snapback");const i=getComputedStyle(t),a=parseFloat(i.transitionDuration);if(isNaN(a)||0===a)return console.log("dnd-poly: no transition used - skipping snapback"),void r();console.log("dnd-poly: starting dragimage snap back");const _=e.getBoundingClientRect(),c={x:_.left,y:_.top};c.x+=document.body.scrollLeft||document.documentElement.scrollLeft,c.y+=document.body.scrollTop||document.documentElement.scrollTop,c.x-=parseInt(o.marginLeft,10),c.y-=parseInt(o.marginTop,10);const s=parseFloat(i.transitionDelay),u=Math.round(1e3*(a+s));l(t,c,n,void 0,!1),setTimeout(r,u)}(this._sourceNode,this._dragImage,this._dragImageTransforms,(function(){e._finishDragOperation()})):void this._finishDragOperation()}const a=this._config.elementFromPoint(this._currentHotspotCoordinates.x,this._currentHotspotCoordinates.y);console.log("dnd-poly: new immediate user selection is: "+a);const _=this._currentDropTarget;a!==this._immediateUserSelection&&a!==this._currentDropTarget&&(this._immediateUserSelection=a,null!==this._currentDropTarget&&(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=r[0],p("dragexit",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1)),null===this._immediateUserSelection?(this._currentDropTarget=this._immediateUserSelection,console.log("dnd-poly: current drop target changed to null")):(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=w(this._dragDataStore.effectAllowed,this._sourceNode),p("dragenter",this._immediateUserSelection,this._lastTouchEvent,this._dragDataStore,this._dataTransfer)?(console.log("dnd-poly: dragenter default prevented"),this._currentDropTarget=this._immediateUserSelection,this._currentDragOperation=h(this._dataTransfer.effectAllowed,this._dataTransfer.dropEffect)):this._immediateUserSelection!==document.body&&(this._currentDropTarget=document.body))),_!==this._currentDropTarget&&i(_)&&(console.log("dnd-poly: current drop target changed."),this._dragDataStore.mode=3,this._dataTransfer.dropEffect=r[0],p("dragleave",_,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1,this._currentDropTarget)),i(this._currentDropTarget)&&(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=w(this._dragDataStore.effectAllowed,this._sourceNode),!1===p("dragover",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer)?(console.log("dnd-poly: dragover not prevented on possible drop-target."),this._currentDragOperation=r[0]):(console.log("dnd-poly: dragover prevented."),this._currentDragOperation=h(this._dataTransfer.effectAllowed,this._dataTransfer.dropEffect))),console.log("dnd-poly: d'n'd iteration ended. current drag operation: "+this._currentDragOperation),n!==this._currentDragOperation&&this._dragImage.classList.remove(t+n);const c=t+this._currentDragOperation;this._dragImage.classList.add(c)},e.prototype._dragOperationEnded=function(e){console.log("dnd-poly: drag operation end detected with "+this._currentDragOperation);const t=this._currentDragOperation===r[0]||null===this._currentDropTarget||3===e;return t?i(this._currentDropTarget)&&(this._dragDataStore.mode=3,this._dataTransfer.dropEffect=r[0],p("dragleave",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1)):i(this._currentDropTarget)&&(this._dragDataStore.mode=1,this._dataTransfer.dropEffect=this._currentDragOperation,!0===p("drop",this._currentDropTarget,this._lastTouchEvent,this._dragDataStore,this._dataTransfer)?this._currentDragOperation=this._dataTransfer.dropEffect:this._currentDragOperation=r[0]),t},e.prototype._finishDragOperation=function(){console.log("dnd-poly: dragimage snap back transition ended"),this._dragDataStore.mode=3,this._dataTransfer.dropEffect=this._currentDragOperation,p("dragend",this._sourceNode,this._lastTouchEvent,this._dragDataStore,this._dataTransfer,!1),this._dragOperationState=2,this._cleanup()},e}(),v={iterationInterval:150,tryFindDraggableTarget:function(e){let t=e.target;do{if(!1!==t.draggable){if(!0===t.draggable)return t;if(t.getAttribute&&"true"===t.getAttribute("draggable"))return t}}while((t=t.parentNode)&&t!==document.body)},dragImageSetup:function(e){const t=e.cloneNode(!0);return s(e,t),t},elementFromPoint:function(e,t){return document.elementFromPoint(e,t)}};let y;function T(e,t){if(console.log("dnd-poly: global touchstart"),y)return void console.log("dnd-poly: drag operation already active");const n=v.tryFindDraggableTarget(e,t);if(n)try{y=new m(e,v,n,O)}catch(t){throw O(v,e,3),t}else console.log("dnd-poly: no draggable at touchstart coordinates")}function E(e){console.log("dnd-poly: setup delayed dragstart..");const t=e.target,n=e.composedPath(),r=function(e){console.log("dnd-poly: aborting delayed drag because of "+e.type),i.off(),a.off(),_.off(),s.off(),t&&t.dispatchEvent(new CustomEvent("dnd-poly-dragstart-cancel",{bubbles:!0,cancelable:!0})),clearTimeout(o)};t&&t.dispatchEvent(new CustomEvent("dnd-poly-dragstart-pending",{bubbles:!0,cancelable:!0}));const o=window.setTimeout((function(){console.log("dnd-poly: starting delayed drag.."),i.off(),a.off(),_.off(),s.off(),T(e,n)}),v.holdToDrag),i=c(t,"touchend",r),a=c(t,"touchcancel",r),_=c(t,"touchmove",r),s=c(window,"scroll",r,!0)}function O(e,t,n){if(0===n&&(console.log("dnd-poly: Drag never started. Last event was "+t.type),e.defaultActionOverride))try{e.defaultActionOverride(t),t.defaultPrevented&&console.log("dnd-poly: defaultActionOverride has taken care of triggering the default action. preventing default on original event")}catch(e){console.log("dnd-poly: error in defaultActionOverride: "+e)}y=null}window.addEventListener("touchmove",(function(){})),function(e){if(e&&Object.keys(e).forEach((function(t){v[t]=e[t]})),!v.forceApply){const e=function(){const e={dragEvents:"ondragstart"in document.documentElement,draggable:"draggable"in document.documentElement,userAgentSupportingNativeDnD:void 0},t=!!window.chrome||/chrome/i.test(navigator.userAgent);return e.userAgentSupportingNativeDnD=!(/iPad|iPhone|iPod|Android/.test(navigator.userAgent)||t&&"ontouchstart"in document.documentElement),e}();if(e.userAgentSupportingNativeDnD&&e.draggable&&e.dragEvents)return!1}console.log("dnd-poly: Applying mobile drag and drop polyfill."),v.holdToDrag?(console.log("dnd-poly: holdToDrag set to "+v.holdToDrag),a("touchstart",E,!1)):a("touchstart",T,!1)}({tryFindDraggableTarget:function(e,t){const n=t||e.composedPath();for(let e of n){let t=e;do{if(!1!==t.draggable&&t.getAttribute&&"true"===t.getAttribute("draggable"))return t}while((t=t.parentNode)&&t!==document.body)}},elementFromPoint:function(e,t){for(let n of this._path)if(n.elementFromPoint){let r=n.elementFromPoint(e,t);if(r){for(;r.shadowRoot;)r=r.shadowRoot.elementFromPoint(e,t);return r}}},dragStartConditionOverride:function(e){return this._path=e.composedPath(),!0},holdToDrag:500})},2962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PerspectiveViewerElement:()=>$,PerspectiveViewerPluginElement:()=>z});var r={};function o(){return new Worker(n.p+"editor.worker.worker.js")}let i;n.r(r),n.d(r,{ExpressionEditorElement:()=>F,FilterDropDownElement:()=>W,PerspectiveColumnStyleElement:()=>U,PerspectiveViewerElement:()=>V,default:()=>B,register_plugin:()=>R});let a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();let _=null;function c(){return null!==_&&_.buffer===i.memory.buffer||(_=new Uint8Array(i.memory.buffer)),_}function s(e,t){return a.decode(c().subarray(e,e+t))}const u=new Array(32).fill(void 0);u.push(void 0,null,!0,!1);let d=u.length;function g(e){d===u.length&&u.push(u.length+1);const t=d;return d=u[t],u[t]=e,t}function f(e){return u[e]}let l=0,b=new TextEncoder("utf-8");const w="function"==typeof b.encodeInto?function(e,t){return b.encodeInto(e,t)}:function(e,t){const n=b.encode(e);return t.set(n),{read:e.length,written:n.length}};function p(e,t,n){if(void 0===n){const n=b.encode(e),r=t(n.length);return c().subarray(r,r+n.length).set(n),l=n.length,r}let r=e.length,o=t(r);const i=c();let a=0;for(;a<r;a++){const t=e.charCodeAt(a);if(t>127)break;i[o+a]=t}if(a!==r){0!==a&&(e=e.slice(a)),o=n(o,r,r=a+3*e.length);const t=c().subarray(o+a,o+r);a+=w(e,t).written}return l=a,o}let h=null;function m(){return null!==h&&h.buffer===i.memory.buffer||(h=new Int32Array(i.memory.buffer)),h}function v(e){const t=f(e);return function(e){e<36||(u[e]=d,d=e)}(e),t}function y(e){return null==e}let T=null;function E(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let n="[";t>0&&(n+=E(e[0]));for(let r=1;r<t;r++)n+=", "+E(e[r]);return n+="]",n}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let r;if(!(n.length>1))return toString.call(e);if(r=n[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function O(e,t,n,r){const o={a:e,b:t,cnt:1,dtor:n},a=(...e)=>{o.cnt++;const t=o.a;o.a=0;try{return r(t,o.b,...e)}finally{0==--o.cnt?i.__wbindgen_export_2.get(o.dtor)(t,o.b):o.a=t}};return a.original=o,a}function S(e,t){i._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f0393b7c688cd26(e,t)}function C(e,t,n,r){const o={a:e,b:t,cnt:1,dtor:n},a=(...e)=>{o.cnt++;try{return r(o.a,o.b,...e)}finally{0==--o.cnt&&(i.__wbindgen_export_2.get(o.dtor)(o.a,o.b),o.a=0)}};return a.original=o,a}function D(e,t,n){i._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0055515a3255e576(e,t,g(n))}function I(e,t,n){return v(i._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4dfcab3f0f5a91ec(e,t,g(n)))}function j(e,t,n){i._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h995c625052d8eabb(e,t,g(n))}function k(e,t){return v(i._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h914fb479cd443ebe(e,t))}function x(e,t,n,r,o){return v(i._dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9d8bdb0a9cd8866f(e,t,g(n),g(r),g(o)))}function A(e,t,n){i._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h303f94a6f2fe9410(e,t,g(n))}let P=32;function L(e,t,n){try{i._dyn_core__ops__function__FnMut___A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc46afe3cd27c0087(e,t,function(e){if(1==P)throw new Error("out of js stack");return u[--P]=e,P}(n))}finally{u[P++]=void 0}}function N(e,t){i._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h19ae12bc7ab1830f(e,t)}function M(e,t,n){i._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4f0bea1752253b0f(e,t,g(n))}function H(e,t){try{return e.apply(this,t)}catch(e){i.__wbindgen_exn_store(g(e))}}function R(e){var t=p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=l;i.register_plugin(t,n)}class F{__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();i.__wbg_expressioneditorelement_free(e)}}class W{__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();i.__wbg_filterdropdownelement_free(e)}}class U{static __wrap(e){const t=Object.create(U.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();i.__wbg_perspectivecolumnstyleelement_free(e)}constructor(e,t,n){var r=i.perspectivecolumnstyleelement_new(g(e),g(t),g(n));return U.__wrap(r)}reset(e,t){i.perspectivecolumnstyleelement_reset(this.ptr,g(e),g(t))}open(e){i.perspectivecolumnstyleelement_open(this.ptr,g(e))}close(){i.perspectivecolumnstyleelement_close(this.ptr)}connected_callback(){i.perspectivecolumnstyleelement_connected_callback(this.ptr)}}class V{static __wrap(e){const t=Object.create(V.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();i.__wbg_perspectiveviewerelement_free(e)}constructor(e){var t=i.perspectiveviewerelement_new(g(e));return V.__wrap(t)}connected_callback(){i.perspectiveviewerelement_connected_callback(this.ptr)}js_load(e){return v(i.perspectiveviewerelement_js_load(this.ptr,g(e)))}js_delete(){return 0!==i.perspectiveviewerelement_js_delete(this.ptr)}js_get_table(){return v(i.perspectiveviewerelement_js_get_table(this.ptr))}js_flush(){return v(i.perspectiveviewerelement_js_flush(this.ptr))}js_restore(e){return v(i.perspectiveviewerelement_js_restore(this.ptr,g(e)))}js_save(e){var t=y(e)?0:p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=l;return v(i.perspectiveviewerelement_js_save(this.ptr,t,n))}js_download(e){return v(i.perspectiveviewerelement_js_download(this.ptr,e))}js_copy(e){return v(i.perspectiveviewerelement_js_copy(this.ptr,e))}js_reset(){return v(i.perspectiveviewerelement_js_reset(this.ptr))}js_resize(){return v(i.perspectiveviewerelement_js_resize(this.ptr))}js_get_edit_port(){return i.perspectiveviewerelement_js_get_edit_port(this.ptr)}js_restyle_element(){return v(i.perspectiveviewerelement_js_restyle_element(this.ptr))}js_set_throttle(e){i.perspectiveviewerelement_js_set_throttle(this.ptr,!y(e),y(e)?0:e)}js_toggle_config(e){return v(i.perspectiveviewerelement_js_toggle_config(this.ptr,y(e)?16777215:e?1:0))}js_get_all_plugins(){return v(i.perspectiveviewerelement_js_get_all_plugins(this.ptr))}js_get_plugin(e){var t=y(e)?0:p(e,i.__wbindgen_malloc,i.__wbindgen_realloc),n=l;return v(i.perspectiveviewerelement_js_get_plugin(this.ptr,t,n))}}const B=async function e(t){void 0===t&&(t=new URL(n(3042),n.b));const r={wbg:{}};r.wbg.__wbindgen_json_parse=function(e,t){return g(JSON.parse(s(e,t)))},r.wbg.__wbindgen_json_serialize=function(e,t){const n=f(t);var r=p(JSON.stringify(void 0===n?null:n),i.__wbindgen_malloc,i.__wbindgen_realloc),o=l;m()[e/4+1]=o,m()[e/4+0]=r},r.wbg.__wbindgen_object_clone_ref=function(e){return g(f(e))},r.wbg.__wbindgen_object_drop_ref=function(e){v(e)},r.wbg.__wbindgen_cb_drop=function(e){const t=v(e).original;if(1==t.cnt--)return t.a=0,!0;return!1},r.wbg.__wbindgen_string_new=function(e,t){return g(s(e,t))},r.wbg.__wbg_delete_75e56763d9805961=function(){return H((function(e){return g(f(e).delete())}),arguments)},r.wbg.__wbg_schema_79513c1df16b4c2c=function(){return H((function(e){return g(f(e).schema())}),arguments)},r.wbg.__wbg_columns_870430574463543a=function(){return H((function(e){return g(f(e).columns())}),arguments)},r.wbg.__wbg_view_69641a4824b030e8=function(){return H((function(e,t){return g(f(e).view(f(t)))}),arguments)},r.wbg.__wbg_resize_cee9974f1faa1a98=function(){return H((function(e){return g(f(e).resize())}),arguments)},r.wbg.__wbg_numcolumns_cab8d1eb4091d76d=function(){return H((function(e){return g(f(e).num_columns())}),arguments)},r.wbg.__wbg_tocsv_fe88c5b31540cbf0=function(){return H((function(e,t){return g(f(e).to_csv(v(t)))}),arguments)},r.wbg.__wbg_numrows_b7038dfe44e38355=function(){return H((function(e){return g(f(e).num_rows())}),arguments)},r.wbg.__wbg_monacomodule_c764c8fbdbbfa3cd=function(){return g(async function(){return Promise.all([n.e(151),n.e(641)]).then(n.bind(n,8466))}())},r.wbg.__wbg_size_8f02e8b3cde4cb45=function(){return H((function(e){return g(f(e).size())}),arguments)},r.wbg.__wbg_update_013059e9d78cee92=function(){return H((function(e,t,n,r,o,i,a){return g(f(e).update(f(t),0===n?void 0:r>>>0,0===o?void 0:i>>>0,0!==a))}),arguments)},r.wbg.__wbg_monacomodule_1727fbe28be38406=function(){return g(async function(){return Promise.all([n.e(151),n.e(968),n.e(390)]).then(n.bind(n,4605))}())},r.wbg.__wbg_schema_685e97d80b871b5e=function(){return H((function(e){return g(f(e).schema())}),arguments)},r.wbg.__wbg_save_7b6b8e5c27a293ac=function(e){return g(f(e).save())},r.wbg.__wbg_restyle_bc15a50476983af9=function(){return H((function(e,t){return g(f(e).restyle(f(t)))}),arguments)},r.wbg.__wbg_draw_ff3ffd277855d22c=function(){return H((function(e,t,n,r,o,i,a){return g(f(e).draw(f(t),0===n?void 0:r>>>0,0===o?void 0:i>>>0,0!==a))}),arguments)},r.wbg.__wbg_validateexpressions_4bafb14c58caa0b8=function(){return H((function(e,t){return g(f(e).validate_expressions(v(t)))}),arguments)},r.wbg.__wbg_makeport_561594f4b95bdd0c=function(){return H((function(e){return g(f(e).make_port())}),arguments)},r.wbg.__wbg_lineNumber_445467815da69a8a=function(e){return f(e).lineNumber},r.wbg.__wbg_column_b9ae46c3ac2e1ddf=function(e){return f(e).column},r.wbg.__wbg_findTokenIndexAtOffset_cb3b05dfea1a5261=function(e,t){return f(e).findTokenIndexAtOffset(t>>>0)},r.wbg.__wbg_getClassName_4e8c14389490bd59=function(e,t){return g(f(e).getClassName(t>>>0))},r.wbg.__wbindgen_jsval_eq=function(e,t){return f(e)===f(t)},r.wbg.__wbg_triggerKind_c114da5ca591d4c0=function(e){return f(e).triggerKind},r.wbg.__wbg_restore_23e7eb3e3c399c09=function(e,t){f(e).restore(f(t))},r.wbg.__wbg_delete_4e58163eab20980d=function(e){f(e).delete()},r.wbg.__wbg_setrenderwarning_5dc1be19d9e857de=function(e,t){f(e).render_warning=0!==t},r.wbg.__wbindgen_is_undefined=function(e){return void 0===f(e)},r.wbg.__wbg_new_10684e89f34edb3f=function(){return g(new o)},r.wbg.__wbg_editor_58c28ebfe8a4f76b=function(e){return g(f(e).editor)},r.wbg.__wbg_languages_b0d3b70bd88782a8=function(e){return g(f(e).languages)},r.wbg.__wbg_create_b0b9cfa503faf10c=function(e,t,n){return g(f(e).create(v(t),v(n)))},r.wbg.__wbg_defineTheme_559a5fb531a9fa15=function(e,t,n,r){f(e).defineTheme(s(t,n),v(r))},r.wbg.__wbg_setModelMarkers_84ef1a5435f98db0=function(e,t,n,r,o){f(e).setModelMarkers(f(t),s(n,r),f(o))},r.wbg.__wbg_register_41555485b2db08fe=function(e,t){f(e).register(v(t))},r.wbg.__wbg_setMonarchTokensProvider_01fd60431c484b95=function(e,t,n,r){f(e).setMonarchTokensProvider(s(t,n),v(r))},r.wbg.__wbg_setLanguageConfiguration_cf57de718928ddac=function(e,t,n,r){f(e).setLanguageConfiguration(s(t,n),v(r))},r.wbg.__wbg_registerCompletionItemProvider_dc5905489e6463f7=function(e,t,n,r){f(e).registerCompletionItemProvider(s(t,n),v(r))},r.wbg.__wbg_getModel_ffcae107b0ea3fef=function(e){return g(f(e).getModel())},r.wbg.__wbg_getValue_c072ef51cda47cd3=function(e){return g(f(e).getValue())},r.wbg.__wbg_setValue_0ac0c2ed8f872c3c=function(e,t,n){f(e).setValue(s(t,n))},r.wbg.__wbg_setPosition_ef388aa5b1911214=function(e,t){f(e).setPosition(f(t))},r.wbg.__wbg_addCommand_e0c8f49283d571e6=function(e,t,n){f(e).addCommand(t>>>0,f(n))},r.wbg.__wbg_focus_e2926c68341e5e01=function(e){f(e).focus()},r.wbg.__wbg_onDidChangeContent_754b7400d0c7febf=function(e,t){f(e).onDidChangeContent(f(t))},r.wbg.__wbg_getLineTokens_51d816e16b191cec=function(e,t){return g(f(e).getLineTokens(t>>>0))},r.wbg.__wbg_onupdate_7a6172598952a75a=function(e,t){f(e).on_update(f(t))},r.wbg.__wbg_removeupdate_adf7debd55991e0d=function(e,t){f(e).remove_update(f(t))},r.wbg.__wbg_errors_3f6900e5d239b51a=function(e){return g(f(e).errors)},r.wbg.__wbg_expressionschema_163745dc91690929=function(e){return g(f(e).expression_schema)},r.wbg.__wbg_expressionalias_3ab2f4d103c77703=function(e){return g(f(e).expression_alias)},r.wbg.__wbg_name_8e8ae3e3c9ada660=function(e,t){var n=p(f(t).name,i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbg_maxcolumns_9c9b0c30c31fd018=function(e,t){var n=f(t).max_columns;m()[e/4+1]=y(n)?0:n,m()[e/4+0]=!y(n)},r.wbg.__wbg_maxcells_ada0bdc4c8b920ba=function(e,t){var n=f(t).max_cells;m()[e/4+1]=y(n)?0:n,m()[e/4+0]=!y(n)},r.wbg.__wbg_renderwarning_ca1fc98672a5fae8=function(e){var t=f(e).render_warning;return y(t)?16777215:t?1:0},r.wbg.__wbg_selectmode_de35d28aa449c25b=function(e){return g(f(e).select_mode)},r.wbg.__wbg_minconfigcolumns_b706268f77b4beba=function(e,t){var n=f(t).min_config_columns;m()[e/4+1]=y(n)?0:n,m()[e/4+0]=!y(n)},r.wbg.__wbg_configcolumnnames_517ddd8012eafbdb=function(e){var t=f(e).config_column_names;return y(t)?0:g(t)},r.wbg.__wbg_new_59cb74e423758ede=function(){return g(new Error)},r.wbg.__wbg_stack_558ba5917b466edd=function(e,t){var n=p(f(t).stack,i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbg_error_4bb6c2a97407129a=function(e,t){try{console.error(s(e,t))}finally{i.__wbindgen_free(e,t)}},r.wbg.__wbg_newwithu8arraysequence_717878549d30e47f=function(){return H((function(e){return g(new Blob(f(e)))}),arguments)},r.wbg.__wbg_writeText_cacf5a0e39e301cf=function(e,t,n){return g(f(e).writeText(s(t,n)))},r.wbg.__wbg_getPropertyValue_74b0b2fd345b03c9=function(){return H((function(e,t,n,r){var o=p(f(t).getPropertyValue(s(n,r)),i.__wbindgen_malloc,i.__wbindgen_realloc),a=l;m()[e/4+1]=a,m()[e/4+0]=o}),arguments)},r.wbg.__wbg_setProperty_e3d42ccff5ebac2f=function(){return H((function(e,t,n,r,o){f(e).setProperty(s(t,n),s(r,o))}),arguments)},r.wbg.__wbg_new_9907abcf6ec2b9a0=function(){return H((function(e,t){return g(new CustomEvent(s(e,t)))}),arguments)},r.wbg.__wbg_newwitheventinitdict_db06a760c6f3e418=function(){return H((function(e,t,n){return g(new CustomEvent(s(e,t),f(n)))}),arguments)},r.wbg.__wbg_setDragImage_a9b7e618fc64880c=function(e,t,n,r){f(e).setDragImage(f(t),n,r)},r.wbg.__wbg_body_08ba7a3043ff8e77=function(e){var t=f(e).body;return y(t)?0:g(t)},r.wbg.__wbg_createElement_7cbe07ad3289abea=function(){return H((function(e,t,n){return g(f(e).createElement(s(t,n)))}),arguments)},r.wbg.__wbg_createElementNS_ae76308e06470c87=function(){return H((function(e,t,n,r,o){return g(f(e).createElementNS(0===t?void 0:s(t,n),s(r,o)))}),arguments)},r.wbg.__wbg_createTextNode_bbff6f9f6e6b38bf=function(e,t,n){return g(f(e).createTextNode(s(t,n)))},r.wbg.__wbg_width_5c7aabd2a7489c51=function(e){return f(e).width},r.wbg.__wbg_height_b3f5ccd4af20f47f=function(e){return f(e).height},r.wbg.__wbg_top_759d072a3a15fd13=function(e){return f(e).top},r.wbg.__wbg_left_515d30ed4e76f921=function(e){return f(e).left},r.wbg.__wbg_get_59a8aefe136d2a82=function(e,t,n,r){var o=f(t)[s(n,r)],a=y(o)?0:p(o,i.__wbindgen_malloc,i.__wbindgen_realloc),_=l;m()[e/4+1]=_,m()[e/4+0]=a},r.wbg.__wbg_set_a19051e252972900=function(){return H((function(e,t,n,r,o){f(e)[s(t,n)]=s(r,o)}),arguments)},r.wbg.__wbg_delete_da6a924ec6dfb430=function(e,t,n){delete f(e)[s(t,n)]},r.wbg.__wbg_add_7aae9b7574ae2ffd=function(){return H((function(e,t,n){f(e).add(s(t,n))}),arguments)},r.wbg.__wbg_remove_13a99cef9b30fd93=function(){return H((function(e,t,n){f(e).remove(s(t,n))}),arguments)},r.wbg.__wbg_dataTransfer_f3d4cd9b8a33f8cd=function(e){var t=f(e).dataTransfer;return y(t)?0:g(t)},r.wbg.__wbg_instanceof_Element_6bc6669240998e07=function(e){return f(e)instanceof Element},r.wbg.__wbg_namespaceURI_5ab9ad8edd6b745e=function(e,t){var n=f(t).namespaceURI,r=y(n)?0:p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),o=l;m()[e/4+1]=o,m()[e/4+0]=r},r.wbg.__wbg_classList_1f142788c78799ed=function(e){return g(f(e).classList)},r.wbg.__wbg_clientWidth_725008becfa6f008=function(e){return f(e).clientWidth},r.wbg.__wbg_clientHeight_cd4d7e2d713d4b5f=function(e){return f(e).clientHeight},r.wbg.__wbg_children_5570264a02a5348a=function(e){return g(f(e).children)},r.wbg.__wbg_attachShadow_121aeff0e52af368=function(){return H((function(e,t){return g(f(e).attachShadow(f(t)))}),arguments)},r.wbg.__wbg_getAttribute_5d45357036c3ad3d=function(e,t,n,r){var o=f(t).getAttribute(s(n,r)),a=y(o)?0:p(o,i.__wbindgen_malloc,i.__wbindgen_realloc),_=l;m()[e/4+1]=_,m()[e/4+0]=a},r.wbg.__wbg_getBoundingClientRect_813f74e2f4f344e2=function(e){return g(f(e).getBoundingClientRect())},r.wbg.__wbg_hasAttribute_7285532dbf4a3478=function(e,t,n){return f(e).hasAttribute(s(t,n))},r.wbg.__wbg_removeAttribute_43b052e0560d223b=function(){return H((function(e,t,n){f(e).removeAttribute(s(t,n))}),arguments)},r.wbg.__wbg_setAttribute_b638fce95071fff6=function(){return H((function(e,t,n,r,o){f(e).setAttribute(s(t,n),s(r,o))}),arguments)},r.wbg.__wbg_toggleAttribute_611dae8d928bf34f=function(){return H((function(e,t,n,r){return f(e).toggleAttribute(s(t,n),0!==r)}),arguments)},r.wbg.__wbg_target_62e7aaed452a6541=function(e){var t=f(e).target;return y(t)?0:g(t)},r.wbg.__wbg_currentTarget_78272dcb22832a88=function(e){var t=f(e).currentTarget;return y(t)?0:g(t)},r.wbg.__wbg_preventDefault_4eb36ec8e5563ad6=function(e){f(e).preventDefault()},r.wbg.__wbg_stopPropagation_a8397a950849e3f6=function(e){f(e).stopPropagation()},r.wbg.__wbg_addEventListener_63378230aa6735d7=function(){return H((function(e,t,n,r){f(e).addEventListener(s(t,n),f(r))}),arguments)},r.wbg.__wbg_addEventListener_e8fdfac380f9ea25=function(){return H((function(e,t,n,r,o){f(e).addEventListener(s(t,n),f(r),f(o))}),arguments)},r.wbg.__wbg_dispatchEvent_ff22c95b95c5d04d=function(){return H((function(e,t){return f(e).dispatchEvent(f(t))}),arguments)},r.wbg.__wbg_removeEventListener_19da1e4551104118=function(){return H((function(e,t,n,r){f(e).removeEventListener(s(t,n),f(r))}),arguments)},r.wbg.__wbg_removeEventListener_0007cd1449f82876=function(){return H((function(e,t,n,r,o){f(e).removeEventListener(s(t,n),f(r),0!==o)}),arguments)},r.wbg.__wbg_item_a479291920c028ec=function(e,t){var n=f(e).item(t>>>0);return y(n)?0:g(n)},r.wbg.__wbg_dataset_49b9d3bcc6ea66c2=function(e){return g(f(e).dataset)},r.wbg.__wbg_style_854f82bcc16efd28=function(e){return g(f(e).style)},r.wbg.__wbg_offsetWidth_fcd49defe585c688=function(e){return f(e).offsetWidth},r.wbg.__wbg_offsetHeight_bb51b47c9f03728a=function(e){return f(e).offsetHeight},r.wbg.__wbg_blur_11fab903447f8be6=function(){return H((function(e){f(e).blur()}),arguments)},r.wbg.__wbg_click_5bcdaa3dfcd006fb=function(e){f(e).click()},r.wbg.__wbg_focus_a3a607c2c1081818=function(){return H((function(e){f(e).focus()}),arguments)},r.wbg.__wbg_instanceof_HtmlInputElement_bd1ce15e756a8ae2=function(e){return f(e)instanceof HTMLInputElement},r.wbg.__wbg_checked_3edadcb55226cc83=function(e){return f(e).checked},r.wbg.__wbg_setchecked_1fe693236b4c24f3=function(e,t){f(e).checked=0!==t},r.wbg.__wbg_files_942fbf6943996106=function(e){var t=f(e).files;return y(t)?0:g(t)},r.wbg.__wbg_value_e27a74c3db49694f=function(e,t){var n=p(f(t).value,i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbg_setvalue_4f1af4fbd0b9942b=function(e,t,n){f(e).value=s(t,n)},r.wbg.__wbg_instanceof_HtmlSelectElement_9e453923d9cacda8=function(e){return f(e)instanceof HTMLSelectElement},r.wbg.__wbg_value_b431982196f2362c=function(e,t){var n=p(f(t).value,i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbg_setvalue_3bf5c8f910de1ebe=function(e,t,n){f(e).value=s(t,n)},r.wbg.__wbg_instanceof_HtmlTextAreaElement_ceec64505a6bc087=function(e){return f(e)instanceof HTMLTextAreaElement},r.wbg.__wbg_value_41a8d072fc94a8a4=function(e,t){var n=p(f(t).value,i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbg_setvalue_e3b8a9c5a4ad0114=function(e,t,n){f(e).value=s(t,n)},r.wbg.__wbg_keyCode_9de4c14bf3d88f3c=function(e){return f(e).keyCode},r.wbg.__wbg_clientX_df24871aabb01061=function(e){return f(e).clientX},r.wbg.__wbg_shiftKey_31c1bdd985f9be8e=function(e){return f(e).shiftKey},r.wbg.__wbg_relatedTarget_a0da548df21c06bf=function(e){var t=f(e).relatedTarget;return y(t)?0:g(t)},r.wbg.__wbg_clipboard_06b3f6375fedd3b7=function(e){return g(f(e).clipboard)},r.wbg.__wbg_nodeName_36e9b947eea43be6=function(e,t){var n=p(f(t).nodeName,i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbg_isConnected_b09abcd930e87ef7=function(e){return f(e).isConnected},r.wbg.__wbg_parentNode_be5a24e2fde5b638=function(e){var t=f(e).parentNode;return y(t)?0:g(t)},r.wbg.__wbg_lastChild_5fc52139f307fbaa=function(e){var t=f(e).lastChild;return y(t)?0:g(t)},r.wbg.__wbg_setnodeValue_7404ea475784eb1c=function(e,t,n){f(e).nodeValue=0===t?void 0:s(t,n)},r.wbg.__wbg_textContent_8c1def1e3477ec2e=function(e,t){var n=f(t).textContent,r=y(n)?0:p(n,i.__wbindgen_malloc,i.__wbindgen_realloc),o=l;m()[e/4+1]=o,m()[e/4+0]=r},r.wbg.__wbg_appendChild_98dedaeac24501f2=function(){return H((function(e,t){return g(f(e).appendChild(f(t)))}),arguments)},r.wbg.__wbg_contains_2f199b3210c5028a=function(e,t){return f(e).contains(f(t))},r.wbg.__wbg_insertBefore_5886cc01dc0233e3=function(){return H((function(e,t,n){return g(f(e).insertBefore(f(t),f(n)))}),arguments)},r.wbg.__wbg_removeChild_51369e223cb8a779=function(){return H((function(e,t){return g(f(e).removeChild(f(t)))}),arguments)},r.wbg.__wbg_now_5ae3d18d57dd226f=function(e){return f(e).now()},r.wbg.__wbg_instanceof_ShadowRoot_0f1ffdfecd50b13b=function(e){return f(e)instanceof ShadowRoot},r.wbg.__wbg_host_176eeb3f3cb78943=function(e){return g(f(e).host)},r.wbg.__wbg_createObjectURL_e46eb3ca9fdf20c5=function(){return H((function(e,t){var n=p(URL.createObjectURL(f(t)),i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n}),arguments)},r.wbg.__wbg_instanceof_Window_fbe0320f34c4cd31=function(e){return f(e)instanceof Window},r.wbg.__wbg_document_2b44f2a86e03665a=function(e){var t=f(e).document;return y(t)?0:g(t)},r.wbg.__wbg_navigator_74ca2cbc2348b985=function(e){return g(f(e).navigator)},r.wbg.__wbg_innerWidth_c4fa0fec0fd477b8=function(){return H((function(e){return g(f(e).innerWidth)}),arguments)},r.wbg.__wbg_innerHeight_6344b1c89c013158=function(){return H((function(e){return g(f(e).innerHeight)}),arguments)},r.wbg.__wbg_performance_eee010e5e49f08df=function(e){var t=f(e).performance;return y(t)?0:g(t)},r.wbg.__wbg_getComputedStyle_229a290295f66091=function(){return H((function(e,t){var n=f(e).getComputedStyle(f(t));return y(n)?0:g(n)}),arguments)},r.wbg.__wbg_requestAnimationFrame_65ebf8f2415064e2=function(){return H((function(e,t){return f(e).requestAnimationFrame(f(t))}),arguments)},r.wbg.__wbg_setTimeout_62ddbd1dbc58b759=function(){return H((function(e,t,n){return f(e).setTimeout(f(t),n)}),arguments)},r.wbg.__wbg_error_9783be44659339ea=function(e){console.error(f(e))},r.wbg.__wbg_error_5d177043c8522b3b=function(e,t,n){console.error(f(e),f(t),f(n))},r.wbg.__wbg_new_1abc33d4f9ba3e80=function(){return g(new Array)},r.wbg.__wbg_get_a8b9619536c590d4=function(e,t){return g(f(e)[t>>>0])},r.wbg.__wbg_length_4c7aec6f35774e3d=function(e){return f(e).length},r.wbg.__wbg_push_44968dcdf4cfbb43=function(e,t){return f(e).push(f(t))},r.wbg.__wbg_instanceof_ArrayBuffer_c1c493728d7c2825=function(e){return f(e)instanceof ArrayBuffer},r.wbg.__wbg_slice_aed6b880b22578b4=function(e,t,n){return g(f(e).slice(t>>>0,n>>>0))},r.wbg.__wbg_instanceof_Error_ee0400be53261d48=function(e){return f(e)instanceof Error},r.wbg.__wbg_message_def3f4d0edb6218f=function(e){return g(f(e).message)},r.wbg.__wbg_newnoargs_ab5e899738c0eff4=function(e,t){return g(new Function(s(e,t)))},r.wbg.__wbg_call_ab183a630df3a257=function(){return H((function(e,t){return g(f(e).call(f(t)))}),arguments)},r.wbg.__wbg_call_7a2b5e98ac536644=function(){return H((function(e,t,n){return g(f(e).call(f(t),f(n)))}),arguments)},r.wbg.__wbg_is_e8ad5aa6da4b8c83=function(e,t){return Object.is(f(e),f(t))},r.wbg.__wbg_keys_127b01ec83516fee=function(e){return g(Object.keys(f(e)))},r.wbg.__wbg_new_dc5b27cfd2149b8f=function(){return g(new Object)},r.wbg.__wbg_get_4bab9404e99a1f85=function(){return H((function(e,t){return g(Reflect.get(f(e),f(t)))}),arguments)},r.wbg.__wbg_set_3afd31f38e771338=function(){return H((function(e,t,n){return Reflect.set(f(e),f(t),f(n))}),arguments)},r.wbg.__wbg_buffer_bc64154385c04ac4=function(e){return g(f(e).buffer)},r.wbg.__wbg_instanceof_Promise_cbd2e204e5ad538f=function(e){return f(e)instanceof Promise},r.wbg.__wbg_new_bae826039151b559=function(e,t){try{var n={a:e,b:t},r=new Promise(((e,t)=>{const r=n.a;n.a=0;try{return function(e,t,n,r){i.wasm_bindgen__convert__closures__invoke2_mut__hc2d235ec69d537f9(e,t,g(n),g(r))}(r,n.b,e,t)}finally{n.a=r}}));return g(r)}finally{n.a=n.b=0}},r.wbg.__wbg_resolve_9b0f9ddf5f89cb1e=function(e){return g(Promise.resolve(f(e)))},r.wbg.__wbg_then_b4358f6ec1ee6657=function(e,t){return g(f(e).then(f(t)))},r.wbg.__wbg_then_3d9a54b0affdf26d=function(e,t,n){return g(f(e).then(f(t),f(n)))},r.wbg.__wbg_self_77eca7b42660e1bb=function(){return H((function(){return g(self.self)}),arguments)},r.wbg.__wbg_window_51dac01569f1ba70=function(){return H((function(){return g(window.window)}),arguments)},r.wbg.__wbg_globalThis_34bac2d08ebb9b58=function(){return H((function(){return g(globalThis.globalThis)}),arguments)},r.wbg.__wbg_global_1c436164a66c9c22=function(){return H((function(){return g(n.g.global)}),arguments)},r.wbg.__wbg_newwithbyteoffsetandlength_3c8748473807c7cf=function(e,t,n){return g(new Uint8Array(f(e),t>>>0,n>>>0))},r.wbg.__wbg_new_22a33711cf65b661=function(e){return g(new Uint8Array(f(e)))},r.wbg.__wbg_buffer_1e44eb7f10bef0b1=function(e){return g(f(e).buffer)},r.wbg.__wbg_length_e9f6f145de2fede5=function(e){return f(e).length},r.wbg.__wbg_byteLength_b2e6f3c4410077a7=function(e){return f(e).byteLength},r.wbg.__wbg_byteOffset_13609605f9b31148=function(e){return f(e).byteOffset},r.wbg.__wbg_set_b29de3f25280c6ec=function(e,t,n){f(e).set(f(t),n>>>0)},r.wbg.__wbindgen_number_get=function(e,t){const n=f(t);var r="number"==typeof n?n:void 0;(null!==T&&T.buffer===i.memory.buffer||(T=new Float64Array(i.memory.buffer)),T)[e/8+1]=y(r)?0:r,m()[e/4+0]=!y(r)},r.wbg.__wbindgen_is_string=function(e){return"string"==typeof f(e)},r.wbg.__wbindgen_string_get=function(e,t){const n=f(t);var r="string"==typeof n?n:void 0,o=y(r)?0:p(r,i.__wbindgen_malloc,i.__wbindgen_realloc),a=l;m()[e/4+1]=a,m()[e/4+0]=o},r.wbg.__wbindgen_debug_string=function(e,t){var n=p(E(f(t)),i.__wbindgen_malloc,i.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=n},r.wbg.__wbindgen_throw=function(e,t){throw new Error(s(e,t))},r.wbg.__wbindgen_rethrow=function(e){throw v(e)},r.wbg.__wbindgen_memory=function(){return g(i.memory)},r.wbg.__wbindgen_closure_wrapper2142=function(e,t,n){return g(O(e,t,38,S))},r.wbg.__wbindgen_closure_wrapper2144=function(e,t,n){return g(C(e,t,28,D))},r.wbg.__wbindgen_closure_wrapper2146=function(e,t,n){return g(C(e,t,36,I))},r.wbg.__wbindgen_closure_wrapper2148=function(e,t,n){return g(C(e,t,34,j))},r.wbg.__wbindgen_closure_wrapper2150=function(e,t,n){return g(O(e,t,30,k))},r.wbg.__wbindgen_closure_wrapper2152=function(e,t,n){return g(C(e,t,40,x))},r.wbg.__wbindgen_closure_wrapper2154=function(e,t,n){return g(O(e,t,32,A))},r.wbg.__wbindgen_closure_wrapper6787=function(e,t,n){return g(O(e,t,1152,L))},r.wbg.__wbindgen_closure_wrapper7369=function(e,t,n){return g(O(e,t,1210,N))},r.wbg.__wbindgen_closure_wrapper7432=function(e,t,n){return g(O(e,t,1223,M))},("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:a,module:_}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await t,r);return i=a.exports,e.__wbindgen_wasm_module=_,i};n(7829);class z extends HTMLElement{constructor(){super()}get name(){return"Debug"}get select_mode(){return"select"}get min_config_columns(){}get config_column_names(){}async update(e){return this.draw(e)}async draw(e){this.style.backgroundColor="#fff";const t=await e.to_csv({config:{delimiter:"|"}});this.innerHTML=`<pre style='margin:0;overflow:scroll;position:absolute;width:100%;height:100%'>${t}</pre>`}async clear(){this.innerHTML=""}async resize(){}async restyle(){}async save(){}async restore(){}async delete(){}}document.createElement("perspective-viewer-plugin").constructor===HTMLElement&&window.customElements.define("perspective-viewer-plugin",z),window.addEventListener("unhandledrejection",(e=>{var t;"View method cancelled"===(null===(t=e.reason)||void 0===t?void 0:t.message)&&e.preventDefault()}));const X=Promise.resolve().then(n.bind(n,3042)).then((async function({default:e}){return await B(e),r}));class $ extends HTMLElement{constructor(){super(),this.load_wasm()}async load_wasm(){const e=await X;this.instance||(this.instance=new e.PerspectiveViewerElement(this))}async connectedCallback(){await this.load_wasm(),this.instance.connected_callback()}static async registerPlugin(e){(await X).register_plugin(e)}async load(e){await this.load_wasm(),await this.instance.js_load(e)}async notifyResize(){await this.load_wasm(),await this.instance.js_resize()}async getTable(){await this.load_wasm();return await this.instance.js_get_table()}async restore(e){await this.load_wasm(),await this.instance.js_restore(e)}async save(e){await this.load_wasm();return await this.instance.js_save(e)}async flush(){await this.load_wasm(),await this.instance.js_flush()}async reset(){await this.load_wasm(),await this.instance.js_reset()}async delete(){await this.load_wasm(),await this.instance.js_delete()}async download(e){await this.load_wasm(),await this.instance.js_download(e)}async copy(e){await this.load_wasm(),await this.instance.js_copy(e)}async restyleElement(){await this.load_wasm(),await this.instance.js_restyle_element()}async getEditPort(){await this.load_wasm();return await this.instance.js_get_edit_port()}async setThrottle(e){await this.load_wasm(),await this.instance.js_set_throttle(e)}async toggleConfig(e){await this.load_wasm(),await this.instance.js_toggle_config(e)}async getPlugin(e){await this.load_wasm();return await this.instance.js_get_plugin(e)}async getAllPlugins(){await this.load_wasm();return await this.instance.js_get_all_plugins()}}document.createElement("perspective-viewer").constructor===HTMLElement&&window.customElements.define("perspective-viewer",$);class Y extends HTMLElement{constructor(){super()}async open(e,t,n){this.instance?this.instance.reset(t,n):this.instance=new U(this,t,n),this.instance.open(e)}}document.createElement("perspective-column-style").constructor===HTMLElement&&window.customElements.define("perspective-column-style",Y)}},r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={id:e,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.exports}return o.m=n,o.amdO={},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"perspective-viewer."+({390:"monaco-exts",641:"monaco"}[e]||e)+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@finos/perspective-viewer:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var _,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var d=s[u];if(d.getAttrib