paraview-lite
Version:
Lite ParaView client for Scientific Visualization on the Web
1 lines • 2.04 MB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"04d1":function(e,t,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"0538":function(e,t,n){"use strict";var r=n("1c0b"),i=n("861d"),a=[].slice,o={},s=function(e,t,n){if(!(t in o)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";o[t]=Function("C,a","return new C("+r.join(",")+")")}return o[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),o=function(){var r=n.concat(a.call(arguments));return this instanceof o?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(o.prototype=t.prototype),o}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):i(r(e))}},"06c5":function(e,t,n){"use strict";n.d(t,"a",function(){return i});n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3");var r=n("6b75");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),a=n("5c6c"),o=n("fc6a"),s=n("a04b"),u=n("5135"),c=n("0cfb"),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=o(e),t=s(t),c)try{return l(e,t)}catch(n){}if(u(e,t))return a(!i.f.call(e,t),e[t])}},"0719":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var r=n("53ca"),i=n("5530"),a=(n("4160"),n("159b"),n("b64b"),n("e0af")),o=n.n(a),s=o()(),u={vtkObject:function(){return null}};function c(e){if(null===e||void 0===e)return e;if(e.isA)return e;if(!e.vtkClass)return s.console&&s.console.error&&s.console.error("Invalid VTK object"),null;var t=u[e.vtkClass];if(!t)return s.console&&s.console.error&&s.console.error("No vtk class found for Object of type ".concat(e.vtkClass)),null;var n=Object(i["a"])({},e);Object.keys(n).forEach(function(e){n[e]&&"object"===Object(r["a"])(n[e])&&n[e].vtkClass&&(n[e]=c(n[e]))});var a=t(n);return a&&a.modified&&a.modified(),a}function l(e,t){u[e]=t}c.register=l},"07ac":function(e,t,n){var r=n("23e7"),i=n("6f53").values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"0b25":function(e,t,n){var r=n("a691"),i=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0b42":function(e,t,n){var r=n("861d"),i=n("e8b5"),a=n("b622"),o=a("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)?r(t)&&(t=t[o],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},"0cb2":function(e,t,n){var r=n("7b0b"),i=Math.floor,a="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,c,l){var f=n+e.length,d=u.length,h=s;return void 0!==c&&(c=r(c),h=o),a.call(l,h,function(r,a){var o;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":o=c[a.slice(1,-1)];break;default:var s=+a;if(0===s)return r;if(s>d){var l=i(s/10);return 0===l?r:l<=d?void 0===u[l-1]?a.charAt(1):u[l-1]+a.charAt(1):r}o=u[s-1]}return void 0===o?"":o})}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),a=n("cc12");e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},"0d03":function(e,t,n){var r=n("6eeb"),i=Date.prototype,a="Invalid Date",o="toString",s=i[o],u=i.getTime;String(new Date(NaN))!=a&&r(i,o,function(){var e=u.call(this);return e===e?s.call(this):a})},"0d3b":function(e,t,n){var r=n("d039"),i=n("b622"),a=n("c430"),o=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach(function(e,r){t["delete"]("b"),n+=r+e}),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},"107c":function(e,t,n){var r=n("d039"),i=n("da84"),a=i.RegExp;e.exports=r(function(){var e=a("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},1148:function(e,t,n){"use strict";var r=n("a691"),i=n("577e"),a=n("1d80");e.exports=function(e){var t=i(a(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},1212:function(e,t,n){(function(e){var r;(function(e,i,a){function o(e){var t=this,n=c();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function u(e,t){var n=new o(e),r=t&&t.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}function c(){var e=4022871197,t=function(t){t=String(t);for(var n=0;n<t.length;n++){e+=t.charCodeAt(n);var r=.02519603282416938*e;e=r>>>0,r-=e,r*=e,e=r>>>0,r-=e,e+=4294967296*r}return 2.3283064365386963e-10*(e>>>0)};return t}i&&i.exports?i.exports=u:n("07d6")&&n("3c35")?(r=function(){return u}.call(t,n,t,i),void 0===r||(i.exports=r)):this.alea=u})(0,e,n("07d6"))}).call(this,n("62e4")(e))},1276:function(e,t,n){"use strict";var r=n("d784"),i=n("44e7"),a=n("825a"),o=n("1d80"),s=n("4840"),u=n("8aa5"),c=n("50c4"),l=n("577e"),f=n("14c3"),d=n("9263"),h=n("9f7f"),p=n("d039"),v=h.UNSUPPORTED_Y,m=[].push,g=Math.min,y=4294967295,b=!p(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});r("split",function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=l(o(this)),a=void 0===n?y:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,a);var s,u,c,f=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,h+"g");while(s=d.call(v,r)){if(u=v.lastIndex,u>p&&(f.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&m.apply(f,s.slice(1)),c=s[0].length,p=u,f.length>=a))break;v.lastIndex===s.index&&v.lastIndex++}return p===r.length?!c&&v.test("")||f.push(""):f.push(r.slice(p)),f.length>a?f.slice(0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=o(this),a=void 0==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(l(i),t,n)},function(e,i){var o=a(this),d=l(e),h=n(r,o,d,i,r!==t);if(h.done)return h.value;var p=s(o,RegExp),m=o.unicode,b=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),w=new p(v?"^(?:"+o.source+")":o,b),x=void 0===i?y:i>>>0;if(0===x)return[];if(0===d.length)return null===f(w,d)?[d]:[];var C=0,A=0,T=[];while(A<d.length){w.lastIndex=v?0:A;var S,_=f(w,v?d.slice(A):d);if(null===_||(S=g(c(w.lastIndex+(v?A:0)),d.length))===C)A=u(d,A,m);else{if(T.push(d.slice(C,A)),T.length===x)return T;for(var E=1;E<=_.length-1;E++)if(T.push(_[E]),T.length===x)return T;A=C=S}}return T.push(d.slice(C)),T}]},!b,v)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"130f":function(e,t,n){var r=n("23e7"),i=n("da84"),a=n("2cf4"),o=!i.setImmediate||!i.clearImmediate;r({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:a.set,clearImmediate:a.clear})},"131a":function(e,t,n){var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},"133d":function(e,t,n){"use strict";var r=n("5530"),i=(n("99af"),n("ace4"),n("d3b7"),n("4a9b"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("4160"),n("a9e3"),n("d81d"),n("13d5"),n("20e7")),a=n("d110"),o=n("c9c2"),s=n("ad89");n("c975"),n("4de4");function u(e){return function(){return a["a"].vtkErrorMacro("vtkProp::".concat(e," - NOT IMPLEMENTED"))}}function c(e,t){t.classHierarchy.push("vtkProp"),e.getMTime=function(){for(var e=t.mtime,n=0;n<t.textures.length;++n){var r=t.textures[n].getMTime();r>e&&(e=r)}return e},e.getNestedProps=function(){return null},e.getActors=function(){return[]},e.getActors2D=function(){return[]},e.getVolumes=function(){return[]},e.pick=u("pick"),e.hasKey=u("hasKey"),e.getNestedVisibility=function(){return t.visibility&&(!t.parentProp||t.parentProp.getNestedVisibility())},e.getNestedPickable=function(){return t.pickable&&(!t.parentProp||t.parentProp.getNestedPickable())},e.getNestedDragable=function(){return t.dragable&&(!t.parentProp||t.parentProp.getNestedDragable())},e.getRedrawMTime=function(){return t.mtime},e.setEstimatedRenderTime=function(e){t.estimatedRenderTime=e,t.savedEstimatedRenderTime=e},e.restoreEstimatedRenderTime=function(){t.estimatedRenderTime=t.savedEstimatedRenderTime},e.addEstimatedRenderTime=function(e){t.estimatedRenderTime+=e},e.setAllocatedRenderTime=function(e){t.allocatedRenderTime=e,t.savedEstimatedRenderTime=t.estimatedRenderTime,t.estimatedRenderTime=0},e.getSupportsSelection=function(){return!1},e.getTextures=function(){return t.textures},e.hasTexture=function(e){return-1!==t.textures.indexOf(e)},e.addTexture=function(n){n&&!e.hasTexture(n)&&(t.textures=t.textures.concat(n),e.modified())},e.removeTexture=function(n){var r=t.textures.filter(function(e){return e!==n});t.textures.length!==r.length&&(t.textures=r,e.modified())},e.removeAllTextures=function(){t.textures=[],e.modified()}}var l={visibility:!0,pickable:!0,dragable:!0,useBounds:!0,allocatedRenderTime:10,estimatedRenderTime:0,savedEstimatedRenderTime:0,renderTimeMultiplier:1,paths:null,textures:[]};function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(t,l,n),a["a"].obj(e,t),a["a"].get(e,t,["estimatedRenderTime","allocatedRenderTime"]),a["a"].setGet(e,t,["visibility","pickable","dragable","useBounds","renderTimeMultiplier","parentProp"]),c(e,t)}var d=a["a"].newInstance(f,"vtkProp"),h={newInstance:d,extend:f};function p(e,t){function n(){e.computeMatrix()}t.classHierarchy.push("vtkProp3D"),e.addPosition=function(n){t.position=t.position.map(function(e,t){return e+n[t]}),e.modified()},e.getOrientationWXYZ=function(){var e=i["c"].create();i["b"].getRotation(e,t.rotation);var n=new Float64Array(3),r=i["c"].getAxisAngle(n,e);return[s["g"](r),n[0],n[1],n[2]]},e.rotateX=function(n){0!==n&&(i["b"].rotateX(t.rotation,t.rotation,s["n"](n)),e.modified())},e.rotateY=function(n){0!==n&&(i["b"].rotateY(t.rotation,t.rotation,s["n"](n)),e.modified())},e.rotateZ=function(n){0!==n&&(i["b"].rotateZ(t.rotation,t.rotation,s["n"](n)),e.modified())},e.rotateWXYZ=function(n,r,a,o){if(0!==n&&(0!==r||0!==a||0!==o)){var u=s["n"](n),c=i["c"].create();i["c"].setAxisAngle(c,[r,a,o],u);var l=new Float64Array(16);i["b"].fromQuat(l,c),i["b"].multiply(t.rotation,t.rotation,l),e.modified()}},e.setOrientation=function(n,r,a){return(n!==t.orientation[0]||r!==t.orientation[1]||a!==t.orientation[2])&&(t.orientation=[n,r,a],i["b"].identity(t.rotation),e.rotateZ(a),e.rotateX(n),e.rotateY(r),e.modified(),!0)},e.setUserMatrix=function(n){i["b"].copy(t.userMatrix,n),e.modified()},e.getMatrix=function(){return e.computeMatrix(),t.matrix},e.computeMatrix=function(){if(e.getMTime()>t.matrixMTime.getMTime()){i["b"].identity(t.matrix),t.userMatrix&&i["b"].multiply(t.matrix,t.matrix,t.userMatrix),i["b"].translate(t.matrix,t.matrix,t.origin),i["b"].translate(t.matrix,t.matrix,t.position),i["b"].multiply(t.matrix,t.matrix,t.rotation),i["b"].scale(t.matrix,t.matrix,t.scale),i["b"].translate(t.matrix,t.matrix,[-t.origin[0],-t.origin[1],-t.origin[2]]),i["b"].transpose(t.matrix,t.matrix),t.isIdentity=!0;for(var n=0;n<4;++n)for(var r=0;r<4;++r)(n===r?1:0)!==t.matrix[n+4*r]&&(t.isIdentity=!1);t.matrixMTime.modified()}},e.getCenter=function(){return o["a"].getCenter(t.bounds)},e.getLength=function(){return o["a"].getLength(t.bounds)},e.getXRange=function(){return o["a"].getXRange(t.bounds)},e.getYRange=function(){return o["a"].getYRange(t.bounds)},e.getZRange=function(){return o["a"].getZRange(t.bounds)},e.getUserMatrix=function(){return t.userMatrix},e.onModified(n)}var v={origin:[0,0,0],position:[0,0,0],orientation:[0,0,0],rotation:null,scale:[1,1,1],bounds:[1,-1,1,-1,1,-1],userMatrix:null,userMatrixMTime:null,cachedProp3D:null,isIdentity:!0,matrixMTime:null};function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(t,v,n),h.extend(e,t,n),t.matrixMTime={},a["a"].obj(t.matrixMTime),a["a"].get(e,t,["bounds","isIdentity"]),a["a"].getArray(e,t,["orientation"]),a["a"].setGetArray(e,t,["origin","position","scale"],3),t.matrix=i["b"].identity(new Float64Array(16)),t.rotation=i["b"].identity(new Float64Array(16)),t.userMatrix=i["b"].identity(new Float64Array(16)),t.transform=null,p(e,t)}var g=a["a"].newInstance(m,"vtkProp3D"),y={newInstance:g,extend:m},b=(n("277d"),{FLAT:0,GOURAUD:1,PHONG:2}),w={POINTS:0,WIREFRAME:1,SURFACE:2},x=b,C={Shading:b,Representation:w,Interpolation:x},A=C.Representation,T=C.Interpolation;function S(e){return function(){return a["a"].vtkErrorMacro("vtkProperty::".concat(e," - NOT IMPLEMENTED"))}}function _(e,t){t.classHierarchy.push("vtkProperty"),e.setColor=function(n,r,i){Array.isArray(n)?t.color[0]===n[0]&&t.color[1]===n[1]&&t.color[2]===n[2]||(t.color[0]=n[0],t.color[1]=n[1],t.color[2]=n[2],e.modified()):t.color[0]===n&&t.color[1]===r&&t.color[2]===i||(t.color[0]=n,t.color[1]=r,t.color[2]=i,e.modified()),e.setDiffuseColor(t.color),e.setAmbientColor(t.color),e.setSpecularColor(t.color)},e.computeCompositeColor=S("ComputeCompositeColor"),e.getColor=function(){var e=0;t.ambient+t.diffuse+t.specular>0&&(e=1/(t.ambient+t.diffuse+t.specular));for(var n=0;n<3;n++)t.color[n]=e*(t.ambient*t.ambientColor[n]+t.diffuse*t.diffuseColor[n]+t.specular*t.specularColor[n]);return[].concat(t.color)},e.addShaderVariable=S("AddShaderVariable"),e.setInterpolationToFlat=function(){return e.setInterpolation(T.FLAT)},e.setInterpolationToGouraud=function(){return e.setInterpolation(T.GOURAUD)},e.setInterpolationToPhong=function(){return e.setInterpolation(T.PHONG)},e.getInterpolationAsString=function(){return a["a"].enumToString(T,t.interpolation)},e.setRepresentationToWireframe=function(){return e.setRepresentation(A.WIREFRAME)},e.setRepresentationToSurface=function(){return e.setRepresentation(A.SURFACE)},e.setRepresentationToPoints=function(){return e.setRepresentation(A.POINTS)},e.getRepresentationAsString=function(){return a["a"].enumToString(A,t.representation)}}var E={color:[1,1,1],ambientColor:[1,1,1],diffuseColor:[1,1,1],specularColor:[1,1,1],edgeColor:[0,0,0],ambient:0,diffuse:1,specular:0,specularPower:1,opacity:1,interpolation:T.GOURAUD,representation:A.SURFACE,edgeVisibility:!1,backfaceCulling:!1,frontfaceCulling:!1,pointSize:1,lineWidth:1,lighting:!0,shading:!1,materialName:null};function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(t,E,n),a["a"].obj(e,t),a["a"].setGet(e,t,["lighting","interpolation","ambient","diffuse","specular","specularPower","opacity","edgeVisibility","lineWidth","pointSize","backfaceCulling","frontfaceCulling","representation"]),a["a"].setGetArray(e,t,["ambientColor","specularColor","diffuseColor","edgeColor"],3),_(e,t)}var O=a["a"].newInstance(D,"vtkProperty"),k=Object(r["a"])({newInstance:O,extend:D},C),I=a["a"].vtkDebugMacro;function M(e,t){t.classHierarchy.push("vtkActor");var n=Object(r["a"])({},e);e.getActors=function(){return e},e.getIsOpaque=function(){if(t.forceOpaque)return!0;if(t.forceTranslucent)return!1;t.property||e.getProperty();var n=t.property.getOpacity()>=1;return n=n&&(!t.texture||!t.texture.isTranslucent()),n=n&&(!t.mapper||t.mapper.getIsOpaque()),n},e.hasTranslucentPolygonalGeometry=function(){return null!==t.mapper&&(null===t.property&&e.setProperty(e.makeProperty()),!e.getIsOpaque())},e.makeProperty=k.newInstance,e.getProperty=function(){return null===t.property&&(t.property=e.makeProperty()),t.property},e.getBounds=function(){if(null===t.mapper)return t.bounds;var n=t.mapper.getBounds();if(!n||6!==n.length)return n;if(n[0]>n[1])return t.mapperBounds=n.concat(),t.bounds=[1,-1,1,-1,1,-1],t.boundsMTime.modified(),n;if(!t.mapperBounds||n[0]!==t.mapperBounds[0]||n[1]!==t.mapperBounds[1]||n[2]!==t.mapperBounds[2]||n[3]!==t.mapperBounds[3]||n[4]!==t.mapperBounds[4]||n[5]!==t.mapperBounds[5]||e.getMTime()>t.boundsMTime.getMTime()){I("Recomputing bounds..."),t.mapperBounds=n.concat();var r=[];o["a"].getCorners(n,r),e.computeMatrix();var a=new Float64Array(16);i["b"].transpose(a,t.matrix),r.forEach(function(e){return i["d"].transformMat4(e,e,a)}),t.bounds[0]=t.bounds[2]=t.bounds[4]=Number.MAX_VALUE,t.bounds[1]=t.bounds[3]=t.bounds[5]=-Number.MAX_VALUE,t.bounds=t.bounds.map(function(e,t){return t%2===0?r.reduce(function(e,n){return e>n[t/2]?n[t/2]:e},e):r.reduce(function(e,n){return e<n[(t-1)/2]?n[(t-1)/2]:e},e)}),t.boundsMTime.modified()}return t.bounds},e.getMTime=function(){var e=n.getMTime();if(null!==t.property){var r=t.property.getMTime();e=r>e?r:e}if(null!==t.backfaceProperty){var i=t.backfaceProperty.getMTime();e=i>e?i:e}return e},e.getRedrawMTime=function(){var e=t.mtime;if(null!==t.mapper){var n=t.mapper.getMTime();e=n>e?n:e,null!==t.mapper.getInput()&&(t.mapper.getInputAlgorithm().update(),n=t.mapper.getInput().getMTime(),e=n>e?n:e)}return e},e.getSupportsSelection=function(){return!!t.mapper&&t.mapper.getSupportsSelection()}}var P={mapper:null,property:null,backfaceProperty:null,forceOpaque:!1,forceTranslucent:!1,bounds:[1,-1,1,-1,1,-1]};function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(t,P,n),y.extend(e,t,n),t.boundsMTime={},a["a"].obj(t.boundsMTime),a["a"].set(e,t,["property"]),a["a"].setGet(e,t,["backfaceProperty","forceOpaque","forceTranslucent","mapper"]),M(e,t)}var V=a["a"].newInstance(R,"vtkActor");t["a"]={newInstance:V,extend:R}},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,a=n("a640"),o=n("2d00"),s=n("605d"),u=a("reduce"),c=!s&&o>79&&o<83;r({target:"Array",proto:!0,forced:!u||c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"143c":function(e,t,n){var r=n("74e8");r("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})},1448:function(e,t,n){var r=n("dfb9"),i=n("b6b7");e.exports=function(e,t){return r(i(e),t)}},"145e":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),a=n("50c4"),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),u=i(e,s),c=i(t,s),l=arguments.length>2?arguments[2]:void 0,f=o((void 0===l?s:i(l,s))-c,s-u),d=1;c<u&&u<c+f&&(d=-1,c+=f-1,u+=f-1);while(f-- >0)c in n?n[u]=n[c]:delete n[u],u+=d,c+=d;return n}},"14c3":function(e,t,n){var r=n("c6b6"),i=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),a=n("17c2"),o=n("9112");for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==a)try{o(c,"forEach",a)}catch(l){c.forEach=a}}},"170b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("50c4"),a=n("23cb"),o=n("b6b7"),s=r.aTypedArray,u=r.exportTypedArrayMethod;u("subarray",function(e,t){var n=s(this),r=n.length,u=a(e,r),c=o(n);return new c(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===t?r:a(t,r))-u))})},"17ac":function(e,t,n){"use strict";var r=n("5530"),i=(n("a9e3"),n("d81d"),n("277d"),n("ad89")),a=n("d110"),o=1e-6,s="coincide",u="disjoint";function c(e,t,n){return e[0]*(n[0]-t[0])+e[1]*(n[1]-t[1])+e[2]*(n[2]-t[2])}function l(e,t,n){var r=n[0]*(e[0]-t[0])+n[1]*(e[1]-t[1])+n[2]*(e[2]-t[2]);return Math.abs(r)}function f(e,t,n,r){var a=[];i["q"](e,t,a);var o=i["j"](n,a);r[0]=e[0]-o*n[0],r[1]=e[1]-o*n[1],r[2]=e[2]-o*n[2]}function d(e,t,n){var r=i["j"](e,t),a=i["j"](t,t);return 0===a&&(a=1),n[0]=e[0]-r*t[0]/a,n[1]=e[1]-r*t[1]/a,n[2]=e[2]-r*t[2]/a,n}function h(e,t,n,r){var a=[];i["q"](e,t,a);var o=i["j"](n,a),s=i["j"](n,n);0!==s?(r[0]=e[0]-o*n[0]/s,r[1]=e[1]-o*n[1]/s,r[2]=e[2]-o*n[2]/s):(r[0]=e[0],r[1]=e[1],r[2]=e[2])}function p(e,t,n,r){var a={intersection:!1,betweenPoints:!1,t:Number.MAX_VALUE,x:[]},s=[],u=[];i["q"](t,e,s),i["q"](n,e,u);var c,l,f=i["j"](r,u),d=i["j"](r,s);return c=d<0?-d:d,l=f<0?-f*o:f*o,c<=l?a:(a.t=f/d,a.x[0]=e[0]+a.t*s[0],a.x[1]=e[1]+a.t*s[1],a.x[2]=e[2]+a.t*s[2],a.intersection=!0,a.betweenPoints=a.t>=0&&a.t<=1,a)}function v(e,t,n,r){var a={intersection:!1,l0:[],l1:[],error:null},c=[];i["e"](t,r,c);var l,f=c.map(function(e){return Math.abs(e)});if(f[0]+f[1]+f[2]<o){var d=[];return i["q"](e,n,d),0===i["j"](t,d)?a.error=s:a.error=u,a}l=f[0]>f[1]&&f[0]>f[2]?"x":f[1]>f[2]?"y":"z";var h=[],p=-i["j"](t,e),v=-i["j"](r,n);switch(l){case"x":h[0]=0,h[1]=(v*t[2]-p*r[2])/c[0],h[2]=(p*r[1]-v*t[1])/c[0];break;case"y":h[0]=(p*r[2]-v*t[2])/c[1],h[1]=0,h[2]=(v*t[0]-p*r[0])/c[1];break;case"z":h[0]=(v*t[1]-p*r[1])/c[2],h[1]=(p*r[0]-v*t[0])/c[2],h[2]=0;break}return a.l0=h,i["a"](h,c,a.l1),a.intersection=!0,a}var m={evaluate:c,distanceToPlane:l,projectPoint:f,projectVector:d,generalizedProjectPoint:h,intersectWithLine:p,intersectWithPlane:v,DISJOINT:u,COINCIDE:s};function g(e,t){t.classHierarchy.push("vtkPlane"),e.distanceToPlane=function(e){return l(e,t.origin,t.normal)},e.projectPoint=function(e,n){f(e,t.origin,t.normal,n)},e.projectVector=function(e,n){return d(e,t.normal,n)},e.push=function(e){if(0!==e)for(var n=0;n<3;n++)t.origin[n]+=e*t.normal[n]},e.generalizedProjectPoint=function(e,n){h(e,t.origin,t.normal,n)},e.evaluateFunction=function(e,n,r){return Array.isArray(e)?t.normal[0]*(e[0]-t.origin[0])+t.normal[1]*(e[1]-t.origin[1])+t.normal[2]*(e[2]-t.origin[2]):t.normal[0]*(e-t.origin[0])+t.normal[1]*(n-t.origin[1])+t.normal[2]*(r-t.origin[2])},e.evaluateGradient=function(e){var n=[t.normal[0],t.normal[1],t.normal[2]];return n},e.intersectWithLine=function(e,n){return p(e,n,t.origin,t.normal)},e.intersectWithPlane=function(e,n){return v(e,n,t.origin,t.normal)}}var y={normal:[0,0,1],origin:[0,0,0]};function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(t,y,n),a["a"].obj(e,t),a["a"].setGetArray(e,t,["normal","origin"],3),g(e,t)}var w=a["a"].newInstance(b,"vtkPlane");t["a"]=Object(r["a"])({newInstance:w,extend:b},m)},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=i("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var r=n("f8cd");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(u){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d1c":function(e,t,n){var r=n("23e7"),i=n("83ab"),a=n("37e8");r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:a})},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),a=n("2d00"),o=i("species");e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"20bf":function(e,t,n){"use strict";var r=n("8aa7"),i=n("ebb5").exportTypedArrayStaticMethod,a=n("a078");i("from",a,r)},"20e7":function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"create",function(){return l}),n.d(r,"fromMat4",function(){return f}),n.d(r,"clone",function(){return d}),n.d(r,"copy",function(){return h}),n.d(r,"fromValues",function(){return p}),n.d(r,"set",function(){return v}),n.d(r,"identity",function(){return m}),n.d(r,"transpose",function(){return g}),n.d(r,"invert",function(){return y}),n.d(r,"adjoint",function(){return b}),n.d(r,"determinant",function(){return w}),n.d(r,"multiply",function(){return x}),n.d(r,"translate",function(){return C}),n.d(r,"rotate",function(){return A}),n.d(r,"scale",function(){return T}),n.d(r,"fromTranslation",function(){return S}),n.d(r,"fromRotation",function(){return _}),n.d(r,"fromScaling",function(){return E}),n.d(r,"fromMat2d",function(){return D}),n.d(r,"fromQuat",function(){return O}),n.d(r,"normalFromMat4",function(){return k}),n.d(r,"projection",function(){return I}),n.d(r,"str",function(){return M}),n.d(r,"frob",function(){return P}),n.d(r,"add",function(){return R}),n.d(r,"subtract",function(){return V}),n.d(r,"multiplyScalar",function(){return B}),n.d(r,"multiplyScalarAndAdd",function(){return F}),n.d(r,"exactEquals",function(){return L}),n.d(r,"equals",function(){return N}),n.d(r,"mul",function(){return j}),n.d(r,"sub",function(){return U});var i={};n.r(i),n.d(i,"create",function(){return G}),n.d(i,"clone",function(){return z}),n.d(i,"copy",function(){return $}),n.d(i,"fromValues",function(){return W}),n.d(i,"set",function(){return H}),n.d(i,"identity",function(){return K}),n.d(i,"transpose",function(){return Y}),n.d(i,"invert",function(){return q}),n.d(i,"adjoint",function(){return X}),n.d(i,"determinant",function(){return Z}),n.d(i,"multiply",function(){return Q}),n.d(i,"translate",function(){return J}),n.d(i,"scale",function(){return ee}),n.d(i,"rotate",function(){return te}),n.d(i,"rotateX",function(){return ne}),n.d(i,"rotateY",function(){return re}),n.d(i,"rotateZ",function(){return ie}),n.d(i,"fromTranslation",function(){return ae}),n.d(i,"fromScaling",function(){return oe}),n.d(i,"fromRotation",function(){return se}),n.d(i,"fromXRotation",function(){return ue}),n.d(i,"fromYRotation",function(){return ce}),n.d(i,"fromZRotation",function(){return le}),n.d(i,"fromRotationTranslation",function(){return fe}),n.d(i,"fromQuat2",function(){return de}),n.d(i,"getTranslation",function(){return he}),n.d(i,"getScaling",function(){return pe}),n.d(i,"getRotation",function(){return ve}),n.d(i,"fromRotationTranslationScale",function(){return me}),n.d(i,"fromRotationTranslationScaleOrigin",function(){return ge}),n.d(i,"fromQuat",function(){return ye}),n.d(i,"frustum",function(){return be}),n.d(i,"perspective",function(){return we}),n.d(i,"perspectiveFromFieldOfView",function(){return xe}),n.d(i,"ortho",function(){return Ce}),n.d(i,"lookAt",function(){return Ae}),n.d(i,"targetTo",function(){return Te}),n.d(i,"str",function(){return Se}),n.d(i,"frob",function(){return _e}),n.d(i,"add",function(){return Ee}),n.d(i,"subtract",function(){return De}),n.d(i,"multiplyScalar",function(){return Oe}),n.d(i,"multiplyScalarAndAdd",function(){return ke}),n.d(i,"exactEquals",function(){return Ie}),n.d(i,"equals",function(){return Me}),n.d(i,"mul",function(){return Pe}),n.d(i,"sub",function(){return Re});var a={};n.r(a),n.d(a,"create",function(){return Ve}),n.d(a,"clone",function(){return Be}),n.d(a,"length",function(){return Fe}),n.d(a,"fromValues",function(){return Le}),n.d(a,"copy",function(){return Ne}),n.d(a,"set",function(){return je}),n.d(a,"add",function(){return Ue}),n.d(a,"subtract",function(){return Ge}),n.d(a,"multiply",function(){return ze}),n.d(a,"divide",function(){return $e}),n.d(a,"ceil",function(){return We}),n.d(a,"floor",function(){return He}),n.d(a,"min",function(){return Ke}),n.d(a,"max",function(){return Ye}),n.d(a,"round",function(){return qe}),n.d(a,"scale",function(){return Xe}),n.d(a,"scaleAndAdd",function(){return Ze}),n.d(a,"distance",function(){return Qe}),n.d(a,"squaredDistance",function(){return Je}),n.d(a,"squaredLength",function(){return et}),n.d(a,"negate",function(){return tt}),n.d(a,"inverse",function(){return nt}),n.d(a,"normalize",function(){return rt}),n.d(a,"dot",function(){return it}),n.d(a,"cross",function(){return at}),n.d(a,"lerp",function(){return ot}),n.d(a,"hermite",function(){return st}),n.d(a,"bezier",function(){return ut}),n.d(a,"random",function(){return ct}),n.d(a,"transformMat4",function(){return lt}),n.d(a,"transformMat3",function(){return ft}),n.d(a,"transformQuat",function(){return dt}),n.d(a,"rotateX",function(){return ht}),n.d(a,"rotateY",function(){return pt}),n.d(a,"rotateZ",function(){return vt}),n.d(a,"angle",function(){return mt}),n.d(a,"zero",function(){return gt}),n.d(a,"str",function(){return yt}),n.d(a,"exactEquals",function(){return bt}),n.d(a,"equals",function(){return wt}),n.d(a,"sub",function(){return xt}),n.d(a,"mul",function(){return Ct}),n.d(a,"div",function(){return At}),n.d(a,"dist",function(){return Tt}),n.d(a,"sqrDist",function(){return St}),n.d(a,"len",function(){return _t}),n.d(a,"sqrLen",function(){return Et}),n.d(a,"forEach",function(){return Dt});var o={};n.r(o),n.d(o,"create",function(){return zt}),n.d(o,"identity",function(){return $t}),n.d(o,"setAxisAngle",function(){return Wt}),n.d(o,"getAxisAngle",function(){return Ht}),n.d(o,"getAngle",function(){return Kt}),n.d(o,"multiply",function(){return Yt}),n.d(o,"rotateX",function(){return qt}),n.d(o,"rotateY",function(){return Xt}),n.d(o,"rotateZ",function(){return Zt}),n.d(o,"calculateW",function(){return Qt}),n.d(o,"exp",function(){return Jt}),n.d(o,"ln",function(){return en}),n.d(o,"pow",function(){return tn}),n.d(o,"slerp",function(){return nn}),n.d(o,"random",function(){return rn}),n.d(o,"invert",function(){return an}),n.d(o,"conjugate",function(){return on}),n.d(o,"fromMat3",function(){return sn}),n.d(o,"fromEuler",function(){return un}),n.d(o,"str",function(){return cn}),n.d(o,"clone",function(){return ln}),n.d(o,"fromValues",function(){return fn}),n.d(o,"copy",function(){return dn}),n.d(o,"set",function(){return hn}),n.d(o,"add",function(){return pn}),n.d(o,"mul",function(){return vn}),n.d(o,"scale",function(){return mn}),n.d(o,"dot",function(){return gn}),n.d(o,"lerp",function(){return yn}),n.d(o,"length",function(){return bn}),n.d(o,"len",function(){return wn}),n.d(o,"squaredLength",function(){return xn}),n.d(o,"sqrLen",function(){return Cn}),n.d(o,"normalize",function(){return An}),n.d(o,"exactEquals",function(){return Tn}),n.d(o,"equals",function(){return Sn}),n.d(o,"rotationTo",function(){return _n}),n.d(o,"sqlerp",function(){return En}),n.d(o,"setAxes",function(){return Dn});var s=1e-6,u="undefined"!==typeof Float32Array?Float32Array:Array,c=Math.random;Math.PI;function l(){var e=new u(9);return u!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function d(e){var t=new u(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function p(e,t,n,r,i,a,o,s,c){var l=new u(9);return l[0]=e,l[1]=t,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function v(e,t,n,r,i,a,o,s,u,c){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=u,e[8]=c,e}function m(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function g(e,t){if(e===t){var n=t[1],r=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function y(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=l*o-s*c,d=-l*a+s*u,h=c*a-o*u,p=n*f+r*d+i*h;return p?(p=1/p,e[0]=f*p,e[1]=(-l*r+i*c)*p,e[2]=(s*r-i*o)*p,e[3]=d*p,e[4]=(l*n-i*u)*p,e[5]=(-s*n+i*a)*p,e[6]=h*p,e[7]=(-c*n+r*u)*p,e[8]=(o*n-r*a)*p,e):null}function b(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],l=t[8];return e[0]=o*l-s*c,e[1]=i*c-r*l,e[2]=r*s-i*o,e[3]=s*u-a*l,e[4]=n*l-i*u,e[5]=i*a-n*s,e[6]=a*c-o*u,e[7]=r*u-n*c,e[8]=n*o-r*a,e}function w(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],c=e[8];return t*(c*a-o*u)+n*(-c*i+o*s)+r*(u*i-a*s)}function x(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=n[0],h=n[1],p=n[2],v=n[3],m=n[4],g=n[5],y=n[6],b=n[7],w=n[8];return e[0]=d*r+h*o+p*c,e[1]=d*i+h*s+p*l,e[2]=d*a+h*u+p*f,e[3]=v*r+m*o+g*c,e[4]=v*i+m*s+g*l,e[5]=v*a+m*u+g*f,e[6]=y*r+b*o+w*c,e[7]=y*i+b*s+w*l,e[8]=y*a+b*u+w*f,e}function C(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=n[0],h=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e[6]=d*r+h*o+c,e[7]=d*i+h*s+l,e[8]=d*a+h*u+f,e}function A(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=Math.sin(n),h=Math.cos(n);return e[0]=h*r+d*o,e[1]=h*i+d*s,e[2]=h*a+d*u,e[3]=h*o-d*r,e[4]=h*s-d*i,e[5]=h*u-d*a,e[6]=c,e[7]=l,e[8]=f,e}function T(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function S(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function _(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function E(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function D(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}function O(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,u=i+i,c=n*o,l=r*o,f=r*s,d=i*o,h=i*s,p=i*u,v=a*o,m=a*s,g=a*u;return e[0]=1-f-p,e[3]=l-g,e[6]=d+m,e[1]=l+g,e[4]=1-c-p,e[7]=h-v,e[2]=d-m,e[5]=h+v,e[8]=1-c-f,e}function k(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],m=t[14],g=t[15],y=n*s-r*o,b=n*u-i*o,w=n*c-a*o,x=r*u-i*s,C=r*c-a*s,A=i*c-a*u,T=l*v-f*p,S=l*m-d*p,_=l*g-h*p,E=f*m-d*v,D=f*g-h*v,O=d*g-h*m,k=y*O-b*D+w*E+x*_-C*S+A*T;return k?(k=1/k,e[0]=(s*O-u*D+c*E)*k,e[1]=(u*_-o*O-c*S)*k,e[2]=(o*D-s*_+c*T)*k,e[3]=(i*D-r*O-a*E)*k,e[4]=(n*O-i*_+a*S)*k,e[5]=(r*_-n*D-a*T)*k,e[6]=(v*A-m*C+g*x)*k,e[7]=(m*w-p*A-g*b)*k,e[8]=(p*C-v*w+g*y)*k,e):null}function I(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function M(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"}function P(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}function R(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e}function V(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}function B(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e}function F(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e}function L(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]}function N(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],u=e[5],c=e[6],l=e[7],f=e[8],d=t[0],h=t[1],p=t[2],v=t[3],m=t[4],g=t[5],y=t[6],b=t[7],w=t[8];return Math.abs(n-d)<=s*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-h)<=s*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(i-p)<=s*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-v)<=s*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(o-m)<=s*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(u-g)<=s*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-y)<=s*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-b)<=s*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(f-w)<=s*Math.max(1,Math.abs(f),Math.abs(w))}Math.hypot||(Math.hypot=function(){var e=0,t=arguments.length;while(t--)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var j=x,U=V;function G(){var e=new u(16);return u!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function z(e){var t=new u(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function $(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function W(e,t,n,r,i,a,o,s,c,l,f,d,h,p,v,m){var g=new u(16);return g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=f,g[11]=d,g[12]=h,g[13]=p,g[14]=v,g[15]=m,g}function H(e,t,n,r,i,a,o,s,u,c,l,f,d,h,p,v,m){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e[6]=s,e[7]=u,e[8]=c,e[9]=l,e[10]=f,e[11]=d,e[12]=h,e[13]=p,e[14]=v,e[15]=m,e}function K(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Y(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function q(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],m=t[14],g=t[15],y=n*s-r*o,b=n*u-i*o,w=n*c-a*o,x=r*u-i*s,C=r*c-a*s,A=i*c-a*u,T=l*v-f*p,S=l*m-d*p,_=l*g-h*p,E=f*m-d*v,D=f*g-h*v,O=d*g-h*m,k=y*O-b*D+w*E+x*_-C*S+A*T;return k?(k=1/k,e[0]=(s*O-u*D+c*E)*k,e[1]=(i*D-r*O-a*E)*k,e[2]=(v*A-m*C+g*x)*k,e[3]=(d*C-f*A-h*x)*k,e[4]=(u*_-o*O-c*S)*k,e[5]=(n*O-i*_+a*S)*k,e[6]=(m*w-p*A-g*b)*k,e[7]=(l*A-d*w+h*b)*k,e[8]=(o*D-s*_+c*T)*k,e[9]=(r*_-n*D-a*T)*k,e[10]=(p*C-v*w+g*y)*k,e[11]=(f*w-l*C-h*y)*k,e[12]=(s*S-o*E-u*T)*k,e[13]=(n*E-r*S+i*T)*k,e[14]=(v*b-p*x-m*y)*k,e[15]=(l*x-f*b+d*y)*k,e):null}function X(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],m=t[14],g=t[15];return e[0]=s*(d*g-h*m)-f*(u*g-c*m)+v*(u*h-c*d),e[1]=-(r*(d*g-h*m)-f*(i*g-a*m)+v*(i*h-a*d)),e[2]=r*(u*g-c*m)-s*(i*g-a*m)+v*(i*c-a*u),e[3]=-(r*(u*h-c*d)-s*(i*h-a*d)+f*(i*c-a*u)),e[4]=-(o*(d*g-h*m)-l*(u*g-c*m)+p*(u*h-c*d)),e[5]=n*(d*g-h*m)-l*(i*g-a*m)+p*(i*h-a*d),e[6]=-(n*(u*g-c*m)-o*(i*g-a*m)+p*(i*c-a*u)),e[7]=n*(u*h-c*d)-o*(i*h-a*d)+l*(i*c-a*u),e[8]=o*(f*g-h*v)-l*(s*g-c*v)+p*(s*h-c*f),e[9]=-(n*(f*g-h*v)-l*(r*g-a*v)+p*(r*h-a*f)),e[10]=n*(s*g-c*v)-o*(r*g-a*v)+p*(r*c-a*s),e[11]=-(n*(s*h-c*f)-o*(r*h-a*f)+l*(r*c-a*s)),e[12]=-(o*(f*m-d*v)-l*(s*m-u*v)+p*(s*d-u*f)),e[13]=n*(f*m-d*v)-l*(r*m-i*v)+p*(r*d-i*f),e[14]=-(n*(s*m-u*v)-o*(r*m-i*v)+p*(r*u-i*s)),e[15]=n*(s*d-u*f)-o*(r*d-i*f)+l*(r*u-i*s),e}function Z(e){var t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],d=e[11],h=e[12],p=e[13],v=e[14],m=e[15],g=t*o-n*a,y=t*s-r*a,b=t*u-i*a,w=n*s-r*o,x=n*u-i*o,C=r*u-i*s,A=c*p-l*h,T=c*v-f*h,S=c*m-d*h,_=l*v-f*p,E=l*m-d*p,D=f*m-d*v;return g*D-y*E+b*_+w*S-x*T+C*A}function Q(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=t[9],h=t[10],p=t[11],v=t[12],m=t[13],g=t[14],y=t[15],b=n[0],w=n[1],x=n[2],C=n[3];return e[0]=b*r+w*s+x*f+C*v,e[1]=b*i+w*u+x*d+C*m,e[2]=b*a+w*c+x*h+C*g,e[3]=b*o+w*l+x*p+C*y,b=n[4],w=n[5],x=n[6],C=n[7],e[4]=b*r+w*s+x*f+C*v,e[5]=b*i+w*u+x*d+C*m,e[6]=b*a+w*c+x*h+C*g,e[7]=b*o+w*l+x*p+C*y,b=n[8],w=n[9],x=n[10],C=n[11],e[8]=b*r+w*s+x*f+C*v,e[9]=b*i+w*u+x*d+C*m,e[10]=b*a+w*c+x*h+C*g,e[11]=b*o+w*l+x*p+C*y,b=n[12],w=n[13],x=n[14],C=n[15],e[12]=b*r+w*s+x*f+C*v,e[13]=b*i+w*u+x*d+C*m,e[14]=b*a+w*c+x*h+C*g,e[15]=b*o+w*l+x*p+C*y,e}function J(e,t,n){var r,i,a,o,s,u,c,l,f,d,h,p,v=n[0],m=n[1],g=n[2];return t===e?(e[12]=t[0]*v+t[4]*m+t[8]*g+t[12],e[13]=t[1]*v+t[5]*m+t[9]*g+t[13],e[14]=t[2]*v+t[6]*m+t[10]*g+t[14],e[15]=t[3]*v+t[7]*m+t[11]*g+t[15]):(r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],d=t[9],h=t[10],p=t[11],e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e[6]=c,e[7]=l,e[8]=f,e[9]=d,e[10]=h,e[11]=p,e[12]=r*v+s*m+f*g+t[12],e[13]=i*v+u*m+d*g+t[13],e[14]=a*v+c*m+h*g+t[14],e[15]=o*v+l*m+p*g+t[15]),e}function ee(e,t,n){var r=n[0],i=n[1],a=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function te(e,t,n,r){var i,a,o,u,c,l,f,d,h,p,v,m,g,y,b,w,x,C,A,T,S,_,E,D,O=r[0],k=r[1],I=r[2],M=Math.hypot(O,k,I);return M<s?null:(M=1/M,O*=M,k*=M,I*=M,i=Math.sin(n),a=Math.cos(n),o=1-a,u=t[0],c=t[1],l=t[2],f=t[3],d=t[4],h=t[5],p=t[6],v=t[7],m=t[8],g=t[9],y=t[10],b=t[11],w=O*O*o+a,x=k*O*o+I*i,C=I*O*o-k*i,A=O*k*o-I*i,T=k*k*o+a,S=I*k*o+O*i,_=O*I*o+k*i,E=k*I*o-O*i,D=I*I*o+a,e[0]=u*w+d*x+m*C,e[1]=c*w+h*x+g*C,e[2]=l*w+p*x+y*C,e[3]=f*w+v*x+b*C,e[4]=u*A+d*T+m*S,e[5]=c*A+h*T+g*S,e[6]=l*A+p*T+y*S,e[7]=f*A+v*T+b*S,e[8]=u*_+d*E+m*D,e[9]=c*_+h*E+g*D,e[10]=l*_+p*E+y*D,e[11]=f*_+v*E+b*D,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function ne(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[4],o=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*r,e[5]=o*i+l*r,e[6]=s*i+f*r,e[7]=u*i+d*r,e[8]=c*i-a*r,e[9]=l*i-o*r,e[10]=f*i-s*r,e[11]=d*i-u*r,e}function re(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],u=t[3],c=t[8],l=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-c*r,e[1]=o*i-l*r,e[2]=s*i-f*r,e[3]=u*i-d*r,e[8]=a*r+c*i,e[9]=o*r+l*i,e[10]=s*r+f*i,e[11]=u*r+d*i,e}function ie(e,t,n){var r=Math.sin(n),i=Math.cos(n),a=t[0],o=t[1],s=t[2],u=t[3],c=t[4],l=t[5],f=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*r,e[1]=o*i+l*r,e[2]=s*i+f*r,e[3]=u*i+d*r,e[4]=c*i-a*r,e[5]=l*i-o*r,e[6]=f*i-s*r,e[7]=d*i-u*r,e}function ae(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function oe(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function se(e,t,n){var r,i,a,o=n[0],u=n[1],c=n[2],l=Math.hypot(o,u,c);return l<s?null:(l=1/l,o*=l,u*=l,c*=l,r=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=u*o*a+c*r,e[2]=c*o*a-u*r,e[3]=0,e[4]=o*u*a-c*r,e[5]=u*u*a+i,e[6]=c*u*a+o*r,e[7]=0,e[8]=o*c*a+u*r,e[9]=u*c*a-o*r,e[10]=c*c*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function ue(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ce(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function le(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function fe(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=r+r,u=i+i,c=a+a,l=r*s,f=r*u,d=r*c,h=i*u,p=i*c,v=a*c,m=o*s,g=o*u,y=o*c;return e[0]=1-(h+v),e[1]=f+y,e[2]=d-g,e[3]=0,e[4]=f-y,e[5]=1-(l+v),e[6]=p+m,e[7]=0,e[8]=d+g,e[9]=p-m,e[10]=1-(l+h),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function de(e,t){var n=new u(3),r=-t[0],i=-t[1],a=-t[2],o=t[3],s=t[4],c=t[5],l=t[6],f=t[7],d=r*r+i*i+a*a+o*o;return d>0?(n[0]=2*(s*o+f*r+c*a-l*i)/d,n[1]=2*(c*o+f*i+l*r-s*a)/d,n[2]=2*(l*o+f*a+s*i-c*r)/d):(n[0]=2*(s*o+f*r+c*a-l*i),n[1]=2*(c*o+f*i+l*r-s*a),n[2]=2*(l*o+f*a+s*i-c*r)),fe(e,t,n),e}function he(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function pe(e,t){var n=t[0],r=t[1],i=t[2],a=t[4],o=t[5],s=t[6],u=t[8],c=t[9],l=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(a,o,s),e[2]=Math.hypot(u,c,l),e}function ve(e,t){var n=new u(3);pe(n,t);var r=1/n[0],i=1/n[1],a=1/n[2],o=t[0]*r,s=t[1]*i,c=t[2]*a,l=t[4]*r,f=t[5]*i,d=t[6]*a,h=t[8]*r,p=t[9]*i,v=t[10]*a,m=o+f+v,g=0;return m>0?(g=2*Math.sqrt(m+1),e[3]=.25*g,e[0]=(d-p)/g,e[1]=(h-c)/g,e[2]=(s-l)/g):o>f&&o>v?(g=2*Math.sqrt(1+o-f-v),e[3]=(d-p)/g,e[0]=.25*g,e[1]=(s+l)/g,e[2]=(h+c)/g):f>v?(g=2*Math.sqrt(1+f-o-v),e[3]=(h-c)/g,e[0]=(s+l)/g,e[1]=.25*g,e[2]=(d+p)/g):(g=2*Math.sqrt(1+v-o-f),e[3]=(s-l)/g,e[0]=(h+c)/g,e[1]=(d+p)/g,e[2]=.25*g),e}function me(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3],u=i+i,c=a+a,l=o+o,f=i*u,d=i*c,h=i*l,p=a*c,v=a*l,m=o*l,g=s*u,y=s*c,b=s*l,w=r[0],x=r[1],C=r[2];return e[0]=(1-(p+m))*w,e[1]=(d+b)*w,e[2]=(h-y)*w,e[3]=0,e[4]=(d-b)*x,e[5]=(1-(f+m))*x,e[6]=(v+g)*x,e[7]=0,e[8]=(h+y)*C,e[9]=(v-g)*C,e[10]=(1-(f+p))*C,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function ge(e,t,n,r,i){var a=t[0],o=t[1],s=t[2],u=t[3],c=a+a,l=o+o,f=s+s,d=a*c,h=a*l,p=a*f,v=o*l,m=o*f,g=s*f,y=u*c,b=u*l,w=u*f,x=r[0],C=r[1],A=r[2],T=i[0],S=i[1],_=i[2],E=(1-(v+g))*x,D=(h+w)*x,O=(p-b)*x,k=(h-w)*C,I=(1-(d+g))*C,M=(m+y)*C,P=(p+b)*A,R=(m-y)*A,V=(1-(d+v))*A;return e[0]=E,e[1]=D,e[2]=O,e[3]=0,e[4]=k,e[5]=I,e[6]=M,e[7]=0,e[8]=P,e[9]=R,e[10]=V,e[11]=0,e[12]=n[0]+T-(E*T+k*S+P*_),e[13]=n[1]+S-(D*T+I*S+R*_),e[14]=n[2]+_-(O*T+M*S+V*_),e[15]=1,e}function ye(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,u=i+i,c=n*o,l=r*o,f=r*s,d=i*o,h=i*s,p=i*u,v=a*o,m=a*s,g=a*u;return e[0]=1-f-p,e[1]=l+g,e[2]=d-m,e[3]=0,e[4]=l-g,e[5]=1-c-p,e[6]=h+v,e[7]=0,e[8]=d+m,e[9]=h-v,e[10]=1-c-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function be(e,t,n,r,i,a,o){var s=1/(n-t),u=1/(i-r),c=1/(a-o);return e[0]=2*a*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*u,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*u,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}function we(e,t,n,r,i){var a,o=1/Math.tan(t/2);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(r-i),e[10]=(i+r)*a,e[14]=2*i*r*a):(e[10]=-1,e[14]=-2*r),e}function xe(e,t,n,r){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),c=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-s)*u*.5,e[9]=(i-a)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}function Ce(e,t,n,r,i,a,o){var s=1/(t-n),u=1/(r-i),c=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*u,e[14]=(o+a)*c,e[15]=1,e}function Ae(e,t,n,r){var i,a,o,u,c,l,f,d,h,p,v=t[0],m=t[1],g=t[2],y=r[0],b=r[1],w=r[2],x=n[0],C=n[1],A=n[2];return Math.abs(v-x)<s&&Math.abs(m-C)<s&&Math.abs(g-A)<s?K(e):(f=v-x,d=m-C,h=g-A,p=1/Math.hypot(f,d,h),f*=p,d*=p,h*=p,i=b*h-w*d,a=w*f-y*h,o=y*d-b*f,p=Math.hypot(i,a,o),p?(p=1/p,i*=p,a*=p,o*=p):(i=0,a=0,o=0),u=d*o-h*a,c=h*i-f*o,l=f*a-d*i,p=Math.hypot(u,c,l),p?(p=1/p,u*=p,c*=p,l*=p):(u=0,c=0,l=0),e[0]=i,e[1]=u,e[2]=f,e[3]=0,e[4]=a,e[5]=c,e[6]=d,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*v+a*m+o*g),e[13]=-(u*v+c*m+l*g),e[14]=-(f*v+d*m+h*g),e[15]=1,e)}function Te(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=r[0],u=r[1],c=r[2],l=i-n[0],f=a-n[1],d=o-n[2],h=l*l+f*f+d*d;h>0&&(h=1/Math.sqrt(h),l*=h,f*=h,d*=h);var p=u*d-c*f,v=c*l-s*d,m=s*f-u*l;return h=p*p+v*v+m*m,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,m*=h),e[0]=p,e[1]=v,e[2]=m,e[3]=0,e[4]=f*m-d*v,e[5]=d*p-l*m,e[6]=l*v-f*p,e[7]=0,e[8]=l,e[9]=f,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=o,e[15]=1,e}function Se(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function _e(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Ee(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],