mxcad-app 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -20
- package/dist/chunks/lib.js +2322 -2324
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +23 -3236
- package/dist/index.js +5 -6
- package/dist/index.umd.js +2 -2
- package/dist/mxcad.d.ts +26042 -0
- package/dist/mxcadAppAssets/plugins/pluginIdentifyPattern/index.js +76 -74
- package/dist/mxcadAppAssets/plugins/pluginIdentifyPattern/index.js.map +1 -1
- package/dist/mxcadAppAssets/plugins/test.js +3 -3
- package/dist/mxcadAppAssets/plugins/test.js.map +1 -1
- package/dist/mxdraw.d.ts +5707 -0
- package/package.json +18 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var vO=Object.defineProperty;var BE=Object.getOwnPropertySymbols;var _O=Object.prototype.hasOwnProperty,bO=Object.prototype.propertyIsEnumerable;var Jv=Math.pow,FE=($,p,b)=>p in $?vO($,p,{enumerable:!0,configurable:!0,writable:!0,value:b}):$[p]=b,Bh=($,p)=>{for(var b in p||(p={}))_O.call(p,b)&&FE($,b,p[b]);if(BE)for(var b of BE(p))bO.call(p,b)&&FE($,b,p[b]);return $};var Gt=($,p,b)=>new Promise((on,Df)=>{var Rf=zs=>{try{ma(b.next(zs))}catch(Fh){Df(Fh)}},Ec=zs=>{try{ma(b.throw(zs))}catch(Fh){Df(Fh)}},ma=zs=>zs.done?on(zs.value):Promise.resolve(zs.value).then(Rf,Ec);ma((b=b.apply($,p)).next())});(function($,p,b,on,Df){"use strict";var Rf=document.createElement("style");Rf.textContent=`.heading[data-v-a388a3ba]{font-size:1.5em;margin-bottom:12px}.card[data-v-a388a3ba]{background:#fff;color:#000;background-image:linear-gradient(48deg,#fff 0%,#e5efe9 100%);border-top-right-radius:16px;border-bottom-left-radius:16px;box-shadow:-20px 20px 35px 1px #0a31562e;display:flex;flex-direction:column;padding:32px;margin:40px;max-width:400px;width:100%}.card .btnEn[data-v-a388a3ba]{font-size:.7em}.content-wrapper[data-v-a388a3ba]{font-size:1.1em;margin-bottom:44px}.content-wrapper[data-v-a388a3ba]:last-child{margin-bottom:0}.button[data-v-a388a3ba]{align-items:center;background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;color:#121943;cursor:pointer;display:flex;font-size:1em;font-weight:700;height:40px;justify-content:center;width:180px}.button[data-v-a388a3ba]:focus{border:2px solid transparent;box-shadow:0 0 0 2px #121943;outline:solid 4px transparent}.link[data-v-a388a3ba]{color:#121943}.link[data-v-a388a3ba]:focus{box-shadow:0 0 0 2px #121943}.input-wrapper[data-v-a388a3ba]{display:flex;flex-direction:column}.input-wrapper .label[data-v-a388a3ba]{align-items:baseline;display:flex;font-weight:700;justify-content:space-between;margin-bottom:8px}.input-wrapper .optional[data-v-a388a3ba]{color:#5a72b5;font-size:.9em}.input-wrapper .input[data-v-a388a3ba]{border:1px solid #5a72b5;border-radius:4px;height:40px;padding:8px}code[data-v-a388a3ba]{background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;padding:2px 4px}.modal-header[data-v-a388a3ba]{align-items:baseline;display:flex;justify-content:space-between}.close[data-v-a388a3ba]{background:none;border:none;cursor:pointer;display:flex;height:16px;text-decoration:none;width:16px}.close svg[data-v-a388a3ba]{width:16px}.modal-wrapper[data-v-a388a3ba]{align-items:center;background:rgba(0,0,0,.7);display:flex;justify-content:center;inset:0;position:fixed}#modal[data-v-a388a3ba]{transition:opacity .25s ease-in-out}#modal .modal-body[data-v-a388a3ba]{max-width:830px;opacity:1;transform:translateY(-100px);transition:opacity .25s ease-in-out;width:100%;z-index:1}.outside-trigger[data-v-a388a3ba]{cursor:default;inset:0;position:fixed}.button__link[data-v-a388a3ba]{text-decoration:none}.button[data-v-a388a3ba]{background-color:#4caf50;border:none;color:#fff;text-align:center;text-decoration:none;font-size:16px;margin:4px 2px;-webkit-transition-duration:.4s;transition-duration:.4s;cursor:pointer;overflow:hidden;min-width:0;display:flex;align-items:center;justify-content:center}.button1[data-v-a388a3ba]{background-color:#fff;color:#000;border:2px solid #4caf50}.button1[data-v-a388a3ba]:hover{background-color:#4caf50;color:#fff}.button2[data-v-a388a3ba]{background-color:#fff;color:#000;border:2px solid #008cba}.button2[data-v-a388a3ba]:hover{background-color:#008cba;color:#fff}.btn_box[data-v-a388a3ba]{width:100%;display:flex;justify-items:center;justify-content:start;align-items:start}.btn span[data-v-a388a3ba],.button span[data-v-a388a3ba],.btn[data-v-a388a3ba],.button[data-v-a388a3ba]{display:block;align-items:center;justify-content:center;font-size:clamp(5px,1vw,1em);max-width:100%;max-height:100%;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:normal;padding:0 8px;min-width:0}.heading[data-v-0817c4f4]{font-size:1.5em;margin-bottom:12px}.btn[data-v-0817c4f4]{height:40px;width:100px;text-align:center;line-height:40px;font-size:1em;font-weight:700;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.btn2[data-v-0817c4f4]{background-color:#008cba;color:#fff;border-top-right-radius:4px;border-top-left-radius:4px}.card[data-v-0817c4f4]{background:#fff;color:#000;background-image:linear-gradient(48deg,#fff 0%,#e5efe9 100%);border-top-right-radius:16px;border-bottom-left-radius:16px;box-shadow:-20px 20px 35px 1px #0a31562e;display:flex;flex-direction:column;padding:32px;margin:40px;max-width:400px;width:100%;height:600px}.card .btnEn[data-v-0817c4f4]{font-size:.7em}.content-wrapper[data-v-0817c4f4]{font-size:1.1em;margin-bottom:44px}.content-wrapper[data-v-0817c4f4]:last-child{margin-bottom:0}.button[data-v-0817c4f4]{align-items:center;background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;color:#121943;cursor:pointer;display:flex;font-size:1em;font-weight:700;height:40px;justify-content:center;width:180px;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.button[data-v-0817c4f4]:focus{border:2px solid transparent;box-shadow:0 0 0 2px #121943;outline:solid 4px transparent}.link[data-v-0817c4f4]{color:#121943}.link[data-v-0817c4f4]:focus{box-shadow:0 0 0 2px #121943}.input-wrapper[data-v-0817c4f4]{display:flex;flex-direction:column}.input-wrapper .label[data-v-0817c4f4]{align-items:baseline;display:flex;font-weight:700;justify-content:space-between;margin-bottom:8px}.input-wrapper .optional[data-v-0817c4f4]{color:#5a72b5;font-size:.9em}.input-wrapper .input[data-v-0817c4f4]{border:1px solid #5a72b5;border-radius:4px;height:40px;padding:8px}code[data-v-0817c4f4]{background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;padding:2px 4px}.modal-header[data-v-0817c4f4]{align-items:baseline;display:flex;justify-content:space-between}.close[data-v-0817c4f4]{background:none;border:none;cursor:pointer;display:flex;height:16px;text-decoration:none;width:16px}.close svg[data-v-0817c4f4]{width:16px}.modal-wrapper[data-v-0817c4f4]{align-items:center;background:rgba(0,0,0,.7);display:flex;justify-content:center;inset:0;position:fixed}#modal[data-v-0817c4f4]{transition:opacity .25s ease-in-out}#modal .modal-body[data-v-0817c4f4]{max-width:830px;opacity:1;transform:translateY(-100px);transition:opacity .25s ease-in-out;width:100%;z-index:1}.outside-trigger[data-v-0817c4f4]{cursor:default;inset:0;position:fixed}.button__link[data-v-0817c4f4]{text-decoration:none}.button[data-v-0817c4f4]{background-color:#4caf50;border:none;color:#fff;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;-webkit-transition-duration:.4s;transition-duration:.4s;cursor:pointer}.button1[data-v-0817c4f4]{background-color:#fff;color:#000;border:2px solid #4CAF50}.button1[data-v-0817c4f4]:hover{background-color:#4caf50;color:#fff}.button2[data-v-0817c4f4]{background-color:#fff;color:#000;border:2px solid #008CBA}.button2[data-v-0817c4f4]:hover{background-color:#008cba;color:#fff}.btn_box[data-v-0817c4f4]{width:100%;display:flex;justify-items:center;justify-content:start;align-items:start}.textBox[data-v-0817c4f4]{position:absolute;top:30%;left:42%;background-image:linear-gradient(48deg,#fff 0%,#e5efe9 100%);color:#000;padding:10px 15px}.textBox .header[data-v-0817c4f4]{display:flex;justify-content:space-between;align-items:center}.textBox textarea[data-v-0817c4f4]{color:#000;background-color:#ccc;border:1px solid #5a72b5;border-radius:8px;margin-top:10px;font-size:var(--mx-font-size);padding:5px}.textBox .btnBox[data-v-0817c4f4]{display:flex;justify-content:flex-end}.textBox .btnBox button[data-v-0817c4f4]{background-color:#fff;color:#000;border:2px solid #008CBA;border-radius:5px;padding:5px;margin-top:10px}.textBox .btnBox button[data-v-0817c4f4]:hover{background-color:#008cba;color:#fff}.btn span[data-v-0817c4f4],.button span[data-v-0817c4f4],.btn[data-v-0817c4f4],.button[data-v-0817c4f4]{display:block;align-items:center;justify-content:center;font-size:clamp(5px,1vw,1em);max-width:100%;max-height:100%;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:normal;padding:0 8px;min-width:0}.fcc[data-v-a83034f6]{display:flex;align-items:center;justify-content:center}.row[data-v-fff1a9fd]{display:flex;justify-content:space-between;align-items:center}.row .item[data-v-fff1a9fd]{padding:5px;width:45px;height:45px}.row .item[data-v-fff1a9fd]:hover,.row .backColor[data-v-fff1a9fd]{background-color:#fff3}.inLine[data-v-ef6011f8]{max-height:20px;overflow:hidden}.fcb[data-v-ef6011f8]{display:flex;align-items:center;justify-content:space-between}.fcb .symbolBox[data-v-ef6011f8]{display:flex;position:relative;width:40%;height:120px;border:1px solid #ccc;padding:5px}.fcb .symbolBox .symbol[data-v-ef6011f8]{position:absolute;padding:2px;top:-10px;left:10px;background-color:rgb(var(--v-theme-dialog-card-text))}.fcb .symbolBox .symbolImg[data-v-ef6011f8]{margin-top:12px;margin-right:5px;padding:5px;height:35px}.fcb .symbolBox .symbolImg[data-v-ef6011f8]:hover,.fcb .symbolBox .backColor[data-v-ef6011f8]{background-color:rgba(var(--v-theme-on-prominent),.2)}.formBox[data-v-ef6011f8]{height:250px;width:100%;border:1px solid #ccc;position:relative}.formBox .iconFont[data-v-ef6011f8]{position:absolute;width:32%;left:73px;top:50px}.formBox .iconFont .icon[data-v-ef6011f8]{width:100%}.formBox .topData[data-v-ef6011f8]{position:absolute;right:5px;top:7px;width:40%}.formBox .line[data-v-ef6011f8]{position:absolute;left:180px;top:82px;width:50%;height:4px;background-color:rgb(var(--v-theme-on-prominent))}.formBox .bottomData[data-v-ef6011f8]{position:absolute;width:25%;top:90px;right:36px}.formBox .cornerData[data-v-ef6011f8]{position:absolute;bottom:65px;right:235px}.formBox .cornerData .cornerIcon[data-v-ef6011f8]{height:25px;min-width:25px;padding:0}.formBox .cornerData .btnList[data-v-ef6011f8]{position:absolute;display:flex;width:120px;height:60px;flex-wrap:wrap;justify-content:space-around;top:30px}.formBox .leftDate[data-v-ef6011f8]{position:absolute;width:24%;bottom:75px;left:5px}.imgBox[data-v-a986481d]{width:100px;height:50px;background-color:#000;display:flex;justify-content:center;align-items:center;margin-bottom:10px}.radio[data-v-a986481d]{width:100%;display:flex;justify-content:space-between;align-items:center}.fbc[data-v-253ca580]{display:flex;justify-content:space-between;align-items:center}.btnBox[data-v-253ca580]{border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative;padding:10px 0;margin-top:20px;align-items:center;justify-content:center}.btnBox .tiltle[data-v-253ca580]{display:block;position:absolute;top:-10px;left:5px}.row[data-v-253ca580]{display:flex}.item[data-v-253ca580]{height:35px;width:35px;padding:5px}.item img[data-v-253ca580]{height:25px;width:25px}.itemHover[data-v-253ca580]:hover,.checked[data-v-253ca580]{background-color:#89cbfa99}.btn[data-v-253ca580]{position:absolute;bottom:16px;right:204px;background-color:rgb(var(--v-theme-undertint-bg))!important;min-width:76px}.fbc[data-v-13e7c51f]{display:flex;justify-content:space-between;align-items:center}.btnBox[data-v-13e7c51f]{border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative;padding:10px 0;margin-top:20px}.btnBox .tiltle[data-v-13e7c51f]{display:block;position:absolute;top:-10px;left:5px}.row[data-v-13e7c51f]{display:flex}.item[data-v-13e7c51f]{height:35px;width:35px;padding:5px}.item img[data-v-13e7c51f]{height:25px;width:25px}.itemHover[data-v-13e7c51f]:hover,.checked[data-v-13e7c51f]{background-color:#89cbfa99}.btn[data-v-13e7c51f]{position:absolute;bottom:16px;right:204px;background-color:rgb(var(--v-theme-undertint-bg))!important;min-width:76px}.checkBtn[data-v-13e7c51f]{background-color:#89cbfa66}.contents[data-v-7d640c71]{padding:5px}.contents .tips[data-v-7d640c71]{opacity:.6}
|
|
1
|
+
var vO=Object.defineProperty;var BE=Object.getOwnPropertySymbols;var _O=Object.prototype.hasOwnProperty,bO=Object.prototype.propertyIsEnumerable;var Jv=Math.pow,FE=($,p,b)=>p in $?vO($,p,{enumerable:!0,configurable:!0,writable:!0,value:b}):$[p]=b,Bh=($,p)=>{for(var b in p||(p={}))_O.call(p,b)&&FE($,b,p[b]);if(BE)for(var b of BE(p))bO.call(p,b)&&FE($,b,p[b]);return $};var Gt=($,p,b)=>new Promise((on,Df)=>{var Rf=zs=>{try{ma(b.next(zs))}catch(Fh){Df(Fh)}},Ec=zs=>{try{ma(b.throw(zs))}catch(Fh){Df(Fh)}},ma=zs=>zs.done?on(zs.value):Promise.resolve(zs.value).then(Rf,Ec);ma((b=b.apply($,p)).next())});(function($,p,b,on,Df){"use strict";var Rf=document.createElement("style");Rf.textContent=`.heading[data-v-a388a3ba]{font-size:1.5em;margin-bottom:12px}.card[data-v-a388a3ba]{background:#fff;color:#000;background-image:linear-gradient(48deg,#fff 0%,#e5efe9 100%);border-top-right-radius:16px;border-bottom-left-radius:16px;box-shadow:-20px 20px 35px 1px #0a31562e;display:flex;flex-direction:column;padding:32px;margin:40px;max-width:400px;width:100%}.card .btnEn[data-v-a388a3ba]{font-size:.7em}.content-wrapper[data-v-a388a3ba]{font-size:1.1em;margin-bottom:44px}.content-wrapper[data-v-a388a3ba]:last-child{margin-bottom:0}.button[data-v-a388a3ba]{align-items:center;background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;color:#121943;cursor:pointer;display:flex;font-size:1em;font-weight:700;height:40px;justify-content:center;width:180px}.button[data-v-a388a3ba]:focus{border:2px solid transparent;box-shadow:0 0 0 2px #121943;outline:solid 4px transparent}.link[data-v-a388a3ba]{color:#121943}.link[data-v-a388a3ba]:focus{box-shadow:0 0 0 2px #121943}.input-wrapper[data-v-a388a3ba]{display:flex;flex-direction:column}.input-wrapper .label[data-v-a388a3ba]{align-items:baseline;display:flex;font-weight:700;justify-content:space-between;margin-bottom:8px}.input-wrapper .optional[data-v-a388a3ba]{color:#5a72b5;font-size:.9em}.input-wrapper .input[data-v-a388a3ba]{border:1px solid #5a72b5;border-radius:4px;height:40px;padding:8px}code[data-v-a388a3ba]{background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;padding:2px 4px}.modal-header[data-v-a388a3ba]{align-items:baseline;display:flex;justify-content:space-between}.close[data-v-a388a3ba]{background:none;border:none;cursor:pointer;display:flex;height:16px;text-decoration:none;width:16px}.close svg[data-v-a388a3ba]{width:16px}.modal-wrapper[data-v-a388a3ba]{align-items:center;background:rgba(0,0,0,.7);display:flex;justify-content:center;inset:0;position:fixed}#modal[data-v-a388a3ba]{transition:opacity .25s ease-in-out}#modal .modal-body[data-v-a388a3ba]{max-width:830px;opacity:1;transform:translateY(-100px);transition:opacity .25s ease-in-out;width:100%;z-index:1}.outside-trigger[data-v-a388a3ba]{cursor:default;inset:0;position:fixed}.button__link[data-v-a388a3ba]{text-decoration:none}.button[data-v-a388a3ba]{background-color:#4caf50;border:none;color:#fff;text-align:center;text-decoration:none;font-size:16px;margin:4px 2px;-webkit-transition-duration:.4s;transition-duration:.4s;cursor:pointer;overflow:hidden;min-width:0;display:flex;align-items:center;justify-content:center}.button1[data-v-a388a3ba]{background-color:#fff;color:#000;border:2px solid #4caf50}.button1[data-v-a388a3ba]:hover{background-color:#4caf50;color:#fff}.button2[data-v-a388a3ba]{background-color:#fff;color:#000;border:2px solid #008cba}.button2[data-v-a388a3ba]:hover{background-color:#008cba;color:#fff}.btn_box[data-v-a388a3ba]{width:100%;display:flex;justify-items:center;justify-content:start;align-items:start}.btn span[data-v-a388a3ba],.button span[data-v-a388a3ba],.btn[data-v-a388a3ba],.button[data-v-a388a3ba]{display:block;align-items:center;justify-content:center;font-size:clamp(5px,1vw,1em);max-width:100%;max-height:100%;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:normal;padding:0 8px;min-width:0}.heading[data-v-591b8da1]{font-size:1.5em;margin-bottom:12px}.btn[data-v-591b8da1]{height:40px;width:100px;text-align:center;line-height:40px;font-size:1em;font-weight:700;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.btn2[data-v-591b8da1]{background-color:#008cba;color:#fff;border-top-right-radius:4px;border-top-left-radius:4px}.card[data-v-591b8da1]{background:#fff;color:#000;background-image:linear-gradient(48deg,#fff 0%,#e5efe9 100%);border-top-right-radius:16px;border-bottom-left-radius:16px;box-shadow:-20px 20px 35px 1px #0a31562e;display:flex;flex-direction:column;padding:32px;margin:40px;max-width:400px;width:100%;height:600px}.card .btnEn[data-v-591b8da1]{font-size:.7em}.content-wrapper[data-v-591b8da1]{font-size:1.1em;margin-bottom:44px}.content-wrapper[data-v-591b8da1]:last-child{margin-bottom:0}.button[data-v-591b8da1]{align-items:center;background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;color:#121943;cursor:pointer;display:flex;font-size:1em;font-weight:700;height:40px;justify-content:center;width:180px;overflow:hidden;position:relative;white-space:nowrap;text-overflow:ellipsis}.button[data-v-591b8da1]:focus{border:2px solid transparent;box-shadow:0 0 0 2px #121943;outline:solid 4px transparent}.link[data-v-591b8da1]{color:#121943}.link[data-v-591b8da1]:focus{box-shadow:0 0 0 2px #121943}.input-wrapper[data-v-591b8da1]{display:flex;flex-direction:column}.input-wrapper .label[data-v-591b8da1]{align-items:baseline;display:flex;font-weight:700;justify-content:space-between;margin-bottom:8px}.input-wrapper .optional[data-v-591b8da1]{color:#5a72b5;font-size:.9em}.input-wrapper .input[data-v-591b8da1]{border:1px solid #5a72b5;border-radius:4px;height:40px;padding:8px}code[data-v-591b8da1]{background:#e5efe9;border:1px solid #5a72b5;border-radius:4px;padding:2px 4px}.modal-header[data-v-591b8da1]{align-items:baseline;display:flex;justify-content:space-between}.close[data-v-591b8da1]{background:none;border:none;cursor:pointer;display:flex;height:16px;text-decoration:none;width:16px}.close svg[data-v-591b8da1]{width:16px}.modal-wrapper[data-v-591b8da1]{align-items:center;background:rgba(0,0,0,.7);display:flex;justify-content:center;inset:0;position:fixed}#modal[data-v-591b8da1]{transition:opacity .25s ease-in-out}#modal .modal-body[data-v-591b8da1]{max-width:830px;opacity:1;transform:translateY(-100px);transition:opacity .25s ease-in-out;width:100%;z-index:1}.outside-trigger[data-v-591b8da1]{cursor:default;inset:0;position:fixed}.button__link[data-v-591b8da1]{text-decoration:none}.button[data-v-591b8da1]{background-color:#4caf50;border:none;color:#fff;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;-webkit-transition-duration:.4s;transition-duration:.4s;cursor:pointer}.button1[data-v-591b8da1]{background-color:#fff;color:#000;border:2px solid #4CAF50}.button1[data-v-591b8da1]:hover{background-color:#4caf50;color:#fff}.button2[data-v-591b8da1]{background-color:#fff;color:#000;border:2px solid #008CBA}.button2[data-v-591b8da1]:hover{background-color:#008cba;color:#fff}.btn_box[data-v-591b8da1]{width:100%;display:flex;justify-items:center;justify-content:start;align-items:start}.textBox[data-v-591b8da1]{position:absolute;top:30%;left:42%;background-image:linear-gradient(48deg,#fff 0%,#e5efe9 100%);color:#000;padding:10px 15px}.textBox .header[data-v-591b8da1]{display:flex;justify-content:space-between;align-items:center}.textBox textarea[data-v-591b8da1]{color:#000;background-color:#ccc;border:1px solid #5a72b5;border-radius:8px;margin-top:10px;font-size:var(--mx-font-size);padding:5px}.textBox .btnBox[data-v-591b8da1]{display:flex;justify-content:flex-end}.textBox .btnBox button[data-v-591b8da1]{background-color:#fff;color:#000;border:2px solid #008CBA;border-radius:5px;padding:5px;margin-top:10px}.textBox .btnBox button[data-v-591b8da1]:hover{background-color:#008cba;color:#fff}.btn span[data-v-591b8da1],.button span[data-v-591b8da1],.btn[data-v-591b8da1],.button[data-v-591b8da1]{display:block;align-items:center;justify-content:center;font-size:clamp(5px,1vw,1em);max-width:100%;max-height:100%;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:normal;padding:0 8px;min-width:0}.fcc[data-v-a83034f6]{display:flex;align-items:center;justify-content:center}.row[data-v-fff1a9fd]{display:flex;justify-content:space-between;align-items:center}.row .item[data-v-fff1a9fd]{padding:5px;width:45px;height:45px}.row .item[data-v-fff1a9fd]:hover,.row .backColor[data-v-fff1a9fd]{background-color:#fff3}.inLine[data-v-ef6011f8]{max-height:20px;overflow:hidden}.fcb[data-v-ef6011f8]{display:flex;align-items:center;justify-content:space-between}.fcb .symbolBox[data-v-ef6011f8]{display:flex;position:relative;width:40%;height:120px;border:1px solid #ccc;padding:5px}.fcb .symbolBox .symbol[data-v-ef6011f8]{position:absolute;padding:2px;top:-10px;left:10px;background-color:rgb(var(--v-theme-dialog-card-text))}.fcb .symbolBox .symbolImg[data-v-ef6011f8]{margin-top:12px;margin-right:5px;padding:5px;height:35px}.fcb .symbolBox .symbolImg[data-v-ef6011f8]:hover,.fcb .symbolBox .backColor[data-v-ef6011f8]{background-color:rgba(var(--v-theme-on-prominent),.2)}.formBox[data-v-ef6011f8]{height:250px;width:100%;border:1px solid #ccc;position:relative}.formBox .iconFont[data-v-ef6011f8]{position:absolute;width:32%;left:73px;top:50px}.formBox .iconFont .icon[data-v-ef6011f8]{width:100%}.formBox .topData[data-v-ef6011f8]{position:absolute;right:5px;top:7px;width:40%}.formBox .line[data-v-ef6011f8]{position:absolute;left:180px;top:82px;width:50%;height:4px;background-color:rgb(var(--v-theme-on-prominent))}.formBox .bottomData[data-v-ef6011f8]{position:absolute;width:25%;top:90px;right:36px}.formBox .cornerData[data-v-ef6011f8]{position:absolute;bottom:65px;right:235px}.formBox .cornerData .cornerIcon[data-v-ef6011f8]{height:25px;min-width:25px;padding:0}.formBox .cornerData .btnList[data-v-ef6011f8]{position:absolute;display:flex;width:120px;height:60px;flex-wrap:wrap;justify-content:space-around;top:30px}.formBox .leftDate[data-v-ef6011f8]{position:absolute;width:24%;bottom:75px;left:5px}.imgBox[data-v-a986481d]{width:100px;height:50px;background-color:#000;display:flex;justify-content:center;align-items:center;margin-bottom:10px}.radio[data-v-a986481d]{width:100%;display:flex;justify-content:space-between;align-items:center}.fbc[data-v-253ca580]{display:flex;justify-content:space-between;align-items:center}.btnBox[data-v-253ca580]{border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative;padding:10px 0;margin-top:20px;align-items:center;justify-content:center}.btnBox .tiltle[data-v-253ca580]{display:block;position:absolute;top:-10px;left:5px}.row[data-v-253ca580]{display:flex}.item[data-v-253ca580]{height:35px;width:35px;padding:5px}.item img[data-v-253ca580]{height:25px;width:25px}.itemHover[data-v-253ca580]:hover,.checked[data-v-253ca580]{background-color:#89cbfa99}.btn[data-v-253ca580]{position:absolute;bottom:16px;right:204px;background-color:rgb(var(--v-theme-undertint-bg))!important;min-width:76px}.fbc[data-v-13e7c51f]{display:flex;justify-content:space-between;align-items:center}.btnBox[data-v-13e7c51f]{border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative;padding:10px 0;margin-top:20px}.btnBox .tiltle[data-v-13e7c51f]{display:block;position:absolute;top:-10px;left:5px}.row[data-v-13e7c51f]{display:flex}.item[data-v-13e7c51f]{height:35px;width:35px;padding:5px}.item img[data-v-13e7c51f]{height:25px;width:25px}.itemHover[data-v-13e7c51f]:hover,.checked[data-v-13e7c51f]{background-color:#89cbfa99}.btn[data-v-13e7c51f]{position:absolute;bottom:16px;right:204px;background-color:rgb(var(--v-theme-undertint-bg))!important;min-width:76px}.checkBtn[data-v-13e7c51f]{background-color:#89cbfa66}.contents[data-v-7d640c71]{padding:5px}.contents .tips[data-v-7d640c71]{opacity:.6}
|
|
2
2
|
`,document.head.appendChild(Rf);const Ec=b.ref(!1),ma=b.ref(!1),zs=t=>{Ec.value=!0,ma.value=!1,Nh.value=Object.assign(Nh.value,t||{})},Fh=t=>{ma.value=!0,Ec.value=!1,Nh.value=Object.assign(Nh.value,t||{})},zh=()=>{Ec.value=!1,ma.value=!1},UE={title:"Modal",text:"",oncancel:zh,onsubmit:zh,ongetallentity:zh,ondrawline:zh,docommand:t=>{}},Nh=b.ref(UE),VE=b.ref(!1),Qv=b.ref(""),Lf=b.ref("");document.addEventListener("mouseup",function(){Lf.value=document.getSelection().toString(),Lf.value===""&&(Lf.value=Qv.value)});function GE(){return Gt(this,null,function*(){try{yield navigator.clipboard.writeText(Lf.value)}catch(t){console.error("Failed to copy: ",t)}})}const If=()=>({isModalVisible:Ec,isToolsVisible:ma,isDialogVisible:VE,showModal:zs,showTools:Fh,hideModal:zh,modalOptions:Nh,excelText:Qv,copyTextToClipboard:GE}),OE="modulepreload",jE=function(t){return"/"+t},$v={},c0=function(e,n,r){return e()};var t_=Object.defineProperty,HE=(t,e,n)=>e in t?t_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fe=(t,e)=>t_(t,"name",{value:e,configurable:!0}),Po=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Ii=(t,e,n)=>HE(t,typeof e!="symbol"?e+"":e,n),kf,e_=(kf=class{constructor(t){this._listeners=new Map,this._lastMessage={},this.options=Object.assign({ignoreError:!1},t)}get listeners(){return this._listeners}on(){let t=arguments[0],e=arguments[1],n=arguments[2],{objectify:r=!0,count:s=-1}=Object.assign({},n);this._listeners.has(t)||this._listeners.set(t,new Map);let u=++kf.listenerSeqId,h=this._listeners.get(t);return h==null||h.set(u,[e,s]),this._emitRetainEvent(t,u,h),r?{off:Fe(()=>{h==null||h.delete(u),(h==null?void 0:h.size)==0&&this._listeners.delete(t)},"off")}:u}onAny(t,e){return this.on("*",t,e)}_emitRetainEvent(t,e,n){t in this._lastMessage&&this._executeListener(e,n,this._lastMessage[t])}once(t,e,n){return this.on(t,e,Object.assign({},n,{count:1}))}_forEachListeners(t){let e=!1;for(let[n,r]of this._listeners.entries()){if(e)break;for(let[s,[u,h]]of r.entries()){if(e)break;e=t({event:n,listenerId:s,listener:u,count:h,eventListeners:r})===!1}}}_forEachEventListeners(t,e){let n=!1,r=[[t,this._listeners.get(t)]];for(let[s,u]of r)if(u)for(let[h,[o,m]]of u){if(n)break;n=e({event:s,listenerId:h,listener:o,count:m,eventListeners:u})===!1}}off(){if(arguments.length==1){if(typeof arguments[0]=="number")this._forEachListeners(({listenerId:t,eventListeners:e,event:n})=>{var r;if(t==arguments[0])return e.delete(t),((r=this._listeners.get(n))==null?void 0:r.size)==0&&this._listeners.delete(n),!1});else if(typeof arguments[0]=="function"){let t=arguments[0];this._forEachListeners(({listenerId:e,listener:n,eventListeners:r,event:s})=>{var u;n==t&&(r.delete(e),((u=this._listeners.get(s))==null?void 0:u.size)==0&&this._listeners.delete(s))})}}else arguments.length==2&&typeof arguments[0]=="string"&&typeof arguments[1]=="function"&&this._forEachEventListeners(arguments[0],({event:t,listenerId:e,listener:n,eventListeners:r})=>{var s;t==arguments[0]&&n==arguments[1]&&(r.delete(e),((s=this._listeners.get(t))==null?void 0:s.size)==0&&this._listeners.delete(t))})}waitFor(t,e=0){return new Promise((n,r)=>{let s,u=!1,h;e>0&&(s=setTimeout(()=>{u=!0,this.off(h),r(new Error("Timeout"))},e)),h=this.once(t,o=>{u||(clearTimeout(s),n(o))})})}offAll(t){t?this._listeners.delete(t):this._listeners.clear()}_executeListener(t,e,n){if(!e)return;let r=e.get(t);if(r)try{return r[0](n)}catch(s){if(!this.options.ignoreError)throw s}finally{r[1]>-1&&(r[1]=r[1]-1,r[1]==0&&e.delete(t))}}_executeListeners(t,e,n){let r=[];return this._forEachEventListeners(t,({event:s,listenerId:u,eventListeners:h})=>{r.push(this._executeListener(u,h,e)),typeof n=="function"&&n(u),h.size==0&&this._listeners.delete(s)}),r}emit(t,e,n){return n&&(this._lastMessage[t]=e),this._executeListeners(t,e)}emitAsync(t,e,n){return Gt(this,null,function*(){return yield Promise.allSettled(this.emit(t,e,n))})}},Fe(kf,"l"),kf);e_.listenerSeqId=0;var n_=e_;(t=>typeof Po<"u"?Po:typeof Proxy<"u"?new Proxy(t,{get:Fe((e,n)=>(typeof Po<"u"?Po:e)[n],"get")}):t)(function(t){if(typeof Po<"u")return Po.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});function i_(){return Date.now().toString()+parseInt(String(Math.random()*1e3))}Fe(i_,"getId");function Bf(t,e=!1){if(typeof t=="number")return!0;if(typeof t!="string"||e)return!1;try{if(t.includes(".")){let n=parseFloat(t);return t.endsWith(".")?!isNaN(n)&&String(n).length===t.length-1:!isNaN(n)&&String(n).length===t.length}else{let n=parseInt(t);return!isNaN(n)&&String(n).length===t.length}}catch(n){return!1}}Fe(Bf,"r");function Ff(t){return Bf(t)}Fe(Ff,"isMessageId");function r_(t){return t&&typeof t=="object"&&t.__VoerkaI18nScope__}Fe(r_,"isI18nScope");function o_(t){return Gt(this,null,function*(){let e=yield t.call(this);return e&&"__esModule"in e||Symbol.toStringTag in e?e.default:e})}Fe(o_,"loadAsyncModule");function s_(t){return t&&typeof t.get=="function"&&typeof t.set=="function"&&typeof t.remove=="function"}Fe(s_,"isStorage");function a_(t){return Gt(this,null,function*(){return(yield Promise.allSettled(t)).map(e=>e.status==="fulfilled"?e.value:e.reason)})}Fe(a_,"execAsyncs");function u0(){try{return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}catch(t){return!1}}Fe(u0,"isBrowser");var h0=class l0 extends n_{constructor(e){if(super(),Ii(this,"__VoerkaI18nManager__",!0),Ii(this,"_scopes",[]),Ii(this,"_appScope"),l0.instance)return l0.instance;if(!e)throw new Error("create VoerkaI18nManager failed, appScope is required");this._registerAppScope(e),this._registerScopes(),this._loadPlugins(),l0.instance=this,globalThis.VoerkaI18n=this}get debug(){return this.scope.debug}get logger(){return this.scope.logger}get scopes(){return this._scopes}get activeLanguage(){return this._appScope.activeLanguage}get defaultLanguage(){return this._appScope.defaultLanguage}get loader(){return this._appScope.loader}get storage(){return this.scope.storage}get languages(){return this.scope.languages}get scope(){return this._appScope}_registerScopes(){let e=globalThis.__VoerkaI18nScopes__;e&&Array.isArray(e)&&e.forEach(n=>this.register(n)),delete globalThis.__VoerkaI18nScopes__}getScope(e){return this._scopes.find(n=>n.id===e)}_loadPlugins(){let e=globalThis.__VoerkaI18nPlugins__;e&&Array.isArray(e)&&e.forEach(n=>n(this)),delete globalThis.__VoerkaI18nPlugins__}registerPlugin(e){typeof e=="function"&&e(this)}_registerAppScope(e){this._scopes.push(e),this._appScope=e,this.logger.debug("VoerkaI18nScope<"+e.id+"> is registered as appScope"),this.emitAsync("init",()=>this._appScope.activeLanguage,!0)}register(e){if(!r_(e))throw new Error("register scope failed, invalid scope");this._scopes.push(e),e.bind(this),this.logger.debug(`VoerkaI18nScope<${e.id}> is registered`)}change(e){return Gt(this,null,function*(){yield this._refreshScopes(e);let n=this._appScope.activeLanguage;return this.scope.saveLanguage(),this.emit("change",n,!0),this.logger.info("language changed to: "+n),n})}_refreshScopes(e){return Gt(this,null,function*(){let n=this._scopes.map(r=>r.refresh(e));yield a_(n)})}refresh(){return Gt(this,null,function*(){return yield this._refreshScopes(this.activeLanguage)})}ready(e,n){return this.waitFor("ready",n).then(r=>{e&&e.call(this,r)})}clearPatchedMessages(){this._scopes.forEach(e=>e.clearPatchedMessages())}hasLanguage(e){return this.languages.findIndex(n=>n.name==e)!=-1}clearLanguage(){this.scope.clearLanguage()}saveLanguage(){this.scope.saveLanguage()}restoreLanguage(){this.scope.restoreLanguage()}};Fe(h0,"VoerkaI18nManager"),Ii(h0,"instance");var l_=h0,WE={get(t){if(globalThis.localStorage)return globalThis.localStorage.getItem(t)},set(t,e){globalThis.localStorage&&globalThis.localStorage.setItem(t,e)},remove(t){globalThis.localStorage&&globalThis.localStorage.removeItem(t)}},qE=[{name:"zh",title:"中文",default:!0,active:!0},{name:"en",title:"英文"}],c_=Fe((t,e,n=[])=>{let r=Object.getOwnPropertyDescriptors(e);for(let s of n)delete r[s];Object.defineProperties(t,r)},"copyProps"),Tc=Fe((t,e=[t])=>{let n=Object.getPrototypeOf(t);return n===null?e:Tc(n,[...e,n])},"protoChain"),YE=Fe((...t)=>{if(t.length===0)return;let e,n=t.map(r=>Tc(r));for(;n.every(r=>r.length>0);){let r=n.map(u=>u.pop()),s=r[0];if(r.every(u=>u===s))e=s;else break}return e},"nearestCommonProto"),u_=Fe((t,e,n=[])=>{var r;let s=(r=YE(...t))!==null&&r!==void 0?r:Object.prototype,u=Object.create(s),h=Tc(s);for(let o of t){let m=Tc(o);for(let y=m.length-1;y>=0;y--){let x=m[y];h.indexOf(x)===-1&&(c_(u,x,["constructor",...n]),h.push(x))}}return u.constructor=e,u},"hardMixProtos"),d0=Fe(t=>t.filter((e,n)=>t.indexOf(e)==n),"unique"),zf=Fe((t,e)=>{let n=e.map(u=>Tc(u)),r=0,s=!0;for(;s;){s=!1;for(let u=e.length-1;u>=0;u--){let h=n[u][r];if(h!=null&&(s=!0,Object.getOwnPropertyDescriptor(h,t)!=null))return n[u][0]}r++}},"getIngredientWithProp"),XE=Fe((t,e=Object.prototype)=>new Proxy({},{getPrototypeOf(){return e},setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(zf(r,t)||{},r)},defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has(n,r){return zf(r,t)!==void 0||e[r]!==void 0},get(n,r){return(zf(r,t)||e)[r]},set(n,r,s){let u=zf(r,t);if(u===void 0)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return u[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys(){return t.map(Object.getOwnPropertyNames).reduce((n,r)=>r.concat(n.filter(s=>r.indexOf(s)<0)))}}),"proxyMix");Fe((t,e)=>XE([...t,{constructor:e}]),"softMixProtos");var h_=new WeakMap,KE=Fe(t=>h_.get(t),"getMixinsForClass"),ZE=Fe((t,e)=>h_.set(t,e),"registerMixins"),d_=Fe((t,e)=>{var n,r;let s=d0([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),u={};for(let h of s)u[h]=d0([...(n=t==null?void 0:t[h])!==null&&n!==void 0?n:[],...(r=e==null?void 0:e[h])!==null&&r!==void 0?r:[]]);return u},"mergeObjectsOfDecorators"),p_=Fe((t,e)=>{var n,r,s,u;return{property:d_((n=t==null?void 0:t.property)!==null&&n!==void 0?n:{},(r=e==null?void 0:e.property)!==null&&r!==void 0?r:{}),method:d_((s=t==null?void 0:t.method)!==null&&s!==void 0?s:{},(u=e==null?void 0:e.method)!==null&&u!==void 0?u:{})}},"mergePropertyAndMethodDecorators"),f_=Fe((t,e)=>{var n,r,s,u,h,o;return{class:d0([...(n=t==null?void 0:t.class)!==null&&n!==void 0?n:[],...(r=e==null?void 0:e.class)!==null&&r!==void 0?r:[]]),static:p_((s=t==null?void 0:t.static)!==null&&s!==void 0?s:{},(u=e==null?void 0:e.static)!==null&&u!==void 0?u:{}),instance:p_((h=t==null?void 0:t.instance)!==null&&h!==void 0?h:{},(o=e==null?void 0:e.instance)!==null&&o!==void 0?o:{})}},"mergeDecorators"),p0=new Map,JE=Fe((...t)=>{var e;let n=new Set,r=new Set([...t]);for(;r.size>0;)for(let s of r){let u=Tc(s.prototype).map(m=>m.constructor),h=(e=KE(s))!==null&&e!==void 0?e:[],o=[...u,...h].filter(m=>!n.has(m));for(let m of o)r.add(m);n.add(s),r.delete(s)}return[...n]},"findAllConstituentClasses"),QE=Fe((...t)=>{let e=JE(...t).map(n=>p0.get(n)).filter(n=>!!n);return e.length==0?{}:e.length==1?e[0]:e.reduce((n,r)=>f_(n,r))},"deepDecoratorSearch");Fe((...t)=>{let e=t.map(n=>$E(n));return e.length===0?{}:e.length===1?e[0]:e.reduce((n,r)=>f_(n,r))},"directDecoratorSearch");var $E=Fe(t=>{let e=p0.get(t);return e||(e={},p0.set(t,e)),e},"getDecoratorsForClass");function m_(...t){var e,n,r;let s=t.map(o=>o.prototype);function u(...o){for(let m of t)c_(this,new m(...o))}Fe(u,"MixedClass"),u.prototype=u_(s,u),Object.setPrototypeOf(u,u_(t,null,["prototype"]));let h=u;{let o=QE(...t);for(let m of(e=o==null?void 0:o.class)!==null&&e!==void 0?e:[]){let y=m(h);y&&(h=y)}g_((n=o==null?void 0:o.static)!==null&&n!==void 0?n:{},h),g_((r=o==null?void 0:o.instance)!==null&&r!==void 0?r:{},h.prototype)}return ZE(h,t),h}Fe(m_,"Mixin");var g_=Fe((t,e)=>{let n=t.property,r=t.method;if(n)for(let s in n)for(let u of n[s])u(e,s);if(r)for(let s in r)for(let u of r[s])u(e,s,Object.getOwnPropertyDescriptor(e,s))},"applyPropAndMethodDecorators"),y_=class{constructor(){Ii(this,"_eventEmitter")}_getEventEmitter(){return this.attached?this.manager:(this._eventEmitter||(this._eventEmitter=new n_),this._eventEmitter)}on(e,n){return this._getEventEmitter().on(e,n)}once(e,n){return this._getEventEmitter().once(e,n)}off(e,n){return this._getEventEmitter().off(e,n)}waitFor(e,n){return this._getEventEmitter().waitFor(e,n)}emit(e,n,r){return Gt(this,null,function*(){return yield this._getEventEmitter().emitAsync(e,n,r)})}};Fe(y_,"EventEmitterMixin");var tT=y_;function ss(t){return t&&typeof t=="function"}Fe(ss,"t");function ml(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return e===n}Fe(ml,"o");var f0,eT=(f0=class extends Error{},Fe(f0,"m"),f0),nT=0;function x_(t,e={timeout:0}){let n=!1,r=!1,s=!1,u,h,o=0,m,y=++nT,x=Fe(function(){clearTimeout(o),n=!1,r=!1,s=!1,m=new Promise((A,T)=>{u=A,h=T})},"g");x();function M(A=0,T){return Gt(this,null,function*(){if(typeof t=="function"&&t()){n=!0;return}return(n||r)&&x(),A>0&&(o=setTimeout(()=>{n=!0;try{T instanceof Error?h(T):u(T)}catch(P){}},A)),s=!0,m})}return Fe(M,"o"),M.id=y,M.resolve=A=>{if(clearTimeout(o),!!s&&!(n||r)){if(typeof t=="function"&&t())if(t())u(A);else return;else u(A);n=!0}},M.reject=A=>{clearTimeout(o),s&&(n||r||(h(typeof A=="string"?new Error(A):A instanceof Error?A:new Error),r=!0))},M.destroy=()=>{clearTimeout(o),s&&h(new eT),n=!1,s=!1,r=!1,m=null},M.reset=x,M.isResolved=()=>n,M.isRejected=()=>r,M.isPending=()=>s,M}Fe(x_,"p");var v_=class{constructor(){Ii(this,"_patching")}_getPatchKey(e){return`voerkai18n_${this.id}_${e}_patched_messages`}clearPatchedMessages(e){if(this.storage){let n=e?[e]:this.languages.map(r=>r.name);for(let r of n)this.storage.remove(this._getPatchKey(r))}}_patch(e){return Gt(this,null,function*(){var n;this._patching=x_(),e||(e=this.activeLanguage),this._restorePatchedMessages(this.activeMessages,e);try{if(ss(this.loader)){let r=yield this._loadMessagesFromLoader(e);ml(r)&&(Object.assign(this._activeMessages,r),this._setPatchedMessages(r,e),this.emit("patched",{language:e,scope:this.id}))}}catch(r){this.logger.warn(`从远程加载语言补丁包<${e}>时出错: ${r.stack}(scope=${this.id})`)}finally{(n=this._patching)==null||n.resolve(),this._patching=void 0}})}_restorePatchedMessages(e,n){let r=this._getPatchedMessages(n);ml(r)&&(Object.assign(e,r),this.emit("restore",{language:n,scope:this.id}),this.logger.debug(`成功恢复补丁语言包<${n}>(scope=${this.id})`))}_setPatchedMessages(e,n){if(!(!this.attached&&!this.storage))try{this.storage&&this.storage.set(this._getPatchKey(n),JSON.stringify(e))}catch(r){this.logger.error(`保存语言包补丁(${n})时出错: ${r.stack}(scope=${this.id})`)}}_getPatchedMessages(e){try{return this.storage&&this.options.cachePatch?this.storage.get(this._getPatchKey(e)):{}}catch(n){return this.logger.error(`读取语言包补丁(${e})时出错:${n.stack}(scope=${this.id})`),{}}}};Fe(v_,"PatchMessageMixin");var iT=v_,rT=Fe((t,e,n)=>new Promise((r,s)=>{var u=Fe(m=>{try{o(n.next(m))}catch(y){s(y)}},"f"),h=Fe(m=>{try{o(n.throw(m))}catch(y){s(y)}},"d"),o=Fe(m=>m.done?r(m.value):Promise.resolve(m.value).then(u,h),"u");o((n=n.apply(t,e)).next())}),"j"),m0,oT=(m0=class extends Error{},Fe(m0,"b"),m0),sT=0;function __(t,e={timeout:0}){let n=!1,r=!1,s=!1,u,h,o=0,m,y=++sT,x=Fe(function(){clearTimeout(o),n=!1,r=!1,s=!1,m=new Promise((A,T)=>{u=A,h=T})},"m");x();function M(){return rT(this,arguments,function*(A=e.timeout,T){if(typeof t=="function"&&t()){n=!0;return}return(n||r)&&x(),A>0&&(o=setTimeout(()=>{n=!0;try{T instanceof Error?h(T):u(T)}catch(P){}},A)),s=!0,m})}return Fe(M,"c"),M.id=y,M.resolve=A=>{if(clearTimeout(o),!!s&&!(n||r)){if(typeof t=="function"&&t())if(t())u(A);else return;else u(A);n=!0}},M.reject=A=>{clearTimeout(o),s&&(n||r||(h(typeof A=="string"?new Error(A):A instanceof Error?A:new Error),r=!0))},M.destroy=()=>{clearTimeout(o),s&&h(new oT),n=!1,s=!1,r=!1,m=null},M.reset=x,M.isResolved=()=>n,M.isRejected=()=>r,M.isPending=()=>s,M}Fe(__,"R");var b_=class extends Error{};Fe(b_,"VoerkaI18nError");var Uh=b_,aT=class extends Uh{};Fe(aT,"VoerkaI18nInvalidLanguageError");var lT=class extends Uh{};Fe(lT,"VoerkaI18nOnlyOneAppScopeError");var cT=class extends Uh{};Fe(cT,"VoerkaI18nChangeLanguageError");var M_=class extends Uh{};Fe(M_,"VoerkaI18nLoadLanguageError");var w_=M_,A_=class{constructor(){Ii(this,"_refreshSignal")}refresh(e,n){return Gt(this,null,function*(){this._refreshSignal||(this._refreshSignal=__()),e||(e=this.activeLanguage);let r=e,s,{patch:u,fallback:h}=Object.assign({fallback:!1,patch:!0},n);try{s=yield this._loadLanguageMessages(e),this._activeMessages=s,s&&!s.$remote&&u&&(yield this._patch(e))}catch(o){if(o&&o instanceof Uh){let m=this.getFallbackLanguage(e);m&&m!==e&&(r=yield this.refresh(m,{patch:u,fallback:!0}))}}finally{h||(this._activeLanguage=r,(typeof this.messages[r]=="function"||!(r in this.messages))&&(this.messages[r]=this._activeMessages),this._activeParagraphs=this.paragraphs[r],this._refreshSignal.resolve(),this._refreshSignal=void 0,yield this.emit("scope/change",r,!0))}return this._setLanguageAttr(),r})}_loadLanguageMessages(e){return Gt(this,null,function*(){this.logger.debug(`准备加载语言包:${e}`);let n=this.messages[e],r;if(ml(n))r=n;else if(ss(n))try{r=yield o_.call(this,n)}catch(s){this.logger.error(`加载异步语言包<${e}>失败:${s.message}`),r=void 0}if(!r&&ss(this.loader))try{let s=yield this._loadMessagesFromLoader(e);ml(s)?r=Object.assign({$remote:!0},this.messages[this.defaultLanguage],s):this.logger.error(`错误的语言包<${e}>数据:${s}`)}catch(s){throw new w_(s.message)}if(!ml(r))throw new w_(e);return r})}_loadMessagesFromLoader(e){return Gt(this,null,function*(){if(ss(this.loader))return yield this.loader.call(this,e,this)})}ready(){let e=typeof arguments[0]=="function"?arguments[0]:void 0,n=typeof arguments[0]=="number"?arguments[0]:arguments[1];if(typeof e=="function")this.manager.ready(e,n);else return new Promise(r=>{this.manager.ready(r,n)})}changing(e){return Gt(this,null,function*(){var n,r;!this._refreshSignal&&!this._patching||(yield Promise.all([(n=this._refreshSignal)==null?void 0:n.call(this,e),(r=this._patching)==null?void 0:r.call(this,e)]))})}};Fe(A_,"ChangeLanguageMixin");var uT=A_,hT={warn:console.warn,error:console.error,info:console.info,debug:console.debug};function E_(t){let e,n=[],r=Fe((s,...u)=>{let h=u.join(" ");if(e){if(!e.debug)return;e.emit("log",{level:s,message:h})}else if(e=globalThis.VoerkaI18n,e&&e instanceof l_)if(e.debug){n.push([s,h]);let o=Fe((m,y)=>{t?t(m,y):hT[m](y)},"log");e.on("log",({level:m,message:y})=>o(m,y)),n.forEach(([m,y])=>o(m,y))}else n.splice(0,n.length);else n.push([s,h])},"logOutput");return{warn:Fe((...s)=>r("warn",...s),"warn"),error:Fe((...s)=>r("error",...s),"error"),info:Fe((...s)=>r("info",...s),"info"),debug:Fe((...s)=>r("debug",...s),"debug")}}Fe(E_,"createLogger");var dT=class extends Error{constructor(e){super(`Formatters of language<${e}> is not loaded,try to call load()`)}};Fe(dT,"FormattersNotLoadedError");var T_=class{constructor(e){Ii(this,"_formatters",[]),Ii(this,"_scope"),this._scope=e,this._formatters=e==null?void 0:e.options.formatters,this._registerFormatters()}get scope(){return this._scope}get formatters(){return this._formatters}_registerFormatters(){this._formatters&&this._formatters.forEach(e=>{Array.isArray(e)?this.register.apply(this,e):this.register.apply(this,[e])})}_addFormatter(e){try{if(this.scope.interpolator.addFilter(e),e){let n=this.scope.manager.scope;n.id!==this.scope.id&&n.interpolator.addFilter(e)}}catch(n){this.scope.logger.error(`fail while register formatter<${e.name}>:${n.stack}`)}}register(e,n,r){let s=this.scope,u=e.next;e.next=function(h,o,m){let y=m.getConfig;return m.getConfig=()=>Object.assign({},r,n==null?void 0:n[s.activeLanguage],y(e.name)),u.call(this,h,o,m)},this._addFormatter(e)}};Fe(T_,"VoerkaI18nFormatterManager");var pT=T_;function P_(t){return t&&typeof t=="object"&&t.__VoerkaI18nManager__}Fe(P_,"isI18nManger");var S_=class{getLanguage(e){let n=this.languages.findIndex(r=>r.name==e);if(n!==-1)return this.languages[n]}getFallbackLanguage(e){let n=this.getLanguage(e);return n&&n.fallback||this.options.fallback||this._defaultLanguage}hasLanguage(e){return this.languages.findIndex(n=>n.name==e)!=-1}};Fe(S_,"LanguageMixin");var fT=S_,C_=class{_getPluraMessage(e,n){try{return Array.isArray(e)?e.length>n?e[n]:e[e.length-1]:e}catch(r){return Array.isArray(e)?e[0]:e}}_getPluraValue(e){let n=null,r=[];if(ml(e)){let s=e;for(let[u,h]of Object.entries(s)){if(ss(h))try{s[u]=h()}catch(m){s[u]=h}let o=typeof s[u]=="number";(n==null&&o||u.startsWith("$")&&o)&&(n=s[u])}r=[s]}else Array.isArray(e)?r=e.map(s=>{try{s=ss(s)?s():s,Bf(s)&&!n&&(n=parseInt(s))}catch(u){return String(s)}return s}):e!==void 0&&(n=Bf(e)?parseInt(e):0,r=[e]);return[n,r]}_getTranslateComponent(){if(!this._translateComponent){let e=this.options.component||this.appScope.options.component;typeof e=="function"?this._translateComponent=e.call(this,this):(this._translateComponent=()=>{},this.logger.warn("No translate component builder configured"))}return this._translateComponent}_getTranslateTransformer(){if(!this._translateTransformer){let e=this.options.transform||this.appScope.options.transform;typeof e=="function"&&(this._translateTransformer=e.call(this,this))}return this._translateTransformer}_getActiveMessages(e){return typeof this.messages[e]=="function"?(this.logger.warn(`When the t function specifies the language <${e}> , only synchronized language packs can be used`),this.activeMessages):this.messages[e]}translate(e,n,r){if(typeof e!="string")return this.logger.debug(`failed to translate message:${e},it is not a string`),"";let s=(r==null?void 0:r.language)||this.activeLanguage,u=this._getActiveMessages(s);e=e.replace(/\n/g,"\\n");let h=e;if(typeof e!="string")return e;let o=n===void 0?[]:ss(n)?n():n;try{if(Ff(e))h=u[e]||e;else{let x=this.idMap[e];h=u[x]||u[e]||e}let[m,y]=this._getPluraValue(o);Array.isArray(h)&&h.length>0&&(m!==null?h=this._getPluraMessage(h,m):h=h[0]),o.length,h=this.interpolator.replace(h,...y),this._translateTransformer&&(r!=null&&r.transform)&&(h=this._translateTransformer(h,y,r))}catch(m){this.logger.error(`翻译失败:${m.stack}`)}return h}};Fe(C_,"TranslateMixin");var mT=C_,D_=class{_getStorage(){let e=this.storage;return s_(e)?e:void 0}_getStorageKey(){return this.options.storageKey.replace("{scope}",this.id)}restoreLanguage(){let e=this._getStorage();if(e){let n=this._getStorageKey(),r=e.get(n);if(!r||!this.hasLanguage(r))return;this._activeLanguage=r,this.logger.debug(`从存储<${n}>中恢复保存的语言:${r}`)}}saveLanguage(){let e=this._getStorage();if(e){if(!this._activeLanguage)return;let n=this._getStorageKey();e.set(n,this.activeLanguage),this.logger.debug(`当前语言已保存到存储${n}=${this.activeLanguage}`)}}clearLanguage(){let e=this._getStorage();e&&e.remove(this._getStorageKey())}};Fe(D_,"RestoreMixin");var gT=D_,yT=Object.defineProperty,R_=Object.getOwnPropertySymbols,xT=Object.prototype.hasOwnProperty,vT=Object.prototype.propertyIsEnumerable,L_=Fe((t,e,n)=>e in t?yT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,"R"),I_=Fe((t,e)=>{for(var n in e||(e={}))xT.call(e,n)&&L_(t,n,e[n]);if(R_)for(var n of R_(e))vT.call(e,n)&&L_(t,n,e[n]);return t},"b"),Pc=(t=>typeof Po<"u"?Po:typeof Proxy<"u"?new Proxy(t,{get:Fe((e,n)=>(typeof Po<"u"?Po:e)[n],"get")}):t)(function(t){if(typeof Po<"u")return Po.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),gl={Abort:Symbol("Abort"),Throw:Symbol("Throw"),Ignore:Symbol("Ignore")},g0,Sc=(g0=class extends Error{constructor(t){super(),this.value=t}},Fe(g0,"a"),g0),y0,yl=(y0=class extends Sc{},Fe(y0,"p"),y0),x0,Nf=(x0=class extends Sc{},Fe(x0,"x"),x0),v0,_0=(v0=class extends Sc{},Fe(v0,"g"),v0),_T={name:"error",priority:"before",args:["operate","value"],default:{operate:"ignore"},next(t,e,n){let r=e.operate.toLowerCase(),s=e.value;return n.onError=(u,h,o,m)=>{if(!(u instanceof Error)||u instanceof Sc)throw u;if(r=="throw")throw s?new Error(s):u;if(r=="abort")throw new yl(s);if(r=="ignore")throw new Nf(s);return h},t}},bT={name:"empty",priority:"before",args:["operate","value"],default:{operate:"abort",value:""},next(t,e,n){let r=e.operate.toLowerCase(),s=e.value;return n.onEmpty=()=>{if(r=="throw")throw new _0;if(r=="abort")throw new yl(s);if(r=="ignore")throw new Nf;return r},t}};function Vh(t,...e){if(e.length===0)return t;let n=e.map((r,s)=>{let u=Object.entries(r||{});return u.some(([h,o])=>o===void 0)?u.reduce((h,[o,m])=>(m!==void 0&&(h[o]=m),h),{}):r});return Object.assign(t,...n)}Fe(Vh,"F"),(t=>typeof Pc<"u"?Pc:typeof Proxy<"u"?new Proxy(t,{get:Fe((e,n)=>(typeof Pc<"u"?Pc:e)[n],"get")}):t)(function(t){if(typeof Pc<"u")return Pc.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});function b0(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return e===n}Fe(b0,"y");function k_(t){return t&&typeof t=="function"}Fe(k_,"v");function M0(t,e,n){if(typeof e=="string"){let r=0,s;for(;(s=t.indexOf(e,r))>-1;){let u=typeof n=="function"?n(e):n,h=t.length;t=t.substring(0,s)+u+t.substring(s+e.length),r=s+u.length+t.length-h}}else{let r;if(!e.global||!e.multiline)throw new Error("The search parameter must be enabled '/gm' option");for(;(r=e.exec(t))!==null;){r.index===e.lastIndex&&e.lastIndex++;let s=t.length,u=r[0].length,h=typeof n=="function"?n(r[0],...r):n;t=t.substring(0,r.index)+h+t.substring(r.index+u),e.lastIndex+=t.length-s}}return t}Fe(M0,"w"),String.prototype.replaceAll||(String.prototype.replaceAll=function(t,e){return M0(this,t,e)});function Gh(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}Fe(Gh,"m");function B_(t,e=!1){if(typeof t=="number")return!0;if(typeof t!="string"||e)return!1;try{if(t.includes(".")){let n=parseFloat(t);return t.endsWith(".")?!isNaN(n)&&String(n).length===t.length-1:!isNaN(n)&&String(n).length===t.length}else{let n=parseInt(t);return!isNaN(n)&&String(n).length===t.length}}catch(n){return!1}}Fe(B_,"C");var MT=/\n/gm,wT=/(["'])(.*?)(\1)/gm,AT=/([\s\[\,\{])(\w+)(\s*\:)/gm;function F_(t,e){try{return JSON.parse(t,(r,s)=>e?e(r,s):s)}catch(r){}let n=t.replace(MT,(r,s,u)=>{let h=u.slice(0,s).trim(),o=u.slice(s+1).trim();return!/,$/.test(h)&&!/[\[\{\}]$/.test(h)&&!/^\}/.test(o)?`,
|
|
3
3
|
`:`
|
|
4
|
-
`});return n=n.replaceAll(wT,(r,s,u)=>`"${encodeURI(u)}"`),n=n.replaceAll(AT,(r,s,u,h)=>`${s}"${u}"${h}`),n=n.replaceAll(",",",").replaceAll("“",'"').replaceAll("”",'"'),JSON.parse(n,(r,s)=>(typeof s=="string"&&(s=decodeURI(s)),s))}Fe(F_,"V");function z_(t,e="{",n="}"){let r=0,s=0;for(;r<t.length;){let u=t.slice(r,r+e.length),h=t.slice(r,r+n.length);if(u==e){s++,t=t.substring(0,r+e.length)+`${s}%`+t.substring(r+e.length),r+=e.length+String(s).length+1;continue}if(h==n){s>0&&(t=t.substring(0,r)+`%${s}`+t.substring(r)),r+=n.length+String(s).length+1,s--;continue}r++}return t}Fe(z_,"J");function N_(t,...e){return e.length==0&&(e.push(["{","}"]),e.push(["[","]"])),e.forEach(n=>{t.includes(n[0])&&t.includes(n[1])&&(t=z_(t,...n))}),t}Fe(N_,"H");function U_(t,e,n){return[[e,new RegExp(Gh(e)+"\\d+%")],[n,new RegExp("%\\d+"+Gh(n))]].forEach(([r,s])=>{let u;for(;(u=s.exec(t))!==null;)u.index===s.lastIndex&&s.lastIndex++,t=t.replace(s,r)}),t}Fe(U_,"G");function Uf(t,...e){return e.length==0&&(e.push(["{","}"]),e.push(["[","]"])),e.forEach(([n,r])=>{t.includes(n)&&t.includes(r)&&(t=U_(t,n,r))}),t}Fe(Uf,"E");function V_(t){return t?t.trim().substring(1).trim().split("|").map(e=>e.trim()).map(e=>{if(e=="")return null;let n=e.indexOf("("),r=e.lastIndexOf(")");if(n!==-1&&r!==-1){let s=e.substring(n+1,r).trim(),u=O_(s);return[e.substring(0,n),u]}else return[e,[]]}).filter(e=>Array.isArray(e)):[]}Fe(V_,"M");function G_(...t){t.length==0&&(t.push(["{","}"]),t.push(["[","]"]));let e=t.map(([n,r])=>`(${Gh(n)}1%.*?%1${Gh(r)})`);return ET.replace("__TAG_REGEXP__",e.length>0?e.join("|")+"|":"")}Fe(G_,"z");var ET=String.raw`((([\'\"])(.*?)\3))|__TAG_REGEXP__([\d]+\.?[\d]?)|((true|false|null)(?=[,\b\s]))|([\w\.]+)|((?<=,)\s*(?=,))(?<=\s*[,\)]?\s*)`;function O_(t){let e=[],n;t=N_(t);try{let r=new RegExp(G_(),"g");for(;(n=r.exec(t))!==null;){n.index===r.lastIndex&&r.lastIndex++;let s=n[0];if(s.trim()=="")s=void 0;else if(s.startsWith("'")&&s.endsWith("'")||s.startsWith('"')&&s.endsWith('"'))s=s.substring(1,s.length-1),s=Uf(s);else if(s.startsWith("{")&&s.endsWith("}")||s.startsWith("[")&&s.endsWith("]"))try{s=Uf(s),s=F_(s)}catch(u){}else["true","false","null"].includes(s)?s=JSON.parse(s):B_(s)?s=parseFloat(s):s=Uf(String(s));e.push(s)}}catch(r){}return e}Fe(O_,"U");var TT=new RegExp("(?<!\\\\)\\{([\\S]+\\s)?\\s*(\\w+)?((\\s*\\|\\s*\\w*(\\(.*?\\)){0,1}\\s*)*)\\s*(\\s[\\S]+)?\\}","gm");function w0(t,e,n={}){let r=t,s,u=Object.assign({replaceAll:!0},n),h=TT;for(h.lastIndex=0;(s=h.exec(r))!==null;){s.index===h.lastIndex&&h.lastIndex++;let o=s[2]||"",m=(s[1]||"").trim(),y=(s[6]||"").trim(),x=r.length,M=V_(s[3]||"");if(k_(e)){let A=e(o,m,y,M,s[0]);u.replaceAll?r=M0(r,s[0],A):r=r.replace(s[0],A),h.lastIndex+=r.length-x}}return r}Fe(w0,"O");function A0(t,e){let n=e.value;if(t.length>0){let r=Y_.call(this,t,e);for(let s of r)try{n=s.call(this,n)}catch(u){if(u instanceof _0)throw u;if(u instanceof Sc){if(u.value!=null&&(n=u.value),u instanceof yl)break}else throw u}}return this.options.isEmpty(n)||(n=`${e.prefix}${n}${e.suffix}`),n}Fe(A0,"I");function j_(t,e,n,r){if(!this.options.isEmpty(t))return t;let s=r.onEmpty||n.onEmpty||this.options.onEmpty;if(typeof s!="function")return t;let u=s.call(this,t,e,r);throw u instanceof Error?u:u==gl.Abort?new yl:u==gl.Ignore?new Nf:u==gl.Throw?new _0:new yl(u)}Fe(j_,"K");function H_(t,e,n,r,s){let u=s.onError||r.onError||this.options.onError;if(typeof u!="function")return e;let h=u.call(this,t,e,n,s);throw h instanceof Error?h:h==gl.Abort?new yl:h==gl.Ignore?new Nf:h==gl.Throw?t:new yl(h)}Fe(H_,"Q");function W_(t,e,n){var r;let s=Object.assign({},typeof t.default=="function"?t.default():t.default);return e.length==1&&b0(e[0])?Vh(s,e[0]):t.args&&((r=t.args)==null?void 0:r.length)>0&&t.args.forEach((u,h)=>{e[h]!==void 0&&(s[u]=e[h])}),u=>{let h;try{n.args=e,h=t.next.call(this,u,s,n),h=j_.call(this,h,s,t,n)}catch(o){if(o.filter=t.name,o instanceof Sc)throw o;return this.log(`当执行过滤器器<${n.match}:${t.name}>时出错:${o.stack}`),H_.call(this,o,u,s,t,n)}return String(h)}}Fe(W_,"Y");function q_(t){let e=[],n=t.map(([r,s])=>[this.getFilter.call(this,r),s]).filter(([r])=>r!=null);return n=n.reduce((r,[s,u])=>(s&&(s.priority=="before"?r.unshift([s,u]):s.priority=="after"?e.push([s,u]):r.push([s,u])),r),[]),n.concat(e)}Fe(q_,"Z");function Y_(t,e){let n=q_.call(this,t),r=[];for(let[s,u]of n)r.push(W_.call(this,s,u,e));return r}Fe(Y_,"ee");var E0,PT=(E0=class{constructor(t){this.options=Vh({log:console.log,filters:{},missing:"default",filterContext:{}},t),this.addDefaultHandlers(),this.addBuildinFilters(),this.normalizeFilters()}get filters(){return this.options.filters}addDefaultHandlers(){this.options.onError=()=>gl.Ignore,this.options.onEmpty=()=>"",this.options.isEmpty=t=>t===null||t===""}addFilter(t){if(!t.name)throw new Error("Filter name cannot be empty");if(typeof t.next!="function")throw new Error("The filter must provide a next function");return t=Vh({priority:"normal"},t),this.filters[t.name]=t}removeFilter(t){delete this.filters[t]}getFilter(t){var e;if(t in this.options.filters)return this.options.filters[t];{let n=(e=this.options.getFilter)==null?void 0:e.call(this,t);return typeof n=="function"?{name:t,next:n}:t in String.prototype?{name:t,next:Fe((r,s,u)=>r[t](...u.args),"next")}:n}}addBuildinFilters(){this.addFilter(_T),this.addFilter(bT)}normalizeFilters(){Object.entries(this.options.filters).forEach(([t,e])=>{let n=Vh({name:t,priority:"normal",args:null,next:Fe(r=>r,"next")},typeof e=="function"?{filter:e}:e);this.options.filters[t]=n})}getMissingValue(t,e){let n=this.options.missing;if(n=="default")return"";if(n=="ignore")return e;if(typeof n=="function")return n.call(this,t)}replace(t,...e){if(e.length===0)return t;if(e.length===1&&typeof e[0]=="function"&&(e[0]=e[0].call(this)),e.length===1&&b0(e[0])){let n=e[0];return w0.call(this,t,(r,s,u,h,o)=>{let m=r in n?n[r]:this.getMissingValue(r,o);return typeof m=="function"&&(m=m.call(this)),A0.call(this,h,I_({name:r,value:m,prefix:s,suffix:u,template:t,match:o,args:[]},this.options.filterContext))})}else{let n=e.length===1&&Array.isArray(e[0])?[...e[0]]:e,r=0;return w0.call(this,t,(s,u,h,o,m)=>{let y=n.length>r?n[r++]:this.getMissingValue(r,m);return typeof y=="function"&&(y=y.call(this)),A0.call(this,o,I_({name:s,value:y,prefix:u,suffix:h,template:t,match:m,args:[]},this.options.filterContext))},{replaceAll:!1})}}log(t,...e){this.options.debug&&this.options.log(t,...e)}},Fe(E0,"$"),E0);function X_(t,e,n){let{defaultValue:r,delimiter:s,matched:u}=Object.assign({delimiter:"."},n);if(!t||typeof e!="string")return r;if(!e)return t;let h=e.split(s),o=t,m,y;try{for(let x of h)if(o instanceof Map||o instanceof WeakMap){if(!o.has(x))return r;m=o,y=x,o=o.get(x)}else if(o instanceof Set){let M=parseInt(x,10);if(M>=o.size)return r;m=o,y=M,o=[...o][M]}else if(o&&typeof o=="object"&&x in o)m=o,y=Array.isArray(o)?parseInt(x):x,o=o[x];else return r}catch(x){return r}return typeof u=="function"&&u({value:o,parent:m,indexOrKey:y}),o}Fe(X_,"u");var K_=class{constructor(){Ii(this,"_flexVars")}_initInterpolators(){this._flexVars=new PT({filterContext:{getConfig:Fe(e=>{let n=this.activeMessages.$config||{};return e?X_(n,e):n},"getConfig"),scope:this}})}};Fe(K_,"InterpolatorMixin");var ST=K_;function Z_(t,...e){if(e.length===0)return t;let n=e.map((r,s)=>{let u=Object.entries(r||{});return u.some(([h,o])=>o===void 0)?u.reduce((h,[o,m])=>(m!==void 0&&(h[o]=m),h),{}):r});return Object.assign(t,...n)}Fe(Z_,"u");var T0=class zE extends m_(tT,iT,uT,fT,mT,ST,gT){constructor(e){super(),Ii(this,"__VoerkaI18nScope__",!0),Ii(this,"_options"),Ii(this,"_manager"),Ii(this,"_formatterManager",null),Ii(this,"_logger"),Ii(this,"_defaultLanguage","zh-CN"),Ii(this,"_activeLanguage","zh-CN"),Ii(this,"_activeMessages",{}),Ii(this,"_patchedMessages",{}),Ii(this,"_translateComponent"),Ii(this,"_translateTransformer"),Ii(this,"_activeParagraphs",{}),Ii(this,"$id",++zE.idSeq),this._options=Z_({id:i_(),library:!1,debug:!1,injectLangAttr:!0,languages:[],messages:{},paragraphs:{},idMap:{},formatters:[],attached:!0,storageKey:"language",cachePatch:!0},e),this._init()}get id(){return this._options.id}get options(){return this._options}get attached(){return this._options.attached}get debug(){return this._options.debug}get library(){return this._options.library}get formatters(){return this._formatterManager}get defaultLanguage(){return this._defaultLanguage}get defaultMessages(){return this.messages[this.defaultLanguage]}get messages(){return this._options.messages}get paragraphs(){return this._options.paragraphs}get idMap(){return this._options.idMap}get languages(){return this._options.languages}get manager(){return this._manager}get appScope(){return this._manager.scope}get interpolator(){return this._flexVars}get logger(){return this._logger}get t(){return this.translate.bind(this)}get Translate(){return this._getTranslateComponent()}get activeMessages(){return this._activeMessages}get activeParagraphs(){return this._activeParagraphs}get activeLanguage(){return this._activeLanguage}get storage(){return this.getScopeOption("storage")}get loader(){return this.getScopeOption("loader")}get $t(){return(e,n,r)=>(this._getTranslateTransformer(),r||(r={}),r.transform=!0,this.translate(e,n,r))}getScopeOption(e){let n=this._options;return this.attached?n[e]||(this.library?this._manager[e]:void 0):n[e]}_initOptions(){if(!Array.isArray(this.languages))this.logger.warn("[VoerkaI18n] invalid language settings, will use default language settings."),this._options.languages=Object.assign([],qE);else if(this.languages.length==0)throw new Error("[VoerkaI18n] must provide valid language settings.");let e,n;this.languages.forEach(s=>{s.default&&(n=s.name),s.active&&(e=s.name)});let r=this._options.messages;if(n in r||(n=Object.keys(r)[0]),e in r||(e=n),!(n in r))throw new Error("[VoerkaI18n] invalid language configuration, must provide valid default and active languages.");if(this._activeLanguage=e,this._defaultLanguage=n,!this._options.library&&!this._options.storage&&(this._options.storage=WE),ss(this.messages[this._defaultLanguage]))throw new Error("[VoerkaI18n] default language pack must be static content, can't use async load way.");this._activeMessages=this.messages[this._activeLanguage],this._activeParagraphs=this.paragraphs[this._activeLanguage]}_init(){this._logger=E_(this._options.log),this._initOptions(),this.library||this.restoreLanguage(),this._initInterpolators(),this.registerToManager(),this._formatterManager=new pT(this)}bind(e){this._manager=e,this._manager.once("init",this._initRefresh.bind(this))}_initRefresh(e){if(this.library)this.refresh(e&&e());else{let n=[];(this._defaultLanguage!==this._activeLanguage||ss(this.activeMessages))&&n.push(this.refresh(void 0,{patch:!1})),n.push(this._patch()),Promise.all(n).then(()=>{this.emit("ready",this.activeLanguage,!0),this._setLanguageAttr()})}}registerToManager(){if(!this.attached)return;let e=!this.options.library;e&&(globalThis.VoerkaI18n&&globalThis.VoerkaI18n.scope&&u0()&&console.warn("Only can have one i18nScope with library=false"),this._manager=new l_(this));let n=globalThis.VoerkaI18n;n&&P_(n)?e?this._initRefresh():n.register(this):(globalThis.__VoerkaI18nScopes__||(globalThis.__VoerkaI18nScopes__=[]),globalThis.__VoerkaI18nScopes__.push(this))}change(e){return Gt(this,null,function*(){let n=this.activeLanguage;return this.attached?n=yield this._manager.change(e):n=yield this.refresh(e),n})}_setLanguageAttr(){if(!(this.library||!u0()))try{let e=this._options.injectLangAttr;if(!e)return;let n=e===!0?document.body:document.body.querySelector(e);n&&n.setAttribute("lang",this.activeLanguage)}catch(e){}}getRawMessage(e){if(Ff(e)){if(e in this.defaultMessages)return this.defaultMessages[e]}else return e}getMessageId(e){if(Ff(e))return e;if(e in this.idMap)return this.idMap[e]}};Fe(T0,"VoerkaI18nScope"),Ii(T0,"idSeq",0);var CT=T0;function DT(t,e,n){return r=>{let s=t.next;return t.next=function(u,h,o){let m=o.getConfig;return o.getConfig=()=>Object.assign({},n,e==null?void 0:e[r.activeLanguage],m(t.name)),s.call(this,u,h,o)},t}}Fe(DT,"createFormatter");function RT(t){let e=globalThis.VoerkaI18n;e?e.registerPlugin(t):(globalThis.__VoerkaI18nPlugins__||(globalThis.__VoerkaI18nPlugins__=[]),globalThis.__VoerkaI18nPlugins__.push(t))}Fe(RT,"definePlugin");const LT={get(t){if(globalThis.localStorage)return globalThis.localStorage.getItem(t)},set(t,e){globalThis.localStorage&&globalThis.localStorage.setItem(t,e)},remove(t){globalThis.localStorage&&globalThis.localStorage.removeItem(t)}};var IT=Object.defineProperty,pr=(t,e)=>IT(t,"name",{value:e,configurable:!0}),Cc=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof require!="undefined"?require:e)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});function J_(t,e=!1){if(typeof t=="number")return!0;if(typeof t!="string"||e)return!1;try{if(t.includes(".")){let n=parseFloat(t);return t.endsWith(".")?!isNaN(n)&&String(n).length===t.length-1:!isNaN(n)&&String(n).length===t.length}else{let n=parseInt(t);return!isNaN(n)&&String(n).length===t.length}}catch(n){return!1}}pr(J_,"r"),(t=>typeof Cc<"u"?Cc:typeof Proxy<"u"?new Proxy(t,{get:pr((e,n)=>(typeof Cc<"u"?Cc:e)[n],"get")}):t)(function(t){if(typeof Cc<"u")return Cc.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});function Q_(t,e=3){let n=new RegExp(String.raw`(?!^)(?=(\d{${e}})+$)`,"g"),r=t.replace(n,",");return r.startsWith(",")&&(r=r.substring(1)),r.endsWith(",")&&(r=r.substring(0,r.length-2)),r}pr(Q_,"addSplitChars");function P0(t,e){let{symbol:n="",division:r=3,prefix:s="",precision:u=-1,suffix:h="",unit:o=0,radix:m=3,units:y=[],format:x="{symbol}{value}{unit}"}=e,[M,A]=String(t).split(".");o>0&&m>0&&(M.length<m*o&&(M=Array.from({length:m*o-M.length+1}).fill(0).join("")+M),A=M.substring(Number(M),M.length-m*o)+A,M=M.substring(0,M.length-m*o),M==""&&(M="0"));let T=[];T.push(Q_(M,r)),A&&J_(u)&&u!=0&&(u==0||(u==-1?T.push(`.${A}`):u>0&&(u<0?A=String(parseFloat(`0.${A}`)):A=String(parseFloat(`0.${A}`).toFixed(u)).split(".")[1],T.push(`.${A}`))));const P=y[o]||"";return x.replace("{value}",T.join("")).replace("{symbol}",n).replace("{prefix}",s).replace("{suffix}",h).replace("{unit}",P)}pr(P0,"toCurrency");var kT=[{name:"currency",args:["format","unit","precision","prefix","suffix","division","symbol","radix"],next(t,e,n){const r=n.getConfig(),s=Object.assign({},r,e);return s.format in s&&(s.format=s[s.format]),s.unit=parseInt(String(s.unit))||0,s.unit>s.units.length-1&&(s.unit=s.units.length-1),s.unit<0&&(s.unit=0),s.unit>0&&s.precision==2&&(s.precision=-1),P0(t,s)}},{"en-US":{units:[""," thousands"," millions"," billions"," trillions"],radix:3,symbol:"$",prefix:"USD",suffix:"",division:3,precision:2},"zh-CN":{units:["","万","亿","万亿","万万亿"],radix:4,symbol:"¥",prefix:"RMB",suffix:"元",division:4,precision:2}},{default:"{symbol}{value}{unit}",long:"{prefix} {symbol}{value}{unit}{suffix}",short:"{symbol}{value}{unit}",custom:"{prefix} {symbol}{value}{unit}{suffix}",format:"default"}],BT=[{name:"number",args:["precision","division"],next(t,e,n){const r=n.getConfig();return P0(t,Object.assign({},r,e))}},{"en-US":{division:3},"zh-CN":{division:4}}];function ga(t){return t instanceof Date?t:new Date(t)}pr(ga,"toDate");var FT=[{name:"timeSlots",args:["upper"],default:{upper:!0},next(t,e,n){const r=n.getConfig(),s=ga(t).getHours(),u=!!e.upper;let h=r.slots.findIndex(o=>s<o);return h===-1&&(h=r.upperCases.length-1),u?r.upperCases[h]:r.lowerCases[h]}},{"en-US":{slots:[12],lowerCases:["am","pm"],upperCases:["AM","PM"]},"zh-CN":{slots:[5,8,11,13,18],lowerCases:["凌晨","早上","上午","中午","下午","晚上"],upperCases:["凌晨","早上","上午","中午","下午","晚上"]}}];function S0(t,...e){if(e.length===0)return t;let n=e.map((r,s)=>{let u=Object.entries(r||{});return u.some(([h,o])=>o===void 0)?u.reduce((h,[o,m])=>(m!==void 0&&(h[o]=m),h),{}):r});return Object.assign(t,...n)}pr(S0,"u");var Vf={en:{month:{long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"]},weekday:{long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tues","Wed","Thur","Fri","Sat"]}},cn:{month:{long:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],short:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},weekday:{long:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],short:["周日","周一","周二","周三","周四","周五","周六"]}}},$_={en:{slots:[12],names:["AM","PM"]},cn:{slots:[6,9,11,13,18],names:["凌晨","早上","上午","中午","下午","晚上"]}},zT="YYYY-MM-DD HH:mm:ss";function C0(t){t<0&&t>23&&(t=0);let e=[0,...$_[this.language].slots,24].findIndex(n=>n>t)-1;return $_[this.language].names[e]}pr(C0,"h");function D0(t,e,n){let r=S0({language:"cn"},n),s=t instanceof Date?t:new Date(t||Date.now()),u=s.getHours(),h=String(u).padStart(2,"0"),o=u>12?u-12:u,m=String(o).padStart(2,"0"),y=String(s.getMinutes()),x=String(s.getSeconds()),M=String(s.getMilliseconds()),A=String(s.getFullYear()),T=s.getMonth(),P=s.getDay(),D=String(s.getDate()),k=[["HH",h],["H",u],["hh",m],["h",o],["mm",y.padStart(2,"0")],["m",y],["ss",x.padStart(2,"0")],["s",x],["SSS",M.padStart(3,"0")],["A",u>12?"PM":"AM"],["a",u>12?"pm":"am"],["t",C0.call(r,u)],["T",C0.call(r,u)],["YYYY",A],["yyyy",A],["YY",A.substring(2)],["MMM",Vf[r.language].month.short[T]],["MM",String(T+1).padStart(2,"0")],["M",T+1],["DD",D.padStart(2,"0")],["D",D],["d",P],["dd",Vf[r.language].weekday.short[P]],["ddd",Vf[r.language].weekday.short[P]],["dddd",Vf[r.language].weekday.long[P]]],z=e||zT;return k.forEach(([O,U])=>z=z.replaceAll(O,U)),z}pr(D0,"H");function tb(t,e,n){if(typeof e=="string"){let r=0,s;for(;(s=t.indexOf(e,r))>-1;){let u=typeof n=="function"?n(e):n,h=t.length;t=t.substring(0,s)+u+t.substring(s+e.length),r=s+u.length+t.length-h}}else{let r;if(!e.global||!e.multiline)throw new Error("The search parameter must be enabled '/gm' option");for(;(r=e.exec(t))!==null;){r.index===e.lastIndex&&e.lastIndex++;let s=t.length,u=r[0].length,h=typeof n=="function"?n(r[0],...r):n;t=t.substring(0,r.index)+h+t.substring(r.index+u),e.lastIndex+=t.length-s}}return t}pr(tb,"s"),String.prototype.replaceAll||(String.prototype.replaceAll=function(t,e){return tb(this,t,e)});var eb={local:pr(t=>t.toLocaleString(),"local"),iso:pr(t=>t.toISOString(),"iso"),utc:pr(t=>t.toUTCString(),"utc"),gmt:pr(t=>t.toGMTString(),"gmt")},NT=[{global:!0,name:"date",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t);let u=e.format||r.format;if(u in eb)return eb[u](s);if(u in r&&(u=r[u],typeof u=="function"))return u(s);if(typeof u=="string")return D0(s,u)}},{"en-US":{long:"YYYY/MM/DD HH:mm:ss",short:"YYYY/MM/DD"},"zh-CN":{long:"YYYY年M月D日 HH点mm分ss秒",short:"YYYY年M月D日"}},{format:"local"}],nb={local:pr(t=>t.toLocaleTimeString(),"local"),timestamp:pr(t=>t.getTime(),"timestamp")},UT=[{name:"time",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t);let u=e.format||r.format;if(u in nb)return nb[u](s);if(u in r&&(u=r[u],typeof u=="function"))return u(s);if(typeof u=="string")return D0(s,u)}},{"en-US":{long:"HH:mm:ss"},"zh-CN":{long:"HH点mm分ss秒"}},{format:"local",short:"HH:mm:ss"}],VT=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],GT=["周日","周一","周二","周三","周四","周五","周六"],OT=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],jT=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],HT=[{name:"weekday",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t).getDay(),u=e.format||"long";if(typeof u=="string"&&u in r){const h=r[u];return typeof h=="function"?h(s):h[s]}return s}},{"en-US":{long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tues","Wed","Thur","Fri","Sat"]},"zh-CN":{long:VT,short:GT}},{format:"long"}],WT=[{name:"month",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t).getMonth()+1,u=e.format||r.format;if(typeof u=="string"&&u in r){const h=r[u];return typeof h=="function"?h(s):h[s-1]}return s}},{"en-US":{long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"]},"zh-CN":{long:OT,short:jT}},{format:"long"}],qT=[{name:"quarter",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t).getMonth()+1,u=Math.floor(s%3==0?s/3:s/3+1)-1,h=e.format||r.format;if(typeof h=="string"&&h in r){const o=r[h];return typeof o=="function"?o(u):o[u]}return u}},{"en-US":{long:["First Quarter","Second Quarter","Third Quarter","Fourth Quarter"]},"zh-CN":{long:["一季度","二季度","三季度","四季度"]}},{format:"short",short:["Q1","Q2","Q3","Q4"]}],Oh=[1e3,6e4,36e5,864e5,6048e5,2592e6,31536e6,Number.MAX_SAFE_INTEGER];function ib(t,e,n){let{units:r,now:s,before:u,after:h}=S0({units:["秒","分钟","小时","天","周","个月","年"],now:"刚刚",before:"{value}{unit}前",after:"{value}{unit}后"},n),o=typeof t=="number"?new Date(t).getTime():t.getTime(),m=(e instanceof Date?e:typeof e=="number"?new Date(e):new Date).getTime(),y=o-m,x=Oh.findIndex(M=>Math.abs(y)<M)-1;if(x<0&&(x=0),x>Oh.length-1&&(x=Oh.length-1),y<1e3&&y>-1e3)return s;if(y<=-1e3){let M=parseInt(String(Math.abs(y)/Oh[x]));return u.replace("{value}",M).replace("{unit}",r[x])}else{let M=parseInt(String(Math.abs(y)/Oh[x]));return h.replace("{value}",M).replace("{unit}",r[x])}}pr(ib,"b");var YT=[{name:"relativeTime",args:["base"],default:pr(()=>({base:new Date}),"default"),next(t,e,n){const r=n.getConfig(),s=e.base||new Date;return ib(ga(t),s,r)}},{"en-US":{units:["seconds","minutes","hours","days","weeks","months","years"],now:"Just now",before:"{value} {unit} ago",after:"after {value} {unit}"},"zh-CN":{units:["秒","分钟","小时","天","周","个月","年"],now:"刚刚",before:"{value}{unit}前",after:"{value}{unit}后"}}],XT=[kT,BT,FT,NT,UT,HT,WT,qT,YT];const KT=(t,e)=>Gt(this,null,function*(){return yield(yield fetch(MxPluginContext.getLoaderLanguageUrl(t,e))).json()}),ZT={"zh-CN":{},"en-US":{},"ko-KR":{}},JT={" 指定输出范围第一点:":718," 指定输出范围第二点:":719," 指定第一点:":720," 指定第二点:":721," 云线框起始点:":722," 云线框结束点:":723," 审图标注点:":724," 点击开启绘制云线:":725," 再次点击结束绘制云线:":726,"指定一点:":727,"指定二点:":728,选择对象:729," 指定下一个点:":730,"\\指定插入基点":731," 指定表格插入点:":732,"指定插入点:":733,指定插入基点:734,选择标注对象:735,请选择目标文字:736," 指定填充区域内部一点:":737,"没有找到闭合区域 ":738,表面粗糙度:739,焊接符号:740,形位公差:741,选择要需要开启自定义属性的对象:742,选择要隐藏的对象:743," 指定插入点:":744," 指定一点:":745,指定夹角:746," 指定二点:":747,选择图案填充对象:748,"指定第一点:":749,"指定第二点:":750,"指定第二个角度点:":751,"指定最后一个点:":752,"指定坐标点:":753,"指定标注点:":754,请输入审批意见:755,指定云线框起始点:756,指定云线框终止点:757,指定审图标注点:758,"指定第一个角点:":759,"指定第二个角点:":760,"指定序号位置:":761,旋转符号:762,标记类型:763,"请选择需要标记的圆:":764,请设置定位点或直线或圆弧或圆:765,拖动确定标注位置:766,请指定或输入角度:767,焊缝符号:768,"请拾取定位点、直线或圆弧":769,请指定第二点:770,请设置定位点:771,请设置角度:772,请设置定位点或直线或圆弧:773,请设置引线转折点:774,拖动确定定位点:775,"请指定第一点:":776,"请指定第二点:":777,请选择目标块对象:778,请输入新块名:779,选择需要修改基点的块:780,设置基点:781,选择需要修改颜色的块:782,"输入颜色索引(0~256)":783,请选择源块:784,"选择要刷的目标块:":785,选择连接方式:786,手动逐个连线:787,自动批量连线:788,请选择连线的块:789,设置中心线长度:790,"选择要旋转的目标块:":791,设置旋转角度:792,请设置缩放比例:793,"请设置选择范围:":794,请选择目标块:795,请设置统计范围:796,"指定表格插入点:":797,选择目标曲线:798,指定长度标注点:799,选择目标对象:800,请选择目标斜率对象:801,请设置标注文字高度:802,指定斜率标注点:803,请选择目标坐标点:804,请指定标注位置:805,指定起点:806,指定终点:807,指定标注方向:808,请设置文字内容:809,请选择面积的第一个点:810,请选择下一个点:811,请选择面积标注的位置:812,请选择矩形的角点1:813,请选择矩形的角点2:814,请设置面积标注的位置:815,请选择一个测量点:816,请选择一条直线:817,请设置尺寸线的位置:818,请选择一条弧线:819,请指定尺寸线位置:820,请选择一个圆对象:821,请指定文字位置:822,请选择直线的端点或弧线:823,请指定文字的位置:824,请选择一个连续测量的标注:825,请选择第二条直线:826,请设置角度标注的位置:827," 请输入星形顶点数:":828," 指定星形中心点:":829,"请设置星形的内半径:":830," 指定星形的外半径:":831," 请输入凹凸线宽度<5>":832," 请输入凹凸线高度<10>":833,请点击确定起始点:834,请点击确定终点:835," 请输入锯齿线宽度<5>":836," 请输入锯齿线高度<10>":837," 请输入矩形宽度<5>":838," 请输入矩形高度<10>":839,请点击确定矩形中心:840," 请输入管径<10>":841," 请输入长出管口长度<5>":842,请点击确定起点:843,指定剖管线起点:844,指定剖管线终点:845,选择剖管线圆弧方向:846,左边:847,右边:848,选择模式:849,直线焊缝:850,弧线焊缝:851," 请输入焊缝半径<5>":852,指定圆弧的第二个点:853,指定圆弧的端点:854,"请输入宽度<25>":855,"请输入高度<15>":856,"请输入楼梯级数<10>":857,"请确定圆心位置 ":858,请输入圆半径:859," 请输入保温棉宽度<5>":860," 请输入保温棉高度<10>":861,请点击下一个点:862,请选择第一条线:863,请选择第二条线:864,请选择终点:865,请选择目标矩形:866,设置指北针中心点:867,设置指北针半径:868,选择提示框指向:869," 指定消息框第一点:":870," 指定消息框第二点:":871," 设置消息框指向:":872,请设置基准符文字:873,请设置文字高度:874,请设置基准符位置:875,请设置定位点或圆弧或直线:876,请设置符号位置:877,请设置圆心:878,请设置齿轮圆心:879,请设置齿轮半径:880," 请设置中心线长度10>":881,请选择第一个圆:882,请选择第二个圆:883,请设置矩形左上角点:884,请设置矩形右下角点:885,请设置圆角半径:886,请选择多边形起点:887,请选择多边形顶点:888,"选择对象:":889,指定基点:890,"指定第二个点 ":891,阵列:892,退出:893,放弃:894,"输入要进行阵列的项目数 ":895,选择圆弧对象:896,"选择复制旋转对象:":897,"请指定目标点 ":898,请指定旋转角度:899,选择要转成多边形的对象:900,设置多边形边数:901," 输入选项":902,内接于圆:903,外切于圆:904,选择要修改颜色的对象:905,输入颜色索引:906,隐藏:907,隐藏未选:908,全部显示:909,选择目标的对象:910," 指定删除方框第一点:":911," 指定删除方框第二点:":912," 选择需要精确删除的实体":913," 请选择角度复制对象":914," 请输入角度复制数量":915," 请输入角度复制的基点":916," 请输入复制角度":917,请选择顶点对象:918,请选择复制对象:919,请确定复制基点:920,请选择参考曲线:921,选择打断对象:922,指定偏移对象:923,请输入偏移距离:924,"指定伸缩对象(选择直线、多段线、圆弧)":925,伸缩至:926,选择要修改线型比例的对象:927,请输入线型比例:928,请输入阵列间距:929,请选择圆弧:930,选择排列对象:931,指定排列基点:932,"选择目标多段线:":933,"请输入圆角半径<5>":934,选择填充对象:935,请输入填充比例:936,请选择原填充图形:937,请点击填充图形内部任意一点:938,请选择线对象:939,选择等分模式:940,定距等分:941,定数等分:942,偏移等分:943,复制等分:944,请选择偏移等分对象:945,请选择复制等分对象:946,请选择需要等分的线段:947,请设置等分距离:948,请设置等分的数量:949,请设置偏移距离:950,请指定偏移点:951,请指定复制基点:952,请指定复制等分数量:953,请指定复制等分端点:954,"请选择需要矩形缩放的实体:":955,请指定矩形的角点1:956,请指定矩形角点2:957,请选择放大中心点:958,请选择放大范围:959,请设置放大倍数:960,请选择放大插入点:961,请选择一条需要打断的曲线:962,请在曲线上选取打断点:963,请输入阵列数量:964,是否开启旋转:965,是:966,否:967,"请选择需要阵列的图形:":968,请选择阵列中心点:969,"请选择闭合多边形!":970,请选择第一个点:971,请选择第二个点:972,请选择第一个闭合多边形:973,请选择第二个闭合多边形:974,请选择两个闭合多边形:975,"两个多边形没有重合边!":976,请选择目标多边形:977,请选择多边形需要添加顶点的边:978,请设置添加的顶点位置:979,请选择多边形需要删除的顶点:980,请选择多边形需要拉伸的边:981,请指定拉伸位置:982,"请设置图框方向<N>":983,横向:984,纵向:985,"请设置图框尺寸<4>":986,请设置图框位置:987,指定裁剪角点1:988,指定裁剪角点2:989,请设置道路起点:990,请设置下一点:991,"请选择目标对齐线对象(选择直线)":992,请选择目标文字对象:993,选择文字对象:994,请设置字高:995,请设置字宽:996,请选择源文字:997,请选择第一个文字:998,请选择第二个文字:999,请选择需要对齐的文字:1e3,请选择对齐方式:1001,左:1002,中:1003,右:1004,请选择对齐基点:1005,请选择需要反转的文字:1006,请选择需要去空格的文字:1007,请选择文字对象:1008,"请输入下划线宽度 ":1009,"请设置下划线距离 ":1010,"请设置下划线延长距离 ":1011,"请选择操作选项 ":1012,大写:1013,小写:1014,句首大写:1015,请选择数字对象:1016,"请选择文字插入点 ":1017,"选择要查找的范围:":1018,"请选择查找模式 ":1019,等于:1020,包含:1021,前缀为:1022,后缀为:1023,"请输入关键字 ":1024,"选择要操作的范围:":1025,选择操作方式:1026,添加:1027,删除:1028,选择操作位置:1029,前缀:1030,后缀:1031,请输入内容:1032,"请选择文本 ":1033,"请选择圆弧 ":1034,请选择文字样式:1035,请设置文字提取范围:1036,下载开Demo代码:1037,下载开发包:1038,调用画圆线命令:1039,交互画直线:1040,添加图层:1041,得到所有图层:1042,得到所有文字样式:1043,得到所有图块:1044,得到所有线型:1045,写扩展数据:1046,读扩展数据:1047,测试插入一个图块:1048,绘直线:1049,绘圆弧:1050,绘圆:1051,绘PL线:1052,绘填充:1053,绘文字:1054,绘椭圆:1055,绘椭圆弧:1056,绘制多行文字:1057,绘制表格:1058,绘制二维码:1059,插入图章:1060,得到所有对象:1061,交互选择对象:1062,保存mxweb到服务器:1063,得到系统变量:1064,新建图纸:1065,白色背景色:1066,文字查找定位:1067,选择实体做块:1068,绘制单行文字:1069,选点填充:1070,设置扩展属性:1071,绘制对齐标注:1072,绘性线标注:1073,角度标注:1074,修改对象线型:1075,选择隐藏对象层:1076,添加到当前选择:1077,视区旋转:1078,写扩展记录:1079,得到命名字典:1080,添加文字样式:1081,绘自定义实体:1082,修改对象颜色:1083,修改对象不可见:1084,修改对象层:1085,修改对象显示顺序:1086,指定范围输出pdf:1087,绘制image:1088,读取对象扩展字典:1089,绘制3DPolyline:1090,绘线文本自定义实体:1091,计算交点:1092,修改文字样式:1093,偏移输入画线:1094,创建组:1095,屏幕截图jpg:1096,获取图纸相同文字:1097,指定范围输出dwg:1098,测试绘制标记圆:1099,测试Wipeout:1100,创建剪切块:1101,公差标注:1102,改所有对象颜色:1103,切剪mxweb:1104,设置当前颜色线重:1105,查找多边形区域内对象:1106,打碎对象:1107,绘半透明线:1108,添加线型:1109,修改图案比例:1110,测试文字编辑:1111,绘制条形码:1112,屏幕截图bmp:1113,修改工具:1114,文字工具:1115,绘图工具:1116,块工具:1117,测量工具:1118,标注工具:1119,其他工具:1120,多重复制:1121,弧转圆:1122,复制旋转:1123,圆转多边:1124,修改颜色:1125,圆弧切角:1126,临时隐藏:1127,方框删除:1128,角度复制:1129,顶点复制:1130,交点打断:1131,双向偏移:1132,改圆大小:1133,线型比例:1134,伸缩:1135,按弧阵列:1136,pl圆角:1137,pl线反向:1138,得到所有直线对象:1139,等分:1140,矩形缩放:1141,打断:1142,切割多边形:1143,合并多边形:1144,添加多边形顶点:1145,删除多边形顶点:1146,多边形单边拉伸:1147,星形:1148,凹凸线:1149,锯齿线:1150,中心矩形:1151,圆角矩形:1152,圆中心线:1153,管道:1154,剖管符:1155,中垂线:1156,楼梯:1157,实心圆:1158,保温棉:1159,中心线:1160,开洞:1161,消息框:1162,"基准符(1)":1163,焊缝线:1164,同心圆:1165,齿轮:1166,块中心线:1167,圆公切线:1168,"基准符(2)":1169,插入图框:1170,绘制道路:1171,绘任意多边形:1172,按线对齐:1173,改字高:1174,改字宽:1175,刷内容:1176,换内容:1177,左右对齐:1178,上下对齐:1179,文字反转:1180,文字加框:1181,下划线:1182,图名线:1183,大小写:1184,数字求和:1185,选特定字:1186,前后缀:1187,连接文字:1188,去空格:1189,文字竖向:1190,按弧对齐:1191,修改全局文字样式:1192,提取文字:1193,文字编号:1194,改块名:1195,刷块:1196,块连线:1197,改块基点:1198,改块颜色:1199,多块旋转:1200,多块缩放:1201,刷块角度:1202,按块选择:1203,按块全选:1204,统计单块:1205,统计多块:1206,修改块图层:1207,长度:1208,统计面积:1209,智能标高:1210,面积:1211,矩形面积:1212,点到直线的距离:1213,弧长:1214,测量圆:1215,连续测量:1216,查看分段长度:1217,面积含弧线:1218,审图标注:1219,矩形标注:1220,粗糙度标注:1221,坐标标注:1222,标斜率:1223,对齐:1224,局部放大:1225,序号标注:1226,旋转标注:1227,圆孔标记:1228,向视符号:1229,射线标注:1230,矩形标注悬停变色:1231,裁剪图纸扩展:1232,箭头直线:1233,选择的文字:1234,复制到剪贴板:1235,取消:1236,确定:1237,公差代号:1238,公差1:1239,公差2:1240,附注:1241,顶端:1242,底端:1243,基准:1244,全周符号:1245,当前行:1246,增加行:1247,删除行:1248,清零:1249,直线度:1250,平面度:1251,圆度:1252,圆柱度:1253,线轮廓度:1254,面轮廓度:1255,平行度:1256,垂直度:1257,倾斜度:1258,位置度:1259,同轴度:1260,对称度:1261,圆跳动:1262,全跳动:1263,清除:1264,"请输入文本内容和编号:":1265,"文本内容:":1266,"(输入0-20个字)":1267,"起始编号:":1268,"(编号自动递增1)":1269,"编号位置:":1270,编号在前:1271,编号在后:1272,改变方向:1273,"左边文字内容:":1274,"右边文字内容:":1275,"底部文字内容:":1276,基本符号:1277,相同要求:1278,多数符号:1279,长边加横线:1280,辅助符号:1281,补充符号:1282,符号位置:1283,特殊符号:1284,左尺寸:1285,上尺寸:1286,右尺寸:1287,交错焊缝:1288,间距:1289,扩充文字:1290,虚线位置:1291,焊接说明:1292,清除行:1293,卷边焊缝:1294,I型焊缝:1295,V型焊缝:1296,单边V型焊缝:1297,单边陡侧V型坡口堆焊:1298,倾斜焊缝:1299,可移除衬垫:1300,持久衬垫:1301,带顿边V型焊缝:1302,带顿边U型焊缝:1303,带顿边单边V型焊缝:1304,带顿边单边U型焊缝:1305,端接焊缝:1306,堆焊接头:1307,封底焊缝:1308,角焊缝:1309,塞焊缝或槽焊缝:1310,点焊缝:1311,折叠接口:1312,倾斜接口:1313,"点焊缝(偏移中心)":1314,缝焊缝:1315,"缝焊缝(偏离中心)":1316,陡侧V型坡口堆焊:1317,第一种平面符号:1318,第二种凹面符号:1319,第二种凸面符号:1320,第二种平面符号:1321,第一种凸面符号:1322,第三种平面符号:1323,第一种凹面符号:1324,削平焊缝:1325,趾部平滑过渡:1326,带垫板符号:1327,三面焊缝符号:1328,周围焊接符:1329,现场符号:1330,尾部符号:1331,交错断续焊接符号:1332,喇叭形焊缝:1333,单边喇叭形焊缝:1334,堆焊缝:1335,锁边焊缝:1336,锁边坡口:1337,上:1338,下:1339,无:1340,basicSymbol:1341,auxiliarySymbol:1342,suppleSymbol:1343,specialSymbol:1344,选择要在几何图形上放置的焊缝符号:1345,"焊角宽度:":1346,"单边V型对接焊缝(前视图)":1347,"角焊缝(前视图)":1348,"单边V型对接焊缝(侧视图)":1349,"角焊缝(侧视图)":1350},QT=void 0,$T=void 0,tP={languages:[{name:"zh-CN",title:"中文",active:!0,default:!0},{name:"en-US",title:"英语"},{name:"ko-KR",title:"韩语"},{name:"zh-TW",title:"繁体中文"}],library:!0,debug:!1},eP={"zh-CN":{718:" 指定输出范围第一点:",719:" 指定输出范围第二点:",720:" 指定第一点:",721:" 指定第二点:",722:" 云线框起始点:",723:" 云线框结束点:",724:" 审图标注点:",725:" 点击开启绘制云线:",726:" 再次点击结束绘制云线:",727:"指定一点:",728:"指定二点:",729:"选择对象",730:" 指定下一个点:",731:"\\指定插入基点",732:" 指定表格插入点:",733:"指定插入点:",734:"指定插入基点",735:"选择标注对象",736:"请选择目标文字",737:" 指定填充区域内部一点:",738:"没有找到闭合区域 ",739:"表面粗糙度",740:"焊接符号",741:"形位公差",742:"选择要需要开启自定义属性的对象",743:"选择要隐藏的对象",744:" 指定插入点:",745:" 指定一点:",746:"指定夹角",747:" 指定二点:",748:"选择图案填充对象",749:"指定第一点:",750:"指定第二点:",751:"指定第二个角度点:",752:"指定最后一个点:",753:"指定坐标点:",754:"指定标注点:",755:"请输入审批意见",756:"指定云线框起始点",757:"指定云线框终止点",758:"指定审图标注点",759:"指定第一个角点:",760:"指定第二个角点:",761:"指定序号位置:",762:"旋转符号",763:"标记类型",764:"请选择需要标记的圆:",765:"请设置定位点或直线或圆弧或圆",766:"拖动确定标注位置",767:"请指定或输入角度",768:"焊缝符号",769:"请拾取定位点、直线或圆弧",770:"请指定第二点",771:"请设置定位点",772:"请设置角度",773:"请设置定位点或直线或圆弧",774:"请设置引线转折点",775:"拖动确定定位点",776:"请指定第一点:",777:"请指定第二点:",778:"请选择目标块对象",779:"请输入新块名",780:"选择需要修改基点的块",781:"设置基点",782:"选择需要修改颜色的块",783:"输入颜色索引(0~256)",784:"请选择源块",785:"选择要刷的目标块:",786:"选择连接方式",787:"手动逐个连线",788:"自动批量连线",789:"请选择连线的块",790:"设置中心线长度",791:"选择要旋转的目标块:",792:"设置旋转角度",793:"请设置缩放比例",794:"请设置选择范围:",795:"请选择目标块",796:"请设置统计范围",797:"指定表格插入点:",798:"选择目标曲线",799:"指定长度标注点",800:"选择目标对象",801:"请选择目标斜率对象",802:"请设置标注文字高度",803:"指定斜率标注点",804:"请选择目标坐标点",805:"请指定标注位置",806:"指定起点",807:"指定终点",808:"指定标注方向",809:"请设置文字内容",810:"请选择面积的第一个点",811:"请选择下一个点",812:"请选择面积标注的位置",813:"请选择矩形的角点1",814:"请选择矩形的角点2",815:"请设置面积标注的位置",816:"请选择一个测量点",817:"请选择一条直线",818:"请设置尺寸线的位置",819:"请选择一条弧线",820:"请指定尺寸线位置",821:"请选择一个圆对象",822:"请指定文字位置",823:"请选择直线的端点或弧线",824:"请指定文字的位置",825:"请选择一个连续测量的标注",826:"请选择第二条直线",827:"请设置角度标注的位置",828:" 请输入星形顶点数:",829:" 指定星形中心点:",830:"请设置星形的内半径:",831:" 指定星形的外半径:",832:" 请输入凹凸线宽度<5>",833:" 请输入凹凸线高度<10>",834:"请点击确定起始点",835:"请点击确定终点",836:" 请输入锯齿线宽度<5>",837:" 请输入锯齿线高度<10>",838:" 请输入矩形宽度<5>",839:" 请输入矩形高度<10>",840:"请点击确定矩形中心",841:" 请输入管径<10>",842:" 请输入长出管口长度<5>",843:"请点击确定起点",844:"指定剖管线起点",845:"指定剖管线终点",846:"选择剖管线圆弧方向",847:"左边",848:"右边",849:"选择模式",850:"直线焊缝",851:"弧线焊缝",852:" 请输入焊缝半径<5>",853:"指定圆弧的第二个点",854:"指定圆弧的端点",855:"请输入宽度<25>",856:"请输入高度<15>",857:"请输入楼梯级数<10>",858:"请确定圆心位置 ",859:"请输入圆半径",860:" 请输入保温棉宽度<5>",861:" 请输入保温棉高度<10>",862:"请点击下一个点",863:"请选择第一条线",864:"请选择第二条线",865:"请选择终点",866:"请选择目标矩形",867:"设置指北针中心点",868:"设置指北针半径",869:"选择提示框指向",870:" 指定消息框第一点:",871:" 指定消息框第二点:",872:" 设置消息框指向:",873:"请设置基准符文字",874:"请设置文字高度",875:"请设置基准符位置",876:"请设置定位点或圆弧或直线",877:"请设置符号位置",878:"请设置圆心",879:"请设置齿轮圆心",880:"请设置齿轮半径",881:" 请设置中心线长度10>",882:"请选择第一个圆",883:"请选择第二个圆",884:"请设置矩形左上角点",885:"请设置矩形右下角点",886:"请设置圆角半径",887:"请选择多边形起点",888:"请选择多边形顶点",889:"选择对象:",890:"指定基点",891:"指定第二个点 ",892:"阵列",893:"退出",894:"放弃",895:"输入要进行阵列的项目数 ",896:"选择圆弧对象",897:"选择复制旋转对象:",898:"请指定目标点 ",899:"请指定旋转角度",900:"选择要转成多边形的对象",901:"设置多边形边数",902:" 输入选项",903:"内接于圆",904:"外切于圆",905:"选择要修改颜色的对象",906:"输入颜色索引",907:"隐藏",908:"隐藏未选",909:"全部显示",910:"选择目标的对象",911:" 指定删除方框第一点:",912:" 指定删除方框第二点:",913:" 选择需要精确删除的实体",914:" 请选择角度复制对象",915:" 请输入角度复制数量",916:" 请输入角度复制的基点",917:" 请输入复制角度",918:"请选择顶点对象",919:"请选择复制对象",920:"请确定复制基点",921:"请选择参考曲线",922:"选择打断对象",923:"指定偏移对象",924:"请输入偏移距离",925:"指定伸缩对象(选择直线、多段线、圆弧)",926:"伸缩至",927:"选择要修改线型比例的对象",928:"请输入线型比例",929:"请输入阵列间距",930:"请选择圆弧",931:"选择排列对象",932:"指定排列基点",933:"选择目标多段线:",934:"请输入圆角半径<5>",935:"选择填充对象",936:"请输入填充比例",937:"请选择原填充图形",938:"请点击填充图形内部任意一点",939:"请选择线对象",940:"选择等分模式",941:"定距等分",942:"定数等分",943:"偏移等分",944:"复制等分",945:"请选择偏移等分对象",946:"请选择复制等分对象",947:"请选择需要等分的线段",948:"请设置等分距离",949:"请设置等分的数量",950:"请设置偏移距离",951:"请指定偏移点",952:"请指定复制基点",953:"请指定复制等分数量",954:"请指定复制等分端点",955:"请选择需要矩形缩放的实体:",956:"请指定矩形的角点1",957:"请指定矩形角点2",958:"请选择放大中心点",959:"请选择放大范围",960:"请设置放大倍数",961:"请选择放大插入点",962:"请选择一条需要打断的曲线",963:"请在曲线上选取打断点",964:"请输入阵列数量",965:"是否开启旋转",966:"是",967:"否",968:"请选择需要阵列的图形:",969:"请选择阵列中心点",970:"请选择闭合多边形!",971:"请选择第一个点",972:"请选择第二个点",973:"请选择第一个闭合多边形",974:"请选择第二个闭合多边形",975:"请选择两个闭合多边形",976:"两个多边形没有重合边!",977:"请选择目标多边形",978:"请选择多边形需要添加顶点的边",979:"请设置添加的顶点位置",980:"请选择多边形需要删除的顶点",981:"请选择多边形需要拉伸的边",982:"请指定拉伸位置",983:"请设置图框方向<N>",984:"横向",985:"纵向",986:"请设置图框尺寸<4>",987:"请设置图框位置",988:"指定裁剪角点1",989:"指定裁剪角点2",990:"请设置道路起点",991:"请设置下一点",992:"请选择目标对齐线对象(选择直线)",993:"请选择目标文字对象",994:"选择文字对象",995:"请设置字高",996:"请设置字宽",997:"请选择源文字",998:"请选择第一个文字",999:"请选择第二个文字",1e3:"请选择需要对齐的文字",1001:"请选择对齐方式",1002:"左",1003:"中",1004:"右",1005:"请选择对齐基点",1006:"请选择需要反转的文字",1007:"请选择需要去空格的文字",1008:"请选择文字对象",1009:"请输入下划线宽度 ",1010:"请设置下划线距离 ",1011:"请设置下划线延长距离 ",1012:"请选择操作选项 ",1013:"大写",1014:"小写",1015:"句首大写",1016:"请选择数字对象",1017:"请选择文字插入点 ",1018:"选择要查找的范围:",1019:"请选择查找模式 ",1020:"等于",1021:"包含",1022:"前缀为",1023:"后缀为",1024:"请输入关键字 ",1025:"选择要操作的范围:",1026:"选择操作方式",1027:"添加",1028:"删除",1029:"选择操作位置",1030:"前缀",1031:"后缀",1032:"请输入内容",1033:"请选择文本 ",1034:"请选择圆弧 ",1035:"请选择文字样式",1036:"请设置文字提取范围",1037:"下载开Demo代码",1038:"下载开发包",1039:"调用画圆线命令",1040:"交互画直线",1041:"添加图层",1042:"得到所有图层",1043:"得到所有文字样式",1044:"得到所有图块",1045:"得到所有线型",1046:"写扩展数据",1047:"读扩展数据",1048:"测试插入一个图块",1049:"绘直线",1050:"绘圆弧",1051:"绘圆",1052:"绘PL线",1053:"绘填充",1054:"绘文字",1055:"绘椭圆",1056:"绘椭圆弧",1057:"绘制多行文字",1058:"绘制表格",1059:"绘制二维码",1060:"插入图章",1061:"得到所有对象",1062:"交互选择对象",1063:"保存mxweb到服务器",1064:"得到系统变量",1065:"新建图纸",1066:"白色背景色",1067:"文字查找定位",1068:"选择实体做块",1069:"绘制单行文字",1070:"选点填充",1071:"设置扩展属性",1072:"绘制对齐标注",1073:"绘性线标注",1074:"角度标注",1075:"修改对象线型",1076:"选择隐藏对象层",1077:"添加到当前选择",1078:"视区旋转",1079:"写扩展记录",1080:"得到命名字典",1081:"添加文字样式",1082:"绘自定义实体",1083:"修改对象颜色",1084:"修改对象不可见",1085:"修改对象层",1086:"修改对象显示顺序",1087:"指定范围输出pdf",1088:"绘制image",1089:"读取对象扩展字典",1090:"绘制3DPolyline",1091:"绘线文本自定义实体",1092:"计算交点",1093:"修改文字样式",1094:"偏移输入画线",1095:"创建组",1096:"屏幕截图jpg",1097:"获取图纸相同文字",1098:"指定范围输出dwg",1099:"测试绘制标记圆",1100:"测试Wipeout",1101:"创建剪切块",1102:"公差标注",1103:"改所有对象颜色",1104:"切剪mxweb",1105:"设置当前颜色线重",1106:"查找多边形区域内对象",1107:"打碎对象",1108:"绘半透明线",1109:"添加线型",1110:"修改图案比例",1111:"测试文字编辑",1112:"绘制条形码",1113:"屏幕截图bmp",1114:"修改工具",1115:"文字工具",1116:"绘图工具",1117:"块工具",1118:"测量工具",1119:"标注工具",1120:"其他工具",1121:"多重复制",1122:"弧转圆",1123:"复制旋转",1124:"圆转多边",1125:"修改颜色",1126:"圆弧切角",1127:"临时隐藏",1128:"方框删除",1129:"角度复制",1130:"顶点复制",1131:"交点打断",1132:"双向偏移",1133:"改圆大小",1134:"线型比例",1135:"伸缩",1136:"按弧阵列",1137:"pl圆角",1138:"pl线反向",1139:"得到所有直线对象",1140:"等分",1141:"矩形缩放",1142:"打断",1143:"切割多边形",1144:"合并多边形",1145:"添加多边形顶点",1146:"删除多边形顶点",1147:"多边形单边拉伸",1148:"星形",1149:"凹凸线",1150:"锯齿线",1151:"中心矩形",1152:"圆角矩形",1153:"圆中心线",1154:"管道",1155:"剖管符",1156:"中垂线",1157:"楼梯",1158:"实心圆",1159:"保温棉",1160:"中心线",1161:"开洞",1162:"消息框",1163:"基准符(1)",1164:"焊缝线",1165:"同心圆",1166:"齿轮",1167:"块中心线",1168:"圆公切线",1169:"基准符(2)",1170:"插入图框",1171:"绘制道路",1172:"绘任意多边形",1173:"按线对齐",1174:"改字高",1175:"改字宽",1176:"刷内容",1177:"换内容",1178:"左右对齐",1179:"上下对齐",1180:"文字反转",1181:"文字加框",1182:"下划线",1183:"图名线",1184:"大小写",1185:"数字求和",1186:"选特定字",1187:"前后缀",1188:"连接文字",1189:"去空格",1190:"文字竖向",1191:"按弧对齐",1192:"修改全局文字样式",1193:"提取文字",1194:"文字编号",1195:"改块名",1196:"刷块",1197:"块连线",1198:"改块基点",1199:"改块颜色",1200:"多块旋转",1201:"多块缩放",1202:"刷块角度",1203:"按块选择",1204:"按块全选",1205:"统计单块",1206:"统计多块",1207:"修改块图层",1208:"长度",1209:"统计面积",1210:"智能标高",1211:"面积",1212:"矩形面积",1213:"点到直线的距离",1214:"弧长",1215:"测量圆",1216:"连续测量",1217:"查看分段长度",1218:"面积含弧线",1219:"审图标注",1220:"矩形标注",1221:"粗糙度标注",1222:"坐标标注",1223:"标斜率",1224:"对齐",1225:"局部放大",1226:"序号标注",1227:"旋转标注",1228:"圆孔标记",1229:"向视符号",1230:"射线标注",1231:"矩形标注悬停变色",1232:"裁剪图纸扩展",1233:"箭头直线",1234:"选择的文字",1235:"复制到剪贴板",1236:"取消",1237:"确定",1238:"公差代号",1239:"公差1",1240:"公差2",1241:"附注",1242:"顶端",1243:"底端",1244:"基准",1245:"全周符号",1246:"当前行",1247:"增加行",1248:"删除行",1249:"清零",1250:"直线度",1251:"平面度",1252:"圆度",1253:"圆柱度",1254:"线轮廓度",1255:"面轮廓度",1256:"平行度",1257:"垂直度",1258:"倾斜度",1259:"位置度",1260:"同轴度",1261:"对称度",1262:"圆跳动",1263:"全跳动",1264:"清除",1265:"请输入文本内容和编号:",1266:"文本内容:",1267:"(输入0-20个字)",1268:"起始编号:",1269:"(编号自动递增1)",1270:"编号位置:",1271:"编号在前",1272:"编号在后",1273:"改变方向",1274:"左边文字内容:",1275:"右边文字内容:",1276:"底部文字内容:",1277:"基本符号",1278:"相同要求",1279:"多数符号",1280:"长边加横线",1281:"辅助符号",1282:"补充符号",1283:"符号位置",1284:"特殊符号",1285:"左尺寸",1286:"上尺寸",1287:"右尺寸",1288:"交错焊缝",1289:"间距",1290:"扩充文字",1291:"虚线位置",1292:"焊接说明",1293:"清除行",1294:"卷边焊缝",1295:"I型焊缝",1296:"V型焊缝",1297:"单边V型焊缝",1298:"单边陡侧V型坡口堆焊",1299:"倾斜焊缝",1300:"可移除衬垫",1301:"持久衬垫",1302:"带顿边V型焊缝",1303:"带顿边U型焊缝",1304:"带顿边单边V型焊缝",1305:"带顿边单边U型焊缝",1306:"端接焊缝",1307:"堆焊接头",1308:"封底焊缝",1309:"角焊缝",1310:"塞焊缝或槽焊缝",1311:"点焊缝",1312:"折叠接口",1313:"倾斜接口",1314:"点焊缝(偏移中心)",1315:"缝焊缝",1316:"缝焊缝(偏离中心)",1317:"陡侧V型坡口堆焊",1318:"第一种平面符号",1319:"第二种凹面符号",1320:"第二种凸面符号",1321:"第二种平面符号",1322:"第一种凸面符号",1323:"第三种平面符号",1324:"第一种凹面符号",1325:"削平焊缝",1326:"趾部平滑过渡",1327:"带垫板符号",1328:"三面焊缝符号",1329:"周围焊接符",1330:"现场符号",1331:"尾部符号",1332:"交错断续焊接符号",1333:"喇叭形焊缝",1334:"单边喇叭形焊缝",1335:"堆焊缝",1336:"锁边焊缝",1337:"锁边坡口",1338:"上",1339:"下",1340:"无",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"选择要在几何图形上放置的焊缝符号",1346:"焊角宽度:",1347:"单边V型对接焊缝(前视图)",1348:"角焊缝(前视图)",1349:"单边V型对接焊缝(侧视图)",1350:"角焊缝(侧视图)"},"en-US":()=>c0(()=>Promise.resolve().then(()=>XV),void 0),"ko-KR":()=>c0(()=>Promise.resolve().then(()=>KV),void 0),"zh-TW":()=>c0(()=>Promise.resolve().then(()=>ZV),void 0)},jh=new CT(Bh({id:"mxcad-plugin__1_0_0",idMap:JT,formatters:XT,storage:LT,messages:eP,paragraphs:ZT,component:QT,loader:KT,transform:$T},tP)),nP=jh.t;jh.$t,jh.Translate;const rb=b.ref();jh.on("change",t=>{rb.value=t});const G=(t,...e)=>(rb.value,jh.t(t,...e)),iP=t=>(b.pushScopeId("data-v-a388a3ba"),t=t(),b.popScopeId(),t),rP={key:0,class:"modal-wrapper",id:"modal"},oP={class:"modal-body card"},sP={class:"modal-header"},aP={class:"heading"},lP=[iP(()=>b.createElementVNode("svg",{viewBox:"0 0 24 24"},[b.createElementVNode("path",{d:"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"})],-1))],cP={style:{"overflow-y":"auto",height:"500px"}},uP={class:"btn_box"},hP={class:"btn_box"},dP={class:"btn_box"},pP={class:"btn_box"},fP={class:"btn_box"},mP={class:"btn_box"},gP={class:"btn_box"},yP={class:"btn_box"},xP={class:"btn_box"},vP={class:"btn_box"},_P={class:"btn_box"},bP={class:"btn_box"},MP={class:"btn_box"},wP={class:"btn_box"},AP={class:"btn_box"},EP={class:"btn_box"},TP={class:"btn_box"},PP={class:"btn_box"},SP={class:"btn_box"},CP={class:"btn_box"},DP=b.defineComponent({__name:"Modal",setup(t){const{isModalVisible:e,hideModal:n,modalOptions:r}=If(),s=b.ref(!1);return b.watch(()=>e.value,u=>{u&&(s.value=localStorage.getItem("language")==="en")}),(u,h)=>(b.openBlock(),b.createBlock(b.Teleport,{to:"body"},[b.unref(e)?(b.openBlock(),b.createElementBlock("div",rP,[b.createElementVNode("div",oP,[b.createElementVNode("div",sP,[b.createElementVNode("h2",aP,b.toDisplayString(b.unref(r).title),1),b.createElementVNode("a",{href:"#!",onClick:h[0]||(h[0]=(...o)=>b.unref(n)&&b.unref(n)(...o)),role:"button",class:"close","aria-label":"close this modal"},lP)]),b.createElementVNode("div",cP,[b.createElementVNode("div",uP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[1]||(h[1]=o=>b.unref(r).docommand("Mx_Open_DemoCode"))},b.toDisplayString(b.unref(G)("下载开Demo代码")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[2]||(h[2]=o=>b.unref(r).docommand("Mx_Open_DevInstall"))},b.toDisplayString(b.unref(G)("下载开发包")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[3]||(h[3]=(...o)=>b.unref(r).ondrawline&&b.unref(r).ondrawline(...o))},b.toDisplayString(b.unref(G)("调用画圆线命令")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[4]||(h[4]=o=>b.unref(r).docommand("MxTest_DrawLine"))},b.toDisplayString(b.unref(G)("交互画直线")),3)]),b.createElementVNode("div",hP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[5]||(h[5]=o=>b.unref(r).docommand("MxTest_AddLayer"))},b.toDisplayString(b.unref(G)("添加图层")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[6]||(h[6]=o=>b.unref(r).docommand("MxTest_GetAllLayer"))},b.toDisplayString(b.unref(G)("得到所有图层")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[7]||(h[7]=o=>b.unref(r).docommand("MxTest_GetAllTextStyle"))},b.toDisplayString(b.unref(G)("得到所有文字样式")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[8]||(h[8]=o=>b.unref(r).docommand("MxTest_GetAllBlock"))},b.toDisplayString(b.unref(G)("得到所有图块")),3)]),b.createElementVNode("div",dP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[9]||(h[9]=o=>b.unref(r).docommand("MxTest_GetAllLinetype"))},b.toDisplayString(b.unref(G)("得到所有线型")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[10]||(h[10]=o=>b.unref(r).docommand("MxTest_WritexData"))},b.toDisplayString(b.unref(G)("写扩展数据")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[11]||(h[11]=o=>b.unref(r).docommand("MxTest_ReadxData"))},b.toDisplayString(b.unref(G)("读扩展数据")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[12]||(h[12]=o=>b.unref(r).docommand("MxTest_InsertBlock"))},b.toDisplayString(b.unref(G)("测试插入一个图块")),3)]),b.createElementVNode("div",pP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[13]||(h[13]=o=>b.unref(r).docommand("Mx_Test_DrawLine"))},b.toDisplayString(b.unref(G)("绘直线")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[14]||(h[14]=o=>b.unref(r).docommand("Mx_Test_DrawArc"))},b.toDisplayString(b.unref(G)("绘圆弧")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[15]||(h[15]=o=>b.unref(r).docommand("Mx_Test_DrawCircle"))},b.toDisplayString(b.unref(G)("绘圆")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[16]||(h[16]=o=>b.unref(r).docommand("Mx_Test_DrawPolyline"))},b.toDisplayString(b.unref(G)("绘PL线")),3)]),b.createElementVNode("div",fP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[17]||(h[17]=o=>b.unref(r).docommand("Mx_Test_DrawHatch"))},b.toDisplayString(b.unref(G)("绘填充")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[18]||(h[18]=o=>b.unref(r).docommand("Mx_Test_DrawText"))},b.toDisplayString(b.unref(G)("绘文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[19]||(h[19]=o=>b.unref(r).docommand("Mx_Test_Ellipse"))},b.toDisplayString(b.unref(G)("绘椭圆")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[20]||(h[20]=o=>b.unref(r).docommand("Mx_Test_EllipseArc"))},b.toDisplayString(b.unref(G)("绘椭圆弧")),3)]),b.createElementVNode("div",mP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[21]||(h[21]=o=>b.unref(r).docommand("Mx_Test_MText"))},b.toDisplayString(b.unref(G)("绘制多行文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[22]||(h[22]=o=>b.unref(r).docommand("Mx_Test_DrawTable"))},b.toDisplayString(b.unref(G)("绘制表格")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[23]||(h[23]=o=>b.unref(r).docommand("Mx_Test_QRCode"))},b.toDisplayString(b.unref(G)("绘制二维码")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[24]||(h[24]=o=>b.unref(r).docommand("MxTest_InsertStamp"))},b.toDisplayString(b.unref(G)("插入图章")),3)]),b.createElementVNode("div",gP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[25]||(h[25]=(...o)=>b.unref(r).ongetallentity&&b.unref(r).ongetallentity(...o))},b.toDisplayString(b.unref(G)("得到所有对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[26]||(h[26]=o=>b.unref(r).docommand("MxTest_SelectEntity"))},b.toDisplayString(b.unref(G)("交互选择对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[27]||(h[27]=o=>b.unref(r).docommand("Mx_Export_MxWeb"))},b.toDisplayString(b.unref(G)("保存mxweb到服务器")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[28]||(h[28]=o=>b.unref(r).docommand("MxTest_GetSysVars"))},b.toDisplayString(b.unref(G)("得到系统变量")),3)]),b.createElementVNode("div",yP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[29]||(h[29]=o=>b.unref(r).docommand("MxTest_NewFile"))},b.toDisplayString(b.unref(G)("新建图纸")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[30]||(h[30]=o=>b.unref(r).docommand("Mx_ViewBackgroundColor"))},b.toDisplayString(b.unref(G)("白色背景色")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[31]||(h[31]=o=>b.unref(r).docommand("MxTest_FindText"))},b.toDisplayString(b.unref(G)("文字查找定位")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[32]||(h[32]=o=>b.unref(r).docommand("MxTest_SelectEntitysToBlock"))},b.toDisplayString(b.unref(G)("选择实体做块")),3)]),b.createElementVNode("div",xP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[33]||(h[33]=o=>b.unref(r).docommand("Mx_Test_Text"))},b.toDisplayString(b.unref(G)("绘制单行文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[34]||(h[34]=o=>b.unref(r).docommand("MxTest_DrawHatchFormPoint"))},b.toDisplayString(b.unref(G)("选点填充")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[35]||(h[35]=o=>b.unref(r).docommand("Mx_TestExProp"))},b.toDisplayString(b.unref(G)("设置扩展属性")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[36]||(h[36]=o=>b.unref(r).docommand("Mx_Test_DimAligned"))},b.toDisplayString(b.unref(G)("绘制对齐标注")),3)]),b.createElementVNode("div",vP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[37]||(h[37]=o=>b.unref(r).docommand("Mx_Test_DrawDimRotated"))},b.toDisplayString(b.unref(G)("绘性线标注")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[38]||(h[38]=o=>b.unref(r).docommand("Mx_Test_DrawDimAngular"))},b.toDisplayString(b.unref(G)("角度标注")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[39]||(h[39]=o=>b.unref(r).docommand("MxTest_LineTypeTest"))},b.toDisplayString(b.unref(G)("修改对象线型")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[40]||(h[40]=o=>b.unref(r).docommand("Mx_SelectEntitHideLayer"))},b.toDisplayString(b.unref(G)("选择隐藏对象层")),3)]),b.createElementVNode("div",_P,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[41]||(h[41]=o=>b.unref(r).docommand("MxTest_TestAddCurrentSelect"))},b.toDisplayString(b.unref(G)("添加到当前选择")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[42]||(h[42]=o=>b.unref(r).docommand("MxTest_TestSetViewAngle"))},b.toDisplayString(b.unref(G)("视区旋转")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[43]||(h[43]=o=>b.unref(r).docommand("MxTest_WriteXRecord"))},b.toDisplayString(b.unref(G)("写扩展记录")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[44]||(h[44]=o=>b.unref(r).docommand("MxTest_GetNamedObjectsDictionary"))},b.toDisplayString(b.unref(G)("得到命名字典")),3)]),b.createElementVNode("div",bP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[45]||(h[45]=o=>b.unref(r).docommand("MxTest_AddTextStyleTable"))},b.toDisplayString(b.unref(G)("添加文字样式")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[46]||(h[46]=o=>b.unref(r).docommand("MxTest_DrawCustomEntity"))},b.toDisplayString(b.unref(G)("绘自定义实体")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[47]||(h[47]=o=>b.unref(r).docommand("Mx_Test_ChangeColor"))},b.toDisplayString(b.unref(G)("修改对象颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[48]||(h[48]=o=>b.unref(r).docommand("Mx_Test_ChangeVisible"))},b.toDisplayString(b.unref(G)("修改对象不可见")),3)]),b.createElementVNode("div",MP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[49]||(h[49]=o=>b.unref(r).docommand("Mx_Test_ChangeEntityLayer"))},b.toDisplayString(b.unref(G)("修改对象层")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[50]||(h[50]=o=>b.unref(r).docommand("Mx_ChaneEntityDrawOrder"))},b.toDisplayString(b.unref(G)("修改对象显示顺序")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[51]||(h[51]=o=>b.unref(r).docommand("Mx_Export_Pdf"))},b.toDisplayString(b.unref(G)("指定范围输出pdf")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[52]||(h[52]=o=>b.unref(r).docommand("Mx_Test_DrawImage"))},b.toDisplayString(b.unref(G)("绘制image")),3)]),b.createElementVNode("div",wP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[53]||(h[53]=o=>b.unref(r).docommand("MxTest_GetObjectExDictionaryData"))},b.toDisplayString(b.unref(G)("读取对象扩展字典")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[54]||(h[54]=o=>b.unref(r).docommand("Mx_Test_Draw3DPolyline"))},b.toDisplayString(b.unref(G)("绘制3DPolyline")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[55]||(h[55]=o=>b.unref(r).docommand("MxTest_LineText"))},b.toDisplayString(b.unref(G)("绘线文本自定义实体")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[56]||(h[56]=o=>b.unref(r).docommand("Mx_Test_IntersectWith"))},b.toDisplayString(b.unref(G)("计算交点")),3)]),b.createElementVNode("div",AP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[57]||(h[57]=o=>b.unref(r).docommand("Mx_Test_TrueText"))},b.toDisplayString(b.unref(G)("修改文字样式")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[58]||(h[58]=o=>b.unref(r).docommand("Mx_Test_OffsetIn_DrawLine"))},b.toDisplayString(b.unref(G)("偏移输入画线")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[59]||(h[59]=o=>b.unref(r).docommand("Mx_Test_CreateGroup"))},b.toDisplayString(b.unref(G)("创建组")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[60]||(h[60]=o=>b.unref(r).docommand("Mx_ScreenToJpg"))},b.toDisplayString(b.unref(G)("屏幕截图jpg")),3)]),b.createElementVNode("div",EP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[61]||(h[61]=o=>b.unref(r).docommand("Mx_Test_GetText"))},b.toDisplayString(b.unref(G)("获取图纸相同文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[62]||(h[62]=o=>b.unref(r).docommand("Mx_Cut_Dwg"))},b.toDisplayString(b.unref(G)("指定范围输出dwg")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[63]||(h[63]=o=>b.unref(r).docommand("Mx_Test_DrawMarkCircle"))},b.toDisplayString(b.unref(G)("测试绘制标记圆")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[64]||(h[64]=o=>b.unref(r).docommand("Mx_Test_Wipeout"))},b.toDisplayString(b.unref(G)("测试Wipeout")),3)]),b.createElementVNode("div",TP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[65]||(h[65]=o=>b.unref(r).docommand("MxTest_SelectEntitysToSpatialFilterBlock"))},b.toDisplayString(b.unref(G)("创建剪切块")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[66]||(h[66]=o=>b.unref(r).docommand("Mx_Test_DrawDimRotatedTol"))},b.toDisplayString(b.unref(G)("公差标注")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[67]||(h[67]=o=>b.unref(r).docommand("MxTest_ModifyAllEntityColor"))},b.toDisplayString(b.unref(G)("改所有对象颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[68]||(h[68]=o=>b.unref(r).docommand("Mx_Cut_MxWeb"))},b.toDisplayString(b.unref(G)("切剪mxweb")),3)]),b.createElementVNode("div",PP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[69]||(h[69]=o=>b.unref(r).docommand("Mx_Test_SetCurrentlyDraw"))},b.toDisplayString(b.unref(G)("设置当前颜色线重")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[70]||(h[70]=o=>b.unref(r).docommand("Mx_Test_FindPolygonEntitys"))},b.toDisplayString(b.unref(G)("查找多边形区域内对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[71]||(h[71]=o=>b.unref(r).docommand("MxTest_Explode"))},b.toDisplayString(b.unref(G)("打碎对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[72]||(h[72]=o=>b.unref(r).docommand("Mx_Test_DrawTransparencyLine"))},b.toDisplayString(b.unref(G)("绘半透明线")),3)]),b.createElementVNode("div",SP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[73]||(h[73]=o=>b.unref(r).docommand("MxTest_LineRecord"))},b.toDisplayString(b.unref(G)("添加线型")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[74]||(h[74]=o=>b.unref(r).docommand("MxTest_ModifyPatternScale"))},b.toDisplayString(b.unref(G)("修改图案比例")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[75]||(h[75]=o=>b.unref(r).docommand("Mx_DrawEditorEntity"))},b.toDisplayString(b.unref(G)("测试文字编辑")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[76]||(h[76]=o=>b.unref(r).docommand("Mx_TestDrawBarCode"))},b.toDisplayString(b.unref(G)("绘制条形码")),3)]),b.createElementVNode("div",CP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[77]||(h[77]=o=>b.unref(r).docommand("Mx_TestdrawQrCode"))},b.toDisplayString(b.unref(G)("绘制二维码")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[78]||(h[78]=o=>b.unref(r).docommand("Mx_ScreenToBmp"))},b.toDisplayString(b.unref(G)("屏幕截图bmp")),3)])])])])):b.createCommentVNode("",!0)]))}}),kO="",zo=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},RP=zo(DP,[["__scopeId","data-v-a388a3ba"],["__file","Modal.vue"]]),ob=t=>(b.pushScopeId("data-v-0817c4f4"),t=t(),b.popScopeId(),t),LP={key:0,class:"modal-wrapper",id:"modal"},IP={class:"modal-body card"},kP={class:"modal-header"},BP={class:"heading"},FP=[ob(()=>b.createElementVNode("svg",{viewBox:"0 0 24 24"},[b.createElementVNode("path",{d:"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"})],-1))],zP={style:{"border-bottom":"2px solid #008CBA","margin-bottom":"8px",display:"flex","flex-wrap":"wrap"}},NP=["onClick"],UP={style:{"overflow-y":"auto",height:"500px"}},VP={class:"btn_box"},GP={class:"btn_box"},OP={class:"btn_box"},jP={class:"btn_box"},HP={class:"btn_box"},WP={class:"btn_box"},qP={class:"btn_box"},YP={style:{"overflow-y":"auto",height:"500px"}},XP={class:"btn_box"},KP={class:"btn_box"},ZP={class:"btn_box"},JP={class:"btn_box"},QP={class:"btn_box"},$P={class:"btn_box"},tS={class:"btn_box"},eS={style:{"overflow-y":"auto",height:"500px"}},nS={class:"btn_box"},iS={class:"btn_box"},rS={class:"btn_box"},oS={class:"btn_box"},sS={class:"btn_box"},aS={class:"btn_box"},lS={style:{"overflow-y":"auto",height:"500px"}},cS={class:"btn_box"},uS={class:"btn_box"},hS={class:"btn_box"},dS={class:"btn_box"},pS={style:{"overflow-y":"auto",height:"500px"}},fS={class:"btn_box"},mS={class:"btn_box"},gS={class:"btn_box"},yS={style:{"overflow-y":"auto",height:"500px"}},xS={class:"btn_box"},vS={class:"btn_box"},_S={class:"btn_box"},bS={class:"btn_box"},MS={style:{"overflow-y":"auto",height:"500px"}},wS={class:"btn_box"},AS=[ob(()=>b.createElementVNode("svg",{viewBox:"0 0 24 24"},[b.createElementVNode("path",{d:"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"})],-1))],ES={class:"btnBox"},TS=b.defineComponent({__name:"Tools",setup(t){const{isToolsVisible:e,hideModal:n,modalOptions:r,isDialogVisible:s,excelText:u,copyTextToClipboard:h}=If(),o=b.ref("fit"),{store:m}=MxPluginContext,{setCommandFocus:y}=m.useFocus(),x=b.ref(null),M=T=>{const P=x.value,D=T.clientX-P.offsetLeft,k=T.clientY-P.offsetTop,z=O=>{P.style.left=O.clientX-D+"px",P.style.top=O.clientY-k+"px"};document.addEventListener("mousemove",z),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",z)})},A=b.ref(!1);return b.watch(()=>e.value,T=>{T&&(A.value=localStorage.getItem("language")==="en")}),(T,P)=>(b.openBlock(),b.createBlock(b.Teleport,{to:"body"},[b.unref(e)?(b.openBlock(),b.createElementBlock("div",LP,[b.createElementVNode("div",IP,[b.createElementVNode("div",kP,[b.createElementVNode("h2",BP,b.toDisplayString(b.unref(r).title),1),b.createElementVNode("a",{href:"#!",onClick:P[0]||(P[0]=(...D)=>b.unref(n)&&b.unref(n)(...D)),role:"button",class:"close","aria-label":"close this modal"},FP)]),b.createElementVNode("div",zP,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList([{name:b.unref(G)("修改工具"),id:"fit"},{name:b.unref(G)("文字工具"),id:"text"},{name:b.unref(G)("绘图工具"),id:"draw"},{name:b.unref(G)("块工具"),id:"block"},{name:b.unref(G)("测量工具"),id:"count"},{name:b.unref(G)("标注工具"),id:"dimension"},{name:b.unref(G)("其他工具"),id:"other"}],D=>(b.openBlock(),b.createElementBlock("button",{key:D.id,onClick:()=>{o.value=D.id},class:b.normalizeClass(o.value===D.id?"btn btn2":"btn"),style:b.normalizeStyle(A.value?"font-size:var(--mx-font-size)":"")},b.toDisplayString(D.name),15,NP))),128))]),b.withDirectives(b.createElementVNode("div",UP,[b.createElementVNode("div",VP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[1]||(P[1]=D=>b.unref(r).docommand("Mx_Multicopy"))},b.toDisplayString(b.unref(G)("多重复制")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[2]||(P[2]=D=>b.unref(r).docommand("Mx_ArcToCircle"))},b.toDisplayString(b.unref(G)("弧转圆")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[3]||(P[3]=D=>b.unref(r).docommand("Mx_CopyRotation"))},b.toDisplayString(b.unref(G)("复制旋转")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[4]||(P[4]=D=>b.unref(r).docommand("Mx_CricleTotoll"))},b.toDisplayString(b.unref(G)("圆转多边")),3)]),b.createElementVNode("div",GP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[5]||(P[5]=D=>b.unref(r).docommand("Mx_ChangeColor"))},b.toDisplayString(b.unref(G)("修改颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[6]||(P[6]=D=>b.unref(r).docommand("Mx_ArcToAngle"))},b.toDisplayString(b.unref(G)("圆弧切角")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[7]||(P[7]=D=>b.unref(r).docommand("Mx_TemHiding"))},b.toDisplayString(b.unref(G)("临时隐藏")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[8]||(P[8]=D=>b.unref(r).docommand("Mx_BoxDel"))},b.toDisplayString(b.unref(G)("方框删除")),3)]),b.createElementVNode("div",OP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[9]||(P[9]=D=>b.unref(r).docommand("Mx_AngleCopy"))},b.toDisplayString(b.unref(G)("角度复制")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[10]||(P[10]=D=>b.unref(r).docommand("Mx_VertexRep"))},b.toDisplayString(b.unref(G)("顶点复制")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[11]||(P[11]=D=>b.unref(r).docommand("Mx_IntersectBreak"))},b.toDisplayString(b.unref(G)("交点打断")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[12]||(P[12]=D=>b.unref(r).docommand("Mx_DoubleOff"))},b.toDisplayString(b.unref(G)("双向偏移")),3)]),b.createElementVNode("div",jP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[13]||(P[13]=D=>b.unref(r).docommand("Mx_EitCircle"))},b.toDisplayString(b.unref(G)("改圆大小")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[14]||(P[14]=D=>b.unref(r).docommand("Mx_LayerTypeScale"))},b.toDisplayString(b.unref(G)("线型比例")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[15]||(P[15]=D=>b.unref(r).docommand("Mx_Telescoping"))},b.toDisplayString(b.unref(G)("伸缩")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[16]||(P[16]=D=>b.unref(r).docommand("Mx_ArcOrder"))},b.toDisplayString(b.unref(G)("按弧阵列")),3)]),b.createElementVNode("div",HP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[17]||(P[17]=D=>b.unref(r).docommand("Mx_PlRoundCorners"))},b.toDisplayString(b.unref(G)("pl圆角")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[18]||(P[18]=D=>b.unref(r).docommand("Mx_PlReverse"))},b.toDisplayString(b.unref(G)("pl线反向")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[19]||(P[19]=D=>b.unref(r).docommand("Mx_TestGetAllLineByLayer"))},b.toDisplayString(b.unref(G)("得到所有直线对象")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[20]||(P[20]=D=>b.unref(r).docommand("Mx_Bisection"))},b.toDisplayString(b.unref(G)("等分")),3)]),b.createElementVNode("div",WP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[21]||(P[21]=D=>b.unref(r).docommand("Mx_RectangularScaling"))},b.toDisplayString(b.unref(G)("矩形缩放")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[22]||(P[22]=D=>b.unref(r).docommand("Mx_Interrupt"))},b.toDisplayString(b.unref(G)("打断")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[23]||(P[23]=D=>b.unref(r).docommand("Mx_PolygonClipping"))},b.toDisplayString(b.unref(G)("切割多边形")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[24]||(P[24]=D=>b.unref(r).docommand("Mx_MergePolygons"))},b.toDisplayString(b.unref(G)("合并多边形")),3)]),b.createElementVNode("div",qP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[25]||(P[25]=D=>b.unref(r).docommand("Mx_AddVertex"))},b.toDisplayString(b.unref(G)("添加多边形顶点")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[26]||(P[26]=D=>b.unref(r).docommand("Mx_DeleteVertex"))},b.toDisplayString(b.unref(G)("删除多边形顶点")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[27]||(P[27]=D=>b.unref(r).docommand("Mx_StretchPolygon"))},b.toDisplayString(b.unref(G)("多边形单边拉伸")),3)])],512),[[b.vShow,o.value==="fit"]]),b.withDirectives(b.createElementVNode("div",YP,[b.createElementVNode("div",XP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[28]||(P[28]=D=>b.unref(r).docommand("Mx_DrawStart"))},b.toDisplayString(b.unref(G)("星形")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[29]||(P[29]=D=>b.unref(r).docommand("Mx_ConcavoVex"))},b.toDisplayString(b.unref(G)("凹凸线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[30]||(P[30]=D=>b.unref(r).docommand("Mx_ZigzagLine"))},b.toDisplayString(b.unref(G)("锯齿线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[31]||(P[31]=D=>b.unref(r).docommand("Mx_CenterRect"))},b.toDisplayString(b.unref(G)("中心矩形")),3)]),b.createElementVNode("div",KP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[32]||(P[32]=D=>b.unref(r).docommand("Mx_RREC"))},b.toDisplayString(b.unref(G)("圆角矩形")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[33]||(P[33]=D=>b.unref(r).docommand("Mx_CCLine"))},b.toDisplayString(b.unref(G)("圆中心线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[34]||(P[34]=D=>b.unref(r).docommand("Mx_Piping"))},b.toDisplayString(b.unref(G)("管道")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[35]||(P[35]=D=>b.unref(r).docommand("Mx_CutPipeline"))},b.toDisplayString(b.unref(G)("剖管符")),3)]),b.createElementVNode("div",ZP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[36]||(P[36]=D=>b.unref(r).docommand("Mx_PerpLine"))},b.toDisplayString(b.unref(G)("中垂线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[37]||(P[37]=D=>b.unref(r).docommand("Mx_StairLine"))},b.toDisplayString(b.unref(G)("楼梯")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[38]||(P[38]=D=>b.unref(r).docommand("Mx_SolidCircle"))},b.toDisplayString(b.unref(G)("实心圆")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[39]||(P[39]=D=>b.unref(r).docommand("Mx_CottonInsulation"))},b.toDisplayString(b.unref(G)("保温棉")),3)]),b.createElementVNode("div",JP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[40]||(P[40]=D=>b.unref(r).docommand("Mx_CenterLine"))},b.toDisplayString(b.unref(G)("中心线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[41]||(P[41]=D=>b.unref(r).docommand("Mx_DoHole"))},b.toDisplayString(b.unref(G)("开洞")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[42]||(P[42]=D=>b.unref(r).docommand("Mx_MassegeBox"))},b.toDisplayString(b.unref(G)("消息框")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[43]||(P[43]=D=>b.unref(r).docommand("Mx_DatumSymbol"))},b.toDisplayString(b.unref(G)("基准符(1)")),3)]),b.createElementVNode("div",QP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[44]||(P[44]=D=>b.unref(r).docommand("Mx_WelLine"))},b.toDisplayString(b.unref(G)("焊缝线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[45]||(P[45]=D=>b.unref(r).docommand("Mx_ConcentricCircles"))},b.toDisplayString(b.unref(G)("同心圆")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[46]||(P[46]=D=>b.unref(r).docommand("Mx_Gear"))},b.toDisplayString(b.unref(G)("齿轮")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[47]||(P[47]=D=>b.unref(r).docommand("Mx_BlkCenterLine"))},b.toDisplayString(b.unref(G)("块中心线")),3)]),b.createElementVNode("div",$P,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[48]||(P[48]=D=>b.unref(r).docommand("Mx_RoundCutPublicLine"))},b.toDisplayString(b.unref(G)("圆公切线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[49]||(P[49]=D=>b.unref(r).docommand("Mx_DatumSymbol2"))},b.toDisplayString(b.unref(G)("基准符(2)")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[50]||(P[50]=D=>b.unref(r).docommand("Mx_InsterFrame"))},b.toDisplayString(b.unref(G)("插入图框")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[51]||(P[51]=D=>b.unref(r).docommand("Mx_drawRoads"))},b.toDisplayString(b.unref(G)("绘制道路")),3)]),b.createElementVNode("div",tS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[52]||(P[52]=D=>b.unref(r).docommand("Mx_DrawPolygon"))},b.toDisplayString(b.unref(G)("绘任意多边形")),3)])],512),[[b.vShow,o.value==="draw"]]),b.withDirectives(b.createElementVNode("div",eS,[b.createElementVNode("div",nS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[53]||(P[53]=D=>b.unref(r).docommand("Mx_AlignByLine"))},b.toDisplayString(b.unref(G)("按线对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[54]||(P[54]=D=>b.unref(r).docommand("Mx_TextHeight"))},b.toDisplayString(b.unref(G)("改字高")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[55]||(P[55]=D=>b.unref(r).docommand("Mx_TextWidth"))},b.toDisplayString(b.unref(G)("改字宽")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[56]||(P[56]=D=>b.unref(r).docommand("Mx_BrushCon"))},b.toDisplayString(b.unref(G)("刷内容")),3)]),b.createElementVNode("div",iS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[57]||(P[57]=D=>b.unref(r).docommand("Mx_ReplaceCon"))},b.toDisplayString(b.unref(G)("换内容")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[58]||(P[58]=D=>b.unref(r).docommand("Mx_AlignLeft"))},b.toDisplayString(b.unref(G)("左右对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[59]||(P[59]=D=>b.unref(r).docommand("Mx_AlignUp"))},b.toDisplayString(b.unref(G)("上下对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[60]||(P[60]=D=>b.unref(r).docommand("Mx_TextReversal"))},b.toDisplayString(b.unref(G)("文字反转")),3)]),b.createElementVNode("div",rS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[61]||(P[61]=D=>b.unref(r).docommand("Mx_TextTraming"))},b.toDisplayString(b.unref(G)("文字加框")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[62]||(P[62]=D=>b.unref(r).docommand("Mx_Underline"))},b.toDisplayString(b.unref(G)("下划线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[63]||(P[63]=D=>b.unref(r).docommand("Mx_TitleLine"))},b.toDisplayString(b.unref(G)("图名线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[64]||(P[64]=D=>b.unref(r).docommand("Mx_Case"))},b.toDisplayString(b.unref(G)("大小写")),3)]),b.createElementVNode("div",oS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[65]||(P[65]=D=>b.unref(r).docommand("Mx_NumSum"))},b.toDisplayString(b.unref(G)("数字求和")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[66]||(P[66]=D=>b.unref(r).docommand("Mx_SSWords"))},b.toDisplayString(b.unref(G)("选特定字")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[67]||(P[67]=D=>b.unref(r).docommand("Mx_Prefix"))},b.toDisplayString(b.unref(G)("前后缀")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[68]||(P[68]=D=>b.unref(r).docommand("Mx_ConnectText"))},b.toDisplayString(b.unref(G)("连接文字")),3)]),b.createElementVNode("div",sS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[69]||(P[69]=D=>b.unref(r).docommand("Mx_TextTrim"))},b.toDisplayString(b.unref(G)("去空格")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[70]||(P[70]=D=>b.unref(r).docommand("Mx_VerticalText"))},b.toDisplayString(b.unref(G)("文字竖向")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[71]||(P[71]=D=>b.unref(r).docommand("Mx_AlignByArc"))},b.toDisplayString(b.unref(G)("按弧对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[72]||(P[72]=D=>b.unref(r).docommand("Mx_EditTextStyle"))},b.toDisplayString(b.unref(G)("修改全局文字样式")),3)]),b.createElementVNode("div",aS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[73]||(P[73]=D=>b.unref(r).docommand("Mx_ExtractText"))},b.toDisplayString(b.unref(G)("提取文字")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[74]||(P[74]=D=>b.unref(r).docommand("Mx_NumberText"))},b.toDisplayString(b.unref(G)("文字编号")),3)])],512),[[b.vShow,o.value==="text"]]),b.withDirectives(b.createElementVNode("div",lS,[b.createElementVNode("div",cS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[75]||(P[75]=D=>b.unref(r).docommand("Mx_ChangeBN"))},b.toDisplayString(b.unref(G)("改块名")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[76]||(P[76]=D=>b.unref(r).docommand("Mx_BushBlk"))},b.toDisplayString(b.unref(G)("刷块")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[77]||(P[77]=D=>b.unref(r).docommand("Mx_ConBlk"))},b.toDisplayString(b.unref(G)("块连线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[78]||(P[78]=D=>b.unref(r).docommand("Mx_BlkCenterLine"))},b.toDisplayString(b.unref(G)("块中心线")),3)]),b.createElementVNode("div",uS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[79]||(P[79]=D=>b.unref(r).docommand("Mx_BlkPt"))},b.toDisplayString(b.unref(G)("改块基点")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[80]||(P[80]=D=>b.unref(r).docommand("Mx_BlkColor"))},b.toDisplayString(b.unref(G)("改块颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[81]||(P[81]=D=>b.unref(r).docommand("Mx_BlkRotate"))},b.toDisplayString(b.unref(G)("多块旋转")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[82]||(P[82]=D=>b.unref(r).docommand("Mx_BlkScale"))},b.toDisplayString(b.unref(G)("多块缩放")),3)]),b.createElementVNode("div",hS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[83]||(P[83]=D=>b.unref(r).docommand("Mx_BlkAngle"))},b.toDisplayString(b.unref(G)("刷块角度")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[84]||(P[84]=D=>b.unref(r).docommand("Mx_BlkSelect"))},b.toDisplayString(b.unref(G)("按块选择")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[85]||(P[85]=D=>b.unref(r).docommand("Mx_BlkAllSelect"))},b.toDisplayString(b.unref(G)("按块全选")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[86]||(P[86]=D=>b.unref(r).docommand("Mx_SSBlk"))},b.toDisplayString(b.unref(G)("统计单块")),3)]),b.createElementVNode("div",dS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[87]||(P[87]=D=>b.unref(r).docommand("Mx_SMBlk"))},b.toDisplayString(b.unref(G)("统计多块")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[88]||(P[88]=D=>b.unref(r).docommand("Mx_BlkLayer"))},b.toDisplayString(b.unref(G)("修改块图层")),3)])],512),[[b.vShow,o.value==="block"]]),b.withDirectives(b.createElementVNode("div",pS,[b.createElementVNode("div",fS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[89]||(P[89]=D=>b.unref(r).docommand("Mx_StaLength"))},b.toDisplayString(b.unref(G)("长度")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[90]||(P[90]=D=>b.unref(r).docommand("Mx_StaArea"))},b.toDisplayString(b.unref(G)("统计面积")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[91]||(P[91]=D=>b.unref(r).docommand("Mx_Elevation"))},b.toDisplayString(b.unref(G)("智能标高")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[92]||(P[92]=D=>b.unref(r).docommand("Mx_Area"))},b.toDisplayString(b.unref(G)("面积")),3)]),b.createElementVNode("div",mS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[93]||(P[93]=D=>b.unref(r).docommand("Mx_ReactArea"))},b.toDisplayString(b.unref(G)("矩形面积")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[94]||(P[94]=D=>b.unref(r).docommand("Mx_DistFromPointToLine"))},b.toDisplayString(b.unref(G)("点到直线的距离")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[95]||(P[95]=D=>b.unref(r).docommand("Mx_ArcLength"))},b.toDisplayString(b.unref(G)("弧长")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[96]||(P[96]=D=>b.unref(r).docommand("Mx_MeasuringCircle"))},b.toDisplayString(b.unref(G)("测量圆")),3)]),b.createElementVNode("div",gS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[97]||(P[97]=D=>b.unref(r).docommand("Mx_ContinueMeasurement"))},b.toDisplayString(b.unref(G)("连续测量")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[98]||(P[98]=D=>b.unref(r).docommand("Mx_CountList"))},b.toDisplayString(b.unref(G)("查看分段长度")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[99]||(P[99]=D=>b.unref(r).docommand("Mx_AreaArc"))},b.toDisplayString(b.unref(G)("面积含弧线")),3)])],512),[[b.vShow,o.value==="count"]]),b.withDirectives(b.createElementVNode("div",yS,[b.createElementVNode("div",xS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[100]||(P[100]=D=>b.unref(r).docommand("Mx_Approval"))},b.toDisplayString(b.unref(G)("审图标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[101]||(P[101]=D=>b.unref(r).docommand("Mx_AnnotatedRectangle"))},b.toDisplayString(b.unref(G)("矩形标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[102]||(P[102]=D=>b.unref(r).docommand("Mx_Roughness"))},b.toDisplayString(b.unref(G)("粗糙度标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[103]||(P[103]=D=>b.unref(r).docommand("Mx_CoordAnnotation"))},b.toDisplayString(b.unref(G)("坐标标注")),3)]),b.createElementVNode("div",vS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[104]||(P[104]=D=>b.unref(r).docommand("Mx_StandardSlope"))},b.toDisplayString(b.unref(G)("标斜率")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[105]||(P[105]=D=>b.unref(r).docommand("Mx_Alignment"))},b.toDisplayString(b.unref(G)("对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[106]||(P[106]=D=>b.unref(r).docommand("Mx_Enlarge"))},b.toDisplayString(b.unref(G)("局部放大")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[107]||(P[107]=D=>b.unref(r).docommand("Mx_indexSymbol"))},b.toDisplayString(b.unref(G)("序号标注")),3)]),b.createElementVNode("div",_S,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[108]||(P[108]=D=>b.unref(r).docommand("Mx_RotationLabel"))},b.toDisplayString(b.unref(G)("旋转标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[109]||(P[109]=D=>b.unref(r).docommand("Mx_RoundHoleMark"))},b.toDisplayString(b.unref(G)("圆孔标记")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[110]||(P[110]=D=>b.unref(r).docommand("Mx_weldSymbol"))},b.toDisplayString(b.unref(G)("焊缝符号")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[111]||(P[111]=D=>b.unref(r).docommand("Mx_DirectionaSymbol"))},b.toDisplayString(b.unref(G)("向视符号")),3)]),b.createElementVNode("div",bS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[112]||(P[112]=D=>b.unref(r).docommand("Mx_WeldingSymbol"))},b.toDisplayString(b.unref(G)("焊接符号")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[113]||(P[113]=D=>b.unref(r).docommand("Mx_Test_DrawGT"))},b.toDisplayString(b.unref(G)("形位公差")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[114]||(P[114]=D=>b.unref(r).docommand("MxTest_DrawRayAnnotation"))},b.toDisplayString(b.unref(G)("射线标注")),3)])],512),[[b.vShow,o.value==="dimension"]]),b.withDirectives(b.createElementVNode("div",MS,[b.createElementVNode("div",wS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[115]||(P[115]=D=>b.unref(r).docommand("Mx_ReactChangeColor"))},b.toDisplayString(b.unref(G)("矩形标注悬停变色")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[116]||(P[116]=D=>b.unref(r).docommand("Mx_Cut_MxWebToFile"))},b.toDisplayString(b.unref(G)("裁剪图纸扩展")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[117]||(P[117]=D=>b.unref(r).docommand("MxTest_DrawArrowLine"))},b.toDisplayString(b.unref(G)("箭头直线")),3)])],512),[[b.vShow,o.value==="other"]])])])):b.createCommentVNode("",!0),b.unref(s)?(b.openBlock(),b.createElementBlock("div",{key:1,class:"textBox",ref_key:"model",ref:x},[b.createElementVNode("div",{class:"header",onMousedown:M},[b.createElementVNode("span",null,b.toDisplayString(b.unref(G)("选择的文字")),1),b.createElementVNode("a",{href:"#!",onClick:P[118]||(P[118]=D=>s.value=!1),role:"button",class:"close","aria-label":"close this modal"},AS)],32),b.withDirectives(b.createElementVNode("textarea",{rows:"20",cols:"50",onFocus:P[119]||(P[119]=()=>b.unref(y)(!1)),onBlur:P[120]||(P[120]=()=>b.unref(y)(!0)),"onUpdate:modelValue":P[121]||(P[121]=D=>b.isRef(u)?u.value=D:null)},null,544),[[b.vModelText,b.unref(u)]]),b.createElementVNode("div",ES,[b.createElementVNode("button",{onClick:P[122]||(P[122]=(...D)=>b.unref(h)&&b.unref(h)(...D))},b.toDisplayString(b.unref(G)("复制到剪贴板")),1)])],512)):b.createCommentVNode("",!0)]))}}),zO="",PS=zo(TS,[["__scopeId","data-v-0817c4f4"],["__file","Tools.vue"]]),SS=zo(b.defineComponent({__name:"Test",setup(t){return(e,n)=>(b.openBlock(),b.createElementBlock("div",null,[b.createVNode(RP),b.createVNode(PS)]))}}),[["__file","Test.vue"]]),CS={init(){$.MxFun.setPostMessageToParentFrameFunction(function(t){top.postMessage(t,"*")}),window.addEventListener("message",function(t){t.data.type==="sendStringToExecute"?$.MxFun.sendStringToExecute(t.data.cmd,t.data):(console.log("mx:unprocessed message:"),console.log(t.data))},!1)}};function DS(){CS.init()}function RS(){return Gt(this,null,function*(){const t=new $.MrxDbgUiPrPoint;t.setMessage(G(" 指定第一点:")),t.go(e=>{if(e!=0)return;const n=t.value();let r=new $.MxDbLeadComment;r.point1=n.clone(),r.textHeight=$.MxFun.screenCoordLong2Doc(50),r.text="测试Test1",r.textWidth=$.MxFun.screenCoordLong2Doc(300),r.fixedSize=!0,r.fixedSize&&(r.textHeight=50,r.textWidth=250),r.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor();const s=new $.McEdGetPointWorldDrawObject;s.setDraw((u,h)=>{r.point2=u,h.drawCustomEntity(r)}),t.setBasePt(n),t.setUseBasePt(!0),t.setUserDraw(s),t.setMessage(G(" 指定第二点:")),t.go(u=>{if(u!=0){console.log(u);return}const h=t.value();r.point2=h,$.MxFun.addToCurrentSpace(r)})})})}function LS(){$.MxFun.getCurrentDraw().createCanvasImageData(t=>{const e=window.open();e!=null&&(e.document.write('<img src="'+t+'"/>'),setTimeout(()=>{e.print()},300))},{width:349,height:536})}function IS(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor();const e=new $.MrxDbgUiPrPoint,n=$.MxFun.getCurrentDraw(),r=new $.McEdGetPointWorldDrawObject,s=new $.MxDbRectBoxLeadComment;s.color=t.getHex(),s.color==0&&(s.color=65793),s.radius=$.MxFun.screenCoordLong2Doc(8),s.setLineWidth(3),s.setLineWidthByPixels(!0),e.setMessage(G(" 云线框起始点:")),e.go(u=>{u==$.MrxDbgUiPrBaseReturn.kOk&&(s.point1=e.value(),r.setDraw(h=>{s.point2=h,r.drawCustomEntity(s)}),e.setUserDraw(r),e.setMessage(G(" 云线框结束点:")),e.go(h=>{h==$.MrxDbgUiPrBaseReturn.kOk&&(s.point2=e.value(),r.setDraw(o=>{s.point3=o,r.drawCustomEntity(s)}),s.text="审图批注XXXXXXXXXX",s.textWidth=$.MxFun.screenCoordLong2Doc(200),s.textHeight=$.MxFun.screenCoordLong2Doc(50),s.fixedSize=!0,s.fixedSize&&(s.textHeight=20,s.textWidth=230),e.setMessage(G(" 审图标注点:")),e.go(o=>{o==$.MrxDbgUiPrBaseReturn.kOk&&(s.point3=e.value(),n.addMxEntity(s))}))}))})})}function R0(t,e){let n=$.MxFun.screenCoordLong2World(e?t:t-t/3);return n=$.MxFun.worldCoordLong2Doc(n),n}function kS(){const t=new $.McEdGetPointWorldDrawObject,e=new $.MxDbArrow,n=$.MxFun.getCurrentDraw(),r=new $.MrxDbgUiPrPoint;r.setUserDraw(t),e.setLineWidth(10),e.innerOffset=R0(10),e.outerOffset=R0(22),e.topOffset=R0(36),e.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),r.go(()=>{e.startPoint=r.value(),t.setDraw(s=>{e.endPoint=s,t.drawCustomEntity(e)}),r.go(s=>Gt(this,null,function*(){e.endPoint=r.value(),n.addMxEntity(e)}))})}function BS(){const t=new $.MrxDbgUiPrPoint,e=$.MxFun.getCurrentDraw(),n=new $.McEdGetPointWorldDrawObject,r=$.MxFun.screenCoordLong2Doc(16);t.setMessage(G(" 点击开启绘制云线:")),t.go(()=>{let s=t.value();const u=new $.MxDbCloudLine;u.setRadius(r),u.addPoint(s),u.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),n.setDraw(h=>{s.distanceTo(h)>r&&(s=h.clone(),u.addPoint(h,!0)),n.drawCustomEntity(u)}),t.setUserDraw(n),t.setMessage(G(" 再次点击结束绘制云线:")),t.go(()=>{e.addMxEntity(u)})})}let Gf="";function FS(){Gf=$.MxFun.getCurrentDraw().saveMxEntityToJson(),console.log(Gf)}function zS(){return Gt(this,null,function*(){if(Gf.length==0)return;let t=$.MxFun.getCurrentDraw();yield t.loadMxEntityFromJson(Gf,["models/svg/mark.svg"]),t.updateDisplay()})}function NS(){const t=new $.MrxDbgUiPrPoint;t.setMessage(" 指定第一点:"),t.go(e=>{if(e!=0)return;const n=t.value();let r=new $.MxDbArea;r.addPoint(n),r.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor();const s=new $.McEdGetPointWorldDrawObject;s.setDraw((u,h)=>{let o=r.clone();o.addPoint(u),s.drawCustomEntity(o)}),t.setUserDraw(s),t.setMessage(" 指定下一点:"),t.goWhile(u=>{if(u==0){const h=t.value();r.addPoint(h)}},u=>{r.isFill=!0,r.fillOpacity=.7,r.fillColor=6697540,$.MxFun.getCurrentDraw().addMxEntity(r)})})}function US(){$.MxFun.addCommand("BR_Comment",RS),$.MxFun.addCommand("BR_CheckDraw",IS),$.MxFun.addCommand("BR_Arrow",kS),$.MxFun.addCommand("BR_CloudLine",BS),$.MxFun.addCommand("BR_Print",LS),$.MxFun.addCommand("BR_SaveAllMxEntity",FS),$.MxFun.addCommand("BR_LoadAllMxEntity",zS),$.MxFun.addCommand("BR_Area",NS)}function VS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("LineLayer"),t.drawLayer="LineLayer",t.drawLine(0,0,100,0),t.drawLine(200,0,300,100),t.addLinetype("MyLineType","6,-10"),t.drawLinetype="MyLineType",t.drawLine(0,30,100,30),t.drawLine(200,30,300,130),t.drawColor=new p.McCmColor(0,0,255),t.drawLine(0,60,100,60),t.drawLine(200,60,300,160),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=4,t.drawLine(0,90,100,90),t.drawLine(200,90,300,190),t.addLinetype("MyLineType2","10,-2,3,-2"),t.drawLinetype="MyLineType2",t.drawColor=new p.McCmColor(255,0,0),t.drawLine(0,120,100,120),t.drawLine(200,120,300,220),t.addTextStyle("MyLineTypeTextStyle","txt.shx","hztxt.shx",1),t.addLinetypeEx("MyLineType3",'(12.7,("T=MxDraw","S=2.54","L=-5.08","R=0.0","X=-2.54","Y=-1.27"),-10.08)',"MyLineTypeTextStyle"),t.drawLinetype="MyLineType3",t.drawLineWidth=0,t.drawLine(350,120,600,120),t.drawColorIndex=0,t.drawLineWidth=4,t.drawLine(350,220,600,220),t.zoomAll(),t.updateDisplay()}function GS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("ArcLayer"),t.drawLayer="ArcLayer",t.drawArc(0,1e3,100,30,200),t.addLinetype("ArcLineType","30,-5,7,-7"),t.drawLinetype="ArcLineType",t.drawColor=new p.McCmColor(255,25,0),t.drawArc(300,1e3,100,30,200),t.drawLineWidth=15,t.drawColorIndex=255,t.drawArc(600,1e3,100,30,200),t.drawArc2(800,1e3,900,1200,1e3,900),t.drawLinetype="",t.drawLineWidth=40,t.drawArc3(1200,1e3,1400,1e3,.6),t.zoomAll(),t.regen(),t.updateDisplay()}function OS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("CircleLayer"),t.drawLayer="CircleLayer",t.drawCircle(0,800,120),t.addLinetype("CircleLineType","30,-5,7,-7"),t.drawLinetype="CircleLineType",t.drawColor=new p.McCmColor(0,25,255),t.drawCircle(300,800,120),t.addLinetype("CircleLineType","30,-5,7,-7"),t.drawLinetype="CircleLineType",t.drawLineWidth=40,t.drawCircle(600,800,120),t.zoomAll(),t.regen(),t.updateDisplay()}function jS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("PolylineLayer"),t.drawLayer="PolylineLayer",t.pathMoveTo(0,300),t.pathLineTo(100,300),t.pathLineTo(100,400),t.pathLineTo(0,400),t.pathMakeClosed(),t.drawPathToPolyline(),t.pathMoveTo(200,300),t.pathLineTo(300,300),t.pathLineTo(300,400),t.pathLineTo(200,400),t.pathMakeClosed(),t.addLinetype("MyLineType3","30,-10"),t.drawLinetype="MyLineType3",t.drawColorIndex=255,t.drawLineWidth=5,t.drawPathToPolyline(),t.pathMoveTo(400,300),t.pathLineTo(500,300),t.pathLineTo(500,400),t.pathLineTo(400,400),t.pathMakeClosed(),t.drawLinetype="",t.drawColor=new p.McCmColor(0,25,255),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveTo(400,300),t.pathLineTo(500,300),t.pathLineTo(500,400),t.pathLineTo(400,400),t.pathMakeClosed(),t.drawLinetype="",t.drawColor=new p.McCmColor(255,25,0),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveTo(600,300),t.pathLineTo(700,300),t.pathLineTo(700,400),t.pathLineTo(600,400),t.drawLinetype="",t.drawColor=new p.McCmColor(0,255,0),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveTo(800,300),t.pathLineTo(900,300),t.pathLineTo(900,400),t.pathMakeClosed(),t.drawLinetype="",t.drawColor=new p.McCmColor(25,255,0),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveToEx(1e3,300,10,10,0),t.pathLineToEx(1e3,500,30,0,0),t.pathLineTo(1e3,580),t.drawPathToPolyline(),t.pathMoveToEx(1200,300,10,10,0),t.pathLineToEx(1200,500,30,0,0),t.pathLineTo(1200,580),t.drawColor=new p.McCmColor(25,255,0),t.drawLinetype="MyLineType3",t.drawPathToPolyline(),t.pathMoveToEx(1400,300,10,10,-.34),t.pathLineToEx(1400,500,30,0,.34),t.pathLineTo(1400,600),t.drawColor=new p.McCmColor(255,255,25),t.drawLinetype="MyLineType3",t.drawPathToPolyline(),t.zoomAll(),t.regen(),t.updateDisplay()}function HS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("HatchLayer"),t.drawLayer="HatchLayer",t.pathMoveToEx(200,3300,0,0,.3),t.pathLineTo(300,3300),t.pathLineTo(300,3400),t.pathLineTo(200,3300),t.drawColor=new p.McCmColor(25,255,0),t.drawPathToHatch(1),t.pathMoveTo(150,3300),t.pathLineTo(250,3300),t.pathLineTo(250,3400),t.pathLineTo(150,3300),t.drawColor=new p.McCmColor(255,0,0),t.drawPathToHatch(1),t.pathMoveToEx(440,3310,0,0,0),t.pathLineTo(480,3310),t.pathLineTo(480,3360),t.pathLineTo(450,3340),t.pathMakeExclude(!0),t.pathMoveToEx(400,3300,0,0,.3),t.pathLineTo(500,3300),t.pathLineTo(500,3400),t.pathLineTo(400,3300),t.drawColor=new p.McCmColor(255,25,0),t.drawPathToHatch(1),t.addPatternDefinition("MyHatchPattern1","((45, 0,0, 0,0.125))"),t.drawPatternDefinition="MyHatchPattern1",t.pathMoveToEx(600,3300,0,0,.3),t.pathLineTo(700,3300),t.pathLineTo(700,3400),t.pathLineTo(600,3300),t.drawPathToHatch(100),t.addPatternDefinition("MyHatchPattern2","((45, 0,0, 0,0.25) (45, 0.176776695,0, 0,0.25, 0.125,-0.0625))"),t.drawPatternDefinition="MyHatchPattern2",t.pathMoveToEx(800,3300,0,0,.3),t.pathLineTo(900,3300),t.pathLineTo(900,3400),t.pathLineTo(800,3300),t.drawPathToHatch(100),t.zoomAll(),t.regen(),t.updateDisplay()}function WS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.addLayer("TextLayer"),t.drawLayer="TextLayer",t.drawText(0,1900,"绘图控件文字测试",100,0,0,1),t.drawColor=new p.McCmColor(255,25,0),t.drawText(3e3,2100,"绘图控件文字测试",100,-20,2,1),t.addTextStyle("MyTextStyle","italicc.shx","gbcbig.shx",.7),t.drawTextStyle="MyTextStyle",t.drawColor=new p.McCmColor(255,0,0),t.drawText(0,3e3,"绘图控件文字测试",100,0,0,1),t.AddTureTypeTextStyle("MyTrueTypeTextStyle"),t.drawTextStyle="MyTrueTypeTextStyle",t.drawColor=new p.McCmColor(200,255,50),t.drawText(0,3500,"绘图控件TrueType文字测试",100,0,0,1),t.zoomAll(),t.regen(),t.updateDisplay()}function qS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),p.MxCpp.App.loadFonts([],[],["syadobe","simsun"],()=>{t.AddTureTypeTextStyle("ht_style","syadobe"),t.AddTureTypeTextStyle("st_style","simsun"),t.drawTextStyle="ht_style",t.drawColor=new p.McCmColor(200,255,50);let n=t.drawText(0,3500,"绘图控件TrueType文字测试",100,0,0,1).getMcDbEntity();n&&(n.textStyle="st_style"),t.zoomAll(),t.regen(),t.updateDisplay()})}function YS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("LineLayer"),t.drawLayer="LineLayer",t.drawEllipse(0,1400,100,0,.7),t.addLinetype("MyEllipseType","6,-10"),t.drawLinetype="MyEllipseType",t.drawColor=new p.McCmColor(200,0,0),t.drawEllipse(200,1400,80,30,.5),t.zoomAll(),t.regen(),t.updateDisplay()}function XS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLineWidth=0,t.addLayer("EllipseArcLayer"),t.drawLayer="EllipseArcLayer",t.drawEllipseArc(0,1600,80,30,.4,30,200),t.addLinetype("MyEllipseArcType","6,-10"),t.drawLinetype="MyEllipseArcType",t.drawColor=new p.McCmColor(200,200,0),t.drawEllipseArc(200,1600,-80,30,.5,60,300),t.drawLinetype="",t.zoomAll(),t.regen(),t.updateDisplay()}function KS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.addLayer("MtextLayer"),t.drawLayer="MtextLayer",t.drawTextStyle="",t.drawMText(0,-100,"控件:\\P多行文字测试",50,400,0,1),t.zoomAll(),t.regen(),t.updateDisplay()}function ZS(t){if(!t||!t.param)return;let e=p.MxCpp.getCurrentMxCAD();e.newFile(),e.drawColorIndex=0,e.drawLinetype="",e.drawLineWidth=0,e.addLayer("LineLayer"),e.drawLayer="LineLayer",e.drawLine(t.param.x1,t.param.y1,t.param.x2,t.param.y2),e.zoomAll(),e.updateDisplay(),$.MxFun.postMessageToParentFrame({cmd:"Mx_ParamDrawLine",message:"ok"})}function JS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawText(350831.77,1940511845e-2,"1.034",10,0,p.McDb.TextHorzMode.kTextLeft,p.McDb.TextVertMode.kTextVertMid),t.zoomAll(),t.regen(100)}function QS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.addDimStyle("MyDimStyle","41,0.18,141,0.09,40,200","77,1,271,3","",""),t.drawDimStyle="MyDimStyle",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.drawDimAligned(0,4e3,300,4500,150,4600),t.zoomAll(),t.updateDisplay()}function $S(){let t=p.MxCpp.getCurrentMxCAD();t.newFile();let e=t.addTextStyle("我的标注字体","complex.shx","gbcbig.shx",1);t.addDimStyle("MyDimStyle","41,0.18,141,0.09,40,200","77,1,271,3","",`340,${e.id}`),t.drawDimStyle="MyDimStyle",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0;let r=t.drawDimRotated(0,7e3,600,7e3,250,7050,0).getMcDbDimension();r&&(r.setDimVarDouble(41,2),r.setDimVarDouble(44,3),r.setDimVarDouble(49,6),r.setDimVarInt(290,1)),t.drawDimRotated(0,7200,0,7600,150,7300,.771),t.zoomAll(),t.updateDisplay()}function tC(){let t=p.MxCpp.getCurrentMxCAD();t.newFile();let e=t.addTextStyle("我的标注字体","complex.shx","gbcbig.shx",1);t.addDimStyle("MyDimStyle","41,0.18,141,0.09,40,200","77,1,271,3",'3,"DN%%c<>"',`340,${e.id}`),t.drawDimStyle="MyDimStyle",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0;let n=t.drawDimRotated(0,7e3,600,7e3,250,7050,0).getMcDbDimension();n&&(n.setDimVarInt(71,1),n.setDimVarInt(272,1),n.setDimVarDouble(146,.5),n.setDimVarDouble(48,5.5),n.setDimVarDouble(47,2.5),n.recomputeDimBlock()),t.zoomAll(),t.updateDisplay()}function eC(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.addDimStyle("MyDimStyle2","41,0.18,141,0.09,40,200","77,1,271,3","",""),t.drawDimStyle="MyDimStyle2",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.drawDimAngular(500,5e3,0,5500,1e3,5500,500,5500),t.zoomAll(),t.updateDisplay()}function nC(){$.MxFun.addCommand("Mx_Test_DrawLine",VS),$.MxFun.addCommand("Mx_Test_DrawArc",GS),$.MxFun.addCommand("Mx_Test_DrawCircle",OS),$.MxFun.addCommand("Mx_Test_DrawPolyline",jS),$.MxFun.addCommand("Mx_Test_DrawHatch",HS),$.MxFun.addCommand("Mx_Test_DrawText",WS),$.MxFun.addCommand("Mx_Test_Ellipse",YS),$.MxFun.addCommand("Mx_Test_EllipseArc",XS),$.MxFun.addCommand("Mx_Test_MText",KS),$.MxFun.addCommand("Mx_Test_Text",JS),$.MxFun.addCommand("Mx_ParamDrawLine",ZS),$.MxFun.addCommand("Mx_Test_DimAligned",QS),$.MxFun.addCommand("Mx_Test_DrawDimRotated",$S),$.MxFun.addCommand("Mx_Test_DrawDimRotatedTol",tC),$.MxFun.addCommand("Mx_Test_DrawDimAngular",eC),$.MxFun.addCommand("Mx_Test_TrueText",qS)}Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}),Math.sign===void 0&&(Math.sign=function(t){return t<0?-1:t>0?1:+t}),"name"in Function.prototype||Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&(Object.assign=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e});var iC="113",rC=0,sb=1,oC=2,ab=1,sC=2,Hh=3,Dc=0,lr=1,Wh=2,lb=1,cb=0,aC=1,Rc=2,ya=0,qh=1,ub=2,hb=3,db=4,lC=5,Lc=100,cC=101,uC=102,pb=103,fb=104,hC=200,dC=201,pC=202,fC=203,mb=204,gb=205,mC=206,gC=207,yC=208,xC=209,vC=210,_C=0,bC=1,MC=2,L0=3,wC=4,AC=5,EC=6,TC=7,Of=0,PC=1,SC=2,jf=0,I0=1,CC=2,DC=3,RC=4,LC=5,k0=300,B0=301,F0=302,yb=303,z0=304,xb=305,Yh=306,N0=307,xl=1e3,Dr=1001,Xh=1002,Yi=1003,Hf=1004,Wf=1005,$i=1006,U0=1007,Ic=1008,qf=1009,IC=1010,kC=1011,Yf=1012,BC=1013,vb=1014,Kh=1015,V0=1016,FC=1017,zC=1018,NC=1019,Xf=1020,UC=1021,Ns=1022,No=1023,VC=1024,GC=1025,OC=No,kc=1026,Zh=1027,jC=1028,HC=1029,WC=1030,qC=1031,YC=1032,XC=1033,_b=33776,bb=33777,Mb=33778,wb=33779,Ab=35840,Eb=35841,Tb=35842,Pb=35843,KC=36196,ZC=37808,JC=37809,QC=37810,$C=37811,t3=37812,e3=37813,n3=37814,i3=37815,r3=37816,o3=37817,s3=37818,a3=37819,l3=37820,c3=37821,u3=2200,h3=2201,d3=2202,Jh=2300,Bc=2301,G0=2302,Fc=2400,zc=2401,Kf=2402,p3=0,f3=1,Sb=2,ho=3e3,Qh=3001,Cb=3007,O0=3002,m3=3003,Db=3004,Rb=3005,Lb=3006,g3=3200,y3=3201,vl=0,x3=1,j0=7680,v3=519,Zf=35044,$h=35048;function Us(){}Object.assign(Us.prototype,{addEventListener:function(t,e){this._listeners===void 0&&(this._listeners={});var n=this._listeners;n[t]===void 0&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e)},hasEventListener:function(t,e){if(this._listeners===void 0)return!1;var n=this._listeners;return n[t]!==void 0&&n[t].indexOf(e)!==-1},removeEventListener:function(t,e){if(this._listeners!==void 0){var n=this._listeners,r=n[t];if(r!==void 0){var s=r.indexOf(e);s!==-1&&r.splice(s,1)}}},dispatchEvent:function(t){if(this._listeners!==void 0){var e=this._listeners,n=e[t.type];if(n!==void 0){t.target=this;for(var r=n.slice(0),s=0,u=r.length;s<u;s++)r[s].call(this,t)}}}});for(var fr=[],td=0;td<256;td++)fr[td]=(td<16?"0":"")+td.toString(16);var Xn={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0,s=fr[t&255]+fr[t>>8&255]+fr[t>>16&255]+fr[t>>24&255]+"-"+fr[e&255]+fr[e>>8&255]+"-"+fr[e>>16&15|64]+fr[e>>24&255]+"-"+fr[n&63|128]+fr[n>>8&255]+"-"+fr[n>>16&255]+fr[n>>24&255]+fr[r&255]+fr[r>>8&255]+fr[r>>16&255]+fr[r>>24&255];return s.toUpperCase()},clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,r,s){return r+(t-e)*(s-r)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*Xn.DEG2RAD},radToDeg:function(t){return t*Xn.RAD2DEG},isPowerOfTwo:function(t){return(t&t-1)===0&&t!==0},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,e,n,r,s){var u=Math.cos,h=Math.sin,o=u(n/2),m=h(n/2),y=u((e+r)/2),x=h((e+r)/2),M=u((e-r)/2),A=h((e-r)/2),T=u((r-e)/2),P=h((r-e)/2);s==="XYX"?t.set(o*x,m*M,m*A,o*y):s==="YZY"?t.set(m*A,o*x,m*M,o*y):s==="ZXZ"?t.set(m*M,m*A,o*x,o*y):s==="XZX"?t.set(o*x,m*P,m*T,o*y):s==="YXY"?t.set(m*T,o*x,m*P,o*y):s==="ZYZ"?t.set(m*P,m*T,o*x,o*y):console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order.")}};function ke(t,e){this.x=t||0,this.y=e||0}Object.defineProperties(ke.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(ke.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return n!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),r=Math.sin(e),s=this.x-t.x,u=this.y-t.y;return this.x=s*n-u*r+t.x,this.y=s*r+u*n+t.y,this}});function _r(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.assign(_r.prototype,{isMatrix3:!0,set:function(t,e,n,r,s,u,h,o,m){var y=this.elements;return y[0]=t,y[1]=r,y[2]=h,y[3]=e,y[4]=s,y[5]=o,y[6]=n,y[7]=u,y[8]=m,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,r=e.elements,s=this.elements,u=n[0],h=n[3],o=n[6],m=n[1],y=n[4],x=n[7],M=n[2],A=n[5],T=n[8],P=r[0],D=r[3],k=r[6],z=r[1],O=r[4],U=r[7],H=r[2],V=r[5],W=r[8];return s[0]=u*P+h*z+o*H,s[3]=u*D+h*O+o*V,s[6]=u*k+h*U+o*W,s[1]=m*P+y*z+x*H,s[4]=m*D+y*O+x*V,s[7]=m*k+y*U+x*W,s[2]=M*P+A*z+T*H,s[5]=M*D+A*O+T*V,s[8]=M*k+A*U+T*W,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[1],r=t[2],s=t[3],u=t[4],h=t[5],o=t[6],m=t[7],y=t[8];return e*u*y-e*h*m-n*s*y+n*h*o+r*s*m-r*u*o},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=t.elements,r=this.elements,s=n[0],u=n[1],h=n[2],o=n[3],m=n[4],y=n[5],x=n[6],M=n[7],A=n[8],T=A*m-y*M,P=y*x-A*o,D=M*o-m*x,k=s*T+u*P+h*D;if(k===0){var z="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(e===!0)throw new Error(z);return console.warn(z),this.identity()}var O=1/k;return r[0]=T*O,r[1]=(h*M-A*u)*O,r[2]=(y*u-h*m)*O,r[3]=P*O,r[4]=(A*s-h*x)*O,r[5]=(h*o-y*s)*O,r[6]=D*O,r[7]=(u*x-M*s)*O,r[8]=(m*s-u*o)*O,this},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,n,r,s,u,h){var o=Math.cos(s),m=Math.sin(s);this.set(n*o,n*m,-n*(o*u+m*h)+u+t,-r*m,r*o,-r*(-m*u+o*h)+h+e,0,0,1)},scale:function(t,e){var n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=this.elements,s=r[0],u=r[3],h=r[6],o=r[1],m=r[4],y=r[7];return r[0]=e*s+n*o,r[3]=e*u+n*m,r[6]=e*h+n*y,r[1]=-n*s+e*o,r[4]=-n*u+e*m,r[7]=-n*h+e*y,this},translate:function(t,e){var n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this},equals:function(t){for(var e=this.elements,n=t.elements,r=0;r<9;r++)if(e[r]!==n[r])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var n=0;n<9;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}});var Nc,_l={getDataURL:function(t){var e;if(typeof HTMLCanvasElement=="undefined")return t.src;if(t instanceof HTMLCanvasElement)e=t;else{Nc===void 0&&(Nc=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Nc.width=t.width,Nc.height=t.height;var n=Nc.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Nc}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},_3=0;function bi(t,e,n,r,s,u,h,o,m,y){Object.defineProperty(this,"id",{value:_3++}),this.uuid=Xn.generateUUID(),this.name="",this.image=t!==void 0?t:bi.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:bi.DEFAULT_MAPPING,this.wrapS=n!==void 0?n:Dr,this.wrapT=r!==void 0?r:Dr,this.magFilter=s!==void 0?s:$i,this.minFilter=u!==void 0?u:Ic,this.anisotropy=m!==void 0?m:1,this.format=h!==void 0?h:No,this.internalFormat=null,this.type=o!==void 0?o:qf,this.offset=new ke(0,0),this.repeat=new ke(1,1),this.center=new ke(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new _r,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=y!==void 0?y:ho,this.version=0,this.onUpdate=null}bi.DEFAULT_IMAGE=void 0,bi.DEFAULT_MAPPING=k0,bi.prototype=Object.assign(Object.create(Us.prototype),{constructor:bi,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(this.image!==void 0){var r=this.image;if(r.uuid===void 0&&(r.uuid=Xn.generateUUID()),!e&&t.images[r.uuid]===void 0){var s;if(Array.isArray(r)){s=[];for(var u=0,h=r.length;u<h;u++)s.push(_l.getDataURL(r[u]))}else s=_l.getDataURL(r);t.images[r.uuid]={uuid:r.uuid,url:s}}n.image=r.uuid}return e||(t.textures[this.uuid]=n),n},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==k0)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case xl:t.x=t.x-Math.floor(t.x);break;case Dr:t.x=t.x<0?0:1;break;case Xh:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case xl:t.y=t.y-Math.floor(t.y);break;case Dr:t.y=t.y<0?0:1;break;case Xh:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(bi.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}});function Mi(t,e,n,r){this.x=t||0,this.y=e||0,this.z=n||0,this.w=r!==void 0?r:1}Object.defineProperties(Mi.prototype,{width:{get:function(){return this.z},set:function(t){this.z=t}},height:{get:function(){return this.w},set:function(t){this.w=t}}}),Object.assign(Mi.prototype,{isVector4:!0,set:function(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,n=this.y,r=this.z,s=this.w,u=t.elements;return this.x=u[0]*e+u[4]*n+u[8]*r+u[12]*s,this.y=u[1]*e+u[5]*n+u[9]*r+u[13]*s,this.z=u[2]*e+u[6]*n+u[10]*r+u[14]*s,this.w=u[3]*e+u[7]*n+u[11]*r+u[15]*s,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,r,s,u=.01,h=.1,o=t.elements,m=o[0],y=o[4],x=o[8],M=o[1],A=o[5],T=o[9],P=o[2],D=o[6],k=o[10];if(Math.abs(y-M)<u&&Math.abs(x-P)<u&&Math.abs(T-D)<u){if(Math.abs(y+M)<h&&Math.abs(x+P)<h&&Math.abs(T+D)<h&&Math.abs(m+A+k-3)<h)return this.set(1,0,0,0),this;e=Math.PI;var z=(m+1)/2,O=(A+1)/2,U=(k+1)/2,H=(y+M)/4,V=(x+P)/4,W=(T+D)/4;return z>O&&z>U?z<u?(n=0,r=.707106781,s=.707106781):(n=Math.sqrt(z),r=H/n,s=V/n):O>U?O<u?(n=.707106781,r=0,s=.707106781):(r=Math.sqrt(O),n=H/r,s=W/r):U<u?(n=.707106781,r=.707106781,s=0):(s=Math.sqrt(U),n=V/s,r=W/s),this.set(n,r,s,e),this}var K=Math.sqrt((D-T)*(D-T)+(x-P)*(x-P)+(M-y)*(M-y));return Math.abs(K)<.001&&(K=1),this.x=(D-T)/K,this.y=(x-P)/K,this.z=(M-y)/K,this.w=Math.acos((m+A+k-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return n!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}});function Rr(t,e,n){this.width=t,this.height=e,this.scissor=new Mi(0,0,t,e),this.scissorTest=!1,this.viewport=new Mi(0,0,t,e),n=n||{},this.texture=new bi(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:$i,this.depthBuffer=n.depthBuffer!==void 0?n.depthBuffer:!0,this.stencilBuffer=n.stencilBuffer!==void 0?n.stencilBuffer:!0,this.depthTexture=n.depthTexture!==void 0?n.depthTexture:null}Rr.prototype=Object.assign(Object.create(Us.prototype),{constructor:Rr,isWebGLRenderTarget:!0,setSize:function(t,e){(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.texture.image.width=t,this.texture.image.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});function Ib(t,e,n){Rr.call(this,t,e,n),this.samples=4}Ib.prototype=Object.assign(Object.create(Rr.prototype),{constructor:Ib,isWebGLMultisampleRenderTarget:!0,copy:function(t){return Rr.prototype.copy.call(this,t),this.samples=t.samples,this}});function Wr(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._w=r!==void 0?r:1}Object.assign(Wr,{slerp:function(t,e,n,r){return n.copy(t).slerp(e,r)},slerpFlat:function(t,e,n,r,s,u,h){var o=n[r+0],m=n[r+1],y=n[r+2],x=n[r+3],M=s[u+0],A=s[u+1],T=s[u+2],P=s[u+3];if(x!==P||o!==M||m!==A||y!==T){var D=1-h,k=o*M+m*A+y*T+x*P,z=k>=0?1:-1,O=1-k*k;if(O>Number.EPSILON){var U=Math.sqrt(O),H=Math.atan2(U,k*z);D=Math.sin(D*H)/U,h=Math.sin(h*H)/U}var V=h*z;if(o=o*D+M*V,m=m*D+A*V,y=y*D+T*V,x=x*D+P*V,D===1-h){var W=1/Math.sqrt(o*o+m*m+y*y+x*x);o*=W,m*=W,y*=W,x*=W}}t[e]=o,t[e+1]=m,t[e+2]=y,t[e+3]=x}}),Object.defineProperties(Wr.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this._onChangeCallback()}}}),Object.assign(Wr.prototype,{isQuaternion:!0,set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this},setFromEuler:function(t,e){if(!(t&&t.isEuler))throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=t._x,r=t._y,s=t._z,u=t.order,h=Math.cos,o=Math.sin,m=h(n/2),y=h(r/2),x=h(s/2),M=o(n/2),A=o(r/2),T=o(s/2);return u==="XYZ"?(this._x=M*y*x+m*A*T,this._y=m*A*x-M*y*T,this._z=m*y*T+M*A*x,this._w=m*y*x-M*A*T):u==="YXZ"?(this._x=M*y*x+m*A*T,this._y=m*A*x-M*y*T,this._z=m*y*T-M*A*x,this._w=m*y*x+M*A*T):u==="ZXY"?(this._x=M*y*x-m*A*T,this._y=m*A*x+M*y*T,this._z=m*y*T+M*A*x,this._w=m*y*x-M*A*T):u==="ZYX"?(this._x=M*y*x-m*A*T,this._y=m*A*x+M*y*T,this._z=m*y*T-M*A*x,this._w=m*y*x+M*A*T):u==="YZX"?(this._x=M*y*x+m*A*T,this._y=m*A*x+M*y*T,this._z=m*y*T-M*A*x,this._w=m*y*x-M*A*T):u==="XZY"&&(this._x=M*y*x-m*A*T,this._y=m*A*x-M*y*T,this._z=m*y*T+M*A*x,this._w=m*y*x+M*A*T),e!==!1&&this._onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,n=e[0],r=e[4],s=e[8],u=e[1],h=e[5],o=e[9],m=e[2],y=e[6],x=e[10],M=n+h+x,A;return M>0?(A=.5/Math.sqrt(M+1),this._w=.25/A,this._x=(y-o)*A,this._y=(s-m)*A,this._z=(u-r)*A):n>h&&n>x?(A=2*Math.sqrt(1+n-h-x),this._w=(y-o)/A,this._x=.25*A,this._y=(r+u)/A,this._z=(s+m)/A):h>x?(A=2*Math.sqrt(1+h-n-x),this._w=(s-m)/A,this._x=(r+u)/A,this._y=.25*A,this._z=(o+y)/A):(A=2*Math.sqrt(1+x-n-h),this._w=(u-r)/A,this._x=(s+m)/A,this._y=(o+y)/A,this._z=.25*A),this._onChangeCallback(),this},setFromUnitVectors:function(t,e){var n=1e-6,r=t.dot(e)+1;return r<n?(r=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=r):(this._x=0,this._y=-t.z,this._z=t.y,this._w=r)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=r),this.normalize()},angleTo:function(t){return 2*Math.acos(Math.abs(Xn.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var n=this.angleTo(t);if(n===0)return this;var r=Math.min(1,e/n);return this.slerp(t,r),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,r=t._y,s=t._z,u=t._w,h=e._x,o=e._y,m=e._z,y=e._w;return this._x=n*y+u*h+r*m-s*o,this._y=r*y+u*o+s*h-n*m,this._z=s*y+u*m+n*o-r*h,this._w=u*y-n*h-r*o-s*m,this._onChangeCallback(),this},slerp:function(t,e){if(e===0)return this;if(e===1)return this.copy(t);var n=this._x,r=this._y,s=this._z,u=this._w,h=u*t._w+n*t._x+r*t._y+s*t._z;if(h<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,h=-h):this.copy(t),h>=1)return this._w=u,this._x=n,this._y=r,this._z=s,this;var o=1-h*h;if(o<=Number.EPSILON){var m=1-e;return this._w=m*u+e*this._w,this._x=m*n+e*this._x,this._y=m*r+e*this._y,this._z=m*s+e*this._z,this.normalize(),this._onChangeCallback(),this}var y=Math.sqrt(o),x=Math.atan2(y,h),M=Math.sin((1-e)*x)/y,A=Math.sin(e*x)/y;return this._w=u*M+this._w*A,this._x=n*M+this._x*A,this._y=r*M+this._y*A,this._z=s*M+this._z*A,this._onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return e===void 0&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},_onChange:function(t){return this._onChangeCallback=t,this},_onChangeCallback:function(){}});var H0=new kt,kb=new Wr;function kt(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}Object.assign(kt.prototype,{isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(kb.setFromEuler(t))},applyAxisAngle:function(t,e){return this.applyQuaternion(kb.setFromAxisAngle(t,e))},applyMatrix3:function(t){var e=this.x,n=this.y,r=this.z,s=t.elements;return this.x=s[0]*e+s[3]*n+s[6]*r,this.y=s[1]*e+s[4]*n+s[7]*r,this.z=s[2]*e+s[5]*n+s[8]*r,this},applyNormalMatrix:function(t){return this.applyMatrix3(t).normalize()},applyMatrix4:function(t){var e=this.x,n=this.y,r=this.z,s=t.elements,u=1/(s[3]*e+s[7]*n+s[11]*r+s[15]);return this.x=(s[0]*e+s[4]*n+s[8]*r+s[12])*u,this.y=(s[1]*e+s[5]*n+s[9]*r+s[13])*u,this.z=(s[2]*e+s[6]*n+s[10]*r+s[14])*u,this},applyQuaternion:function(t){var e=this.x,n=this.y,r=this.z,s=t.x,u=t.y,h=t.z,o=t.w,m=o*e+u*r-h*n,y=o*n+h*e-s*r,x=o*r+s*n-u*e,M=-s*e-u*n-h*r;return this.x=m*o+M*-s+y*-h-x*-u,this.y=y*o+M*-u+x*-s-m*-h,this.z=x*o+M*-h+m*-u-y*-s,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)},transformDirection:function(t){var e=this.x,n=this.y,r=this.z,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*r,this.y=s[1]*e+s[5]*n+s[9]*r,this.z=s[2]*e+s[6]*n+s[10]*r,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var n=t.x,r=t.y,s=t.z,u=e.x,h=e.y,o=e.z;return this.x=r*o-s*h,this.y=s*u-n*o,this.z=n*h-r*u,this},projectOnVector:function(t){var e=t.lengthSq();if(e===0)return this.set(0,0,0);var n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)},projectOnPlane:function(t){return H0.copy(this).projectOnVector(t),this.sub(H0)},reflect:function(t){return this.sub(H0.copy(t).multiplyScalar(2*this.dot(t)))},angleTo:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;var n=this.dot(t)/e;return Math.acos(Xn.clamp(n,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,n){var r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,e*4)},setFromMatrix3Column:function(t,e){return this.fromArray(t.elements,e*3)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return n!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}});var Uc=new kt,Uo=new Kn,b3=new kt(0,0,0),M3=new kt(1,1,1),xa=new kt,Jf=new kt,po=new kt;function Kn(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}Object.assign(Kn.prototype,{isMatrix4:!0,set:function(t,e,n,r,s,u,h,o,m,y,x,M,A,T,P,D){var k=this.elements;return k[0]=t,k[4]=e,k[8]=n,k[12]=r,k[1]=s,k[5]=u,k[9]=h,k[13]=o,k[2]=m,k[6]=y,k[10]=x,k[14]=M,k[3]=A,k[7]=T,k[11]=P,k[15]=D,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new Kn().fromArray(this.elements)},copy:function(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(t){var e=this.elements,n=t.elements,r=1/Uc.setFromMatrixColumn(t,0).length(),s=1/Uc.setFromMatrixColumn(t,1).length(),u=1/Uc.setFromMatrixColumn(t,2).length();return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=0,e[4]=n[4]*s,e[5]=n[5]*s,e[6]=n[6]*s,e[7]=0,e[8]=n[8]*u,e[9]=n[9]*u,e[10]=n[10]*u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,n=t.x,r=t.y,s=t.z,u=Math.cos(n),h=Math.sin(n),o=Math.cos(r),m=Math.sin(r),y=Math.cos(s),x=Math.sin(s);if(t.order==="XYZ"){var M=u*y,A=u*x,T=h*y,P=h*x;e[0]=o*y,e[4]=-o*x,e[8]=m,e[1]=A+T*m,e[5]=M-P*m,e[9]=-h*o,e[2]=P-M*m,e[6]=T+A*m,e[10]=u*o}else if(t.order==="YXZ"){var D=o*y,k=o*x,z=m*y,O=m*x;e[0]=D+O*h,e[4]=z*h-k,e[8]=u*m,e[1]=u*x,e[5]=u*y,e[9]=-h,e[2]=k*h-z,e[6]=O+D*h,e[10]=u*o}else if(t.order==="ZXY"){var D=o*y,k=o*x,z=m*y,O=m*x;e[0]=D-O*h,e[4]=-u*x,e[8]=z+k*h,e[1]=k+z*h,e[5]=u*y,e[9]=O-D*h,e[2]=-u*m,e[6]=h,e[10]=u*o}else if(t.order==="ZYX"){var M=u*y,A=u*x,T=h*y,P=h*x;e[0]=o*y,e[4]=T*m-A,e[8]=M*m+P,e[1]=o*x,e[5]=P*m+M,e[9]=A*m-T,e[2]=-m,e[6]=h*o,e[10]=u*o}else if(t.order==="YZX"){var U=u*o,H=u*m,V=h*o,W=h*m;e[0]=o*y,e[4]=W-U*x,e[8]=V*x+H,e[1]=x,e[5]=u*y,e[9]=-h*y,e[2]=-m*y,e[6]=H*x+V,e[10]=U-W*x}else if(t.order==="XZY"){var U=u*o,H=u*m,V=h*o,W=h*m;e[0]=o*y,e[4]=-x,e[8]=m*y,e[1]=U*x+W,e[5]=u*y,e[9]=H*x-V,e[2]=V*x-H,e[6]=h*y,e[10]=W*x+U}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(t){return this.compose(b3,t,M3)},lookAt:function(t,e,n){var r=this.elements;return po.subVectors(t,e),po.lengthSq()===0&&(po.z=1),po.normalize(),xa.crossVectors(n,po),xa.lengthSq()===0&&(Math.abs(n.z)===1?po.x+=1e-4:po.z+=1e-4,po.normalize(),xa.crossVectors(n,po)),xa.normalize(),Jf.crossVectors(po,xa),r[0]=xa.x,r[4]=Jf.x,r[8]=po.x,r[1]=xa.y,r[5]=Jf.y,r[9]=po.y,r[2]=xa.z,r[6]=Jf.z,r[10]=po.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,r=e.elements,s=this.elements,u=n[0],h=n[4],o=n[8],m=n[12],y=n[1],x=n[5],M=n[9],A=n[13],T=n[2],P=n[6],D=n[10],k=n[14],z=n[3],O=n[7],U=n[11],H=n[15],V=r[0],W=r[4],K=r[8],Z=r[12],tt=r[1],at=r[5],st=r[9],nt=r[13],ct=r[2],xt=r[6],vt=r[10],Zt=r[14],ce=r[3],le=r[7],fe=r[11],de=r[15];return s[0]=u*V+h*tt+o*ct+m*ce,s[4]=u*W+h*at+o*xt+m*le,s[8]=u*K+h*st+o*vt+m*fe,s[12]=u*Z+h*nt+o*Zt+m*de,s[1]=y*V+x*tt+M*ct+A*ce,s[5]=y*W+x*at+M*xt+A*le,s[9]=y*K+x*st+M*vt+A*fe,s[13]=y*Z+x*nt+M*Zt+A*de,s[2]=T*V+P*tt+D*ct+k*ce,s[6]=T*W+P*at+D*xt+k*le,s[10]=T*K+P*st+D*vt+k*fe,s[14]=T*Z+P*nt+D*Zt+k*de,s[3]=z*V+O*tt+U*ct+H*ce,s[7]=z*W+O*at+U*xt+H*le,s[11]=z*K+O*st+U*vt+H*fe,s[15]=z*Z+O*nt+U*Zt+H*de,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[4],r=t[8],s=t[12],u=t[1],h=t[5],o=t[9],m=t[13],y=t[2],x=t[6],M=t[10],A=t[14],T=t[3],P=t[7],D=t[11],k=t[15];return T*(+s*o*x-r*m*x-s*h*M+n*m*M+r*h*A-n*o*A)+P*(+e*o*A-e*m*M+s*u*M-r*u*A+r*m*y-s*o*y)+D*(+e*m*x-e*h*A-s*u*x+n*u*A+s*h*y-n*m*y)+k*(-r*h*y-e*o*x+e*h*M+r*u*x-n*u*M+n*o*y)},transpose:function(){var t=this.elements,e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t,e,n){var r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=e,r[14]=n),this},getInverse:function(t,e){var n=this.elements,r=t.elements,s=r[0],u=r[1],h=r[2],o=r[3],m=r[4],y=r[5],x=r[6],M=r[7],A=r[8],T=r[9],P=r[10],D=r[11],k=r[12],z=r[13],O=r[14],U=r[15],H=T*O*M-z*P*M+z*x*D-y*O*D-T*x*U+y*P*U,V=k*P*M-A*O*M-k*x*D+m*O*D+A*x*U-m*P*U,W=A*z*M-k*T*M+k*y*D-m*z*D-A*y*U+m*T*U,K=k*T*x-A*z*x-k*y*P+m*z*P+A*y*O-m*T*O,Z=s*H+u*V+h*W+o*K;if(Z===0){var tt="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(e===!0)throw new Error(tt);return console.warn(tt),this.identity()}var at=1/Z;return n[0]=H*at,n[1]=(z*P*o-T*O*o-z*h*D+u*O*D+T*h*U-u*P*U)*at,n[2]=(y*O*o-z*x*o+z*h*M-u*O*M-y*h*U+u*x*U)*at,n[3]=(T*x*o-y*P*o-T*h*M+u*P*M+y*h*D-u*x*D)*at,n[4]=V*at,n[5]=(A*O*o-k*P*o+k*h*D-s*O*D-A*h*U+s*P*U)*at,n[6]=(k*x*o-m*O*o-k*h*M+s*O*M+m*h*U-s*x*U)*at,n[7]=(m*P*o-A*x*o+A*h*M-s*P*M-m*h*D+s*x*D)*at,n[8]=W*at,n[9]=(k*T*o-A*z*o-k*u*D+s*z*D+A*u*U-s*T*U)*at,n[10]=(m*z*o-k*y*o+k*u*M-s*z*M-m*u*U+s*y*U)*at,n[11]=(A*y*o-m*T*o-A*u*M+s*T*M+m*u*D-s*y*D)*at,n[12]=K*at,n[13]=(A*z*h-k*T*h+k*u*P-s*z*P-A*u*O+s*T*O)*at,n[14]=(k*y*h-m*z*h-k*u*x+s*z*x+m*u*O-s*y*O)*at,n[15]=(m*T*h-A*y*h+A*u*x-s*T*x-m*u*P+s*y*P)*at,this},scale:function(t){var e=this.elements,n=t.x,r=t.y,s=t.z;return e[0]*=n,e[4]*=r,e[8]*=s,e[1]*=n,e[5]*=r,e[9]*=s,e[2]*=n,e[6]*=r,e[10]*=s,e[3]*=n,e[7]*=r,e[11]*=s,this},getMaxScaleOnAxis:function(){var t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))},makeTranslation:function(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var n=Math.cos(e),r=Math.sin(e),s=1-n,u=t.x,h=t.y,o=t.z,m=s*u,y=s*h;return this.set(m*u+n,m*h-r*o,m*o+r*h,0,m*h+r*o,y*h+n,y*o-r*u,0,m*o-r*h,y*o+r*u,s*o*o+n,0,0,0,0,1),this},makeScale:function(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this},makeShear:function(t,e,n){return this.set(1,e,n,0,t,1,n,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,n){var r=this.elements,s=e._x,u=e._y,h=e._z,o=e._w,m=s+s,y=u+u,x=h+h,M=s*m,A=s*y,T=s*x,P=u*y,D=u*x,k=h*x,z=o*m,O=o*y,U=o*x,H=n.x,V=n.y,W=n.z;return r[0]=(1-(P+k))*H,r[1]=(A+U)*H,r[2]=(T-O)*H,r[3]=0,r[4]=(A-U)*V,r[5]=(1-(M+k))*V,r[6]=(D+z)*V,r[7]=0,r[8]=(T+O)*W,r[9]=(D-z)*W,r[10]=(1-(M+P))*W,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this},decompose:function(t,e,n){var r=this.elements,s=Uc.set(r[0],r[1],r[2]).length(),u=Uc.set(r[4],r[5],r[6]).length(),h=Uc.set(r[8],r[9],r[10]).length(),o=this.determinant();o<0&&(s=-s),t.x=r[12],t.y=r[13],t.z=r[14],Uo.copy(this);var m=1/s,y=1/u,x=1/h;return Uo.elements[0]*=m,Uo.elements[1]*=m,Uo.elements[2]*=m,Uo.elements[4]*=y,Uo.elements[5]*=y,Uo.elements[6]*=y,Uo.elements[8]*=x,Uo.elements[9]*=x,Uo.elements[10]*=x,e.setFromRotationMatrix(Uo),n.x=s,n.y=u,n.z=h,this},makePerspective:function(t,e,n,r,s,u){u===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var h=this.elements,o=2*s/(e-t),m=2*s/(n-r),y=(e+t)/(e-t),x=(n+r)/(n-r),M=-(u+s)/(u-s),A=-2*u*s/(u-s);return h[0]=o,h[4]=0,h[8]=y,h[12]=0,h[1]=0,h[5]=m,h[9]=x,h[13]=0,h[2]=0,h[6]=0,h[10]=M,h[14]=A,h[3]=0,h[7]=0,h[11]=-1,h[15]=0,this},makeOrthographic:function(t,e,n,r,s,u){var h=this.elements,o=1/(e-t),m=1/(n-r),y=1/(u-s),x=(e+t)*o,M=(n+r)*m,A=(u+s)*y;return h[0]=2*o,h[4]=0,h[8]=0,h[12]=-x,h[1]=0,h[5]=2*m,h[9]=0,h[13]=-M,h[2]=0,h[6]=0,h[10]=-2*y,h[14]=-A,h[3]=0,h[7]=0,h[11]=0,h[15]=1,this},equals:function(t){for(var e=this.elements,n=t.elements,r=0;r<16;r++)if(e[r]!==n[r])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var n=0;n<16;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}});var Bb=new Kn,Fb=new Wr;function Vc(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._order=r||Vc.DefaultOrder}Vc.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],Vc.DefaultOrder="XYZ",Object.defineProperties(Vc.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this._onChangeCallback()}}}),Object.assign(Vc.prototype,{isEuler:!0,set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._order=r||this._order,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var r=Xn.clamp,s=t.elements,u=s[0],h=s[4],o=s[8],m=s[1],y=s[5],x=s[9],M=s[2],A=s[6],T=s[10];return e=e||this._order,e==="XYZ"?(this._y=Math.asin(r(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-x,T),this._z=Math.atan2(-h,u)):(this._x=Math.atan2(A,y),this._z=0)):e==="YXZ"?(this._x=Math.asin(-r(x,-1,1)),Math.abs(x)<.9999999?(this._y=Math.atan2(o,T),this._z=Math.atan2(m,y)):(this._y=Math.atan2(-M,u),this._z=0)):e==="ZXY"?(this._x=Math.asin(r(A,-1,1)),Math.abs(A)<.9999999?(this._y=Math.atan2(-M,T),this._z=Math.atan2(-h,y)):(this._y=0,this._z=Math.atan2(m,u))):e==="ZYX"?(this._y=Math.asin(-r(M,-1,1)),Math.abs(M)<.9999999?(this._x=Math.atan2(A,T),this._z=Math.atan2(m,u)):(this._x=0,this._z=Math.atan2(-h,y))):e==="YZX"?(this._z=Math.asin(r(m,-1,1)),Math.abs(m)<.9999999?(this._x=Math.atan2(-x,y),this._y=Math.atan2(-M,u)):(this._x=0,this._y=Math.atan2(o,T))):e==="XZY"?(this._z=Math.asin(-r(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(A,y),this._y=Math.atan2(o,u)):(this._x=Math.atan2(-x,T),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,n!==!1&&this._onChangeCallback(),this},setFromQuaternion:function(t,e,n){return Bb.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Bb,e,n)},setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(t){return Fb.setFromEuler(this),this.setFromQuaternion(Fb,t)},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new kt(this._x,this._y,this._z)},_onChange:function(t){return this._onChangeCallback=t,this},_onChangeCallback:function(){}});function zb(){this.mask=1}Object.assign(zb.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask|=1<<t|0},enableAll:function(){this.mask=-1},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},disableAll:function(){this.mask=0},test:function(t){return(this.mask&t.mask)!==0}});var w3=0,Nb=new kt,Gc=new Wr,Vs=new Kn,Qf=new kt,ed=new kt,A3=new kt,E3=new Wr,Ub=new kt(1,0,0),Vb=new kt(0,1,0),Gb=new kt(0,0,1),T3={type:"added"},P3={type:"removed"};function cn(){Object.defineProperty(this,"id",{value:w3++}),this.uuid=Xn.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=cn.DefaultUp.clone();var t=new kt,e=new Vc,n=new Wr,r=new kt(1,1,1);function s(){n.setFromEuler(e,!1)}function u(){e.setFromQuaternion(n,void 0,!1)}e._onChange(s),n._onChange(u),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Kn},normalMatrix:{value:new _r}}),this.matrix=new Kn,this.matrixWorld=new Kn,this.matrixAutoUpdate=cn.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new zb,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}cn.DefaultUp=new kt(0,1,0),cn.DefaultMatrixAutoUpdate=!0,cn.prototype=Object.assign(Object.create(Us.prototype),{constructor:cn,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(t,e){return Gc.setFromAxisAngle(t,e),this.quaternion.multiply(Gc),this},rotateOnWorldAxis:function(t,e){return Gc.setFromAxisAngle(t,e),this.quaternion.premultiply(Gc),this},rotateX:function(t){return this.rotateOnAxis(Ub,t)},rotateY:function(t){return this.rotateOnAxis(Vb,t)},rotateZ:function(t){return this.rotateOnAxis(Gb,t)},translateOnAxis:function(t,e){return Nb.copy(t).applyQuaternion(this.quaternion),this.position.add(Nb.multiplyScalar(e)),this},translateX:function(t){return this.translateOnAxis(Ub,t)},translateY:function(t){return this.translateOnAxis(Vb,t)},translateZ:function(t){return this.translateOnAxis(Gb,t)},localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(t){return t.applyMatrix4(Vs.getInverse(this.matrixWorld))},lookAt:function(t,e,n){t.isVector3?Qf.copy(t):Qf.set(t,e,n);var r=this.parent;this.updateWorldMatrix(!0,!1),ed.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Vs.lookAt(ed,Qf,this.up):Vs.lookAt(Qf,ed,this.up),this.quaternion.setFromRotationMatrix(Vs),r&&(Vs.extractRotation(r.matrixWorld),Gc.setFromRotationMatrix(Vs),this.quaternion.premultiply(Gc.inverse()))},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.parent!==null&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(T3)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}var n=this.children.indexOf(t);return n!==-1&&(t.parent=null,this.children.splice(n,1),t.dispatchEvent(P3)),this},attach:function(t){return this.updateWorldMatrix(!0,!1),Vs.getInverse(this.matrixWorld),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Vs.multiply(t.parent.matrixWorld)),t.applyMatrix4(Vs),t.updateWorldMatrix(!1,!1),this.add(t),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var n=0,r=this.children.length;n<r;n++){var s=this.children[n],u=s.getObjectByProperty(t,e);if(u!==void 0)return u}},getWorldPosition:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new kt),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),t=new Wr),this.updateMatrixWorld(!0),this.matrixWorld.decompose(ed,t,A3),t},getWorldScale:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),t=new kt),this.updateMatrixWorld(!0),this.matrixWorld.decompose(ed,E3,t),t},getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new kt),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var n=this.parent;if(t===!0&&n!==null&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(var r=this.children,s=0,u=r.length;s<u;s++)r[s].updateWorldMatrix(!1,!0)},toJSON:function(t){var e=t===void 0||typeof t=="string",n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON());function s(k,z){return k[z.uuid]===void 0&&(k[z.uuid]=z.toJSON(t)),z.uuid}if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(t.geometries,this.geometry);var u=this.geometry.parameters;if(u!==void 0&&u.shapes!==void 0){var h=u.shapes;if(Array.isArray(h))for(var o=0,m=h.length;o<m;o++){var y=h[o];s(t.shapes,y)}else s(t.shapes,h)}}if(this.material!==void 0)if(Array.isArray(this.material)){for(var x=[],o=0,m=this.material.length;o<m;o++)x.push(s(t.materials,this.material[o]));r.material=x}else r.material=s(t.materials,this.material);if(this.children.length>0){r.children=[];for(var o=0;o<this.children.length;o++)r.children.push(this.children[o].toJSON(t).object)}if(e){var M=D(t.geometries),A=D(t.materials),T=D(t.textures),P=D(t.images),h=D(t.shapes);M.length>0&&(n.geometries=M),A.length>0&&(n.materials=A),T.length>0&&(n.textures=T),P.length>0&&(n.images=P),h.length>0&&(n.shapes=h)}return n.object=r,n;function D(k){var z=[];for(var O in k){var U=k[O];delete U.metadata,z.push(U)}return z}},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(var n=0;n<t.children.length;n++){var r=t.children[n];this.add(r.clone())}return this}});function Gs(){cn.call(this),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Gs.prototype=Object.assign(Object.create(cn.prototype),{constructor:Gs,isScene:!0,copy:function(t,e){return cn.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=cn.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.environment!==null&&(e.object.environment=this.environment.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e},dispose:function(){this.dispatchEvent({type:"dispose"})}});var Os=[new kt,new kt,new kt,new kt,new kt,new kt,new kt,new kt],nd=new kt,$f=new Vo,Oc=new kt,jc=new kt,Hc=new kt,va=new kt,_a=new kt,bl=new kt,id=new kt,tm=new kt,em=new kt,Ml=new kt;function Vo(t,e){this.min=t!==void 0?t:new kt(1/0,1/0,1/0),this.max=e!==void 0?e:new kt(-1/0,-1/0,-1/0)}Object.assign(Vo.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,r=1/0,s=-1/0,u=-1/0,h=-1/0,o=0,m=t.length;o<m;o+=3){var y=t[o],x=t[o+1],M=t[o+2];y<e&&(e=y),x<n&&(n=x),M<r&&(r=M),y>s&&(s=y),x>u&&(u=x),M>h&&(h=M)}return this.min.set(e,n,r),this.max.set(s,u,h),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,r=1/0,s=-1/0,u=-1/0,h=-1/0,o=0,m=t.count;o<m;o++){var y=t.getX(o),x=t.getY(o),M=t.getZ(o);y<e&&(e=y),x<n&&(n=x),M<r&&(r=M),y>s&&(s=y),x>u&&(u=x),M>h&&(h=M)}return this.min.set(e,n,r),this.max.set(s,u,h),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(t,e){var n=nd.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this},setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new kt),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new kt),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(t){t.updateWorldMatrix(!1,!1);var e=t.geometry;e!==void 0&&(e.boundingBox===null&&e.computeBoundingBox(),$f.copy(e.boundingBox),$f.applyMatrix4(t.matrixWorld),this.expandByPoint($f.min),this.expandByPoint($f.max));for(var n=t.children,r=0,s=n.length;r<s;r++)this.expandByObject(n[r]);return this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new kt),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(t){return this.clampPoint(t.center,nd),nd.distanceToSquared(t.center)<=t.radius*t.radius},intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant},intersectsTriangle:function(t){if(this.isEmpty())return!1;this.getCenter(id),tm.subVectors(this.max,id),Oc.subVectors(t.a,id),jc.subVectors(t.b,id),Hc.subVectors(t.c,id),va.subVectors(jc,Oc),_a.subVectors(Hc,jc),bl.subVectors(Oc,Hc);var e=[0,-va.z,va.y,0,-_a.z,_a.y,0,-bl.z,bl.y,va.z,0,-va.x,_a.z,0,-_a.x,bl.z,0,-bl.x,-va.y,va.x,0,-_a.y,_a.x,0,-bl.y,bl.x,0];return!W0(e,Oc,jc,Hc,tm)||(e=[1,0,0,0,1,0,0,0,1],!W0(e,Oc,jc,Hc,tm))?!1:(em.crossVectors(va,_a),e=[em.x,em.y,em.z],W0(e,Oc,jc,Hc,tm))},clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new kt),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(t){var e=nd.copy(t).clamp(this.min,this.max);return e.sub(t).length()},getBoundingSphere:function(t){return t===void 0&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(t.center),t.radius=this.getSize(nd).length()*.5,t},intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(t){return this.isEmpty()?this:(Os[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Os[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Os[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Os[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Os[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Os[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Os[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Os[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Os),this)},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}});function W0(t,e,n,r,s){var u,h;for(u=0,h=t.length-3;u<=h;u+=3){Ml.fromArray(t,u);var o=s.x*Math.abs(Ml.x)+s.y*Math.abs(Ml.y)+s.z*Math.abs(Ml.z),m=e.dot(Ml),y=n.dot(Ml),x=r.dot(Ml);if(Math.max(-Math.max(m,y,x),Math.min(m,y,x))>o)return!1}return!0}var S3=new Vo;function js(t,e){this.center=t!==void 0?t:new kt,this.radius=e!==void 0?e:0}Object.assign(js.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(t,e){var n=this.center;e!==void 0?n.copy(e):S3.setFromPoints(t).getCenter(n);for(var r=0,s=0,u=t.length;s<u;s++)r=Math.max(r,n.distanceToSquared(t[s]));return this.radius=Math.sqrt(r),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return this.radius<=0},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var n=this.center.distanceToSquared(t);return e===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new kt),e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new Vo),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}});var Hs=new kt,q0=new kt,nm=new kt,ba=new kt,Y0=new kt,im=new kt,X0=new kt;function Wc(t,e){this.origin=t!==void 0?t:new kt,this.direction=e!==void 0?e:new kt(0,0,-1)}Object.assign(Wc.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .at() target is now required"),e=new kt),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(t){return this.origin.copy(this.at(t,Hs)),this},closestPointToPoint:function(t,e){e===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new kt),e.subVectors(t,this.origin);var n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(t){var e=Hs.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Hs.copy(this.direction).multiplyScalar(e).add(this.origin),Hs.distanceToSquared(t))},distanceSqToSegment:function(t,e,n,r){q0.copy(t).add(e).multiplyScalar(.5),nm.copy(e).sub(t).normalize(),ba.copy(this.origin).sub(q0);var s=t.distanceTo(e)*.5,u=-this.direction.dot(nm),h=ba.dot(this.direction),o=-ba.dot(nm),m=ba.lengthSq(),y=Math.abs(1-u*u),x,M,A,T;if(y>0)if(x=u*o-h,M=u*h-o,T=s*y,x>=0)if(M>=-T)if(M<=T){var P=1/y;x*=P,M*=P,A=x*(x+u*M+2*h)+M*(u*x+M+2*o)+m}else M=s,x=Math.max(0,-(u*M+h)),A=-x*x+M*(M+2*o)+m;else M=-s,x=Math.max(0,-(u*M+h)),A=-x*x+M*(M+2*o)+m;else M<=-T?(x=Math.max(0,-(-u*s+h)),M=x>0?-s:Math.min(Math.max(-s,-o),s),A=-x*x+M*(M+2*o)+m):M<=T?(x=0,M=Math.min(Math.max(-s,-o),s),A=M*(M+2*o)+m):(x=Math.max(0,-(u*s+h)),M=x>0?s:Math.min(Math.max(-s,-o),s),A=-x*x+M*(M+2*o)+m);else M=u>0?-s:s,x=Math.max(0,-(u*M+h)),A=-x*x+M*(M+2*o)+m;return n&&n.copy(this.direction).multiplyScalar(x).add(this.origin),r&&r.copy(nm).multiplyScalar(M).add(q0),A},intersectSphere:function(t,e){Hs.subVectors(t.center,this.origin);var n=Hs.dot(this.direction),r=Hs.dot(Hs)-n*n,s=t.radius*t.radius;if(r>s)return null;var u=Math.sqrt(s-r),h=n-u,o=n+u;return h<0&&o<0?null:h<0?this.at(o,e):this.at(h,e)},intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return n===null?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);if(e===0)return!0;var n=t.normal.dot(this.direction);return n*e<0},intersectBox:function(t,e){var n,r,s,u,h,o,m=1/this.direction.x,y=1/this.direction.y,x=1/this.direction.z,M=this.origin;return m>=0?(n=(t.min.x-M.x)*m,r=(t.max.x-M.x)*m):(n=(t.max.x-M.x)*m,r=(t.min.x-M.x)*m),y>=0?(s=(t.min.y-M.y)*y,u=(t.max.y-M.y)*y):(s=(t.max.y-M.y)*y,u=(t.min.y-M.y)*y),n>u||s>r||((s>n||n!==n)&&(n=s),(u<r||r!==r)&&(r=u),x>=0?(h=(t.min.z-M.z)*x,o=(t.max.z-M.z)*x):(h=(t.max.z-M.z)*x,o=(t.min.z-M.z)*x),n>o||h>r)||((h>n||n!==n)&&(n=h),(o<r||r!==r)&&(r=o),r<0)?null:this.at(n>=0?n:r,e)},intersectsBox:function(t){return this.intersectBox(t,Hs)!==null},intersectTriangle:function(t,e,n,r,s){Y0.subVectors(e,t),im.subVectors(n,t),X0.crossVectors(Y0,im);var u=this.direction.dot(X0),h;if(u>0){if(r)return null;h=1}else if(u<0)h=-1,u=-u;else return null;ba.subVectors(this.origin,t);var o=h*this.direction.dot(im.crossVectors(ba,im));if(o<0)return null;var m=h*this.direction.dot(Y0.cross(ba));if(m<0||o+m>u)return null;var y=-h*ba.dot(X0);return y<0?null:this.at(y/u,s)},applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}});var K0=new kt,C3=new kt,D3=new _r;function as(t,e){this.normal=t!==void 0?t:new kt(1,0,0),this.constant=e!==void 0?e:0}Object.assign(as.prototype,{isPlane:!0,set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(t,e,n){var r=K0.subVectors(n,e).cross(C3.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return e===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new kt),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(t,e){e===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),e=new kt);var n=t.delta(K0),r=this.normal.dot(n);if(r===0)return this.distanceToPoint(t.start)===0?e.copy(t.start):void 0;var s=-(t.start.dot(this.normal)+this.constant)/r;if(!(s<0||s>1))return e.copy(n).multiplyScalar(s).add(t.start)},intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return t===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new kt),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(t,e){var n=e||D3.getNormalMatrix(t),r=this.coplanarPoint(K0).applyMatrix4(t),s=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(s),this},translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}});var Go=new kt,Ws=new kt,Z0=new kt,qs=new kt,qc=new kt,Yc=new kt,Ob=new kt,J0=new kt,Q0=new kt,$0=new kt;function mr(t,e,n){this.a=t!==void 0?t:new kt,this.b=e!==void 0?e:new kt,this.c=n!==void 0?n:new kt}Object.assign(mr,{getNormal:function(t,e,n,r){r===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),r=new kt),r.subVectors(n,e),Go.subVectors(t,e),r.cross(Go);var s=r.lengthSq();return s>0?r.multiplyScalar(1/Math.sqrt(s)):r.set(0,0,0)},getBarycoord:function(t,e,n,r,s){Go.subVectors(r,e),Ws.subVectors(n,e),Z0.subVectors(t,e);var u=Go.dot(Go),h=Go.dot(Ws),o=Go.dot(Z0),m=Ws.dot(Ws),y=Ws.dot(Z0),x=u*m-h*h;if(s===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),s=new kt),x===0)return s.set(-2,-1,-1);var M=1/x,A=(m*o-h*y)*M,T=(u*y-h*o)*M;return s.set(1-A-T,T,A)},containsPoint:function(t,e,n,r){return mr.getBarycoord(t,e,n,r,qs),qs.x>=0&&qs.y>=0&&qs.x+qs.y<=1},getUV:function(t,e,n,r,s,u,h,o){return this.getBarycoord(t,e,n,r,qs),o.set(0,0),o.addScaledVector(s,qs.x),o.addScaledVector(u,qs.y),o.addScaledVector(h,qs.z),o},isFrontFacing:function(t,e,n,r){return Go.subVectors(n,e),Ws.subVectors(t,e),Go.cross(Ws).dot(r)<0}}),Object.assign(mr.prototype,{set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){return Go.subVectors(this.c,this.b),Ws.subVectors(this.a,this.b),Go.cross(Ws).length()*.5},getMidpoint:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new kt),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return mr.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new as),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return mr.getBarycoord(t,this.a,this.b,this.c,e)},getUV:function(t,e,n,r,s){return mr.getUV(t,this.a,this.b,this.c,e,n,r,s)},containsPoint:function(t){return mr.containsPoint(t,this.a,this.b,this.c)},isFrontFacing:function(t){return mr.isFrontFacing(this.a,this.b,this.c,t)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(t,e){e===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),e=new kt);var n=this.a,r=this.b,s=this.c,u,h;qc.subVectors(r,n),Yc.subVectors(s,n),J0.subVectors(t,n);var o=qc.dot(J0),m=Yc.dot(J0);if(o<=0&&m<=0)return e.copy(n);Q0.subVectors(t,r);var y=qc.dot(Q0),x=Yc.dot(Q0);if(y>=0&&x<=y)return e.copy(r);var M=o*x-y*m;if(M<=0&&o>=0&&y<=0)return u=o/(o-y),e.copy(n).addScaledVector(qc,u);$0.subVectors(t,s);var A=qc.dot($0),T=Yc.dot($0);if(T>=0&&A<=T)return e.copy(s);var P=A*m-o*T;if(P<=0&&m>=0&&T<=0)return h=m/(m-T),e.copy(n).addScaledVector(Yc,h);var D=y*T-A*x;if(D<=0&&x-y>=0&&A-T>=0)return Ob.subVectors(s,r),h=(x-y)/(x-y+(A-T)),e.copy(r).addScaledVector(Ob,h);var k=1/(D+P+M);return u=P*k,h=M*k,e.copy(n).addScaledVector(qc,u).addScaledVector(Yc,h)},equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}});var jb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Oo={h:0,s:0,l:0},rm={h:0,s:0,l:0};function sn(t,e,n){return e===void 0&&n===void 0?this.set(t):this.setRGB(t,e,n)}function tx(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}function ex(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function nx(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}Object.assign(sn.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(t,e,n){if(t=Xn.euclideanModulo(t,1),e=Xn.clamp(e,0,1),n=Xn.clamp(n,0,1),e===0)this.r=this.g=this.b=n;else{var r=n<=.5?n*(1+e):n+e-n*e,s=2*n-r;this.r=tx(s,r,t+1/3),this.g=tx(s,r,t),this.b=tx(s,r,t-1/3)}return this},setStyle:function(t){function e(M){M!==void 0&&parseFloat(M)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var r,s=n[1],u=n[2];switch(s){case"rgb":case"rgba":if(r=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,e(r[5]),this;if(r=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,e(r[5]),this;break;case"hsl":case"hsla":if(r=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u)){var h=parseFloat(r[1])/360,o=parseInt(r[2],10)/100,m=parseInt(r[3],10)/100;return e(r[5]),this.setHSL(h,o,m)}break}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(t)){var y=n[1],x=y.length;if(x===3)return this.r=parseInt(y.charAt(0)+y.charAt(0),16)/255,this.g=parseInt(y.charAt(1)+y.charAt(1),16)/255,this.b=parseInt(y.charAt(2)+y.charAt(2),16)/255,this;if(x===6)return this.r=parseInt(y.charAt(0)+y.charAt(1),16)/255,this.g=parseInt(y.charAt(2)+y.charAt(3),16)/255,this.b=parseInt(y.charAt(4)+y.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this},setColorName:function(t){var e=jb[t];return e!==void 0?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){e===void 0&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(t){return this.r=ex(t.r),this.g=ex(t.g),this.b=ex(t.b),this},copyLinearToSRGB:function(t){return this.r=nx(t.r),this.g=nx(t.g),this.b=nx(t.b),this},convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return this.r*255<<16^this.g*255<<8^this.b*255<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e=this.r,n=this.g,r=this.b,s=Math.max(e,n,r),u=Math.min(e,n,r),h,o,m=(u+s)/2;if(u===s)h=0,o=0;else{var y=s-u;switch(o=m<=.5?y/(s+u):y/(2-s-u),s){case e:h=(n-r)/y+(n<r?6:0);break;case n:h=(r-e)/y+2;break;case r:h=(e-n)/y+4;break}h/=6}return t.h=h,t.s=o,t.l=m,t},getStyle:function(){return"rgb("+(this.r*255|0)+","+(this.g*255|0)+","+(this.b*255|0)+")"},offsetHSL:function(t,e,n){return this.getHSL(Oo),Oo.h+=t,Oo.s+=e,Oo.l+=n,this.setHSL(Oo.h,Oo.s,Oo.l),this},add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(t,e){this.getHSL(Oo),t.getHSL(rm);var n=Xn.lerp(Oo.h,rm.h,e),r=Xn.lerp(Oo.s,rm.s,e),s=Xn.lerp(Oo.l,rm.l,e);return this.setHSL(n,r,s),this},equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}}),sn.NAMES=jb;function om(t,e,n,r,s,u){this.a=t,this.b=e,this.c=n,this.normal=r&&r.isVector3?r:new kt,this.vertexNormals=Array.isArray(r)?r:[],this.color=s&&s.isColor?s:new sn,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=u!==void 0?u:0}Object.assign(om.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,n=t.vertexNormals.length;e<n;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(var e=0,n=t.vertexColors.length;e<n;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}});var R3=0;function zn(){Object.defineProperty(this,"id",{value:R3++}),this.uuid=Xn.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=qh,this.side=Dc,this.flatShading=!1,this.vertexTangents=!1,this.vertexColors=cb,this.opacity=1,this.transparent=!1,this.blendSrc=mb,this.blendDst=gb,this.blendEquation=Lc,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=L0,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=v3,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=j0,this.stencilZFail=j0,this.stencilZPass=j0,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}zn.prototype=Object.assign(Object.create(Us.prototype),{constructor:zn,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var n=t[e];if(n===void 0){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if(e==="shading"){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===lb;continue}var r=this[e];if(r===void 0){console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.");continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]=n}},toJSON:function(t){var e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(n.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,n.refractionRatio=this.refractionRatio,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==qh&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==Dc&&(n.side=this.side),this.vertexColors!==cb&&(n.vertexColors=this.vertexColors),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.morphNormals===!0&&(n.morphNormals=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData);function r(h){var o=[];for(var m in h){var y=h[m];delete y.metadata,o.push(y)}return o}if(e){var s=r(t.textures),u=r(t.images);s.length>0&&(n.textures=s),u.length>0&&(n.images=u)}return n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexTangents=t.vertexTangents,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;var e=t.clippingPlanes,n=null;if(e!==null){var r=e.length;n=new Array(r);for(var s=0;s!==r;++s)n[s]=e[s].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(zn.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}});function gr(t){zn.call(this),this.type="MeshBasicMaterial",this.color=new sn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Of,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.setValues(t)}gr.prototype=Object.create(zn.prototype),gr.prototype.constructor=gr,gr.prototype.isMeshBasicMaterial=!0,gr.prototype.copy=function(t){return zn.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this};var vi=new kt;function Nn(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=n===!0,this.usage=Zf,this.updateRange={offset:0,count:-1},this.version=0}Object.defineProperty(Nn.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(Nn.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;for(var r=0,s=this.itemSize;r<s;r++)this.array[t+r]=e.array[n+r];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),u=new sn),e[n++]=u.r,e[n++]=u.g,e[n++]=u.b}return this},copyVector2sArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),u=new ke),e[n++]=u.x,e[n++]=u.y}return this},copyVector3sArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),u=new kt),e[n++]=u.x,e[n++]=u.y,e[n++]=u.z}return this},copyVector4sArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),u=new Mi),e[n++]=u.x,e[n++]=u.y,e[n++]=u.z,e[n++]=u.w}return this},applyMatrix3:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.applyMatrix3(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},applyMatrix4:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.applyMatrix4(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},applyNormalMatrix:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.applyNormalMatrix(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},transformDirection:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.transformDirection(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this},setXYZW:function(t,e,n,r,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized}}});function ix(t,e,n){Nn.call(this,new Int8Array(t),e,n)}ix.prototype=Object.create(Nn.prototype),ix.prototype.constructor=ix;function rx(t,e,n){Nn.call(this,new Uint8Array(t),e,n)}rx.prototype=Object.create(Nn.prototype),rx.prototype.constructor=rx;function ox(t,e,n){Nn.call(this,new Uint8ClampedArray(t),e,n)}ox.prototype=Object.create(Nn.prototype),ox.prototype.constructor=ox;function sx(t,e,n){Nn.call(this,new Int16Array(t),e,n)}sx.prototype=Object.create(Nn.prototype),sx.prototype.constructor=sx;function rd(t,e,n){Nn.call(this,new Uint16Array(t),e,n)}rd.prototype=Object.create(Nn.prototype),rd.prototype.constructor=rd;function ax(t,e,n){Nn.call(this,new Int32Array(t),e,n)}ax.prototype=Object.create(Nn.prototype),ax.prototype.constructor=ax;function od(t,e,n){Nn.call(this,new Uint32Array(t),e,n)}od.prototype=Object.create(Nn.prototype),od.prototype.constructor=od;function dn(t,e,n){Nn.call(this,new Float32Array(t),e,n)}dn.prototype=Object.create(Nn.prototype),dn.prototype.constructor=dn;function lx(t,e,n){Nn.call(this,new Float64Array(t),e,n)}lx.prototype=Object.create(Nn.prototype),lx.prototype.constructor=lx;function Hb(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingBox=null,this.boundingSphere=null,this.verticesNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1}Object.assign(Hb.prototype,{computeGroups:function(t){for(var e,n=[],r=void 0,s=t.faces,u=0;u<s.length;u++){var h=s[u];h.materialIndex!==r&&(r=h.materialIndex,e!==void 0&&(e.count=u*3-e.start,n.push(e)),e={start:u*3,materialIndex:r})}e!==void 0&&(e.count=u*3-e.start,n.push(e)),this.groups=n},fromGeometry:function(t){var e=t.faces,n=t.vertices,r=t.faceVertexUvs,s=r[0]&&r[0].length>0,u=r[1]&&r[1].length>0,h=t.morphTargets,o=h.length,m;if(o>0){m=[];for(var y=0;y<o;y++)m[y]={name:h[y].name,data:[]};this.morphTargets.position=m}var x=t.morphNormals,M=x.length,A;if(M>0){A=[];for(var y=0;y<M;y++)A[y]={name:x[y].name,data:[]};this.morphTargets.normal=A}var T=t.skinIndices,P=t.skinWeights,D=T.length===n.length,k=P.length===n.length;n.length>0&&e.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(var y=0;y<e.length;y++){var z=e[y];this.vertices.push(n[z.a],n[z.b],n[z.c]);var O=z.vertexNormals;if(O.length===3)this.normals.push(O[0],O[1],O[2]);else{var U=z.normal;this.normals.push(U,U,U)}var H=z.vertexColors;if(H.length===3)this.colors.push(H[0],H[1],H[2]);else{var V=z.color;this.colors.push(V,V,V)}if(s===!0){var W=r[0][y];W!==void 0?this.uvs.push(W[0],W[1],W[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",y),this.uvs.push(new ke,new ke,new ke))}if(u===!0){var W=r[1][y];W!==void 0?this.uvs2.push(W[0],W[1],W[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",y),this.uvs2.push(new ke,new ke,new ke))}for(var K=0;K<o;K++){var Z=h[K].vertices;m[K].data.push(Z[z.a],Z[z.b],Z[z.c])}for(var K=0;K<M;K++){var tt=x[K].vertexNormals[y];A[K].data.push(tt.a,tt.b,tt.c)}D&&this.skinIndices.push(T[z.a],T[z.b],T[z.c]),k&&this.skinWeights.push(P[z.a],P[z.b],P[z.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this}});function Wb(t){if(t.length===0)return-1/0;for(var e=t[0],n=1,r=t.length;n<r;++n)t[n]>e&&(e=t[n]);return e}var L3=1,ls=new Kn,cx=new cn,Xc=new kt,fo=new Vo,sd=new Vo,tr=new kt;function wn(){Object.defineProperty(this,"id",{value:L3+=2}),this.uuid=Xn.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}wn.prototype=Object.assign(Object.create(Us.prototype),{constructor:wn,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(Wb(t)>65535?od:rd)(t,1):this.index=t},getAttribute:function(t){return this.attributes[t]},setAttribute:function(t,e){return this.attributes[t]=e,this},deleteAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:n!==void 0?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix4:function(t){var e=this.attributes.position;e!==void 0&&(e.applyMatrix4(t),e.needsUpdate=!0);var n=this.attributes.normal;if(n!==void 0){var r=new _r().getNormalMatrix(t);n.applyNormalMatrix(r),n.needsUpdate=!0}var s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(t),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(t){return ls.makeRotationX(t),this.applyMatrix4(ls),this},rotateY:function(t){return ls.makeRotationY(t),this.applyMatrix4(ls),this},rotateZ:function(t){return ls.makeRotationZ(t),this.applyMatrix4(ls),this},translate:function(t,e,n){return ls.makeTranslation(t,e,n),this.applyMatrix4(ls),this},scale:function(t,e,n){return ls.makeScale(t,e,n),this.applyMatrix4(ls),this},lookAt:function(t){return cx.lookAt(t),cx.updateMatrix(),this.applyMatrix4(cx.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Xc).negate(),this.translate(Xc.x,Xc.y,Xc.z),this},setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new dn(e.vertices.length*3,3),r=new dn(e.colors.length*3,3);if(this.setAttribute("position",n.copyVector3sArray(e.vertices)),this.setAttribute("color",r.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var s=new dn(e.lineDistances.length,1);this.setAttribute("lineDistance",s.copyArray(e.lineDistances))}e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],n=0,r=t.length;n<r;n++){var s=t[n];e.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new dn(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(n=void 0,e.elementsNeedUpdate=!1),n===void 0)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var r;return e.verticesNeedUpdate===!0&&(r=this.attributes.position,r!==void 0&&(r.copyVector3sArray(e.vertices),r.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(r=this.attributes.normal,r!==void 0&&(r.copyVector3sArray(e.normals),r.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(r=this.attributes.color,r!==void 0&&(r.copyColorsArray(e.colors),r.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(r=this.attributes.uv,r!==void 0&&(r.copyVector2sArray(e.uvs),r.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(r=this.attributes.lineDistance,r!==void 0&&(r.copyArray(e.lineDistances),r.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new Hb().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(t.vertices.length*3);if(this.setAttribute("position",new Nn(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(t.normals.length*3);this.setAttribute("normal",new Nn(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var r=new Float32Array(t.colors.length*3);this.setAttribute("color",new Nn(r,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var s=new Float32Array(t.uvs.length*2);this.setAttribute("uv",new Nn(s,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var u=new Float32Array(t.uvs2.length*2);this.setAttribute("uv2",new Nn(u,2).copyVector2sArray(t.uvs2))}this.groups=t.groups;for(var h in t.morphTargets){for(var o=[],m=t.morphTargets[h],y=0,x=m.length;y<x;y++){var M=m[y],A=new dn(M.data.length*3,3);A.name=M.name,o.push(A.copyVector3sArray(M.data))}this.morphAttributes[h]=o}if(t.skinIndices.length>0){var T=new dn(t.skinIndices.length*4,4);this.setAttribute("skinIndex",T.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var P=new dn(t.skinWeights.length*4,4);this.setAttribute("skinWeight",P.copyVector4sArray(t.skinWeights))}return t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new Vo);var t=this.attributes.position,e=this.morphAttributes.position;if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(var n=0,r=e.length;n<r;n++){var s=e[n];fo.setFromBufferAttribute(s),this.morphTargetsRelative?(tr.addVectors(this.boundingBox.min,fo.min),this.boundingBox.expandByPoint(tr),tr.addVectors(this.boundingBox.max,fo.max),this.boundingBox.expandByPoint(tr)):(this.boundingBox.expandByPoint(fo.min),this.boundingBox.expandByPoint(fo.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new js);var t=this.attributes.position,e=this.morphAttributes.position;if(t){var n=this.boundingSphere.center;if(fo.setFromBufferAttribute(t),e)for(var r=0,s=e.length;r<s;r++){var u=e[r];sd.setFromBufferAttribute(u),this.morphTargetsRelative?(tr.addVectors(fo.min,sd.min),fo.expandByPoint(tr),tr.addVectors(fo.max,sd.max),fo.expandByPoint(tr)):(fo.expandByPoint(sd.min),fo.expandByPoint(sd.max))}fo.getCenter(n);for(var h=0,r=0,s=t.count;r<s;r++)tr.fromBufferAttribute(t,r),h=Math.max(h,n.distanceToSquared(tr));if(e)for(var r=0,s=e.length;r<s;r++)for(var u=e[r],o=this.morphTargetsRelative,m=0,y=u.count;m<y;m++)tr.fromBufferAttribute(u,m),o&&(Xc.fromBufferAttribute(t,m),tr.add(Xc)),h=Math.max(h,n.distanceToSquared(tr));this.boundingSphere.radius=Math.sqrt(h),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var n=e.position.array;if(e.normal===void 0)this.setAttribute("normal",new Nn(new Float32Array(n.length),3));else for(var r=e.normal.array,s=0,u=r.length;s<u;s++)r[s]=0;var h=e.normal.array,o,m,y,x=new kt,M=new kt,A=new kt,T=new kt,P=new kt;if(t)for(var D=t.array,s=0,u=t.count;s<u;s+=3)o=D[s+0]*3,m=D[s+1]*3,y=D[s+2]*3,x.fromArray(n,o),M.fromArray(n,m),A.fromArray(n,y),T.subVectors(A,M),P.subVectors(x,M),T.cross(P),h[o]+=T.x,h[o+1]+=T.y,h[o+2]+=T.z,h[m]+=T.x,h[m+1]+=T.y,h[m+2]+=T.z,h[y]+=T.x,h[y+1]+=T.y,h[y+2]+=T.z;else for(var s=0,u=n.length;s<u;s+=9)x.fromArray(n,s),M.fromArray(n,s+3),A.fromArray(n,s+6),T.subVectors(A,M),P.subVectors(x,M),T.cross(P),h[s]=T.x,h[s+1]=T.y,h[s+2]=T.z,h[s+3]=T.x,h[s+4]=T.y,h[s+5]=T.z,h[s+6]=T.x,h[s+7]=T.y,h[s+8]=T.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(!(t&&t.isBufferGeometry)){console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);return}e===void 0&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n=this.attributes;for(var r in n)if(t.attributes[r]!==void 0)for(var s=n[r],u=s.array,h=t.attributes[r],o=h.array,m=h.itemSize*e,y=Math.min(o.length,u.length-m),x=0,M=m;x<y;x++,M++)u[M]=o[x];return this},normalizeNormals:function(){for(var t=this.attributes.normal,e=0,n=t.count;e<n;e++)tr.x=t.getX(e),tr.y=t.getY(e),tr.z=t.getZ(e),tr.normalize(),t.setXYZ(e,tr.x,tr.y,tr.z)},toNonIndexed:function(){function t(D,k){for(var z=D.array,O=D.itemSize,U=new z.constructor(k.length*O),H=0,V=0,W=0,K=k.length;W<K;W++){H=k[W]*O;for(var Z=0;Z<O;Z++)U[V++]=z[H++]}return new Nn(U,O)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var e=new wn,n=this.index.array,r=this.attributes;for(var s in r){var u=r[s],h=t(u,n);e.setAttribute(s,h)}var o=this.morphAttributes;for(s in o){for(var m=[],y=o[s],x=0,M=y.length;x<M;x++){var u=y[x],h=t(u,n);m.push(h)}e.morphAttributes[s]=m}e.morphTargetsRelative=this.morphTargetsRelative;for(var A=this.groups,x=0,T=A.length;x<T;x++){var P=A[x];e.addGroup(P.start,P.count,P.materialIndex)}return e},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(var n in e)e[n]!==void 0&&(t[n]=e[n]);return t}t.data={attributes:{}};var r=this.index;r!==null&&(t.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var s=this.attributes;for(var n in s){var u=s[n],h=u.toJSON();u.name!==""&&(h.name=u.name),t.data.attributes[n]=h}var o={},m=!1;for(var n in this.morphAttributes){for(var y=this.morphAttributes[n],x=[],M=0,A=y.length;M<A;M++){var u=y[M],h=u.toJSON();u.name!==""&&(h.name=u.name),x.push(h)}x.length>0&&(o[n]=x,m=!0)}m&&(t.data.morphAttributes=o,t.data.morphTargetsRelative=this.morphTargetsRelative);var T=this.groups;T.length>0&&(t.data.groups=JSON.parse(JSON.stringify(T)));var P=this.boundingSphere;return P!==null&&(t.data.boundingSphere={center:P.center.toArray(),radius:P.radius}),t},clone:function(){return new wn().copy(this)},copy:function(t){var e,n,r;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var s=t.index;s!==null&&this.setIndex(s.clone());var u=t.attributes;for(e in u){var h=u[e];this.setAttribute(e,h.clone())}var o=t.morphAttributes;for(e in o){var m=[],y=o[e];for(n=0,r=y.length;n<r;n++)m.push(y[n].clone());this.morphAttributes[e]=m}this.morphTargetsRelative=t.morphTargetsRelative;var x=t.groups;for(n=0,r=x.length;n<r;n++){var M=x[n];this.addGroup(M.start,M.count,M.materialIndex)}var A=t.boundingBox;A!==null&&(this.boundingBox=A.clone());var T=t.boundingSphere;return T!==null&&(this.boundingSphere=T.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var qb=new Kn,wl=new Wc,ux=new js,Al=new kt,El=new kt,Tl=new kt,hx=new kt,dx=new kt,px=new kt,sm=new kt,am=new kt,lm=new kt,Kc=new ke,Zc=new ke,Jc=new ke,ad=new kt,cm=new kt;function ki(t,e){cn.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new wn,this.material=e!==void 0?e:new gr,this.updateMorphTargets()}ki.prototype=Object.assign(Object.create(cn.prototype),{constructor:ki,isMesh:!0,copy:function(t){return cn.prototype.copy.call(this,t),t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry,e,n,r;if(t.isBufferGeometry){var s=t.morphAttributes,u=Object.keys(s);if(u.length>0){var h=s[u[0]];if(h!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},e=0,n=h.length;e<n;e++)r=h[e].name||String(e),this.morphTargetInfluences.push(0),this.morphTargetDictionary[r]=e}}else{var o=t.morphTargets;o!==void 0&&o.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(t,e){var n=this.geometry,r=this.material,s=this.matrixWorld;if(r!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),ux.copy(n.boundingSphere),ux.applyMatrix4(s),t.ray.intersectsSphere(ux)!==!1&&(qb.getInverse(s),wl.copy(t.ray).applyMatrix4(qb),!(n.boundingBox!==null&&wl.intersectsBox(n.boundingBox)===!1)))){var u;if(n.isBufferGeometry){var h,o,m,y=n.index,x=n.attributes.position,M=n.morphAttributes.position,A=n.morphTargetsRelative,T=n.attributes.uv,P=n.attributes.uv2,D=n.groups,k=n.drawRange,z,O,U,H,V,W,K,Z;if(y!==null)if(Array.isArray(r))for(z=0,U=D.length;z<U;z++)for(V=D[z],W=r[V.materialIndex],K=Math.max(V.start,k.start),Z=Math.min(V.start+V.count,k.start+k.count),O=K,H=Z;O<H;O+=3)h=y.getX(O),o=y.getX(O+1),m=y.getX(O+2),u=um(this,W,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(O/3),u.face.materialIndex=V.materialIndex,e.push(u));else for(K=Math.max(0,k.start),Z=Math.min(y.count,k.start+k.count),z=K,U=Z;z<U;z+=3)h=y.getX(z),o=y.getX(z+1),m=y.getX(z+2),u=um(this,r,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(z/3),e.push(u));else if(x!==void 0)if(Array.isArray(r))for(z=0,U=D.length;z<U;z++)for(V=D[z],W=r[V.materialIndex],K=Math.max(V.start,k.start),Z=Math.min(V.start+V.count,k.start+k.count),O=K,H=Z;O<H;O+=3)h=O,o=O+1,m=O+2,u=um(this,W,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(O/3),u.face.materialIndex=V.materialIndex,e.push(u));else for(K=Math.max(0,k.start),Z=Math.min(x.count,k.start+k.count),z=K,U=Z;z<U;z+=3)h=z,o=z+1,m=z+2,u=um(this,r,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(z/3),e.push(u))}else if(n.isGeometry){var tt,at,st,nt=Array.isArray(r),ct=n.vertices,xt=n.faces,vt,Zt=n.faceVertexUvs[0];Zt.length>0&&(vt=Zt);for(var ce=0,le=xt.length;ce<le;ce++){var fe=xt[ce],de=nt?r[fe.materialIndex]:r;if(de!==void 0&&(tt=ct[fe.a],at=ct[fe.b],st=ct[fe.c],u=Yb(this,de,t,wl,tt,at,st,ad),u)){if(vt&&vt[ce]){var Le=vt[ce];Kc.copy(Le[0]),Zc.copy(Le[1]),Jc.copy(Le[2]),u.uv=mr.getUV(ad,tt,at,st,Kc,Zc,Jc,new ke)}u.face=fe,u.faceIndex=ce,e.push(u)}}}}},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});function Yb(t,e,n,r,s,u,h,o){var m;if(e.side===lr?m=r.intersectTriangle(h,u,s,!0,o):m=r.intersectTriangle(s,u,h,e.side!==Wh,o),m===null)return null;cm.copy(o),cm.applyMatrix4(t.matrixWorld);var y=n.ray.origin.distanceTo(cm);return y<n.near||y>n.far?null:{distance:y,point:cm.clone(),object:t}}function um(t,e,n,r,s,u,h,o,m,y,x,M){Al.fromBufferAttribute(s,y),El.fromBufferAttribute(s,x),Tl.fromBufferAttribute(s,M);var A=t.morphTargetInfluences;if(e.morphTargets&&u&&A){sm.set(0,0,0),am.set(0,0,0),lm.set(0,0,0);for(var T=0,P=u.length;T<P;T++){var D=A[T],k=u[T];D!==0&&(hx.fromBufferAttribute(k,y),dx.fromBufferAttribute(k,x),px.fromBufferAttribute(k,M),h?(sm.addScaledVector(hx,D),am.addScaledVector(dx,D),lm.addScaledVector(px,D)):(sm.addScaledVector(hx.sub(Al),D),am.addScaledVector(dx.sub(El),D),lm.addScaledVector(px.sub(Tl),D)))}Al.add(sm),El.add(am),Tl.add(lm)}var z=Yb(t,e,n,r,Al,El,Tl,ad);if(z){o&&(Kc.fromBufferAttribute(o,y),Zc.fromBufferAttribute(o,x),Jc.fromBufferAttribute(o,M),z.uv=mr.getUV(ad,Al,El,Tl,Kc,Zc,Jc,new ke)),m&&(Kc.fromBufferAttribute(m,y),Zc.fromBufferAttribute(m,x),Jc.fromBufferAttribute(m,M),z.uv2=mr.getUV(ad,Al,El,Tl,Kc,Zc,Jc,new ke));var O=new om(y,x,M);mr.getNormal(Al,El,Tl,O.normal),z.face=O}return z}var I3=0,cs=new Kn,fx=new cn,hm=new kt;function Gn(){Object.defineProperty(this,"id",{value:I3+=2}),this.uuid=Xn.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}Gn.prototype=Object.assign(Object.create(Us.prototype),{constructor:Gn,isGeometry:!0,applyMatrix4:function(t){for(var e=new _r().getNormalMatrix(t),n=0,r=this.vertices.length;n<r;n++){var s=this.vertices[n];s.applyMatrix4(t)}for(var n=0,r=this.faces.length;n<r;n++){var u=this.faces[n];u.normal.applyMatrix3(e).normalize();for(var h=0,o=u.vertexNormals.length;h<o;h++)u.vertexNormals[h].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(t){return cs.makeRotationX(t),this.applyMatrix4(cs),this},rotateY:function(t){return cs.makeRotationY(t),this.applyMatrix4(cs),this},rotateZ:function(t){return cs.makeRotationZ(t),this.applyMatrix4(cs),this},translate:function(t,e,n){return cs.makeTranslation(t,e,n),this.applyMatrix4(cs),this},scale:function(t,e,n){return cs.makeScale(t,e,n),this.applyMatrix4(cs),this},lookAt:function(t){return fx.lookAt(t),fx.updateMatrix(),this.applyMatrix4(fx.matrix),this},fromBufferGeometry:function(t){var e=this,n=t.index!==null?t.index.array:void 0,r=t.attributes;if(r.position===void 0)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),this;var s=r.position.array,u=r.normal!==void 0?r.normal.array:void 0,h=r.color!==void 0?r.color.array:void 0,o=r.uv!==void 0?r.uv.array:void 0,m=r.uv2!==void 0?r.uv2.array:void 0;m!==void 0&&(this.faceVertexUvs[1]=[]);for(var y=0;y<s.length;y+=3)e.vertices.push(new kt().fromArray(s,y)),h!==void 0&&e.colors.push(new sn().fromArray(h,y));function x(z,O,U,H){var V=h===void 0?[]:[e.colors[z].clone(),e.colors[O].clone(),e.colors[U].clone()],W=u===void 0?[]:[new kt().fromArray(u,z*3),new kt().fromArray(u,O*3),new kt().fromArray(u,U*3)],K=new om(z,O,U,W,V,H);e.faces.push(K),o!==void 0&&e.faceVertexUvs[0].push([new ke().fromArray(o,z*2),new ke().fromArray(o,O*2),new ke().fromArray(o,U*2)]),m!==void 0&&e.faceVertexUvs[1].push([new ke().fromArray(m,z*2),new ke().fromArray(m,O*2),new ke().fromArray(m,U*2)])}var M=t.groups;if(M.length>0)for(var y=0;y<M.length;y++)for(var A=M[y],T=A.start,P=A.count,D=T,k=T+P;D<k;D+=3)n!==void 0?x(n[D],n[D+1],n[D+2],A.materialIndex):x(D,D+1,D+2,A.materialIndex);else if(n!==void 0)for(var y=0;y<n.length;y+=3)x(n[y],n[y+1],n[y+2]);else for(var y=0;y<s.length/3;y+=3)x(y,y+1,y+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(hm).negate(),this.translate(hm.x,hm.y,hm.z),this},normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius,n=e===0?1:1/e,r=new Kn;return r.set(n,0,0,-n*t.x,0,n,0,-n*t.y,0,0,n,-n*t.z,0,0,0,1),this.applyMatrix4(r),this},computeFaceNormals:function(){for(var t=new kt,e=new kt,n=0,r=this.faces.length;n<r;n++){var s=this.faces[n],u=this.vertices[s.a],h=this.vertices[s.b],o=this.vertices[s.c];t.subVectors(o,h),e.subVectors(u,h),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,n,r,s,u,h;for(h=new Array(this.vertices.length),e=0,n=this.vertices.length;e<n;e++)h[e]=new kt;if(t){var o,m,y,x=new kt,M=new kt;for(r=0,s=this.faces.length;r<s;r++)u=this.faces[r],o=this.vertices[u.a],m=this.vertices[u.b],y=this.vertices[u.c],x.subVectors(y,m),M.subVectors(o,m),x.cross(M),h[u.a].add(x),h[u.b].add(x),h[u.c].add(x)}else for(this.computeFaceNormals(),r=0,s=this.faces.length;r<s;r++)u=this.faces[r],h[u.a].add(u.normal),h[u.b].add(u.normal),h[u.c].add(u.normal);for(e=0,n=this.vertices.length;e<n;e++)h[e].normalize();for(r=0,s=this.faces.length;r<s;r++){u=this.faces[r];var A=u.vertexNormals;A.length===3?(A[0].copy(h[u.a]),A[1].copy(h[u.b]),A[2].copy(h[u.c])):(A[0]=h[u.a].clone(),A[1]=h[u.b].clone(),A[2]=h[u.c].clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t<e;t++){n=this.faces[t];var r=n.vertexNormals;r.length===3?(r[0].copy(n.normal),r[1].copy(n.normal),r[2].copy(n.normal)):(r[0]=n.normal.clone(),r[1]=n.normal.clone(),r[2]=n.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,r,s;for(n=0,r=this.faces.length;n<r;n++)for(s=this.faces[n],s.__originalFaceNormal?s.__originalFaceNormal.copy(s.normal):s.__originalFaceNormal=s.normal.clone(),s.__originalVertexNormals||(s.__originalVertexNormals=[]),t=0,e=s.vertexNormals.length;t<e;t++)s.__originalVertexNormals[t]?s.__originalVertexNormals[t].copy(s.vertexNormals[t]):s.__originalVertexNormals[t]=s.vertexNormals[t].clone();var u=new Gn;for(u.faces=this.faces,t=0,e=this.morphTargets.length;t<e;t++){if(!this.morphNormals[t]){this.morphNormals[t]={},this.morphNormals[t].faceNormals=[],this.morphNormals[t].vertexNormals=[];var h=this.morphNormals[t].faceNormals,o=this.morphNormals[t].vertexNormals,y,x;for(n=0,r=this.faces.length;n<r;n++)y=new kt,x={a:new kt,b:new kt,c:new kt},h.push(y),o.push(x)}var m=this.morphNormals[t];u.vertices=this.morphTargets[t].vertices,u.computeFaceNormals(),u.computeVertexNormals();var y,x;for(n=0,r=this.faces.length;n<r;n++)s=this.faces[n],y=m.faceNormals[n],x=m.vertexNormals[n],y.copy(s.normal),x.a.copy(s.vertexNormals[0]),x.b.copy(s.vertexNormals[1]),x.c.copy(s.vertexNormals[2])}for(n=0,r=this.faces.length;n<r;n++)s=this.faces[n],s.normal=s.__originalFaceNormal,s.vertexNormals=s.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new Vo),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new js),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!(t&&t.isGeometry)){console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);return}var r,s=this.vertices.length,u=this.vertices,h=t.vertices,o=this.faces,m=t.faces,y=this.colors,x=t.colors;n===void 0&&(n=0),e!==void 0&&(r=new _r().getNormalMatrix(e));for(var M=0,A=h.length;M<A;M++){var T=h[M],P=T.clone();e!==void 0&&P.applyMatrix4(e),u.push(P)}for(var M=0,A=x.length;M<A;M++)y.push(x[M].clone());for(M=0,A=m.length;M<A;M++){var D=m[M],k,z,O,U=D.vertexNormals,H=D.vertexColors;k=new om(D.a+s,D.b+s,D.c+s),k.normal.copy(D.normal),r!==void 0&&k.normal.applyMatrix3(r).normalize();for(var V=0,W=U.length;V<W;V++)z=U[V].clone(),r!==void 0&&z.applyMatrix3(r).normalize(),k.vertexNormals.push(z);k.color.copy(D.color);for(var V=0,W=H.length;V<W;V++)O=H[V],k.vertexColors.push(O.clone());k.materialIndex=D.materialIndex+n,o.push(k)}for(var M=0,A=t.faceVertexUvs.length;M<A;M++){var K=t.faceVertexUvs[M];this.faceVertexUvs[M]===void 0&&(this.faceVertexUvs[M]=[]);for(var V=0,W=K.length;V<W;V++){for(var Z=K[V],tt=[],at=0,st=Z.length;at<st;at++)tt.push(Z[at].clone());this.faceVertexUvs[M].push(tt)}}},mergeMesh:function(t){if(!(t&&t.isMesh)){console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t);return}t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)},mergeVertices:function(){var t={},e=[],n=[],r,s,u=4,h=Math.pow(10,u),o,m,y,x,M,A;for(o=0,m=this.vertices.length;o<m;o++)r=this.vertices[o],s=Math.round(r.x*h)+"_"+Math.round(r.y*h)+"_"+Math.round(r.z*h),t[s]===void 0?(t[s]=o,e.push(this.vertices[o]),n[o]=e.length-1):n[o]=n[t[s]];var T=[];for(o=0,m=this.faces.length;o<m;o++){y=this.faces[o],y.a=n[y.a],y.b=n[y.b],y.c=n[y.c],x=[y.a,y.b,y.c];for(var P=0;P<3;P++)if(x[P]===x[(P+1)%3]){T.push(o);break}}for(o=T.length-1;o>=0;o--){var D=T[o];for(this.faces.splice(D,1),M=0,A=this.faceVertexUvs.length;M<A;M++)this.faceVertexUvs[M].splice(D,1)}var k=this.vertices.length-e.length;return this.vertices=e,k},setFromPoints:function(t){this.vertices=[];for(var e=0,n=t.length;e<n;e++){var r=t[e];this.vertices.push(new kt(r.x,r.y,r.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,n=0;n<e;n++)t[n]._id=n;function r(y,x){return y.materialIndex-x.materialIndex}t.sort(r);var s=this.faceVertexUvs[0],u=this.faceVertexUvs[1],h,o;s&&s.length===e&&(h=[]),u&&u.length===e&&(o=[]);for(var n=0;n<e;n++){var m=t[n]._id;h&&h.push(s[m]),o&&o.push(u[m])}h&&(this.faceVertexUvs[0]=h),o&&(this.faceVertexUvs[1]=o)},toJSON:function(){var t={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),this.parameters!==void 0){var e=this.parameters;for(var n in e)e[n]!==void 0&&(t[n]=e[n]);return t}for(var r=[],s=0;s<this.vertices.length;s++){var u=this.vertices[s];r.push(u.x,u.y,u.z)}for(var h=[],o=[],m={},y=[],x={},M=[],A={},s=0;s<this.faces.length;s++){var T=this.faces[s],P=!0,D=!1,k=this.faceVertexUvs[0][s]!==void 0,z=T.normal.length()>0,O=T.vertexNormals.length>0,U=T.color.r!==1||T.color.g!==1||T.color.b!==1,H=T.vertexColors.length>0,V=0;if(V=tt(V,0,0),V=tt(V,1,P),V=tt(V,2,D),V=tt(V,3,k),V=tt(V,4,z),V=tt(V,5,O),V=tt(V,6,U),V=tt(V,7,H),h.push(V),h.push(T.a,T.b,T.c),h.push(T.materialIndex),k){var W=this.faceVertexUvs[0][s];h.push(nt(W[0]),nt(W[1]),nt(W[2]))}if(z&&h.push(at(T.normal)),O){var K=T.vertexNormals;h.push(at(K[0]),at(K[1]),at(K[2]))}if(U&&h.push(st(T.color)),H){var Z=T.vertexColors;h.push(st(Z[0]),st(Z[1]),st(Z[2]))}}function tt(ct,xt,vt){return vt?ct|1<<xt:ct&~(1<<xt)}function at(ct){var xt=ct.x.toString()+ct.y.toString()+ct.z.toString();return m[xt]!==void 0||(m[xt]=o.length/3,o.push(ct.x,ct.y,ct.z)),m[xt]}function st(ct){var xt=ct.r.toString()+ct.g.toString()+ct.b.toString();return x[xt]!==void 0||(x[xt]=y.length,y.push(ct.getHex())),x[xt]}function nt(ct){var xt=ct.x.toString()+ct.y.toString();return A[xt]!==void 0||(A[xt]=M.length/2,M.push(ct.x,ct.y)),A[xt]}return t.data={},t.data.vertices=r,t.data.normals=o,y.length>0&&(t.data.colors=y),M.length>0&&(t.data.uvs=[M]),t.data.faces=h,t},clone:function(){return new Gn().copy(this)},copy:function(t){var e,n,r,s,u,h;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var o=t.vertices;for(e=0,n=o.length;e<n;e++)this.vertices.push(o[e].clone());var m=t.colors;for(e=0,n=m.length;e<n;e++)this.colors.push(m[e].clone());var y=t.faces;for(e=0,n=y.length;e<n;e++)this.faces.push(y[e].clone());for(e=0,n=t.faceVertexUvs.length;e<n;e++){var x=t.faceVertexUvs[e];for(this.faceVertexUvs[e]===void 0&&(this.faceVertexUvs[e]=[]),r=0,s=x.length;r<s;r++){var M=x[r],A=[];for(u=0,h=M.length;u<h;u++){var T=M[u];A.push(T.clone())}this.faceVertexUvs[e].push(A)}}var P=t.morphTargets;for(e=0,n=P.length;e<n;e++){var D={};if(D.name=P[e].name,P[e].vertices!==void 0)for(D.vertices=[],r=0,s=P[e].vertices.length;r<s;r++)D.vertices.push(P[e].vertices[r].clone());if(P[e].normals!==void 0)for(D.normals=[],r=0,s=P[e].normals.length;r<s;r++)D.normals.push(P[e].normals[r].clone());this.morphTargets.push(D)}var k=t.morphNormals;for(e=0,n=k.length;e<n;e++){var z={};if(k[e].vertexNormals!==void 0)for(z.vertexNormals=[],r=0,s=k[e].vertexNormals.length;r<s;r++){var O=k[e].vertexNormals[r],U={};U.a=O.a.clone(),U.b=O.b.clone(),U.c=O.c.clone(),z.vertexNormals.push(U)}if(k[e].faceNormals!==void 0)for(z.faceNormals=[],r=0,s=k[e].faceNormals.length;r<s;r++)z.faceNormals.push(k[e].faceNormals[r].clone());this.morphNormals.push(z)}var H=t.skinWeights;for(e=0,n=H.length;e<n;e++)this.skinWeights.push(H[e].clone());var V=t.skinIndices;for(e=0,n=V.length;e<n;e++)this.skinIndices.push(V[e].clone());var W=t.lineDistances;for(e=0,n=W.length;e<n;e++)this.lineDistances.push(W[e]);var K=t.boundingBox;K!==null&&(this.boundingBox=K.clone());var Z=t.boundingSphere;return Z!==null&&(this.boundingSphere=Z.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});class k3 extends Gn{constructor(e,n,r,s,u,h){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:s,heightSegments:u,depthSegments:h},this.fromBufferGeometry(new dm(e,n,r,s,u,h)),this.mergeVertices()}}class dm extends wn{constructor(e,n,r,s,u,h){super(),this.type="BoxBufferGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:s,heightSegments:u,depthSegments:h};var o=this;e=e||1,n=n||1,r=r||1,s=Math.floor(s)||1,u=Math.floor(u)||1,h=Math.floor(h)||1;var m=[],y=[],x=[],M=[],A=0,T=0;P("z","y","x",-1,-1,r,n,e,h,u,0),P("z","y","x",1,-1,r,n,-e,h,u,1),P("x","z","y",1,1,e,r,n,s,h,2),P("x","z","y",1,-1,e,r,-n,s,h,3),P("x","y","z",1,-1,e,n,r,s,u,4),P("x","y","z",-1,-1,e,n,-r,s,u,5),this.setIndex(m),this.setAttribute("position",new dn(y,3)),this.setAttribute("normal",new dn(x,3)),this.setAttribute("uv",new dn(M,2));function P(D,k,z,O,U,H,V,W,K,Z,tt){var at=H/K,st=V/Z,nt=H/2,ct=V/2,xt=W/2,vt=K+1,Zt=Z+1,ce=0,le=0,fe,de,Le=new kt;for(de=0;de<Zt;de++){var Lt=de*st-ct;for(fe=0;fe<vt;fe++){var bt=fe*at-nt;Le[D]=bt*O,Le[k]=Lt*U,Le[z]=xt,y.push(Le.x,Le.y,Le.z),Le[D]=0,Le[k]=0,Le[z]=W>0?1:-1,x.push(Le.x,Le.y,Le.z),M.push(fe/K),M.push(1-de/Z),ce+=1}}for(de=0;de<Z;de++)for(fe=0;fe<K;fe++){var qt=A+fe+vt*de,Wt=A+fe+vt*(de+1),Nt=A+(fe+1)+vt*(de+1),se=A+(fe+1)+vt*de;m.push(qt,Wt,se),m.push(Wt,Nt,se),le+=6}o.addGroup(T,le,tt),T+=le,A+=ce}}}function Qc(t){var e={};for(var n in t){e[n]={};for(var r in t[n]){var s=t[n][r];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[n][r]=s.clone():Array.isArray(s)?e[n][r]=s.slice():e[n][r]=s}}return e}function br(t){for(var e={},n=0;n<t.length;n++){var r=Qc(t[n]);for(var s in r)e[s]=r[s]}return e}var B3={clone:Qc,merge:br},F3=`void main() {
|
|
4
|
+
`});return n=n.replaceAll(wT,(r,s,u)=>`"${encodeURI(u)}"`),n=n.replaceAll(AT,(r,s,u,h)=>`${s}"${u}"${h}`),n=n.replaceAll(",",",").replaceAll("“",'"').replaceAll("”",'"'),JSON.parse(n,(r,s)=>(typeof s=="string"&&(s=decodeURI(s)),s))}Fe(F_,"V");function z_(t,e="{",n="}"){let r=0,s=0;for(;r<t.length;){let u=t.slice(r,r+e.length),h=t.slice(r,r+n.length);if(u==e){s++,t=t.substring(0,r+e.length)+`${s}%`+t.substring(r+e.length),r+=e.length+String(s).length+1;continue}if(h==n){s>0&&(t=t.substring(0,r)+`%${s}`+t.substring(r)),r+=n.length+String(s).length+1,s--;continue}r++}return t}Fe(z_,"J");function N_(t,...e){return e.length==0&&(e.push(["{","}"]),e.push(["[","]"])),e.forEach(n=>{t.includes(n[0])&&t.includes(n[1])&&(t=z_(t,...n))}),t}Fe(N_,"H");function U_(t,e,n){return[[e,new RegExp(Gh(e)+"\\d+%")],[n,new RegExp("%\\d+"+Gh(n))]].forEach(([r,s])=>{let u;for(;(u=s.exec(t))!==null;)u.index===s.lastIndex&&s.lastIndex++,t=t.replace(s,r)}),t}Fe(U_,"G");function Uf(t,...e){return e.length==0&&(e.push(["{","}"]),e.push(["[","]"])),e.forEach(([n,r])=>{t.includes(n)&&t.includes(r)&&(t=U_(t,n,r))}),t}Fe(Uf,"E");function V_(t){return t?t.trim().substring(1).trim().split("|").map(e=>e.trim()).map(e=>{if(e=="")return null;let n=e.indexOf("("),r=e.lastIndexOf(")");if(n!==-1&&r!==-1){let s=e.substring(n+1,r).trim(),u=O_(s);return[e.substring(0,n),u]}else return[e,[]]}).filter(e=>Array.isArray(e)):[]}Fe(V_,"M");function G_(...t){t.length==0&&(t.push(["{","}"]),t.push(["[","]"]));let e=t.map(([n,r])=>`(${Gh(n)}1%.*?%1${Gh(r)})`);return ET.replace("__TAG_REGEXP__",e.length>0?e.join("|")+"|":"")}Fe(G_,"z");var ET=String.raw`((([\'\"])(.*?)\3))|__TAG_REGEXP__([\d]+\.?[\d]?)|((true|false|null)(?=[,\b\s]))|([\w\.]+)|((?<=,)\s*(?=,))(?<=\s*[,\)]?\s*)`;function O_(t){let e=[],n;t=N_(t);try{let r=new RegExp(G_(),"g");for(;(n=r.exec(t))!==null;){n.index===r.lastIndex&&r.lastIndex++;let s=n[0];if(s.trim()=="")s=void 0;else if(s.startsWith("'")&&s.endsWith("'")||s.startsWith('"')&&s.endsWith('"'))s=s.substring(1,s.length-1),s=Uf(s);else if(s.startsWith("{")&&s.endsWith("}")||s.startsWith("[")&&s.endsWith("]"))try{s=Uf(s),s=F_(s)}catch(u){}else["true","false","null"].includes(s)?s=JSON.parse(s):B_(s)?s=parseFloat(s):s=Uf(String(s));e.push(s)}}catch(r){}return e}Fe(O_,"U");var TT=new RegExp("(?<!\\\\)\\{([\\S]+\\s)?\\s*(\\w+)?((\\s*\\|\\s*\\w*(\\(.*?\\)){0,1}\\s*)*)\\s*(\\s[\\S]+)?\\}","gm");function w0(t,e,n={}){let r=t,s,u=Object.assign({replaceAll:!0},n),h=TT;for(h.lastIndex=0;(s=h.exec(r))!==null;){s.index===h.lastIndex&&h.lastIndex++;let o=s[2]||"",m=(s[1]||"").trim(),y=(s[6]||"").trim(),x=r.length,M=V_(s[3]||"");if(k_(e)){let A=e(o,m,y,M,s[0]);u.replaceAll?r=M0(r,s[0],A):r=r.replace(s[0],A),h.lastIndex+=r.length-x}}return r}Fe(w0,"O");function A0(t,e){let n=e.value;if(t.length>0){let r=Y_.call(this,t,e);for(let s of r)try{n=s.call(this,n)}catch(u){if(u instanceof _0)throw u;if(u instanceof Sc){if(u.value!=null&&(n=u.value),u instanceof yl)break}else throw u}}return this.options.isEmpty(n)||(n=`${e.prefix}${n}${e.suffix}`),n}Fe(A0,"I");function j_(t,e,n,r){if(!this.options.isEmpty(t))return t;let s=r.onEmpty||n.onEmpty||this.options.onEmpty;if(typeof s!="function")return t;let u=s.call(this,t,e,r);throw u instanceof Error?u:u==gl.Abort?new yl:u==gl.Ignore?new Nf:u==gl.Throw?new _0:new yl(u)}Fe(j_,"K");function H_(t,e,n,r,s){let u=s.onError||r.onError||this.options.onError;if(typeof u!="function")return e;let h=u.call(this,t,e,n,s);throw h instanceof Error?h:h==gl.Abort?new yl:h==gl.Ignore?new Nf:h==gl.Throw?t:new yl(h)}Fe(H_,"Q");function W_(t,e,n){var r;let s=Object.assign({},typeof t.default=="function"?t.default():t.default);return e.length==1&&b0(e[0])?Vh(s,e[0]):t.args&&((r=t.args)==null?void 0:r.length)>0&&t.args.forEach((u,h)=>{e[h]!==void 0&&(s[u]=e[h])}),u=>{let h;try{n.args=e,h=t.next.call(this,u,s,n),h=j_.call(this,h,s,t,n)}catch(o){if(o.filter=t.name,o instanceof Sc)throw o;return this.log(`当执行过滤器器<${n.match}:${t.name}>时出错:${o.stack}`),H_.call(this,o,u,s,t,n)}return String(h)}}Fe(W_,"Y");function q_(t){let e=[],n=t.map(([r,s])=>[this.getFilter.call(this,r),s]).filter(([r])=>r!=null);return n=n.reduce((r,[s,u])=>(s&&(s.priority=="before"?r.unshift([s,u]):s.priority=="after"?e.push([s,u]):r.push([s,u])),r),[]),n.concat(e)}Fe(q_,"Z");function Y_(t,e){let n=q_.call(this,t),r=[];for(let[s,u]of n)r.push(W_.call(this,s,u,e));return r}Fe(Y_,"ee");var E0,PT=(E0=class{constructor(t){this.options=Vh({log:console.log,filters:{},missing:"default",filterContext:{}},t),this.addDefaultHandlers(),this.addBuildinFilters(),this.normalizeFilters()}get filters(){return this.options.filters}addDefaultHandlers(){this.options.onError=()=>gl.Ignore,this.options.onEmpty=()=>"",this.options.isEmpty=t=>t===null||t===""}addFilter(t){if(!t.name)throw new Error("Filter name cannot be empty");if(typeof t.next!="function")throw new Error("The filter must provide a next function");return t=Vh({priority:"normal"},t),this.filters[t.name]=t}removeFilter(t){delete this.filters[t]}getFilter(t){var e;if(t in this.options.filters)return this.options.filters[t];{let n=(e=this.options.getFilter)==null?void 0:e.call(this,t);return typeof n=="function"?{name:t,next:n}:t in String.prototype?{name:t,next:Fe((r,s,u)=>r[t](...u.args),"next")}:n}}addBuildinFilters(){this.addFilter(_T),this.addFilter(bT)}normalizeFilters(){Object.entries(this.options.filters).forEach(([t,e])=>{let n=Vh({name:t,priority:"normal",args:null,next:Fe(r=>r,"next")},typeof e=="function"?{filter:e}:e);this.options.filters[t]=n})}getMissingValue(t,e){let n=this.options.missing;if(n=="default")return"";if(n=="ignore")return e;if(typeof n=="function")return n.call(this,t)}replace(t,...e){if(e.length===0)return t;if(e.length===1&&typeof e[0]=="function"&&(e[0]=e[0].call(this)),e.length===1&&b0(e[0])){let n=e[0];return w0.call(this,t,(r,s,u,h,o)=>{let m=r in n?n[r]:this.getMissingValue(r,o);return typeof m=="function"&&(m=m.call(this)),A0.call(this,h,I_({name:r,value:m,prefix:s,suffix:u,template:t,match:o,args:[]},this.options.filterContext))})}else{let n=e.length===1&&Array.isArray(e[0])?[...e[0]]:e,r=0;return w0.call(this,t,(s,u,h,o,m)=>{let y=n.length>r?n[r++]:this.getMissingValue(r,m);return typeof y=="function"&&(y=y.call(this)),A0.call(this,o,I_({name:s,value:y,prefix:u,suffix:h,template:t,match:m,args:[]},this.options.filterContext))},{replaceAll:!1})}}log(t,...e){this.options.debug&&this.options.log(t,...e)}},Fe(E0,"$"),E0);function X_(t,e,n){let{defaultValue:r,delimiter:s,matched:u}=Object.assign({delimiter:"."},n);if(!t||typeof e!="string")return r;if(!e)return t;let h=e.split(s),o=t,m,y;try{for(let x of h)if(o instanceof Map||o instanceof WeakMap){if(!o.has(x))return r;m=o,y=x,o=o.get(x)}else if(o instanceof Set){let M=parseInt(x,10);if(M>=o.size)return r;m=o,y=M,o=[...o][M]}else if(o&&typeof o=="object"&&x in o)m=o,y=Array.isArray(o)?parseInt(x):x,o=o[x];else return r}catch(x){return r}return typeof u=="function"&&u({value:o,parent:m,indexOrKey:y}),o}Fe(X_,"u");var K_=class{constructor(){Ii(this,"_flexVars")}_initInterpolators(){this._flexVars=new PT({filterContext:{getConfig:Fe(e=>{let n=this.activeMessages.$config||{};return e?X_(n,e):n},"getConfig"),scope:this}})}};Fe(K_,"InterpolatorMixin");var ST=K_;function Z_(t,...e){if(e.length===0)return t;let n=e.map((r,s)=>{let u=Object.entries(r||{});return u.some(([h,o])=>o===void 0)?u.reduce((h,[o,m])=>(m!==void 0&&(h[o]=m),h),{}):r});return Object.assign(t,...n)}Fe(Z_,"u");var T0=class zE extends m_(tT,iT,uT,fT,mT,ST,gT){constructor(e){super(),Ii(this,"__VoerkaI18nScope__",!0),Ii(this,"_options"),Ii(this,"_manager"),Ii(this,"_formatterManager",null),Ii(this,"_logger"),Ii(this,"_defaultLanguage","zh-CN"),Ii(this,"_activeLanguage","zh-CN"),Ii(this,"_activeMessages",{}),Ii(this,"_patchedMessages",{}),Ii(this,"_translateComponent"),Ii(this,"_translateTransformer"),Ii(this,"_activeParagraphs",{}),Ii(this,"$id",++zE.idSeq),this._options=Z_({id:i_(),library:!1,debug:!1,injectLangAttr:!0,languages:[],messages:{},paragraphs:{},idMap:{},formatters:[],attached:!0,storageKey:"language",cachePatch:!0},e),this._init()}get id(){return this._options.id}get options(){return this._options}get attached(){return this._options.attached}get debug(){return this._options.debug}get library(){return this._options.library}get formatters(){return this._formatterManager}get defaultLanguage(){return this._defaultLanguage}get defaultMessages(){return this.messages[this.defaultLanguage]}get messages(){return this._options.messages}get paragraphs(){return this._options.paragraphs}get idMap(){return this._options.idMap}get languages(){return this._options.languages}get manager(){return this._manager}get appScope(){return this._manager.scope}get interpolator(){return this._flexVars}get logger(){return this._logger}get t(){return this.translate.bind(this)}get Translate(){return this._getTranslateComponent()}get activeMessages(){return this._activeMessages}get activeParagraphs(){return this._activeParagraphs}get activeLanguage(){return this._activeLanguage}get storage(){return this.getScopeOption("storage")}get loader(){return this.getScopeOption("loader")}get $t(){return(e,n,r)=>(this._getTranslateTransformer(),r||(r={}),r.transform=!0,this.translate(e,n,r))}getScopeOption(e){let n=this._options;return this.attached?n[e]||(this.library?this._manager[e]:void 0):n[e]}_initOptions(){if(!Array.isArray(this.languages))this.logger.warn("[VoerkaI18n] invalid language settings, will use default language settings."),this._options.languages=Object.assign([],qE);else if(this.languages.length==0)throw new Error("[VoerkaI18n] must provide valid language settings.");let e,n;this.languages.forEach(s=>{s.default&&(n=s.name),s.active&&(e=s.name)});let r=this._options.messages;if(n in r||(n=Object.keys(r)[0]),e in r||(e=n),!(n in r))throw new Error("[VoerkaI18n] invalid language configuration, must provide valid default and active languages.");if(this._activeLanguage=e,this._defaultLanguage=n,!this._options.library&&!this._options.storage&&(this._options.storage=WE),ss(this.messages[this._defaultLanguage]))throw new Error("[VoerkaI18n] default language pack must be static content, can't use async load way.");this._activeMessages=this.messages[this._activeLanguage],this._activeParagraphs=this.paragraphs[this._activeLanguage]}_init(){this._logger=E_(this._options.log),this._initOptions(),this.library||this.restoreLanguage(),this._initInterpolators(),this.registerToManager(),this._formatterManager=new pT(this)}bind(e){this._manager=e,this._manager.once("init",this._initRefresh.bind(this))}_initRefresh(e){if(this.library)this.refresh(e&&e());else{let n=[];(this._defaultLanguage!==this._activeLanguage||ss(this.activeMessages))&&n.push(this.refresh(void 0,{patch:!1})),n.push(this._patch()),Promise.all(n).then(()=>{this.emit("ready",this.activeLanguage,!0),this._setLanguageAttr()})}}registerToManager(){if(!this.attached)return;let e=!this.options.library;e&&(globalThis.VoerkaI18n&&globalThis.VoerkaI18n.scope&&u0()&&console.warn("Only can have one i18nScope with library=false"),this._manager=new l_(this));let n=globalThis.VoerkaI18n;n&&P_(n)?e?this._initRefresh():n.register(this):(globalThis.__VoerkaI18nScopes__||(globalThis.__VoerkaI18nScopes__=[]),globalThis.__VoerkaI18nScopes__.push(this))}change(e){return Gt(this,null,function*(){let n=this.activeLanguage;return this.attached?n=yield this._manager.change(e):n=yield this.refresh(e),n})}_setLanguageAttr(){if(!(this.library||!u0()))try{let e=this._options.injectLangAttr;if(!e)return;let n=e===!0?document.body:document.body.querySelector(e);n&&n.setAttribute("lang",this.activeLanguage)}catch(e){}}getRawMessage(e){if(Ff(e)){if(e in this.defaultMessages)return this.defaultMessages[e]}else return e}getMessageId(e){if(Ff(e))return e;if(e in this.idMap)return this.idMap[e]}};Fe(T0,"VoerkaI18nScope"),Ii(T0,"idSeq",0);var CT=T0;function DT(t,e,n){return r=>{let s=t.next;return t.next=function(u,h,o){let m=o.getConfig;return o.getConfig=()=>Object.assign({},n,e==null?void 0:e[r.activeLanguage],m(t.name)),s.call(this,u,h,o)},t}}Fe(DT,"createFormatter");function RT(t){let e=globalThis.VoerkaI18n;e?e.registerPlugin(t):(globalThis.__VoerkaI18nPlugins__||(globalThis.__VoerkaI18nPlugins__=[]),globalThis.__VoerkaI18nPlugins__.push(t))}Fe(RT,"definePlugin");const LT={get(t){if(globalThis.localStorage)return globalThis.localStorage.getItem(t)},set(t,e){globalThis.localStorage&&globalThis.localStorage.setItem(t,e)},remove(t){globalThis.localStorage&&globalThis.localStorage.removeItem(t)}};var IT=Object.defineProperty,pr=(t,e)=>IT(t,"name",{value:e,configurable:!0}),Cc=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof require!="undefined"?require:e)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});function J_(t,e=!1){if(typeof t=="number")return!0;if(typeof t!="string"||e)return!1;try{if(t.includes(".")){let n=parseFloat(t);return t.endsWith(".")?!isNaN(n)&&String(n).length===t.length-1:!isNaN(n)&&String(n).length===t.length}else{let n=parseInt(t);return!isNaN(n)&&String(n).length===t.length}}catch(n){return!1}}pr(J_,"r"),(t=>typeof Cc<"u"?Cc:typeof Proxy<"u"?new Proxy(t,{get:pr((e,n)=>(typeof Cc<"u"?Cc:e)[n],"get")}):t)(function(t){if(typeof Cc<"u")return Cc.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});function Q_(t,e=3){let n=new RegExp(String.raw`(?!^)(?=(\d{${e}})+$)`,"g"),r=t.replace(n,",");return r.startsWith(",")&&(r=r.substring(1)),r.endsWith(",")&&(r=r.substring(0,r.length-2)),r}pr(Q_,"addSplitChars");function P0(t,e){let{symbol:n="",division:r=3,prefix:s="",precision:u=-1,suffix:h="",unit:o=0,radix:m=3,units:y=[],format:x="{symbol}{value}{unit}"}=e,[M,A]=String(t).split(".");o>0&&m>0&&(M.length<m*o&&(M=Array.from({length:m*o-M.length+1}).fill(0).join("")+M),A=M.substring(Number(M),M.length-m*o)+A,M=M.substring(0,M.length-m*o),M==""&&(M="0"));let T=[];T.push(Q_(M,r)),A&&J_(u)&&u!=0&&(u==0||(u==-1?T.push(`.${A}`):u>0&&(u<0?A=String(parseFloat(`0.${A}`)):A=String(parseFloat(`0.${A}`).toFixed(u)).split(".")[1],T.push(`.${A}`))));const P=y[o]||"";return x.replace("{value}",T.join("")).replace("{symbol}",n).replace("{prefix}",s).replace("{suffix}",h).replace("{unit}",P)}pr(P0,"toCurrency");var kT=[{name:"currency",args:["format","unit","precision","prefix","suffix","division","symbol","radix"],next(t,e,n){const r=n.getConfig(),s=Object.assign({},r,e);return s.format in s&&(s.format=s[s.format]),s.unit=parseInt(String(s.unit))||0,s.unit>s.units.length-1&&(s.unit=s.units.length-1),s.unit<0&&(s.unit=0),s.unit>0&&s.precision==2&&(s.precision=-1),P0(t,s)}},{"en-US":{units:[""," thousands"," millions"," billions"," trillions"],radix:3,symbol:"$",prefix:"USD",suffix:"",division:3,precision:2},"zh-CN":{units:["","万","亿","万亿","万万亿"],radix:4,symbol:"¥",prefix:"RMB",suffix:"元",division:4,precision:2}},{default:"{symbol}{value}{unit}",long:"{prefix} {symbol}{value}{unit}{suffix}",short:"{symbol}{value}{unit}",custom:"{prefix} {symbol}{value}{unit}{suffix}",format:"default"}],BT=[{name:"number",args:["precision","division"],next(t,e,n){const r=n.getConfig();return P0(t,Object.assign({},r,e))}},{"en-US":{division:3},"zh-CN":{division:4}}];function ga(t){return t instanceof Date?t:new Date(t)}pr(ga,"toDate");var FT=[{name:"timeSlots",args:["upper"],default:{upper:!0},next(t,e,n){const r=n.getConfig(),s=ga(t).getHours(),u=!!e.upper;let h=r.slots.findIndex(o=>s<o);return h===-1&&(h=r.upperCases.length-1),u?r.upperCases[h]:r.lowerCases[h]}},{"en-US":{slots:[12],lowerCases:["am","pm"],upperCases:["AM","PM"]},"zh-CN":{slots:[5,8,11,13,18],lowerCases:["凌晨","早上","上午","中午","下午","晚上"],upperCases:["凌晨","早上","上午","中午","下午","晚上"]}}];function S0(t,...e){if(e.length===0)return t;let n=e.map((r,s)=>{let u=Object.entries(r||{});return u.some(([h,o])=>o===void 0)?u.reduce((h,[o,m])=>(m!==void 0&&(h[o]=m),h),{}):r});return Object.assign(t,...n)}pr(S0,"u");var Vf={en:{month:{long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"]},weekday:{long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tues","Wed","Thur","Fri","Sat"]}},cn:{month:{long:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],short:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},weekday:{long:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],short:["周日","周一","周二","周三","周四","周五","周六"]}}},$_={en:{slots:[12],names:["AM","PM"]},cn:{slots:[6,9,11,13,18],names:["凌晨","早上","上午","中午","下午","晚上"]}},zT="YYYY-MM-DD HH:mm:ss";function C0(t){t<0&&t>23&&(t=0);let e=[0,...$_[this.language].slots,24].findIndex(n=>n>t)-1;return $_[this.language].names[e]}pr(C0,"h");function D0(t,e,n){let r=S0({language:"cn"},n),s=t instanceof Date?t:new Date(t||Date.now()),u=s.getHours(),h=String(u).padStart(2,"0"),o=u>12?u-12:u,m=String(o).padStart(2,"0"),y=String(s.getMinutes()),x=String(s.getSeconds()),M=String(s.getMilliseconds()),A=String(s.getFullYear()),T=s.getMonth(),P=s.getDay(),D=String(s.getDate()),k=[["HH",h],["H",u],["hh",m],["h",o],["mm",y.padStart(2,"0")],["m",y],["ss",x.padStart(2,"0")],["s",x],["SSS",M.padStart(3,"0")],["A",u>12?"PM":"AM"],["a",u>12?"pm":"am"],["t",C0.call(r,u)],["T",C0.call(r,u)],["YYYY",A],["yyyy",A],["YY",A.substring(2)],["MMM",Vf[r.language].month.short[T]],["MM",String(T+1).padStart(2,"0")],["M",T+1],["DD",D.padStart(2,"0")],["D",D],["d",P],["dd",Vf[r.language].weekday.short[P]],["ddd",Vf[r.language].weekday.short[P]],["dddd",Vf[r.language].weekday.long[P]]],z=e||zT;return k.forEach(([O,U])=>z=z.replaceAll(O,U)),z}pr(D0,"H");function tb(t,e,n){if(typeof e=="string"){let r=0,s;for(;(s=t.indexOf(e,r))>-1;){let u=typeof n=="function"?n(e):n,h=t.length;t=t.substring(0,s)+u+t.substring(s+e.length),r=s+u.length+t.length-h}}else{let r;if(!e.global||!e.multiline)throw new Error("The search parameter must be enabled '/gm' option");for(;(r=e.exec(t))!==null;){r.index===e.lastIndex&&e.lastIndex++;let s=t.length,u=r[0].length,h=typeof n=="function"?n(r[0],...r):n;t=t.substring(0,r.index)+h+t.substring(r.index+u),e.lastIndex+=t.length-s}}return t}pr(tb,"s"),String.prototype.replaceAll||(String.prototype.replaceAll=function(t,e){return tb(this,t,e)});var eb={local:pr(t=>t.toLocaleString(),"local"),iso:pr(t=>t.toISOString(),"iso"),utc:pr(t=>t.toUTCString(),"utc"),gmt:pr(t=>t.toGMTString(),"gmt")},NT=[{global:!0,name:"date",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t);let u=e.format||r.format;if(u in eb)return eb[u](s);if(u in r&&(u=r[u],typeof u=="function"))return u(s);if(typeof u=="string")return D0(s,u)}},{"en-US":{long:"YYYY/MM/DD HH:mm:ss",short:"YYYY/MM/DD"},"zh-CN":{long:"YYYY年M月D日 HH点mm分ss秒",short:"YYYY年M月D日"}},{format:"local"}],nb={local:pr(t=>t.toLocaleTimeString(),"local"),timestamp:pr(t=>t.getTime(),"timestamp")},UT=[{name:"time",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t);let u=e.format||r.format;if(u in nb)return nb[u](s);if(u in r&&(u=r[u],typeof u=="function"))return u(s);if(typeof u=="string")return D0(s,u)}},{"en-US":{long:"HH:mm:ss"},"zh-CN":{long:"HH点mm分ss秒"}},{format:"local",short:"HH:mm:ss"}],VT=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],GT=["周日","周一","周二","周三","周四","周五","周六"],OT=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],jT=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],HT=[{name:"weekday",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t).getDay(),u=e.format||"long";if(typeof u=="string"&&u in r){const h=r[u];return typeof h=="function"?h(s):h[s]}return s}},{"en-US":{long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tues","Wed","Thur","Fri","Sat"]},"zh-CN":{long:VT,short:GT}},{format:"long"}],WT=[{name:"month",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t).getMonth()+1,u=e.format||r.format;if(typeof u=="string"&&u in r){const h=r[u];return typeof h=="function"?h(s):h[s-1]}return s}},{"en-US":{long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"]},"zh-CN":{long:OT,short:jT}},{format:"long"}],qT=[{name:"quarter",args:["format"],next(t,e,n){const r=n.getConfig(),s=ga(t).getMonth()+1,u=Math.floor(s%3==0?s/3:s/3+1)-1,h=e.format||r.format;if(typeof h=="string"&&h in r){const o=r[h];return typeof o=="function"?o(u):o[u]}return u}},{"en-US":{long:["First Quarter","Second Quarter","Third Quarter","Fourth Quarter"]},"zh-CN":{long:["一季度","二季度","三季度","四季度"]}},{format:"short",short:["Q1","Q2","Q3","Q4"]}],Oh=[1e3,6e4,36e5,864e5,6048e5,2592e6,31536e6,Number.MAX_SAFE_INTEGER];function ib(t,e,n){let{units:r,now:s,before:u,after:h}=S0({units:["秒","分钟","小时","天","周","个月","年"],now:"刚刚",before:"{value}{unit}前",after:"{value}{unit}后"},n),o=typeof t=="number"?new Date(t).getTime():t.getTime(),m=(e instanceof Date?e:typeof e=="number"?new Date(e):new Date).getTime(),y=o-m,x=Oh.findIndex(M=>Math.abs(y)<M)-1;if(x<0&&(x=0),x>Oh.length-1&&(x=Oh.length-1),y<1e3&&y>-1e3)return s;if(y<=-1e3){let M=parseInt(String(Math.abs(y)/Oh[x]));return u.replace("{value}",M).replace("{unit}",r[x])}else{let M=parseInt(String(Math.abs(y)/Oh[x]));return h.replace("{value}",M).replace("{unit}",r[x])}}pr(ib,"b");var YT=[{name:"relativeTime",args:["base"],default:pr(()=>({base:new Date}),"default"),next(t,e,n){const r=n.getConfig(),s=e.base||new Date;return ib(ga(t),s,r)}},{"en-US":{units:["seconds","minutes","hours","days","weeks","months","years"],now:"Just now",before:"{value} {unit} ago",after:"after {value} {unit}"},"zh-CN":{units:["秒","分钟","小时","天","周","个月","年"],now:"刚刚",before:"{value}{unit}前",after:"{value}{unit}后"}}],XT=[kT,BT,FT,NT,UT,HT,WT,qT,YT];const KT=(t,e)=>Gt(this,null,function*(){return yield(yield fetch(MxPluginContext.getLoaderLanguageUrl(t,e))).json()}),ZT={"zh-CN":{},"en-US":{},"ko-KR":{}},JT={" 指定输出范围第一点:":718," 指定输出范围第二点:":719," 指定第一点:":720," 指定第二点:":721," 云线框起始点:":722," 云线框结束点:":723," 审图标注点:":724," 点击开启绘制云线:":725," 再次点击结束绘制云线:":726,"指定一点:":727,"指定二点:":728,选择对象:729," 指定下一个点:":730,"\\指定插入基点":731," 指定表格插入点:":732,"指定插入点:":733,指定插入基点:734,选择标注对象:735,请选择目标文字:736," 指定填充区域内部一点:":737,"没有找到闭合区域 ":738,表面粗糙度:739,焊接符号:740,形位公差:741,选择要需要开启自定义属性的对象:742,选择要隐藏的对象:743," 指定插入点:":744," 指定一点:":745,指定夹角:746," 指定二点:":747,选择图案填充对象:748,"指定第一点:":749,"指定第二点:":750,"指定第二个角度点:":751,"指定最后一个点:":752,"指定坐标点:":753,"指定标注点:":754,请输入审批意见:755,指定云线框起始点:756,指定云线框终止点:757,指定审图标注点:758,"指定第一个角点:":759,"指定第二个角点:":760,"指定序号位置:":761,旋转符号:762,标记类型:763,"请选择需要标记的圆:":764,请设置定位点或直线或圆弧或圆:765,拖动确定标注位置:766,请指定或输入角度:767,焊缝符号:768,"请拾取定位点、直线或圆弧":769,请指定第二点:770,请设置定位点:771,请设置角度:772,请设置定位点或直线或圆弧:773,请设置引线转折点:774,拖动确定定位点:775,"请指定第一点:":776,"请指定第二点:":777,请选择目标块对象:778,请输入新块名:779,选择需要修改基点的块:780,设置基点:781,选择需要修改颜色的块:782,"输入颜色索引(0~256)":783,请选择源块:784,"选择要刷的目标块:":785,选择连接方式:786,手动逐个连线:787,自动批量连线:788,请选择连线的块:789,设置中心线长度:790,"选择要旋转的目标块:":791,设置旋转角度:792,请设置缩放比例:793,"请设置选择范围:":794,请选择目标块:795,请设置统计范围:796,"指定表格插入点:":797,选择目标曲线:798,指定长度标注点:799,选择目标对象:800,请选择目标斜率对象:801,请设置标注文字高度:802,指定斜率标注点:803,请选择目标坐标点:804,请指定标注位置:805,指定起点:806,指定终点:807,指定标注方向:808,请设置文字内容:809,请选择面积的第一个点:810,请选择下一个点:811,请选择面积标注的位置:812,请选择矩形的角点1:813,请选择矩形的角点2:814,请设置面积标注的位置:815,请选择一个测量点:816,请选择一条直线:817,请设置尺寸线的位置:818,请选择一条弧线:819,请指定尺寸线位置:820,请选择一个圆对象:821,请指定文字位置:822,请选择直线的端点或弧线:823,请指定文字的位置:824,请选择一个连续测量的标注:825,请选择第二条直线:826,请设置角度标注的位置:827," 请输入星形顶点数:":828," 指定星形中心点:":829,"请设置星形的内半径:":830," 指定星形的外半径:":831," 请输入凹凸线宽度<5>":832," 请输入凹凸线高度<10>":833,请点击确定起始点:834,请点击确定终点:835," 请输入锯齿线宽度<5>":836," 请输入锯齿线高度<10>":837," 请输入矩形宽度<5>":838," 请输入矩形高度<10>":839,请点击确定矩形中心:840," 请输入管径<10>":841," 请输入长出管口长度<5>":842,请点击确定起点:843,指定剖管线起点:844,指定剖管线终点:845,选择剖管线圆弧方向:846,左边:847,右边:848,选择模式:849,直线焊缝:850,弧线焊缝:851," 请输入焊缝半径<5>":852,指定圆弧的第二个点:853,指定圆弧的端点:854,"请输入宽度<25>":855,"请输入高度<15>":856,"请输入楼梯级数<10>":857,"请确定圆心位置 ":858,请输入圆半径:859," 请输入保温棉宽度<5>":860," 请输入保温棉高度<10>":861,请点击下一个点:862,请选择第一条线:863,请选择第二条线:864,请选择终点:865,请选择目标矩形:866,设置指北针中心点:867,设置指北针半径:868,选择提示框指向:869," 指定消息框第一点:":870," 指定消息框第二点:":871," 设置消息框指向:":872,请设置基准符文字:873,请设置文字高度:874,请设置基准符位置:875,请设置定位点或圆弧或直线:876,请设置符号位置:877,请设置圆心:878,请设置齿轮圆心:879,请设置齿轮半径:880," 请设置中心线长度10>":881,请选择第一个圆:882,请选择第二个圆:883,请设置矩形左上角点:884,请设置矩形右下角点:885,请设置圆角半径:886,请选择多边形起点:887,请选择多边形顶点:888,"选择对象:":889,指定基点:890,"指定第二个点 ":891,阵列:892,退出:893,放弃:894,"输入要进行阵列的项目数 ":895,选择圆弧对象:896,"选择复制旋转对象:":897,"请指定目标点 ":898,请指定旋转角度:899,选择要转成多边形的对象:900,设置多边形边数:901," 输入选项":902,内接于圆:903,外切于圆:904,选择要修改颜色的对象:905,输入颜色索引:906,隐藏:907,隐藏未选:908,全部显示:909,选择目标的对象:910," 指定删除方框第一点:":911," 指定删除方框第二点:":912," 选择需要精确删除的实体":913," 请选择角度复制对象":914," 请输入角度复制数量":915," 请输入角度复制的基点":916," 请输入复制角度":917,请选择顶点对象:918,请选择复制对象:919,请确定复制基点:920,请选择参考曲线:921,选择打断对象:922,指定偏移对象:923,请输入偏移距离:924,"指定伸缩对象(选择直线、多段线、圆弧)":925,伸缩至:926,选择要修改线型比例的对象:927,请输入线型比例:928,请输入阵列间距:929,请选择圆弧:930,选择排列对象:931,指定排列基点:932,"选择目标多段线:":933,"请输入圆角半径<5>":934,选择填充对象:935,请输入填充比例:936,请选择原填充图形:937,请点击填充图形内部任意一点:938,请选择线对象:939,选择等分模式:940,定距等分:941,定数等分:942,偏移等分:943,复制等分:944,请选择偏移等分对象:945,请选择复制等分对象:946,请选择需要等分的线段:947,请设置等分距离:948,请设置等分的数量:949,请设置偏移距离:950,请指定偏移点:951,请指定复制基点:952,请指定复制等分数量:953,请指定复制等分端点:954,"请选择需要矩形缩放的实体:":955,请指定矩形的角点1:956,请指定矩形角点2:957,请选择放大中心点:958,请选择放大范围:959,请设置放大倍数:960,请选择放大插入点:961,请选择一条需要打断的曲线:962,请在曲线上选取打断点:963,请输入阵列数量:964,是否开启旋转:965,是:966,否:967,"请选择需要阵列的图形:":968,请选择阵列中心点:969,"请选择闭合多边形!":970,请选择第一个点:971,请选择第二个点:972,请选择第一个闭合多边形:973,请选择第二个闭合多边形:974,请选择两个闭合多边形:975,"两个多边形没有重合边!":976,请选择目标多边形:977,请选择多边形需要添加顶点的边:978,请设置添加的顶点位置:979,请选择多边形需要删除的顶点:980,请选择多边形需要拉伸的边:981,请指定拉伸位置:982,"请设置图框方向<N>":983,横向:984,纵向:985,"请设置图框尺寸<4>":986,请设置图框位置:987,指定裁剪角点1:988,指定裁剪角点2:989,请设置道路起点:990,请设置下一点:991,"请选择目标对齐线对象(选择直线)":992,请选择目标文字对象:993,选择文字对象:994,请设置字高:995,请设置字宽:996,请选择源文字:997,请选择第一个文字:998,请选择第二个文字:999,请选择需要对齐的文字:1e3,请选择对齐方式:1001,左:1002,中:1003,右:1004,请选择对齐基点:1005,请选择需要反转的文字:1006,请选择需要去空格的文字:1007,请选择文字对象:1008,"请输入下划线宽度 ":1009,"请设置下划线距离 ":1010,"请设置下划线延长距离 ":1011,"请选择操作选项 ":1012,大写:1013,小写:1014,句首大写:1015,请选择数字对象:1016,"请选择文字插入点 ":1017,"选择要查找的范围:":1018,"请选择查找模式 ":1019,等于:1020,包含:1021,前缀为:1022,后缀为:1023,"请输入关键字 ":1024,"选择要操作的范围:":1025,选择操作方式:1026,添加:1027,删除:1028,选择操作位置:1029,前缀:1030,后缀:1031,请输入内容:1032,"请选择文本 ":1033,"请选择圆弧 ":1034,请选择文字样式:1035,请设置文字提取范围:1036,下载开Demo代码:1037,下载开发包:1038,调用画圆线命令:1039,交互画直线:1040,添加图层:1041,得到所有图层:1042,得到所有文字样式:1043,得到所有图块:1044,得到所有线型:1045,写扩展数据:1046,读扩展数据:1047,测试插入一个图块:1048,绘直线:1049,绘圆弧:1050,绘圆:1051,绘PL线:1052,绘填充:1053,绘文字:1054,绘椭圆:1055,绘椭圆弧:1056,绘制多行文字:1057,绘制表格:1058,绘制二维码:1059,插入图章:1060,得到所有对象:1061,交互选择对象:1062,保存mxweb到服务器:1063,得到系统变量:1064,新建图纸:1065,白色背景色:1066,文字查找定位:1067,选择实体做块:1068,绘制单行文字:1069,选点填充:1070,设置扩展属性:1071,绘制对齐标注:1072,绘性线标注:1073,角度标注:1074,修改对象线型:1075,选择隐藏对象层:1076,添加到当前选择:1077,视区旋转:1078,写扩展记录:1079,得到命名字典:1080,添加文字样式:1081,绘自定义实体:1082,修改对象颜色:1083,修改对象不可见:1084,修改对象层:1085,修改对象显示顺序:1086,指定范围输出pdf:1087,绘制image:1088,读取对象扩展字典:1089,绘制3DPolyline:1090,绘线文本自定义实体:1091,计算交点:1092,修改文字样式:1093,偏移输入画线:1094,创建组:1095,屏幕截图jpg:1096,获取图纸相同文字:1097,指定范围输出dwg:1098,测试绘制标记圆:1099,测试Wipeout:1100,创建剪切块:1101,公差标注:1102,改所有对象颜色:1103,切剪mxweb:1104,设置当前颜色线重:1105,查找多边形区域内对象:1106,打碎对象:1107,绘半透明线:1108,添加线型:1109,修改图案比例:1110,测试文字编辑:1111,绘制条形码:1112,屏幕截图bmp:1113,修改工具:1114,文字工具:1115,绘图工具:1116,块工具:1117,测量工具:1118,标注工具:1119,其他工具:1120,多重复制:1121,弧转圆:1122,复制旋转:1123,圆转多边:1124,修改颜色:1125,圆弧切角:1126,临时隐藏:1127,方框删除:1128,角度复制:1129,顶点复制:1130,交点打断:1131,双向偏移:1132,改圆大小:1133,线型比例:1134,伸缩:1135,按弧阵列:1136,pl圆角:1137,pl线反向:1138,得到所有直线对象:1139,等分:1140,矩形缩放:1141,打断:1142,切割多边形:1143,合并多边形:1144,添加多边形顶点:1145,删除多边形顶点:1146,多边形单边拉伸:1147,星形:1148,凹凸线:1149,锯齿线:1150,中心矩形:1151,圆角矩形:1152,圆中心线:1153,管道:1154,剖管符:1155,中垂线:1156,楼梯:1157,实心圆:1158,保温棉:1159,中心线:1160,开洞:1161,消息框:1162,"基准符(1)":1163,焊缝线:1164,同心圆:1165,齿轮:1166,块中心线:1167,圆公切线:1168,"基准符(2)":1169,插入图框:1170,绘制道路:1171,绘任意多边形:1172,按线对齐:1173,改字高:1174,改字宽:1175,刷内容:1176,换内容:1177,左右对齐:1178,上下对齐:1179,文字反转:1180,文字加框:1181,下划线:1182,图名线:1183,大小写:1184,数字求和:1185,选特定字:1186,前后缀:1187,连接文字:1188,去空格:1189,文字竖向:1190,按弧对齐:1191,修改全局文字样式:1192,提取文字:1193,文字编号:1194,改块名:1195,刷块:1196,块连线:1197,改块基点:1198,改块颜色:1199,多块旋转:1200,多块缩放:1201,刷块角度:1202,按块选择:1203,按块全选:1204,统计单块:1205,统计多块:1206,修改块图层:1207,长度:1208,统计面积:1209,智能标高:1210,面积:1211,矩形面积:1212,点到直线的距离:1213,弧长:1214,测量圆:1215,连续测量:1216,查看分段长度:1217,面积含弧线:1218,审图标注:1219,矩形标注:1220,粗糙度标注:1221,坐标标注:1222,标斜率:1223,对齐:1224,局部放大:1225,序号标注:1226,旋转标注:1227,圆孔标记:1228,向视符号:1229,射线标注:1230,矩形标注悬停变色:1231,裁剪图纸扩展:1232,箭头直线:1233,提取表格:1985,选择的文字:1234,复制到剪贴板:1235,取消:1236,确定:1237,公差代号:1238,公差1:1239,公差2:1240,附注:1241,顶端:1242,底端:1243,基准:1244,全周符号:1245,当前行:1246,增加行:1247,删除行:1248,清零:1249,直线度:1250,平面度:1251,圆度:1252,圆柱度:1253,线轮廓度:1254,面轮廓度:1255,平行度:1256,垂直度:1257,倾斜度:1258,位置度:1259,同轴度:1260,对称度:1261,圆跳动:1262,全跳动:1263,清除:1264,"请输入文本内容和编号:":1265,"文本内容:":1266,"(输入0-20个字)":1267,"起始编号:":1268,"(编号自动递增1)":1269,"编号位置:":1270,编号在前:1271,编号在后:1272,改变方向:1273,"左边文字内容:":1274,"右边文字内容:":1275,"底部文字内容:":1276,基本符号:1277,相同要求:1278,多数符号:1279,长边加横线:1280,辅助符号:1281,补充符号:1282,符号位置:1283,特殊符号:1284,左尺寸:1285,上尺寸:1286,右尺寸:1287,交错焊缝:1288,间距:1289,扩充文字:1290,虚线位置:1291,焊接说明:1292,清除行:1293,卷边焊缝:1294,I型焊缝:1295,V型焊缝:1296,单边V型焊缝:1297,单边陡侧V型坡口堆焊:1298,倾斜焊缝:1299,可移除衬垫:1300,持久衬垫:1301,带顿边V型焊缝:1302,带顿边U型焊缝:1303,带顿边单边V型焊缝:1304,带顿边单边U型焊缝:1305,端接焊缝:1306,堆焊接头:1307,封底焊缝:1308,角焊缝:1309,塞焊缝或槽焊缝:1310,点焊缝:1311,折叠接口:1312,倾斜接口:1313,"点焊缝(偏移中心)":1314,缝焊缝:1315,"缝焊缝(偏离中心)":1316,陡侧V型坡口堆焊:1317,第一种平面符号:1318,第二种凹面符号:1319,第二种凸面符号:1320,第二种平面符号:1321,第一种凸面符号:1322,第三种平面符号:1323,第一种凹面符号:1324,削平焊缝:1325,趾部平滑过渡:1326,带垫板符号:1327,三面焊缝符号:1328,周围焊接符:1329,现场符号:1330,尾部符号:1331,交错断续焊接符号:1332,喇叭形焊缝:1333,单边喇叭形焊缝:1334,堆焊缝:1335,锁边焊缝:1336,锁边坡口:1337,上:1338,下:1339,无:1340,basicSymbol:1341,auxiliarySymbol:1342,suppleSymbol:1343,specialSymbol:1344,选择要在几何图形上放置的焊缝符号:1345,"焊角宽度:":1346,"单边V型对接焊缝(前视图)":1347,"角焊缝(前视图)":1348,"单边V型对接焊缝(侧视图)":1349,"角焊缝(侧视图)":1350},QT=void 0,$T=void 0,tP={languages:[{name:"zh-CN",title:"中文",active:!0,default:!0},{name:"en-US",title:"英语"},{name:"ko-KR",title:"韩语"},{name:"zh-TW",title:"繁体中文"}],library:!0,debug:!1},eP={"zh-CN":{718:" 指定输出范围第一点:",719:" 指定输出范围第二点:",720:" 指定第一点:",721:" 指定第二点:",722:" 云线框起始点:",723:" 云线框结束点:",724:" 审图标注点:",725:" 点击开启绘制云线:",726:" 再次点击结束绘制云线:",727:"指定一点:",728:"指定二点:",729:"选择对象",730:" 指定下一个点:",731:"\\指定插入基点",732:" 指定表格插入点:",733:"指定插入点:",734:"指定插入基点",735:"选择标注对象",736:"请选择目标文字",737:" 指定填充区域内部一点:",738:"没有找到闭合区域 ",739:"表面粗糙度",740:"焊接符号",741:"形位公差",742:"选择要需要开启自定义属性的对象",743:"选择要隐藏的对象",744:" 指定插入点:",745:" 指定一点:",746:"指定夹角",747:" 指定二点:",748:"选择图案填充对象",749:"指定第一点:",750:"指定第二点:",751:"指定第二个角度点:",752:"指定最后一个点:",753:"指定坐标点:",754:"指定标注点:",755:"请输入审批意见",756:"指定云线框起始点",757:"指定云线框终止点",758:"指定审图标注点",759:"指定第一个角点:",760:"指定第二个角点:",761:"指定序号位置:",762:"旋转符号",763:"标记类型",764:"请选择需要标记的圆:",765:"请设置定位点或直线或圆弧或圆",766:"拖动确定标注位置",767:"请指定或输入角度",768:"焊缝符号",769:"请拾取定位点、直线或圆弧",770:"请指定第二点",771:"请设置定位点",772:"请设置角度",773:"请设置定位点或直线或圆弧",774:"请设置引线转折点",775:"拖动确定定位点",776:"请指定第一点:",777:"请指定第二点:",778:"请选择目标块对象",779:"请输入新块名",780:"选择需要修改基点的块",781:"设置基点",782:"选择需要修改颜色的块",783:"输入颜色索引(0~256)",784:"请选择源块",785:"选择要刷的目标块:",786:"选择连接方式",787:"手动逐个连线",788:"自动批量连线",789:"请选择连线的块",790:"设置中心线长度",791:"选择要旋转的目标块:",792:"设置旋转角度",793:"请设置缩放比例",794:"请设置选择范围:",795:"请选择目标块",796:"请设置统计范围",797:"指定表格插入点:",798:"选择目标曲线",799:"指定长度标注点",800:"选择目标对象",801:"请选择目标斜率对象",802:"请设置标注文字高度",803:"指定斜率标注点",804:"请选择目标坐标点",805:"请指定标注位置",806:"指定起点",807:"指定终点",808:"指定标注方向",809:"请设置文字内容",810:"请选择面积的第一个点",811:"请选择下一个点",812:"请选择面积标注的位置",813:"请选择矩形的角点1",814:"请选择矩形的角点2",815:"请设置面积标注的位置",816:"请选择一个测量点",817:"请选择一条直线",818:"请设置尺寸线的位置",819:"请选择一条弧线",820:"请指定尺寸线位置",821:"请选择一个圆对象",822:"请指定文字位置",823:"请选择直线的端点或弧线",824:"请指定文字的位置",825:"请选择一个连续测量的标注",826:"请选择第二条直线",827:"请设置角度标注的位置",828:" 请输入星形顶点数:",829:" 指定星形中心点:",830:"请设置星形的内半径:",831:" 指定星形的外半径:",832:" 请输入凹凸线宽度<5>",833:" 请输入凹凸线高度<10>",834:"请点击确定起始点",835:"请点击确定终点",836:" 请输入锯齿线宽度<5>",837:" 请输入锯齿线高度<10>",838:" 请输入矩形宽度<5>",839:" 请输入矩形高度<10>",840:"请点击确定矩形中心",841:" 请输入管径<10>",842:" 请输入长出管口长度<5>",843:"请点击确定起点",844:"指定剖管线起点",845:"指定剖管线终点",846:"选择剖管线圆弧方向",847:"左边",848:"右边",849:"选择模式",850:"直线焊缝",851:"弧线焊缝",852:" 请输入焊缝半径<5>",853:"指定圆弧的第二个点",854:"指定圆弧的端点",855:"请输入宽度<25>",856:"请输入高度<15>",857:"请输入楼梯级数<10>",858:"请确定圆心位置 ",859:"请输入圆半径",860:" 请输入保温棉宽度<5>",861:" 请输入保温棉高度<10>",862:"请点击下一个点",863:"请选择第一条线",864:"请选择第二条线",865:"请选择终点",866:"请选择目标矩形",867:"设置指北针中心点",868:"设置指北针半径",869:"选择提示框指向",870:" 指定消息框第一点:",871:" 指定消息框第二点:",872:" 设置消息框指向:",873:"请设置基准符文字",874:"请设置文字高度",875:"请设置基准符位置",876:"请设置定位点或圆弧或直线",877:"请设置符号位置",878:"请设置圆心",879:"请设置齿轮圆心",880:"请设置齿轮半径",881:" 请设置中心线长度10>",882:"请选择第一个圆",883:"请选择第二个圆",884:"请设置矩形左上角点",885:"请设置矩形右下角点",886:"请设置圆角半径",887:"请选择多边形起点",888:"请选择多边形顶点",889:"选择对象:",890:"指定基点",891:"指定第二个点 ",892:"阵列",893:"退出",894:"放弃",895:"输入要进行阵列的项目数 ",896:"选择圆弧对象",897:"选择复制旋转对象:",898:"请指定目标点 ",899:"请指定旋转角度",900:"选择要转成多边形的对象",901:"设置多边形边数",902:" 输入选项",903:"内接于圆",904:"外切于圆",905:"选择要修改颜色的对象",906:"输入颜色索引",907:"隐藏",908:"隐藏未选",909:"全部显示",910:"选择目标的对象",911:" 指定删除方框第一点:",912:" 指定删除方框第二点:",913:" 选择需要精确删除的实体",914:" 请选择角度复制对象",915:" 请输入角度复制数量",916:" 请输入角度复制的基点",917:" 请输入复制角度",918:"请选择顶点对象",919:"请选择复制对象",920:"请确定复制基点",921:"请选择参考曲线",922:"选择打断对象",923:"指定偏移对象",924:"请输入偏移距离",925:"指定伸缩对象(选择直线、多段线、圆弧)",926:"伸缩至",927:"选择要修改线型比例的对象",928:"请输入线型比例",929:"请输入阵列间距",930:"请选择圆弧",931:"选择排列对象",932:"指定排列基点",933:"选择目标多段线:",934:"请输入圆角半径<5>",935:"选择填充对象",936:"请输入填充比例",937:"请选择原填充图形",938:"请点击填充图形内部任意一点",939:"请选择线对象",940:"选择等分模式",941:"定距等分",942:"定数等分",943:"偏移等分",944:"复制等分",945:"请选择偏移等分对象",946:"请选择复制等分对象",947:"请选择需要等分的线段",948:"请设置等分距离",949:"请设置等分的数量",950:"请设置偏移距离",951:"请指定偏移点",952:"请指定复制基点",953:"请指定复制等分数量",954:"请指定复制等分端点",955:"请选择需要矩形缩放的实体:",956:"请指定矩形的角点1",957:"请指定矩形角点2",958:"请选择放大中心点",959:"请选择放大范围",960:"请设置放大倍数",961:"请选择放大插入点",962:"请选择一条需要打断的曲线",963:"请在曲线上选取打断点",964:"请输入阵列数量",965:"是否开启旋转",966:"是",967:"否",968:"请选择需要阵列的图形:",969:"请选择阵列中心点",970:"请选择闭合多边形!",971:"请选择第一个点",972:"请选择第二个点",973:"请选择第一个闭合多边形",974:"请选择第二个闭合多边形",975:"请选择两个闭合多边形",976:"两个多边形没有重合边!",977:"请选择目标多边形",978:"请选择多边形需要添加顶点的边",979:"请设置添加的顶点位置",980:"请选择多边形需要删除的顶点",981:"请选择多边形需要拉伸的边",982:"请指定拉伸位置",983:"请设置图框方向<N>",984:"横向",985:"纵向",986:"请设置图框尺寸<4>",987:"请设置图框位置",988:"指定裁剪角点1",989:"指定裁剪角点2",990:"请设置道路起点",991:"请设置下一点",992:"请选择目标对齐线对象(选择直线)",993:"请选择目标文字对象",994:"选择文字对象",995:"请设置字高",996:"请设置字宽",997:"请选择源文字",998:"请选择第一个文字",999:"请选择第二个文字",1e3:"请选择需要对齐的文字",1001:"请选择对齐方式",1002:"左",1003:"中",1004:"右",1005:"请选择对齐基点",1006:"请选择需要反转的文字",1007:"请选择需要去空格的文字",1008:"请选择文字对象",1009:"请输入下划线宽度 ",1010:"请设置下划线距离 ",1011:"请设置下划线延长距离 ",1012:"请选择操作选项 ",1013:"大写",1014:"小写",1015:"句首大写",1016:"请选择数字对象",1017:"请选择文字插入点 ",1018:"选择要查找的范围:",1019:"请选择查找模式 ",1020:"等于",1021:"包含",1022:"前缀为",1023:"后缀为",1024:"请输入关键字 ",1025:"选择要操作的范围:",1026:"选择操作方式",1027:"添加",1028:"删除",1029:"选择操作位置",1030:"前缀",1031:"后缀",1032:"请输入内容",1033:"请选择文本 ",1034:"请选择圆弧 ",1035:"请选择文字样式",1036:"请设置文字提取范围",1037:"下载开Demo代码",1038:"下载开发包",1039:"调用画圆线命令",1040:"交互画直线",1041:"添加图层",1042:"得到所有图层",1043:"得到所有文字样式",1044:"得到所有图块",1045:"得到所有线型",1046:"写扩展数据",1047:"读扩展数据",1048:"测试插入一个图块",1049:"绘直线",1050:"绘圆弧",1051:"绘圆",1052:"绘PL线",1053:"绘填充",1054:"绘文字",1055:"绘椭圆",1056:"绘椭圆弧",1057:"绘制多行文字",1058:"绘制表格",1059:"绘制二维码",1060:"插入图章",1061:"得到所有对象",1062:"交互选择对象",1063:"保存mxweb到服务器",1064:"得到系统变量",1065:"新建图纸",1066:"白色背景色",1067:"文字查找定位",1068:"选择实体做块",1069:"绘制单行文字",1070:"选点填充",1071:"设置扩展属性",1072:"绘制对齐标注",1073:"绘性线标注",1074:"角度标注",1075:"修改对象线型",1076:"选择隐藏对象层",1077:"添加到当前选择",1078:"视区旋转",1079:"写扩展记录",1080:"得到命名字典",1081:"添加文字样式",1082:"绘自定义实体",1083:"修改对象颜色",1084:"修改对象不可见",1085:"修改对象层",1086:"修改对象显示顺序",1087:"指定范围输出pdf",1088:"绘制image",1089:"读取对象扩展字典",1090:"绘制3DPolyline",1091:"绘线文本自定义实体",1092:"计算交点",1093:"修改文字样式",1094:"偏移输入画线",1095:"创建组",1096:"屏幕截图jpg",1097:"获取图纸相同文字",1098:"指定范围输出dwg",1099:"测试绘制标记圆",1100:"测试Wipeout",1101:"创建剪切块",1102:"公差标注",1103:"改所有对象颜色",1104:"切剪mxweb",1105:"设置当前颜色线重",1106:"查找多边形区域内对象",1107:"打碎对象",1108:"绘半透明线",1109:"添加线型",1110:"修改图案比例",1111:"测试文字编辑",1112:"绘制条形码",1113:"屏幕截图bmp",1114:"修改工具",1115:"文字工具",1116:"绘图工具",1117:"块工具",1118:"测量工具",1119:"标注工具",1120:"其他工具",1121:"多重复制",1122:"弧转圆",1123:"复制旋转",1124:"圆转多边",1125:"修改颜色",1126:"圆弧切角",1127:"临时隐藏",1128:"方框删除",1129:"角度复制",1130:"顶点复制",1131:"交点打断",1132:"双向偏移",1133:"改圆大小",1134:"线型比例",1135:"伸缩",1136:"按弧阵列",1137:"pl圆角",1138:"pl线反向",1139:"得到所有直线对象",1140:"等分",1141:"矩形缩放",1142:"打断",1143:"切割多边形",1144:"合并多边形",1145:"添加多边形顶点",1146:"删除多边形顶点",1147:"多边形单边拉伸",1148:"星形",1149:"凹凸线",1150:"锯齿线",1151:"中心矩形",1152:"圆角矩形",1153:"圆中心线",1154:"管道",1155:"剖管符",1156:"中垂线",1157:"楼梯",1158:"实心圆",1159:"保温棉",1160:"中心线",1161:"开洞",1162:"消息框",1163:"基准符(1)",1164:"焊缝线",1165:"同心圆",1166:"齿轮",1167:"块中心线",1168:"圆公切线",1169:"基准符(2)",1170:"插入图框",1171:"绘制道路",1172:"绘任意多边形",1173:"按线对齐",1174:"改字高",1175:"改字宽",1176:"刷内容",1177:"换内容",1178:"左右对齐",1179:"上下对齐",1180:"文字反转",1181:"文字加框",1182:"下划线",1183:"图名线",1184:"大小写",1185:"数字求和",1186:"选特定字",1187:"前后缀",1188:"连接文字",1189:"去空格",1190:"文字竖向",1191:"按弧对齐",1192:"修改全局文字样式",1193:"提取文字",1194:"文字编号",1195:"改块名",1196:"刷块",1197:"块连线",1198:"改块基点",1199:"改块颜色",1200:"多块旋转",1201:"多块缩放",1202:"刷块角度",1203:"按块选择",1204:"按块全选",1205:"统计单块",1206:"统计多块",1207:"修改块图层",1208:"长度",1209:"统计面积",1210:"智能标高",1211:"面积",1212:"矩形面积",1213:"点到直线的距离",1214:"弧长",1215:"测量圆",1216:"连续测量",1217:"查看分段长度",1218:"面积含弧线",1219:"审图标注",1220:"矩形标注",1221:"粗糙度标注",1222:"坐标标注",1223:"标斜率",1224:"对齐",1225:"局部放大",1226:"序号标注",1227:"旋转标注",1228:"圆孔标记",1229:"向视符号",1230:"射线标注",1231:"矩形标注悬停变色",1232:"裁剪图纸扩展",1233:"箭头直线",1234:"选择的文字",1235:"复制到剪贴板",1236:"取消",1237:"确定",1238:"公差代号",1239:"公差1",1240:"公差2",1241:"附注",1242:"顶端",1243:"底端",1244:"基准",1245:"全周符号",1246:"当前行",1247:"增加行",1248:"删除行",1249:"清零",1250:"直线度",1251:"平面度",1252:"圆度",1253:"圆柱度",1254:"线轮廓度",1255:"面轮廓度",1256:"平行度",1257:"垂直度",1258:"倾斜度",1259:"位置度",1260:"同轴度",1261:"对称度",1262:"圆跳动",1263:"全跳动",1264:"清除",1265:"请输入文本内容和编号:",1266:"文本内容:",1267:"(输入0-20个字)",1268:"起始编号:",1269:"(编号自动递增1)",1270:"编号位置:",1271:"编号在前",1272:"编号在后",1273:"改变方向",1274:"左边文字内容:",1275:"右边文字内容:",1276:"底部文字内容:",1277:"基本符号",1278:"相同要求",1279:"多数符号",1280:"长边加横线",1281:"辅助符号",1282:"补充符号",1283:"符号位置",1284:"特殊符号",1285:"左尺寸",1286:"上尺寸",1287:"右尺寸",1288:"交错焊缝",1289:"间距",1290:"扩充文字",1291:"虚线位置",1292:"焊接说明",1293:"清除行",1294:"卷边焊缝",1295:"I型焊缝",1296:"V型焊缝",1297:"单边V型焊缝",1298:"单边陡侧V型坡口堆焊",1299:"倾斜焊缝",1300:"可移除衬垫",1301:"持久衬垫",1302:"带顿边V型焊缝",1303:"带顿边U型焊缝",1304:"带顿边单边V型焊缝",1305:"带顿边单边U型焊缝",1306:"端接焊缝",1307:"堆焊接头",1308:"封底焊缝",1309:"角焊缝",1310:"塞焊缝或槽焊缝",1311:"点焊缝",1312:"折叠接口",1313:"倾斜接口",1314:"点焊缝(偏移中心)",1315:"缝焊缝",1316:"缝焊缝(偏离中心)",1317:"陡侧V型坡口堆焊",1318:"第一种平面符号",1319:"第二种凹面符号",1320:"第二种凸面符号",1321:"第二种平面符号",1322:"第一种凸面符号",1323:"第三种平面符号",1324:"第一种凹面符号",1325:"削平焊缝",1326:"趾部平滑过渡",1327:"带垫板符号",1328:"三面焊缝符号",1329:"周围焊接符",1330:"现场符号",1331:"尾部符号",1332:"交错断续焊接符号",1333:"喇叭形焊缝",1334:"单边喇叭形焊缝",1335:"堆焊缝",1336:"锁边焊缝",1337:"锁边坡口",1338:"上",1339:"下",1340:"无",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"选择要在几何图形上放置的焊缝符号",1346:"焊角宽度:",1347:"单边V型对接焊缝(前视图)",1348:"角焊缝(前视图)",1349:"单边V型对接焊缝(侧视图)",1350:"角焊缝(侧视图)",1985:"提取表格"},"en-US":()=>c0(()=>Promise.resolve().then(()=>XV),void 0),"ko-KR":()=>c0(()=>Promise.resolve().then(()=>KV),void 0),"zh-TW":()=>c0(()=>Promise.resolve().then(()=>ZV),void 0)},jh=new CT(Bh({id:"mxcad-plugin__1_0_0",idMap:JT,formatters:XT,storage:LT,messages:eP,paragraphs:ZT,component:QT,loader:KT,transform:$T},tP)),nP=jh.t;jh.$t,jh.Translate;const rb=b.ref();jh.on("change",t=>{rb.value=t});const G=(t,...e)=>(rb.value,jh.t(t,...e)),iP=t=>(b.pushScopeId("data-v-a388a3ba"),t=t(),b.popScopeId(),t),rP={key:0,class:"modal-wrapper",id:"modal"},oP={class:"modal-body card"},sP={class:"modal-header"},aP={class:"heading"},lP=[iP(()=>b.createElementVNode("svg",{viewBox:"0 0 24 24"},[b.createElementVNode("path",{d:"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"})],-1))],cP={style:{"overflow-y":"auto",height:"500px"}},uP={class:"btn_box"},hP={class:"btn_box"},dP={class:"btn_box"},pP={class:"btn_box"},fP={class:"btn_box"},mP={class:"btn_box"},gP={class:"btn_box"},yP={class:"btn_box"},xP={class:"btn_box"},vP={class:"btn_box"},_P={class:"btn_box"},bP={class:"btn_box"},MP={class:"btn_box"},wP={class:"btn_box"},AP={class:"btn_box"},EP={class:"btn_box"},TP={class:"btn_box"},PP={class:"btn_box"},SP={class:"btn_box"},CP={class:"btn_box"},DP=b.defineComponent({__name:"Modal",setup(t){const{isModalVisible:e,hideModal:n,modalOptions:r}=If(),s=b.ref(!1);return b.watch(()=>e.value,u=>{u&&(s.value=localStorage.getItem("language")==="en")}),(u,h)=>(b.openBlock(),b.createBlock(b.Teleport,{to:"body"},[b.unref(e)?(b.openBlock(),b.createElementBlock("div",rP,[b.createElementVNode("div",oP,[b.createElementVNode("div",sP,[b.createElementVNode("h2",aP,b.toDisplayString(b.unref(r).title),1),b.createElementVNode("a",{href:"#!",onClick:h[0]||(h[0]=(...o)=>b.unref(n)&&b.unref(n)(...o)),role:"button",class:"close","aria-label":"close this modal"},lP)]),b.createElementVNode("div",cP,[b.createElementVNode("div",uP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[1]||(h[1]=o=>b.unref(r).docommand("Mx_Open_DemoCode"))},b.toDisplayString(b.unref(G)("下载开Demo代码")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[2]||(h[2]=o=>b.unref(r).docommand("Mx_Open_DevInstall"))},b.toDisplayString(b.unref(G)("下载开发包")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[3]||(h[3]=(...o)=>b.unref(r).ondrawline&&b.unref(r).ondrawline(...o))},b.toDisplayString(b.unref(G)("调用画圆线命令")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[4]||(h[4]=o=>b.unref(r).docommand("MxTest_DrawLine"))},b.toDisplayString(b.unref(G)("交互画直线")),3)]),b.createElementVNode("div",hP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[5]||(h[5]=o=>b.unref(r).docommand("MxTest_AddLayer"))},b.toDisplayString(b.unref(G)("添加图层")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[6]||(h[6]=o=>b.unref(r).docommand("MxTest_GetAllLayer"))},b.toDisplayString(b.unref(G)("得到所有图层")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[7]||(h[7]=o=>b.unref(r).docommand("MxTest_GetAllTextStyle"))},b.toDisplayString(b.unref(G)("得到所有文字样式")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[8]||(h[8]=o=>b.unref(r).docommand("MxTest_GetAllBlock"))},b.toDisplayString(b.unref(G)("得到所有图块")),3)]),b.createElementVNode("div",dP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[9]||(h[9]=o=>b.unref(r).docommand("MxTest_GetAllLinetype"))},b.toDisplayString(b.unref(G)("得到所有线型")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[10]||(h[10]=o=>b.unref(r).docommand("MxTest_WritexData"))},b.toDisplayString(b.unref(G)("写扩展数据")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[11]||(h[11]=o=>b.unref(r).docommand("MxTest_ReadxData"))},b.toDisplayString(b.unref(G)("读扩展数据")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[12]||(h[12]=o=>b.unref(r).docommand("MxTest_InsertBlock"))},b.toDisplayString(b.unref(G)("测试插入一个图块")),3)]),b.createElementVNode("div",pP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[13]||(h[13]=o=>b.unref(r).docommand("Mx_Test_DrawLine"))},b.toDisplayString(b.unref(G)("绘直线")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[14]||(h[14]=o=>b.unref(r).docommand("Mx_Test_DrawArc"))},b.toDisplayString(b.unref(G)("绘圆弧")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[15]||(h[15]=o=>b.unref(r).docommand("Mx_Test_DrawCircle"))},b.toDisplayString(b.unref(G)("绘圆")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[16]||(h[16]=o=>b.unref(r).docommand("Mx_Test_DrawPolyline"))},b.toDisplayString(b.unref(G)("绘PL线")),3)]),b.createElementVNode("div",fP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[17]||(h[17]=o=>b.unref(r).docommand("Mx_Test_DrawHatch"))},b.toDisplayString(b.unref(G)("绘填充")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[18]||(h[18]=o=>b.unref(r).docommand("Mx_Test_DrawText"))},b.toDisplayString(b.unref(G)("绘文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[19]||(h[19]=o=>b.unref(r).docommand("Mx_Test_Ellipse"))},b.toDisplayString(b.unref(G)("绘椭圆")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[20]||(h[20]=o=>b.unref(r).docommand("Mx_Test_EllipseArc"))},b.toDisplayString(b.unref(G)("绘椭圆弧")),3)]),b.createElementVNode("div",mP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[21]||(h[21]=o=>b.unref(r).docommand("Mx_Test_MText"))},b.toDisplayString(b.unref(G)("绘制多行文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[22]||(h[22]=o=>b.unref(r).docommand("Mx_Test_DrawTable"))},b.toDisplayString(b.unref(G)("绘制表格")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[23]||(h[23]=o=>b.unref(r).docommand("Mx_Test_QRCode"))},b.toDisplayString(b.unref(G)("绘制二维码")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[24]||(h[24]=o=>b.unref(r).docommand("MxTest_InsertStamp"))},b.toDisplayString(b.unref(G)("插入图章")),3)]),b.createElementVNode("div",gP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[25]||(h[25]=(...o)=>b.unref(r).ongetallentity&&b.unref(r).ongetallentity(...o))},b.toDisplayString(b.unref(G)("得到所有对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[26]||(h[26]=o=>b.unref(r).docommand("MxTest_SelectEntity"))},b.toDisplayString(b.unref(G)("交互选择对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[27]||(h[27]=o=>b.unref(r).docommand("Mx_Export_MxWeb"))},b.toDisplayString(b.unref(G)("保存mxweb到服务器")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[28]||(h[28]=o=>b.unref(r).docommand("MxTest_GetSysVars"))},b.toDisplayString(b.unref(G)("得到系统变量")),3)]),b.createElementVNode("div",yP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[29]||(h[29]=o=>b.unref(r).docommand("MxTest_NewFile"))},b.toDisplayString(b.unref(G)("新建图纸")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[30]||(h[30]=o=>b.unref(r).docommand("Mx_ViewBackgroundColor"))},b.toDisplayString(b.unref(G)("白色背景色")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[31]||(h[31]=o=>b.unref(r).docommand("MxTest_FindText"))},b.toDisplayString(b.unref(G)("文字查找定位")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[32]||(h[32]=o=>b.unref(r).docommand("MxTest_SelectEntitysToBlock"))},b.toDisplayString(b.unref(G)("选择实体做块")),3)]),b.createElementVNode("div",xP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[33]||(h[33]=o=>b.unref(r).docommand("Mx_Test_Text"))},b.toDisplayString(b.unref(G)("绘制单行文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[34]||(h[34]=o=>b.unref(r).docommand("MxTest_DrawHatchFormPoint"))},b.toDisplayString(b.unref(G)("选点填充")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[35]||(h[35]=o=>b.unref(r).docommand("Mx_TestExProp"))},b.toDisplayString(b.unref(G)("设置扩展属性")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[36]||(h[36]=o=>b.unref(r).docommand("Mx_Test_DimAligned"))},b.toDisplayString(b.unref(G)("绘制对齐标注")),3)]),b.createElementVNode("div",vP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[37]||(h[37]=o=>b.unref(r).docommand("Mx_Test_DrawDimRotated"))},b.toDisplayString(b.unref(G)("绘性线标注")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[38]||(h[38]=o=>b.unref(r).docommand("Mx_Test_DrawDimAngular"))},b.toDisplayString(b.unref(G)("角度标注")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[39]||(h[39]=o=>b.unref(r).docommand("MxTest_LineTypeTest"))},b.toDisplayString(b.unref(G)("修改对象线型")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[40]||(h[40]=o=>b.unref(r).docommand("Mx_SelectEntitHideLayer"))},b.toDisplayString(b.unref(G)("选择隐藏对象层")),3)]),b.createElementVNode("div",_P,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[41]||(h[41]=o=>b.unref(r).docommand("MxTest_TestAddCurrentSelect"))},b.toDisplayString(b.unref(G)("添加到当前选择")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[42]||(h[42]=o=>b.unref(r).docommand("MxTest_TestSetViewAngle"))},b.toDisplayString(b.unref(G)("视区旋转")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[43]||(h[43]=o=>b.unref(r).docommand("MxTest_WriteXRecord"))},b.toDisplayString(b.unref(G)("写扩展记录")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[44]||(h[44]=o=>b.unref(r).docommand("MxTest_GetNamedObjectsDictionary"))},b.toDisplayString(b.unref(G)("得到命名字典")),3)]),b.createElementVNode("div",bP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[45]||(h[45]=o=>b.unref(r).docommand("MxTest_AddTextStyleTable"))},b.toDisplayString(b.unref(G)("添加文字样式")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[46]||(h[46]=o=>b.unref(r).docommand("MxTest_DrawCustomEntity"))},b.toDisplayString(b.unref(G)("绘自定义实体")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[47]||(h[47]=o=>b.unref(r).docommand("Mx_Test_ChangeColor"))},b.toDisplayString(b.unref(G)("修改对象颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[48]||(h[48]=o=>b.unref(r).docommand("Mx_Test_ChangeVisible"))},b.toDisplayString(b.unref(G)("修改对象不可见")),3)]),b.createElementVNode("div",MP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[49]||(h[49]=o=>b.unref(r).docommand("Mx_Test_ChangeEntityLayer"))},b.toDisplayString(b.unref(G)("修改对象层")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[50]||(h[50]=o=>b.unref(r).docommand("Mx_ChaneEntityDrawOrder"))},b.toDisplayString(b.unref(G)("修改对象显示顺序")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[51]||(h[51]=o=>b.unref(r).docommand("Mx_Export_Pdf"))},b.toDisplayString(b.unref(G)("指定范围输出pdf")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[52]||(h[52]=o=>b.unref(r).docommand("Mx_Test_DrawImage"))},b.toDisplayString(b.unref(G)("绘制image")),3)]),b.createElementVNode("div",wP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[53]||(h[53]=o=>b.unref(r).docommand("MxTest_GetObjectExDictionaryData"))},b.toDisplayString(b.unref(G)("读取对象扩展字典")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[54]||(h[54]=o=>b.unref(r).docommand("Mx_Test_Draw3DPolyline"))},b.toDisplayString(b.unref(G)("绘制3DPolyline")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[55]||(h[55]=o=>b.unref(r).docommand("MxTest_LineText"))},b.toDisplayString(b.unref(G)("绘线文本自定义实体")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[56]||(h[56]=o=>b.unref(r).docommand("Mx_Test_IntersectWith"))},b.toDisplayString(b.unref(G)("计算交点")),3)]),b.createElementVNode("div",AP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[57]||(h[57]=o=>b.unref(r).docommand("Mx_Test_TrueText"))},b.toDisplayString(b.unref(G)("修改文字样式")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[58]||(h[58]=o=>b.unref(r).docommand("Mx_Test_OffsetIn_DrawLine"))},b.toDisplayString(b.unref(G)("偏移输入画线")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[59]||(h[59]=o=>b.unref(r).docommand("Mx_Test_CreateGroup"))},b.toDisplayString(b.unref(G)("创建组")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[60]||(h[60]=o=>b.unref(r).docommand("Mx_ScreenToJpg"))},b.toDisplayString(b.unref(G)("屏幕截图jpg")),3)]),b.createElementVNode("div",EP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[61]||(h[61]=o=>b.unref(r).docommand("Mx_Test_GetText"))},b.toDisplayString(b.unref(G)("获取图纸相同文字")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[62]||(h[62]=o=>b.unref(r).docommand("Mx_Cut_Dwg"))},b.toDisplayString(b.unref(G)("指定范围输出dwg")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[63]||(h[63]=o=>b.unref(r).docommand("Mx_Test_DrawMarkCircle"))},b.toDisplayString(b.unref(G)("测试绘制标记圆")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[64]||(h[64]=o=>b.unref(r).docommand("Mx_Test_Wipeout"))},b.toDisplayString(b.unref(G)("测试Wipeout")),3)]),b.createElementVNode("div",TP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[65]||(h[65]=o=>b.unref(r).docommand("MxTest_SelectEntitysToSpatialFilterBlock"))},b.toDisplayString(b.unref(G)("创建剪切块")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[66]||(h[66]=o=>b.unref(r).docommand("Mx_Test_DrawDimRotatedTol"))},b.toDisplayString(b.unref(G)("公差标注")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[67]||(h[67]=o=>b.unref(r).docommand("MxTest_ModifyAllEntityColor"))},b.toDisplayString(b.unref(G)("改所有对象颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[68]||(h[68]=o=>b.unref(r).docommand("Mx_Cut_MxWeb"))},b.toDisplayString(b.unref(G)("切剪mxweb")),3)]),b.createElementVNode("div",PP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[69]||(h[69]=o=>b.unref(r).docommand("Mx_Test_SetCurrentlyDraw"))},b.toDisplayString(b.unref(G)("设置当前颜色线重")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[70]||(h[70]=o=>b.unref(r).docommand("Mx_Test_FindPolygonEntitys"))},b.toDisplayString(b.unref(G)("查找多边形区域内对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[71]||(h[71]=o=>b.unref(r).docommand("MxTest_Explode"))},b.toDisplayString(b.unref(G)("打碎对象")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[72]||(h[72]=o=>b.unref(r).docommand("Mx_Test_DrawTransparencyLine"))},b.toDisplayString(b.unref(G)("绘半透明线")),3)]),b.createElementVNode("div",SP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[73]||(h[73]=o=>b.unref(r).docommand("MxTest_LineRecord"))},b.toDisplayString(b.unref(G)("添加线型")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[74]||(h[74]=o=>b.unref(r).docommand("MxTest_ModifyPatternScale"))},b.toDisplayString(b.unref(G)("修改图案比例")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[75]||(h[75]=o=>b.unref(r).docommand("Mx_DrawEditorEntity"))},b.toDisplayString(b.unref(G)("测试文字编辑")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[76]||(h[76]=o=>b.unref(r).docommand("Mx_TestDrawBarCode"))},b.toDisplayString(b.unref(G)("绘制条形码")),3)]),b.createElementVNode("div",CP,[b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[77]||(h[77]=o=>b.unref(r).docommand("Mx_TestdrawQrCode"))},b.toDisplayString(b.unref(G)("绘制二维码")),3),b.createElementVNode("button",{class:b.normalizeClass(s.value?"button button2 btnEn":"button button2"),onClick:h[78]||(h[78]=o=>b.unref(r).docommand("Mx_ScreenToBmp"))},b.toDisplayString(b.unref(G)("屏幕截图bmp")),3)])])])])):b.createCommentVNode("",!0)]))}}),kO="",zo=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},RP=zo(DP,[["__scopeId","data-v-a388a3ba"],["__file","Modal.vue"]]),ob=t=>(b.pushScopeId("data-v-591b8da1"),t=t(),b.popScopeId(),t),LP={key:0,class:"modal-wrapper",id:"modal"},IP={class:"modal-body card"},kP={class:"modal-header"},BP={class:"heading"},FP=[ob(()=>b.createElementVNode("svg",{viewBox:"0 0 24 24"},[b.createElementVNode("path",{d:"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"})],-1))],zP={style:{"border-bottom":"2px solid #008CBA","margin-bottom":"8px",display:"flex","flex-wrap":"wrap"}},NP=["onClick"],UP={style:{"overflow-y":"auto",height:"500px"}},VP={class:"btn_box"},GP={class:"btn_box"},OP={class:"btn_box"},jP={class:"btn_box"},HP={class:"btn_box"},WP={class:"btn_box"},qP={class:"btn_box"},YP={style:{"overflow-y":"auto",height:"500px"}},XP={class:"btn_box"},KP={class:"btn_box"},ZP={class:"btn_box"},JP={class:"btn_box"},QP={class:"btn_box"},$P={class:"btn_box"},tS={class:"btn_box"},eS={style:{"overflow-y":"auto",height:"500px"}},nS={class:"btn_box"},iS={class:"btn_box"},rS={class:"btn_box"},oS={class:"btn_box"},sS={class:"btn_box"},aS={class:"btn_box"},lS={style:{"overflow-y":"auto",height:"500px"}},cS={class:"btn_box"},uS={class:"btn_box"},hS={class:"btn_box"},dS={class:"btn_box"},pS={style:{"overflow-y":"auto",height:"500px"}},fS={class:"btn_box"},mS={class:"btn_box"},gS={class:"btn_box"},yS={style:{"overflow-y":"auto",height:"500px"}},xS={class:"btn_box"},vS={class:"btn_box"},_S={class:"btn_box"},bS={class:"btn_box"},MS={style:{"overflow-y":"auto",height:"500px"}},wS={class:"btn_box"},AS=[ob(()=>b.createElementVNode("svg",{viewBox:"0 0 24 24"},[b.createElementVNode("path",{d:"M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"})],-1))],ES={class:"btnBox"},TS=b.defineComponent({__name:"Tools",setup(t){const{isToolsVisible:e,hideModal:n,modalOptions:r,isDialogVisible:s,excelText:u,copyTextToClipboard:h}=If(),o=b.ref("fit"),{store:m}=MxPluginContext,{setCommandFocus:y}=m.useFocus(),x=b.ref(null),M=T=>{const P=x.value,D=T.clientX-P.offsetLeft,k=T.clientY-P.offsetTop,z=O=>{P.style.left=O.clientX-D+"px",P.style.top=O.clientY-k+"px"};document.addEventListener("mousemove",z),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",z)})},A=b.ref(!1);return b.watch(()=>e.value,T=>{T&&(A.value=localStorage.getItem("language")==="en")}),(T,P)=>(b.openBlock(),b.createBlock(b.Teleport,{to:"body"},[b.unref(e)?(b.openBlock(),b.createElementBlock("div",LP,[b.createElementVNode("div",IP,[b.createElementVNode("div",kP,[b.createElementVNode("h2",BP,b.toDisplayString(b.unref(r).title),1),b.createElementVNode("a",{href:"#!",onClick:P[0]||(P[0]=(...D)=>b.unref(n)&&b.unref(n)(...D)),role:"button",class:"close","aria-label":"close this modal"},FP)]),b.createElementVNode("div",zP,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList([{name:b.unref(G)("修改工具"),id:"fit"},{name:b.unref(G)("文字工具"),id:"text"},{name:b.unref(G)("绘图工具"),id:"draw"},{name:b.unref(G)("块工具"),id:"block"},{name:b.unref(G)("测量工具"),id:"count"},{name:b.unref(G)("标注工具"),id:"dimension"},{name:b.unref(G)("其他工具"),id:"other"}],D=>(b.openBlock(),b.createElementBlock("button",{key:D.id,onClick:()=>{o.value=D.id},class:b.normalizeClass(o.value===D.id?"btn btn2":"btn"),style:b.normalizeStyle(A.value?"font-size:var(--mx-font-size)":"")},b.toDisplayString(D.name),15,NP))),128))]),b.withDirectives(b.createElementVNode("div",UP,[b.createElementVNode("div",VP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[1]||(P[1]=D=>b.unref(r).docommand("Mx_Multicopy"))},b.toDisplayString(b.unref(G)("多重复制")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[2]||(P[2]=D=>b.unref(r).docommand("Mx_ArcToCircle"))},b.toDisplayString(b.unref(G)("弧转圆")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[3]||(P[3]=D=>b.unref(r).docommand("Mx_CopyRotation"))},b.toDisplayString(b.unref(G)("复制旋转")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[4]||(P[4]=D=>b.unref(r).docommand("Mx_CricleTotoll"))},b.toDisplayString(b.unref(G)("圆转多边")),3)]),b.createElementVNode("div",GP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[5]||(P[5]=D=>b.unref(r).docommand("Mx_ChangeColor"))},b.toDisplayString(b.unref(G)("修改颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[6]||(P[6]=D=>b.unref(r).docommand("Mx_ArcToAngle"))},b.toDisplayString(b.unref(G)("圆弧切角")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[7]||(P[7]=D=>b.unref(r).docommand("Mx_TemHiding"))},b.toDisplayString(b.unref(G)("临时隐藏")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[8]||(P[8]=D=>b.unref(r).docommand("Mx_BoxDel"))},b.toDisplayString(b.unref(G)("方框删除")),3)]),b.createElementVNode("div",OP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[9]||(P[9]=D=>b.unref(r).docommand("Mx_AngleCopy"))},b.toDisplayString(b.unref(G)("角度复制")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[10]||(P[10]=D=>b.unref(r).docommand("Mx_VertexRep"))},b.toDisplayString(b.unref(G)("顶点复制")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[11]||(P[11]=D=>b.unref(r).docommand("Mx_IntersectBreak"))},b.toDisplayString(b.unref(G)("交点打断")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[12]||(P[12]=D=>b.unref(r).docommand("Mx_DoubleOff"))},b.toDisplayString(b.unref(G)("双向偏移")),3)]),b.createElementVNode("div",jP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[13]||(P[13]=D=>b.unref(r).docommand("Mx_EitCircle"))},b.toDisplayString(b.unref(G)("改圆大小")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[14]||(P[14]=D=>b.unref(r).docommand("Mx_LayerTypeScale"))},b.toDisplayString(b.unref(G)("线型比例")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[15]||(P[15]=D=>b.unref(r).docommand("Mx_Telescoping"))},b.toDisplayString(b.unref(G)("伸缩")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[16]||(P[16]=D=>b.unref(r).docommand("Mx_ArcOrder"))},b.toDisplayString(b.unref(G)("按弧阵列")),3)]),b.createElementVNode("div",HP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[17]||(P[17]=D=>b.unref(r).docommand("Mx_PlRoundCorners"))},b.toDisplayString(b.unref(G)("pl圆角")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[18]||(P[18]=D=>b.unref(r).docommand("Mx_PlReverse"))},b.toDisplayString(b.unref(G)("pl线反向")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[19]||(P[19]=D=>b.unref(r).docommand("Mx_TestGetAllLineByLayer"))},b.toDisplayString(b.unref(G)("得到所有直线对象")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[20]||(P[20]=D=>b.unref(r).docommand("Mx_Bisection"))},b.toDisplayString(b.unref(G)("等分")),3)]),b.createElementVNode("div",WP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[21]||(P[21]=D=>b.unref(r).docommand("Mx_RectangularScaling"))},b.toDisplayString(b.unref(G)("矩形缩放")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[22]||(P[22]=D=>b.unref(r).docommand("Mx_Interrupt"))},b.toDisplayString(b.unref(G)("打断")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[23]||(P[23]=D=>b.unref(r).docommand("Mx_PolygonClipping"))},b.toDisplayString(b.unref(G)("切割多边形")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[24]||(P[24]=D=>b.unref(r).docommand("Mx_MergePolygons"))},b.toDisplayString(b.unref(G)("合并多边形")),3)]),b.createElementVNode("div",qP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[25]||(P[25]=D=>b.unref(r).docommand("Mx_AddVertex"))},b.toDisplayString(b.unref(G)("添加多边形顶点")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[26]||(P[26]=D=>b.unref(r).docommand("Mx_DeleteVertex"))},b.toDisplayString(b.unref(G)("删除多边形顶点")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[27]||(P[27]=D=>b.unref(r).docommand("Mx_StretchPolygon"))},b.toDisplayString(b.unref(G)("多边形单边拉伸")),3)])],512),[[b.vShow,o.value==="fit"]]),b.withDirectives(b.createElementVNode("div",YP,[b.createElementVNode("div",XP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[28]||(P[28]=D=>b.unref(r).docommand("Mx_DrawStart"))},b.toDisplayString(b.unref(G)("星形")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[29]||(P[29]=D=>b.unref(r).docommand("Mx_ConcavoVex"))},b.toDisplayString(b.unref(G)("凹凸线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[30]||(P[30]=D=>b.unref(r).docommand("Mx_ZigzagLine"))},b.toDisplayString(b.unref(G)("锯齿线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[31]||(P[31]=D=>b.unref(r).docommand("Mx_CenterRect"))},b.toDisplayString(b.unref(G)("中心矩形")),3)]),b.createElementVNode("div",KP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[32]||(P[32]=D=>b.unref(r).docommand("Mx_RREC"))},b.toDisplayString(b.unref(G)("圆角矩形")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[33]||(P[33]=D=>b.unref(r).docommand("Mx_CCLine"))},b.toDisplayString(b.unref(G)("圆中心线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[34]||(P[34]=D=>b.unref(r).docommand("Mx_Piping"))},b.toDisplayString(b.unref(G)("管道")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[35]||(P[35]=D=>b.unref(r).docommand("Mx_CutPipeline"))},b.toDisplayString(b.unref(G)("剖管符")),3)]),b.createElementVNode("div",ZP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[36]||(P[36]=D=>b.unref(r).docommand("Mx_PerpLine"))},b.toDisplayString(b.unref(G)("中垂线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[37]||(P[37]=D=>b.unref(r).docommand("Mx_StairLine"))},b.toDisplayString(b.unref(G)("楼梯")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[38]||(P[38]=D=>b.unref(r).docommand("Mx_SolidCircle"))},b.toDisplayString(b.unref(G)("实心圆")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[39]||(P[39]=D=>b.unref(r).docommand("Mx_CottonInsulation"))},b.toDisplayString(b.unref(G)("保温棉")),3)]),b.createElementVNode("div",JP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[40]||(P[40]=D=>b.unref(r).docommand("Mx_CenterLine"))},b.toDisplayString(b.unref(G)("中心线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[41]||(P[41]=D=>b.unref(r).docommand("Mx_DoHole"))},b.toDisplayString(b.unref(G)("开洞")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[42]||(P[42]=D=>b.unref(r).docommand("Mx_MassegeBox"))},b.toDisplayString(b.unref(G)("消息框")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[43]||(P[43]=D=>b.unref(r).docommand("Mx_DatumSymbol"))},b.toDisplayString(b.unref(G)("基准符(1)")),3)]),b.createElementVNode("div",QP,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[44]||(P[44]=D=>b.unref(r).docommand("Mx_WelLine"))},b.toDisplayString(b.unref(G)("焊缝线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[45]||(P[45]=D=>b.unref(r).docommand("Mx_ConcentricCircles"))},b.toDisplayString(b.unref(G)("同心圆")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[46]||(P[46]=D=>b.unref(r).docommand("Mx_Gear"))},b.toDisplayString(b.unref(G)("齿轮")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[47]||(P[47]=D=>b.unref(r).docommand("Mx_BlkCenterLine"))},b.toDisplayString(b.unref(G)("块中心线")),3)]),b.createElementVNode("div",$P,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[48]||(P[48]=D=>b.unref(r).docommand("Mx_RoundCutPublicLine"))},b.toDisplayString(b.unref(G)("圆公切线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[49]||(P[49]=D=>b.unref(r).docommand("Mx_DatumSymbol2"))},b.toDisplayString(b.unref(G)("基准符(2)")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[50]||(P[50]=D=>b.unref(r).docommand("Mx_InsterFrame"))},b.toDisplayString(b.unref(G)("插入图框")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[51]||(P[51]=D=>b.unref(r).docommand("Mx_drawRoads"))},b.toDisplayString(b.unref(G)("绘制道路")),3)]),b.createElementVNode("div",tS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[52]||(P[52]=D=>b.unref(r).docommand("Mx_DrawPolygon"))},b.toDisplayString(b.unref(G)("绘任意多边形")),3)])],512),[[b.vShow,o.value==="draw"]]),b.withDirectives(b.createElementVNode("div",eS,[b.createElementVNode("div",nS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[53]||(P[53]=D=>b.unref(r).docommand("Mx_AlignByLine"))},b.toDisplayString(b.unref(G)("按线对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[54]||(P[54]=D=>b.unref(r).docommand("Mx_TextHeight"))},b.toDisplayString(b.unref(G)("改字高")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[55]||(P[55]=D=>b.unref(r).docommand("Mx_TextWidth"))},b.toDisplayString(b.unref(G)("改字宽")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[56]||(P[56]=D=>b.unref(r).docommand("Mx_BrushCon"))},b.toDisplayString(b.unref(G)("刷内容")),3)]),b.createElementVNode("div",iS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[57]||(P[57]=D=>b.unref(r).docommand("Mx_ReplaceCon"))},b.toDisplayString(b.unref(G)("换内容")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[58]||(P[58]=D=>b.unref(r).docommand("Mx_AlignLeft"))},b.toDisplayString(b.unref(G)("左右对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[59]||(P[59]=D=>b.unref(r).docommand("Mx_AlignUp"))},b.toDisplayString(b.unref(G)("上下对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[60]||(P[60]=D=>b.unref(r).docommand("Mx_TextReversal"))},b.toDisplayString(b.unref(G)("文字反转")),3)]),b.createElementVNode("div",rS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[61]||(P[61]=D=>b.unref(r).docommand("Mx_TextTraming"))},b.toDisplayString(b.unref(G)("文字加框")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[62]||(P[62]=D=>b.unref(r).docommand("Mx_Underline"))},b.toDisplayString(b.unref(G)("下划线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[63]||(P[63]=D=>b.unref(r).docommand("Mx_TitleLine"))},b.toDisplayString(b.unref(G)("图名线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[64]||(P[64]=D=>b.unref(r).docommand("Mx_Case"))},b.toDisplayString(b.unref(G)("大小写")),3)]),b.createElementVNode("div",oS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[65]||(P[65]=D=>b.unref(r).docommand("Mx_NumSum"))},b.toDisplayString(b.unref(G)("数字求和")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[66]||(P[66]=D=>b.unref(r).docommand("Mx_SSWords"))},b.toDisplayString(b.unref(G)("选特定字")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[67]||(P[67]=D=>b.unref(r).docommand("Mx_Prefix"))},b.toDisplayString(b.unref(G)("前后缀")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[68]||(P[68]=D=>b.unref(r).docommand("Mx_ConnectText"))},b.toDisplayString(b.unref(G)("连接文字")),3)]),b.createElementVNode("div",sS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[69]||(P[69]=D=>b.unref(r).docommand("Mx_TextTrim"))},b.toDisplayString(b.unref(G)("去空格")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[70]||(P[70]=D=>b.unref(r).docommand("Mx_VerticalText"))},b.toDisplayString(b.unref(G)("文字竖向")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[71]||(P[71]=D=>b.unref(r).docommand("Mx_AlignByArc"))},b.toDisplayString(b.unref(G)("按弧对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[72]||(P[72]=D=>b.unref(r).docommand("Mx_EditTextStyle"))},b.toDisplayString(b.unref(G)("修改全局文字样式")),3)]),b.createElementVNode("div",aS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[73]||(P[73]=D=>b.unref(r).docommand("Mx_ExtractText"))},b.toDisplayString(b.unref(G)("提取文字")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[74]||(P[74]=D=>b.unref(r).docommand("Mx_NumberText"))},b.toDisplayString(b.unref(G)("文字编号")),3)])],512),[[b.vShow,o.value==="text"]]),b.withDirectives(b.createElementVNode("div",lS,[b.createElementVNode("div",cS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[75]||(P[75]=D=>b.unref(r).docommand("Mx_ChangeBN"))},b.toDisplayString(b.unref(G)("改块名")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[76]||(P[76]=D=>b.unref(r).docommand("Mx_BushBlk"))},b.toDisplayString(b.unref(G)("刷块")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[77]||(P[77]=D=>b.unref(r).docommand("Mx_ConBlk"))},b.toDisplayString(b.unref(G)("块连线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[78]||(P[78]=D=>b.unref(r).docommand("Mx_BlkCenterLine"))},b.toDisplayString(b.unref(G)("块中心线")),3)]),b.createElementVNode("div",uS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[79]||(P[79]=D=>b.unref(r).docommand("Mx_BlkPt"))},b.toDisplayString(b.unref(G)("改块基点")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[80]||(P[80]=D=>b.unref(r).docommand("Mx_BlkColor"))},b.toDisplayString(b.unref(G)("改块颜色")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[81]||(P[81]=D=>b.unref(r).docommand("Mx_BlkRotate"))},b.toDisplayString(b.unref(G)("多块旋转")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[82]||(P[82]=D=>b.unref(r).docommand("Mx_BlkScale"))},b.toDisplayString(b.unref(G)("多块缩放")),3)]),b.createElementVNode("div",hS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[83]||(P[83]=D=>b.unref(r).docommand("Mx_BlkAngle"))},b.toDisplayString(b.unref(G)("刷块角度")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[84]||(P[84]=D=>b.unref(r).docommand("Mx_BlkSelect"))},b.toDisplayString(b.unref(G)("按块选择")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[85]||(P[85]=D=>b.unref(r).docommand("Mx_BlkAllSelect"))},b.toDisplayString(b.unref(G)("按块全选")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[86]||(P[86]=D=>b.unref(r).docommand("Mx_SSBlk"))},b.toDisplayString(b.unref(G)("统计单块")),3)]),b.createElementVNode("div",dS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[87]||(P[87]=D=>b.unref(r).docommand("Mx_SMBlk"))},b.toDisplayString(b.unref(G)("统计多块")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[88]||(P[88]=D=>b.unref(r).docommand("Mx_BlkLayer"))},b.toDisplayString(b.unref(G)("修改块图层")),3)])],512),[[b.vShow,o.value==="block"]]),b.withDirectives(b.createElementVNode("div",pS,[b.createElementVNode("div",fS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[89]||(P[89]=D=>b.unref(r).docommand("Mx_StaLength"))},b.toDisplayString(b.unref(G)("长度")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[90]||(P[90]=D=>b.unref(r).docommand("Mx_StaArea"))},b.toDisplayString(b.unref(G)("统计面积")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[91]||(P[91]=D=>b.unref(r).docommand("Mx_Elevation"))},b.toDisplayString(b.unref(G)("智能标高")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[92]||(P[92]=D=>b.unref(r).docommand("Mx_Area"))},b.toDisplayString(b.unref(G)("面积")),3)]),b.createElementVNode("div",mS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[93]||(P[93]=D=>b.unref(r).docommand("Mx_ReactArea"))},b.toDisplayString(b.unref(G)("矩形面积")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[94]||(P[94]=D=>b.unref(r).docommand("Mx_DistFromPointToLine"))},b.toDisplayString(b.unref(G)("点到直线的距离")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[95]||(P[95]=D=>b.unref(r).docommand("Mx_ArcLength"))},b.toDisplayString(b.unref(G)("弧长")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[96]||(P[96]=D=>b.unref(r).docommand("Mx_MeasuringCircle"))},b.toDisplayString(b.unref(G)("测量圆")),3)]),b.createElementVNode("div",gS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[97]||(P[97]=D=>b.unref(r).docommand("Mx_ContinueMeasurement"))},b.toDisplayString(b.unref(G)("连续测量")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[98]||(P[98]=D=>b.unref(r).docommand("Mx_CountList"))},b.toDisplayString(b.unref(G)("查看分段长度")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[99]||(P[99]=D=>b.unref(r).docommand("Mx_AreaArc"))},b.toDisplayString(b.unref(G)("面积含弧线")),3)])],512),[[b.vShow,o.value==="count"]]),b.withDirectives(b.createElementVNode("div",yS,[b.createElementVNode("div",xS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[100]||(P[100]=D=>b.unref(r).docommand("Mx_Approval"))},b.toDisplayString(b.unref(G)("审图标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[101]||(P[101]=D=>b.unref(r).docommand("Mx_AnnotatedRectangle"))},b.toDisplayString(b.unref(G)("矩形标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[102]||(P[102]=D=>b.unref(r).docommand("Mx_Roughness"))},b.toDisplayString(b.unref(G)("粗糙度标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[103]||(P[103]=D=>b.unref(r).docommand("Mx_CoordAnnotation"))},b.toDisplayString(b.unref(G)("坐标标注")),3)]),b.createElementVNode("div",vS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[104]||(P[104]=D=>b.unref(r).docommand("Mx_StandardSlope"))},b.toDisplayString(b.unref(G)("标斜率")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[105]||(P[105]=D=>b.unref(r).docommand("Mx_Alignment"))},b.toDisplayString(b.unref(G)("对齐")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[106]||(P[106]=D=>b.unref(r).docommand("Mx_Enlarge"))},b.toDisplayString(b.unref(G)("局部放大")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[107]||(P[107]=D=>b.unref(r).docommand("Mx_indexSymbol"))},b.toDisplayString(b.unref(G)("序号标注")),3)]),b.createElementVNode("div",_S,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[108]||(P[108]=D=>b.unref(r).docommand("Mx_RotationLabel"))},b.toDisplayString(b.unref(G)("旋转标注")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[109]||(P[109]=D=>b.unref(r).docommand("Mx_RoundHoleMark"))},b.toDisplayString(b.unref(G)("圆孔标记")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[110]||(P[110]=D=>b.unref(r).docommand("Mx_weldSymbol"))},b.toDisplayString(b.unref(G)("焊缝符号")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[111]||(P[111]=D=>b.unref(r).docommand("Mx_DirectionaSymbol"))},b.toDisplayString(b.unref(G)("向视符号")),3)]),b.createElementVNode("div",bS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[112]||(P[112]=D=>b.unref(r).docommand("Mx_WeldingSymbol"))},b.toDisplayString(b.unref(G)("焊接符号")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[113]||(P[113]=D=>b.unref(r).docommand("Mx_Test_DrawGT"))},b.toDisplayString(b.unref(G)("形位公差")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[114]||(P[114]=D=>b.unref(r).docommand("MxTest_DrawRayAnnotation"))},b.toDisplayString(b.unref(G)("射线标注")),3)])],512),[[b.vShow,o.value==="dimension"]]),b.withDirectives(b.createElementVNode("div",MS,[b.createElementVNode("div",wS,[b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[115]||(P[115]=D=>b.unref(r).docommand("Mx_ReactChangeColor"))},b.toDisplayString(b.unref(G)("矩形标注悬停变色")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[116]||(P[116]=D=>b.unref(r).docommand("Mx_Cut_MxWebToFile"))},b.toDisplayString(b.unref(G)("裁剪图纸扩展")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[117]||(P[117]=D=>b.unref(r).docommand("MxTest_DrawArrowLine"))},b.toDisplayString(b.unref(G)("箭头直线")),3),b.createElementVNode("button",{class:b.normalizeClass(A.value?"button button2 btnEn":"button button2"),onClick:P[118]||(P[118]=D=>b.unref(r).docommand("Mx_GetTable"))},b.toDisplayString(b.unref(G)("提取表格")),3)])],512),[[b.vShow,o.value==="other"]])])])):b.createCommentVNode("",!0),b.unref(s)?(b.openBlock(),b.createElementBlock("div",{key:1,class:"textBox",ref_key:"model",ref:x},[b.createElementVNode("div",{class:"header",onMousedown:M},[b.createElementVNode("span",null,b.toDisplayString(b.unref(G)("选择的文字")),1),b.createElementVNode("a",{href:"#!",onClick:P[119]||(P[119]=D=>s.value=!1),role:"button",class:"close","aria-label":"close this modal"},AS)],32),b.withDirectives(b.createElementVNode("textarea",{rows:"20",cols:"50",onFocus:P[120]||(P[120]=()=>b.unref(y)(!1)),onBlur:P[121]||(P[121]=()=>b.unref(y)(!0)),"onUpdate:modelValue":P[122]||(P[122]=D=>b.isRef(u)?u.value=D:null)},null,544),[[b.vModelText,b.unref(u)]]),b.createElementVNode("div",ES,[b.createElementVNode("button",{onClick:P[123]||(P[123]=(...D)=>b.unref(h)&&b.unref(h)(...D))},b.toDisplayString(b.unref(G)("复制到剪贴板")),1)])],512)):b.createCommentVNode("",!0)]))}}),zO="",PS=zo(TS,[["__scopeId","data-v-591b8da1"],["__file","Tools.vue"]]),SS=zo(b.defineComponent({__name:"Test",setup(t){return(e,n)=>(b.openBlock(),b.createElementBlock("div",null,[b.createVNode(RP),b.createVNode(PS)]))}}),[["__file","Test.vue"]]),CS={init(){$.MxFun.setPostMessageToParentFrameFunction(function(t){top.postMessage(t,"*")}),window.addEventListener("message",function(t){t.data.type==="sendStringToExecute"?$.MxFun.sendStringToExecute(t.data.cmd,t.data):(console.log("mx:unprocessed message:"),console.log(t.data))},!1)}};function DS(){CS.init()}function RS(){return Gt(this,null,function*(){const t=new $.MrxDbgUiPrPoint;t.setMessage(G(" 指定第一点:")),t.go(e=>{if(e!=0)return;const n=t.value();let r=new $.MxDbLeadComment;r.point1=n.clone(),r.textHeight=$.MxFun.screenCoordLong2Doc(50),r.text="测试Test1",r.textWidth=$.MxFun.screenCoordLong2Doc(300),r.fixedSize=!0,r.fixedSize&&(r.textHeight=50,r.textWidth=250),r.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor();const s=new $.McEdGetPointWorldDrawObject;s.setDraw((u,h)=>{r.point2=u,h.drawCustomEntity(r)}),t.setBasePt(n),t.setUseBasePt(!0),t.setUserDraw(s),t.setMessage(G(" 指定第二点:")),t.go(u=>{if(u!=0){console.log(u);return}const h=t.value();r.point2=h,$.MxFun.addToCurrentSpace(r)})})})}function LS(){$.MxFun.getCurrentDraw().createCanvasImageData(t=>{const e=window.open();e!=null&&(e.document.write('<img src="'+t+'"/>'),setTimeout(()=>{e.print()},300))},{width:349,height:536})}function IS(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor();const e=new $.MrxDbgUiPrPoint,n=$.MxFun.getCurrentDraw(),r=new $.McEdGetPointWorldDrawObject,s=new $.MxDbRectBoxLeadComment;s.color=t.getHex(),s.color==0&&(s.color=65793),s.radius=$.MxFun.screenCoordLong2Doc(8),s.setLineWidth(3),s.setLineWidthByPixels(!0),e.setMessage(G(" 云线框起始点:")),e.go(u=>{u==$.MrxDbgUiPrBaseReturn.kOk&&(s.point1=e.value(),r.setDraw(h=>{s.point2=h,r.drawCustomEntity(s)}),e.setUserDraw(r),e.setMessage(G(" 云线框结束点:")),e.go(h=>{h==$.MrxDbgUiPrBaseReturn.kOk&&(s.point2=e.value(),r.setDraw(o=>{s.point3=o,r.drawCustomEntity(s)}),s.text="审图批注XXXXXXXXXX",s.textWidth=$.MxFun.screenCoordLong2Doc(200),s.textHeight=$.MxFun.screenCoordLong2Doc(50),s.fixedSize=!0,s.fixedSize&&(s.textHeight=20,s.textWidth=230),e.setMessage(G(" 审图标注点:")),e.go(o=>{o==$.MrxDbgUiPrBaseReturn.kOk&&(s.point3=e.value(),n.addMxEntity(s))}))}))})})}function R0(t,e){let n=$.MxFun.screenCoordLong2World(e?t:t-t/3);return n=$.MxFun.worldCoordLong2Doc(n),n}function kS(){const t=new $.McEdGetPointWorldDrawObject,e=new $.MxDbArrow,n=$.MxFun.getCurrentDraw(),r=new $.MrxDbgUiPrPoint;r.setUserDraw(t),e.setLineWidth(10),e.innerOffset=R0(10),e.outerOffset=R0(22),e.topOffset=R0(36),e.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),r.go(()=>{e.startPoint=r.value(),t.setDraw(s=>{e.endPoint=s,t.drawCustomEntity(e)}),r.go(s=>Gt(this,null,function*(){e.endPoint=r.value(),n.addMxEntity(e)}))})}function BS(){const t=new $.MrxDbgUiPrPoint,e=$.MxFun.getCurrentDraw(),n=new $.McEdGetPointWorldDrawObject,r=$.MxFun.screenCoordLong2Doc(16);t.setMessage(G(" 点击开启绘制云线:")),t.go(()=>{let s=t.value();const u=new $.MxDbCloudLine;u.setRadius(r),u.addPoint(s),u.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor(),n.setDraw(h=>{s.distanceTo(h)>r&&(s=h.clone(),u.addPoint(h,!0)),n.drawCustomEntity(u)}),t.setUserDraw(n),t.setMessage(G(" 再次点击结束绘制云线:")),t.go(()=>{e.addMxEntity(u)})})}let Gf="";function FS(){Gf=$.MxFun.getCurrentDraw().saveMxEntityToJson(),console.log(Gf)}function zS(){return Gt(this,null,function*(){if(Gf.length==0)return;let t=$.MxFun.getCurrentDraw();yield t.loadMxEntityFromJson(Gf,["models/svg/mark.svg"]),t.updateDisplay()})}function NS(){const t=new $.MrxDbgUiPrPoint;t.setMessage(" 指定第一点:"),t.go(e=>{if(e!=0)return;const n=t.value();let r=new $.MxDbArea;r.addPoint(n),r.color=p.MxCpp.getCurrentMxCAD().getCurrentDatabaseDrawColor();const s=new $.McEdGetPointWorldDrawObject;s.setDraw((u,h)=>{let o=r.clone();o.addPoint(u),s.drawCustomEntity(o)}),t.setUserDraw(s),t.setMessage(" 指定下一点:"),t.goWhile(u=>{if(u==0){const h=t.value();r.addPoint(h)}},u=>{r.isFill=!0,r.fillOpacity=.7,r.fillColor=6697540,$.MxFun.getCurrentDraw().addMxEntity(r)})})}function US(){$.MxFun.addCommand("BR_Comment",RS),$.MxFun.addCommand("BR_CheckDraw",IS),$.MxFun.addCommand("BR_Arrow",kS),$.MxFun.addCommand("BR_CloudLine",BS),$.MxFun.addCommand("BR_Print",LS),$.MxFun.addCommand("BR_SaveAllMxEntity",FS),$.MxFun.addCommand("BR_LoadAllMxEntity",zS),$.MxFun.addCommand("BR_Area",NS)}function VS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("LineLayer"),t.drawLayer="LineLayer",t.drawLine(0,0,100,0),t.drawLine(200,0,300,100),t.addLinetype("MyLineType","6,-10"),t.drawLinetype="MyLineType",t.drawLine(0,30,100,30),t.drawLine(200,30,300,130),t.drawColor=new p.McCmColor(0,0,255),t.drawLine(0,60,100,60),t.drawLine(200,60,300,160),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=4,t.drawLine(0,90,100,90),t.drawLine(200,90,300,190),t.addLinetype("MyLineType2","10,-2,3,-2"),t.drawLinetype="MyLineType2",t.drawColor=new p.McCmColor(255,0,0),t.drawLine(0,120,100,120),t.drawLine(200,120,300,220),t.addTextStyle("MyLineTypeTextStyle","txt.shx","hztxt.shx",1),t.addLinetypeEx("MyLineType3",'(12.7,("T=MxDraw","S=2.54","L=-5.08","R=0.0","X=-2.54","Y=-1.27"),-10.08)',"MyLineTypeTextStyle"),t.drawLinetype="MyLineType3",t.drawLineWidth=0,t.drawLine(350,120,600,120),t.drawColorIndex=0,t.drawLineWidth=4,t.drawLine(350,220,600,220),t.zoomAll(),t.updateDisplay()}function GS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("ArcLayer"),t.drawLayer="ArcLayer",t.drawArc(0,1e3,100,30,200),t.addLinetype("ArcLineType","30,-5,7,-7"),t.drawLinetype="ArcLineType",t.drawColor=new p.McCmColor(255,25,0),t.drawArc(300,1e3,100,30,200),t.drawLineWidth=15,t.drawColorIndex=255,t.drawArc(600,1e3,100,30,200),t.drawArc2(800,1e3,900,1200,1e3,900),t.drawLinetype="",t.drawLineWidth=40,t.drawArc3(1200,1e3,1400,1e3,.6),t.zoomAll(),t.regen(),t.updateDisplay()}function OS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("CircleLayer"),t.drawLayer="CircleLayer",t.drawCircle(0,800,120),t.addLinetype("CircleLineType","30,-5,7,-7"),t.drawLinetype="CircleLineType",t.drawColor=new p.McCmColor(0,25,255),t.drawCircle(300,800,120),t.addLinetype("CircleLineType","30,-5,7,-7"),t.drawLinetype="CircleLineType",t.drawLineWidth=40,t.drawCircle(600,800,120),t.zoomAll(),t.regen(),t.updateDisplay()}function jS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("PolylineLayer"),t.drawLayer="PolylineLayer",t.pathMoveTo(0,300),t.pathLineTo(100,300),t.pathLineTo(100,400),t.pathLineTo(0,400),t.pathMakeClosed(),t.drawPathToPolyline(),t.pathMoveTo(200,300),t.pathLineTo(300,300),t.pathLineTo(300,400),t.pathLineTo(200,400),t.pathMakeClosed(),t.addLinetype("MyLineType3","30,-10"),t.drawLinetype="MyLineType3",t.drawColorIndex=255,t.drawLineWidth=5,t.drawPathToPolyline(),t.pathMoveTo(400,300),t.pathLineTo(500,300),t.pathLineTo(500,400),t.pathLineTo(400,400),t.pathMakeClosed(),t.drawLinetype="",t.drawColor=new p.McCmColor(0,25,255),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveTo(400,300),t.pathLineTo(500,300),t.pathLineTo(500,400),t.pathLineTo(400,400),t.pathMakeClosed(),t.drawLinetype="",t.drawColor=new p.McCmColor(255,25,0),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveTo(600,300),t.pathLineTo(700,300),t.pathLineTo(700,400),t.pathLineTo(600,400),t.drawLinetype="",t.drawColor=new p.McCmColor(0,255,0),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveTo(800,300),t.pathLineTo(900,300),t.pathLineTo(900,400),t.pathMakeClosed(),t.drawLinetype="",t.drawColor=new p.McCmColor(25,255,0),t.drawLineWidth=10,t.drawPathToPolyline(),t.pathMoveToEx(1e3,300,10,10,0),t.pathLineToEx(1e3,500,30,0,0),t.pathLineTo(1e3,580),t.drawPathToPolyline(),t.pathMoveToEx(1200,300,10,10,0),t.pathLineToEx(1200,500,30,0,0),t.pathLineTo(1200,580),t.drawColor=new p.McCmColor(25,255,0),t.drawLinetype="MyLineType3",t.drawPathToPolyline(),t.pathMoveToEx(1400,300,10,10,-.34),t.pathLineToEx(1400,500,30,0,.34),t.pathLineTo(1400,600),t.drawColor=new p.McCmColor(255,255,25),t.drawLinetype="MyLineType3",t.drawPathToPolyline(),t.zoomAll(),t.regen(),t.updateDisplay()}function HS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("HatchLayer"),t.drawLayer="HatchLayer",t.pathMoveToEx(200,3300,0,0,.3),t.pathLineTo(300,3300),t.pathLineTo(300,3400),t.pathLineTo(200,3300),t.drawColor=new p.McCmColor(25,255,0),t.drawPathToHatch(1),t.pathMoveTo(150,3300),t.pathLineTo(250,3300),t.pathLineTo(250,3400),t.pathLineTo(150,3300),t.drawColor=new p.McCmColor(255,0,0),t.drawPathToHatch(1),t.pathMoveToEx(440,3310,0,0,0),t.pathLineTo(480,3310),t.pathLineTo(480,3360),t.pathLineTo(450,3340),t.pathMakeExclude(!0),t.pathMoveToEx(400,3300,0,0,.3),t.pathLineTo(500,3300),t.pathLineTo(500,3400),t.pathLineTo(400,3300),t.drawColor=new p.McCmColor(255,25,0),t.drawPathToHatch(1),t.addPatternDefinition("MyHatchPattern1","((45, 0,0, 0,0.125))"),t.drawPatternDefinition="MyHatchPattern1",t.pathMoveToEx(600,3300,0,0,.3),t.pathLineTo(700,3300),t.pathLineTo(700,3400),t.pathLineTo(600,3300),t.drawPathToHatch(100),t.addPatternDefinition("MyHatchPattern2","((45, 0,0, 0,0.25) (45, 0.176776695,0, 0,0.25, 0.125,-0.0625))"),t.drawPatternDefinition="MyHatchPattern2",t.pathMoveToEx(800,3300,0,0,.3),t.pathLineTo(900,3300),t.pathLineTo(900,3400),t.pathLineTo(800,3300),t.drawPathToHatch(100),t.zoomAll(),t.regen(),t.updateDisplay()}function WS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.addLayer("TextLayer"),t.drawLayer="TextLayer",t.drawText(0,1900,"绘图控件文字测试",100,0,0,1),t.drawColor=new p.McCmColor(255,25,0),t.drawText(3e3,2100,"绘图控件文字测试",100,-20,2,1),t.addTextStyle("MyTextStyle","italicc.shx","gbcbig.shx",.7),t.drawTextStyle="MyTextStyle",t.drawColor=new p.McCmColor(255,0,0),t.drawText(0,3e3,"绘图控件文字测试",100,0,0,1),t.AddTureTypeTextStyle("MyTrueTypeTextStyle"),t.drawTextStyle="MyTrueTypeTextStyle",t.drawColor=new p.McCmColor(200,255,50),t.drawText(0,3500,"绘图控件TrueType文字测试",100,0,0,1),t.zoomAll(),t.regen(),t.updateDisplay()}function qS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),p.MxCpp.App.loadFonts([],[],["syadobe","simsun"],()=>{t.AddTureTypeTextStyle("ht_style","syadobe"),t.AddTureTypeTextStyle("st_style","simsun"),t.drawTextStyle="ht_style",t.drawColor=new p.McCmColor(200,255,50);let n=t.drawText(0,3500,"绘图控件TrueType文字测试",100,0,0,1).getMcDbEntity();n&&(n.textStyle="st_style"),t.zoomAll(),t.regen(),t.updateDisplay()})}function YS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.addLayer("LineLayer"),t.drawLayer="LineLayer",t.drawEllipse(0,1400,100,0,.7),t.addLinetype("MyEllipseType","6,-10"),t.drawLinetype="MyEllipseType",t.drawColor=new p.McCmColor(200,0,0),t.drawEllipse(200,1400,80,30,.5),t.zoomAll(),t.regen(),t.updateDisplay()}function XS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.drawLineWidth=0,t.addLayer("EllipseArcLayer"),t.drawLayer="EllipseArcLayer",t.drawEllipseArc(0,1600,80,30,.4,30,200),t.addLinetype("MyEllipseArcType","6,-10"),t.drawLinetype="MyEllipseArcType",t.drawColor=new p.McCmColor(200,200,0),t.drawEllipseArc(200,1600,-80,30,.5,60,300),t.drawLinetype="",t.zoomAll(),t.regen(),t.updateDisplay()}function KS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawColorIndex=0,t.addLayer("MtextLayer"),t.drawLayer="MtextLayer",t.drawTextStyle="",t.drawMText(0,-100,"控件:\\P多行文字测试",50,400,0,1),t.zoomAll(),t.regen(),t.updateDisplay()}function ZS(t){if(!t||!t.param)return;let e=p.MxCpp.getCurrentMxCAD();e.newFile(),e.drawColorIndex=0,e.drawLinetype="",e.drawLineWidth=0,e.addLayer("LineLayer"),e.drawLayer="LineLayer",e.drawLine(t.param.x1,t.param.y1,t.param.x2,t.param.y2),e.zoomAll(),e.updateDisplay(),$.MxFun.postMessageToParentFrame({cmd:"Mx_ParamDrawLine",message:"ok"})}function JS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.drawText(350831.77,1940511845e-2,"1.034",10,0,p.McDb.TextHorzMode.kTextLeft,p.McDb.TextVertMode.kTextVertMid),t.zoomAll(),t.regen(100)}function QS(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.addDimStyle("MyDimStyle","41,0.18,141,0.09,40,200","77,1,271,3","",""),t.drawDimStyle="MyDimStyle",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.drawDimAligned(0,4e3,300,4500,150,4600),t.zoomAll(),t.updateDisplay()}function $S(){let t=p.MxCpp.getCurrentMxCAD();t.newFile();let e=t.addTextStyle("我的标注字体","complex.shx","gbcbig.shx",1);t.addDimStyle("MyDimStyle","41,0.18,141,0.09,40,200","77,1,271,3","",`340,${e.id}`),t.drawDimStyle="MyDimStyle",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0;let r=t.drawDimRotated(0,7e3,600,7e3,250,7050,0).getMcDbDimension();r&&(r.setDimVarDouble(41,2),r.setDimVarDouble(44,3),r.setDimVarDouble(49,6),r.setDimVarInt(290,1)),t.drawDimRotated(0,7200,0,7600,150,7300,.771),t.zoomAll(),t.updateDisplay()}function tC(){let t=p.MxCpp.getCurrentMxCAD();t.newFile();let e=t.addTextStyle("我的标注字体","complex.shx","gbcbig.shx",1);t.addDimStyle("MyDimStyle","41,0.18,141,0.09,40,200","77,1,271,3",'3,"DN%%c<>"',`340,${e.id}`),t.drawDimStyle="MyDimStyle",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0;let n=t.drawDimRotated(0,7e3,600,7e3,250,7050,0).getMcDbDimension();n&&(n.setDimVarInt(71,1),n.setDimVarInt(272,1),n.setDimVarDouble(146,.5),n.setDimVarDouble(48,5.5),n.setDimVarDouble(47,2.5),n.recomputeDimBlock()),t.zoomAll(),t.updateDisplay()}function eC(){let t=p.MxCpp.getCurrentMxCAD();t.newFile(),t.addDimStyle("MyDimStyle2","41,0.18,141,0.09,40,200","77,1,271,3","",""),t.drawDimStyle="MyDimStyle2",t.drawColorIndex=0,t.drawLinetype="",t.drawLineWidth=0,t.drawDimAngular(500,5e3,0,5500,1e3,5500,500,5500),t.zoomAll(),t.updateDisplay()}function nC(){$.MxFun.addCommand("Mx_Test_DrawLine",VS),$.MxFun.addCommand("Mx_Test_DrawArc",GS),$.MxFun.addCommand("Mx_Test_DrawCircle",OS),$.MxFun.addCommand("Mx_Test_DrawPolyline",jS),$.MxFun.addCommand("Mx_Test_DrawHatch",HS),$.MxFun.addCommand("Mx_Test_DrawText",WS),$.MxFun.addCommand("Mx_Test_Ellipse",YS),$.MxFun.addCommand("Mx_Test_EllipseArc",XS),$.MxFun.addCommand("Mx_Test_MText",KS),$.MxFun.addCommand("Mx_Test_Text",JS),$.MxFun.addCommand("Mx_ParamDrawLine",ZS),$.MxFun.addCommand("Mx_Test_DimAligned",QS),$.MxFun.addCommand("Mx_Test_DrawDimRotated",$S),$.MxFun.addCommand("Mx_Test_DrawDimRotatedTol",tC),$.MxFun.addCommand("Mx_Test_DrawDimAngular",eC),$.MxFun.addCommand("Mx_Test_TrueText",qS)}Number.EPSILON===void 0&&(Number.EPSILON=Math.pow(2,-52)),Number.isInteger===void 0&&(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}),Math.sign===void 0&&(Math.sign=function(t){return t<0?-1:t>0?1:+t}),"name"in Function.prototype||Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),Object.assign===void 0&&(Object.assign=function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e});var iC="113",rC=0,sb=1,oC=2,ab=1,sC=2,Hh=3,Dc=0,lr=1,Wh=2,lb=1,cb=0,aC=1,Rc=2,ya=0,qh=1,ub=2,hb=3,db=4,lC=5,Lc=100,cC=101,uC=102,pb=103,fb=104,hC=200,dC=201,pC=202,fC=203,mb=204,gb=205,mC=206,gC=207,yC=208,xC=209,vC=210,_C=0,bC=1,MC=2,L0=3,wC=4,AC=5,EC=6,TC=7,Of=0,PC=1,SC=2,jf=0,I0=1,CC=2,DC=3,RC=4,LC=5,k0=300,B0=301,F0=302,yb=303,z0=304,xb=305,Yh=306,N0=307,xl=1e3,Dr=1001,Xh=1002,Yi=1003,Hf=1004,Wf=1005,$i=1006,U0=1007,Ic=1008,qf=1009,IC=1010,kC=1011,Yf=1012,BC=1013,vb=1014,Kh=1015,V0=1016,FC=1017,zC=1018,NC=1019,Xf=1020,UC=1021,Ns=1022,No=1023,VC=1024,GC=1025,OC=No,kc=1026,Zh=1027,jC=1028,HC=1029,WC=1030,qC=1031,YC=1032,XC=1033,_b=33776,bb=33777,Mb=33778,wb=33779,Ab=35840,Eb=35841,Tb=35842,Pb=35843,KC=36196,ZC=37808,JC=37809,QC=37810,$C=37811,t3=37812,e3=37813,n3=37814,i3=37815,r3=37816,o3=37817,s3=37818,a3=37819,l3=37820,c3=37821,u3=2200,h3=2201,d3=2202,Jh=2300,Bc=2301,G0=2302,Fc=2400,zc=2401,Kf=2402,p3=0,f3=1,Sb=2,ho=3e3,Qh=3001,Cb=3007,O0=3002,m3=3003,Db=3004,Rb=3005,Lb=3006,g3=3200,y3=3201,vl=0,x3=1,j0=7680,v3=519,Zf=35044,$h=35048;function Us(){}Object.assign(Us.prototype,{addEventListener:function(t,e){this._listeners===void 0&&(this._listeners={});var n=this._listeners;n[t]===void 0&&(n[t]=[]),n[t].indexOf(e)===-1&&n[t].push(e)},hasEventListener:function(t,e){if(this._listeners===void 0)return!1;var n=this._listeners;return n[t]!==void 0&&n[t].indexOf(e)!==-1},removeEventListener:function(t,e){if(this._listeners!==void 0){var n=this._listeners,r=n[t];if(r!==void 0){var s=r.indexOf(e);s!==-1&&r.splice(s,1)}}},dispatchEvent:function(t){if(this._listeners!==void 0){var e=this._listeners,n=e[t.type];if(n!==void 0){t.target=this;for(var r=n.slice(0),s=0,u=r.length;s<u;s++)r[s].call(this,t)}}}});for(var fr=[],td=0;td<256;td++)fr[td]=(td<16?"0":"")+td.toString(16);var Xn={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0,s=fr[t&255]+fr[t>>8&255]+fr[t>>16&255]+fr[t>>24&255]+"-"+fr[e&255]+fr[e>>8&255]+"-"+fr[e>>16&15|64]+fr[e>>24&255]+"-"+fr[n&63|128]+fr[n>>8&255]+"-"+fr[n>>16&255]+fr[n>>24&255]+fr[r&255]+fr[r>>8&255]+fr[r>>16&255]+fr[r>>24&255];return s.toUpperCase()},clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,r,s){return r+(t-e)*(s-r)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*Xn.DEG2RAD},radToDeg:function(t){return t*Xn.RAD2DEG},isPowerOfTwo:function(t){return(t&t-1)===0&&t!==0},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,e,n,r,s){var u=Math.cos,h=Math.sin,o=u(n/2),m=h(n/2),y=u((e+r)/2),x=h((e+r)/2),M=u((e-r)/2),A=h((e-r)/2),T=u((r-e)/2),P=h((r-e)/2);s==="XYX"?t.set(o*x,m*M,m*A,o*y):s==="YZY"?t.set(m*A,o*x,m*M,o*y):s==="ZXZ"?t.set(m*M,m*A,o*x,o*y):s==="XZX"?t.set(o*x,m*P,m*T,o*y):s==="YXY"?t.set(m*T,o*x,m*P,o*y):s==="ZYZ"?t.set(m*P,m*T,o*x,o*y):console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order.")}};function ke(t,e){this.x=t||0,this.y=e||0}Object.defineProperties(ke.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(ke.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,n=this.y,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return n!==void 0&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),r=Math.sin(e),s=this.x-t.x,u=this.y-t.y;return this.x=s*n-u*r+t.x,this.y=s*r+u*n+t.y,this}});function _r(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.assign(_r.prototype,{isMatrix3:!0,set:function(t,e,n,r,s,u,h,o,m){var y=this.elements;return y[0]=t,y[1]=r,y[2]=h,y[3]=e,y[4]=s,y[5]=o,y[6]=n,y[7]=u,y[8]=m,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return new this.constructor().fromArray(this.elements)},copy:function(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,r=e.elements,s=this.elements,u=n[0],h=n[3],o=n[6],m=n[1],y=n[4],x=n[7],M=n[2],A=n[5],T=n[8],P=r[0],D=r[3],k=r[6],z=r[1],O=r[4],U=r[7],H=r[2],V=r[5],W=r[8];return s[0]=u*P+h*z+o*H,s[3]=u*D+h*O+o*V,s[6]=u*k+h*U+o*W,s[1]=m*P+y*z+x*H,s[4]=m*D+y*O+x*V,s[7]=m*k+y*U+x*W,s[2]=M*P+A*z+T*H,s[5]=M*D+A*O+T*V,s[8]=M*k+A*U+T*W,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[1],r=t[2],s=t[3],u=t[4],h=t[5],o=t[6],m=t[7],y=t[8];return e*u*y-e*h*m-n*s*y+n*h*o+r*s*m-r*u*o},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=t.elements,r=this.elements,s=n[0],u=n[1],h=n[2],o=n[3],m=n[4],y=n[5],x=n[6],M=n[7],A=n[8],T=A*m-y*M,P=y*x-A*o,D=M*o-m*x,k=s*T+u*P+h*D;if(k===0){var z="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(e===!0)throw new Error(z);return console.warn(z),this.identity()}var O=1/k;return r[0]=T*O,r[1]=(h*M-A*u)*O,r[2]=(y*u-h*m)*O,r[3]=P*O,r[4]=(A*s-h*x)*O,r[5]=(h*o-y*s)*O,r[6]=D*O,r[7]=(u*x-M*s)*O,r[8]=(m*s-u*o)*O,this},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,n,r,s,u,h){var o=Math.cos(s),m=Math.sin(s);this.set(n*o,n*m,-n*(o*u+m*h)+u+t,-r*m,r*o,-r*(-m*u+o*h)+h+e,0,0,1)},scale:function(t,e){var n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=this.elements,s=r[0],u=r[3],h=r[6],o=r[1],m=r[4],y=r[7];return r[0]=e*s+n*o,r[3]=e*u+n*m,r[6]=e*h+n*y,r[1]=-n*s+e*o,r[4]=-n*u+e*m,r[7]=-n*h+e*y,this},translate:function(t,e){var n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this},equals:function(t){for(var e=this.elements,n=t.elements,r=0;r<9;r++)if(e[r]!==n[r])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var n=0;n<9;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}});var Nc,_l={getDataURL:function(t){var e;if(typeof HTMLCanvasElement=="undefined")return t.src;if(t instanceof HTMLCanvasElement)e=t;else{Nc===void 0&&(Nc=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),Nc.width=t.width,Nc.height=t.height;var n=Nc.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=Nc}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},_3=0;function bi(t,e,n,r,s,u,h,o,m,y){Object.defineProperty(this,"id",{value:_3++}),this.uuid=Xn.generateUUID(),this.name="",this.image=t!==void 0?t:bi.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=e!==void 0?e:bi.DEFAULT_MAPPING,this.wrapS=n!==void 0?n:Dr,this.wrapT=r!==void 0?r:Dr,this.magFilter=s!==void 0?s:$i,this.minFilter=u!==void 0?u:Ic,this.anisotropy=m!==void 0?m:1,this.format=h!==void 0?h:No,this.internalFormat=null,this.type=o!==void 0?o:qf,this.offset=new ke(0,0),this.repeat=new ke(1,1),this.center=new ke(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new _r,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=y!==void 0?y:ho,this.version=0,this.onUpdate=null}bi.DEFAULT_IMAGE=void 0,bi.DEFAULT_MAPPING=k0,bi.prototype=Object.assign(Object.create(Us.prototype),{constructor:bi,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=t===void 0||typeof t=="string";if(!e&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];var n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(this.image!==void 0){var r=this.image;if(r.uuid===void 0&&(r.uuid=Xn.generateUUID()),!e&&t.images[r.uuid]===void 0){var s;if(Array.isArray(r)){s=[];for(var u=0,h=r.length;u<h;u++)s.push(_l.getDataURL(r[u]))}else s=_l.getDataURL(r);t.images[r.uuid]={uuid:r.uuid,url:s}}n.image=r.uuid}return e||(t.textures[this.uuid]=n),n},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==k0)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case xl:t.x=t.x-Math.floor(t.x);break;case Dr:t.x=t.x<0?0:1;break;case Xh:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case xl:t.y=t.y-Math.floor(t.y);break;case Dr:t.y=t.y<0?0:1;break;case Xh:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(bi.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}});function Mi(t,e,n,r){this.x=t||0,this.y=e||0,this.z=n||0,this.w=r!==void 0?r:1}Object.defineProperties(Mi.prototype,{width:{get:function(){return this.z},set:function(t){this.z=t}},height:{get:function(){return this.w},set:function(t){this.w=t}}}),Object.assign(Mi.prototype,{isVector4:!0,set:function(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,n=this.y,r=this.z,s=this.w,u=t.elements;return this.x=u[0]*e+u[4]*n+u[8]*r+u[12]*s,this.y=u[1]*e+u[5]*n+u[9]*r+u[13]*s,this.z=u[2]*e+u[6]*n+u[10]*r+u[14]*s,this.w=u[3]*e+u[7]*n+u[11]*r+u[15]*s,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,r,s,u=.01,h=.1,o=t.elements,m=o[0],y=o[4],x=o[8],M=o[1],A=o[5],T=o[9],P=o[2],D=o[6],k=o[10];if(Math.abs(y-M)<u&&Math.abs(x-P)<u&&Math.abs(T-D)<u){if(Math.abs(y+M)<h&&Math.abs(x+P)<h&&Math.abs(T+D)<h&&Math.abs(m+A+k-3)<h)return this.set(1,0,0,0),this;e=Math.PI;var z=(m+1)/2,O=(A+1)/2,U=(k+1)/2,H=(y+M)/4,V=(x+P)/4,W=(T+D)/4;return z>O&&z>U?z<u?(n=0,r=.707106781,s=.707106781):(n=Math.sqrt(z),r=H/n,s=V/n):O>U?O<u?(n=.707106781,r=0,s=.707106781):(r=Math.sqrt(O),n=H/r,s=W/r):U<u?(n=.707106781,r=.707106781,s=0):(s=Math.sqrt(U),n=V/s,r=W/s),this.set(n,r,s,e),this}var K=Math.sqrt((D-T)*(D-T)+(x-P)*(x-P)+(M-y)*(M-y));return Math.abs(K)<.001&&(K=1),this.x=(D-T)/K,this.y=(x-P)/K,this.z=(M-y)/K,this.w=Math.acos((m+A+k-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return n!==void 0&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}});function Rr(t,e,n){this.width=t,this.height=e,this.scissor=new Mi(0,0,t,e),this.scissorTest=!1,this.viewport=new Mi(0,0,t,e),n=n||{},this.texture=new bi(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:$i,this.depthBuffer=n.depthBuffer!==void 0?n.depthBuffer:!0,this.stencilBuffer=n.stencilBuffer!==void 0?n.stencilBuffer:!0,this.depthTexture=n.depthTexture!==void 0?n.depthTexture:null}Rr.prototype=Object.assign(Object.create(Us.prototype),{constructor:Rr,isWebGLRenderTarget:!0,setSize:function(t,e){(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,this.texture.image.width=t,this.texture.image.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});function Ib(t,e,n){Rr.call(this,t,e,n),this.samples=4}Ib.prototype=Object.assign(Object.create(Rr.prototype),{constructor:Ib,isWebGLMultisampleRenderTarget:!0,copy:function(t){return Rr.prototype.copy.call(this,t),this.samples=t.samples,this}});function Wr(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._w=r!==void 0?r:1}Object.assign(Wr,{slerp:function(t,e,n,r){return n.copy(t).slerp(e,r)},slerpFlat:function(t,e,n,r,s,u,h){var o=n[r+0],m=n[r+1],y=n[r+2],x=n[r+3],M=s[u+0],A=s[u+1],T=s[u+2],P=s[u+3];if(x!==P||o!==M||m!==A||y!==T){var D=1-h,k=o*M+m*A+y*T+x*P,z=k>=0?1:-1,O=1-k*k;if(O>Number.EPSILON){var U=Math.sqrt(O),H=Math.atan2(U,k*z);D=Math.sin(D*H)/U,h=Math.sin(h*H)/U}var V=h*z;if(o=o*D+M*V,m=m*D+A*V,y=y*D+T*V,x=x*D+P*V,D===1-h){var W=1/Math.sqrt(o*o+m*m+y*y+x*x);o*=W,m*=W,y*=W,x*=W}}t[e]=o,t[e+1]=m,t[e+2]=y,t[e+3]=x}}),Object.defineProperties(Wr.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this._onChangeCallback()}}}),Object.assign(Wr.prototype,{isQuaternion:!0,set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this},setFromEuler:function(t,e){if(!(t&&t.isEuler))throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=t._x,r=t._y,s=t._z,u=t.order,h=Math.cos,o=Math.sin,m=h(n/2),y=h(r/2),x=h(s/2),M=o(n/2),A=o(r/2),T=o(s/2);return u==="XYZ"?(this._x=M*y*x+m*A*T,this._y=m*A*x-M*y*T,this._z=m*y*T+M*A*x,this._w=m*y*x-M*A*T):u==="YXZ"?(this._x=M*y*x+m*A*T,this._y=m*A*x-M*y*T,this._z=m*y*T-M*A*x,this._w=m*y*x+M*A*T):u==="ZXY"?(this._x=M*y*x-m*A*T,this._y=m*A*x+M*y*T,this._z=m*y*T+M*A*x,this._w=m*y*x-M*A*T):u==="ZYX"?(this._x=M*y*x-m*A*T,this._y=m*A*x+M*y*T,this._z=m*y*T-M*A*x,this._w=m*y*x+M*A*T):u==="YZX"?(this._x=M*y*x+m*A*T,this._y=m*A*x+M*y*T,this._z=m*y*T-M*A*x,this._w=m*y*x-M*A*T):u==="XZY"&&(this._x=M*y*x-m*A*T,this._y=m*A*x-M*y*T,this._z=m*y*T+M*A*x,this._w=m*y*x+M*A*T),e!==!1&&this._onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this._onChangeCallback(),this},setFromRotationMatrix:function(t){var e=t.elements,n=e[0],r=e[4],s=e[8],u=e[1],h=e[5],o=e[9],m=e[2],y=e[6],x=e[10],M=n+h+x,A;return M>0?(A=.5/Math.sqrt(M+1),this._w=.25/A,this._x=(y-o)*A,this._y=(s-m)*A,this._z=(u-r)*A):n>h&&n>x?(A=2*Math.sqrt(1+n-h-x),this._w=(y-o)/A,this._x=.25*A,this._y=(r+u)/A,this._z=(s+m)/A):h>x?(A=2*Math.sqrt(1+h-n-x),this._w=(s-m)/A,this._x=(r+u)/A,this._y=.25*A,this._z=(o+y)/A):(A=2*Math.sqrt(1+x-n-h),this._w=(u-r)/A,this._x=(s+m)/A,this._y=(o+y)/A,this._z=.25*A),this._onChangeCallback(),this},setFromUnitVectors:function(t,e){var n=1e-6,r=t.dot(e)+1;return r<n?(r=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=r):(this._x=0,this._y=-t.z,this._z=t.y,this._w=r)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=r),this.normalize()},angleTo:function(t){return 2*Math.acos(Math.abs(Xn.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var n=this.angleTo(t);if(n===0)return this;var r=Math.min(1,e/n);return this.slerp(t,r),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,r=t._y,s=t._z,u=t._w,h=e._x,o=e._y,m=e._z,y=e._w;return this._x=n*y+u*h+r*m-s*o,this._y=r*y+u*o+s*h-n*m,this._z=s*y+u*m+n*o-r*h,this._w=u*y-n*h-r*o-s*m,this._onChangeCallback(),this},slerp:function(t,e){if(e===0)return this;if(e===1)return this.copy(t);var n=this._x,r=this._y,s=this._z,u=this._w,h=u*t._w+n*t._x+r*t._y+s*t._z;if(h<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,h=-h):this.copy(t),h>=1)return this._w=u,this._x=n,this._y=r,this._z=s,this;var o=1-h*h;if(o<=Number.EPSILON){var m=1-e;return this._w=m*u+e*this._w,this._x=m*n+e*this._x,this._y=m*r+e*this._y,this._z=m*s+e*this._z,this.normalize(),this._onChangeCallback(),this}var y=Math.sqrt(o),x=Math.atan2(y,h),M=Math.sin((1-e)*x)/y,A=Math.sin(e*x)/y;return this._w=u*M+this._w*A,this._x=n*M+this._x*A,this._y=r*M+this._y*A,this._z=s*M+this._z*A,this._onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return e===void 0&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},_onChange:function(t){return this._onChangeCallback=t,this},_onChangeCallback:function(){}});var H0=new kt,kb=new Wr;function kt(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}Object.assign(kt.prototype,{isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(kb.setFromEuler(t))},applyAxisAngle:function(t,e){return this.applyQuaternion(kb.setFromAxisAngle(t,e))},applyMatrix3:function(t){var e=this.x,n=this.y,r=this.z,s=t.elements;return this.x=s[0]*e+s[3]*n+s[6]*r,this.y=s[1]*e+s[4]*n+s[7]*r,this.z=s[2]*e+s[5]*n+s[8]*r,this},applyNormalMatrix:function(t){return this.applyMatrix3(t).normalize()},applyMatrix4:function(t){var e=this.x,n=this.y,r=this.z,s=t.elements,u=1/(s[3]*e+s[7]*n+s[11]*r+s[15]);return this.x=(s[0]*e+s[4]*n+s[8]*r+s[12])*u,this.y=(s[1]*e+s[5]*n+s[9]*r+s[13])*u,this.z=(s[2]*e+s[6]*n+s[10]*r+s[14])*u,this},applyQuaternion:function(t){var e=this.x,n=this.y,r=this.z,s=t.x,u=t.y,h=t.z,o=t.w,m=o*e+u*r-h*n,y=o*n+h*e-s*r,x=o*r+s*n-u*e,M=-s*e-u*n-h*r;return this.x=m*o+M*-s+y*-h-x*-u,this.y=y*o+M*-u+x*-s-m*-h,this.z=x*o+M*-h+m*-u-y*-s,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)},transformDirection:function(t){var e=this.x,n=this.y,r=this.z,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*r,this.y=s[1]*e+s[5]*n+s[9]*r,this.z=s[2]*e+s[6]*n+s[10]*r,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){return e!==void 0?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var n=t.x,r=t.y,s=t.z,u=e.x,h=e.y,o=e.z;return this.x=r*o-s*h,this.y=s*u-n*o,this.z=n*h-r*u,this},projectOnVector:function(t){var e=t.lengthSq();if(e===0)return this.set(0,0,0);var n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)},projectOnPlane:function(t){return H0.copy(this).projectOnVector(t),this.sub(H0)},reflect:function(t){return this.sub(H0.copy(t).multiplyScalar(2*this.dot(t)))},angleTo:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;var n=this.dot(t)/e;return Math.acos(Xn.clamp(n,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return e*e+n*n+r*r},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,n){var r=Math.sin(e)*t;return this.x=r*Math.sin(n),this.y=Math.cos(e)*t,this.z=r*Math.cos(n),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,e*4)},setFromMatrix3Column:function(t,e){return this.fromArray(t.elements,e*3)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return e===void 0&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return n!==void 0&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}});var Uc=new kt,Uo=new Kn,b3=new kt(0,0,0),M3=new kt(1,1,1),xa=new kt,Jf=new kt,po=new kt;function Kn(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}Object.assign(Kn.prototype,{isMatrix4:!0,set:function(t,e,n,r,s,u,h,o,m,y,x,M,A,T,P,D){var k=this.elements;return k[0]=t,k[4]=e,k[8]=n,k[12]=r,k[1]=s,k[5]=u,k[9]=h,k[13]=o,k[2]=m,k[6]=y,k[10]=x,k[14]=M,k[3]=A,k[7]=T,k[11]=P,k[15]=D,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return new Kn().fromArray(this.elements)},copy:function(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:function(t){var e=this.elements,n=t.elements,r=1/Uc.setFromMatrixColumn(t,0).length(),s=1/Uc.setFromMatrixColumn(t,1).length(),u=1/Uc.setFromMatrixColumn(t,2).length();return e[0]=n[0]*r,e[1]=n[1]*r,e[2]=n[2]*r,e[3]=0,e[4]=n[4]*s,e[5]=n[5]*s,e[6]=n[6]*s,e[7]=0,e[8]=n[8]*u,e[9]=n[9]*u,e[10]=n[10]*u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,n=t.x,r=t.y,s=t.z,u=Math.cos(n),h=Math.sin(n),o=Math.cos(r),m=Math.sin(r),y=Math.cos(s),x=Math.sin(s);if(t.order==="XYZ"){var M=u*y,A=u*x,T=h*y,P=h*x;e[0]=o*y,e[4]=-o*x,e[8]=m,e[1]=A+T*m,e[5]=M-P*m,e[9]=-h*o,e[2]=P-M*m,e[6]=T+A*m,e[10]=u*o}else if(t.order==="YXZ"){var D=o*y,k=o*x,z=m*y,O=m*x;e[0]=D+O*h,e[4]=z*h-k,e[8]=u*m,e[1]=u*x,e[5]=u*y,e[9]=-h,e[2]=k*h-z,e[6]=O+D*h,e[10]=u*o}else if(t.order==="ZXY"){var D=o*y,k=o*x,z=m*y,O=m*x;e[0]=D-O*h,e[4]=-u*x,e[8]=z+k*h,e[1]=k+z*h,e[5]=u*y,e[9]=O-D*h,e[2]=-u*m,e[6]=h,e[10]=u*o}else if(t.order==="ZYX"){var M=u*y,A=u*x,T=h*y,P=h*x;e[0]=o*y,e[4]=T*m-A,e[8]=M*m+P,e[1]=o*x,e[5]=P*m+M,e[9]=A*m-T,e[2]=-m,e[6]=h*o,e[10]=u*o}else if(t.order==="YZX"){var U=u*o,H=u*m,V=h*o,W=h*m;e[0]=o*y,e[4]=W-U*x,e[8]=V*x+H,e[1]=x,e[5]=u*y,e[9]=-h*y,e[2]=-m*y,e[6]=H*x+V,e[10]=U-W*x}else if(t.order==="XZY"){var U=u*o,H=u*m,V=h*o,W=h*m;e[0]=o*y,e[4]=-x,e[8]=m*y,e[1]=U*x+W,e[5]=u*y,e[9]=H*x-V,e[2]=V*x-H,e[6]=h*y,e[10]=W*x+U}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:function(t){return this.compose(b3,t,M3)},lookAt:function(t,e,n){var r=this.elements;return po.subVectors(t,e),po.lengthSq()===0&&(po.z=1),po.normalize(),xa.crossVectors(n,po),xa.lengthSq()===0&&(Math.abs(n.z)===1?po.x+=1e-4:po.z+=1e-4,po.normalize(),xa.crossVectors(n,po)),xa.normalize(),Jf.crossVectors(po,xa),r[0]=xa.x,r[4]=Jf.x,r[8]=po.x,r[1]=xa.y,r[5]=Jf.y,r[9]=po.y,r[2]=xa.z,r[6]=Jf.z,r[10]=po.z,this},multiply:function(t,e){return e!==void 0?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,r=e.elements,s=this.elements,u=n[0],h=n[4],o=n[8],m=n[12],y=n[1],x=n[5],M=n[9],A=n[13],T=n[2],P=n[6],D=n[10],k=n[14],z=n[3],O=n[7],U=n[11],H=n[15],V=r[0],W=r[4],K=r[8],Z=r[12],tt=r[1],at=r[5],st=r[9],nt=r[13],ct=r[2],xt=r[6],vt=r[10],Zt=r[14],ce=r[3],le=r[7],fe=r[11],de=r[15];return s[0]=u*V+h*tt+o*ct+m*ce,s[4]=u*W+h*at+o*xt+m*le,s[8]=u*K+h*st+o*vt+m*fe,s[12]=u*Z+h*nt+o*Zt+m*de,s[1]=y*V+x*tt+M*ct+A*ce,s[5]=y*W+x*at+M*xt+A*le,s[9]=y*K+x*st+M*vt+A*fe,s[13]=y*Z+x*nt+M*Zt+A*de,s[2]=T*V+P*tt+D*ct+k*ce,s[6]=T*W+P*at+D*xt+k*le,s[10]=T*K+P*st+D*vt+k*fe,s[14]=T*Z+P*nt+D*Zt+k*de,s[3]=z*V+O*tt+U*ct+H*ce,s[7]=z*W+O*at+U*xt+H*le,s[11]=z*K+O*st+U*vt+H*fe,s[15]=z*Z+O*nt+U*Zt+H*de,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[4],r=t[8],s=t[12],u=t[1],h=t[5],o=t[9],m=t[13],y=t[2],x=t[6],M=t[10],A=t[14],T=t[3],P=t[7],D=t[11],k=t[15];return T*(+s*o*x-r*m*x-s*h*M+n*m*M+r*h*A-n*o*A)+P*(+e*o*A-e*m*M+s*u*M-r*u*A+r*m*y-s*o*y)+D*(+e*m*x-e*h*A-s*u*x+n*u*A+s*h*y-n*m*y)+k*(-r*h*y-e*o*x+e*h*M+r*u*x-n*u*M+n*o*y)},transpose:function(){var t=this.elements,e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},setPosition:function(t,e,n){var r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=e,r[14]=n),this},getInverse:function(t,e){var n=this.elements,r=t.elements,s=r[0],u=r[1],h=r[2],o=r[3],m=r[4],y=r[5],x=r[6],M=r[7],A=r[8],T=r[9],P=r[10],D=r[11],k=r[12],z=r[13],O=r[14],U=r[15],H=T*O*M-z*P*M+z*x*D-y*O*D-T*x*U+y*P*U,V=k*P*M-A*O*M-k*x*D+m*O*D+A*x*U-m*P*U,W=A*z*M-k*T*M+k*y*D-m*z*D-A*y*U+m*T*U,K=k*T*x-A*z*x-k*y*P+m*z*P+A*y*O-m*T*O,Z=s*H+u*V+h*W+o*K;if(Z===0){var tt="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(e===!0)throw new Error(tt);return console.warn(tt),this.identity()}var at=1/Z;return n[0]=H*at,n[1]=(z*P*o-T*O*o-z*h*D+u*O*D+T*h*U-u*P*U)*at,n[2]=(y*O*o-z*x*o+z*h*M-u*O*M-y*h*U+u*x*U)*at,n[3]=(T*x*o-y*P*o-T*h*M+u*P*M+y*h*D-u*x*D)*at,n[4]=V*at,n[5]=(A*O*o-k*P*o+k*h*D-s*O*D-A*h*U+s*P*U)*at,n[6]=(k*x*o-m*O*o-k*h*M+s*O*M+m*h*U-s*x*U)*at,n[7]=(m*P*o-A*x*o+A*h*M-s*P*M-m*h*D+s*x*D)*at,n[8]=W*at,n[9]=(k*T*o-A*z*o-k*u*D+s*z*D+A*u*U-s*T*U)*at,n[10]=(m*z*o-k*y*o+k*u*M-s*z*M-m*u*U+s*y*U)*at,n[11]=(A*y*o-m*T*o-A*u*M+s*T*M+m*u*D-s*y*D)*at,n[12]=K*at,n[13]=(A*z*h-k*T*h+k*u*P-s*z*P-A*u*O+s*T*O)*at,n[14]=(k*y*h-m*z*h-k*u*x+s*z*x+m*u*O-s*y*O)*at,n[15]=(m*T*h-A*y*h+A*u*x-s*T*x-m*u*P+s*y*P)*at,this},scale:function(t){var e=this.elements,n=t.x,r=t.y,s=t.z;return e[0]*=n,e[4]*=r,e[8]*=s,e[1]*=n,e[5]*=r,e[9]*=s,e[2]*=n,e[6]*=r,e[10]*=s,e[3]*=n,e[7]*=r,e[11]*=s,this},getMaxScaleOnAxis:function(){var t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))},makeTranslation:function(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var n=Math.cos(e),r=Math.sin(e),s=1-n,u=t.x,h=t.y,o=t.z,m=s*u,y=s*h;return this.set(m*u+n,m*h-r*o,m*o+r*h,0,m*h+r*o,y*h+n,y*o-r*u,0,m*o-r*h,y*o+r*u,s*o*o+n,0,0,0,0,1),this},makeScale:function(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this},makeShear:function(t,e,n){return this.set(1,e,n,0,t,1,n,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,n){var r=this.elements,s=e._x,u=e._y,h=e._z,o=e._w,m=s+s,y=u+u,x=h+h,M=s*m,A=s*y,T=s*x,P=u*y,D=u*x,k=h*x,z=o*m,O=o*y,U=o*x,H=n.x,V=n.y,W=n.z;return r[0]=(1-(P+k))*H,r[1]=(A+U)*H,r[2]=(T-O)*H,r[3]=0,r[4]=(A-U)*V,r[5]=(1-(M+k))*V,r[6]=(D+z)*V,r[7]=0,r[8]=(T+O)*W,r[9]=(D-z)*W,r[10]=(1-(M+P))*W,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this},decompose:function(t,e,n){var r=this.elements,s=Uc.set(r[0],r[1],r[2]).length(),u=Uc.set(r[4],r[5],r[6]).length(),h=Uc.set(r[8],r[9],r[10]).length(),o=this.determinant();o<0&&(s=-s),t.x=r[12],t.y=r[13],t.z=r[14],Uo.copy(this);var m=1/s,y=1/u,x=1/h;return Uo.elements[0]*=m,Uo.elements[1]*=m,Uo.elements[2]*=m,Uo.elements[4]*=y,Uo.elements[5]*=y,Uo.elements[6]*=y,Uo.elements[8]*=x,Uo.elements[9]*=x,Uo.elements[10]*=x,e.setFromRotationMatrix(Uo),n.x=s,n.y=u,n.z=h,this},makePerspective:function(t,e,n,r,s,u){u===void 0&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var h=this.elements,o=2*s/(e-t),m=2*s/(n-r),y=(e+t)/(e-t),x=(n+r)/(n-r),M=-(u+s)/(u-s),A=-2*u*s/(u-s);return h[0]=o,h[4]=0,h[8]=y,h[12]=0,h[1]=0,h[5]=m,h[9]=x,h[13]=0,h[2]=0,h[6]=0,h[10]=M,h[14]=A,h[3]=0,h[7]=0,h[11]=-1,h[15]=0,this},makeOrthographic:function(t,e,n,r,s,u){var h=this.elements,o=1/(e-t),m=1/(n-r),y=1/(u-s),x=(e+t)*o,M=(n+r)*m,A=(u+s)*y;return h[0]=2*o,h[4]=0,h[8]=0,h[12]=-x,h[1]=0,h[5]=2*m,h[9]=0,h[13]=-M,h[2]=0,h[6]=0,h[10]=-2*y,h[14]=-A,h[3]=0,h[7]=0,h[11]=0,h[15]=1,this},equals:function(t){for(var e=this.elements,n=t.elements,r=0;r<16;r++)if(e[r]!==n[r])return!1;return!0},fromArray:function(t,e){e===void 0&&(e=0);for(var n=0;n<16;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){t===void 0&&(t=[]),e===void 0&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}});var Bb=new Kn,Fb=new Wr;function Vc(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._order=r||Vc.DefaultOrder}Vc.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],Vc.DefaultOrder="XYZ",Object.defineProperties(Vc.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this._onChangeCallback()}}}),Object.assign(Vc.prototype,{isEuler:!0,set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._order=r||this._order,this._onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var r=Xn.clamp,s=t.elements,u=s[0],h=s[4],o=s[8],m=s[1],y=s[5],x=s[9],M=s[2],A=s[6],T=s[10];return e=e||this._order,e==="XYZ"?(this._y=Math.asin(r(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-x,T),this._z=Math.atan2(-h,u)):(this._x=Math.atan2(A,y),this._z=0)):e==="YXZ"?(this._x=Math.asin(-r(x,-1,1)),Math.abs(x)<.9999999?(this._y=Math.atan2(o,T),this._z=Math.atan2(m,y)):(this._y=Math.atan2(-M,u),this._z=0)):e==="ZXY"?(this._x=Math.asin(r(A,-1,1)),Math.abs(A)<.9999999?(this._y=Math.atan2(-M,T),this._z=Math.atan2(-h,y)):(this._y=0,this._z=Math.atan2(m,u))):e==="ZYX"?(this._y=Math.asin(-r(M,-1,1)),Math.abs(M)<.9999999?(this._x=Math.atan2(A,T),this._z=Math.atan2(m,u)):(this._x=0,this._z=Math.atan2(-h,y))):e==="YZX"?(this._z=Math.asin(r(m,-1,1)),Math.abs(m)<.9999999?(this._x=Math.atan2(-x,y),this._y=Math.atan2(-M,u)):(this._x=0,this._y=Math.atan2(o,T))):e==="XZY"?(this._z=Math.asin(-r(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(A,y),this._y=Math.atan2(o,u)):(this._x=Math.atan2(-x,T),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,n!==!1&&this._onChangeCallback(),this},setFromQuaternion:function(t,e,n){return Bb.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Bb,e,n)},setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(t){return Fb.setFromEuler(this),this.setFromQuaternion(Fb,t)},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new kt(this._x,this._y,this._z)},_onChange:function(t){return this._onChangeCallback=t,this},_onChangeCallback:function(){}});function zb(){this.mask=1}Object.assign(zb.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask|=1<<t|0},enableAll:function(){this.mask=-1},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},disableAll:function(){this.mask=0},test:function(t){return(this.mask&t.mask)!==0}});var w3=0,Nb=new kt,Gc=new Wr,Vs=new Kn,Qf=new kt,ed=new kt,A3=new kt,E3=new Wr,Ub=new kt(1,0,0),Vb=new kt(0,1,0),Gb=new kt(0,0,1),T3={type:"added"},P3={type:"removed"};function cn(){Object.defineProperty(this,"id",{value:w3++}),this.uuid=Xn.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=cn.DefaultUp.clone();var t=new kt,e=new Vc,n=new Wr,r=new kt(1,1,1);function s(){n.setFromEuler(e,!1)}function u(){e.setFromQuaternion(n,void 0,!1)}e._onChange(s),n._onChange(u),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Kn},normalMatrix:{value:new _r}}),this.matrix=new Kn,this.matrixWorld=new Kn,this.matrixAutoUpdate=cn.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new zb,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}cn.DefaultUp=new kt(0,1,0),cn.DefaultMatrixAutoUpdate=!0,cn.prototype=Object.assign(Object.create(Us.prototype),{constructor:cn,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(t,e){return Gc.setFromAxisAngle(t,e),this.quaternion.multiply(Gc),this},rotateOnWorldAxis:function(t,e){return Gc.setFromAxisAngle(t,e),this.quaternion.premultiply(Gc),this},rotateX:function(t){return this.rotateOnAxis(Ub,t)},rotateY:function(t){return this.rotateOnAxis(Vb,t)},rotateZ:function(t){return this.rotateOnAxis(Gb,t)},translateOnAxis:function(t,e){return Nb.copy(t).applyQuaternion(this.quaternion),this.position.add(Nb.multiplyScalar(e)),this},translateX:function(t){return this.translateOnAxis(Ub,t)},translateY:function(t){return this.translateOnAxis(Vb,t)},translateZ:function(t){return this.translateOnAxis(Gb,t)},localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(t){return t.applyMatrix4(Vs.getInverse(this.matrixWorld))},lookAt:function(t,e,n){t.isVector3?Qf.copy(t):Qf.set(t,e,n);var r=this.parent;this.updateWorldMatrix(!0,!1),ed.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Vs.lookAt(ed,Qf,this.up):Vs.lookAt(Qf,ed,this.up),this.quaternion.setFromRotationMatrix(Vs),r&&(Vs.extractRotation(r.matrixWorld),Gc.setFromRotationMatrix(Vs),this.quaternion.premultiply(Gc.inverse()))},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.parent!==null&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(T3)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}var n=this.children.indexOf(t);return n!==-1&&(t.parent=null,this.children.splice(n,1),t.dispatchEvent(P3)),this},attach:function(t){return this.updateWorldMatrix(!0,!1),Vs.getInverse(this.matrixWorld),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Vs.multiply(t.parent.matrixWorld)),t.applyMatrix4(Vs),t.updateWorldMatrix(!1,!1),this.add(t),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var n=0,r=this.children.length;n<r;n++){var s=this.children[n],u=s.getObjectByProperty(t,e);if(u!==void 0)return u}},getWorldPosition:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new kt),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),t=new Wr),this.updateMatrixWorld(!0),this.matrixWorld.decompose(ed,t,A3),t},getWorldScale:function(t){return t===void 0&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),t=new kt),this.updateMatrixWorld(!0),this.matrixWorld.decompose(ed,E3,t),t},getWorldDirection:function(t){t===void 0&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new kt),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].traverse(t)},traverseVisible:function(t){if(this.visible!==!1){t(this);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;e!==null&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var n=this.parent;if(t===!0&&n!==null&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),e===!0)for(var r=this.children,s=0,u=r.length;s<u;s++)r[s].updateWorldMatrix(!1,!0)},toJSON:function(t){var e=t===void 0||typeof t=="string",n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),JSON.stringify(this.userData)!=="{}"&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON());function s(k,z){return k[z.uuid]===void 0&&(k[z.uuid]=z.toJSON(t)),z.uuid}if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(t.geometries,this.geometry);var u=this.geometry.parameters;if(u!==void 0&&u.shapes!==void 0){var h=u.shapes;if(Array.isArray(h))for(var o=0,m=h.length;o<m;o++){var y=h[o];s(t.shapes,y)}else s(t.shapes,h)}}if(this.material!==void 0)if(Array.isArray(this.material)){for(var x=[],o=0,m=this.material.length;o<m;o++)x.push(s(t.materials,this.material[o]));r.material=x}else r.material=s(t.materials,this.material);if(this.children.length>0){r.children=[];for(var o=0;o<this.children.length;o++)r.children.push(this.children[o].toJSON(t).object)}if(e){var M=D(t.geometries),A=D(t.materials),T=D(t.textures),P=D(t.images),h=D(t.shapes);M.length>0&&(n.geometries=M),A.length>0&&(n.materials=A),T.length>0&&(n.textures=T),P.length>0&&(n.images=P),h.length>0&&(n.shapes=h)}return n.object=r,n;function D(k){var z=[];for(var O in k){var U=k[O];delete U.metadata,z.push(U)}return z}},clone:function(t){return new this.constructor().copy(this,t)},copy:function(t,e){if(e===void 0&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(var n=0;n<t.children.length;n++){var r=t.children[n];this.add(r.clone())}return this}});function Gs(){cn.call(this),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,typeof __THREE_DEVTOOLS__!="undefined"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Gs.prototype=Object.assign(Object.create(cn.prototype),{constructor:Gs,isScene:!0,copy:function(t,e){return cn.prototype.copy.call(this,t,e),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=cn.prototype.toJSON.call(this,t);return this.background!==null&&(e.object.background=this.background.toJSON(t)),this.environment!==null&&(e.object.environment=this.environment.toJSON(t)),this.fog!==null&&(e.object.fog=this.fog.toJSON()),e},dispose:function(){this.dispatchEvent({type:"dispose"})}});var Os=[new kt,new kt,new kt,new kt,new kt,new kt,new kt,new kt],nd=new kt,$f=new Vo,Oc=new kt,jc=new kt,Hc=new kt,va=new kt,_a=new kt,bl=new kt,id=new kt,tm=new kt,em=new kt,Ml=new kt;function Vo(t,e){this.min=t!==void 0?t:new kt(1/0,1/0,1/0),this.max=e!==void 0?e:new kt(-1/0,-1/0,-1/0)}Object.assign(Vo.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,r=1/0,s=-1/0,u=-1/0,h=-1/0,o=0,m=t.length;o<m;o+=3){var y=t[o],x=t[o+1],M=t[o+2];y<e&&(e=y),x<n&&(n=x),M<r&&(r=M),y>s&&(s=y),x>u&&(u=x),M>h&&(h=M)}return this.min.set(e,n,r),this.max.set(s,u,h),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,r=1/0,s=-1/0,u=-1/0,h=-1/0,o=0,m=t.count;o<m;o++){var y=t.getX(o),x=t.getY(o),M=t.getZ(o);y<e&&(e=y),x<n&&(n=x),M<r&&(r=M),y>s&&(s=y),x>u&&(u=x),M>h&&(h=M)}return this.min.set(e,n,r),this.max.set(s,u,h),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(t,e){var n=nd.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this},setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return t===void 0&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new kt),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return t===void 0&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new kt),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(t){t.updateWorldMatrix(!1,!1);var e=t.geometry;e!==void 0&&(e.boundingBox===null&&e.computeBoundingBox(),$f.copy(e.boundingBox),$f.applyMatrix4(t.matrixWorld),this.expandByPoint($f.min),this.expandByPoint($f.max));for(var n=t.children,r=0,s=n.length;r<s;r++)this.expandByObject(n[r]);return this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new kt),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(t){return this.clampPoint(t.center,nd),nd.distanceToSquared(t.center)<=t.radius*t.radius},intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant},intersectsTriangle:function(t){if(this.isEmpty())return!1;this.getCenter(id),tm.subVectors(this.max,id),Oc.subVectors(t.a,id),jc.subVectors(t.b,id),Hc.subVectors(t.c,id),va.subVectors(jc,Oc),_a.subVectors(Hc,jc),bl.subVectors(Oc,Hc);var e=[0,-va.z,va.y,0,-_a.z,_a.y,0,-bl.z,bl.y,va.z,0,-va.x,_a.z,0,-_a.x,bl.z,0,-bl.x,-va.y,va.x,0,-_a.y,_a.x,0,-bl.y,bl.x,0];return!W0(e,Oc,jc,Hc,tm)||(e=[1,0,0,0,1,0,0,0,1],!W0(e,Oc,jc,Hc,tm))?!1:(em.crossVectors(va,_a),e=[em.x,em.y,em.z],W0(e,Oc,jc,Hc,tm))},clampPoint:function(t,e){return e===void 0&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new kt),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(t){var e=nd.copy(t).clamp(this.min,this.max);return e.sub(t).length()},getBoundingSphere:function(t){return t===void 0&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(t.center),t.radius=this.getSize(nd).length()*.5,t},intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:function(t){return this.isEmpty()?this:(Os[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Os[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Os[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Os[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Os[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Os[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Os[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Os[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Os),this)},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}});function W0(t,e,n,r,s){var u,h;for(u=0,h=t.length-3;u<=h;u+=3){Ml.fromArray(t,u);var o=s.x*Math.abs(Ml.x)+s.y*Math.abs(Ml.y)+s.z*Math.abs(Ml.z),m=e.dot(Ml),y=n.dot(Ml),x=r.dot(Ml);if(Math.max(-Math.max(m,y,x),Math.min(m,y,x))>o)return!1}return!0}var S3=new Vo;function js(t,e){this.center=t!==void 0?t:new kt,this.radius=e!==void 0?e:0}Object.assign(js.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(t,e){var n=this.center;e!==void 0?n.copy(e):S3.setFromPoints(t).getCenter(n);for(var r=0,s=0,u=t.length;s<u;s++)r=Math.max(r,n.distanceToSquared(t[s]));return this.radius=Math.sqrt(r),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return this.radius<=0},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var n=this.center.distanceToSquared(t);return e===void 0&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new kt),e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return t===void 0&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new Vo),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}});var Hs=new kt,q0=new kt,nm=new kt,ba=new kt,Y0=new kt,im=new kt,X0=new kt;function Wc(t,e){this.origin=t!==void 0?t:new kt,this.direction=e!==void 0?e:new kt(0,0,-1)}Object.assign(Wc.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return e===void 0&&(console.warn("THREE.Ray: .at() target is now required"),e=new kt),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(t){return this.origin.copy(this.at(t,Hs)),this},closestPointToPoint:function(t,e){e===void 0&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new kt),e.subVectors(t,this.origin);var n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(t){var e=Hs.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Hs.copy(this.direction).multiplyScalar(e).add(this.origin),Hs.distanceToSquared(t))},distanceSqToSegment:function(t,e,n,r){q0.copy(t).add(e).multiplyScalar(.5),nm.copy(e).sub(t).normalize(),ba.copy(this.origin).sub(q0);var s=t.distanceTo(e)*.5,u=-this.direction.dot(nm),h=ba.dot(this.direction),o=-ba.dot(nm),m=ba.lengthSq(),y=Math.abs(1-u*u),x,M,A,T;if(y>0)if(x=u*o-h,M=u*h-o,T=s*y,x>=0)if(M>=-T)if(M<=T){var P=1/y;x*=P,M*=P,A=x*(x+u*M+2*h)+M*(u*x+M+2*o)+m}else M=s,x=Math.max(0,-(u*M+h)),A=-x*x+M*(M+2*o)+m;else M=-s,x=Math.max(0,-(u*M+h)),A=-x*x+M*(M+2*o)+m;else M<=-T?(x=Math.max(0,-(-u*s+h)),M=x>0?-s:Math.min(Math.max(-s,-o),s),A=-x*x+M*(M+2*o)+m):M<=T?(x=0,M=Math.min(Math.max(-s,-o),s),A=M*(M+2*o)+m):(x=Math.max(0,-(u*s+h)),M=x>0?s:Math.min(Math.max(-s,-o),s),A=-x*x+M*(M+2*o)+m);else M=u>0?-s:s,x=Math.max(0,-(u*M+h)),A=-x*x+M*(M+2*o)+m;return n&&n.copy(this.direction).multiplyScalar(x).add(this.origin),r&&r.copy(nm).multiplyScalar(M).add(q0),A},intersectSphere:function(t,e){Hs.subVectors(t.center,this.origin);var n=Hs.dot(this.direction),r=Hs.dot(Hs)-n*n,s=t.radius*t.radius;if(r>s)return null;var u=Math.sqrt(s-r),h=n-u,o=n+u;return h<0&&o<0?null:h<0?this.at(o,e):this.at(h,e)},intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(e===0)return t.distanceToPoint(this.origin)===0?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return n===null?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);if(e===0)return!0;var n=t.normal.dot(this.direction);return n*e<0},intersectBox:function(t,e){var n,r,s,u,h,o,m=1/this.direction.x,y=1/this.direction.y,x=1/this.direction.z,M=this.origin;return m>=0?(n=(t.min.x-M.x)*m,r=(t.max.x-M.x)*m):(n=(t.max.x-M.x)*m,r=(t.min.x-M.x)*m),y>=0?(s=(t.min.y-M.y)*y,u=(t.max.y-M.y)*y):(s=(t.max.y-M.y)*y,u=(t.min.y-M.y)*y),n>u||s>r||((s>n||n!==n)&&(n=s),(u<r||r!==r)&&(r=u),x>=0?(h=(t.min.z-M.z)*x,o=(t.max.z-M.z)*x):(h=(t.max.z-M.z)*x,o=(t.min.z-M.z)*x),n>o||h>r)||((h>n||n!==n)&&(n=h),(o<r||r!==r)&&(r=o),r<0)?null:this.at(n>=0?n:r,e)},intersectsBox:function(t){return this.intersectBox(t,Hs)!==null},intersectTriangle:function(t,e,n,r,s){Y0.subVectors(e,t),im.subVectors(n,t),X0.crossVectors(Y0,im);var u=this.direction.dot(X0),h;if(u>0){if(r)return null;h=1}else if(u<0)h=-1,u=-u;else return null;ba.subVectors(this.origin,t);var o=h*this.direction.dot(im.crossVectors(ba,im));if(o<0)return null;var m=h*this.direction.dot(Y0.cross(ba));if(m<0||o+m>u)return null;var y=-h*ba.dot(X0);return y<0?null:this.at(y/u,s)},applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}});var K0=new kt,C3=new kt,D3=new _r;function as(t,e){this.normal=t!==void 0?t:new kt(1,0,0),this.constant=e!==void 0?e:0}Object.assign(as.prototype,{isPlane:!0,set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(t,e,n){var r=K0.subVectors(n,e).cross(C3.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return e===void 0&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new kt),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(t,e){e===void 0&&(console.warn("THREE.Plane: .intersectLine() target is now required"),e=new kt);var n=t.delta(K0),r=this.normal.dot(n);if(r===0)return this.distanceToPoint(t.start)===0?e.copy(t.start):void 0;var s=-(t.start.dot(this.normal)+this.constant)/r;if(!(s<0||s>1))return e.copy(n).multiplyScalar(s).add(t.start)},intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return t===void 0&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new kt),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(t,e){var n=e||D3.getNormalMatrix(t),r=this.coplanarPoint(K0).applyMatrix4(t),s=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(s),this},translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}});var Go=new kt,Ws=new kt,Z0=new kt,qs=new kt,qc=new kt,Yc=new kt,Ob=new kt,J0=new kt,Q0=new kt,$0=new kt;function mr(t,e,n){this.a=t!==void 0?t:new kt,this.b=e!==void 0?e:new kt,this.c=n!==void 0?n:new kt}Object.assign(mr,{getNormal:function(t,e,n,r){r===void 0&&(console.warn("THREE.Triangle: .getNormal() target is now required"),r=new kt),r.subVectors(n,e),Go.subVectors(t,e),r.cross(Go);var s=r.lengthSq();return s>0?r.multiplyScalar(1/Math.sqrt(s)):r.set(0,0,0)},getBarycoord:function(t,e,n,r,s){Go.subVectors(r,e),Ws.subVectors(n,e),Z0.subVectors(t,e);var u=Go.dot(Go),h=Go.dot(Ws),o=Go.dot(Z0),m=Ws.dot(Ws),y=Ws.dot(Z0),x=u*m-h*h;if(s===void 0&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),s=new kt),x===0)return s.set(-2,-1,-1);var M=1/x,A=(m*o-h*y)*M,T=(u*y-h*o)*M;return s.set(1-A-T,T,A)},containsPoint:function(t,e,n,r){return mr.getBarycoord(t,e,n,r,qs),qs.x>=0&&qs.y>=0&&qs.x+qs.y<=1},getUV:function(t,e,n,r,s,u,h,o){return this.getBarycoord(t,e,n,r,qs),o.set(0,0),o.addScaledVector(s,qs.x),o.addScaledVector(u,qs.y),o.addScaledVector(h,qs.z),o},isFrontFacing:function(t,e,n,r){return Go.subVectors(n,e),Ws.subVectors(t,e),Go.cross(Ws).dot(r)<0}}),Object.assign(mr.prototype,{set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),this},clone:function(){return new this.constructor().copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){return Go.subVectors(this.c,this.b),Ws.subVectors(this.a,this.b),Go.cross(Ws).length()*.5},getMidpoint:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new kt),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return mr.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return t===void 0&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new as),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return mr.getBarycoord(t,this.a,this.b,this.c,e)},getUV:function(t,e,n,r,s){return mr.getUV(t,this.a,this.b,this.c,e,n,r,s)},containsPoint:function(t){return mr.containsPoint(t,this.a,this.b,this.c)},isFrontFacing:function(t){return mr.isFrontFacing(this.a,this.b,this.c,t)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(t,e){e===void 0&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),e=new kt);var n=this.a,r=this.b,s=this.c,u,h;qc.subVectors(r,n),Yc.subVectors(s,n),J0.subVectors(t,n);var o=qc.dot(J0),m=Yc.dot(J0);if(o<=0&&m<=0)return e.copy(n);Q0.subVectors(t,r);var y=qc.dot(Q0),x=Yc.dot(Q0);if(y>=0&&x<=y)return e.copy(r);var M=o*x-y*m;if(M<=0&&o>=0&&y<=0)return u=o/(o-y),e.copy(n).addScaledVector(qc,u);$0.subVectors(t,s);var A=qc.dot($0),T=Yc.dot($0);if(T>=0&&A<=T)return e.copy(s);var P=A*m-o*T;if(P<=0&&m>=0&&T<=0)return h=m/(m-T),e.copy(n).addScaledVector(Yc,h);var D=y*T-A*x;if(D<=0&&x-y>=0&&A-T>=0)return Ob.subVectors(s,r),h=(x-y)/(x-y+(A-T)),e.copy(r).addScaledVector(Ob,h);var k=1/(D+P+M);return u=P*k,h=M*k,e.copy(n).addScaledVector(qc,u).addScaledVector(Yc,h)},equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}});var jb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Oo={h:0,s:0,l:0},rm={h:0,s:0,l:0};function sn(t,e,n){return e===void 0&&n===void 0?this.set(t):this.setRGB(t,e,n)}function tx(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}function ex(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function nx(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}Object.assign(sn.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):typeof t=="number"?this.setHex(t):typeof t=="string"&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(t,e,n){if(t=Xn.euclideanModulo(t,1),e=Xn.clamp(e,0,1),n=Xn.clamp(n,0,1),e===0)this.r=this.g=this.b=n;else{var r=n<=.5?n*(1+e):n+e-n*e,s=2*n-r;this.r=tx(s,r,t+1/3),this.g=tx(s,r,t),this.b=tx(s,r,t-1/3)}return this},setStyle:function(t){function e(M){M!==void 0&&parseFloat(M)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var r,s=n[1],u=n[2];switch(s){case"rgb":case"rgba":if(r=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,e(r[5]),this;if(r=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,e(r[5]),this;break;case"hsl":case"hsla":if(r=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(u)){var h=parseFloat(r[1])/360,o=parseInt(r[2],10)/100,m=parseInt(r[3],10)/100;return e(r[5]),this.setHSL(h,o,m)}break}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(t)){var y=n[1],x=y.length;if(x===3)return this.r=parseInt(y.charAt(0)+y.charAt(0),16)/255,this.g=parseInt(y.charAt(1)+y.charAt(1),16)/255,this.b=parseInt(y.charAt(2)+y.charAt(2),16)/255,this;if(x===6)return this.r=parseInt(y.charAt(0)+y.charAt(1),16)/255,this.g=parseInt(y.charAt(2)+y.charAt(3),16)/255,this.b=parseInt(y.charAt(4)+y.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this},setColorName:function(t){var e=jb[t];return e!==void 0?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return e===void 0&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){e===void 0&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(t){return this.r=ex(t.r),this.g=ex(t.g),this.b=ex(t.b),this},copyLinearToSRGB:function(t){return this.r=nx(t.r),this.g=nx(t.g),this.b=nx(t.b),this},convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),this},getHex:function(){return this.r*255<<16^this.g*255<<8^this.b*255<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){t===void 0&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e=this.r,n=this.g,r=this.b,s=Math.max(e,n,r),u=Math.min(e,n,r),h,o,m=(u+s)/2;if(u===s)h=0,o=0;else{var y=s-u;switch(o=m<=.5?y/(s+u):y/(2-s-u),s){case e:h=(n-r)/y+(n<r?6:0);break;case n:h=(r-e)/y+2;break;case r:h=(e-n)/y+4;break}h/=6}return t.h=h,t.s=o,t.l=m,t},getStyle:function(){return"rgb("+(this.r*255|0)+","+(this.g*255|0)+","+(this.b*255|0)+")"},offsetHSL:function(t,e,n){return this.getHSL(Oo),Oo.h+=t,Oo.s+=e,Oo.l+=n,this.setHSL(Oo.h,Oo.s,Oo.l),this},add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:function(t,e){this.getHSL(Oo),t.getHSL(rm);var n=Xn.lerp(Oo.h,rm.h,e),r=Xn.lerp(Oo.s,rm.s,e),s=Xn.lerp(Oo.l,rm.l,e);return this.setHSL(n,r,s),this},equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return e===void 0&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return t===void 0&&(t=[]),e===void 0&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}}),sn.NAMES=jb;function om(t,e,n,r,s,u){this.a=t,this.b=e,this.c=n,this.normal=r&&r.isVector3?r:new kt,this.vertexNormals=Array.isArray(r)?r:[],this.color=s&&s.isColor?s:new sn,this.vertexColors=Array.isArray(s)?s:[],this.materialIndex=u!==void 0?u:0}Object.assign(om.prototype,{clone:function(){return new this.constructor().copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,n=t.vertexNormals.length;e<n;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(var e=0,n=t.vertexColors.length;e<n;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}});var R3=0;function zn(){Object.defineProperty(this,"id",{value:R3++}),this.uuid=Xn.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=qh,this.side=Dc,this.flatShading=!1,this.vertexTangents=!1,this.vertexColors=cb,this.opacity=1,this.transparent=!1,this.blendSrc=mb,this.blendDst=gb,this.blendEquation=Lc,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=L0,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=v3,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=j0,this.stencilZFail=j0,this.stencilZPass=j0,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}zn.prototype=Object.assign(Object.create(Us.prototype),{constructor:zn,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(t!==void 0)for(var e in t){var n=t[e];if(n===void 0){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if(e==="shading"){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===lb;continue}var r=this[e];if(r===void 0){console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.");continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]=n}},toJSON:function(t){var e=t===void 0||typeof t=="string";e&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(n.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,n.refractionRatio=this.refractionRatio,this.combine!==void 0&&(n.combine=this.combine),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==qh&&(n.blending=this.blending),this.flatShading===!0&&(n.flatShading=this.flatShading),this.side!==Dc&&(n.side=this.side),this.vertexColors!==cb&&(n.vertexColors=this.vertexColors),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=this.premultipliedAlpha),this.wireframe===!0&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.morphTargets===!0&&(n.morphTargets=!0),this.morphNormals===!0&&(n.morphNormals=!0),this.skinning===!0&&(n.skinning=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),JSON.stringify(this.userData)!=="{}"&&(n.userData=this.userData);function r(h){var o=[];for(var m in h){var y=h[m];delete y.metadata,o.push(y)}return o}if(e){var s=r(t.textures),u=r(t.images);s.length>0&&(n.textures=s),u.length>0&&(n.images=u)}return n},clone:function(){return new this.constructor().copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexTangents=t.vertexTangents,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;var e=t.clippingPlanes,n=null;if(e!==null){var r=e.length;n=new Array(r);for(var s=0;s!==r;++s)n[s]=e[s].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(zn.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}});function gr(t){zn.call(this),this.type="MeshBasicMaterial",this.color=new sn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Of,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.setValues(t)}gr.prototype=Object.create(zn.prototype),gr.prototype.constructor=gr,gr.prototype.isMeshBasicMaterial=!0,gr.prototype.copy=function(t){return zn.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this};var vi=new kt;function Nn(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=t!==void 0?t.length/e:0,this.normalized=n===!0,this.usage=Zf,this.updateRange={offset:0,count:-1},this.version=0}Object.defineProperty(Nn.prototype,"needsUpdate",{set:function(t){t===!0&&this.version++}}),Object.assign(Nn.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;for(var r=0,s=this.itemSize;r<s;r++)this.array[t+r]=e.array[n+r];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),u=new sn),e[n++]=u.r,e[n++]=u.g,e[n++]=u.b}return this},copyVector2sArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),u=new ke),e[n++]=u.x,e[n++]=u.y}return this},copyVector3sArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),u=new kt),e[n++]=u.x,e[n++]=u.y,e[n++]=u.z}return this},copyVector4sArray:function(t){for(var e=this.array,n=0,r=0,s=t.length;r<s;r++){var u=t[r];u===void 0&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),u=new Mi),e[n++]=u.x,e[n++]=u.y,e[n++]=u.z,e[n++]=u.w}return this},applyMatrix3:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.applyMatrix3(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},applyMatrix4:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.applyMatrix4(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},applyNormalMatrix:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.applyNormalMatrix(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},transformDirection:function(t){for(var e=0,n=this.count;e<n;e++)vi.x=this.getX(e),vi.y=this.getY(e),vi.z=this.getZ(e),vi.transformDirection(t),this.setXYZ(e,vi.x,vi.y,vi.z);return this},set:function(t,e){return e===void 0&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this},setXYZW:function(t,e,n,r,s){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this.array[t+3]=s,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized}}});function ix(t,e,n){Nn.call(this,new Int8Array(t),e,n)}ix.prototype=Object.create(Nn.prototype),ix.prototype.constructor=ix;function rx(t,e,n){Nn.call(this,new Uint8Array(t),e,n)}rx.prototype=Object.create(Nn.prototype),rx.prototype.constructor=rx;function ox(t,e,n){Nn.call(this,new Uint8ClampedArray(t),e,n)}ox.prototype=Object.create(Nn.prototype),ox.prototype.constructor=ox;function sx(t,e,n){Nn.call(this,new Int16Array(t),e,n)}sx.prototype=Object.create(Nn.prototype),sx.prototype.constructor=sx;function rd(t,e,n){Nn.call(this,new Uint16Array(t),e,n)}rd.prototype=Object.create(Nn.prototype),rd.prototype.constructor=rd;function ax(t,e,n){Nn.call(this,new Int32Array(t),e,n)}ax.prototype=Object.create(Nn.prototype),ax.prototype.constructor=ax;function od(t,e,n){Nn.call(this,new Uint32Array(t),e,n)}od.prototype=Object.create(Nn.prototype),od.prototype.constructor=od;function dn(t,e,n){Nn.call(this,new Float32Array(t),e,n)}dn.prototype=Object.create(Nn.prototype),dn.prototype.constructor=dn;function lx(t,e,n){Nn.call(this,new Float64Array(t),e,n)}lx.prototype=Object.create(Nn.prototype),lx.prototype.constructor=lx;function Hb(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingBox=null,this.boundingSphere=null,this.verticesNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1}Object.assign(Hb.prototype,{computeGroups:function(t){for(var e,n=[],r=void 0,s=t.faces,u=0;u<s.length;u++){var h=s[u];h.materialIndex!==r&&(r=h.materialIndex,e!==void 0&&(e.count=u*3-e.start,n.push(e)),e={start:u*3,materialIndex:r})}e!==void 0&&(e.count=u*3-e.start,n.push(e)),this.groups=n},fromGeometry:function(t){var e=t.faces,n=t.vertices,r=t.faceVertexUvs,s=r[0]&&r[0].length>0,u=r[1]&&r[1].length>0,h=t.morphTargets,o=h.length,m;if(o>0){m=[];for(var y=0;y<o;y++)m[y]={name:h[y].name,data:[]};this.morphTargets.position=m}var x=t.morphNormals,M=x.length,A;if(M>0){A=[];for(var y=0;y<M;y++)A[y]={name:x[y].name,data:[]};this.morphTargets.normal=A}var T=t.skinIndices,P=t.skinWeights,D=T.length===n.length,k=P.length===n.length;n.length>0&&e.length===0&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(var y=0;y<e.length;y++){var z=e[y];this.vertices.push(n[z.a],n[z.b],n[z.c]);var O=z.vertexNormals;if(O.length===3)this.normals.push(O[0],O[1],O[2]);else{var U=z.normal;this.normals.push(U,U,U)}var H=z.vertexColors;if(H.length===3)this.colors.push(H[0],H[1],H[2]);else{var V=z.color;this.colors.push(V,V,V)}if(s===!0){var W=r[0][y];W!==void 0?this.uvs.push(W[0],W[1],W[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",y),this.uvs.push(new ke,new ke,new ke))}if(u===!0){var W=r[1][y];W!==void 0?this.uvs2.push(W[0],W[1],W[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",y),this.uvs2.push(new ke,new ke,new ke))}for(var K=0;K<o;K++){var Z=h[K].vertices;m[K].data.push(Z[z.a],Z[z.b],Z[z.c])}for(var K=0;K<M;K++){var tt=x[K].vertexNormals[y];A[K].data.push(tt.a,tt.b,tt.c)}D&&this.skinIndices.push(T[z.a],T[z.b],T[z.c]),k&&this.skinWeights.push(P[z.a],P[z.b],P[z.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this}});function Wb(t){if(t.length===0)return-1/0;for(var e=t[0],n=1,r=t.length;n<r;++n)t[n]>e&&(e=t[n]);return e}var L3=1,ls=new Kn,cx=new cn,Xc=new kt,fo=new Vo,sd=new Vo,tr=new kt;function wn(){Object.defineProperty(this,"id",{value:L3+=2}),this.uuid=Xn.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}wn.prototype=Object.assign(Object.create(Us.prototype),{constructor:wn,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(Wb(t)>65535?od:rd)(t,1):this.index=t},getAttribute:function(t){return this.attributes[t]},setAttribute:function(t,e){return this.attributes[t]=e,this},deleteAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:n!==void 0?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix4:function(t){var e=this.attributes.position;e!==void 0&&(e.applyMatrix4(t),e.needsUpdate=!0);var n=this.attributes.normal;if(n!==void 0){var r=new _r().getNormalMatrix(t);n.applyNormalMatrix(r),n.needsUpdate=!0}var s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(t),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},rotateX:function(t){return ls.makeRotationX(t),this.applyMatrix4(ls),this},rotateY:function(t){return ls.makeRotationY(t),this.applyMatrix4(ls),this},rotateZ:function(t){return ls.makeRotationZ(t),this.applyMatrix4(ls),this},translate:function(t,e,n){return ls.makeTranslation(t,e,n),this.applyMatrix4(ls),this},scale:function(t,e,n){return ls.makeScale(t,e,n),this.applyMatrix4(ls),this},lookAt:function(t){return cx.lookAt(t),cx.updateMatrix(),this.applyMatrix4(cx.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Xc).negate(),this.translate(Xc.x,Xc.y,Xc.z),this},setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new dn(e.vertices.length*3,3),r=new dn(e.colors.length*3,3);if(this.setAttribute("position",n.copyVector3sArray(e.vertices)),this.setAttribute("color",r.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var s=new dn(e.lineDistances.length,1);this.setAttribute("lineDistance",s.copyArray(e.lineDistances))}e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],n=0,r=t.length;n<r;n++){var s=t[n];e.push(s.x,s.y,s.z||0)}return this.setAttribute("position",new dn(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(e.elementsNeedUpdate===!0&&(n=void 0,e.elementsNeedUpdate=!1),n===void 0)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var r;return e.verticesNeedUpdate===!0&&(r=this.attributes.position,r!==void 0&&(r.copyVector3sArray(e.vertices),r.needsUpdate=!0),e.verticesNeedUpdate=!1),e.normalsNeedUpdate===!0&&(r=this.attributes.normal,r!==void 0&&(r.copyVector3sArray(e.normals),r.needsUpdate=!0),e.normalsNeedUpdate=!1),e.colorsNeedUpdate===!0&&(r=this.attributes.color,r!==void 0&&(r.copyColorsArray(e.colors),r.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(r=this.attributes.uv,r!==void 0&&(r.copyVector2sArray(e.uvs),r.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(r=this.attributes.lineDistance,r!==void 0&&(r.copyArray(e.lineDistances),r.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=new Hb().fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(t.vertices.length*3);if(this.setAttribute("position",new Nn(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(t.normals.length*3);this.setAttribute("normal",new Nn(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var r=new Float32Array(t.colors.length*3);this.setAttribute("color",new Nn(r,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var s=new Float32Array(t.uvs.length*2);this.setAttribute("uv",new Nn(s,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var u=new Float32Array(t.uvs2.length*2);this.setAttribute("uv2",new Nn(u,2).copyVector2sArray(t.uvs2))}this.groups=t.groups;for(var h in t.morphTargets){for(var o=[],m=t.morphTargets[h],y=0,x=m.length;y<x;y++){var M=m[y],A=new dn(M.data.length*3,3);A.name=M.name,o.push(A.copyVector3sArray(M.data))}this.morphAttributes[h]=o}if(t.skinIndices.length>0){var T=new dn(t.skinIndices.length*4,4);this.setAttribute("skinIndex",T.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var P=new dn(t.skinWeights.length*4,4);this.setAttribute("skinWeight",P.copyVector4sArray(t.skinWeights))}return t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new Vo);var t=this.attributes.position,e=this.morphAttributes.position;if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),e)for(var n=0,r=e.length;n<r;n++){var s=e[n];fo.setFromBufferAttribute(s),this.morphTargetsRelative?(tr.addVectors(this.boundingBox.min,fo.min),this.boundingBox.expandByPoint(tr),tr.addVectors(this.boundingBox.max,fo.max),this.boundingBox.expandByPoint(tr)):(this.boundingBox.expandByPoint(fo.min),this.boundingBox.expandByPoint(fo.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new js);var t=this.attributes.position,e=this.morphAttributes.position;if(t){var n=this.boundingSphere.center;if(fo.setFromBufferAttribute(t),e)for(var r=0,s=e.length;r<s;r++){var u=e[r];sd.setFromBufferAttribute(u),this.morphTargetsRelative?(tr.addVectors(fo.min,sd.min),fo.expandByPoint(tr),tr.addVectors(fo.max,sd.max),fo.expandByPoint(tr)):(fo.expandByPoint(sd.min),fo.expandByPoint(sd.max))}fo.getCenter(n);for(var h=0,r=0,s=t.count;r<s;r++)tr.fromBufferAttribute(t,r),h=Math.max(h,n.distanceToSquared(tr));if(e)for(var r=0,s=e.length;r<s;r++)for(var u=e[r],o=this.morphTargetsRelative,m=0,y=u.count;m<y;m++)tr.fromBufferAttribute(u,m),o&&(Xc.fromBufferAttribute(t,m),tr.add(Xc)),h=Math.max(h,n.distanceToSquared(tr));this.boundingSphere.radius=Math.sqrt(h),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes;if(e.position){var n=e.position.array;if(e.normal===void 0)this.setAttribute("normal",new Nn(new Float32Array(n.length),3));else for(var r=e.normal.array,s=0,u=r.length;s<u;s++)r[s]=0;var h=e.normal.array,o,m,y,x=new kt,M=new kt,A=new kt,T=new kt,P=new kt;if(t)for(var D=t.array,s=0,u=t.count;s<u;s+=3)o=D[s+0]*3,m=D[s+1]*3,y=D[s+2]*3,x.fromArray(n,o),M.fromArray(n,m),A.fromArray(n,y),T.subVectors(A,M),P.subVectors(x,M),T.cross(P),h[o]+=T.x,h[o+1]+=T.y,h[o+2]+=T.z,h[m]+=T.x,h[m+1]+=T.y,h[m+2]+=T.z,h[y]+=T.x,h[y+1]+=T.y,h[y+2]+=T.z;else for(var s=0,u=n.length;s<u;s+=9)x.fromArray(n,s),M.fromArray(n,s+3),A.fromArray(n,s+6),T.subVectors(A,M),P.subVectors(x,M),T.cross(P),h[s]=T.x,h[s+1]=T.y,h[s+2]=T.z,h[s+3]=T.x,h[s+4]=T.y,h[s+5]=T.z,h[s+6]=T.x,h[s+7]=T.y,h[s+8]=T.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(!(t&&t.isBufferGeometry)){console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);return}e===void 0&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n=this.attributes;for(var r in n)if(t.attributes[r]!==void 0)for(var s=n[r],u=s.array,h=t.attributes[r],o=h.array,m=h.itemSize*e,y=Math.min(o.length,u.length-m),x=0,M=m;x<y;x++,M++)u[M]=o[x];return this},normalizeNormals:function(){for(var t=this.attributes.normal,e=0,n=t.count;e<n;e++)tr.x=t.getX(e),tr.y=t.getY(e),tr.z=t.getZ(e),tr.normalize(),t.setXYZ(e,tr.x,tr.y,tr.z)},toNonIndexed:function(){function t(D,k){for(var z=D.array,O=D.itemSize,U=new z.constructor(k.length*O),H=0,V=0,W=0,K=k.length;W<K;W++){H=k[W]*O;for(var Z=0;Z<O;Z++)U[V++]=z[H++]}return new Nn(U,O)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var e=new wn,n=this.index.array,r=this.attributes;for(var s in r){var u=r[s],h=t(u,n);e.setAttribute(s,h)}var o=this.morphAttributes;for(s in o){for(var m=[],y=o[s],x=0,M=y.length;x<M;x++){var u=y[x],h=t(u,n);m.push(h)}e.morphAttributes[s]=m}e.morphTargetsRelative=this.morphTargetsRelative;for(var A=this.groups,x=0,T=A.length;x<T;x++){var P=A[x];e.addGroup(P.start,P.count,P.materialIndex)}return e},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),this.parameters!==void 0){var e=this.parameters;for(var n in e)e[n]!==void 0&&(t[n]=e[n]);return t}t.data={attributes:{}};var r=this.index;r!==null&&(t.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var s=this.attributes;for(var n in s){var u=s[n],h=u.toJSON();u.name!==""&&(h.name=u.name),t.data.attributes[n]=h}var o={},m=!1;for(var n in this.morphAttributes){for(var y=this.morphAttributes[n],x=[],M=0,A=y.length;M<A;M++){var u=y[M],h=u.toJSON();u.name!==""&&(h.name=u.name),x.push(h)}x.length>0&&(o[n]=x,m=!0)}m&&(t.data.morphAttributes=o,t.data.morphTargetsRelative=this.morphTargetsRelative);var T=this.groups;T.length>0&&(t.data.groups=JSON.parse(JSON.stringify(T)));var P=this.boundingSphere;return P!==null&&(t.data.boundingSphere={center:P.center.toArray(),radius:P.radius}),t},clone:function(){return new wn().copy(this)},copy:function(t){var e,n,r;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var s=t.index;s!==null&&this.setIndex(s.clone());var u=t.attributes;for(e in u){var h=u[e];this.setAttribute(e,h.clone())}var o=t.morphAttributes;for(e in o){var m=[],y=o[e];for(n=0,r=y.length;n<r;n++)m.push(y[n].clone());this.morphAttributes[e]=m}this.morphTargetsRelative=t.morphTargetsRelative;var x=t.groups;for(n=0,r=x.length;n<r;n++){var M=x[n];this.addGroup(M.start,M.count,M.materialIndex)}var A=t.boundingBox;A!==null&&(this.boundingBox=A.clone());var T=t.boundingSphere;return T!==null&&(this.boundingSphere=T.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var qb=new Kn,wl=new Wc,ux=new js,Al=new kt,El=new kt,Tl=new kt,hx=new kt,dx=new kt,px=new kt,sm=new kt,am=new kt,lm=new kt,Kc=new ke,Zc=new ke,Jc=new ke,ad=new kt,cm=new kt;function ki(t,e){cn.call(this),this.type="Mesh",this.geometry=t!==void 0?t:new wn,this.material=e!==void 0?e:new gr,this.updateMorphTargets()}ki.prototype=Object.assign(Object.create(cn.prototype),{constructor:ki,isMesh:!0,copy:function(t){return cn.prototype.copy.call(this,t),t.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),t.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t=this.geometry,e,n,r;if(t.isBufferGeometry){var s=t.morphAttributes,u=Object.keys(s);if(u.length>0){var h=s[u[0]];if(h!==void 0)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},e=0,n=h.length;e<n;e++)r=h[e].name||String(e),this.morphTargetInfluences.push(0),this.morphTargetDictionary[r]=e}}else{var o=t.morphTargets;o!==void 0&&o.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(t,e){var n=this.geometry,r=this.material,s=this.matrixWorld;if(r!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),ux.copy(n.boundingSphere),ux.applyMatrix4(s),t.ray.intersectsSphere(ux)!==!1&&(qb.getInverse(s),wl.copy(t.ray).applyMatrix4(qb),!(n.boundingBox!==null&&wl.intersectsBox(n.boundingBox)===!1)))){var u;if(n.isBufferGeometry){var h,o,m,y=n.index,x=n.attributes.position,M=n.morphAttributes.position,A=n.morphTargetsRelative,T=n.attributes.uv,P=n.attributes.uv2,D=n.groups,k=n.drawRange,z,O,U,H,V,W,K,Z;if(y!==null)if(Array.isArray(r))for(z=0,U=D.length;z<U;z++)for(V=D[z],W=r[V.materialIndex],K=Math.max(V.start,k.start),Z=Math.min(V.start+V.count,k.start+k.count),O=K,H=Z;O<H;O+=3)h=y.getX(O),o=y.getX(O+1),m=y.getX(O+2),u=um(this,W,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(O/3),u.face.materialIndex=V.materialIndex,e.push(u));else for(K=Math.max(0,k.start),Z=Math.min(y.count,k.start+k.count),z=K,U=Z;z<U;z+=3)h=y.getX(z),o=y.getX(z+1),m=y.getX(z+2),u=um(this,r,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(z/3),e.push(u));else if(x!==void 0)if(Array.isArray(r))for(z=0,U=D.length;z<U;z++)for(V=D[z],W=r[V.materialIndex],K=Math.max(V.start,k.start),Z=Math.min(V.start+V.count,k.start+k.count),O=K,H=Z;O<H;O+=3)h=O,o=O+1,m=O+2,u=um(this,W,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(O/3),u.face.materialIndex=V.materialIndex,e.push(u));else for(K=Math.max(0,k.start),Z=Math.min(x.count,k.start+k.count),z=K,U=Z;z<U;z+=3)h=z,o=z+1,m=z+2,u=um(this,r,t,wl,x,M,A,T,P,h,o,m),u&&(u.faceIndex=Math.floor(z/3),e.push(u))}else if(n.isGeometry){var tt,at,st,nt=Array.isArray(r),ct=n.vertices,xt=n.faces,vt,Zt=n.faceVertexUvs[0];Zt.length>0&&(vt=Zt);for(var ce=0,le=xt.length;ce<le;ce++){var fe=xt[ce],de=nt?r[fe.materialIndex]:r;if(de!==void 0&&(tt=ct[fe.a],at=ct[fe.b],st=ct[fe.c],u=Yb(this,de,t,wl,tt,at,st,ad),u)){if(vt&&vt[ce]){var Le=vt[ce];Kc.copy(Le[0]),Zc.copy(Le[1]),Jc.copy(Le[2]),u.uv=mr.getUV(ad,tt,at,st,Kc,Zc,Jc,new ke)}u.face=fe,u.faceIndex=ce,e.push(u)}}}}},clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}});function Yb(t,e,n,r,s,u,h,o){var m;if(e.side===lr?m=r.intersectTriangle(h,u,s,!0,o):m=r.intersectTriangle(s,u,h,e.side!==Wh,o),m===null)return null;cm.copy(o),cm.applyMatrix4(t.matrixWorld);var y=n.ray.origin.distanceTo(cm);return y<n.near||y>n.far?null:{distance:y,point:cm.clone(),object:t}}function um(t,e,n,r,s,u,h,o,m,y,x,M){Al.fromBufferAttribute(s,y),El.fromBufferAttribute(s,x),Tl.fromBufferAttribute(s,M);var A=t.morphTargetInfluences;if(e.morphTargets&&u&&A){sm.set(0,0,0),am.set(0,0,0),lm.set(0,0,0);for(var T=0,P=u.length;T<P;T++){var D=A[T],k=u[T];D!==0&&(hx.fromBufferAttribute(k,y),dx.fromBufferAttribute(k,x),px.fromBufferAttribute(k,M),h?(sm.addScaledVector(hx,D),am.addScaledVector(dx,D),lm.addScaledVector(px,D)):(sm.addScaledVector(hx.sub(Al),D),am.addScaledVector(dx.sub(El),D),lm.addScaledVector(px.sub(Tl),D)))}Al.add(sm),El.add(am),Tl.add(lm)}var z=Yb(t,e,n,r,Al,El,Tl,ad);if(z){o&&(Kc.fromBufferAttribute(o,y),Zc.fromBufferAttribute(o,x),Jc.fromBufferAttribute(o,M),z.uv=mr.getUV(ad,Al,El,Tl,Kc,Zc,Jc,new ke)),m&&(Kc.fromBufferAttribute(m,y),Zc.fromBufferAttribute(m,x),Jc.fromBufferAttribute(m,M),z.uv2=mr.getUV(ad,Al,El,Tl,Kc,Zc,Jc,new ke));var O=new om(y,x,M);mr.getNormal(Al,El,Tl,O.normal),z.face=O}return z}var I3=0,cs=new Kn,fx=new cn,hm=new kt;function Gn(){Object.defineProperty(this,"id",{value:I3+=2}),this.uuid=Xn.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}Gn.prototype=Object.assign(Object.create(Us.prototype),{constructor:Gn,isGeometry:!0,applyMatrix4:function(t){for(var e=new _r().getNormalMatrix(t),n=0,r=this.vertices.length;n<r;n++){var s=this.vertices[n];s.applyMatrix4(t)}for(var n=0,r=this.faces.length;n<r;n++){var u=this.faces[n];u.normal.applyMatrix3(e).normalize();for(var h=0,o=u.vertexNormals.length;h<o;h++)u.vertexNormals[h].applyMatrix3(e).normalize()}return this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(t){return cs.makeRotationX(t),this.applyMatrix4(cs),this},rotateY:function(t){return cs.makeRotationY(t),this.applyMatrix4(cs),this},rotateZ:function(t){return cs.makeRotationZ(t),this.applyMatrix4(cs),this},translate:function(t,e,n){return cs.makeTranslation(t,e,n),this.applyMatrix4(cs),this},scale:function(t,e,n){return cs.makeScale(t,e,n),this.applyMatrix4(cs),this},lookAt:function(t){return fx.lookAt(t),fx.updateMatrix(),this.applyMatrix4(fx.matrix),this},fromBufferGeometry:function(t){var e=this,n=t.index!==null?t.index.array:void 0,r=t.attributes;if(r.position===void 0)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),this;var s=r.position.array,u=r.normal!==void 0?r.normal.array:void 0,h=r.color!==void 0?r.color.array:void 0,o=r.uv!==void 0?r.uv.array:void 0,m=r.uv2!==void 0?r.uv2.array:void 0;m!==void 0&&(this.faceVertexUvs[1]=[]);for(var y=0;y<s.length;y+=3)e.vertices.push(new kt().fromArray(s,y)),h!==void 0&&e.colors.push(new sn().fromArray(h,y));function x(z,O,U,H){var V=h===void 0?[]:[e.colors[z].clone(),e.colors[O].clone(),e.colors[U].clone()],W=u===void 0?[]:[new kt().fromArray(u,z*3),new kt().fromArray(u,O*3),new kt().fromArray(u,U*3)],K=new om(z,O,U,W,V,H);e.faces.push(K),o!==void 0&&e.faceVertexUvs[0].push([new ke().fromArray(o,z*2),new ke().fromArray(o,O*2),new ke().fromArray(o,U*2)]),m!==void 0&&e.faceVertexUvs[1].push([new ke().fromArray(m,z*2),new ke().fromArray(m,O*2),new ke().fromArray(m,U*2)])}var M=t.groups;if(M.length>0)for(var y=0;y<M.length;y++)for(var A=M[y],T=A.start,P=A.count,D=T,k=T+P;D<k;D+=3)n!==void 0?x(n[D],n[D+1],n[D+2],A.materialIndex):x(D,D+1,D+2,A.materialIndex);else if(n!==void 0)for(var y=0;y<n.length;y+=3)x(n[y],n[y+1],n[y+2]);else for(var y=0;y<s.length/3;y+=3)x(y,y+1,y+2);return this.computeFaceNormals(),t.boundingBox!==null&&(this.boundingBox=t.boundingBox.clone()),t.boundingSphere!==null&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(hm).negate(),this.translate(hm.x,hm.y,hm.z),this},normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius,n=e===0?1:1/e,r=new Kn;return r.set(n,0,0,-n*t.x,0,n,0,-n*t.y,0,0,n,-n*t.z,0,0,0,1),this.applyMatrix4(r),this},computeFaceNormals:function(){for(var t=new kt,e=new kt,n=0,r=this.faces.length;n<r;n++){var s=this.faces[n],u=this.vertices[s.a],h=this.vertices[s.b],o=this.vertices[s.c];t.subVectors(o,h),e.subVectors(u,h),t.cross(e),t.normalize(),s.normal.copy(t)}},computeVertexNormals:function(t){t===void 0&&(t=!0);var e,n,r,s,u,h;for(h=new Array(this.vertices.length),e=0,n=this.vertices.length;e<n;e++)h[e]=new kt;if(t){var o,m,y,x=new kt,M=new kt;for(r=0,s=this.faces.length;r<s;r++)u=this.faces[r],o=this.vertices[u.a],m=this.vertices[u.b],y=this.vertices[u.c],x.subVectors(y,m),M.subVectors(o,m),x.cross(M),h[u.a].add(x),h[u.b].add(x),h[u.c].add(x)}else for(this.computeFaceNormals(),r=0,s=this.faces.length;r<s;r++)u=this.faces[r],h[u.a].add(u.normal),h[u.b].add(u.normal),h[u.c].add(u.normal);for(e=0,n=this.vertices.length;e<n;e++)h[e].normalize();for(r=0,s=this.faces.length;r<s;r++){u=this.faces[r];var A=u.vertexNormals;A.length===3?(A[0].copy(h[u.a]),A[1].copy(h[u.b]),A[2].copy(h[u.c])):(A[0]=h[u.a].clone(),A[1]=h[u.b].clone(),A[2]=h[u.c].clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t<e;t++){n=this.faces[t];var r=n.vertexNormals;r.length===3?(r[0].copy(n.normal),r[1].copy(n.normal),r[2].copy(n.normal)):(r[0]=n.normal.clone(),r[1]=n.normal.clone(),r[2]=n.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,r,s;for(n=0,r=this.faces.length;n<r;n++)for(s=this.faces[n],s.__originalFaceNormal?s.__originalFaceNormal.copy(s.normal):s.__originalFaceNormal=s.normal.clone(),s.__originalVertexNormals||(s.__originalVertexNormals=[]),t=0,e=s.vertexNormals.length;t<e;t++)s.__originalVertexNormals[t]?s.__originalVertexNormals[t].copy(s.vertexNormals[t]):s.__originalVertexNormals[t]=s.vertexNormals[t].clone();var u=new Gn;for(u.faces=this.faces,t=0,e=this.morphTargets.length;t<e;t++){if(!this.morphNormals[t]){this.morphNormals[t]={},this.morphNormals[t].faceNormals=[],this.morphNormals[t].vertexNormals=[];var h=this.morphNormals[t].faceNormals,o=this.morphNormals[t].vertexNormals,y,x;for(n=0,r=this.faces.length;n<r;n++)y=new kt,x={a:new kt,b:new kt,c:new kt},h.push(y),o.push(x)}var m=this.morphNormals[t];u.vertices=this.morphTargets[t].vertices,u.computeFaceNormals(),u.computeVertexNormals();var y,x;for(n=0,r=this.faces.length;n<r;n++)s=this.faces[n],y=m.faceNormals[n],x=m.vertexNormals[n],y.copy(s.normal),x.a.copy(s.vertexNormals[0]),x.b.copy(s.vertexNormals[1]),x.c.copy(s.vertexNormals[2])}for(n=0,r=this.faces.length;n<r;n++)s=this.faces[n],s.normal=s.__originalFaceNormal,s.vertexNormals=s.__originalVertexNormals},computeBoundingBox:function(){this.boundingBox===null&&(this.boundingBox=new Vo),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){this.boundingSphere===null&&(this.boundingSphere=new js),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!(t&&t.isGeometry)){console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);return}var r,s=this.vertices.length,u=this.vertices,h=t.vertices,o=this.faces,m=t.faces,y=this.colors,x=t.colors;n===void 0&&(n=0),e!==void 0&&(r=new _r().getNormalMatrix(e));for(var M=0,A=h.length;M<A;M++){var T=h[M],P=T.clone();e!==void 0&&P.applyMatrix4(e),u.push(P)}for(var M=0,A=x.length;M<A;M++)y.push(x[M].clone());for(M=0,A=m.length;M<A;M++){var D=m[M],k,z,O,U=D.vertexNormals,H=D.vertexColors;k=new om(D.a+s,D.b+s,D.c+s),k.normal.copy(D.normal),r!==void 0&&k.normal.applyMatrix3(r).normalize();for(var V=0,W=U.length;V<W;V++)z=U[V].clone(),r!==void 0&&z.applyMatrix3(r).normalize(),k.vertexNormals.push(z);k.color.copy(D.color);for(var V=0,W=H.length;V<W;V++)O=H[V],k.vertexColors.push(O.clone());k.materialIndex=D.materialIndex+n,o.push(k)}for(var M=0,A=t.faceVertexUvs.length;M<A;M++){var K=t.faceVertexUvs[M];this.faceVertexUvs[M]===void 0&&(this.faceVertexUvs[M]=[]);for(var V=0,W=K.length;V<W;V++){for(var Z=K[V],tt=[],at=0,st=Z.length;at<st;at++)tt.push(Z[at].clone());this.faceVertexUvs[M].push(tt)}}},mergeMesh:function(t){if(!(t&&t.isMesh)){console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t);return}t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)},mergeVertices:function(){var t={},e=[],n=[],r,s,u=4,h=Math.pow(10,u),o,m,y,x,M,A;for(o=0,m=this.vertices.length;o<m;o++)r=this.vertices[o],s=Math.round(r.x*h)+"_"+Math.round(r.y*h)+"_"+Math.round(r.z*h),t[s]===void 0?(t[s]=o,e.push(this.vertices[o]),n[o]=e.length-1):n[o]=n[t[s]];var T=[];for(o=0,m=this.faces.length;o<m;o++){y=this.faces[o],y.a=n[y.a],y.b=n[y.b],y.c=n[y.c],x=[y.a,y.b,y.c];for(var P=0;P<3;P++)if(x[P]===x[(P+1)%3]){T.push(o);break}}for(o=T.length-1;o>=0;o--){var D=T[o];for(this.faces.splice(D,1),M=0,A=this.faceVertexUvs.length;M<A;M++)this.faceVertexUvs[M].splice(D,1)}var k=this.vertices.length-e.length;return this.vertices=e,k},setFromPoints:function(t){this.vertices=[];for(var e=0,n=t.length;e<n;e++){var r=t[e];this.vertices.push(new kt(r.x,r.y,r.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,n=0;n<e;n++)t[n]._id=n;function r(y,x){return y.materialIndex-x.materialIndex}t.sort(r);var s=this.faceVertexUvs[0],u=this.faceVertexUvs[1],h,o;s&&s.length===e&&(h=[]),u&&u.length===e&&(o=[]);for(var n=0;n<e;n++){var m=t[n]._id;h&&h.push(s[m]),o&&o.push(u[m])}h&&(this.faceVertexUvs[0]=h),o&&(this.faceVertexUvs[1]=o)},toJSON:function(){var t={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,this.name!==""&&(t.name=this.name),this.parameters!==void 0){var e=this.parameters;for(var n in e)e[n]!==void 0&&(t[n]=e[n]);return t}for(var r=[],s=0;s<this.vertices.length;s++){var u=this.vertices[s];r.push(u.x,u.y,u.z)}for(var h=[],o=[],m={},y=[],x={},M=[],A={},s=0;s<this.faces.length;s++){var T=this.faces[s],P=!0,D=!1,k=this.faceVertexUvs[0][s]!==void 0,z=T.normal.length()>0,O=T.vertexNormals.length>0,U=T.color.r!==1||T.color.g!==1||T.color.b!==1,H=T.vertexColors.length>0,V=0;if(V=tt(V,0,0),V=tt(V,1,P),V=tt(V,2,D),V=tt(V,3,k),V=tt(V,4,z),V=tt(V,5,O),V=tt(V,6,U),V=tt(V,7,H),h.push(V),h.push(T.a,T.b,T.c),h.push(T.materialIndex),k){var W=this.faceVertexUvs[0][s];h.push(nt(W[0]),nt(W[1]),nt(W[2]))}if(z&&h.push(at(T.normal)),O){var K=T.vertexNormals;h.push(at(K[0]),at(K[1]),at(K[2]))}if(U&&h.push(st(T.color)),H){var Z=T.vertexColors;h.push(st(Z[0]),st(Z[1]),st(Z[2]))}}function tt(ct,xt,vt){return vt?ct|1<<xt:ct&~(1<<xt)}function at(ct){var xt=ct.x.toString()+ct.y.toString()+ct.z.toString();return m[xt]!==void 0||(m[xt]=o.length/3,o.push(ct.x,ct.y,ct.z)),m[xt]}function st(ct){var xt=ct.r.toString()+ct.g.toString()+ct.b.toString();return x[xt]!==void 0||(x[xt]=y.length,y.push(ct.getHex())),x[xt]}function nt(ct){var xt=ct.x.toString()+ct.y.toString();return A[xt]!==void 0||(A[xt]=M.length/2,M.push(ct.x,ct.y)),A[xt]}return t.data={},t.data.vertices=r,t.data.normals=o,y.length>0&&(t.data.colors=y),M.length>0&&(t.data.uvs=[M]),t.data.faces=h,t},clone:function(){return new Gn().copy(this)},copy:function(t){var e,n,r,s,u,h;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var o=t.vertices;for(e=0,n=o.length;e<n;e++)this.vertices.push(o[e].clone());var m=t.colors;for(e=0,n=m.length;e<n;e++)this.colors.push(m[e].clone());var y=t.faces;for(e=0,n=y.length;e<n;e++)this.faces.push(y[e].clone());for(e=0,n=t.faceVertexUvs.length;e<n;e++){var x=t.faceVertexUvs[e];for(this.faceVertexUvs[e]===void 0&&(this.faceVertexUvs[e]=[]),r=0,s=x.length;r<s;r++){var M=x[r],A=[];for(u=0,h=M.length;u<h;u++){var T=M[u];A.push(T.clone())}this.faceVertexUvs[e].push(A)}}var P=t.morphTargets;for(e=0,n=P.length;e<n;e++){var D={};if(D.name=P[e].name,P[e].vertices!==void 0)for(D.vertices=[],r=0,s=P[e].vertices.length;r<s;r++)D.vertices.push(P[e].vertices[r].clone());if(P[e].normals!==void 0)for(D.normals=[],r=0,s=P[e].normals.length;r<s;r++)D.normals.push(P[e].normals[r].clone());this.morphTargets.push(D)}var k=t.morphNormals;for(e=0,n=k.length;e<n;e++){var z={};if(k[e].vertexNormals!==void 0)for(z.vertexNormals=[],r=0,s=k[e].vertexNormals.length;r<s;r++){var O=k[e].vertexNormals[r],U={};U.a=O.a.clone(),U.b=O.b.clone(),U.c=O.c.clone(),z.vertexNormals.push(U)}if(k[e].faceNormals!==void 0)for(z.faceNormals=[],r=0,s=k[e].faceNormals.length;r<s;r++)z.faceNormals.push(k[e].faceNormals[r].clone());this.morphNormals.push(z)}var H=t.skinWeights;for(e=0,n=H.length;e<n;e++)this.skinWeights.push(H[e].clone());var V=t.skinIndices;for(e=0,n=V.length;e<n;e++)this.skinIndices.push(V[e].clone());var W=t.lineDistances;for(e=0,n=W.length;e<n;e++)this.lineDistances.push(W[e]);var K=t.boundingBox;K!==null&&(this.boundingBox=K.clone());var Z=t.boundingSphere;return Z!==null&&(this.boundingSphere=Z.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});class k3 extends Gn{constructor(e,n,r,s,u,h){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:s,heightSegments:u,depthSegments:h},this.fromBufferGeometry(new dm(e,n,r,s,u,h)),this.mergeVertices()}}class dm extends wn{constructor(e,n,r,s,u,h){super(),this.type="BoxBufferGeometry",this.parameters={width:e,height:n,depth:r,widthSegments:s,heightSegments:u,depthSegments:h};var o=this;e=e||1,n=n||1,r=r||1,s=Math.floor(s)||1,u=Math.floor(u)||1,h=Math.floor(h)||1;var m=[],y=[],x=[],M=[],A=0,T=0;P("z","y","x",-1,-1,r,n,e,h,u,0),P("z","y","x",1,-1,r,n,-e,h,u,1),P("x","z","y",1,1,e,r,n,s,h,2),P("x","z","y",1,-1,e,r,-n,s,h,3),P("x","y","z",1,-1,e,n,r,s,u,4),P("x","y","z",-1,-1,e,n,-r,s,u,5),this.setIndex(m),this.setAttribute("position",new dn(y,3)),this.setAttribute("normal",new dn(x,3)),this.setAttribute("uv",new dn(M,2));function P(D,k,z,O,U,H,V,W,K,Z,tt){var at=H/K,st=V/Z,nt=H/2,ct=V/2,xt=W/2,vt=K+1,Zt=Z+1,ce=0,le=0,fe,de,Le=new kt;for(de=0;de<Zt;de++){var Lt=de*st-ct;for(fe=0;fe<vt;fe++){var bt=fe*at-nt;Le[D]=bt*O,Le[k]=Lt*U,Le[z]=xt,y.push(Le.x,Le.y,Le.z),Le[D]=0,Le[k]=0,Le[z]=W>0?1:-1,x.push(Le.x,Le.y,Le.z),M.push(fe/K),M.push(1-de/Z),ce+=1}}for(de=0;de<Z;de++)for(fe=0;fe<K;fe++){var qt=A+fe+vt*de,Wt=A+fe+vt*(de+1),Nt=A+(fe+1)+vt*(de+1),se=A+(fe+1)+vt*de;m.push(qt,Wt,se),m.push(Wt,Nt,se),le+=6}o.addGroup(T,le,tt),T+=le,A+=ce}}}function Qc(t){var e={};for(var n in t){e[n]={};for(var r in t[n]){var s=t[n][r];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture)?e[n][r]=s.clone():Array.isArray(s)?e[n][r]=s.slice():e[n][r]=s}}return e}function br(t){for(var e={},n=0;n<t.length;n++){var r=Qc(t[n]);for(var s in r)e[s]=r[s]}return e}var B3={clone:Qc,merge:br},F3=`void main() {
|
|
5
5
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
6
6
|
}`,z3=`void main() {
|
|
7
7
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
@@ -6477,5 +6477,5 @@ async function printInfo(ent: McDbEntity) {
|
|
|
6477
6477
|
MxFun.acutPrintf("\\n命令")
|
|
6478
6478
|
}
|
|
6479
6479
|
|
|
6480
|
-
`;function lV(t){return t.replace(/[\u00A0\u1680\u2000-\u200D\u202F\u205F\u3000]/g," ")}const TA=t=>{const e=/\/\/{24}[\s\S]*\/\/{24}/g;let n=t.replace(e,"");return n=lV(n),n};(t=>{t.forEach(e=>{e.code=TA(e.code)}),t.push({type:"命令实现",name:"list 命令",code:TA(aV)})})(MA);class cV extends p.MxCADPluginBase{constructor(){super(),this.map_default_data=xU(),this.sampleCode=MA}}let Fu;const{showModal:uV,hideModal:Hl,showTools:hV}=If();function dV(){return Gt(this,null,function*(){uV({title:"My Test Draw",text:"测试Modal",oncancel:()=>{Hl()},onsubmit:()=>{Hl()},ongetallentity:()=>{Hl(),$.MxFun.sendStringToExecute("TestGetAllEntity")},ondrawline:()=>{Hl(),$.MxFun.sendStringToExecute("Mx_Circle")},docommand:t=>{Hl(),$.MxFun.sendStringToExecute(t)}})})}function pV(){return Gt(this,null,function*(){hV({title:"My Extension Tools",text:"扩展工具",oncancel:()=>{Hl()},docommand:t=>{Hl(),$.MxFun.sendStringToExecute(t)}})})}const PA=document.createElement("div");document.body.appendChild(PA),b.createApp(SS).mount(PA),DS(),MxPluginContext.on("databaseLayerUpdate",()=>{console.log("数据库图层数据更新")}),$.MxFun.setloadImageFuction((t,e,n)=>t.slice(-4)=="tiff"||t.slice(-3)=="tif"?(new p.MxTIFFLoader().load(t,e,n),1):0),$.MxFun.onInitSync(()=>new Promise(t=>{t(!0)})),$.MxFun.on("mxcadApplicationStart",t=>{Fu=t,Fu.init(new cV),$.MxFun.setIniset({IntelliSelectType:2})}),$.MxFun.on("mxcadApplicationInitMap",()=>{vU(Fu.mxmap)}),$.MxFun.on("mxcadApplicationStartCreatingMxCADObject",t=>{let e=t.mxdraw;e.setViewMovementMethod(!0),e.on("openFileComplete",()=>{console.log("MxTip:openFileComplete ")}),e.addControlsEvent("mousedown",n=>{let r=n.offsetX,s=n.offsetY,u=e.viewCoord2Cad(r,s,0);return console.log("mousedown:",u),0})}),$.MxFun.on("mxcadApplicationCreatedMxCADObject",t=>{let e=Fu.getServerConfig();p.MxCpp.App.addNetworkLoadingFont(e.font||["txt.shx","simplex.shx","gdt.shx","aaa.shx","ltypeshp.shx","complex.shx"]),p.MxCpp.App.addNetworkLoadingBigFont(e.bigFont||["hztxt.shx","gbcbig.shx"]),e.trueTypeFont?p.MxCpp.App.addNetworkLoadingTrueTypeFont(e.trueTypeFont[0],e.trueTypeFont[1],e.trueTypeFont[2]):p.MxCpp.App.addNetworkLoadingTrueTypeFont(["syadobe"],["思原黑体"],["syadobe.otf"]);let n=t.mxcad;n.setAttribute({DisplayPrecision:35}),n.on("selectChange",u=>{if(console.log("selectChange"),u.length==0)return;let h=u[0],o=h.getMxDbEntity();if(o!==null){console.log(o.getTypeName()),o instanceof $.MxDbRectBoxLeadComment&&console.log(o.text);return}let m=h.getMcDbEntity();m!==null&&(console.log(m.objectName),m instanceof p.McDbText?console.log(m.textString):m instanceof p.McDbBlockReference&&m.getAllAttribute().forEach(M=>{let A=M.getMcDbEntity();console.log(A.textString),console.log(A.tag)}))}),p.MxCpp.PropertiesWindow.onEvent_getProperties(u=>{let h=u.getMcDbEntity();if(!h)return[];let o=h.getxDataDouble("DN"),m=h.getxDataDouble("LEN"),y=[];return o.ret&&y.push({sVarName:"DN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:o.val,isOnlyRead:!1}),m.ret&&y.push({sVarName:"LEN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:m.val,isOnlyRead:!1}),y}),p.MxCpp.PropertiesWindow.onEvent_setProperties((u,h)=>{let o=u.getMcDbEntity();o&&(h.sVarName=="DN"?o.setxDataDouble("DN",h.val):h.sVarName=="LEN"&&o.setxDataDouble("LEN",h.val))});let r,s;p.MxCpp.getCurrentMxCAD().on("selectChange",u=>{var o;if(u.length===0)return;const h=(o=u[0])==null?void 0:o.getMcDbEntity();if(h&&h instanceof p.McDbCustomEntity&&(r==null?void 0:r.getHandle())===h.getHandle()){const m=h.getTypeName();Wo.value=h.clone(),m==="McDbTestRoughness"?(Ho.value="RoughnessDialog",_o.showDialog(!0,{title:G("表面粗糙度")}).then(M=>Gt(this,[M],function*({data:y,isCanceled:x}){var A;if(!x){const T=y.roughnessData,P=h.clone();P.rougMarkType=T.selectSymbolNum,P.textLeftStr=T.textLeftStr,P.rougCornerType=T.rougCornerType==="无"?"":T.rougCornerType,P.isRoungSameRequire=T.isRoungSameRequire,P.isShowMostSymbols=T.isShowMostSymbols;const D=(A=T.textUpStr)==null?void 0:A.filter(k=>k!="");P.textUpStr=JSON.parse(JSON.stringify(D)).reverse(),P.textDownStr=T.textDownStr.filter(k=>k!=""),P.isAddRougLongLine=T.isAddLongLine,h.erase(),n.drawEntity(P),n.mxdraw.clearMxCurrentSelect(),n.updateDisplay()}}))):m==="McDbTestWeldingSymbol"?(Ho.value="WeldingSymbolDialog",_o.showDialog(!0,{title:G("焊接符号")}).then(M=>Gt(this,[M],function*({data:y,isCanceled:x}){if(!x){const A=y.formData,T=h;if(A.specialSymbol.length&&T.setSpecialSymbol(A.specialSymbol),A.rightDim1||A.rightDim2){const P=[ii.top,ii.down],D=[];P.forEach(k=>{const z=A.rightDim1.filter(H=>H.position===k)[0],O=A.rightDim2.filter(H=>H.position===k)[0],U=z.content&&O.content?"×":"";D.push({position:k,content:z.content+U+O.content})}),T.setRightDim(D)}T.setSuppleSymbol(A.suppleSymbol),T.setLeftDim(A.leftDim),T.setTopDim(A.topDim),T.setAuxiliarySymbol(A.auxiliarySymbol),T.setBaseSymbok(A.basicSymbol),T.setIntWeldSeam(A.intWeldSeam),T.dottedLinePos=A.dottedLinePos,T.weldingSymbolInfo=A.weldingSymbolInfo.replace(/\n/g,"\\P"),h.erase(),n.drawEntity(T),n.mxdraw.clearMxCurrentSelect(),n.updateDisplay()}}))):m==="MxDbGeometricTolerances"&&(Ho.value="GemoetricToleranceDialog",_o.showDialog(!0,{title:G("形位公差")}).then(M=>Gt(this,[M],function*({data:y,isCanceled:x}){if(!x){const A=y.formData,T=h;T.dimToleranceContents=(A==null?void 0:A.dimToleranceContents)||[],T.isShowFullWeekSymbol=(A==null?void 0:A.isShowFull)||!1,T.dimNotesDown=(A==null?void 0:A.downDim)||"",T.dimNotesUp=(A==null?void 0:A.topDim)||"",h.erase(),n.drawEntity(T),n.mxdraw.clearMxCurrentSelect(),n.updateDisplay()}})))}r=h,s&&clearTimeout(s),s=setTimeout(()=>{r=null},300)})});function Ua(){return Fu}function Jr(t){return"x="+t.x+",y="+t.y+",z="+t.z}function fV(){window.open("https://demo.mxdraw3d.com:3562/MxCADCode.7z")}function mV(){window.open("https://demo.mxdraw3d.com:3562/MxDrawCloudServer1.0TryVersion.7z")}function zu(t){var e=window.location.href;return e.indexOf("?")!=-1&&(e=e.replace(/(\?|#)[^'"]*/,"")),`${e}?map=true&maptype=${t}`}function gV(){window.open(zu("gdslwzj"))}function yV(){window.open(zu("google"))}function xV(){window.open(zu("gdyx"))}function vV(){window.open(zu("tdtsl"))}function _V(){window.open(zu("bdsl"))}function bV(){window.open(zu("geoq"))}function MV(){p.MxCpp.getCurrentMxCAD().setViewBackgroundColor(255,255,255),$.MxFun.callEvent("updateBackgroundColor",new p.McCmColor(255,255,255))}function SA(){return Gt(this,null,function*(){let t=new p.MxCADUiPrEntity;t.setMessage(G("选择要需要开启自定义属性的对象"));let e=yield t.go();if(!e.isValid())return;let n=e.getMcDbEntity();p.MxCpp.PropertiesWindow.setEntitySupportCustom(e),n.setxDataDouble("DN",100),n.setxDataDouble("LEN",2e3)})}function wV(){p.MxCpp.getCurrentMxCAD().openWebFile("http://localhost:1337/mxcad/file/a9cbed3d3a351b79f24484e87bd78338.DWG.mxweb")}function AV(){return Gt(this,null,function*(){})}function EV(){return Gt(this,null,function*(){let t=new p.MxCADUiPrEntity;t.setMessage(G("选择要隐藏的对象"));let e=yield t.go();if(!e.isValid())return;let n=e.getMcDbEntity(),r=p.MxCpp.getCurrentMxCAD(),h=r.getDatabase().getLayerTable().get(n.layer).getMcDbLayerTableRecord();h!==null&&(h.isOff=!0,r.updateLayerDisplayStatus(),r.updateDisplay())})}function TV(){return window.location.origin+window.location.pathname}let zg;function PV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定插入点:"));let e=yield t.go();if(!e)return;let n=p.MxCpp.getCurrentMxCAD(),r=TV()+"mxcad.jpg";n.loadImage(r,s=>{if(!s){console.log("loadImage failed");return}let u=n.mxdraw.viewCoordLong2Cad(100),h=s.height/s.width*u,o=0;zg=n.drawImage(e.x,e.y,u,h,o,r,!0,s.width,s.height);let m=zg.getMcDbEntity(),y=p.MxCpp.getCurrentDatabase().currentSpace.getMinMaxDrawOrder();m&&(m.drawOrder=y.maxDrawOrder+1),n.updateDisplay()})})}function SV(){if(!zg)return;let t=p.MxCpp.getCurrentMxCAD(),e="https://cdn.pixabay.com/photo/2022/11/15/12/23/winter-7593872_960_720.jpg";t.loadImage(e,n=>{if(!n){console.log("loadImage failed");return}let r=t.addImageDefine(e,"winter-7593872_960_720.jpg",!0),s=zg.getMcDbEntity();s&&s.setImageDefId(r),t.updateDisplay()})}function CV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=new p.MxCADUiPrPoint,n=yield e.go();if(n==null)return;e.setBasePt(n);let r=yield e.go();if(r==null)return;let s=t.drawLine(n.x,n.y,r.x,r.y);t.addCurrentSelect(s)})}let CA=0;function DV(){return Gt(this,null,function*(){CA+=Math.PI*.5,p.MxCpp.getCurrentMxCAD().zoomAngle(CA)})}function RV(){p.MxCpp.getCurrentMxCAD().zoomCenter(900,900)}function LV(){let t=p.MxCpp.getCurrentMxCAD();t.newFile();let e=new p.McDbPolyline;e.setType(p.McDb.PolylineType.k3dPolyline),e.addVertexAt(new p.McGePoint3d(100,100,100)),e.addVertexAt(new p.McGePoint3d(200,100,500)),e.addVertexAt(new p.McGePoint3d(300,400,200)),t.drawEntity(e),t.zoomAll(),t.updateDisplay()}function IV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定一点:"));let e=yield t.go();if(!e)return;const n=new p.MxCADUiPrAngle;n.setMessage(G("指定夹角")),n.setKeyWords(""),n.setBasePt(e);const r=yield n.go();console.log(r)})}function kV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定一点:")),t.setOffsetInputPostion(!0);let e=yield t.go();if(!e)return;t.setBasePt(e),t.setUseBasePt(!0),t.setMessage(G(" 指定二点:"));let n=yield t.go();n&&p.MxCpp.getCurrentMxCAD().drawLine(e.x,e.y,n.x,n.y)})}function BV(){return Gt(this,null,function*(){let t=new p.MxCADSelectionSet;if(!(yield t.userSelect("选择要做成组的对象:"))||t.count()==0)return;p.MxCpp.getCurrentMxCAD().getDatabase().CreateGroup(t.getIds())})}function FV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();const e=new p.MxCADUiPrPoint;e.setMessage(G(" 指定第一点:"));let n=yield e.go();if(!n)return;e.setMessage(G(" 指定第二点:")),e.setBasePt(n);let r=yield e.go();if(!r)return;let s=r.sub(n);s.rotateBy(Math.PI*.5).normalize().mult($.MxFun.screenCoordLong2Doc(10));let u=n.clone().addvec(s),h=n.clone().subvec(s),o=r.clone().addvec(s),m=r.clone().subvec(s),y=new p.McGeBound([u,h,o,m]),x=y.minPoint,M=y.maxPoint,A=new p.MxCADSelectionSet;A.crossingSelect(x.x,x.y,M.x,M.y,new p.MxCADResbuf([p.DxfCode.kEntityType,"LINE,ARC,CIRCLE,LWPOLYLINE"]));let T=$.MxFun.screenCoordLong2Doc(5),P=new p.McDbLine(n,r);A.forEach(D=>{let z=D.getMcDbEntity().IntersectWith(P,p.McDb.Intersect.kOnBothOperands);if(z.length()!=0){let O=z.at(0);t.drawCircle(O.x,O.y,T)}})})}$.MxFun.on("mxcadApplicationCreatedMxCADObject",t=>{t.mxcad.on("selectChange",n=>{if(n.length==0)return;let r=n[0],s=r.getMxDbEntity();if(s!==null){console.log(s.getTypeName()),s instanceof $.MxDbRectBoxLeadComment&&console.log(s.text);return}let u=r.getMcDbEntity();u!==null&&(console.log(u.objectName),u instanceof p.McDbText?console.log(u.textString):u instanceof p.McDbBlockReference&&u.getAllAttribute().forEach(m=>{let y=m.getMcDbEntity();console.log(y.textString),console.log(y.tag)}))}),p.MxCpp.PropertiesWindow.onEvent_getProperties(n=>{let r=n.getMcDbEntity();if(!r)return[];let s=r.getxDataDouble("DN"),u=r.getxDataDouble("LEN"),h=[];return s.ret&&h.push({sVarName:"DN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:s.val,isOnlyRead:!1}),u.ret&&h.push({sVarName:"LEN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:u.val,isOnlyRead:!1}),console.log(h),h}),p.MxCpp.PropertiesWindow.onEvent_setProperties((n,r)=>{let s=n.getMcDbEntity();s&&(r.sVarName=="DN"?s.setxDataDouble("DN",r.val):r.sVarName=="LEN"&&s.setxDataDouble("LEN",r.val),console.log(r))}),YV()});function zV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();if(t.mxdraw.isMapBox())t.mxdraw.createCanvasImageData(e=>{let n=window.open();n!=null&&n.document.write('<img src="'+e+'"/>')});else{const e=yield p.MxCADUtility.getCorner("选择截图范围",void 0,void 0,!1,!0);if(!e)return;let n=Math.abs(e.pt1.x-e.pt2.x),r=Math.abs(e.pt1.y-e.pt2.y);if(n<1||r<1)return;let s=200,u=s*r/n;t.mxdraw.createCanvasImageData(h=>{let o=window.open();o!=null&&o.document.write('<img src="'+h+'"/>')},{width:s,height:u,range_pt1:e.pt1.toVector3(),range_pt2:e.pt2.toVector3()})}})}function NV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();if(t.mxdraw.isMapBox())t.setAttribute({ShowCoordinate:!1}),t.mxdraw.createCanvasImageData(e=>{t.setAttribute({ShowCoordinate:!0});let n=window.open();n!=null&&new p.MxCanvas2Image(n.document).saveAsImage(t.mxdraw.getCanvas(),void 0,void 0,"bmp")});else{const e=yield p.MxCADUtility.getCorner("选择截图范围",void 0,void 0,!1,!0);if(!e)return;let n=Math.abs(e.pt1.x-e.pt2.x),r=Math.abs(e.pt1.y-e.pt2.y);if(n<1||r<1)return;let s=1e3,u=s*r/n,h=t.getViewBackgroundColor();t.setViewBackgroundColor(16777215),t.setAttribute({ShowCoordinate:!1});let o=new p.MxModifyColor,m=new p.McCmColor;m.setColorIndex(p.ColorIndexType.kWhite),o.Do(p.MxCpp.getCurrentDatabase(),m),t.mxdraw.createCanvasImageData(y=>{t.setViewBackgroundColor(h),t.setAttribute({ShowCoordinate:!0}),o.DoRestore();let x=window.open();x!=null&&new p.MxCanvas2Image(x.document).saveAsImage(t.mxdraw.getCanvas(),void 0,void 0,"bmp")},{type:"image/bmp",width:s,height:u,range_pt1:e.pt1.toVector3(),range_pt2:e.pt2.toVector3()})}})}function UV(){return Gt(this,null,function*(){for(;;){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定一点:")),t.setOffsetInputPostion(!0),t.clearLastInputPoint();let e=yield t.go();if(!e)return;let n=$.MxFun.getCurrentDraw();n.getTempMarkDraw().drawCircleMark(e.toVector3(),n.viewCoordLong2Cad(50),16711680),n.updateDisplay()}})}function VV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定第一点:"));let e=yield t.go();if(!e)return;let n=yield p.MxCADUtility.getCorner(" 指定第二点:",e);if(!n)return;let r=n.pt2,s=new p.McGePoint3dArray;s.append(e),s.append(new p.McGePoint3d(e.x,r.y,0)),s.append(new p.McGePoint3d(r.x,r.y,0)),s.append(new p.McGePoint3d(r.x,e.y,0));let u=new p.McDbWipeout;u.setVertices(s),u=p.MxCpp.getCurrentMxCAD().drawEntity(u).getMcDbObject();let m=p.MxCpp.getCurrentDatabase().currentSpace.getMinMaxDrawOrder().maxDrawOrder+1;u.drawOrder=m})}function GV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=t.getDatabase();e.setCurrentlyTrueColor(new p.McCmColor(255,100,0)),e.setCurrentlyLineWeight(p.McDb.LineWeight.kLnWt030),t.showLineWeight(!0)})}function OV(){return Gt(this,null,function*(){let t=yield p.MxCADUtility.selectEnt("选择PL线",new p.MxCADResbuf([p.DxfCode.kEntityType,"LWPOLYLINE"]));if(t.length==0)return;let e=t[0],n=e.getMcDbEntity();if(n&&n instanceof p.McDbPolyline){let r=n,s=r.getBoundingBox();if(!s.ret)return;let u=r.getSamplePoints(.1).GetPoints();if(u.length()<3)return;let h=[],o=new p.MxCADSelectionSet;o.crossingSelect(s.minPt.x,s.minPt.y,s.maxPt.x,s.maxPt.y),o.forEach(m=>{if(m.id==e.id)return;let y=m.getMcDbEntity();if(y){let x=y.getBoundingBox();if(!x.ret)return;let M=x.minPt.clone().addvec(x.maxPt.sub(x.minPt).mult(.5));p.MxCADUtility.pointInPolygon(u,M.x,M.y)&&h.push(m)}}),console.log(h)}})}function jV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=yield p.MxCADUtility.selectEnt("xxxx");if(e.length==0)return;let r=e[0].getMcDbEntity();if(r){let s=r.explode();if(s.GetCount()==0)return;let u=s.GetCount();for(let h=0;h<u;h++){let o=s.AtObject(h).val;o instanceof p.McDbEntity&&t.drawEntity(o)}r.erase()}})}function HV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();const e=new p.MxCADUiPrPoint;e.setMessage(G(" 指定一点:"));let n=yield e.go();if(!n)return;e.setBasePt(n),e.setUseBasePt(!0),e.setMessage(G(" 指定二点:"));let r=yield e.go();if(!r)return;let s=new p.McDbPolyline;s.addVertexAt(n),s.addVertexAt(r),s.constantWidth=t.mxdraw.viewCoordLong2Cad(10),s.trueColor=new p.McCmColor(255,255,255,160),t.drawEntity(s),t.updateDisplay()})}function WV(){return Gt(this,null,function*(){let t=yield p.MxCADUtility.selectEnt(G("选择图案填充对象"));if(t.length==0)return;let n=t[0].getMcDbEntity();n&&n instanceof p.McDbHatch&&n.scalePattern(2)})}function qV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=t.mxdraw.viewCoordLong2Cad(10),n=t.database,r=t.getSysVarDouble("LTSCALE");e=e/r;let s=n.getLinetypeTable(),u="MyTest1",h=s.get(u);if(h.isNull()){let M=new p.McDbLinetypeTableRecord;M.numDashes=2,M.setDashLengthAt(0,e),M.setDashLengthAt(1,-e),M.name=u,h=s.add(M)}const o=new p.MxCADUiPrPoint;o.setMessage(G(" 指定一点:"));let m=yield o.go();if(!m)return;o.setBasePt(m),o.setUseBasePt(!0),o.setMessage(G(" 指定二点:"));let y=yield o.go();if(!y)return;let x=new p.McDbLine;x.startPoint=m,x.endPoint=y,x.linetypeId=h,t.drawEntity(x)})}function YV(){$.MxFun.addCommand("My_PluginTest",dV),$.MxFun.addCommand("My_Extool",pV),$.MxFun.addCommand("Mx_Open_DemoCode",fV),$.MxFun.addCommand("Mx_Open_DevInstall",mV),$.MxFun.addCommand("Mx_Open_Map_gdslwzj",gV),$.MxFun.addCommand("Mx_Open_Map_gdyx",xV),$.MxFun.addCommand("Mx_Open_Map_tdtsl",vV),$.MxFun.addCommand("Mx_Open_Map_bdsl",_V),$.MxFun.addCommand("Mx_Open_Map_geoq",bV),$.MxFun.addCommand("Mx_Open_Map_googlecn",yV),$.MxFun.addCommand("Mx_ViewBackgroundColor",MV),$.MxFun.addCommand("Mx_TestExProp",SA),$.MxFun.addCommand("Mx_Test_OpenFile",wV),$.MxFun.addCommand("Mx_Test_GetFile",AV),$.MxFun.addCommand("Mx_TestExProp",SA),$.MxFun.addCommand("Mx_SelectEntitHideLayer",EV),$.MxFun.addCommand("MxTest_TestAddCurrentSelect",CV),$.MxFun.addCommand("MxTest_TestSetViewAngle",DV),$.MxFun.addCommand("MxText_ZoomCenter",RV),$.MxFun.addCommand("MxTest_Map_Download",_U),$.MxFun.addCommand("Mx_Test_DrawImage",PV),$.MxFun.addCommand("Mx_Test_ModifyImage",SV),$.MxFun.addCommand("Mx_Test_Draw3DPolyline",LV),$.MxFun.addCommand("MxTemp_Test",IV),$.MxFun.addCommand("Mx_Test_IntersectWith",FV),$.MxFun.addCommand("Mx_Test_OffsetIn_DrawLine",kV),$.MxFun.addCommand("Mx_Test_CreateGroup",BV),$.MxFun.addCommand("Mx_ScreenToJpg",zV),$.MxFun.addCommand("Mx_ScreenToBmp",NV),$.MxFun.addCommand("Mx_Test_DrawMarkCircle",UV),$.MxFun.addCommand("Mx_Test_Wipeout",VV),$.MxFun.addCommand("Mx_Test_SetCurrentlyDraw",GV),$.MxFun.addCommand("Mx_Test_FindPolygonEntitys",OV),$.MxFun.addCommand("Mx_Test_DrawTransparencyLine",HV),$.MxFun.addCommand("MxTest_Explode",jV),$.MxFun.addCommand("MxTest_LineRecord",qV),$.MxFun.addCommand("MxTest_ModifyPatternScale",WV),US(),nC(),CI(),RI(),uk(),bk(),Ak(),Dk(),Lk(),l5(),m5(),Pk(),M5(),Wz(),f6(),C6(),H6(),rU(),uz(),uU(),Fu.mxmap&&MU($.MxFun.getCurrentDraw())}const XV=Object.freeze(Object.defineProperty({__proto__:null,default:{718:"Specify the first point of the output range:",719:"Specify the second point of the output range:",720:"Specify the first point:",721:"Specify the second point:",722:"Cloud wireframe starting point:",723:"End point of cloud wireframe:",724:"Drawing review annotation points:",725:"Click to start drawing cloud lines:",726:"Click to end drawing cloud lines again:",727:"Specify one point:",728:"Specify two points:",729:"Select object",730:"Specify the next point:",731:"\\Specify insertion base point",732:"Specify table insertion point:",733:"Specify insertion point:",734:"Specify insertion base point",735:"Select annotation object",736:"Please select the target text",737:"Specify a point inside the filling area:",738:"No closed area found",739:"Surface roughness",740:"Welding symbol",741:"Positional tolerance",742:"Select the object that needs to enable custom properties",743:"Select the object to hide",744:"Specify insertion point:",745:"Specify one point:",746:"Specify the angle",747:"Specify two points:",748:"Select pattern fill object",749:"Specify the first point:",750:"Specify the second point:",751:"Specify the second angle point:",752:"Specify the last point:",753:"Specify coordinate point:",754:"Specify annotation points:",755:"Please provide your approval comments",756:"Specify the starting point of the cloud wireframe",757:"Specify the termination point of the cloud wireframe",758:"Designated review icon annotation points",759:"Specify the first corner point:",760:"Specify the second corner point:",761:"Specify serial number location:",762:"Rotations Symbols",763:"Tag type",764:"Please select the circle to be marked:",765:"Please set positioning points, lines, arcs, or circles",766:"Drag to determine the annotation position",767:"Please specify or enter an angle",768:"weld symbol",769:"Please pick a positioning point, line, or arc",770:"Please specify the second point",771:"Please set the positioning point",772:"Please set the angle",773:"Please set positioning points, lines, or arcs",774:"Please set the lead turning point",775:"Drag to determine the positioning point",776:"Please specify the first point:",777:"Please specify the second point:",778:"Please select the target block object",779:"Please enter a new block name",780:"Select the block that needs to modify the base point",781:"Set base point",782:"Select the block that requires color modification",783:"Enter color index (0~256)",784:"Please select the source block",785:"Select the target block to brush:",786:"Select connection method",787:"Manually connect each line one by one",788:"Automatic batch connection",789:"Please select the block for the connection",790:"Set centerline length",791:"Select the target block to rotate:",792:"Set rotation angle",793:"Please set the zoom ratio",794:"Please set the selection range:",795:"Please select the target block",796:"Please set the statistical scope",797:"Specify table insertion point:",798:"Select target curve",799:"Specify the length annotation point",800:"Select Target Object",801:"Please select the target slope object",802:"Please set the height of the annotation text",803:"Specify slope annotation point",804:"Please select the target coordinate point",805:"Please specify the annotation location",806:"Specify start point",807:"Specify the endpoint",808:"Specify annotation direction",809:"Please set the text content",810:"Please select the first point of the area",811:"Please select the next point",812:"Please select the location for area annotation",813:"Please select corner 1 of the rectangle",814:"Please select corner 2 of the rectangle",815:"Please set the location for area annotation",816:"Please select a measurement point",817:"Please select a straight line",818:"Please set the position of the dimension line",819:"Please select an arc",820:"Please specify the position of the dimension line",821:"Please select a circular object",822:"Please specify the text location",823:"Please select the endpoint or arc of the line",824:"Please specify the position of the text",825:"Please select a continuous measurement label",826:"Please select the second straight line",827:"Please set the position for angle annotation",828:"Please enter the number of star shaped vertices:",829:"Specify the star center point:",830:"Please set the inner radius of the star shape:",831:"Specify the outer radius of the star shape:",832:"Please enter the width of the concave convex line<5>",833:"Please enter the height of the concave convex line as<10>",834:"Please click to confirm the starting point",835:"Please click to confirm the endpoint",836:"Please enter zigzag width<5>",837:"Please enter zigzag line height<10>",838:"Please enter rectangle width<5>",839:"Please enter rectangle height<10>",840:"Please click to confirm the center of the rectangle",841:"Please enter pipe diameter<10>",842:"Please enter the length of the outlet pipe<5>",843:"Please click to confirm the starting point",844:"Specify the starting point of the pipeline section",845:"Specify the endpoint of the sectional pipeline",846:"Select the direction of the pipeline arc",847:"the left",848:"the right side",849:"MODE",850:"straight bead",851:"Arc weld seam",852:"Please enter weld radius<5>",853:"Specify the second point of the arc",854:"Specify end point of arc",855:"Please enter width<25>",856:"Please enter height<15>",857:"Please enter staircase level<10>",858:"Please confirm the center position of the circle",859:"Please enter the radius of the circle",860:"Please enter insulation cotton width<5>",861:"Please enter insulation cotton height<10>",862:"Please click on the next point",863:"Please select the first line",864:"Please select the second line",865:"Please select the endpoint",866:"Please select the target rectangle",867:"Set the center point of the compass",868:"Set the radius of the compass",869:"Select prompt box pointing",870:"Specify the first point of the message box:",871:"Specify the second point of the message box:",872:"Set the message box to point to:",873:"Please set the reference character text",874:"Please set the text height",875:"Please set the benchmark position",876:"Please set positioning points, arcs, or lines",877:"Please set the symbol position",878:"Please set the center of the circle",879:"Please set the center of the gear circle",880:"Please set the gear radius",881:"Please set the centerline length to 10>",882:"Please select the first circle",883:"Please select the second circle",884:"Please set the top left corner point of the rectangle",885:"Please set the bottom right corner point of the rectangle",886:"Please set the fillet radius",887:"Please select the starting point of the polygon",888:"Please select polygon vertices",889:"Select object:",890:"Specify base point",891:"Specify the second point",892:"array",893:"exit",894:"give up",895:"Enter the number of items to be arranged in the array",896:"Select arc object",897:"Choose to copy rotated objects:",898:"Please specify the target point",899:"Please specify the rotation angle",900:"Select the object to be converted into a polygon",901:"Set the number of polygon edges",902:"Input Options",903:"Internally connected to a circle",904:"Externally cut to a circle",905:"Select the object whose color you want to modify",906:"Enter color index",907:"hide",908:"Hide Unselected",909:"show all",910:"Select the target object",911:"Specify to delete the first point of the box:",912:"Specify to delete the second point of the box:",913:"Select the entity that needs to be precisely deleted",914:"Please select an angle to copy the object",915:"Please enter the angle for copying quantity",916:"Please enter the base point for copying the angle",917:"Please enter the copying angle",918:"Please select vertex object",919:"Please select the copied object",920:"Please confirm the replication base point",921:"Please select the reference curve",922:"Select interrupt object",923:"Specify offset object",924:"Please enter the offset distance",925:"Specify the scaling object (select lines, polylines, arcs)",926:"Stretching to",927:"Select the object to modify the line type scale",928:"Please enter the line type ratio",929:"Please enter the array spacing",930:"Please select an arc",931:"Select sorting objects",932:"Specify the arrangement base point",933:"Select target polyline:",934:"Please enter rounded corner radius<5>",935:"Select fill object",936:"Please enter the fill ratio",937:"Please select the original fill shape",938:"Please click to fill any point inside the graphic",939:"Please select a line object",940:"Select equal division mode",941:"measure",942:"Divide",943:"Offset equal division",944:"Copy equally",945:"Please select offset equal division objects",946:"Please select to copy equally divided objects",947:"Please select the line segments that need to be divided equally",948:"Please set equal distances",949:"Please set the number of equal parts",950:"Please set the offset distance",951:"Please specify the offset point",952:"Please specify the replication base point",953:"Please specify the number of equal parts to be copied",954:"Please specify the endpoints for copying and dividing equally",955:"Please select the entity that requires rectangular scaling:",956:"Please specify corner 1 of the rectangle",957:"Please specify corner 2 of the rectangle",958:"Please choose to zoom in on the center point",959:"Please select the zoom in range",960:"Please set the magnification factor",961:"Please choose to enlarge the insertion point",962:"Please select a curve that needs to be broken",963:"Please select a break point on the curve",964:"Please enter the number of arrays",965:"Do you want to enable rotation",966:"correct",967:"deny",968:"Please select the graphics that require an array:",969:"Please select the center point of the array",970:"Please select a closed polygon!",971:"Please select the first point",972:"Please select the second point",973:"Please select the first closed polygon",974:"Please select the second closed polygon",975:"Please select two closed polygons",976:"Two polygons do not have overlapping edges!",977:"Please select the target polygon",978:"Please select the edges of the polygon to add vertices to",979:"Please set the position of the added vertices",980:"Please select the vertices of the polygon that need to be deleted",981:"Please select the edges of the polygon that need to be stretched",982:"Please specify the stretching position",983:"Please set the orientation of the frame to<N>",984:"horizontal",985:"longitudinal",986:"Please set the frame size to<4>",987:"Please set the position of the frame",988:"Specify cutting corner 1",989:"Specify cutting corner point 2",990:"Please set the starting point of the road",991:"Please set the next point",992:"Please select the target alignment line object (choose a line)",993:"Please select the target text object",994:"Select Text Object",995:"Please set the font height",996:"Please set the word width",997:"Please select the source text",998:"Please select the first text",999:"Please select the second text",1e3:"Please select the text that needs to be aligned",1001:"Please choose the alignment method",1002:"the left side",1003:"centre",1004:"the right side",1005:"Please select the alignment base point",1006:"Please select the text that needs to be reversed",1007:"Please select the text that needs to be filled with spaces",1008:"Please select a text object",1009:"Please enter underline width",1010:"Please set the underline distance",1011:"Please set an underline to extend the distance",1012:"Please select the operation option",1013:"capital letters",1014:"lowercase",1015:"sentence case ",1016:"Please select a numerical object",1017:"Please select a text insertion point",1018:"Select the scope to search for:",1019:"Please select the search mode",1020:"equal to",1021:"contain",1022:"The prefix is",1023:"The suffix is",1024:"Please enter keywords",1025:"Select the scope of operation:",1026:"Select operation mode",1027:"add",1028:"delete",1029:"Select operation location",1030:"prefix",1031:"suffix",1032:"Please enter the content",1033:"Please select text",1034:"Please select an arc",1035:"Please choose a text style",1036:"Please set the text extraction range",1037:"Download and open the demo code",1038:"Download development kit",1039:"Call the command to draw circular lines",1040:"Interactive drawing of straight lines",1041:"Add Layer",1042:"Get all layers",1043:"Get all text styles",1044:"Obtain all image blocks",1045:"Get all line types",1046:"Write extended data",1047:"Read extended data",1048:"Test inserting a block",1049:"Draw a straight line",1050:"arc ",1051:"circle",1052:"Draw PL line",1053:"Draw Fill",1054:"emoji",1055:"Draw an ellipse",1056:"Draw elliptical arcs",1057:"Draw multiline text",1058:"TABLE",1059:"Draw QR code",1060:"Insert stamp",1061:"Get all objects",1062:"Interactive selection of objects",1063:"Save MXWeb to the server",1064:"Obtain system variables",1065:"new sheet",1066:"White background color",1067:"Text search and positioning",1068:"Select entity to make blocks",1069:"Draw single line text",1070:"Select point filling",1071:"Set extended attributes",1072:"Draw alignment annotations",1073:"Drawing line annotation",1074:"angular",1075:"Modify object line type",1076:"Select hidden object layer",1077:"Add to current selection",1078:"Visual rotation",1079:"Write extension records",1080:"Get a Naming Dictionary",1081:"Add Text Style",1082:"Draw custom entities",1083:"Modify object color",1084:"The modified object is not visible",1085:"Modify object layer",1086:"Modify the display order of objects",1087:"Output PDF within the specified range",1088:"Draw an image",1089:"Read object extension dictionary",1090:"Draw 3D Polyline",1091:"Custom entity for line drawing text",1092:"Calculate intersection point",1093:"Modify Text Style",1094:"Offset input line drawing",1095:"Create Group",1096:"Screenshot JPG",1097:"Obtain the same text as the drawing",1098:"Specify the output range as dwg",1099:"Test drawing marker circle",1100:"Test Wipeout",1101:"create cutouts",1102:"Tolerance marking",1103:"Change all object colors",1104:"Cutting MXWeb",1105:"Set the current color line weight",1106:"Search for objects within a polygonal region",1107:"Smash objects",1108:"Draw semi transparent lines",1109:"Add line type",1110:"Modify the proportion of the pattern",1111:"Test Text Editing",1112:"Draw barcode",1113:"Screenshot BMP",1114:"Modify Tools",1115:"text tool",1116:"Drawing tools",1117:"Block Tool",1118:"Instrument",1119:"Annotation tool",1120:"Other tools",1121:"Multiple replication",1122:"Arc to Circle",1123:"Copy Rotation",1124:"Circular to Multilateral",1125:"Change color",1126:"Arc angle cutting",1127:"Temporary Hide",1128:"Box deletion",1129:"Angle copying",1130:"Vertex Copy",1131:"Intersection point interruption",1132:"double offset",1133:"Change the size of the circle",1134:"Linetype Scale",1135:"Telescoping",1136:"By arc array",1137:"PL rounded corner",1138:"PL line reverse",1139:"Obtain all linear objects",1140:"equal division",1141:"Rectangular scaling",1142:"interrupt",1143:"Cutting polygons",1144:"Merging Polygons",1145:"Add polygon vertices",1146:"Delete polygon vertices",1147:"Unilateral stretching of polygons",1148:"star shape",1149:"Concave convex line",1150:"jagged lines",1151:"Center rectangle",1152:"rounded rectangle",1153:"Circular centerline",1154:"pipe",1155:"Pipe cutting symbol",1156:"perpendicular bisector",1157:"staircase",1158:"solid circle",1159:"Thermal insulation cotton",1160:"Centerline",1161:"Opening a hole",1162:"message box",1163:"Reference symbol (1)",1164:"weld line",1165:"concentric circles",1166:"gear",1167:"Block centerline",1168:"Circular tangent line",1169:"Reference symbol (2)",1170:"Insert frame",1171:"Draw roads",1172:"Draw any polygon",1173:"Align by line",1174:"Change the font height",1175:"Change the width of the characters",1176:"Brush content",1177:"Change content",1178:"justified",1179:"Align up and down",1180:"Text reversal",1181:"Text framing",1182:"underline",1183:"Title line",1184:"case",1185:"Sum of numbers",1186:"Select specific characters",1187:"affix",1188:"Connecting Text",1189:"Delete space",1190:"Vertical Text",1191:"Align by arc",1192:"Modify global text style",1193:"Extract Text",1194:"Text number",1195:"Change the block name",1196:"Brush block",1197:"Block Connection",1198:"Change the base point of the block",1199:"Change the color of the block",1200:"Multi block rotation",1201:"Multi block scaling",1202:"Brush block angle",1203:"Select by block",1204:"Select all by block",1205:"Statistics of individual blocks",1206:"Count multiple blocks",1207:"Modify block layer",1208:"length",1209:"Statistical area",1210:"Intelligent elevation",1211:"area",1212:"Rectangular area",1213:"distance from point to line",1214:"arc length",1215:"Measuring Circle",1216:"CONTINUE",1217:"View segment length",1218:"Area including arc",1219:"Drawing review annotation",1220:"Rectangular annotation",1221:"Roughness annotation",1222:"Coordinate annotation",1223:"Slope marking",1224:"alignment",1225:"enlarge",1226:"Number annotation",1227:"Rotate annotation",1228:"Circular hole marking",1229:"Directional symbol",1230:"Radiographic annotation",1231:"Rectangular annotation hovering color change",1232:"Crop drawing extension",1233:"Arrow line",1234:"Selected Text",1235:"Clipboard",1236:"cancel",1237:"sure",1238:"Tolerance code",1239:"Tolerance 1",1240:"Tolerance 2",1241:"annotations",1242:"top",1243:"bottom",1244:"reference",1245:"Full week symbol",1246:"Current line",1247:"Add Row",1248:"delete row",1249:"zero clearing",1250:"Straightness",1251:"Flatness",1252:"roundness",1253:"Cylindricity",1254:"Line Profile",1255:"Profile of a Surface",1256:"parallelism",1257:"verticality",1258:"tilt",1259:"Positional accuracy",1260:"Coaxiality",1261:"Symmetry",1262:"runout",1263:"total runout",1264:"clean up",1265:"Please enter the text content and number:",1266:"Text content:",1267:"(Enter 0-20 words)",1268:"Starting number:",1269:"(Number automatically increases by 1)",1270:"Number location:",1271:"Number before",1272:"Number after",1273:"change direction",1274:"Left text content:",1275:"Text content on the right:",1276:"Bottom text content:",1277:"Basic symbols",1278:"Same requirements",1279:"Most symbols",1280:"Add a horizontal line to the long side",1281:"auxiliary symbol",1282:"Supplementary symbols",1283:"Symbol position",1284:"Special symbols",1285:"Left size",1286:"Up size",1287:"Right size",1288:"Staggered weld",1289:"spacing",1290:"extended text ",1291:"Dashed line position",1292:"Welding instructions",1293:"Clear rows",1294:"flange weld",1295:"Type I weld seam",1296:"V-shaped weld seam",1297:"Unilateral V-shaped weld seam",1298:"Single sided steep side V-shaped groove welding",1299:"Tilted weld seam",1300:"Removable pad",1301:"Durable pad",1302:"V-type weld with rounded edge",1303:"U-shaped weld with rounded edge",1304:"Single sided V-shaped weld with a stop edge",1305:"Single sided U-shaped weld with a stop edge",1306:"Edge weld",1307:"Welding joint",1308:"sealing bead",1309:"fillet weld",1310:"Plug weld or groove weld",1311:"spotweld",1312:"Folding interface",1313:"Tilt interface",1314:"Spot weld seam (offset center)",1315:"Weld seam",1316:"Weld seam (off center)",1317:"Steep side V-shaped groove welding",1318:"The first type of planar symbol",1319:"The second concave symbol",1320:"The second type of convex symbol",1321:"The second type of planar symbol",1322:"The first convex symbol",1323:"The third type of planar symbol",1324:"The first concave symbol",1325:"Flatten the weld seam",1326:"Smooth transition at the toe",1327:"With pad symbol",1328:"Three sided weld symbol",1329:"Surrounding welding symbols",1330:"On site symbols",1331:"tail symbol",1332:"Interleaved intermittent welding symbol",1333:"Horn shaped weld seam",1334:"Unilateral horn shaped weld seam",1335:"Weld seam",1336:"Lock edge weld seam",1337:"Locking edge groove",1338:"upper",1339:"below",1340:"not have",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"Select the weld symbol to be placed on the geometric shape",1346:"Welding angle width:",1347:"Unilateral V-shaped butt weld (front view)",1348:"Corner weld seam (front view)",1349:"Unilateral V-shaped butt weld (side view)",1350:"Corner weld seam (side view)"}},Symbol.toStringTag,{value:"Module"})),KV=Object.freeze(Object.defineProperty({__proto__:null,default:{718:"출력 범위의 첫 번째 점을 지정합니다.",719:"출력 범위의 두 번째 점을 지정합니다.",720:"첫 번째 점을 지정합니다.",721:"두 번째 점 지정:",722:"클라우드 와이어프레임 시작점:",723:"클라우드 와이어프레임 끝점:",724:"심사 아이콘 참고 사항:",725:"클릭하여 구름선을 그리기 시작:",726:"다시 클릭하여 클라우드 그리기를 끝냅니다.",727:"점 지정:",728:"두 점 지정:",729:"객체 선택",730:"다음 점을 지정합니다.",731:"\\ 삽입 기준점 지정",732:"테이블 삽입점을 지정하려면 다음과 같이 하십시오.",733:"삽입점을 지정하려면 다음과 같이 하십시오.",734:"삽입 기준점 지정",735:"치수 객체 선택",736:"대상 텍스트 선택",737:"채우기 영역 내부의 점을 지정합니다.",738:"닫힌 영역을 찾을 수 없음",739:"표면 거친도",740:"용접 기호",741:"비트 공차",742:"사용자 정의 속성을 설정할 객체 선택",743:"숨길 객체 선택",744:"삽입점을 지정하려면 다음과 같이 하십시오.",745:"점 지정:",746:"각도 지정",747:"두 점 지정:",748:"해치 객체 선택",749:"첫 번째 점을 지정합니다.",750:"두 번째 점 지정:",751:"두 번째 각도를 지정합니다.",752:"마지막 점을 지정합니다.",753:"좌표점을 지정합니다.",754:"치수 점을 지정하려면 다음과 같이 하십시오.",755:"승인 의견을 입력하십시오.",756:"클라우드 와이어프레임 시작점 지정",757:"클라우드 와이어프레임 끝점 지정",758:"심사 아이콘 주석 지정",759:"첫 번째 구석을 지정합니다.",760:"두 번째 구석 지정:",761:"일련번호 위치를 지정하려면 다음과 같이 하십시오.",762:"회전 기호",763:"태그 유형",764:"태그가 필요한 원을 선택하십시오.",765:"위치 점 또는 선 또는 호 또는 원을 설정하십시오.",766:"드래그하여 치수 위치 결정",767:"각도를 지정하거나 입력하십시오.",768:"용접 기호",769:"위치 점, 선 또는 호를 선택하십시오.",770:"두 번째 점을 지정하십시오.",771:"위치 점을 설정하십시오.",772:"각도를 설정하십시오.",773:"위치 점이나 선 또는 호를 설정하십시오.",774:"지시선 전환점을 설정하십시오.",775:"드래그하여 위치 점 결정",776:"첫 번째 점을 지정하십시오.",777:"두 번째 점을 지정하십시오.",778:"대상 블록 객체를 선택하십시오.",779:"새 블록 이름을 입력하십시오.",780:"기준점을 수정할 블록 선택",781:"기준점 설정",782:"색상을 수정할 블록 선택",783:"색상 색인 입력 (0~256)",784:"소스 블록을 선택하십시오.",785:"브러시할 대상 블록 선택:",786:"연결 방법 선택",787:"수동으로 하나씩 연결",788:"자동 대량 연결",789:"연결된 블록을 선택하십시오.",790:"중심선 길이 설정",791:"회전할 대상 블록을 선택합니다.",792:"회전 각도 설정",793:"배율을 설정하십시오.",794:"선택 범위를 설정하십시오.",795:"대상 블록을 선택하십시오.",796:"통계 범위를 설정하십시오.",797:"테이블 삽입점을 지정하려면 다음과 같이 하십시오.",798:"대상 커브 선택",799:"길이 치수 점 지정",800:"대상 객체 선택",801:"대상 기울기 객체를 선택하십시오.",802:"치수 문자 높이를 설정하십시오.",803:"기울기 치수 점 지정",804:"대상 좌표점을 선택하십시오.",805:"치수 위치를 지정하십시오.",806:"시작점 지정",807:"끝점 지정",808:"치수 방향 지정",809:"텍스트 내용을 설정하십시오.",810:"영역의 첫 번째 점을 선택하십시오.",811:"다음 점을 선택하십시오.",812:"영역 치수의 위치를 선택하십시오.",813:"사각형의 구석 1을 선택하십시오.",814:"사각형의 구석 2 를 선택하십시오.",815:"영역 치수의 위치를 설정하십시오.",816:"측정 점을 선택하십시오.",817:"선을 선택하십시오.",818:"치수 선의 위치를 설정하십시오.",819:"호선을 선택하십시오.",820:"치수 선 위치를 지정하십시오.",821:"원 객체를 선택하십시오.",822:"문자 위치를 지정하십시오.",823:"선의 끝점이나 호를 선택하십시오.",824:"문자의 위치를 지정하십시오.",825:"연속 측정을 위한 치수를 선택하십시오.",826:"두 번째 선을 선택하십시오.",827:"각도 치수의 위치를 설정하십시오.",828:"별 꼭대기 점 수를 입력하십시오.",829:"별의 중심점을 지정하려면:",830:"별의 내부 반지름을 설정하십시오.",831:"별의 외부 반지름을 지정합니다.",832:"범프 선 너비를 입력하십시오<5>",833:"범프 선 높이를 입력하십시오<10>",834:"시작점을 확인하려면 클릭하십시오.",835:"클릭하여 결승점을 확정하세요",836:"앤티앨리어싱 너비를 입력하십시오<5>",837:"앤티앨리어싱 높이 입력<10>",838:"직사각형 너비 입력<5>",839:"직사각형 높이 입력<10>",840:"클릭하여 사각형 중심 확인",841:"파이프 지름을 입력하십시오<10>",842:"파이프 배출구 길이를 입력하십시오<5>",843:"클릭하여 시작점 확인",844:"횡단면 파이프라인 시작점 지정하기",845:"횡단면 파이프라인 끝점 지정하기",846:"횡단면 파이프라인 호 방향 선택",847:"왼쪽",848:"오른쪽",849:"선택 모드",850:"선 용접",851:"아크 용접",852:"용접 반지름을 입력하십시오<5>",853:"호의 두 번째 점 지정하기",854:"호의 끝점 지정하기",855:"폭을 입력하십시오<25>",856:"높이를 입력하십시오<15>",857:"계단 레벨을 입력하십시오<10>",858:"중심 위치를 확인하십시오.",859:"원 반지름을 입력하십시오.",860:"보온면 너비 입력<5>",861:"보온면 높이 입력<10>",862:"다음 점 눌러주세요.",863:"첫 번째 선을 선택하십시오.",864:"두 번째 선을 선택하십시오.",865:"끝점을 선택하십시오.",866:"대상 사각형을 선택하십시오.",867:"나침반 중심점 설정",868:"나침반 반지름 설정",869:"프롬프트 상자 가리키기 선택",870:"메시지 상자의 첫 번째 점을 지정합니다.",871:"메시지 상자의 두 번째 점을 지정합니다.",872:"메시지 상자 방향을 설정하려면 다음과 같이 하십시오.",873:"데이텀 문자 설정하기",874:"문자 높이를 설정하십시오.",875:"데이텀 문자 위치를 설정하십시오.",876:"위치 점이나 호 또는 선을 설정하십시오.",877:"기호 위치를 설정하십시오.",878:"중심점을 설정하십시오.",879:"기어 중심을 설정하십시오.",880:"기어 반지름을 설정하십시오.",881:"중심선 길이 10 설정 >",882:"첫 번째 원을 선택하십시오.",883:"두 번째 원을 선택하십시오.",884:"직사각형의 왼쪽 위 구석을 설정하십시오.",885:"직사각형의 오른쪽 아래 구석을 설정하십시오.",886:"필렛 반지름을 설정하십시오.",887:"다각형 시작점을 선택하십시오.",888:"다각형 교점을 선택하십시오.",889:"객체 선택:",890:"기준점 지정",891:"두 번째 점 지정",892:"어레이",893:"종료",894:"포기",895:"패턴화할 항목 수 입력",896:"호 객체 선택",897:"회전된 객체 복사를 선택합니다.",898:"대상 점을 지정하십시오.",899:"회전 각도를 지정하십시오.",900:"다각형으로 변환할 객체 선택",901:"다각형 모서리 수 설정",902:"입력 옵션",903:"내접 원",904:"원에 외부 탄젠트",905:"색상을 수정할 객체 선택",906:"색상 색인 입력",907:"숨기기",908:"선택 안 함 숨기기",909:"모두 표시",910:"대상의 객체 선택",911:"상자의 첫 번째 점을 삭제하도록 지정합니다.",912:"상자 두 번째 점을 삭제하도록 지정합니다.",913:"정확하게 삭제할 엔티티 선택",914:"각도를 선택하여 객체를 복사합니다.",915:"각도 복사 수량을 입력하십시오.",916:"각도 복사의 기준점을 입력하십시오.",917:"복사 각도를 입력하십시오.",918:"정점 객체를 선택하십시오.",919:"객체 복사를 선택하십시오.",920:"복제 기준점을 확인하십시오.",921:"참조 커브 선택",922:"끊기 객체 선택",923:"오프셋 객체 지정",924:"오프셋 거리를 입력하십시오.",925:"신축 객체 지정 (선, 폴리선, 호 선택)",926:"다음으로 확장",927:"선종류 축척을 수정할 객체 선택",928:"선종류 축척을 입력하십시오.",929:"패턴 간격을 입력하십시오.",930:"호를 선택하십시오.",931:"정렬 객체 선택",932:"정렬 기준점 지정",933:"대상 폴리선을 선택합니다.",934:"필렛 반지름을 입력하십시오<5>",935:"채우기 객체 선택",936:"채우기 축척을 입력하십시오.",937:"원래 채우기 도면을 선택하십시오.",938:"도면 내부의 아무 곳이나 채우려면 클릭하십시오.",939:"선 객체 선택",940:"등분 모드 선택",941:"정거 등분",942:"정수 등분",943:"오프셋 등분",944:"등분 복사",945:"동등한 객체 간격띄우기를 선택하십시오.",946:"등분 객체 복사를 선택하십시오.",947:"등분할 세그먼트를 선택하십시오.",948:"등분 거리를 설정하십시오.",949:"등분 수량을 설정하십시오",950:"오프셋 거리를 설정하십시오.",951:"오프셋 점을 지정하십시오.",952:"복사 기준점을 지정하십시오.",953:"복사 등분 수량을 지정하십시오.",954:"복사 등분 끝점을 지정하십시오.",955:"사각형 배율이 필요한 엔티티를 선택하십시오.",956:"사각형의 구석 1 을 지정하십시오.",957:"사각형 구석 2를 지정하십시오.",958:"중심점 확대 선택",959:"확대 범위를 선택하십시오.",960:"확대 배수를 설정하십시오.",961:"삽입점 확대 를 선택하십시오.",962:"끊을 커브를 선택하십시오.",963:"커브에서 브레이크 점을 선택하십시오.",964:"패턴 수를 입력하십시오.",965:"회전 켜기",966:"예",967:"아니오",968:"배열이 필요한 도면을 선택하십시오.",969:"스토리지 중심점을 선택하십시오.",970:"닫힌 다각형을 선택하십시오!",971:"첫 번째 점을 선택하십시오.",972:"두 번째 점을 선택하십시오.",973:"첫 번째 닫힌 다각형을 선택하십시오.",974:"두 번째 닫힌 다각형을 선택하십시오.",975:"닫힌 다각형 두 개를 선택하십시오.",976:"두 다각형은 겹치는 모서리가 없습니다!",977:"대상 다각형을 선택하십시오.",978:"정점을 추가할 다각형 모서리를 선택하십시오.",979:"추가할 정점 위치를 설정하십시오.",980:"다각형에서 삭제할 정점을 선택하십시오.",981:"다각형으로 밀어낼 모서리를 선택하십시오.",982:"밀어내기 위치를 지정하십시오.",983:"그림 상자 방향을 설정하십시오<N>",984:"가로",985:"세로",986:"액자 크기를 설정하십시오<4>",987:"프레임 위치를 설정하십시오.",988:"트림 각도 점 1 지정",989:"트림된 구석 2 지정",990:"도로 시작점을 설치하세요",991:"다음 점을 설정하십시오.",992:"대상 정렬선 객체 (선 선택) 를 선택하십시오.",993:"대상 문자 객체를 선택하십시오.",994:"문자 객체 선택",995:"높이를 설정하십시오.",996:"글자 폭을 설정하십시오.",997:"원본 텍스트를 선택하십시오.",998:"첫 번째 텍스트를 선택하십시오.",999:"두 번째 텍스트를 선택하십시오.",1e3:"정렬할 문자를 선택하십시오.",1001:"정렬을 선택하십시오.",1002:"왼쪽",1003:"가운데",1004:"오른쪽",1005:"기준점 정렬을 선택하십시오.",1006:"반전할 텍스트를 선택하십시오.",1007:"공백을 제거할 텍스트를 선택하십시오.",1008:"문자 객체를 선택하십시오.",1009:"밑줄 너비를 입력하십시오.",1010:"밑줄 거리를 설정하십시오.",1011:"밑줄 연장 거리를 설정하십시오.",1012:"작업 옵션을 선택하십시오.",1013:"대문자",1014:"소문자",1015:"문장의 첫머리와 대문자.",1016:"디지털 객체를 선택하십시오.",1017:"텍스트 삽입점을 선택하십시오.",1018:"찾을 범위를 선택합니다.",1019:"찾기 모드를 선택하십시오.",1020:"같음",1021:"포함",1022:"접두사는",1023:"접미어는",1024:"키워드를 입력하십시오.",1025:"작업할 범위를 선택합니다.",1026:"작업 방법 선택",1027:"추가",1028:"삭제",1029:"작업 위치 선택",1030:"접두사",1031:"접미어",1032:"내용을 입력하십시오.",1033:"텍스트 선택",1034:"호를 선택하십시오.",1035:"문자 스타일을 선택하십시오.",1036:"텍스트 추출 범위를 설정하십시오.",1037:"오픈 데모 코드 다운로드",1038:"개발 패키지 다운로드",1039:"원선 그리기 명령 호출",1040:"서로 직선을 그리다",1041:"도면층 추가",1042:"모든 도면층 가져오기",1043:"모든 문자 스타일 가져오기",1044:"모든 그림 블록 가져오기",1045:"모든 선 모양 가져오기",1046:"확장 데이터 쓰기",1047:"확장 데이터 읽기",1048:"그림 블록 삽입 테스트",1049:"선을 그리다",1050:"호 그리기",1051:"원을 그리다",1052:"PL 선 그리기",1053:"채우기 그리기",1054:"드로잉 문자",1055:"타원 그리기",1056:"타원형 호를 그리다",1057:"여러 줄 문자 그리기",1058:"테이블 그리기",1059:"QR코드 그리기",1060:"도장 삽입",1061:"모든 객체 가져오기",1062:"상호 객체 선택",1063:"서버에 mxweb 저장",1064:"시스템 변수 가져오기",1065:"새 시트",1066:"흰색 배경색",1067:"텍스트 찾기 위치",1068:"블록으로 솔리드 선택",1069:"단일행 문자 그리기",1070:"선택 채우기",1071:"확장 속성 설정",1072:"정렬 치수 그리기",1073:"회선 치수",1074:"각도 치수",1075:"객체 선종류 수정",1076:"숨겨진 객체 레이어 선택",1077:"현재 선택에 추가",1078:"뷰포트 회전",1079:"확장 레코드 쓰기",1080:"명명 사전 얻기",1081:"문자 스타일 추가",1082:"사용자 솔리드 그리기",1083:"객체 색상 수정",1084:"수정 개체가 보이지 않음",1085:"객체 레이어 수정",1086:"객체 표시 순서 수정",1087:"범위 지정 출력 pdf",1088:"이미지 그리기",1089:"객체 확장 사전 읽기",1090:"3DPolyline 그리기",1091:"선 그리기 텍스트 사용자화 솔리드",1092:"계산 교차점",1093:"문자 스타일 수정",1094:"오프셋 입력 선",1095:"그룹 만들기",1096:"스크린샷 jpg",1097:"시트 동일 문자 가져오기",1098:"범위 출력 dwg 지정",1099:"표식 원 그리기 테스트",1100:"Wipeout 테스트",1101:"잘라낸 블록 생성하기",1102:"공차 치수",1103:"모든 객체 색상 변경",1104:"자르기 mxweb",1105:"현재 색상 선 무게 설정",1106:"다각형 영역 내의 객체 찾기",1107:"객체 깨기",1108:"반투명 선 그리기",1109:"선 유형 추가",1110:"패턴 축척 수정하기",1111:"텍스트 편집 테스트",1112:"바코드 그리기",1113:"스크린샷 bmp",1114:"수정 도구",1115:"문자 도구",1116:"드로잉 도구",1117:"블록 도구",1118:"측정 도구",1119:"치수 도구",1120:"기타 도구",1121:"다중 복제",1122:"호전원",1123:"복사 회전",1124:"원형 다각형",1125:"색상 수정",1126:"호 탄젠트",1127:"임시 숨기기",1128:"상자 삭제",1129:"각도 복사",1130:"정점 복사",1131:"교점이 끊어지다",1132:"양방향 오프셋",1133:"원 크기 변경",1134:"선종류 축척",1135:"신축",1136:"호별 패턴",1137:"pl 필렛",1138:"pl선 대칭 이동",1139:"모든 선 객체 가져오기",1140:"등분",1141:"직사각형 크기 조절",1142:"끊다",1143:"다각형 가공하기",1144:"다각형 결합",1145:"다각형 교점 추가",1146:"다각형 교점 삭제",1147:"다각형 단일 밀어내기",1148:"별 모양",1149:"범프 선",1150:"톱니 선",1151:"중심 사각형",1152:"필렛 사각형",1153:"원 중심선",1154:"파이프",1155:"단면부",1156:"중수선",1157:"계단",1158:"채워진 원",1159:"보온면",1160:"중심선",1161:"구멍을 내다",1162:"메시지 상자",1163:"데이텀 문자 (1)",1164:"용접선",1165:"동심원",1166:"기어",1167:"블록 중심선",1168:"원형 공접선",1169:"데이텀 문자 (2)",1170:"그림 상자 삽입",1171:"도로를 그리다",1172:"다각형 그리기",1173:"선으로 정렬",1174:"고자질",1175:"글자의 폭을 바꾸다",1176:"내용 스밍",1177:"내용을 바꾸다",1178:"좌우 정렬",1179:"위아래 정렬",1180:"문자 반전",1181:"텍스트 상자",1182:"밑줄",1183:"도명선",1184:"대소문자",1185:"숫자 구화",1186:"특정 단어 선택",1187:"접미어",1188:"연결 문자",1189:"공백 제거",1190:"문자 세로 방향",1191:"호별 정렬",1192:"전역 문자 스타일 수정",1193:"텍스트 추출",1194:"문자 번호",1195:"블록 이름 변경",1196:"브러시",1197:"블록 연결",1198:"블록 기준점을 변경하다.",1199:"블록 색상 변경",1200:"다중 블록 회전",1201:"다중 블록 크기 조절",1202:"브러시 각도",1203:"블록별 선택",1204:"블록별로 모두 선택",1205:"통계 단일 블록",1206:"다중 블록 통계",1207:"블록 도면층 수정",1208:"길이",1209:"통계 면적",1210:"지능형 높이",1211:"면적",1212:"직사각형 영역",1213:"점에서 선까지의 거리",1214:"호 길이",1215:"원 측정",1216:"연속 측정",1217:"세그먼트 길이 보기",1218:"영역 포함 호",1219:"심도 치수",1220:"직사각형 치수",1221:"조잡도 치수",1222:"좌표 치수",1223:"슬로프",1224:"정렬",1225:"부분 확대",1226:"일련번호 마크업",1227:"치수 회전",1228:"둥근 구멍 표식",1229:"방향 기호",1230:"방사선 치수",1231:"직사각형 치수 고정 변색",1232:"용지 확장 트림",1233:"화살표 선",1234:"선택한 텍스트",1235:"클립보드로 복사",1236:"취소",1237:"확인",1238:"공차 코드",1239:"공차 1",1240:"공차 2",1241:"부주",1242:"꼭대기",1243:"밑단",1244:"기준",1245:"전주기호",1246:"현재 행",1247:"행 추가",1248:"행 삭제",1249:"제로",1250:"직선도",1251:"평면도",1252:"원도",1253:"원통도",1254:"선 프로파일",1255:"면 프로파일",1256:"평행도",1257:"수직도",1258:"경사도",1259:"위치도",1260:"동축도",1261:"대칭도",1262:"둥글게 뛰다",1263:"올댄스",1264:"지우기",1265:"텍스트 내용 및 번호를 입력하십시오.",1266:"텍스트 내용:",1267:"(0-20자 입력)",1268:"시작 번호:",1269:"(번호 자동 증가 1)",1270:"번호 지정 위치:",1271:"번호 이전",1272:"번호 뒤에",1273:"방향 변경",1274:"왼쪽 텍스트 내용:",1275:"오른쪽 텍스트 내용:",1276:"아래 텍스트 내용:",1277:"기본 기호",1278:"동일 요구 사항",1279:"다수 기호",1280:"긴 모서리 가로줄",1281:"보조 기호",1282:"보충 기호",1283:"기호 위치",1284:"특수 기호",1285:"왼쪽 치수",1286:"위 치수",1287:"오른쪽 치수",1288:"교차 용접",1289:"간격",1290:"텍스트 확장",1291:"점선 위치",1292:"용접 설명",1293:"행 지우기",1294:"볼륨 모서리 용접",1295:"유형 I 용접",1296:"V 용접",1297:"단일 V 용접",1298:"한면 급경사 V 그루브 스택",1299:"용접 기울이기",1300:"분리식 패드",1301:"영구 패드",1302:"리턴 모서리 V 용접",1303:"리턴 모서리 U 용접",1304:"리턴 모서리 단일 V 용접",1305:"리턴 모서리 단일 U 용접",1306:"끝 용접",1307:"스택 용접 커넥터",1308:"커버 용접",1309:"필렛 용접",1310:"플러그 또는 슬롯 용접",1311:"점 용접",1312:"인터페이스 축소",1313:"기울기 커넥터",1314:"점 용접 (가운데 오프셋)",1315:"용접",1316:"용접 (중심 이탈)",1317:"가파른 V 그루브 스택",1318:"첫 번째 평면 기호",1319:"두 번째 오목 기호",1320:"두 번째 볼록 기호",1321:"두 번째 평면 기호",1322:"첫 번째 볼록 기호",1323:"세 번째 평면 기호",1324:"첫 번째 오목 기호",1325:"용접 깎기",1326:"발가락 부드럽게 변환",1327:"개스킷 기호 포함",1328:"3면 용접 기호",1329:"주변 용접 문자",1330:"필드 기호",1331:"꼬리 기호",1332:"인터레이스 띄엄필렛 용접 기호",1333:"플레어 용접",1334:"단일 플레어 용접",1335:"더미 용접",1336:"자물쇠 모서리 용접",1337:"모서리 그루브 잠금",1338:"위",1339:"하",1340:"없음",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"형상에 배치할 용접 기호 선택",1346:"용접 각도 너비:",1347:"단일 V 버트 용접(전면)",1348:"필렛 용접 (전면)",1349:"단일 V 버트 용접 (측면 뷰)",1350:"필렛 용접 (측면 뷰)"}},Symbol.toStringTag,{value:"Module"})),ZV=Object.freeze(Object.defineProperty({__proto__:null,default:{718:"指定輸出範圍第一點:",719:"指定輸出範圍第二點:",720:"指定第一點:",721:"指定第二點:",722:"雲線框起始點:",723:"雲線框結束點:",724:"審圖標注點:",725:"點擊開啟繪製雲線:",726:"再次點擊結束繪製雲線:",727:"指定一點:",728:"指定二點:",729:"選擇對象",730:"指定下一個點:",731:"\\指定插入基點",732:"指定表格插入點:",733:"指定插入點:",734:"指定插入基點",735:"選擇標注對象",736:"請選擇目標文字",737:"指定填充區域內部一點:",738:"沒有找到閉合區域",739:"表面粗糙度",740:"焊接符號",741:"形位公差",742:"選擇要需要開啟自訂屬性的對象",743:"選擇要隱藏的對象",744:"指定插入點:",745:"指定一點:",746:"指定夾角",747:"指定二點:",748:"選擇圖案填充對象",749:"指定第一點:",750:"指定第二點:",751:"指定第二個角度點:",752:"指定最後一個點:",753:"指定座標點:",754:"指定標注點:",755:"請輸入審批意見",756:"指定雲線框起始點",757:"指定雲線框終止點",758:"指定審圖標注點",759:"指定第一個角點:",760:"指定第二個角點:",761:"指定序號位置:",762:"旋轉符號",763:"標記類型",764:"請選擇需要標記的圓:",765:"請設定定位點或直線或圓弧或圓",766:"拖動確定標注位置",767:"請指定或輸入角度",768:"焊縫符號",769:"請拾取定位點、直線或圓弧",770:"請指定第二點",771:"請設定定位點",772:"請設定角度",773:"請設定定位點或直線或圓弧",774:"請設定引線轉捩點",775:"拖動確定定位點",776:"請指定第一點:",777:"請指定第二點:",778:"請選擇目標塊對象",779:"請輸入新塊名",780:"選擇需要修改基點的塊",781:"設定基點",782:"選擇需要修改顏色的塊",783:"輸入顏色索引(0~256)",784:"請選擇源塊",785:"選擇要刷的目標塊:",786:"選擇連接管道",787:"手動逐個連線",788:"自動批量連線",789:"請選擇連線的塊",790:"設定中心線長度",791:"選擇要旋轉的目標塊:",792:"設定旋轉角度",793:"請設定縮放比例",794:"請設定選擇範圍:",795:"請選擇目標塊",796:"請設定統計範圍",797:"指定表格插入點:",798:"選擇目標曲線",799:"指定長度標注點",800:"選擇目標對象",801:"請選擇目標斜率對象",802:"請設定標注文字高度",803:"指定斜率標注點",804:"請選擇目標座標點",805:"請指定標注位置",806:"指定起點",807:"指定終點",808:"指定標注方向",809:"請設定文字內容",810:"請選擇面積的第一個點",811:"請選擇下一個點",812:"請選擇面積標注的位置",813:"請選擇矩形的角點1",814:"請選擇矩形的角點2",815:"請設定面積標注的位置",816:"請選擇一個量測點",817:"請選擇一條直線",818:"請設定尺寸線的位置",819:"請選擇一條弧線",820:"請指定尺寸線位置",821:"請選擇一個圓對象",822:"請指定文字位置",823:"請選擇直線的端點或弧線",824:"請指定文字的位置",825:"請選擇一個連續量測的標注",826:"請選擇第二條直線",827:"請設定角度標注的位置",828:"請輸入星形頂點數:",829:"指定星形中心點:",830:"請設定星形的內半徑:",831:"指定星形的外半徑:",832:"請輸入凹凸線寬度<5>",833:"請輸入凹凸線高度<10>",834:"請點擊確定起始點",835:"請點擊確定終點",836:"請輸入鋸齒線寬度<5>",837:"請輸入鋸齒線高度<10>",838:"請輸入矩形寬度<5>",839:"請輸入矩形高度<10>",840:"請點擊確定矩形中心",841:"請輸入管徑<10>",842:"請輸入長出管口長度<5>",843:"請點擊確定起點",844:"指定剖管線起點",845:"指定剖管線終點",846:"選擇剖管線圓弧方向",847:"左邊",848:"右邊",849:"選擇模式",850:"直線焊縫",851:"弧線焊縫",852:"請輸入焊縫半徑<5>",853:"指定圓弧的第二個點",854:"指定圓弧的端點",855:"請輸入寬度<25>",856:"請輸入高度<15>",857:"請輸入樓梯級數<10>",858:"請確定圓心位置",859:"請輸入圓半徑",860:"請輸入保溫棉寬度<5>",861:"請輸入保溫棉高度<10>",862:"請點擊下一個點",863:"請選擇第一條線",864:"請選擇第二條線",865:"請選擇終點",866:"請選擇目標矩形",867:"設定指北針中心點",868:"設定指北針半徑",869:"選擇提示框指向",870:"指定訊息方塊第一點:",871:"指定訊息方塊第二點:",872:"設定訊息方塊指向:",873:"請設定基準符文字",874:"請設定文字高度",875:"請設定基準符位置",876:"請設定定位點或圓弧或直線",877:"請設定符號位置",878:"請設定圓心",879:"請設定齒輪圓心",880:"請設定齒輪半徑",881:"請設定中心線長度10>",882:"請選擇第一個圓",883:"請選擇第二個圓",884:"請設定矩形左上角點",885:"請設定矩形右下角點",886:"請設定圓角半徑",887:"請選擇多邊形起點",888:"請選擇多邊形頂點",889:"選擇對象:",890:"指定基點",891:"指定第二個點",892:"陣列",893:"退出",894:"放弃",895:"輸入要進行陣列的項目數",896:"選擇圓弧對象",897:"選擇複製旋轉對象:",898:"請指定目標點",899:"請指定旋轉角度",900:"選擇要轉成多邊形的對象",901:"設定多邊形邊數",902:"輸入選項",903:"內接於圓",904:"外切於圓",905:"選擇要修改顏色的對象",906:"輸入顏色索引",907:"隱藏",908:"隱藏未選",909:"全部顯示",910:"選擇目標的對象",911:"指定删除方框第一點:",912:"指定删除方框第二點:",913:"選擇需要精確删除的實體",914:"請選擇角度複製對象",915:"請輸入角度複製數量",916:"請輸入角度複製的基點",917:"請輸入複製角度",918:"請選擇頂點對象",919:"請選擇複製對象",920:"請確定複製基點",921:"請選擇參攷曲線",922:"選擇打斷對象",923:"指定偏移對象",924:"請輸入偏移距離",925:"指定伸縮對象(選擇直線、多段線、圓弧)",926:"伸縮至",927:"選擇要修改線型比例的對象",928:"請輸入線型比例",929:"請輸入陣列間距",930:"請選擇圓弧",931:"選擇排列對象",932:"指定排列基點",933:"選擇目標多段線:",934:"請輸入圓角半徑<5>",935:"選擇填充對象",936:"請輸入填充比例",937:"請選擇原填充圖形",938:"請點擊填充圖形內部任意一點",939:"請選擇線對象",940:"選擇等分模式",941:"定距等分",942:"定數等分",943:"偏移等分",944:"複製等分",945:"請選擇偏移等分對象",946:"請選擇複製等分對象",947:"請選擇需要等分的線段",948:"請設定等分距離",949:"請設定等分的數量",950:"請設定偏移距離",951:"請指定偏移點",952:"請指定複製基點",953:"請指定複製等分數量",954:"請指定複製等分端點",955:"請選擇需要矩形縮放的實體:",956:"請指定矩形的角點1",957:"請指定矩形角點2",958:"請選擇放大中心點",959:"請選擇放大範圍",960:"請設定放大倍數",961:"請選擇放大插入點",962:"請選擇一條需要打斷的曲線",963:"請在曲線上選取打斷點",964:"請輸入陣列數量",965:"是否開啟旋轉",966:"是",967:"否",968:"請選擇需要陣列的圖形:",969:"請選擇陣列中心點",970:"請選擇閉合多邊形!",971:"請選擇第一個點",972:"請選擇第二個點",973:"請選擇第一個閉合多邊形",974:"請選擇第二個閉合多邊形",975:"請選擇兩個閉合多邊形",976:"兩個多邊形沒有重合邊!",977:"請選擇目標多邊形",978:"請選擇多邊形需要添加頂點的邊",979:"請設定添加的頂點位置",980:"請選擇多邊形需要删除的頂點",981:"請選擇多邊形需要拉伸的邊",982:"請指定拉伸位置",983:"請設定圖框方向<N>",984:"橫向",985:"縱向",986:"請設定圖框尺寸<4>",987:"請設定圖框位置",988:"指定裁剪角點1",989:"指定裁剪角點2",990:"請設定道路起點",991:"請設定下一點",992:"請選擇目標對齊線對象(選擇直線)",993:"請選擇目標文字對象",994:"選擇文字對象",995:"請設定字高",996:"請設定字寬",997:"請選擇源文字",998:"請選擇第一個文字",999:"請選擇第二個文字",1e3:"請選擇需要對齊的文字",1001:"請選擇對齊管道",1002:"左",1003:"中",1004:"右",1005:"請選擇對齊基點",1006:"請選擇需要反轉的文字",1007:"請選擇需要去空格的文字",1008:"請選擇文字對象",1009:"請輸入底線寬度",1010:"請設定底線距離",1011:"請設定底線延長距離",1012:"請選擇操作選項",1013:"大寫",1014:"小寫",1015:"句首大寫",1016:"請選擇數位對象",1017:"請選擇文字插入點",1018:"選擇要查找的範圍:",1019:"請選擇查找模式",1020:"等於",1021:"包含",1022:"首碼為",1023:"尾碼為",1024:"請輸入關鍵字",1025:"選擇要操作的範圍:",1026:"選擇操作管道",1027:"添加",1028:"删除",1029:"選擇操作位置",1030:"首碼",1031:"尾碼",1032:"請輸入內容",1033:"請選擇文字",1034:"請選擇圓弧",1035:"請選擇文字樣式",1036:"請設定文字選取範圍",1037:"下載開Demo程式碼",1038:"下載開發包",1039:"調用畫圓線命令",1040:"互動畫直線",1041:"添加圖層",1042:"得到所有圖層",1043:"得到所有文字樣式",1044:"得到所有圖塊",1045:"得到所有線型",1046:"寫擴展數據",1047:"讀擴展數據",1048:"測試插入一個圖塊",1049:"繪直線",1050:"繪圓弧",1051:"繪圓",1052:"繪PL線",1053:"繪填充",1054:"繪文字",1055:"繪橢圓",1056:"繪橢圓弧",1057:"繪製多行文字",1058:"繪製表格",1059:"繪製二維碼",1060:"插入圖章",1061:"得到所有對象",1062:"互動選擇對象",1063:"保存mxweb到服務器",1064:"得到系統變數",1065:"新建圖紙",1066:"白色背景色",1067:"文字查找定位",1068:"選擇實體做塊",1069:"繪製單行文字",1070:"選點填充",1071:"設定擴展内容",1072:"繪製對齊標注",1073:"繪性線標注",1074:"角度標注",1075:"修改對象線型",1076:"選擇隱藏對象層",1077:"添加到當前選擇",1078:"視區旋轉",1079:"寫擴展記錄",1080:"得到命名字典",1081:"添加文字樣式",1082:"繪自定義實體",1083:"修改對象顏色",1084:"修改對象不可見",1085:"修改對象層",1086:"修改對象顯示順序",1087:"指定範圍輸出pdf",1088:"繪製image",1089:"讀取對象擴展字典",1090:"繪製3DPolyline",1091:"繪線文字自定義實體",1092:"計算交點",1093:"修改文字樣式",1094:"偏移輸入畫線",1095:"創建組",1096:"螢幕截圖jpg",1097:"獲取圖紙相同文字",1098:"指定範圍輸出dwg",1099:"測試繪製標記圓",1100:"測試Wipeout",1101:"創建剪切塊",1102:"公差標注",1103:"改所有對象顏色",1104:"切剪mxweb",1105:"設定當前顏色線重",1106:"查找多邊形區域內對象",1107:"打碎對象",1108:"繪半透明線",1109:"添加線型",1110:"修改圖案比例",1111:"測試文字編輯",1112:"繪製條碼",1113:"螢幕截圖bmp",1114:"修改工具",1115:"文字工具",1116:"繪圖工具",1117:"塊工具",1118:"量測工具",1119:"標注工具",1120:"其他工具",1121:"多重複製",1122:"弧轉圓",1123:"複製旋轉",1124:"圓轉多邊",1125:"修改顏色",1126:"圓弧切角",1127:"臨時隱藏",1128:"方框删除",1129:"角度複製",1130:"頂點複製",1131:"交點打斷",1132:"雙向偏移",1133:"改圓大小",1134:"線型比例",1135:"伸縮",1136:"按弧陣列",1137:"pl圓角",1138:"pl線反向",1139:"得到所有直線對象",1140:"等分",1141:"矩形縮放",1142:"打斷",1143:"切割多邊形",1144:"合併多邊形",1145:"添加多邊形頂點",1146:"删除多邊形頂點",1147:"多邊形單邊拉伸",1148:"星形",1149:"凹凸線",1150:"鋸齒線",1151:"中心矩形",1152:"圓角矩形",1153:"圓中心線",1154:"筦道",1155:"剖管符",1156:"中垂線",1157:"樓梯",1158:"實心圓",1159:"保溫棉",1160:"中心線",1161:"開洞",1162:"訊息方塊",1163:"基準符(1)",1164:"焊縫線",1165:"同心圓",1166:"齒輪",1167:"塊中心線",1168:"圓公切線",1169:"基準符(2)",1170:"插入圖框",1171:"繪製道路",1172:"繪任意多邊形",1173:"按線對齊",1174:"改字高",1175:"改字寬",1176:"刷內容",1177:"換內容",1178:"左右對齊",1179:"上下對齊",1180:"文字反轉",1181:"文字加框",1182:"底線",1183:"圖名線",1184:"大小寫",1185:"數位求和",1186:"選特定字",1187:"前尾碼",1188:"連接文字",1189:"去空格",1190:"文字豎向",1191:"按弧對齊",1192:"修改全域文字樣式",1193:"選取文字",1194:"文字編號",1195:"改塊名",1196:"刷塊",1197:"塊連線",1198:"改塊基點",1199:"改塊顏色",1200:"多塊旋轉",1201:"多塊縮放",1202:"刷塊角度",1203:"按塊選擇",1204:"按塊全選",1205:"統計單塊",1206:"統計多塊",1207:"修改塊圖層",1208:"長度",1209:"統計面積",1210:"智慧標高",1211:"面積",1212:"矩形面積",1213:"點到直線的距離",1214:"弧長",1215:"量測圓",1216:"連續量測",1217:"查看分段長度",1218:"面積含弧線",1219:"審圖標注",1220:"矩形標注",1221:"粗糙度標注",1222:"座標標注",1223:"標斜率",1224:"對齊",1225:"局部放大",1226:"序號標注",1227:"旋轉標注",1228:"圓孔標記",1229:"向視符號",1230:"射線標注",1231:"矩形標注懸停變色",1232:"裁剪圖紙擴展",1233:"箭頭直線",1234:"選擇的文字",1235:"複製到剪貼板",1236:"取消",1237:"確定",1238:"公差代號",1239:"公差1",1240:"公差2",1241:"附注",1242:"頂端",1243:"底端",1244:"基準",1245:"全周符號",1246:"當前行",1247:"新增行",1248:"删除行",1249:"清零",1250:"直線度",1251:"平面度",1252:"圓度",1253:"圓柱度",1254:"線輪廓度",1255:"面輪廓度",1256:"平行度",1257:"垂直度",1258:"傾斜度",1259:"位置度",1260:"同軸度",1261:"對稱度",1262:"圓跳動",1263:"全跳動",1264:"清除",1265:"請輸入文字內容和編號:",1266:"文字內容:",1267:"(輸入0-20個字)",1268:"起始編號:",1269:"(編號自動遞增1)",1270:"編號位置:",1271:"編號在前",1272:"編號在後",1273:"改變方向",1274:"左邊文字內容:",1275:"右邊文字內容:",1276:"底部文字內容:",1277:"基本符號",1278:"相同要求",1279:"多數符號",1280:"長邊加橫線",1281:"輔助符號",1282:"補充符號",1283:"符號位置",1284:"特殊符號",1285:"左尺寸",1286:"上尺寸",1287:"右尺寸",1288:"交錯焊縫",1289:"間距",1290:"擴充文字",1291:"虛線位置",1292:"焊接說明",1293:"清除行",1294:"卷邊焊縫",1295:"I型焊縫",1296:"V型焊縫",1297:"單邊V型焊縫",1298:"單邊陡側V型坡口堆焊",1299:"傾斜焊縫",1300:"可移除襯墊",1301:"持久襯墊",1302:"帶頓邊V型焊縫",1303:"帶頓邊U型焊縫",1304:"帶頓邊單邊V型焊縫",1305:"帶頓邊單邊U型焊縫",1306:"端接焊縫",1307:"堆焊接頭",1308:"封底焊縫",1309:"角焊縫",1310:"塞焊縫或槽焊縫",1311:"點焊縫",1312:"折疊介面",1313:"傾斜介面",1314:"點焊縫(偏移中心)",1315:"縫焊縫",1316:"縫焊縫(偏離中心)",1317:"陡側V型坡口堆焊",1318:"第一種平面符號",1319:"第二種凹面符號",1320:"第二種凸面符號",1321:"第二種平面符號",1322:"第一種凸面符號",1323:"第三種平面符號",1324:"第一種凹面符號",1325:"削平焊縫",1326:"趾部平滑過渡",1327:"帶墊板符號",1328:"三面焊縫符號",1329:"周圍焊接符",1330:"現場符號",1331:"尾部符號",1332:"交錯斷續焊接符號",1333:"喇叭形焊縫",1334:"單邊喇叭形焊縫",1335:"堆焊縫",1336:"鎖邊焊縫",1337:"鎖邊坡口",1338:"上",1339:"下",1340:"無",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"選擇要在幾何圖形上放置的焊縫符號",1346:"焊角寬度:",1347:"單邊V型對接焊縫(前視圖)",1348:"角焊縫(前視圖)",1349:"單邊V型對接焊縫(側視圖)",1350:"角焊縫(側視圖)"}},Symbol.toStringTag,{value:"Module"}))})(Mx,MxCAD,MXCADAPP_EXTERNALLIBRARIES.Vue,MXCADAPP_EXTERNALLIBRARIES.vuetifyComponents,MXCADAPP_EXTERNALLIBRARIES.axios);
|
|
6480
|
+
`;function lV(t){return t.replace(/[\u00A0\u1680\u2000-\u200D\u202F\u205F\u3000]/g," ")}const TA=t=>{const e=/\/\/{24}[\s\S]*\/\/{24}/g;let n=t.replace(e,"");return n=lV(n),n};(t=>{t.forEach(e=>{e.code=TA(e.code)}),t.push({type:"命令实现",name:"list 命令",code:TA(aV)})})(MA);class cV extends p.MxCADPluginBase{constructor(){super(),this.map_default_data=xU(),this.sampleCode=MA}}let Fu;const{showModal:uV,hideModal:Hl,showTools:hV}=If();function dV(){return Gt(this,null,function*(){uV({title:"My Test Draw",text:"测试Modal",oncancel:()=>{Hl()},onsubmit:()=>{Hl()},ongetallentity:()=>{Hl(),$.MxFun.sendStringToExecute("TestGetAllEntity")},ondrawline:()=>{Hl(),$.MxFun.sendStringToExecute("Mx_Circle")},docommand:t=>{Hl(),$.MxFun.sendStringToExecute(t)}})})}function pV(){return Gt(this,null,function*(){hV({title:"My Extension Tools",text:"扩展工具",oncancel:()=>{Hl()},docommand:t=>{Hl(),$.MxFun.sendStringToExecute(t)}})})}const PA=document.createElement("div");document.body.appendChild(PA),b.createApp(SS).mount(PA),DS(),MxPluginContext.on("databaseLayerUpdate",()=>{console.log("数据库图层数据更新")}),$.MxFun.setloadImageFuction((t,e,n)=>t.slice(-4)=="tiff"||t.slice(-3)=="tif"?(new p.MxTIFFLoader().load(t,e,n),1):0),$.MxFun.onInitSync(()=>new Promise(t=>{t(!0)})),$.MxFun.on("mxcadApplicationStart",t=>{Fu=t,Fu.init(new cV),$.MxFun.setIniset({IntelliSelectType:2})}),$.MxFun.on("mxcadApplicationInitMap",()=>{vU(Fu.mxmap)}),$.MxFun.on("mxcadApplicationStartCreatingMxCADObject",t=>{let e=t.mxdraw;e.setViewMovementMethod(!0),e.on("openFileComplete",()=>{console.log("MxTip:openFileComplete ")}),e.addControlsEvent("mousedown",n=>{let r=n.offsetX,s=n.offsetY,u=e.viewCoord2Cad(r,s,0);return console.log("mousedown:",u),0})}),$.MxFun.on("mxcadApplicationCreatedMxCADObject",t=>{let e=Fu.getServerConfig();p.MxCpp.App.addNetworkLoadingFont(e.font||["txt.shx","simplex.shx","gdt.shx","aaa.shx","ltypeshp.shx","complex.shx"]),p.MxCpp.App.addNetworkLoadingBigFont(e.bigFont||["hztxt.shx","gbcbig.shx"]),e.trueTypeFont?p.MxCpp.App.addNetworkLoadingTrueTypeFont(e.trueTypeFont[0],e.trueTypeFont[1],e.trueTypeFont[2]):p.MxCpp.App.addNetworkLoadingTrueTypeFont(["syadobe"],["思原黑体"],["syadobe.otf"]);let n=t.mxcad;n.setAttribute({DisplayPrecision:35}),n.on("selectChange",u=>{if(console.log("selectChange"),u.length==0)return;let h=u[0],o=h.getMxDbEntity();if(o!==null){console.log(o.getTypeName()),o instanceof $.MxDbRectBoxLeadComment&&console.log(o.text);return}let m=h.getMcDbEntity();m!==null&&(console.log(m.objectName),m instanceof p.McDbText?console.log(m.textString):m instanceof p.McDbBlockReference&&m.getAllAttribute().forEach(M=>{let A=M.getMcDbEntity();console.log(A.textString),console.log(A.tag)}))}),p.MxCpp.PropertiesWindow.onEvent_getProperties(u=>{let h=u.getMcDbEntity();if(!h)return[];let o=h.getxDataDouble("DN"),m=h.getxDataDouble("LEN"),y=[];return o.ret&&y.push({sVarName:"DN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:o.val,isOnlyRead:!1}),m.ret&&y.push({sVarName:"LEN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:m.val,isOnlyRead:!1}),y}),p.MxCpp.PropertiesWindow.onEvent_setProperties((u,h)=>{let o=u.getMcDbEntity();o&&(h.sVarName=="DN"?o.setxDataDouble("DN",h.val):h.sVarName=="LEN"&&o.setxDataDouble("LEN",h.val))});let r,s;p.MxCpp.getCurrentMxCAD().on("selectChange",u=>{var o;if(u.length===0)return;const h=(o=u[0])==null?void 0:o.getMcDbEntity();if(h&&h instanceof p.McDbCustomEntity&&(r==null?void 0:r.getHandle())===h.getHandle()){const m=h.getTypeName();Wo.value=h.clone(),m==="McDbTestRoughness"?(Ho.value="RoughnessDialog",_o.showDialog(!0,{title:G("表面粗糙度")}).then(M=>Gt(this,[M],function*({data:y,isCanceled:x}){var A;if(!x){const T=y.roughnessData,P=h.clone();P.rougMarkType=T.selectSymbolNum,P.textLeftStr=T.textLeftStr,P.rougCornerType=T.rougCornerType==="无"?"":T.rougCornerType,P.isRoungSameRequire=T.isRoungSameRequire,P.isShowMostSymbols=T.isShowMostSymbols;const D=(A=T.textUpStr)==null?void 0:A.filter(k=>k!="");P.textUpStr=JSON.parse(JSON.stringify(D)).reverse(),P.textDownStr=T.textDownStr.filter(k=>k!=""),P.isAddRougLongLine=T.isAddLongLine,h.erase(),n.drawEntity(P),n.mxdraw.clearMxCurrentSelect(),n.updateDisplay()}}))):m==="McDbTestWeldingSymbol"?(Ho.value="WeldingSymbolDialog",_o.showDialog(!0,{title:G("焊接符号")}).then(M=>Gt(this,[M],function*({data:y,isCanceled:x}){if(!x){const A=y.formData,T=h;if(A.specialSymbol.length&&T.setSpecialSymbol(A.specialSymbol),A.rightDim1||A.rightDim2){const P=[ii.top,ii.down],D=[];P.forEach(k=>{const z=A.rightDim1.filter(H=>H.position===k)[0],O=A.rightDim2.filter(H=>H.position===k)[0],U=z.content&&O.content?"×":"";D.push({position:k,content:z.content+U+O.content})}),T.setRightDim(D)}T.setSuppleSymbol(A.suppleSymbol),T.setLeftDim(A.leftDim),T.setTopDim(A.topDim),T.setAuxiliarySymbol(A.auxiliarySymbol),T.setBaseSymbok(A.basicSymbol),T.setIntWeldSeam(A.intWeldSeam),T.dottedLinePos=A.dottedLinePos,T.weldingSymbolInfo=A.weldingSymbolInfo.replace(/\n/g,"\\P"),h.erase(),n.drawEntity(T),n.mxdraw.clearMxCurrentSelect(),n.updateDisplay()}}))):m==="MxDbGeometricTolerances"&&(Ho.value="GemoetricToleranceDialog",_o.showDialog(!0,{title:G("形位公差")}).then(M=>Gt(this,[M],function*({data:y,isCanceled:x}){if(!x){const A=y.formData,T=h;T.dimToleranceContents=(A==null?void 0:A.dimToleranceContents)||[],T.isShowFullWeekSymbol=(A==null?void 0:A.isShowFull)||!1,T.dimNotesDown=(A==null?void 0:A.downDim)||"",T.dimNotesUp=(A==null?void 0:A.topDim)||"",h.erase(),n.drawEntity(T),n.mxdraw.clearMxCurrentSelect(),n.updateDisplay()}})))}r=h,s&&clearTimeout(s),s=setTimeout(()=>{r=null},300)})});function Ua(){return Fu}function Jr(t){return"x="+t.x+",y="+t.y+",z="+t.z}function fV(){window.open("https://demo.mxdraw3d.com:3562/MxCADCode.7z")}function mV(){window.open("https://demo.mxdraw3d.com:3562/MxDrawCloudServer1.0TryVersion.7z")}function zu(t){var e=window.location.href;return e.indexOf("?")!=-1&&(e=e.replace(/(\?|#)[^'"]*/,"")),`${e}?map=true&maptype=${t}`}function gV(){window.open(zu("gdslwzj"))}function yV(){window.open(zu("google"))}function xV(){window.open(zu("gdyx"))}function vV(){window.open(zu("tdtsl"))}function _V(){window.open(zu("bdsl"))}function bV(){window.open(zu("geoq"))}function MV(){p.MxCpp.getCurrentMxCAD().setViewBackgroundColor(255,255,255),$.MxFun.callEvent("updateBackgroundColor",new p.McCmColor(255,255,255))}function SA(){return Gt(this,null,function*(){let t=new p.MxCADUiPrEntity;t.setMessage(G("选择要需要开启自定义属性的对象"));let e=yield t.go();if(!e.isValid())return;let n=e.getMcDbEntity();p.MxCpp.PropertiesWindow.setEntitySupportCustom(e),n.setxDataDouble("DN",100),n.setxDataDouble("LEN",2e3)})}function wV(){p.MxCpp.getCurrentMxCAD().openWebFile("http://localhost:1337/mxcad/file/a9cbed3d3a351b79f24484e87bd78338.DWG.mxweb")}function AV(){return Gt(this,null,function*(){})}function EV(){return Gt(this,null,function*(){let t=new p.MxCADUiPrEntity;t.setMessage(G("选择要隐藏的对象"));let e=yield t.go();if(!e.isValid())return;let n=e.getMcDbEntity(),r=p.MxCpp.getCurrentMxCAD(),h=r.getDatabase().getLayerTable().get(n.layer).getMcDbLayerTableRecord();h!==null&&(h.isOff=!0,r.updateLayerDisplayStatus(),r.updateDisplay())})}function TV(){return window.location.origin+window.location.pathname}let zg;function PV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定插入点:"));let e=yield t.go();if(!e)return;let n=p.MxCpp.getCurrentMxCAD(),r=TV()+"mxcad.jpg";n.loadImage(r,s=>{if(!s){console.log("loadImage failed");return}let u=n.mxdraw.viewCoordLong2Cad(100),h=s.height/s.width*u,o=0;zg=n.drawImage(e.x,e.y,u,h,o,r,!0,s.width,s.height);let m=zg.getMcDbEntity(),y=p.MxCpp.getCurrentDatabase().currentSpace.getMinMaxDrawOrder();m&&(m.drawOrder=y.maxDrawOrder+1),n.updateDisplay()})})}function SV(){if(!zg)return;let t=p.MxCpp.getCurrentMxCAD(),e="https://cdn.pixabay.com/photo/2022/11/15/12/23/winter-7593872_960_720.jpg";t.loadImage(e,n=>{if(!n){console.log("loadImage failed");return}let r=t.addImageDefine(e,"winter-7593872_960_720.jpg",!0),s=zg.getMcDbEntity();s&&s.setImageDefId(r),t.updateDisplay()})}function CV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=new p.MxCADUiPrPoint,n=yield e.go();if(n==null)return;e.setBasePt(n);let r=yield e.go();if(r==null)return;let s=t.drawLine(n.x,n.y,r.x,r.y);t.addCurrentSelect(s)})}let CA=0;function DV(){return Gt(this,null,function*(){CA+=Math.PI*.5,p.MxCpp.getCurrentMxCAD().zoomAngle(CA)})}function RV(){p.MxCpp.getCurrentMxCAD().zoomCenter(900,900)}function LV(){let t=p.MxCpp.getCurrentMxCAD();t.newFile();let e=new p.McDbPolyline;e.setType(p.McDb.PolylineType.k3dPolyline),e.addVertexAt(new p.McGePoint3d(100,100,100)),e.addVertexAt(new p.McGePoint3d(200,100,500)),e.addVertexAt(new p.McGePoint3d(300,400,200)),t.drawEntity(e),t.zoomAll(),t.updateDisplay()}function IV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定一点:"));let e=yield t.go();if(!e)return;const n=new p.MxCADUiPrAngle;n.setMessage(G("指定夹角")),n.setKeyWords(""),n.setBasePt(e);const r=yield n.go();console.log(r)})}function kV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定一点:")),t.setOffsetInputPostion(!0);let e=yield t.go();if(!e)return;t.setBasePt(e),t.setUseBasePt(!0),t.setMessage(G(" 指定二点:"));let n=yield t.go();n&&p.MxCpp.getCurrentMxCAD().drawLine(e.x,e.y,n.x,n.y)})}function BV(){return Gt(this,null,function*(){let t=new p.MxCADSelectionSet;if(!(yield t.userSelect("选择要做成组的对象:"))||t.count()==0)return;p.MxCpp.getCurrentMxCAD().getDatabase().CreateGroup(t.getIds())})}function FV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();const e=new p.MxCADUiPrPoint;e.setMessage(G(" 指定第一点:"));let n=yield e.go();if(!n)return;e.setMessage(G(" 指定第二点:")),e.setBasePt(n);let r=yield e.go();if(!r)return;let s=r.sub(n);s.rotateBy(Math.PI*.5).normalize().mult($.MxFun.screenCoordLong2Doc(10));let u=n.clone().addvec(s),h=n.clone().subvec(s),o=r.clone().addvec(s),m=r.clone().subvec(s),y=new p.McGeBound([u,h,o,m]),x=y.minPoint,M=y.maxPoint,A=new p.MxCADSelectionSet;A.crossingSelect(x.x,x.y,M.x,M.y,new p.MxCADResbuf([p.DxfCode.kEntityType,"LINE,ARC,CIRCLE,LWPOLYLINE"]));let T=$.MxFun.screenCoordLong2Doc(5),P=new p.McDbLine(n,r);A.forEach(D=>{let z=D.getMcDbEntity().IntersectWith(P,p.McDb.Intersect.kOnBothOperands);if(z.length()!=0){let O=z.at(0);t.drawCircle(O.x,O.y,T)}})})}$.MxFun.on("mxcadApplicationCreatedMxCADObject",t=>{t.mxcad.on("selectChange",n=>{if(n.length==0)return;let r=n[0],s=r.getMxDbEntity();if(s!==null){console.log(s.getTypeName()),s instanceof $.MxDbRectBoxLeadComment&&console.log(s.text);return}let u=r.getMcDbEntity();u!==null&&(console.log(u.objectName),u instanceof p.McDbText?console.log(u.textString):u instanceof p.McDbBlockReference&&u.getAllAttribute().forEach(m=>{let y=m.getMcDbEntity();console.log(y.textString),console.log(y.tag)}))}),p.MxCpp.PropertiesWindow.onEvent_getProperties(n=>{let r=n.getMcDbEntity();if(!r)return[];let s=r.getxDataDouble("DN"),u=r.getxDataDouble("LEN"),h=[];return s.ret&&h.push({sVarName:"DN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:s.val,isOnlyRead:!1}),u.ret&&h.push({sVarName:"LEN",iVarType:p.MxPropertiesWindowCustomValueType.kDouble,val:u.val,isOnlyRead:!1}),console.log(h),h}),p.MxCpp.PropertiesWindow.onEvent_setProperties((n,r)=>{let s=n.getMcDbEntity();s&&(r.sVarName=="DN"?s.setxDataDouble("DN",r.val):r.sVarName=="LEN"&&s.setxDataDouble("LEN",r.val),console.log(r))}),YV()});function zV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();if(t.mxdraw.isMapBox())t.mxdraw.createCanvasImageData(e=>{let n=window.open();n!=null&&n.document.write('<img src="'+e+'"/>')});else{const e=yield p.MxCADUtility.getCorner("选择截图范围",void 0,void 0,!1,!0);if(!e)return;let n=Math.abs(e.pt1.x-e.pt2.x),r=Math.abs(e.pt1.y-e.pt2.y);if(n<1||r<1)return;let s=200,u=s*r/n;t.mxdraw.createCanvasImageData(h=>{let o=window.open();o!=null&&o.document.write('<img src="'+h+'"/>')},{width:s,height:u,range_pt1:e.pt1.toVector3(),range_pt2:e.pt2.toVector3()})}})}function NV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();if(t.mxdraw.isMapBox())t.setAttribute({ShowCoordinate:!1}),t.mxdraw.createCanvasImageData(e=>{t.setAttribute({ShowCoordinate:!0});let n=window.open();n!=null&&new p.MxCanvas2Image(n.document).saveAsImage(t.mxdraw.getCanvas(),void 0,void 0,"bmp")});else{const e=yield p.MxCADUtility.getCorner("选择截图范围",void 0,void 0,!1,!0);if(!e)return;let n=Math.abs(e.pt1.x-e.pt2.x),r=Math.abs(e.pt1.y-e.pt2.y);if(n<1||r<1)return;let s=1e3,u=s*r/n,h=t.getViewBackgroundColor();t.setViewBackgroundColor(16777215),t.setAttribute({ShowCoordinate:!1});let o=new p.MxModifyColor,m=new p.McCmColor;m.setColorIndex(p.ColorIndexType.kWhite),o.Do(p.MxCpp.getCurrentDatabase(),m),t.mxdraw.createCanvasImageData(y=>{t.setViewBackgroundColor(h),t.setAttribute({ShowCoordinate:!0}),o.DoRestore();let x=window.open();x!=null&&new p.MxCanvas2Image(x.document).saveAsImage(t.mxdraw.getCanvas(),void 0,void 0,"bmp")},{type:"image/bmp",width:s,height:u,range_pt1:e.pt1.toVector3(),range_pt2:e.pt2.toVector3()})}})}function UV(){return Gt(this,null,function*(){for(;;){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定一点:")),t.setOffsetInputPostion(!0),t.clearLastInputPoint();let e=yield t.go();if(!e)return;let n=$.MxFun.getCurrentDraw();n.getTempMarkDraw().drawCircleMark(e.toVector3(),n.viewCoordLong2Cad(50),16711680),n.updateDisplay()}})}function VV(){return Gt(this,null,function*(){const t=new p.MxCADUiPrPoint;t.setMessage(G(" 指定第一点:"));let e=yield t.go();if(!e)return;let n=yield p.MxCADUtility.getCorner(" 指定第二点:",e);if(!n)return;let r=n.pt2,s=new p.McGePoint3dArray;s.append(e),s.append(new p.McGePoint3d(e.x,r.y,0)),s.append(new p.McGePoint3d(r.x,r.y,0)),s.append(new p.McGePoint3d(r.x,e.y,0));let u=new p.McDbWipeout;u.setVertices(s),u=p.MxCpp.getCurrentMxCAD().drawEntity(u).getMcDbObject();let m=p.MxCpp.getCurrentDatabase().currentSpace.getMinMaxDrawOrder().maxDrawOrder+1;u.drawOrder=m})}function GV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=t.getDatabase();e.setCurrentlyTrueColor(new p.McCmColor(255,100,0)),e.setCurrentlyLineWeight(p.McDb.LineWeight.kLnWt030),t.showLineWeight(!0)})}function OV(){return Gt(this,null,function*(){let t=yield p.MxCADUtility.selectEnt("选择PL线",new p.MxCADResbuf([p.DxfCode.kEntityType,"LWPOLYLINE"]));if(t.length==0)return;let e=t[0],n=e.getMcDbEntity();if(n&&n instanceof p.McDbPolyline){let r=n,s=r.getBoundingBox();if(!s.ret)return;let u=r.getSamplePoints(.1).GetPoints();if(u.length()<3)return;let h=[],o=new p.MxCADSelectionSet;o.crossingSelect(s.minPt.x,s.minPt.y,s.maxPt.x,s.maxPt.y),o.forEach(m=>{if(m.id==e.id)return;let y=m.getMcDbEntity();if(y){let x=y.getBoundingBox();if(!x.ret)return;let M=x.minPt.clone().addvec(x.maxPt.sub(x.minPt).mult(.5));p.MxCADUtility.pointInPolygon(u,M.x,M.y)&&h.push(m)}}),console.log(h)}})}function jV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=yield p.MxCADUtility.selectEnt("xxxx");if(e.length==0)return;let r=e[0].getMcDbEntity();if(r){let s=r.explode();if(s.GetCount()==0)return;let u=s.GetCount();for(let h=0;h<u;h++){let o=s.AtObject(h).val;o instanceof p.McDbEntity&&t.drawEntity(o)}r.erase()}})}function HV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD();const e=new p.MxCADUiPrPoint;e.setMessage(G(" 指定一点:"));let n=yield e.go();if(!n)return;e.setBasePt(n),e.setUseBasePt(!0),e.setMessage(G(" 指定二点:"));let r=yield e.go();if(!r)return;let s=new p.McDbPolyline;s.addVertexAt(n),s.addVertexAt(r),s.constantWidth=t.mxdraw.viewCoordLong2Cad(10),s.trueColor=new p.McCmColor(255,255,255,160),t.drawEntity(s),t.updateDisplay()})}function WV(){return Gt(this,null,function*(){let t=yield p.MxCADUtility.selectEnt(G("选择图案填充对象"));if(t.length==0)return;let n=t[0].getMcDbEntity();n&&n instanceof p.McDbHatch&&n.scalePattern(2)})}function qV(){return Gt(this,null,function*(){let t=p.MxCpp.getCurrentMxCAD(),e=t.mxdraw.viewCoordLong2Cad(10),n=t.database,r=t.getSysVarDouble("LTSCALE");e=e/r;let s=n.getLinetypeTable(),u="MyTest1",h=s.get(u);if(h.isNull()){let M=new p.McDbLinetypeTableRecord;M.numDashes=2,M.setDashLengthAt(0,e),M.setDashLengthAt(1,-e),M.name=u,h=s.add(M)}const o=new p.MxCADUiPrPoint;o.setMessage(G(" 指定一点:"));let m=yield o.go();if(!m)return;o.setBasePt(m),o.setUseBasePt(!0),o.setMessage(G(" 指定二点:"));let y=yield o.go();if(!y)return;let x=new p.McDbLine;x.startPoint=m,x.endPoint=y,x.linetypeId=h,t.drawEntity(x)})}function YV(){$.MxFun.addCommand("My_PluginTest",dV),$.MxFun.addCommand("My_Extool",pV),$.MxFun.addCommand("Mx_Open_DemoCode",fV),$.MxFun.addCommand("Mx_Open_DevInstall",mV),$.MxFun.addCommand("Mx_Open_Map_gdslwzj",gV),$.MxFun.addCommand("Mx_Open_Map_gdyx",xV),$.MxFun.addCommand("Mx_Open_Map_tdtsl",vV),$.MxFun.addCommand("Mx_Open_Map_bdsl",_V),$.MxFun.addCommand("Mx_Open_Map_geoq",bV),$.MxFun.addCommand("Mx_Open_Map_googlecn",yV),$.MxFun.addCommand("Mx_ViewBackgroundColor",MV),$.MxFun.addCommand("Mx_TestExProp",SA),$.MxFun.addCommand("Mx_Test_OpenFile",wV),$.MxFun.addCommand("Mx_Test_GetFile",AV),$.MxFun.addCommand("Mx_TestExProp",SA),$.MxFun.addCommand("Mx_SelectEntitHideLayer",EV),$.MxFun.addCommand("MxTest_TestAddCurrentSelect",CV),$.MxFun.addCommand("MxTest_TestSetViewAngle",DV),$.MxFun.addCommand("MxText_ZoomCenter",RV),$.MxFun.addCommand("MxTest_Map_Download",_U),$.MxFun.addCommand("Mx_Test_DrawImage",PV),$.MxFun.addCommand("Mx_Test_ModifyImage",SV),$.MxFun.addCommand("Mx_Test_Draw3DPolyline",LV),$.MxFun.addCommand("MxTemp_Test",IV),$.MxFun.addCommand("Mx_Test_IntersectWith",FV),$.MxFun.addCommand("Mx_Test_OffsetIn_DrawLine",kV),$.MxFun.addCommand("Mx_Test_CreateGroup",BV),$.MxFun.addCommand("Mx_ScreenToJpg",zV),$.MxFun.addCommand("Mx_ScreenToBmp",NV),$.MxFun.addCommand("Mx_Test_DrawMarkCircle",UV),$.MxFun.addCommand("Mx_Test_Wipeout",VV),$.MxFun.addCommand("Mx_Test_SetCurrentlyDraw",GV),$.MxFun.addCommand("Mx_Test_FindPolygonEntitys",OV),$.MxFun.addCommand("Mx_Test_DrawTransparencyLine",HV),$.MxFun.addCommand("MxTest_Explode",jV),$.MxFun.addCommand("MxTest_LineRecord",qV),$.MxFun.addCommand("MxTest_ModifyPatternScale",WV),US(),nC(),CI(),RI(),uk(),bk(),Ak(),Dk(),Lk(),l5(),m5(),Pk(),M5(),Wz(),f6(),C6(),H6(),rU(),uz(),uU(),Fu.mxmap&&MU($.MxFun.getCurrentDraw())}const XV=Object.freeze(Object.defineProperty({__proto__:null,default:{718:"Specify the first point of the output range:",719:"Specify the second point of the output range:",720:"Specify the first point:",721:"Specify the second point:",722:"Cloud wireframe starting point:",723:"End point of cloud wireframe:",724:"Drawing review annotation points:",725:"Click to start drawing cloud lines:",726:"Click to end drawing cloud lines again:",727:"Specify one point:",728:"Specify two points:",729:"Select object",730:"Specify the next point:",731:"\\Specify insertion base point",732:"Specify table insertion point:",733:"Specify insertion point:",734:"Specify insertion base point",735:"Select annotation object",736:"Please select the target text",737:"Specify a point inside the filling area:",738:"No closed area found",739:"Surface roughness",740:"Welding symbol",741:"Positional tolerance",742:"Select the object that needs to enable custom properties",743:"Select the object to hide",744:"Specify insertion point:",745:"Specify one point:",746:"Specify the angle",747:"Specify two points:",748:"Select pattern fill object",749:"Specify the first point:",750:"Specify the second point:",751:"Specify the second angle point:",752:"Specify the last point:",753:"Specify coordinate point:",754:"Specify annotation points:",755:"Please provide your approval comments",756:"Specify the starting point of the cloud wireframe",757:"Specify the termination point of the cloud wireframe",758:"Designated review icon annotation points",759:"Specify the first corner point:",760:"Specify the second corner point:",761:"Specify serial number location:",762:"Rotations Symbols",763:"Tag type",764:"Please select the circle to be marked:",765:"Please set positioning points, lines, arcs, or circles",766:"Drag to determine the annotation position",767:"Please specify or enter an angle",768:"weld symbol",769:"Please pick a positioning point, line, or arc",770:"Please specify the second point",771:"Please set the positioning point",772:"Please set the angle",773:"Please set positioning points, lines, or arcs",774:"Please set the lead turning point",775:"Drag to determine the positioning point",776:"Please specify the first point:",777:"Please specify the second point:",778:"Please select the target block object",779:"Please enter a new block name",780:"Select the block that needs to modify the base point",781:"Set base point",782:"Select the block that requires color modification",783:"Enter color index (0~256)",784:"Please select the source block",785:"Select the target block to brush:",786:"Select connection method",787:"Manually connect each line one by one",788:"Automatic batch connection",789:"Please select the block for the connection",790:"Set centerline length",791:"Select the target block to rotate:",792:"Set rotation angle",793:"Please set the zoom ratio",794:"Please set the selection range:",795:"Please select the target block",796:"Please set the statistical scope",797:"Specify table insertion point:",798:"Select target curve",799:"Specify the length annotation point",800:"Select Target Object",801:"Please select the target slope object",802:"Please set the height of the annotation text",803:"Specify slope annotation point",804:"Please select the target coordinate point",805:"Please specify the annotation location",806:"Specify start point",807:"Specify the endpoint",808:"Specify annotation direction",809:"Please set the text content",810:"Please select the first point of the area",811:"Please select the next point",812:"Please select the location for area annotation",813:"Please select corner 1 of the rectangle",814:"Please select corner 2 of the rectangle",815:"Please set the location for area annotation",816:"Please select a measurement point",817:"Please select a straight line",818:"Please set the position of the dimension line",819:"Please select an arc",820:"Please specify the position of the dimension line",821:"Please select a circular object",822:"Please specify the text location",823:"Please select the endpoint or arc of the line",824:"Please specify the position of the text",825:"Please select a continuous measurement label",826:"Please select the second straight line",827:"Please set the position for angle annotation",828:"Please enter the number of star shaped vertices:",829:"Specify the star center point:",830:"Please set the inner radius of the star shape:",831:"Specify the outer radius of the star shape:",832:"Please enter the width of the concave convex line<5>",833:"Please enter the height of the concave convex line as<10>",834:"Please click to confirm the starting point",835:"Please click to confirm the endpoint",836:"Please enter zigzag width<5>",837:"Please enter zigzag line height<10>",838:"Please enter rectangle width<5>",839:"Please enter rectangle height<10>",840:"Please click to confirm the center of the rectangle",841:"Please enter pipe diameter<10>",842:"Please enter the length of the outlet pipe<5>",843:"Please click to confirm the starting point",844:"Specify the starting point of the pipeline section",845:"Specify the endpoint of the sectional pipeline",846:"Select the direction of the pipeline arc",847:"the left",848:"the right side",849:"MODE",850:"straight bead",851:"Arc weld seam",852:"Please enter weld radius<5>",853:"Specify the second point of the arc",854:"Specify end point of arc",855:"Please enter width<25>",856:"Please enter height<15>",857:"Please enter staircase level<10>",858:"Please confirm the center position of the circle",859:"Please enter the radius of the circle",860:"Please enter insulation cotton width<5>",861:"Please enter insulation cotton height<10>",862:"Please click on the next point",863:"Please select the first line",864:"Please select the second line",865:"Please select the endpoint",866:"Please select the target rectangle",867:"Set the center point of the compass",868:"Set the radius of the compass",869:"Select prompt box pointing",870:"Specify the first point of the message box:",871:"Specify the second point of the message box:",872:"Set the message box to point to:",873:"Please set the reference character text",874:"Please set the text height",875:"Please set the benchmark position",876:"Please set positioning points, arcs, or lines",877:"Please set the symbol position",878:"Please set the center of the circle",879:"Please set the center of the gear circle",880:"Please set the gear radius",881:"Please set the centerline length to 10>",882:"Please select the first circle",883:"Please select the second circle",884:"Please set the top left corner point of the rectangle",885:"Please set the bottom right corner point of the rectangle",886:"Please set the fillet radius",887:"Please select the starting point of the polygon",888:"Please select polygon vertices",889:"Select object:",890:"Specify base point",891:"Specify the second point",892:"array",893:"exit",894:"give up",895:"Enter the number of items to be arranged in the array",896:"Select arc object",897:"Choose to copy rotated objects:",898:"Please specify the target point",899:"Please specify the rotation angle",900:"Select the object to be converted into a polygon",901:"Set the number of polygon edges",902:"Input Options",903:"Internally connected to a circle",904:"Externally cut to a circle",905:"Select the object whose color you want to modify",906:"Enter color index",907:"hide",908:"Hide Unselected",909:"show all",910:"Select the target object",911:"Specify to delete the first point of the box:",912:"Specify to delete the second point of the box:",913:"Select the entity that needs to be precisely deleted",914:"Please select an angle to copy the object",915:"Please enter the angle for copying quantity",916:"Please enter the base point for copying the angle",917:"Please enter the copying angle",918:"Please select vertex object",919:"Please select the copied object",920:"Please confirm the replication base point",921:"Please select the reference curve",922:"Select interrupt object",923:"Specify offset object",924:"Please enter the offset distance",925:"Specify the scaling object (select lines, polylines, arcs)",926:"Stretching to",927:"Select the object to modify the line type scale",928:"Please enter the line type ratio",929:"Please enter the array spacing",930:"Please select an arc",931:"Select sorting objects",932:"Specify the arrangement base point",933:"Select target polyline:",934:"Please enter rounded corner radius<5>",935:"Select fill object",936:"Please enter the fill ratio",937:"Please select the original fill shape",938:"Please click to fill any point inside the graphic",939:"Please select a line object",940:"Select equal division mode",941:"measure",942:"Divide",943:"Offset equal division",944:"Copy equally",945:"Please select offset equal division objects",946:"Please select to copy equally divided objects",947:"Please select the line segments that need to be divided equally",948:"Please set equal distances",949:"Please set the number of equal parts",950:"Please set the offset distance",951:"Please specify the offset point",952:"Please specify the replication base point",953:"Please specify the number of equal parts to be copied",954:"Please specify the endpoints for copying and dividing equally",955:"Please select the entity that requires rectangular scaling:",956:"Please specify corner 1 of the rectangle",957:"Please specify corner 2 of the rectangle",958:"Please choose to zoom in on the center point",959:"Please select the zoom in range",960:"Please set the magnification factor",961:"Please choose to enlarge the insertion point",962:"Please select a curve that needs to be broken",963:"Please select a break point on the curve",964:"Please enter the number of arrays",965:"Do you want to enable rotation",966:"correct",967:"deny",968:"Please select the graphics that require an array:",969:"Please select the center point of the array",970:"Please select a closed polygon!",971:"Please select the first point",972:"Please select the second point",973:"Please select the first closed polygon",974:"Please select the second closed polygon",975:"Please select two closed polygons",976:"Two polygons do not have overlapping edges!",977:"Please select the target polygon",978:"Please select the edges of the polygon to add vertices to",979:"Please set the position of the added vertices",980:"Please select the vertices of the polygon that need to be deleted",981:"Please select the edges of the polygon that need to be stretched",982:"Please specify the stretching position",983:"Please set the orientation of the frame to<N>",984:"horizontal",985:"longitudinal",986:"Please set the frame size to<4>",987:"Please set the position of the frame",988:"Specify cutting corner 1",989:"Specify cutting corner point 2",990:"Please set the starting point of the road",991:"Please set the next point",992:"Please select the target alignment line object (choose a line)",993:"Please select the target text object",994:"Select Text Object",995:"Please set the font height",996:"Please set the word width",997:"Please select the source text",998:"Please select the first text",999:"Please select the second text",1e3:"Please select the text that needs to be aligned",1001:"Please choose the alignment method",1002:"the left side",1003:"centre",1004:"the right side",1005:"Please select the alignment base point",1006:"Please select the text that needs to be reversed",1007:"Please select the text that needs to be filled with spaces",1008:"Please select a text object",1009:"Please enter underline width",1010:"Please set the underline distance",1011:"Please set an underline to extend the distance",1012:"Please select the operation option",1013:"capital letters",1014:"lowercase",1015:"sentence case ",1016:"Please select a numerical object",1017:"Please select a text insertion point",1018:"Select the scope to search for:",1019:"Please select the search mode",1020:"equal to",1021:"contain",1022:"The prefix is",1023:"The suffix is",1024:"Please enter keywords",1025:"Select the scope of operation:",1026:"Select operation mode",1027:"add",1028:"delete",1029:"Select operation location",1030:"prefix",1031:"suffix",1032:"Please enter the content",1033:"Please select text",1034:"Please select an arc",1035:"Please choose a text style",1036:"Please set the text extraction range",1037:"Download and open the demo code",1038:"Download development kit",1039:"Call the command to draw circular lines",1040:"Interactive drawing of straight lines",1041:"Add Layer",1042:"Get all layers",1043:"Get all text styles",1044:"Obtain all image blocks",1045:"Get all line types",1046:"Write extended data",1047:"Read extended data",1048:"Test inserting a block",1049:"Draw a straight line",1050:"arc ",1051:"circle",1052:"Draw PL line",1053:"Draw Fill",1054:"emoji",1055:"Draw an ellipse",1056:"Draw elliptical arcs",1057:"Draw multiline text",1058:"TABLE",1059:"Draw QR code",1060:"Insert stamp",1061:"Get all objects",1062:"Interactive selection of objects",1063:"Save MXWeb to the server",1064:"Obtain system variables",1065:"new sheet",1066:"White background color",1067:"Text search and positioning",1068:"Select entity to make blocks",1069:"Draw single line text",1070:"Select point filling",1071:"Set extended attributes",1072:"Draw alignment annotations",1073:"Drawing line annotation",1074:"angular",1075:"Modify object line type",1076:"Select hidden object layer",1077:"Add to current selection",1078:"Visual rotation",1079:"Write extension records",1080:"Get a Naming Dictionary",1081:"Add Text Style",1082:"Draw custom entities",1083:"Modify object color",1084:"The modified object is not visible",1085:"Modify object layer",1086:"Modify the display order of objects",1087:"Output PDF within the specified range",1088:"Draw an image",1089:"Read object extension dictionary",1090:"Draw 3D Polyline",1091:"Custom entity for line drawing text",1092:"Calculate intersection point",1093:"Modify Text Style",1094:"Offset input line drawing",1095:"Create Group",1096:"Screenshot JPG",1097:"Obtain the same text as the drawing",1098:"Specify the output range as dwg",1099:"Test drawing marker circle",1100:"Test Wipeout",1101:"create cutouts",1102:"Tolerance marking",1103:"Change all object colors",1104:"Cutting MXWeb",1105:"Set the current color line weight",1106:"Search for objects within a polygonal region",1107:"Smash objects",1108:"Draw semi transparent lines",1109:"Add line type",1110:"Modify the proportion of the pattern",1111:"Test Text Editing",1112:"Draw barcode",1113:"Screenshot BMP",1114:"Modify Tools",1115:"text tool",1116:"Drawing tools",1117:"Block Tool",1118:"Instrument",1119:"Annotation tool",1120:"Other tools",1121:"Multiple replication",1122:"Arc to Circle",1123:"Copy Rotation",1124:"Circular to Multilateral",1125:"Change color",1126:"Arc angle cutting",1127:"Temporary Hide",1128:"Box deletion",1129:"Angle copying",1130:"Vertex Copy",1131:"Intersection point interruption",1132:"double offset",1133:"Change the size of the circle",1134:"Linetype Scale",1135:"Telescoping",1136:"By arc array",1137:"PL rounded corner",1138:"PL line reverse",1139:"Obtain all linear objects",1140:"equal division",1141:"Rectangular scaling",1142:"interrupt",1143:"Cutting polygons",1144:"Merging Polygons",1145:"Add polygon vertices",1146:"Delete polygon vertices",1147:"Unilateral stretching of polygons",1148:"star shape",1149:"Concave convex line",1150:"jagged lines",1151:"Center rectangle",1152:"rounded rectangle",1153:"Circular centerline",1154:"pipe",1155:"Pipe cutting symbol",1156:"perpendicular bisector",1157:"staircase",1158:"solid circle",1159:"Thermal insulation cotton",1160:"Centerline",1161:"Opening a hole",1162:"message box",1163:"Reference symbol (1)",1164:"weld line",1165:"concentric circles",1166:"gear",1167:"Block centerline",1168:"Circular tangent line",1169:"Reference symbol (2)",1170:"Insert frame",1171:"Draw roads",1172:"Draw any polygon",1173:"Align by line",1174:"Change the font height",1175:"Change the width of the characters",1176:"Brush content",1177:"Change content",1178:"justified",1179:"Align up and down",1180:"Text reversal",1181:"Text framing",1182:"underline",1183:"Title line",1184:"case",1185:"Sum of numbers",1186:"Select specific characters",1187:"affix",1188:"Connecting Text",1189:"Delete space",1190:"Vertical Text",1191:"Align by arc",1192:"Modify global text style",1193:"Extract Text",1194:"Text number",1195:"Change the block name",1196:"Brush block",1197:"Block Connection",1198:"Change the base point of the block",1199:"Change the color of the block",1200:"Multi block rotation",1201:"Multi block scaling",1202:"Brush block angle",1203:"Select by block",1204:"Select all by block",1205:"Statistics of individual blocks",1206:"Count multiple blocks",1207:"Modify block layer",1208:"length",1209:"Statistical area",1210:"Intelligent elevation",1211:"area",1212:"Rectangular area",1213:"distance from point to line",1214:"arc length",1215:"Measuring Circle",1216:"CONTINUE",1217:"View segment length",1218:"Area including arc",1219:"Drawing review annotation",1220:"Rectangular annotation",1221:"Roughness annotation",1222:"Coordinate annotation",1223:"Slope marking",1224:"alignment",1225:"enlarge",1226:"Number annotation",1227:"Rotate annotation",1228:"Circular hole marking",1229:"Directional symbol",1230:"Radiographic annotation",1231:"Rectangular annotation hovering color change",1232:"Crop drawing extension",1233:"Arrow line",1234:"Selected Text",1235:"Clipboard",1236:"cancel",1237:"sure",1238:"Tolerance code",1239:"Tolerance 1",1240:"Tolerance 2",1241:"annotations",1242:"top",1243:"bottom",1244:"reference",1245:"Full week symbol",1246:"Current line",1247:"Add Row",1248:"delete row",1249:"zero clearing",1250:"Straightness",1251:"Flatness",1252:"roundness",1253:"Cylindricity",1254:"Line Profile",1255:"Profile of a Surface",1256:"parallelism",1257:"verticality",1258:"tilt",1259:"Positional accuracy",1260:"Coaxiality",1261:"Symmetry",1262:"runout",1263:"total runout",1264:"clean up",1265:"Please enter the text content and number:",1266:"Text content:",1267:"(Enter 0-20 words)",1268:"Starting number:",1269:"(Number automatically increases by 1)",1270:"Number location:",1271:"Number before",1272:"Number after",1273:"change direction",1274:"Left text content:",1275:"Text content on the right:",1276:"Bottom text content:",1277:"Basic symbols",1278:"Same requirements",1279:"Most symbols",1280:"Add a horizontal line to the long side",1281:"auxiliary symbol",1282:"Supplementary symbols",1283:"Symbol position",1284:"Special symbols",1285:"Left size",1286:"Up size",1287:"Right size",1288:"Staggered weld",1289:"spacing",1290:"extended text ",1291:"Dashed line position",1292:"Welding instructions",1293:"Clear rows",1294:"flange weld",1295:"Type I weld seam",1296:"V-shaped weld seam",1297:"Unilateral V-shaped weld seam",1298:"Single sided steep side V-shaped groove welding",1299:"Tilted weld seam",1300:"Removable pad",1301:"Durable pad",1302:"V-type weld with rounded edge",1303:"U-shaped weld with rounded edge",1304:"Single sided V-shaped weld with a stop edge",1305:"Single sided U-shaped weld with a stop edge",1306:"Edge weld",1307:"Welding joint",1308:"sealing bead",1309:"fillet weld",1310:"Plug weld or groove weld",1311:"spotweld",1312:"Folding interface",1313:"Tilt interface",1314:"Spot weld seam (offset center)",1315:"Weld seam",1316:"Weld seam (off center)",1317:"Steep side V-shaped groove welding",1318:"The first type of planar symbol",1319:"The second concave symbol",1320:"The second type of convex symbol",1321:"The second type of planar symbol",1322:"The first convex symbol",1323:"The third type of planar symbol",1324:"The first concave symbol",1325:"Flatten the weld seam",1326:"Smooth transition at the toe",1327:"With pad symbol",1328:"Three sided weld symbol",1329:"Surrounding welding symbols",1330:"On site symbols",1331:"tail symbol",1332:"Interleaved intermittent welding symbol",1333:"Horn shaped weld seam",1334:"Unilateral horn shaped weld seam",1335:"Weld seam",1336:"Lock edge weld seam",1337:"Locking edge groove",1338:"upper",1339:"below",1340:"not have",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"Select the weld symbol to be placed on the geometric shape",1346:"Welding angle width:",1347:"Unilateral V-shaped butt weld (front view)",1348:"Corner weld seam (front view)",1349:"Unilateral V-shaped butt weld (side view)",1350:"Corner weld seam (side view)",1985:"Extract Table"}},Symbol.toStringTag,{value:"Module"})),KV=Object.freeze(Object.defineProperty({__proto__:null,default:{718:"출력 범위의 첫 번째 점을 지정합니다.",719:"출력 범위의 두 번째 점을 지정합니다.",720:"첫 번째 점을 지정합니다.",721:"두 번째 점 지정:",722:"클라우드 와이어프레임 시작점:",723:"클라우드 와이어프레임 끝점:",724:"심사 아이콘 참고 사항:",725:"클릭하여 구름선을 그리기 시작:",726:"다시 클릭하여 클라우드 그리기를 끝냅니다.",727:"점 지정:",728:"두 점 지정:",729:"객체 선택",730:"다음 점을 지정합니다.",731:"\\ 삽입 기준점 지정",732:"테이블 삽입점을 지정하려면 다음과 같이 하십시오.",733:"삽입점을 지정하려면 다음과 같이 하십시오.",734:"삽입 기준점 지정",735:"치수 객체 선택",736:"대상 텍스트 선택",737:"채우기 영역 내부의 점을 지정합니다.",738:"닫힌 영역을 찾을 수 없음",739:"표면 거친도",740:"용접 기호",741:"비트 공차",742:"사용자 정의 속성을 설정할 객체 선택",743:"숨길 객체 선택",744:"삽입점을 지정하려면 다음과 같이 하십시오.",745:"점 지정:",746:"각도 지정",747:"두 점 지정:",748:"해치 객체 선택",749:"첫 번째 점을 지정합니다.",750:"두 번째 점 지정:",751:"두 번째 각도를 지정합니다.",752:"마지막 점을 지정합니다.",753:"좌표점을 지정합니다.",754:"치수 점을 지정하려면 다음과 같이 하십시오.",755:"승인 의견을 입력하십시오.",756:"클라우드 와이어프레임 시작점 지정",757:"클라우드 와이어프레임 끝점 지정",758:"심사 아이콘 주석 지정",759:"첫 번째 구석을 지정합니다.",760:"두 번째 구석 지정:",761:"일련번호 위치를 지정하려면 다음과 같이 하십시오.",762:"회전 기호",763:"태그 유형",764:"태그가 필요한 원을 선택하십시오.",765:"위치 점 또는 선 또는 호 또는 원을 설정하십시오.",766:"드래그하여 치수 위치 결정",767:"각도를 지정하거나 입력하십시오.",768:"용접 기호",769:"위치 점, 선 또는 호를 선택하십시오.",770:"두 번째 점을 지정하십시오.",771:"위치 점을 설정하십시오.",772:"각도를 설정하십시오.",773:"위치 점이나 선 또는 호를 설정하십시오.",774:"지시선 전환점을 설정하십시오.",775:"드래그하여 위치 점 결정",776:"첫 번째 점을 지정하십시오.",777:"두 번째 점을 지정하십시오.",778:"대상 블록 객체를 선택하십시오.",779:"새 블록 이름을 입력하십시오.",780:"기준점을 수정할 블록 선택",781:"기준점 설정",782:"색상을 수정할 블록 선택",783:"색상 색인 입력 (0~256)",784:"소스 블록을 선택하십시오.",785:"브러시할 대상 블록 선택:",786:"연결 방법 선택",787:"수동으로 하나씩 연결",788:"자동 대량 연결",789:"연결된 블록을 선택하십시오.",790:"중심선 길이 설정",791:"회전할 대상 블록을 선택합니다.",792:"회전 각도 설정",793:"배율을 설정하십시오.",794:"선택 범위를 설정하십시오.",795:"대상 블록을 선택하십시오.",796:"통계 범위를 설정하십시오.",797:"테이블 삽입점을 지정하려면 다음과 같이 하십시오.",798:"대상 커브 선택",799:"길이 치수 점 지정",800:"대상 객체 선택",801:"대상 기울기 객체를 선택하십시오.",802:"치수 문자 높이를 설정하십시오.",803:"기울기 치수 점 지정",804:"대상 좌표점을 선택하십시오.",805:"치수 위치를 지정하십시오.",806:"시작점 지정",807:"끝점 지정",808:"치수 방향 지정",809:"텍스트 내용을 설정하십시오.",810:"영역의 첫 번째 점을 선택하십시오.",811:"다음 점을 선택하십시오.",812:"영역 치수의 위치를 선택하십시오.",813:"사각형의 구석 1을 선택하십시오.",814:"사각형의 구석 2 를 선택하십시오.",815:"영역 치수의 위치를 설정하십시오.",816:"측정 점을 선택하십시오.",817:"선을 선택하십시오.",818:"치수 선의 위치를 설정하십시오.",819:"호선을 선택하십시오.",820:"치수 선 위치를 지정하십시오.",821:"원 객체를 선택하십시오.",822:"문자 위치를 지정하십시오.",823:"선의 끝점이나 호를 선택하십시오.",824:"문자의 위치를 지정하십시오.",825:"연속 측정을 위한 치수를 선택하십시오.",826:"두 번째 선을 선택하십시오.",827:"각도 치수의 위치를 설정하십시오.",828:"별 꼭대기 점 수를 입력하십시오.",829:"별의 중심점을 지정하려면:",830:"별의 내부 반지름을 설정하십시오.",831:"별의 외부 반지름을 지정합니다.",832:"범프 선 너비를 입력하십시오<5>",833:"범프 선 높이를 입력하십시오<10>",834:"시작점을 확인하려면 클릭하십시오.",835:"클릭하여 결승점을 확정하세요",836:"앤티앨리어싱 너비를 입력하십시오<5>",837:"앤티앨리어싱 높이 입력<10>",838:"직사각형 너비 입력<5>",839:"직사각형 높이 입력<10>",840:"클릭하여 사각형 중심 확인",841:"파이프 지름을 입력하십시오<10>",842:"파이프 배출구 길이를 입력하십시오<5>",843:"클릭하여 시작점 확인",844:"횡단면 파이프라인 시작점 지정하기",845:"횡단면 파이프라인 끝점 지정하기",846:"횡단면 파이프라인 호 방향 선택",847:"왼쪽",848:"오른쪽",849:"선택 모드",850:"선 용접",851:"아크 용접",852:"용접 반지름을 입력하십시오<5>",853:"호의 두 번째 점 지정하기",854:"호의 끝점 지정하기",855:"폭을 입력하십시오<25>",856:"높이를 입력하십시오<15>",857:"계단 레벨을 입력하십시오<10>",858:"중심 위치를 확인하십시오.",859:"원 반지름을 입력하십시오.",860:"보온면 너비 입력<5>",861:"보온면 높이 입력<10>",862:"다음 점 눌러주세요.",863:"첫 번째 선을 선택하십시오.",864:"두 번째 선을 선택하십시오.",865:"끝점을 선택하십시오.",866:"대상 사각형을 선택하십시오.",867:"나침반 중심점 설정",868:"나침반 반지름 설정",869:"프롬프트 상자 가리키기 선택",870:"메시지 상자의 첫 번째 점을 지정합니다.",871:"메시지 상자의 두 번째 점을 지정합니다.",872:"메시지 상자 방향을 설정하려면 다음과 같이 하십시오.",873:"데이텀 문자 설정하기",874:"문자 높이를 설정하십시오.",875:"데이텀 문자 위치를 설정하십시오.",876:"위치 점이나 호 또는 선을 설정하십시오.",877:"기호 위치를 설정하십시오.",878:"중심점을 설정하십시오.",879:"기어 중심을 설정하십시오.",880:"기어 반지름을 설정하십시오.",881:"중심선 길이 10 설정 >",882:"첫 번째 원을 선택하십시오.",883:"두 번째 원을 선택하십시오.",884:"직사각형의 왼쪽 위 구석을 설정하십시오.",885:"직사각형의 오른쪽 아래 구석을 설정하십시오.",886:"필렛 반지름을 설정하십시오.",887:"다각형 시작점을 선택하십시오.",888:"다각형 교점을 선택하십시오.",889:"객체 선택:",890:"기준점 지정",891:"두 번째 점 지정",892:"어레이",893:"종료",894:"포기",895:"패턴화할 항목 수 입력",896:"호 객체 선택",897:"회전된 객체 복사를 선택합니다.",898:"대상 점을 지정하십시오.",899:"회전 각도를 지정하십시오.",900:"다각형으로 변환할 객체 선택",901:"다각형 모서리 수 설정",902:"입력 옵션",903:"내접 원",904:"원에 외부 탄젠트",905:"색상을 수정할 객체 선택",906:"색상 색인 입력",907:"숨기기",908:"선택 안 함 숨기기",909:"모두 표시",910:"대상의 객체 선택",911:"상자의 첫 번째 점을 삭제하도록 지정합니다.",912:"상자 두 번째 점을 삭제하도록 지정합니다.",913:"정확하게 삭제할 엔티티 선택",914:"각도를 선택하여 객체를 복사합니다.",915:"각도 복사 수량을 입력하십시오.",916:"각도 복사의 기준점을 입력하십시오.",917:"복사 각도를 입력하십시오.",918:"정점 객체를 선택하십시오.",919:"객체 복사를 선택하십시오.",920:"복제 기준점을 확인하십시오.",921:"참조 커브 선택",922:"끊기 객체 선택",923:"오프셋 객체 지정",924:"오프셋 거리를 입력하십시오.",925:"신축 객체 지정 (선, 폴리선, 호 선택)",926:"다음으로 확장",927:"선종류 축척을 수정할 객체 선택",928:"선종류 축척을 입력하십시오.",929:"패턴 간격을 입력하십시오.",930:"호를 선택하십시오.",931:"정렬 객체 선택",932:"정렬 기준점 지정",933:"대상 폴리선을 선택합니다.",934:"필렛 반지름을 입력하십시오<5>",935:"채우기 객체 선택",936:"채우기 축척을 입력하십시오.",937:"원래 채우기 도면을 선택하십시오.",938:"도면 내부의 아무 곳이나 채우려면 클릭하십시오.",939:"선 객체 선택",940:"등분 모드 선택",941:"정거 등분",942:"정수 등분",943:"오프셋 등분",944:"등분 복사",945:"동등한 객체 간격띄우기를 선택하십시오.",946:"등분 객체 복사를 선택하십시오.",947:"등분할 세그먼트를 선택하십시오.",948:"등분 거리를 설정하십시오.",949:"등분 수량을 설정하십시오",950:"오프셋 거리를 설정하십시오.",951:"오프셋 점을 지정하십시오.",952:"복사 기준점을 지정하십시오.",953:"복사 등분 수량을 지정하십시오.",954:"복사 등분 끝점을 지정하십시오.",955:"사각형 배율이 필요한 엔티티를 선택하십시오.",956:"사각형의 구석 1 을 지정하십시오.",957:"사각형 구석 2를 지정하십시오.",958:"중심점 확대 선택",959:"확대 범위를 선택하십시오.",960:"확대 배수를 설정하십시오.",961:"삽입점 확대 를 선택하십시오.",962:"끊을 커브를 선택하십시오.",963:"커브에서 브레이크 점을 선택하십시오.",964:"패턴 수를 입력하십시오.",965:"회전 켜기",966:"예",967:"아니오",968:"배열이 필요한 도면을 선택하십시오.",969:"스토리지 중심점을 선택하십시오.",970:"닫힌 다각형을 선택하십시오!",971:"첫 번째 점을 선택하십시오.",972:"두 번째 점을 선택하십시오.",973:"첫 번째 닫힌 다각형을 선택하십시오.",974:"두 번째 닫힌 다각형을 선택하십시오.",975:"닫힌 다각형 두 개를 선택하십시오.",976:"두 다각형은 겹치는 모서리가 없습니다!",977:"대상 다각형을 선택하십시오.",978:"정점을 추가할 다각형 모서리를 선택하십시오.",979:"추가할 정점 위치를 설정하십시오.",980:"다각형에서 삭제할 정점을 선택하십시오.",981:"다각형으로 밀어낼 모서리를 선택하십시오.",982:"밀어내기 위치를 지정하십시오.",983:"그림 상자 방향을 설정하십시오<N>",984:"가로",985:"세로",986:"액자 크기를 설정하십시오<4>",987:"프레임 위치를 설정하십시오.",988:"트림 각도 점 1 지정",989:"트림된 구석 2 지정",990:"도로 시작점을 설치하세요",991:"다음 점을 설정하십시오.",992:"대상 정렬선 객체 (선 선택) 를 선택하십시오.",993:"대상 문자 객체를 선택하십시오.",994:"문자 객체 선택",995:"높이를 설정하십시오.",996:"글자 폭을 설정하십시오.",997:"원본 텍스트를 선택하십시오.",998:"첫 번째 텍스트를 선택하십시오.",999:"두 번째 텍스트를 선택하십시오.",1e3:"정렬할 문자를 선택하십시오.",1001:"정렬을 선택하십시오.",1002:"왼쪽",1003:"가운데",1004:"오른쪽",1005:"기준점 정렬을 선택하십시오.",1006:"반전할 텍스트를 선택하십시오.",1007:"공백을 제거할 텍스트를 선택하십시오.",1008:"문자 객체를 선택하십시오.",1009:"밑줄 너비를 입력하십시오.",1010:"밑줄 거리를 설정하십시오.",1011:"밑줄 연장 거리를 설정하십시오.",1012:"작업 옵션을 선택하십시오.",1013:"대문자",1014:"소문자",1015:"문장의 첫머리와 대문자.",1016:"디지털 객체를 선택하십시오.",1017:"텍스트 삽입점을 선택하십시오.",1018:"찾을 범위를 선택합니다.",1019:"찾기 모드를 선택하십시오.",1020:"같음",1021:"포함",1022:"접두사는",1023:"접미어는",1024:"키워드를 입력하십시오.",1025:"작업할 범위를 선택합니다.",1026:"작업 방법 선택",1027:"추가",1028:"삭제",1029:"작업 위치 선택",1030:"접두사",1031:"접미어",1032:"내용을 입력하십시오.",1033:"텍스트 선택",1034:"호를 선택하십시오.",1035:"문자 스타일을 선택하십시오.",1036:"텍스트 추출 범위를 설정하십시오.",1037:"오픈 데모 코드 다운로드",1038:"개발 패키지 다운로드",1039:"원선 그리기 명령 호출",1040:"서로 직선을 그리다",1041:"도면층 추가",1042:"모든 도면층 가져오기",1043:"모든 문자 스타일 가져오기",1044:"모든 그림 블록 가져오기",1045:"모든 선 모양 가져오기",1046:"확장 데이터 쓰기",1047:"확장 데이터 읽기",1048:"그림 블록 삽입 테스트",1049:"선을 그리다",1050:"호 그리기",1051:"원을 그리다",1052:"PL 선 그리기",1053:"채우기 그리기",1054:"드로잉 문자",1055:"타원 그리기",1056:"타원형 호를 그리다",1057:"여러 줄 문자 그리기",1058:"테이블 그리기",1059:"QR코드 그리기",1060:"도장 삽입",1061:"모든 객체 가져오기",1062:"상호 객체 선택",1063:"서버에 mxweb 저장",1064:"시스템 변수 가져오기",1065:"새 시트",1066:"흰색 배경색",1067:"텍스트 찾기 위치",1068:"블록으로 솔리드 선택",1069:"단일행 문자 그리기",1070:"선택 채우기",1071:"확장 속성 설정",1072:"정렬 치수 그리기",1073:"회선 치수",1074:"각도 치수",1075:"객체 선종류 수정",1076:"숨겨진 객체 레이어 선택",1077:"현재 선택에 추가",1078:"뷰포트 회전",1079:"확장 레코드 쓰기",1080:"명명 사전 얻기",1081:"문자 스타일 추가",1082:"사용자 솔리드 그리기",1083:"객체 색상 수정",1084:"수정 개체가 보이지 않음",1085:"객체 레이어 수정",1086:"객체 표시 순서 수정",1087:"범위 지정 출력 pdf",1088:"이미지 그리기",1089:"객체 확장 사전 읽기",1090:"3DPolyline 그리기",1091:"선 그리기 텍스트 사용자화 솔리드",1092:"계산 교차점",1093:"문자 스타일 수정",1094:"오프셋 입력 선",1095:"그룹 만들기",1096:"스크린샷 jpg",1097:"시트 동일 문자 가져오기",1098:"범위 출력 dwg 지정",1099:"표식 원 그리기 테스트",1100:"Wipeout 테스트",1101:"잘라낸 블록 생성하기",1102:"공차 치수",1103:"모든 객체 색상 변경",1104:"자르기 mxweb",1105:"현재 색상 선 무게 설정",1106:"다각형 영역 내의 객체 찾기",1107:"객체 깨기",1108:"반투명 선 그리기",1109:"선 유형 추가",1110:"패턴 축척 수정하기",1111:"텍스트 편집 테스트",1112:"바코드 그리기",1113:"스크린샷 bmp",1114:"수정 도구",1115:"문자 도구",1116:"드로잉 도구",1117:"블록 도구",1118:"측정 도구",1119:"치수 도구",1120:"기타 도구",1121:"다중 복제",1122:"호전원",1123:"복사 회전",1124:"원형 다각형",1125:"색상 수정",1126:"호 탄젠트",1127:"임시 숨기기",1128:"상자 삭제",1129:"각도 복사",1130:"정점 복사",1131:"교점이 끊어지다",1132:"양방향 오프셋",1133:"원 크기 변경",1134:"선종류 축척",1135:"신축",1136:"호별 패턴",1137:"pl 필렛",1138:"pl선 대칭 이동",1139:"모든 선 객체 가져오기",1140:"등분",1141:"직사각형 크기 조절",1142:"끊다",1143:"다각형 가공하기",1144:"다각형 결합",1145:"다각형 교점 추가",1146:"다각형 교점 삭제",1147:"다각형 단일 밀어내기",1148:"별 모양",1149:"범프 선",1150:"톱니 선",1151:"중심 사각형",1152:"필렛 사각형",1153:"원 중심선",1154:"파이프",1155:"단면부",1156:"중수선",1157:"계단",1158:"채워진 원",1159:"보온면",1160:"중심선",1161:"구멍을 내다",1162:"메시지 상자",1163:"데이텀 문자 (1)",1164:"용접선",1165:"동심원",1166:"기어",1167:"블록 중심선",1168:"원형 공접선",1169:"데이텀 문자 (2)",1170:"그림 상자 삽입",1171:"도로를 그리다",1172:"다각형 그리기",1173:"선으로 정렬",1174:"고자질",1175:"글자의 폭을 바꾸다",1176:"내용 스밍",1177:"내용을 바꾸다",1178:"좌우 정렬",1179:"위아래 정렬",1180:"문자 반전",1181:"텍스트 상자",1182:"밑줄",1183:"도명선",1184:"대소문자",1185:"숫자 구화",1186:"특정 단어 선택",1187:"접미어",1188:"연결 문자",1189:"공백 제거",1190:"문자 세로 방향",1191:"호별 정렬",1192:"전역 문자 스타일 수정",1193:"텍스트 추출",1194:"문자 번호",1195:"블록 이름 변경",1196:"브러시",1197:"블록 연결",1198:"블록 기준점을 변경하다.",1199:"블록 색상 변경",1200:"다중 블록 회전",1201:"다중 블록 크기 조절",1202:"브러시 각도",1203:"블록별 선택",1204:"블록별로 모두 선택",1205:"통계 단일 블록",1206:"다중 블록 통계",1207:"블록 도면층 수정",1208:"길이",1209:"통계 면적",1210:"지능형 높이",1211:"면적",1212:"직사각형 영역",1213:"점에서 선까지의 거리",1214:"호 길이",1215:"원 측정",1216:"연속 측정",1217:"세그먼트 길이 보기",1218:"영역 포함 호",1219:"심도 치수",1220:"직사각형 치수",1221:"조잡도 치수",1222:"좌표 치수",1223:"슬로프",1224:"정렬",1225:"부분 확대",1226:"일련번호 마크업",1227:"치수 회전",1228:"둥근 구멍 표식",1229:"방향 기호",1230:"방사선 치수",1231:"직사각형 치수 고정 변색",1232:"용지 확장 트림",1233:"화살표 선",1234:"선택한 텍스트",1235:"클립보드로 복사",1236:"취소",1237:"확인",1238:"공차 코드",1239:"공차 1",1240:"공차 2",1241:"부주",1242:"꼭대기",1243:"밑단",1244:"기준",1245:"전주기호",1246:"현재 행",1247:"행 추가",1248:"행 삭제",1249:"제로",1250:"직선도",1251:"평면도",1252:"원도",1253:"원통도",1254:"선 프로파일",1255:"면 프로파일",1256:"평행도",1257:"수직도",1258:"경사도",1259:"위치도",1260:"동축도",1261:"대칭도",1262:"둥글게 뛰다",1263:"올댄스",1264:"지우기",1265:"텍스트 내용 및 번호를 입력하십시오.",1266:"텍스트 내용:",1267:"(0-20자 입력)",1268:"시작 번호:",1269:"(번호 자동 증가 1)",1270:"번호 지정 위치:",1271:"번호 이전",1272:"번호 뒤에",1273:"방향 변경",1274:"왼쪽 텍스트 내용:",1275:"오른쪽 텍스트 내용:",1276:"아래 텍스트 내용:",1277:"기본 기호",1278:"동일 요구 사항",1279:"다수 기호",1280:"긴 모서리 가로줄",1281:"보조 기호",1282:"보충 기호",1283:"기호 위치",1284:"특수 기호",1285:"왼쪽 치수",1286:"위 치수",1287:"오른쪽 치수",1288:"교차 용접",1289:"간격",1290:"텍스트 확장",1291:"점선 위치",1292:"용접 설명",1293:"행 지우기",1294:"볼륨 모서리 용접",1295:"유형 I 용접",1296:"V 용접",1297:"단일 V 용접",1298:"한면 급경사 V 그루브 스택",1299:"용접 기울이기",1300:"분리식 패드",1301:"영구 패드",1302:"리턴 모서리 V 용접",1303:"리턴 모서리 U 용접",1304:"리턴 모서리 단일 V 용접",1305:"리턴 모서리 단일 U 용접",1306:"끝 용접",1307:"스택 용접 커넥터",1308:"커버 용접",1309:"필렛 용접",1310:"플러그 또는 슬롯 용접",1311:"점 용접",1312:"인터페이스 축소",1313:"기울기 커넥터",1314:"점 용접 (가운데 오프셋)",1315:"용접",1316:"용접 (중심 이탈)",1317:"가파른 V 그루브 스택",1318:"첫 번째 평면 기호",1319:"두 번째 오목 기호",1320:"두 번째 볼록 기호",1321:"두 번째 평면 기호",1322:"첫 번째 볼록 기호",1323:"세 번째 평면 기호",1324:"첫 번째 오목 기호",1325:"용접 깎기",1326:"발가락 부드럽게 변환",1327:"개스킷 기호 포함",1328:"3면 용접 기호",1329:"주변 용접 문자",1330:"필드 기호",1331:"꼬리 기호",1332:"인터레이스 띄엄필렛 용접 기호",1333:"플레어 용접",1334:"단일 플레어 용접",1335:"더미 용접",1336:"자물쇠 모서리 용접",1337:"모서리 그루브 잠금",1338:"위",1339:"하",1340:"없음",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"형상에 배치할 용접 기호 선택",1346:"용접 각도 너비:",1347:"단일 V 버트 용접(전면)",1348:"필렛 용접 (전면)",1349:"단일 V 버트 용접 (측면 뷰)",1350:"필렛 용접 (측면 뷰)",1985:"테이블 추출"}},Symbol.toStringTag,{value:"Module"})),ZV=Object.freeze(Object.defineProperty({__proto__:null,default:{718:"指定輸出範圍第一點:",719:"指定輸出範圍第二點:",720:"指定第一點:",721:"指定第二點:",722:"雲線框起始點:",723:"雲線框結束點:",724:"審圖標注點:",725:"點擊開啟繪製雲線:",726:"再次點擊結束繪製雲線:",727:"指定一點:",728:"指定二點:",729:"選擇對象",730:"指定下一個點:",731:"\\指定插入基點",732:"指定表格插入點:",733:"指定插入點:",734:"指定插入基點",735:"選擇標注對象",736:"請選擇目標文字",737:"指定填充區域內部一點:",738:"沒有找到閉合區域",739:"表面粗糙度",740:"焊接符號",741:"形位公差",742:"選擇要需要開啟自訂屬性的對象",743:"選擇要隱藏的對象",744:"指定插入點:",745:"指定一點:",746:"指定夾角",747:"指定二點:",748:"選擇圖案填充對象",749:"指定第一點:",750:"指定第二點:",751:"指定第二個角度點:",752:"指定最後一個點:",753:"指定座標點:",754:"指定標注點:",755:"請輸入審批意見",756:"指定雲線框起始點",757:"指定雲線框終止點",758:"指定審圖標注點",759:"指定第一個角點:",760:"指定第二個角點:",761:"指定序號位置:",762:"旋轉符號",763:"標記類型",764:"請選擇需要標記的圓:",765:"請設定定位點或直線或圓弧或圓",766:"拖動確定標注位置",767:"請指定或輸入角度",768:"焊縫符號",769:"請拾取定位點、直線或圓弧",770:"請指定第二點",771:"請設定定位點",772:"請設定角度",773:"請設定定位點或直線或圓弧",774:"請設定引線轉捩點",775:"拖動確定定位點",776:"請指定第一點:",777:"請指定第二點:",778:"請選擇目標塊對象",779:"請輸入新塊名",780:"選擇需要修改基點的塊",781:"設定基點",782:"選擇需要修改顏色的塊",783:"輸入顏色索引(0~256)",784:"請選擇源塊",785:"選擇要刷的目標塊:",786:"選擇連接管道",787:"手動逐個連線",788:"自動批量連線",789:"請選擇連線的塊",790:"設定中心線長度",791:"選擇要旋轉的目標塊:",792:"設定旋轉角度",793:"請設定縮放比例",794:"請設定選擇範圍:",795:"請選擇目標塊",796:"請設定統計範圍",797:"指定表格插入點:",798:"選擇目標曲線",799:"指定長度標注點",800:"選擇目標對象",801:"請選擇目標斜率對象",802:"請設定標注文字高度",803:"指定斜率標注點",804:"請選擇目標座標點",805:"請指定標注位置",806:"指定起點",807:"指定終點",808:"指定標注方向",809:"請設定文字內容",810:"請選擇面積的第一個點",811:"請選擇下一個點",812:"請選擇面積標注的位置",813:"請選擇矩形的角點1",814:"請選擇矩形的角點2",815:"請設定面積標注的位置",816:"請選擇一個量測點",817:"請選擇一條直線",818:"請設定尺寸線的位置",819:"請選擇一條弧線",820:"請指定尺寸線位置",821:"請選擇一個圓對象",822:"請指定文字位置",823:"請選擇直線的端點或弧線",824:"請指定文字的位置",825:"請選擇一個連續量測的標注",826:"請選擇第二條直線",827:"請設定角度標注的位置",828:"請輸入星形頂點數:",829:"指定星形中心點:",830:"請設定星形的內半徑:",831:"指定星形的外半徑:",832:"請輸入凹凸線寬度<5>",833:"請輸入凹凸線高度<10>",834:"請點擊確定起始點",835:"請點擊確定終點",836:"請輸入鋸齒線寬度<5>",837:"請輸入鋸齒線高度<10>",838:"請輸入矩形寬度<5>",839:"請輸入矩形高度<10>",840:"請點擊確定矩形中心",841:"請輸入管徑<10>",842:"請輸入長出管口長度<5>",843:"請點擊確定起點",844:"指定剖管線起點",845:"指定剖管線終點",846:"選擇剖管線圓弧方向",847:"左邊",848:"右邊",849:"選擇模式",850:"直線焊縫",851:"弧線焊縫",852:"請輸入焊縫半徑<5>",853:"指定圓弧的第二個點",854:"指定圓弧的端點",855:"請輸入寬度<25>",856:"請輸入高度<15>",857:"請輸入樓梯級數<10>",858:"請確定圓心位置",859:"請輸入圓半徑",860:"請輸入保溫棉寬度<5>",861:"請輸入保溫棉高度<10>",862:"請點擊下一個點",863:"請選擇第一條線",864:"請選擇第二條線",865:"請選擇終點",866:"請選擇目標矩形",867:"設定指北針中心點",868:"設定指北針半徑",869:"選擇提示框指向",870:"指定訊息方塊第一點:",871:"指定訊息方塊第二點:",872:"設定訊息方塊指向:",873:"請設定基準符文字",874:"請設定文字高度",875:"請設定基準符位置",876:"請設定定位點或圓弧或直線",877:"請設定符號位置",878:"請設定圓心",879:"請設定齒輪圓心",880:"請設定齒輪半徑",881:"請設定中心線長度10>",882:"請選擇第一個圓",883:"請選擇第二個圓",884:"請設定矩形左上角點",885:"請設定矩形右下角點",886:"請設定圓角半徑",887:"請選擇多邊形起點",888:"請選擇多邊形頂點",889:"選擇對象:",890:"指定基點",891:"指定第二個點",892:"陣列",893:"退出",894:"放弃",895:"輸入要進行陣列的項目數",896:"選擇圓弧對象",897:"選擇複製旋轉對象:",898:"請指定目標點",899:"請指定旋轉角度",900:"選擇要轉成多邊形的對象",901:"設定多邊形邊數",902:"輸入選項",903:"內接於圓",904:"外切於圓",905:"選擇要修改顏色的對象",906:"輸入顏色索引",907:"隱藏",908:"隱藏未選",909:"全部顯示",910:"選擇目標的對象",911:"指定删除方框第一點:",912:"指定删除方框第二點:",913:"選擇需要精確删除的實體",914:"請選擇角度複製對象",915:"請輸入角度複製數量",916:"請輸入角度複製的基點",917:"請輸入複製角度",918:"請選擇頂點對象",919:"請選擇複製對象",920:"請確定複製基點",921:"請選擇參攷曲線",922:"選擇打斷對象",923:"指定偏移對象",924:"請輸入偏移距離",925:"指定伸縮對象(選擇直線、多段線、圓弧)",926:"伸縮至",927:"選擇要修改線型比例的對象",928:"請輸入線型比例",929:"請輸入陣列間距",930:"請選擇圓弧",931:"選擇排列對象",932:"指定排列基點",933:"選擇目標多段線:",934:"請輸入圓角半徑<5>",935:"選擇填充對象",936:"請輸入填充比例",937:"請選擇原填充圖形",938:"請點擊填充圖形內部任意一點",939:"請選擇線對象",940:"選擇等分模式",941:"定距等分",942:"定數等分",943:"偏移等分",944:"複製等分",945:"請選擇偏移等分對象",946:"請選擇複製等分對象",947:"請選擇需要等分的線段",948:"請設定等分距離",949:"請設定等分的數量",950:"請設定偏移距離",951:"請指定偏移點",952:"請指定複製基點",953:"請指定複製等分數量",954:"請指定複製等分端點",955:"請選擇需要矩形縮放的實體:",956:"請指定矩形的角點1",957:"請指定矩形角點2",958:"請選擇放大中心點",959:"請選擇放大範圍",960:"請設定放大倍數",961:"請選擇放大插入點",962:"請選擇一條需要打斷的曲線",963:"請在曲線上選取打斷點",964:"請輸入陣列數量",965:"是否開啟旋轉",966:"是",967:"否",968:"請選擇需要陣列的圖形:",969:"請選擇陣列中心點",970:"請選擇閉合多邊形!",971:"請選擇第一個點",972:"請選擇第二個點",973:"請選擇第一個閉合多邊形",974:"請選擇第二個閉合多邊形",975:"請選擇兩個閉合多邊形",976:"兩個多邊形沒有重合邊!",977:"請選擇目標多邊形",978:"請選擇多邊形需要添加頂點的邊",979:"請設定添加的頂點位置",980:"請選擇多邊形需要删除的頂點",981:"請選擇多邊形需要拉伸的邊",982:"請指定拉伸位置",983:"請設定圖框方向<N>",984:"橫向",985:"縱向",986:"請設定圖框尺寸<4>",987:"請設定圖框位置",988:"指定裁剪角點1",989:"指定裁剪角點2",990:"請設定道路起點",991:"請設定下一點",992:"請選擇目標對齊線對象(選擇直線)",993:"請選擇目標文字對象",994:"選擇文字對象",995:"請設定字高",996:"請設定字寬",997:"請選擇源文字",998:"請選擇第一個文字",999:"請選擇第二個文字",1e3:"請選擇需要對齊的文字",1001:"請選擇對齊管道",1002:"左",1003:"中",1004:"右",1005:"請選擇對齊基點",1006:"請選擇需要反轉的文字",1007:"請選擇需要去空格的文字",1008:"請選擇文字對象",1009:"請輸入底線寬度",1010:"請設定底線距離",1011:"請設定底線延長距離",1012:"請選擇操作選項",1013:"大寫",1014:"小寫",1015:"句首大寫",1016:"請選擇數位對象",1017:"請選擇文字插入點",1018:"選擇要查找的範圍:",1019:"請選擇查找模式",1020:"等於",1021:"包含",1022:"首碼為",1023:"尾碼為",1024:"請輸入關鍵字",1025:"選擇要操作的範圍:",1026:"選擇操作管道",1027:"添加",1028:"删除",1029:"選擇操作位置",1030:"首碼",1031:"尾碼",1032:"請輸入內容",1033:"請選擇文字",1034:"請選擇圓弧",1035:"請選擇文字樣式",1036:"請設定文字選取範圍",1037:"下載開Demo程式碼",1038:"下載開發包",1039:"調用畫圓線命令",1040:"互動畫直線",1041:"添加圖層",1042:"得到所有圖層",1043:"得到所有文字樣式",1044:"得到所有圖塊",1045:"得到所有線型",1046:"寫擴展數據",1047:"讀擴展數據",1048:"測試插入一個圖塊",1049:"繪直線",1050:"繪圓弧",1051:"繪圓",1052:"繪PL線",1053:"繪填充",1054:"繪文字",1055:"繪橢圓",1056:"繪橢圓弧",1057:"繪製多行文字",1058:"繪製表格",1059:"繪製二維碼",1060:"插入圖章",1061:"得到所有對象",1062:"互動選擇對象",1063:"保存mxweb到服務器",1064:"得到系統變數",1065:"新建圖紙",1066:"白色背景色",1067:"文字查找定位",1068:"選擇實體做塊",1069:"繪製單行文字",1070:"選點填充",1071:"設定擴展内容",1072:"繪製對齊標注",1073:"繪性線標注",1074:"角度標注",1075:"修改對象線型",1076:"選擇隱藏對象層",1077:"添加到當前選擇",1078:"視區旋轉",1079:"寫擴展記錄",1080:"得到命名字典",1081:"添加文字樣式",1082:"繪自定義實體",1083:"修改對象顏色",1084:"修改對象不可見",1085:"修改對象層",1086:"修改對象顯示順序",1087:"指定範圍輸出pdf",1088:"繪製image",1089:"讀取對象擴展字典",1090:"繪製3DPolyline",1091:"繪線文字自定義實體",1092:"計算交點",1093:"修改文字樣式",1094:"偏移輸入畫線",1095:"創建組",1096:"螢幕截圖jpg",1097:"獲取圖紙相同文字",1098:"指定範圍輸出dwg",1099:"測試繪製標記圓",1100:"測試Wipeout",1101:"創建剪切塊",1102:"公差標注",1103:"改所有對象顏色",1104:"切剪mxweb",1105:"設定當前顏色線重",1106:"查找多邊形區域內對象",1107:"打碎對象",1108:"繪半透明線",1109:"添加線型",1110:"修改圖案比例",1111:"測試文字編輯",1112:"繪製條碼",1113:"螢幕截圖bmp",1114:"修改工具",1115:"文字工具",1116:"繪圖工具",1117:"塊工具",1118:"量測工具",1119:"標注工具",1120:"其他工具",1121:"多重複製",1122:"弧轉圓",1123:"複製旋轉",1124:"圓轉多邊",1125:"修改顏色",1126:"圓弧切角",1127:"臨時隱藏",1128:"方框删除",1129:"角度複製",1130:"頂點複製",1131:"交點打斷",1132:"雙向偏移",1133:"改圓大小",1134:"線型比例",1135:"伸縮",1136:"按弧陣列",1137:"pl圓角",1138:"pl線反向",1139:"得到所有直線對象",1140:"等分",1141:"矩形縮放",1142:"打斷",1143:"切割多邊形",1144:"合併多邊形",1145:"添加多邊形頂點",1146:"删除多邊形頂點",1147:"多邊形單邊拉伸",1148:"星形",1149:"凹凸線",1150:"鋸齒線",1151:"中心矩形",1152:"圓角矩形",1153:"圓中心線",1154:"筦道",1155:"剖管符",1156:"中垂線",1157:"樓梯",1158:"實心圓",1159:"保溫棉",1160:"中心線",1161:"開洞",1162:"訊息方塊",1163:"基準符(1)",1164:"焊縫線",1165:"同心圓",1166:"齒輪",1167:"塊中心線",1168:"圓公切線",1169:"基準符(2)",1170:"插入圖框",1171:"繪製道路",1172:"繪任意多邊形",1173:"按線對齊",1174:"改字高",1175:"改字寬",1176:"刷內容",1177:"換內容",1178:"左右對齊",1179:"上下對齊",1180:"文字反轉",1181:"文字加框",1182:"底線",1183:"圖名線",1184:"大小寫",1185:"數位求和",1186:"選特定字",1187:"前尾碼",1188:"連接文字",1189:"去空格",1190:"文字豎向",1191:"按弧對齊",1192:"修改全域文字樣式",1193:"選取文字",1194:"文字編號",1195:"改塊名",1196:"刷塊",1197:"塊連線",1198:"改塊基點",1199:"改塊顏色",1200:"多塊旋轉",1201:"多塊縮放",1202:"刷塊角度",1203:"按塊選擇",1204:"按塊全選",1205:"統計單塊",1206:"統計多塊",1207:"修改塊圖層",1208:"長度",1209:"統計面積",1210:"智慧標高",1211:"面積",1212:"矩形面積",1213:"點到直線的距離",1214:"弧長",1215:"量測圓",1216:"連續量測",1217:"查看分段長度",1218:"面積含弧線",1219:"審圖標注",1220:"矩形標注",1221:"粗糙度標注",1222:"座標標注",1223:"標斜率",1224:"對齊",1225:"局部放大",1226:"序號標注",1227:"旋轉標注",1228:"圓孔標記",1229:"向視符號",1230:"射線標注",1231:"矩形標注懸停變色",1232:"裁剪圖紙擴展",1233:"箭頭直線",1234:"選擇的文字",1235:"複製到剪貼板",1236:"取消",1237:"確定",1238:"公差代號",1239:"公差1",1240:"公差2",1241:"附注",1242:"頂端",1243:"底端",1244:"基準",1245:"全周符號",1246:"當前行",1247:"新增行",1248:"删除行",1249:"清零",1250:"直線度",1251:"平面度",1252:"圓度",1253:"圓柱度",1254:"線輪廓度",1255:"面輪廓度",1256:"平行度",1257:"垂直度",1258:"傾斜度",1259:"位置度",1260:"同軸度",1261:"對稱度",1262:"圓跳動",1263:"全跳動",1264:"清除",1265:"請輸入文字內容和編號:",1266:"文字內容:",1267:"(輸入0-20個字)",1268:"起始編號:",1269:"(編號自動遞增1)",1270:"編號位置:",1271:"編號在前",1272:"編號在後",1273:"改變方向",1274:"左邊文字內容:",1275:"右邊文字內容:",1276:"底部文字內容:",1277:"基本符號",1278:"相同要求",1279:"多數符號",1280:"長邊加橫線",1281:"輔助符號",1282:"補充符號",1283:"符號位置",1284:"特殊符號",1285:"左尺寸",1286:"上尺寸",1287:"右尺寸",1288:"交錯焊縫",1289:"間距",1290:"擴充文字",1291:"虛線位置",1292:"焊接說明",1293:"清除行",1294:"卷邊焊縫",1295:"I型焊縫",1296:"V型焊縫",1297:"單邊V型焊縫",1298:"單邊陡側V型坡口堆焊",1299:"傾斜焊縫",1300:"可移除襯墊",1301:"持久襯墊",1302:"帶頓邊V型焊縫",1303:"帶頓邊U型焊縫",1304:"帶頓邊單邊V型焊縫",1305:"帶頓邊單邊U型焊縫",1306:"端接焊縫",1307:"堆焊接頭",1308:"封底焊縫",1309:"角焊縫",1310:"塞焊縫或槽焊縫",1311:"點焊縫",1312:"折疊介面",1313:"傾斜介面",1314:"點焊縫(偏移中心)",1315:"縫焊縫",1316:"縫焊縫(偏離中心)",1317:"陡側V型坡口堆焊",1318:"第一種平面符號",1319:"第二種凹面符號",1320:"第二種凸面符號",1321:"第二種平面符號",1322:"第一種凸面符號",1323:"第三種平面符號",1324:"第一種凹面符號",1325:"削平焊縫",1326:"趾部平滑過渡",1327:"帶墊板符號",1328:"三面焊縫符號",1329:"周圍焊接符",1330:"現場符號",1331:"尾部符號",1332:"交錯斷續焊接符號",1333:"喇叭形焊縫",1334:"單邊喇叭形焊縫",1335:"堆焊縫",1336:"鎖邊焊縫",1337:"鎖邊坡口",1338:"上",1339:"下",1340:"無",1341:"basicSymbol",1342:"auxiliarySymbol",1343:"suppleSymbol",1344:"specialSymbol",1345:"選擇要在幾何圖形上放置的焊縫符號",1346:"焊角寬度:",1347:"單邊V型對接焊縫(前視圖)",1348:"角焊縫(前視圖)",1349:"單邊V型對接焊縫(側視圖)",1350:"角焊縫(側視圖)",1985:"選取表格"}},Symbol.toStringTag,{value:"Module"}))})(Mx,MxCAD,MXCADAPP_EXTERNALLIBRARIES.Vue,MXCADAPP_EXTERNALLIBRARIES.vuetifyComponents,MXCADAPP_EXTERNALLIBRARIES.axios);
|
|
6481
6481
|
//# sourceMappingURL=test.js.map
|