pccv_front/public/autodesk/extensions/ViewCubeUi/ViewCubeUi.min.js
2025-08-29 11:44:29 +08:00

18 lines
52 KiB
JavaScript

/*!
* LMV v7.99.1
*
* Copyright 2024 Autodesk, Inc.
* All rights reserved.
*
* This computer source code and related instructions and comments are the
* unpublished confidential and proprietary information of Autodesk, Inc.
* and are protected under Federal copyright and state trade secret law.
* They may not be disclosed to, copied or used by any third party without
* the prior written consent of Autodesk, Inc.
*
* Autodesk Viewer SDK Usage Limitations:
*
* The Autodesk Viewer SDK JavaScript must be delivered from an
* Autodesk-hosted URL.
*/(()=>{var e={4962:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(1354),i=n.n(o),r=n(6314),a=n.n(r)()(i());a.push([e.id,".viewcube,.viewcubeWrapper{display:block;position:absolute;outline:none;width:170px;height:170px;right:-1px;top:-1px;opacity:.7;margin:0;-webkit-transition:opacity .2s ease;-moz-transition:opacity .2s ease;-ms-transition:opacity .2s ease;-o-transition:opacity .2s ease;transition:opacity .2s ease}.viewcubeWrapper{pointer-events:none}.viewcube{pointer-events:auto}.rewindFrame{background-color:#fff;position:absolute;height:56px;width:56px;z-index:1002}.dropDownMenu{position:absolute;min-width:220px;margin:0;z-index:1001;background-color:#fff;font-family:sans-serif;font-size:14px;list-style-type:none;border:solid;border-width:1px;border-color:#979797}.dropDownMenuItem{position:relative;width:calc(100% - 24px);height:21px;padding-left:24px;padding-top:4px;background-color:#fff;cursor:pointer}.dropDownMenuCheckbox{position:relative;width:calc(100% - 4px);padding-top:4px;height:21px;margin-left:4px;background-color:#fff;cursor:pointer}.dropDownMenuCheck{padding-top:2px;cursor:pointer}.dropDownMenuCheckText{position:relative;padding-left:2px;margin:0;cursor:pointer}.dropDownMenuItemDisabled{color:#999;position:relative;width:calc(100% - 5px);height:23px;background-color:#fff;cursor:pointer}.dropDownMenuItem:hover{background-color:#e7eef6}.dropDownMenuCheckbox:hover{background-color:#e7eef6}.textBox{font-size:15px;background-color:#000;opacity:.6;padding:2px 10px;border-radius:2px;position:fixed;display:none;font-family:Monospace;color:#fff;z-index:1000}#colorCode{position:absolute;left:0px;top:0px}#text,#steeringWheel{position:absolute;left:0px;top:0px;z-index:900}.homeViewWrapper{display:block;outline:none;margin:18px 0px 0px -20px;opacity:.7;width:24px;height:24px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzAB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O0rbsrMiHLQAa4S/z+O5cbIrb/1nX9c++BrNnZ+T1jPh+0/x78GuBjAFsN4U22Zd1EAAAAAElFTkSuQmCC);cursor:pointer;pointer-events:auto}.homeViewWrapper:hover{opacity:1}.homeViewWrapper.no-viewcube{position:absolute;right:12px;top:10px;margin:0}.homeViewMenu{display:none;position:absolute;right:10px;top:28px;background-color:#fff;border:1px solid #979797;z-index:1}.homeViewMenuItem{padding:5px 20px;font-family:sans-serif;font-size:14px;cursor:pointer;z-index:2}.homeViewMenuItem:hover{background-color:#e7eef6}.homeViewWrapper .homeViewMenuHandle{display:none;position:relative;left:18px;top:18px}","",{version:3,sources:["webpack://./extensions/ViewCubeUi/ViewCubeUi.css"],names:[],mappings:"AAAA,2BAA2B,aAAa,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,mCAAmC,CAAC,gCAAgC,CAAC,+BAA+B,CAAC,8BAA8B,CAAC,2BAA2B,CAAC,iBAAiB,mBAAmB,CAAC,UAAU,mBAAmB,CAAC,aAAa,qBAAqB,CAAC,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,cAAc,iBAAiB,CAAC,eAAe,CAAC,QAAQ,CAAC,YAAY,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,cAAc,CAAC,oBAAoB,CAAC,YAAY,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,kBAAkB,iBAAiB,CAAC,uBAAuB,CAAC,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC,qBAAqB,CAAC,cAAc,CAAC,sBAAsB,iBAAiB,CAAC,sBAAsB,CAAC,eAAe,CAAC,WAAW,CAAC,eAAe,CAAC,qBAAqB,CAAC,cAAc,CAAC,mBAAmB,eAAe,CAAC,cAAc,CAAC,uBAAuB,iBAAiB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,cAAc,CAAC,0BAA0B,UAAU,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,WAAW,CAAC,qBAAqB,CAAC,cAAc,CAAC,wBAAwB,wBAAwB,CAAC,4BAA4B,wBAAwB,CAAC,SAAS,cAAc,CAAC,qBAAqB,CAAC,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,cAAc,CAAC,YAAY,CAAC,qBAAqB,CAAC,UAAU,CAAC,YAAY,CAAC,WAAW,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,qBAAqB,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,aAAa,CAAC,YAAY,CAAC,yBAAyB,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,4qIAA4qI,CAAC,cAAc,CAAC,mBAAmB,CAAC,uBAAuB,SAAS,CAAC,6BAA6B,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,YAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,SAAS,CAAC,kBAAkB,gBAAgB,CAAC,sBAAsB,CAAC,cAAc,CAAC,cAAc,CAAC,SAAS,CAAC,wBAAwB,wBAAwB,CAAC,qCAAqC,YAAY,CAAC,iBAAiB,CAAC,SAAS,CAAC,QAAQ",sourcesContent:[".viewcube,.viewcubeWrapper{display:block;position:absolute;outline:none;width:170px;height:170px;right:-1px;top:-1px;opacity:.7;margin:0;-webkit-transition:opacity .2s ease;-moz-transition:opacity .2s ease;-ms-transition:opacity .2s ease;-o-transition:opacity .2s ease;transition:opacity .2s ease}.viewcubeWrapper{pointer-events:none}.viewcube{pointer-events:auto}.rewindFrame{background-color:#fff;position:absolute;height:56px;width:56px;z-index:1002}.dropDownMenu{position:absolute;min-width:220px;margin:0;z-index:1001;background-color:#fff;font-family:sans-serif;font-size:14px;list-style-type:none;border:solid;border-width:1px;border-color:#979797}.dropDownMenuItem{position:relative;width:calc(100% - 24px);height:21px;padding-left:24px;padding-top:4px;background-color:#fff;cursor:pointer}.dropDownMenuCheckbox{position:relative;width:calc(100% - 4px);padding-top:4px;height:21px;margin-left:4px;background-color:#fff;cursor:pointer}.dropDownMenuCheck{padding-top:2px;cursor:pointer}.dropDownMenuCheckText{position:relative;padding-left:2px;margin:0;cursor:pointer}.dropDownMenuItemDisabled{color:#999;position:relative;width:calc(100% - 5px);height:23px;background-color:#fff;cursor:pointer}.dropDownMenuItem:hover{background-color:#e7eef6}.dropDownMenuCheckbox:hover{background-color:#e7eef6}.textBox{font-size:15px;background-color:#000;opacity:.6;padding:2px 10px;border-radius:2px;position:fixed;display:none;font-family:Monospace;color:#fff;z-index:1000}#colorCode{position:absolute;left:0px;top:0px}#text,#steeringWheel{position:absolute;left:0px;top:0px;z-index:900}.homeViewWrapper{display:block;outline:none;margin:18px 0px 0px -20px;opacity:.7;width:24px;height:24px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo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OAOAJAKCwxIgIO/TBtixrGIbhIgzDhWVZQwCwxfV5vgvANk3zJYqiJeccOecYRdEyhRQBSkU7bzabl57nGaqqKumkqqpKr9c73mw274QQQMTHwh7kiff7/RNRXIR4nmes1+utEJKWJ9Nk2zCMi8FgcEopVbalGMfxqtPpvI1Go1sZRAawdV13GGONInER4rpuMB6P/Swkew5a+4oDAFBKFcZYQ9d1hxDSysvArNVqru/7Z+VyWfnKoZrP5yvHcV6n0ylDxOcs4HoymVxVKhUqW6xp2oP4zTk/l8XNZrO4Xq/fIGI3W6Jqnrhg7cRzLdGoyn7TQNO0rbsrMiHLQAa4S/z+O5cbIrb/1nX9c++BrNnZ+T1jPh+0/x78GuBjAFsN4U22Zd1EAAAAAElFTkSuQmCC);cursor:pointer;pointer-events:auto}.homeViewWrapper:hover{opacity:1}.homeViewWrapper.no-viewcube{position:absolute;right:12px;top:10px;margin:0}.homeViewMenu{display:none;position:absolute;right:10px;top:28px;background-color:#fff;border:1px solid #979797;z-index:1}.homeViewMenuItem{padding:5px 20px;font-family:sans-serif;font-size:14px;cursor:pointer;z-index:2}.homeViewMenuItem:hover{background-color:#e7eef6}.homeViewWrapper .homeViewMenuHandle{display:none;position:relative;left:18px;top:18px}"],sourceRoot:""}]);const s=a},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,i,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var p=0;p<e.length;p++){var u=[].concat(e[p]);o&&a[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1354:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),r="/*# ".concat(i," */");return[t].concat([r]).join("\n")}return[t].join("\n")}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var r={},a=[],s=0;s<e.length;s++){var c=e[s],p=o.base?c[0]+o.base:c[0],u=r[p]||0,A="".concat(p," ").concat(u);r[p]=u+1;var l=n(A),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==l)t[l].references++,t[l].updater(h);else{var d=i(h,o);o.byIndex=s,t.splice(s,0,{identifier:A,updater:d,references:1})}a.push(A)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var r=o(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<r.length;a++){var s=n(r[a]);t[s].references--}for(var c=o(e,i),p=0;p<r.length;p++){var u=n(r[p]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}r=c}}},7659:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={id:o,exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{ViewCubeUi:()=>U});const e=THREE;let t={uniforms:{tCube:{type:"t",value:null},tFlip:{type:"f",value:-1}},vertexShader:["varying vec3 vWorldPosition;",e.ShaderChunk.common,e.ShaderChunk.logdepthbuf_pars_vertex,"void main() {","\tvWorldPosition = transformDirection( position, modelMatrix );","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",e.ShaderChunk.logdepthbuf_vertex,"}"].join("\n"),fragmentShader:["uniform samplerCube tCube;","uniform float tFlip;","varying vec3 vWorldPosition;",e.ShaderChunk.common,e.ShaderChunk.logdepthbuf_pars_fragment,"void main() {","\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );",e.ShaderChunk.logdepthbuf_fragment,"}"].join("\n")};const i=Autodesk.Viewing,r=i.Private,a=r.DDSLoader,{createShaderMaterial:s}=r.ShaderUtils,c=r.WebGLRenderer,p=r.logger,u=i.isMobileDevice,{errorCodeString:A,ErrorCodes:l}=i,h=i.endpoint,d=i.getGlobal,m=i.GlobalManagerMixin,w=1e-5,v=e.MeshBasicMaterial;var f=function(e){return Math.abs(e-1)<1e-12},C=function(e){return!(!f(e.length())||!f(Math.abs(e.x))&&!f(Math.abs(e.y))&&!f(Math.abs(e.z)))};const g=12040636;function b(t){var n=t/2,o=16711680,r=65280,a=255,s=new e.Matrix4,c=[],p=new e.PlaneBufferGeometry(50,50),u=function(t,n){var o=i.getGlobal().document.createElement("canvas");o.width=o.height=128;var r=o.getContext("2d");r.font="128px Arial",r.fillStyle="rgba(255,255,255,1)",r.textAlign="center",r.textBaseline="middle",r.fillText(t,o.width/2,o.height/2);var a=new e.Texture(o);return a.needsUpdate=!0,new e.Mesh(p,new v({map:a,side:e.DoubleSide,transparent:!0,color:n,depthWrite:!1,depthTest:!0}))};this.triadScene=new e.Scene,this.triadLabelScene=new e.Scene;var A=new e.BoxGeometry(t,10,10),l=new e.Mesh(A,new v({color:o})),h=new e.Mesh(A,new v({color:r})),d=new e.Mesh(A,new v({color:a}));l.applyMatrix4(s.makeTranslation(5,-n,-n)),h.applyMatrix4(s.makeRotationZ(Math.PI/2)),h.applyMatrix4(s.makeTranslation(-n,5,-n)),d.applyMatrix4(s.makeRotationY(Math.PI/2)),d.applyMatrix4(s.makeTranslation(-n,-n,5)),this.triadScene.add(l),this.triadScene.add(h),this.triadScene.add(d);var m=u("X",o),w=u("Y",r),g=u("Z",a),b=function(e){var t=-(50+n)/2-20,o=n+50;m.position.set(o,t,t),w.position.set(t,o,t),g.position.set(t,t,o),e&&(m.position.applyQuaternion(e),w.position.applyQuaternion(e),g.position.applyQuaternion(e))};b(),c.push(m),c.push(w),c.push(g),this.triadLabelScene.add(m),this.triadLabelScene.add(w),this.triadLabelScene.add(g),this.orient=function(t,n){if(C(t)&&C(n)&&!(this.up&&this.front&&t.equals(this.up)&&n.equals(this.front))){this.up=t.clone(),this.front=n.clone();var o,i,r,a,s=0,c=0;t.x?(o="x",i="y",r="z",s=2*Math.PI/3):t.y?(o="y",i="z",r="x"):t.z&&(o="z",i="x",r="y",s=-2*Math.PI/3),f(-n[i])?c=Math.PI:n[r]&&(c=-n[r]*t[o]*Math.PI/2),a=f(-t[o])?Math.PI:0;var p=new e.Quaternion,u=new e.Quaternion,A=new e.Vector3(1,1,1);A.normalize(),u.setFromAxisAngle(A,s),p.setFromAxisAngle(t,c),u.multiply(p),p.setFromAxisAngle(n,a),u.multiply(p),b(u),this.triadScene.setRotationFromQuaternion(u)}},this.getSprites=function(){return c}}function x(n,o,i,f,x){var y=this;m.call(this);var V=o,M=o.camera;o.setCube(this);const B=V.center.clone().sub(M.position).normalize(),P=V.sceneFrontDirection.clone().cross(V.sceneUpDirection),E=B.dot(V.sceneUpDirection),T=B.dot(V.sceneFrontDirection),I=B.dot(P);1-Math.abs(E)<w?y.currentFace=E>0?"bottom":"top":1-Math.abs(T)<w?y.currentFace=T>0?"front":"back":1-Math.abs(Math.abs(I))<w?y.currentFace=I>0?"left":"right":y.currentFace="front",y.showTriad=x&&x.showTriad,y.localizeResourcePath=f;var k,S,R,F,D,z,L,Y,O,U,q,Q,N,W=["top,front","top right","top,left","top,back","bottom,front","bottom,right","bottom,left","bottom,back","left,front","front,right","right,back","back,left"],X=["front,top,right","back,top,right","front,top,left","back,top,left","front,bottom,right","back,bottom,right","front,bottom,left","back,bottom,left"],G=["Go Home",null,"Orthographic","Perspective","Perspective with Ortho Faces",null,"Set current view as Home","Focus and set as Home","Reset Home",null,"Set current view as Front","Set current view as Top","Reset orientation"],H=[!0,null,!0,!0,!0,null,!0,!0,!0,null,!0,!0,!0],Z=[null,null,function(){return!V.orthographicFaces&&!M.isPerspective},function(){return!V.orthographicFaces&&M.isPerspective},function(){return V.orthographicFaces},null,null,null,null,null,null,null,null],K=[];y.pcam=new e.PerspectiveCamera(45,1,1,2e3),y.ocam=new e.OrthographicCamera(-265,265,265,-265,-1e3,1e3),y.ocam.fov=y.pcam.fov,y.ocam.aspect=y.pcam.aspect,y.camera=M.isPerspective?y.pcam:y.ocam,y.camera.position.copy(M.position),y.center=new e.Vector3(0,0,0),y.camera.lookAt(y.center);var j,J,_,$,ee,te,ne,oe=[],ie=[],re=[],ae=[],se=[],ce=null,pe=null,ue=null,Ae=0,le=0,he=!0,de=!1,me=!1,we=!1,ve=-1!=navigator.userAgent.search("Chrome"),fe=-1!=navigator.platform.search("Win32"),Ce=!1,ge=!1,be=null,xe=[];this.width=0,this.height=0,this.animSpeed=500,this.animate=!0,this.compass=!1,this.viewScaleFactorCompass=1.5,this.viewScale=1,this.draggable=!0,this.wantHomeButton=!1,this.wantRollArrows=!0,this.wantContextMenu=!0,this.inactiveOpacity=.5;var ye=function(e){var t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},Ve=function(e){e.preventDefault(),e.stopPropagation();var t=y.getDocument();me=t.pointerLockElement===i||t.mozPointerLockElement===i||t.webkitPointerLockElement===i},Me=function(){y.renderCompass?(y.rollMesh.position.set(Ae+30,Ae+30,0),y.rollLeftMesh.position.set(Ae+30,1.5*Ae,.1),y.rollRightMesh.position.set(1.5*Ae,Ae+30,.1),y.contextMesh.position.set(1.6*Ae,-1.6*Ae,0)):(y.rollMesh.position.set(.5*Ae+20,.5*Ae+20,0),y.rollLeftMesh.position.set(.5*Ae+20,Ae+20,.1),y.rollRightMesh.position.set(Ae+20,.5*Ae+20,.1),y.contextMesh.position.set(Ae,-Ae,0))},Be=function(){V.navApi.isActionEnabled("orbit")&&(i.style.opacity="1.0",ge=!1),requestAnimationFrame(y.render)},Pe=function(e){if(ge||V.viewCubeMenuOpen||!V.navApi.isActionEnabled("orbit"))V.navApi.isActionEnabled("orbit")&&(i.style.opacity=1);else{var t=Math.max(4*Math.abs((e.clientX-ne.x)/ne.w-.5)-1,0),n=Math.max(4*Math.abs((e.clientY-ne.y)/ne.h-.5)-1,0),o=Math.max(0,Math.min(Math.sqrt(t*t+n*n),1));i.style.opacity=1-o*(1-y.inactiveOpacity)}},Ee=function(){V.viewCubeMenuOpen||(i.style.opacity=y.inactiveOpacity,ge=!0,requestAnimationFrame(y.render))},Te=function(t){var n=new Image,o=y.getWindow(),i=h.getUseCredentials()&&(-1===t.indexOf("://")||-1!==t.indexOf(o.location.host));n.crossOrigin=i?"use-credentials":"anonymous";var r=new e.Texture(n);return n.onload=function(){r.needsUpdate=!0,++le>=11&&requestAnimationFrame(y.render)},n.src=t,r},Ie=function(){var e,t,n=[],o=[];for(n[0]=Qe(0,0),n[1]=Qe(0,Math.PI/2),n[2]=Qe(0,-Math.PI/2),n[3]=Qe(0,Math.PI),n[4]=Qe(Math.PI/2,0),n[5]=Qe(Math.PI/2,Math.PI/2),n[6]=Qe(Math.PI/2,-Math.PI/2),n[7]=Qe(Math.PI/2,Math.PI),o[0]=qe(0,0,0),o[1]=qe(0,Math.PI/2,0),o[2]=qe(0,-Math.PI/2,0),o[3]=qe(0,Math.PI,0),o[4]=qe(Math.PI/2,0,0),o[5]=qe(Math.PI/2,Math.PI/2,0),o[6]=qe(Math.PI/2,-Math.PI/2,0),o[7]=qe(Math.PI/2,Math.PI,0),o[8]=qe(0,0,Math.PI/2),o[9]=qe(0,0,-Math.PI/2),o[10]=qe(-Math.PI/2,0,-Math.PI/2),o[11]=qe(-Math.PI,0,-Math.PI/2),oe.push(Ue(0,0)),oe[0].name="front",re.push(oe[0]),se.push(oe[0]),R.add(oe[0]),oe.push(Ue(0,Math.PI/2)),oe[1].name="right",re.push(oe[1]),se.push(oe[1]),R.add(oe[1]),oe.push(Ue(0,Math.PI)),oe[2].name="back",re.push(oe[2]),se.push(oe[2]),R.add(oe[2]),oe.push(Ue(0,-Math.PI/2)),oe[3].name="left",re.push(oe[3]),se.push(oe[3]),R.add(oe[3]),oe.push(Ue(Math.PI/2,0)),oe[4].name="bottom",re.push(oe[4]),se.push(oe[4]),R.add(oe[4]),oe.push(Ue(-Math.PI/2,0)),oe[5].name="top",re.push(oe[5]),se.push(oe[5]),R.add(oe[5]),e=oe.length,t=0;t<n.length;t++)oe.push(n[t]),oe[e+t].name=X[t],R.add(oe[e+t]),re.push(oe[e+t]),se.push(oe[e+t]);for(e=oe.length,t=0;t<o.length;t++)oe.push(o[t]),oe[e+t].name=W[t],R.add(oe[e+t]),re.push(oe[e+t]),se.push(oe[e+t])},ke=function(t,n,o){var i,r=new e.Vector3;if("PerspectiveCamera"===n.type)r.copy(t),r.unproject(n),i=new e.Raycaster(n.position,r.sub(n.position).normalize());else{var a=new e.Vector3;a.copy(t),a.unproject(n),r.copy(n.position).negate().normalize(),i=new e.Raycaster(a,r)}return i.intersectObjects(o)},Se=function(t,n){var o=t.clientX-n.x,i=t.clientY-n.y;return o=o/n.w*2-1,i=(n.h-i)/n.h*2-1,new e.Vector3(o,i,.5)};function Re(e,t){var n={};return 0===e.type.indexOf("touch")?e.touches.length>0?(n.clientX=e.touches[0].clientX,n.clientY=e.touches[0].clientY,n.pageX=e.touches[0].pageX,n.pageY=e.touches[0].pageY,n.screenX=e.touches[0].screenX,n.screenY=e.touches[0].screenY,n.movementX=n.screenX-t.prevX,n.movementY=n.screenY-t.prevY,n.which=V.navApi.getUseLeftHandedInput()?3:1):n=t.prevCoords:(n.clientX=e.clientX,n.clientY=e.clientY,n.pageX=e.pageX,n.pageY=e.pageY,n.screenX=e.screenX,n.screenY=e.screenY,n.which=e.which,de?(n.movementX=e.movementX||e.mozMovementX||e.webkitMovementX||0,n.movementY=e.movementY||e.mozMovementY||e.webkitMovementY||0):(n.movementX=n.screenX-t.prevX,n.movementY=n.screenY-t.prevY)),t.prevX=n.screenX,t.prevY=n.screenY,t.prevCoords=n,n}var Fe=function(e){if(e.preventDefault(),e.stopPropagation(),V.navApi.isActionEnabled("orbit")&&!V.currentlyAnimating){var t,n=Re(e,y);ne=ye(i),i.removeEventListener("mousemove",Ye,!1),y.addDocumentEventListener("mouseup",Le,!1),y.addDocumentEventListener("touchend",Le,!1),V.navApi.getUsePivotAlways()||(V.pivot.copy(V.center),V.navApi.setPivotPoint(V.center),V.navApi.setPivotSetFlag(!1)),V.startInteraction(n.pageX,n.pageY);var o=V.navApi.getUseLeftHandedInput()?1:3;n.which!==o&&(y.animSpeed<=0?p.error("animSpeed cannot be 0 or less, use ViewCube.animate flag to turn on and off animation",A(l.VIEWER_INTERNAL_ERROR)):(t=Se(n,ne),ke(t,y.camera,se).length>0&&(Xe(),y.draggable&&(y.addDocumentEventListener("mousemove",De,!1),y.addDocumentEventListener("touchmove",De,!1),de&&(i.requestPointerLock(),we=ve&&fe)))))}},De=function(t){if(t.preventDefault(),t.stopPropagation(),y.animSpeed<=0)return y.removeDocumentEventListener("mousemove",De,!1),y.removeDocumentEventListener("touchmove",De,!1),void p.error("animSpeed cannot be 0 or less",A(l.VIEWER_INTERNAL_ERROR));if(!V.currentlyAnimating){var n=Re(t,y);de&&we&&(we=!1,n.movementX=n.movementY=0),me&&(n.movementX>300||n.movementY>300)&&(n.movementX=0,n.movementY=0),n.movementX!==n.movementY||0!==n.movementX?(he=!1,Ce=!0,V.showPivot(!0),V.currentCursor=new e.Vector2(n.pageX,n.pageY),V.orbit(V.currentCursor,V.startCursor,new e.Vector3(-n.movementX,n.movementY,0),V.startState),y.camera.lookAt(y.center),requestAnimationFrame(y.render)):V.currentlyAnimating=!1}},ze=function(e){(e||(y.removeDocumentEventListener("mouseup",Le,!1),y.removeDocumentEventListener("touchend",Le,!1)),y.removeDocumentEventListener("mousemove",De,!1),y.removeDocumentEventListener("touchmove",De,!1),i.addEventListener("mousemove",Ye,!1),me)&&y.getDocument().exitPointerLock()};this.registerOnViewTypeChangedCb=function(e){e instanceof Function&&(be=e)},this.setViewType=function(e){switch(e){case r.VIEW_TYPES.ORTHOGRAPHIC:y.camera=y.ocam;break;case r.VIEW_TYPES.PERSPECTIVE:y.camera=y.pcam;break;case r.VIEW_TYPES.PERSPECTIVE_ORTHO_FACES:y.camera=he?y.ocam:y.pcam;break;default:return}be&&be(e)};var Le=function(e){var t,n,o;if(e.preventDefault(),e.stopPropagation(),V.currentlyAnimating||Ce)return V.endInteraction(),V.showPivot(!1),Ce=!1,void ze(!1);var r=Re(e,y);if(V.viewCubeMenuOpen){var a=r.clientX-ne.x,s=r.clientY-ne.y;if(V.menuOrigin.x<=a&&a<=V.menuOrigin.x+V.menuSize.x&&V.menuOrigin.y<=s&&s<=V.menuOrigin.y+V.menuSize.y){var c=Math.floor((s-5-V.menuOrigin.y)/25),u=function(e){p.track({name:"navigation/"+e,aggregate:"count"})};switch(c){case 0:u("home"),V.goHome();break;case 1:u("setortho"),y.setViewType(c);break;case 2:u("setpersp"),y.setViewType(c);break;case 3:y.setViewType(c);break;case 4:u("sethome"),V.setCurrentViewAsHome(!1);break;case 5:u("focushome"),V.setCurrentViewAsHome(!0);break;case 6:u("resethome"),V.resetHome();break;case 7:u("setfront"),V.setCurrentViewAsFront();break;case 8:u("settop"),V.setCurrentViewAsTop();break;case 9:V.resetOrientation()}}return V.viewCubeMenuOpen=!1,V.removeDropdownMenu(i),(r.clientX<ne.x||r.clientX>ne.w+ne.x||r.clientY<ne.y||r.clientY>ne.h+ne.y)&&Ee(),y.mouseMoveSave&&y.processMouseMove(y.mouseMoveSave),V.endInteraction(),void ze(!1)}var A=V.navApi.getUseLeftHandedInput()?1:3;if(r.which===A)return V.viewCubeMenuOpen=!0,V.drawDropdownMenu(G,H,Z,r.clientX,r.clientY,i,ne),void ze(!0);var l=Se(r,ne);if(t=ke(l,y.camera,se),n=ke(l,Y,ie),o=ke(l,Y,ae),n.length>0&&he){for(var h,d=["top","bottom","right","left","front","back"],m=V.getOrientation(),w={front:{up:[0,1,2,3],right:[2,3,1,0],down:[1,0,3,2],left:[3,2,0,1]},right:{up:[0,1,5,4],right:[5,4,1,0],down:[1,0,4,5],left:[4,5,0,1]},left:{up:[0,1,4,5],right:[4,5,1,0],down:[1,0,5,4],left:[5,4,0,1]},back:{up:[0,1,3,2],right:[3,2,1,0],down:[1,0,2,3],left:[2,3,0,1]},top:{up:[5,4,2,3],right:[2,3,4,5],down:[4,5,3,2],left:[3,2,5,4]},bottom:{up:[4,5,2,3],right:[2,3,5,4],down:[5,4,3,2],left:[3,2,4,5]}}[y.currentFace][m],v=0;v<4;v++)if(n[0].object===ie[v]){h=d[w[v]];break}V.calculateCubeTransform(h),y.currentFace=h,V.elapsedTime=0,V.sphericallyInterpolateTransition()}if(o.length>0){if(V.elapsedTime=0,y.wantHomeButton&&o[0].object===ae[ee])return V.goHome(),void ze(!1);if(y.wantContextMenu&&o[0].object===ae[te])return V.viewCubeMenuOpen=!0,V.drawDropdownMenu(G,H,Z,r.clientX,r.clientY,i,ne),void ze(!0);if(y.wantRollArrows&&he&&(o[0].object===ae[J]||o[0].object===ae[_])){var f=o[0].object===ae[_],C={center:V.center.clone(),position:M.position.clone(),pivot:M.pivot.clone(),fov:M.fov,worldUp:V.sceneUpDirection.clone(),isOrtho:!1===M.isPerspective},g=V.center.clone().sub(M.position).normalize();f?C.up=M.up.clone().cross(g):(C.up=M.up.clone().multiplyScalar(-1),C.up.cross(g)),C.up.normalize(),V.goToView(C)}}if(t.length>0){let n=t[0].object.name;y.mouseMoveSave=e,y.cubeRotateTo(n)}ze(!1)};this.cubeRotateTo=function(e){y.currentFace=e,V.orthographicFaces&&-1!==y.currentFace.indexOf(",")&&V.setCameraOrtho(!1),V.calculateCubeTransform(y.currentFace),V.elapsedTime=0,V.sphericallyInterpolateTransition((function(){y.mouseMoveSave&&y.processMouseMove(y.mouseMoveSave)}))},this.processMouseMove=function(e){var t,n,o;if(V.viewCubeMenuOpen||V.currentlyAnimating)y.mouseMoveSave=e;else{y.mouseMoveSave=null;var i=Re(e,y),r=Se(i,ne);if(t=ke(r,y.camera,re),n=ke(r,Y,ie),o=ke(r,Y,ae),ce&&!Ce&&(ce.material.color.setHex(g),ce=null,requestAnimationFrame(y.render)),n.length>0&&!Ce){ce=n[0].object;for(var a=j.children.length;--a>=0;)if(ce===ie[a]){(ce=j.children[a]).material.color.setHex(45055);break}requestAnimationFrame(y.render)}pe&&!Ce&&(pe.material.opacity=0,pe=null,requestAnimationFrame(y.render)),t.length>0&&!Ce&&((pe=t[0].object).material.opacity=.3,requestAnimationFrame(y.render)),o.length>0&&!Ce?ue!==o[0].object&&(y.wantHomeButton&&o[0].object===ae[ee]?(ue=o[0].object,ae[ee].material.map=xe[0]):y.wantRollArrows&&o[0].object===ae[J]?(ue=o[0].object,ae[$].material.map=xe[1]):y.wantRollArrows&&o[0].object===ae[_]?(ue=o[0].object,ae[$].material.map=xe[2]):y.wantContextMenu&&o[0].object===ae[te]?(ue=o[0].object,ae[te].material.map=xe[6]):y.wantHomeButton&&ue===ae[ee]?(ue=null,ae[ee].material.map=xe[3]):!y.wantRollArrows||ue!==ae[J]&&ue!==ae[_]&&ue!==ae[$]?y.wantContextMenu&&ue===ae[te]&&(ue=null,ae[te].material.map=xe[5]):(ue=null,ae[$].material.map=xe[4]),requestAnimationFrame(y.render)):null===ue||Ce||(y.wantHomeButton&&ue===ae[ee]?(ue=null,ae[ee].material.map=xe[3]):!y.wantRollArrows||ue!==ae[J]&&ue!==ae[_]&&ue!==ae[$]?y.wantContextMenu&&ue===ae[te]&&(ue=null,ae[te].material.map=xe[5]):(ue=null,ae[$].material.map=xe[4]),requestAnimationFrame(y.render))}};var Ye=function(e){V.navApi.isActionEnabled("orbit")&&y.processMouseMove(e)},Oe=function(){ne=ye(i),y.width=i.offsetWidth,y.height=i.offsetHeight,y.pcam.aspect=y.ocam.aspect=y.width/y.height,y.pcam.updateProjectionMatrix(),y.ocam.updateProjectionMatrix(),y.camera.topFov=y.camera.bottomFov=y.camera.fov/2,y.camera.leftFov=y.camera.rightFov=y.camera.aspect*y.camera.fov/2,y.pcam.aspect=y.ocam.aspect=y.camera.aspect,y.pcam.topFov=y.ocam.topFov=y.camera.topFov,y.pcam.bottomFov=y.ocam.bottomFov=y.camera.bottomFov,y.pcam.leftFov=y.ocam.leftFov=y.camera.leftFov,y.pcam.rightFov=y.ocam.rightFov=y.camera.rightFov;const e=y.getWindow().devicePixelRatio;y.renderer.getPixelRatio()!==e?y.renderer.setPixelRatio(e):y.renderer.setSize(y.width,y.height),requestAnimationFrame(y.render)},Ue=function(t,n){var o,i=Math.floor(.45*Ae/2)||45,r=Math.floor(.6*Ae/2)||60,a=i+r,s=new e.BufferGeometry,c=new e.Vector3(0,0,0),p=new e.Vector3(r,-r,a),u=new e.Vector3(r,r,a),A=new e.Vector3(-r,r,a),l=new e.Vector3(-r,-r,a),h=new Float32Array([c.x,c.y,c.z,p.x,p.y,p.z,u.x,u.y,u.z,A.x,A.y,A.z,l.x,l.y,l.z]);s.setAttribute("position",new e.BufferAttribute(h,3));return s.index=new e.BufferAttribute(new Uint16Array([1,2,3,1,3,4]),1),s.applyMatrix4((new e.Matrix4).makeRotationX(t)),s.applyMatrix4((new e.Matrix4).makeRotationY(n)),s.computeVertexNormals(),o=new v({opacity:0,color:45055,transparent:!0}),new e.Mesh(s,o)},qe=function(t,n,o){var i,r=Math.floor(.45*Ae/2)||45,a=Math.floor(.6*Ae/2)||60,s=r+a,c=new e.BufferGeometry,p=new e.Vector3(a,s,s),u=new e.Vector3(-a,s,s),A=new e.Vector3(-a,a,s),l=new e.Vector3(a,a,s),h=new e.Vector3(a,s,a),d=new e.Vector3(-a,s,a),m=new e.Vector3(-a,s,s),w=new e.Vector3(a,s,s),f=new Float32Array([p.x,p.y,p.z,u.x,u.y,u.z,A.x,A.y,A.z,l.x,l.y,l.z,h.x,h.y,h.z,d.x,d.y,d.z,m.x,m.y,m.z,w.x,w.y,w.z]);c.setAttribute("position",new e.BufferAttribute(f,3));return c.index=new e.BufferAttribute(new Uint16Array([0,1,2,0,2,3,4,5,6,4,6,7]),1),c.applyMatrix4((new e.Matrix4).makeRotationX(t)),c.applyMatrix4((new e.Matrix4).makeRotationY(n)),c.applyMatrix4((new e.Matrix4).makeRotationZ(o)),c.computeVertexNormals(),i=new v({opacity:0,color:45055,transparent:!0}),new e.Mesh(c,i)},Qe=function(t,n){var o,i=Math.floor(.45*Ae/2)||45,r=Math.floor(.6*Ae/2)||60,a=i+r,s=new e.BufferGeometry,c=new e.Vector3(a,a,a),p=new e.Vector3(r,a,a),u=new e.Vector3(r,r,a),A=new e.Vector3(a,r,a),l=new e.Vector3(a,a,r),h=new e.Vector3(a,a,a),d=new e.Vector3(a,r,a),m=new e.Vector3(a,r,r),w=new e.Vector3(a,a,a),f=new e.Vector3(a,a,r),C=new e.Vector3(r,a,r),g=new e.Vector3(r,a,a),b=new Float32Array([c.x,c.y,c.z,p.x,p.y,p.z,u.x,u.y,u.z,A.x,A.y,A.z,l.x,l.y,l.z,h.x,h.y,h.z,d.x,d.y,d.z,m.x,m.y,m.z,w.x,w.y,w.z,f.x,f.y,f.z,C.x,C.y,C.z,g.x,g.y,g.z]);s.setAttribute("position",new e.BufferAttribute(b,3));return s.index=new e.BufferAttribute(new Uint16Array([0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11]),1),s.applyMatrix4((new e.Matrix4).makeRotationX(t)),s.applyMatrix4((new e.Matrix4).makeRotationY(n)),s.computeVertexNormals(),o=new v({opacity:0,color:45055,transparent:!0}),new e.Mesh(s,o)},Ne=function(t){var n=V.cubeFront.clone(),o=V.sceneUpDirection.clone(),i=n.clone().cross(o);o.copy(i).cross(n),n.normalize(),o.normalize(),i.normalize();var r=new e.Vector3(n.x,o.x,i.x).multiplyScalar(t.x);return r.add(new e.Vector3(n.y,o.y,i.y).multiplyScalar(t.y)),r.add(new e.Vector3(n.z,o.z,i.z).multiplyScalar(t.z)),r};this.render=function(){y.camera=M.isPerspective?y.pcam:y.ocam;var t=y.compass?y.viewScaleFactorCompass*y.viewScale:y.viewScale,n=V.center.clone().sub(M.position).normalize(),o=M.up.normalize(),i=new e.Matrix4;n=Ne(n),o=Ne(o),y.camera.position.copy(n),y.camera.position.multiplyScalar(-t/y.camera.position.length()),y.camera.up=o.normalize(),y.camera.lookAt(y.center),We();var r=y.renderTriad&&C(V.sceneUpDirection)&&C(V.sceneFrontDirection),a=y.renderer;if(a){for(var s=0;s<K.length;s++)i.lookAt(y.camera.position,K[s].position,y.camera.up),K[s].setRotationFromMatrix(i);a.clear(),a.render(k,y.camera),a.render(S,y.camera),a.render(F,y.camera),r&&(D.orient(V.sceneUpDirection,V.sceneFrontDirection.clone().multiplyScalar(-1)),a.render(D.triadScene,y.camera),a.render(D.triadLabelScene,y.camera)),a.render(R,y.camera),y.renderCompass&&a.render(L,y.camera),a.render(z,Y)}},this.getScreenShot=function(e){return new Promise((function(e,t){var n=y.renderer;if(!n)return t("No renderer");var o=y.getDocument().createElement("canvas");o.width=y.width,o.height=y.height;var i=o.getContext("2d");i.fillStyle="#FFFFFF",i.fillRect(0,0,y.width,y.height),y.render(),n.domElement.toBlob((function(t){var n=new Image,r=y.getWindow();n.src=r.URL.createObjectURL(t),n.onload=()=>{i.drawImage(n,0,0,y.width,y.height),r.URL.revokeObjectURL(n.src),o.toBlob((t=>{e(t)}),"image/png")}}),"image/png")}))};var We=function(){!(he=V.isFaceView())||ge||V.currentlyAnimating?Xe():Ge(),ge?He():Ze(),ge?Ke():je()},Xe=function(){z.remove(j),ae[$].material.opacity=0,ae[te].material.opacity=0},Ge=function(){z.add(j);var e=y.wantRollArrows?1:0;ae[$].material.opacity=e,ae[te].material.opacity=e},He=function(){N.material.opacity=u()?1:0},Ze=function(){N.material.opacity=y.wantContextMenu?1:0},Ke=function(){q.material.opacity=0},je=function(){q.material.opacity=y.wantHomeButton?1:0};this.refreshCube=function(){Oe()},this.setSize=function(e,t){if(y.width=e,y.height=t,i.children.length>1)for(var n=1;n<i.children.length;n++)i.children[n].style.bottom=(y.height/5).toString()+"px";Oe()},this.useTransparency=function(e){ge=e,e?(i.onmouseover=Be,i.onmousemove=Pe,i.onmouseout=Ee,Ee()):(i.onmouseover=null,i.onmouseout=null,i.onmousemove=null,i.style.opacity="1.0")},this.showTriad=function(e){e!==y.renderTriad&&(y.renderTriad=e,requestAnimationFrame(y.render))},this.showCompass=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.initCompass(),y.renderCompass!==e&&(y.prevRenderCompass=y.renderCompass,y.renderCompass=e,Me(),requestAnimationFrame(y.render))},this.setCompassRotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.initCompass();const t=e-y.northAngle;0!==t&&(y.northAngle=e,y.compassPointerMeshUp.rotateZ(t),y.compassPointerMeshDown.rotateZ(t),requestAnimationFrame(y.render))},this.initCompass=function(){if(y.hasCompass)return;y.hasCompass=!0,y.northAngle=0;let t="res/textures/",n=Autodesk.Viewing.Private.getResourceUrl;L=new e.Scene;const o=2.9*Ae;let i=new e.PlaneBufferGeometry(o,o,2,2),r=new v({color:0,side:e.DoubleSide,map:Te(n(t+"VCcompass-pointer-b.png")),transparent:!0}),a=new v({color:0,side:e.DoubleSide,map:Te(n(t+"VCcompass-base.png")),transparent:!0});const s=new e.Mesh(i,r),c=new e.Mesh(i,r),p=new e.Mesh(i,a);y.compassPointerMeshUp=s,y.compassPointerMeshDown=c;const u=-Math.PI/2;p.rotateX(u),s.rotateX(u),c.rotateX(u);const A=.5*-Ae-(Math.floor(.25*Ae/2)||25);p.translateZ(A),s.translateZ(A+.1),c.translateZ(A-.1),L.add(p),L.add(s),L.add(c),requestAnimationFrame(y.render)},this.showControls=function(e){e||void 0===e?Be():Ee()},this.dtor=function(){this.renderer=null,be=null},this.refreshTexture=function(n){var o=Autodesk.Viewing.Private.getResourceUrl,i=this.localizeResourcePath||"res/textures/",r=(new a).load(o(i+"VCcrossRGBA8small.dds"),n);r.minFilter=r.maxFilter=e.LinearFilter,this.texture&&this.texture.dispose(),this.texture=r;var c=this.material;c||((c=s(t)).depthWrite=!1,this.material=c);return c.uniforms.tCube.value=r,c},this.localize=function(){const e=d();this.localizeResourcePath=e.LOCALIZATION_REL_PATH,this.refreshTexture((()=>{requestAnimationFrame(this.render)}))},function(){var t=i.getBoundingClientRect();y.width=t.width,y.height=t.height,ne=ye(i),(Y=new e.PerspectiveCamera(70,y.height/y.width,1,1e4)).position.set(0,0,500),k=new e.Scene,S=new e.Scene,R=new e.Scene,F=new e.Scene,z=new e.Scene,he=!0,Ae=160,y.viewScale=4*Ae;var n=y.refreshTexture(),o=e.LinearFilter,r=Autodesk.Viewing.Private.getResourceUrl,a="res/textures/",s=new e.BoxGeometry(Ae,Ae,Ae,4,4,4),u=new e.BoxGeometry(Ae+1,Ae+1,Ae+1,4,4,4);(O=new e.Mesh(s,n)).position.set(0,0,0),S.add(O);var A=Te(r(a+"VCedge1.png"));A.minFilter=A.maxFilter=o,(U=new e.Mesh(u,new v({map:A,transparent:!0}))).position.set(0,0,0),F.add(U),D=new b(Ae+20),Array.prototype.push.apply(K,D.getSprites());var l=Ae+5,h=new e.BufferGeometry;const d=new Float32Array([-30,0,0,30,0,0,0,-30,0]);h.setAttribute("position",new e.BufferAttribute(d,3));h.index=new e.BufferAttribute(new Uint16Array([1,0,2]),1);var m=new v({color:g,depthTest:!1,depthWrite:!1,transparent:!1,opacity:1}),w=new v({color:g,depthTest:!1,depthWrite:!1,transparent:!1,opacity:1}),f=new v({color:g,depthTest:!1,depthWrite:!1,transparent:!1,opacity:1}),C=new v({color:g,depthTest:!1,depthWrite:!1,transparent:!1,opacity:1}),x=new e.PlaneBufferGeometry(.5*Ae,.3*Ae,2,2),M=new v({transparent:!0,opacity:0}),B=new e.Mesh(h,m),P=new e.Mesh(x,M);B.position.set(0,l,0),P.position.set(0,.9*l,.1);var E=new e.Mesh(h,w),T=new e.Mesh(x,M);E.position.set(0,-l,0),T.position.set(0,.9*-l,.1),E.rotation.z+=Math.PI,T.rotation.z+=Math.PI;var I=new e.Mesh(h,f),L=new e.Mesh(x,M);I.position.set(l,0,0),L.position.set(.9*l,0,.1),I.rotation.z-=Math.PI/2,L.rotation.z-=Math.PI/2;var W=new e.Mesh(h,C),X=new e.Mesh(x,M);W.position.set(-l,0,0),X.position.set(.9*-l,0,.1),W.rotation.z+=Math.PI/2,X.rotation.z+=Math.PI/2,(j=new e.Object3D).position.set(0,0,0),j.add(B),j.add(E),j.add(I),j.add(W),z.add(P),z.add(T),z.add(L),z.add(X),z.add(j),ie.push(P),ie.push(T),ie.push(L),ie.push(X);var G=new e.PlaneBufferGeometry(Ae/3,Ae/3,2,2),H=new v({map:Te(r(a+"VChome.png")),transparent:!0});(q=new e.Mesh(G,H)).position.set(-Ae,Ae,0),ee=ae.length,z.add(q),ae.push(q);var Z=new e.PlaneBufferGeometry(1.5*Ae,1.5*Ae,2,2),oe=new v({map:Te(r(a+"VCarrows.png")),depthTest:!1,depthWrite:!1,transparent:!0}),re=new e.Mesh(Z,oe);y.rollMesh=re;var se=new e.PlaneBufferGeometry(.6*Ae,.45*Ae,2,2),ce=new v({transparent:!0,opacity:0}),pe=new e.Mesh(se,ce);y.rollLeftMesh=pe;var ue=new e.PlaneBufferGeometry(.45*Ae,.6*Ae,2,2),le=new v({transparent:!0,opacity:0}),me=new e.Mesh(ue,le);y.rollRightMesh=me,z.add(re),z.add(pe),z.add(me),J=ae.length,ae.push(pe),_=ae.length,ae.push(me),$=ae.length,ae.push(re);var we=new e.PlaneBufferGeometry(Ae/2.3,Ae/2.3,2,2),ve=new v({map:Te(r(a+"VCcontext.png")),transparent:!0,depthTest:!1,depthWrite:!1});N=new e.Mesh(we,ve),y.contextMesh=N,te=ae.length,z.add(N),ae.push(N),Me();var fe=new e.BufferGeometry;const Ce=Math.floor(.2*Ae/2)||20;let ge=new Float32Array([0,0,0,-Ae/2,-Ae/2-Ce,-Ae/2,Ae/2,-Ae/2-Ce,-Ae/2,Ae/2,-Ae/2-Ce,Ae/2,-Ae/2,-Ae/2-Ce,Ae/2]);fe.setAttribute("position",new e.BufferAttribute(ge,3));var be;if(fe.index=new e.BufferAttribute(new Uint16Array([4,3,2,4,2,1]),1),be=new v({color:0,transparent:!0,opacity:.5}),Q=new e.Mesh(fe,be),k.add(Q),Ie(),"CANVAS"===V.renderer.toUpperCase()?y.renderer=new e.CanvasRenderer:"WEBGL"===V.renderer.toUpperCase()?(y.renderer=new c({alpha:!0,antialias:!1}),y.renderer.name="ViewCubeRenderer"):(p.warn("Incorrect use of Autocam.renderer property"),y.renderer=new e.CanvasRenderer),y.useTransparency(!0),y.setSize(y.width,y.height),y.camera.topFov=y.camera.bottomFov=y.camera.fov/2,y.camera.leftFov=y.camera.rightFov=y.camera.aspect*y.camera.fov/2,y.pcam.topFov=y.ocam.topFov=y.camera.topFov,y.pcam.bottomFov=y.ocam.bottomFov=y.camera.bottomFov,y.pcam.leftFov=y.ocam.leftFov=y.camera.leftFov,y.pcam.rightFov=y.ocam.rightFov=y.camera.rightFov,y.renderer.autoClear=!1,y.renderer.setSize(y.width,y.height),y.renderer.sortObjects=!1,i.appendChild(y.renderer.domElement),i.addEventListener("touchstart",Fe,!1),i.addEventListener("mousedown",Fe,!1),i.addEventListener("mousemove",Ye,!1),de=!1){var Be=y.getDocument();Be.exitPointerLock=Be.exitPointerLock||Be.mozExitPointerLock||Be.webkitExitPointerLock,i.requestPointerLock=i.requestPointerLock||i.mozRequestPointerLock||i.webkitRequestPointerLock,y.addDocumentEventListener("pointerlockchange",Ve,!1),y.addDocumentEventListener("mozpointerlockchange",Ve,!1),y.addDocumentEventListener("webkitpointerlockchange",Ve,!1)}xe.push(Te(r(a+"VChomeS.png"))),xe.push(Te(r(a+"VCarrowsS0.png"))),xe.push(Te(r(a+"VCarrowsS1.png"))),xe.push(Te(r(a+"VChome.png"))),xe.push(Te(r(a+"VCarrows.png"))),xe.push(Te(r(a+"VCcontext.png"))),xe.push(Te(r(a+"VCcontextS.png")))}()}r.ViewCube=x;var y=n(5072),V=n.n(y),M=n(7825),B=n.n(M),P=n(7659),E=n.n(P),T=n(5056),I=n.n(T),k=n(540),S=n.n(k),R=n(1113),F=n.n(R),D=n(4962),z={};z.styleTagTransform=F(),z.setAttributes=I(),z.insert=E().bind(null,"head"),z.domAPI=B(),z.insertStyleElement=S();V()(D.A,z);D.A&&D.A.locals&&D.A.locals;const L=Autodesk.Viewing,Y=Autodesk.Viewing.Private,O=L.getGlobal();function U(e,t){L.Extension.call(this,e,t),this.container=null,this.cube=null,this.viewcube=null,this.homeViewContainer=null,this._created=!1,this._initTriadVisibility=!1,this.refreshCube=this.refreshCube.bind(this),this.displayViewCube=this.displayViewCube.bind(this),this.setViewType=this.setViewType.bind(this),this._updateView=this._updateView.bind(this),this._onModelAdded=this._onModelAdded.bind(this)}U.prototype=Object.create(Autodesk.Viewing.Extension.prototype),U.prototype.constructor=U,Object.assign(U.prototype,{load:function(){if(this.create(),this._displayViewCube(this.viewer.impl.is2d),this.localize(),this.viewer.dispatchEvent({type:L.VIEW_CUBE_CREATED_EVENT}),this.viewer.addEventListener(L.VIEWER_RESIZE_EVENT,this.refreshCube),this.viewer.prefs.addListeners(Y.Prefs3D.VIEW_CUBE,this.displayViewCube),this.viewer.prefs.addListeners(Y.Prefs3D.VIEW_TYPE,this.setViewType),this.viewer.model){const e=this.viewer.getVisibleModels().filter((e=>!!this.viewer.impl.is2d===e.is2d()));this._onModelAdded({model:e[0]})}return this.viewer.addEventListener(L.MODEL_ADDED_EVENT,this._onModelAdded),this._setDefaultView(),!0},unload:function(){return this.viewer.prefs.removeListeners(Y.Prefs3D.VIEW_CUBE,this.displayViewCube),this.viewer.prefs.removeListeners(Y.Prefs3D.VIEW_TYPE,this.setViewType),this.viewer.removeEventListener(L.VIEWER_RESIZE_EVENT,this.refreshCube),this.viewer.removeEventListener(L.MODEL_ADDED_EVENT,this._onModelAdded),this.container&&(this.viewer.container.removeChild(this.container),this.viewcube=null),this.cube&&(this.cube.dtor(),this.cube=null),this.homeViewContainer=null,this.hideHomeViewMenu=null,this.viewer=null,!0},create:function(){this._created||(this.initContainer(),this.initHomeButton(),this._created=!0)},initContainer:function(){var e=this.getDocument();this.container=e.createElement("div"),this.container.className="viewcubeWrapper",this.viewer.container.appendChild(this.container)},initHomeButton:function(){if(!this.homeViewContainer){var e=this.getDocument().createElement("div");e.className="homeViewWrapper",this.container.appendChild(e),this.homeViewContainer=e;var t=this;e.addEventListener("click",(function(){t.viewer.navigation.setRequestHomeView(!0)}))}},setVisible:function(e){this.container.style.display=e?"block":"none"},_setDefaultView:function(){this.viewer.impl.is2d||this.viewer.impl.getModelCamera(this.viewer.model)||this.viewer.prefs.dispatchEvent(Y.Prefs3D.VIEW_TYPE)},_updateView:function(e){if(!this.viewer.impl.is2d&&!this.viewer.prefs.set(Y.Prefs3D.VIEW_TYPE,e)){e!==this.viewer.autocam.getViewType()&&this.viewer.prefs.dispatchEvent(Y.Prefs3D.VIEW_TYPE)}},setViewType:function(e){!this.viewer.impl.is2d&&this.cube&&this.cube.setViewType(e)},showTriad:function(e){this.cube?this.cube.showTriad(e):this._initTriadVisibility=e},setViewCube:function(e){this.cube&&this.cube.cubeRotateTo(e)},displayHomeButton:function(e){this.homeViewContainer&&(this.homeViewContainer.style.display=e?"":"none")},displayViewCube:function(e,t){if(t&&this.viewer.prefs.set(Y.Prefs3D.VIEW_CUBE,e),!e||this.cube||this.viewer.impl.is2d){if(!this.cube)return void this._positionHomeButton()}else{var n=this.getDocument();this.viewcube=n.createElement("div"),this.viewcube.className="viewcube",this.container.appendChild(this.viewcube),this.cube=new x("cube",this.viewer.autocam,this.viewcube,O.LOCALIZATION_REL_PATH),this.cube.registerOnViewTypeChangedCb(this._updateView),this.cube.setGlobalManager(this.globalManager),this.container.appendChild(this.homeViewContainer),this._initTriadVisibility&&this.showTriad(!0),delete this._initTriadVisibility}this.viewcube.style.display=e?"block":"none",this._positionHomeButton(),e&&this.viewer.autocam.refresh()},localize:function(){this.cube&&this.cube.localize()},showCompass:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.cube&&this.cube.showCompass(e)},setCompassRotation:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.cube&&this.cube.setCompassRotation(e)},_initCompass:function(e){var t;const n=e&&e.getData(),o=n&&n.metadata;let i=o&&o["world north vector"];if(i=i&&i.XYZ,i=i&&new THREE.Vector3(i[0],i[1],i[2]),!i)return;const r=o&&o["custom values"],a=this.viewer.autocam.sceneFrontDirection.clone(),s=this.viewer.autocam.sceneUpDirection.clone();let c=new THREE.Vector3;c.crossVectors(a,i);const p=i.angleTo(a)*(c.dot(s)<0?-1:1);let u=r&&r.angleToTrueNorth||0;u*=Math.PI/180;const A=null!=n&&null!==(t=n.loadOptions)&&void 0!==t&&t.applyRefPoint?0:p+u;this.cube.initCompass(),this.setCompassRotation(A),this.showCompass(!!this.viewer.prefs.get(Y.Prefs3D.VIEW_CUBE_COMPASS))},_displayViewCube:function(e){const t=!e&&this.viewer.prefs.get(Y.Prefs3D.VIEW_CUBE);this.displayViewCube(t)},_onModelAdded:function(e){this._displayViewCube(this.viewer.impl.is2d),!this.cube||this.cube.hasCompass||this.viewer.impl.is2d||this._initCompass(e.model)},_positionHomeButton:function(){this.homeViewContainer&&(this.cube&&this.viewcube&&"block"===this.viewcube.style.display?this.homeViewContainer.classList.remove("no-viewcube"):this.homeViewContainer.classList.add("no-viewcube"))},refreshCube:function(){this.cube&&this.cube.refreshCube()}}),L.theExtensionManager.registerExtension("Autodesk.ViewCubeUi",U)})(),Autodesk.Extensions.ViewCubeUi=o})();
//# sourceMappingURL=ViewCubeUi.min.js.map